/**
 * Основные стили для сайта
 *
 * @package Empty_Theme
 */

/* Общие стили */
body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
}

/* Импорт стилей карты, партнеров и новостей */
@import url('map.css');
@import url('partners-carousel.css');
@import url('news-section.css');

.container {
    max-width: 1440px; /* Задаем максимальную ширину контейнера */
    width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* Уменьшаем боковые отступы */
    box-sizing: border-box; /* Учитываем padding в ширине */
}

/* Стили для главной страницы */
.site-content {
    margin-top: 130px;
    position: relative;
    z-index: 1;
    padding: 40px 0 0 0; /* Убираем отступ снизу */
}

.site-main {
    /* Убираем фон для отображения видео */
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 20px 30px 0 30px; /* Убираем отступ сверху и снизу */
}

/* Стили для анимированного слогана */
.home-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 0 0 0; /* Полностью убираем отступ снизу */
    min-height: auto; /* Убираем фиксированную высоту */
    padding: 20px 20px 0 20px; /* Убираем отступ снизу в padding */
}

@media (min-width: 992px) {
    .home-content-wrapper {
        min-height: auto; /* Убираем огромную высоту 300vh */
        flex-direction: row;
        flex-wrap: nowrap; /* Важно: меняем на nowrap, чтобы элементы оставались в одной строке */
        justify-content: space-between;
        align-items: flex-start; /* Выравниваем по верхнему краю для создания расстояния */
        gap: 50px; /* Увеличиваем расстояние между элементами */
        padding: 0 20px 10px 20px; /* Добавляем небольшой отступ снизу */
        width: 100%;
        max-width: 100%;
        margin-bottom: 10px; /* Добавляем небольшой отступ снизу */
    }
}

.animated-slogan-container {
    width: 50%;
    max-width: none; /* Используем всю доступную ширину */
    margin-bottom: 0px;
    background-color: transparent; /* Убираем фон */
}

@media (min-width: 992px) {
    .animated-slogan-container {
        width: 45%; /* Увеличиваем ширину слогана для лучшего использования пространства */
        margin-bottom: 0;
        margin-top: 250px; /* Поднимаем слоган вверх на ПК */
        max-width: none; /* Убираем ограничение ширины */
        padding-left: 5%; /* Добавляем отступ слева */
    }
}

.animated-slogan {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2; /* Уменьшаем межстрочный интервал */
    margin-bottom: 5px; /* Минимальный отступ снизу */
    position: relative;
    color: #fff; /* Основной текст белый (но не затрагивает анимированные слова) */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Тень для лучшей читаемости */
    text-align: center;
}

@media (min-width: 1200px) {
    .animated-slogan {
        font-size: 58px; /* Увеличенный размер текста только для десктопов */
    }
}

.animated-slogan .prefix {
    display: inline;
    color: #fff; /* Делаем префикс белым */
}

.animated-slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.animated-slogan .prefix {
    display: block;
    width: 100%;
    margin-bottom: 3px; /* Минимальный отступ между префиксом и словами */
    white-space: nowrap; /* Предотвращает перенос текста */
}

.animated-slogan .animated-words {
    display: block;
    position: relative;
    height: 50px; /* Увеличиваем высоту для больших слов */
    width: 100%;
    text-align: center;
    --word-color: #0071CE; /* Значение по умолчанию, будет переопределено инлайновым стилем */
}

@media (min-width: 1200px) {
    .animated-slogan .animated-words {
        height: 70px; /* Увеличиваем ещё больше для крупного текста на десктопе */
        width: 100%;
        max-width: 100%;
    }
}

.animated-slogan .animated-words .word {
    position: absolute;
    opacity: 0;
    top: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    font-weight: 800;
    transform: translateY(20px);
    width: 100%;
    text-align: center;
    color: var(--word-color); /* Используем CSS-переменную для цвета */
}

.animated-slogan .animated-words .word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

.form-container-wrapper {
    width: 50%;
    max-width: none; /* Используем всю доступную ширину */
    background-color: transparent; /* Убираем фон у формы */
}

@media (min-width: 992px) {
    .form-container-wrapper {
        width: 45%; /* Уменьшаем ширину формы, чтобы она не перекрывала слоган */
        max-width: none; /* Убираем ограничение ширины */
        align-self: flex-start; /* Выравнивание по верхнему краю */
        margin-top: 25px; /* Уменьшаем отступ сверху */
        padding-right: 5%; /* Добавляем отступ справа */
    }
}

/* Стили для мобильной версии */
@media (max-width: 768px) {
    .home-content-wrapper {
        flex-direction: column;
        min-height: 70vh;
        flex-wrap: wrap; /* Разрешаем перенос на мобильных */
    }

    .animated-slogan-container {
        width: 100%;
        margin: 0 0 30px 0;
        order: 1;
    }

    .animated-slogan {
        font-size: 32px;
        text-align: center;
    }

    .animated-slogan .animated-words {
        height: 36px;
    }

    .form-container-wrapper {
        width: 100%;
        order: 3;
    }

    .site-content {
        margin-top: 60px;
    }

    .site-main {
        padding: 15px;
    }

    .page-content-below-slogan {
        padding: 20px 15px;
    }
}

/* Стили для футера */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 30px 0;
    margin-top: 0;
}

.site-info {
    text-align: center;
}

.site-info a {
    color: #fff;
    text-decoration: none;
}

/* Стили для внутренних страниц */
.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

.entry-content {
    margin-bottom: 30px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h1, .entry-content h2, .entry-content h3, 
.entry-content h4, .entry-content h5, .entry-content h6 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 1.5em 0;
}

/* Стили для кнопки открытия формы на мобильных */
.transport-form-button-container {
    display: none;
}

@media (max-width: 768px) {
    /* Скрываем оригинальную кнопку и форму на мобильных, так как используем новую */
    .transport-form-button-container,
    .transport-form-container,
    .modal-overlay {
        display: none !important;
    }
}

/* Стили для содержимого ниже слогана и формы */
.page-content-below-slogan {
    margin-top: 10px; /* Еще меньше отступ сверху */
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
}