body {
    font-family: 'Open Sans', sans-serif;
    padding: 0;
    margin: 0;
}
/* Стили для шапки */
#masthead {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-wrapper {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 30px 8px;
}

.logo img {
    max-height: 50px;
    width: auto;
}

.logo .site-title {
    margin: 0;
    font-size: 1.5em;
    color: #1e69b8;
}

.logo .site-title a {
    text-decoration: none;
    color: inherit;
}

.main-navigation ul.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 100px;
}

.main-navigation ul.nav-menu li {
    position: relative;
}

.main-navigation ul.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.main-navigation ul.nav-menu a:hover {
    color: #1e69b8;
}

.phone-number a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1e69b8;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.phone-number a:hover {
    color: #1e4f8b; /* Темнее при наведении */
}

.phone-icon {
    margin-right: 8px; /* Отступ между иконкой и текстом */
    font-size: 1.2em; /* Размер иконки */
}

/* --- Адаптивность для шапки --- */

@media (max-width: 1180px) {
    .header-container {
        padding: 10px 20px;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }

    .logo {
        order: 1;
        flex-basis: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .main-navigation {
        order: 2;
        flex-basis: 100%;
        text-align: center;
    }

    .main-navigation ul.nav-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .phone-number {
        order: 3;
        flex-basis: 100%;
        text-align: center;
        font-size: 1em;
    }
}

.onepage-wrapper {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.background-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Нижний слой — здания (статично) */
.background-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/bg.webp') center / cover no-repeat;
    z-index: 2;
}

/* Верхний слой — облака (движущиеся) */
.background-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/clouds.webp') repeat-x;
    background-size: auto 100%;
    animation: moveClouds 150s linear infinite;
    z-index: 1;
}

@keyframes moveClouds {
    from { background-position: 0 0; }
    to   { background-position: -2800px 0; }
}


.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

.white-box {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    max-width: 1060px;
    width: 90%;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 3;
    transform: translateX(100vw);
    opacity: 0;
    animation: slideInFromRight 1s ease-out 0.5s forwards;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100vw);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 0.8;
    }
}

/* Контейнер для логотипа и текста */
.content-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Левая часть - логотип */
.logo-section {
    flex: 0 0 30%; /* Занимает 30% ширины */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-section img {
    height: 300px;
    width: 280px;
}

.logo-section .site-title {
    font-size: 2em;
    color: #1e69b8;
}

/* Правая часть - текст и контакты */
.text-contact-section {
    flex: 1; /* Занимает оставшееся место */
}

.intro-text {
    margin-bottom: 30px;
    font-size: 1.1em;
    line-height: 1.6;
}

.contact-info {
    font-size: 1em;
    text-align: left;
}

.contact-info p {
    margin: 10px 0;
}

/* Стили для футера */
#colophon {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.footer-container {
    display: flex;
    justify-content: center;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.85); /* Полупрозрачный светлый фон */
    backdrop-filter: blur(5px); /* Эффект размытия фона (опционально) */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9em;
    color: #333;
    text-align: center;
}

.footer-content p {
    margin: 0;
}

.copyright {
    font-weight: 500;
}

/* --- Адаптивность для футера --- */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }

    .footer-container {
        padding: 10px;
    }
}

/* --- АДАПТИВНЫЕ СТИЛИ --- */

/* Для планшетов и небольших десктопов */
@media (max-width: 768px) {
    .content-container {
        flex-direction: column;
    }

    .logo-section {
        flex: none;
        order: 1;
        margin-bottom: 0;
    }

    .text-contact-section {
        order: 2;
    }

    .white-box {
        padding: 25px;
    }

    .logo-section img {
    }

    .logo-section .site-title {
        font-size: 1.4em;
    }

    .intro-text,
    .contact-info {
        font-size: 0.95em;
    }
}

/* Для мобильных устройств */
@media (max-width: 480px) {
    .content-container {
        gap: 5px;
    }
    .white-box {
        padding: 20px;
        width: 95%;
    }
    .logo-section img {
    }

    .logo-section .site-title {
        font-size: 1.3em;
    }

    .intro-text,
    .contact-info {
        font-size: 0.9em;
    }

    .contact-info p {
        margin: 6px 0;
    }
}