:root {
    --main-bg: #2F4574;
    --button-color: #02F26A;
    --accent-color: #425C94;
    --text-color: #FFFFFF;
    --highlight-red: #D83939; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif; 
    background-color: var(--main-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Хедер --- */
.header {
    background-color: var(--main-bg);
    padding: 20px 0;
    border-bottom: 1px solid var(--accent-color); 
}

.header .container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header .lang-switcher { grid-column: 1 / 2; justify-self: start; }
.header .logo { grid-column: 2 / 3; justify-self: center; }
.header .nav-menu { grid-column: 3 / 4; justify-self: end; }
.logo img { height: 35px; width: auto; display: block; }

/* --- Меню навигации --- */
.nav-menu ul { list-style: none; display: flex; gap: 15px; align-items: center; }
.nav-menu ul li a { color: var(--text-color); text-decoration: none; font-size: 16px; transition: color 0.3s; padding: 10px 15px; display: block; font-weight: 600;}
.nav-menu ul li a:hover { color: var(--button-color); }
.nav-menu__item--highlight a { background-color: var(--highlight-red); border-radius: 8px; font-weight: 700; padding: 12px 20px; transition: background-color 0.3s, color 0.3s; }
.nav-menu__item--highlight a:hover { background-color: #e84a4a; color: var(--text-color); }

/* --- Переключатель языка и бургер --- */
.lang-switcher { display: flex; align-items: center; background-color: rgba(0, 0, 0, 0.2); border-radius: 20px; padding: 4px; cursor: pointer; }
.lang-switcher span { padding: 6px 14px; font-size: 14px; font-weight: 700; border-radius: 20px; transition: all 0.3s ease; }
.lang-switcher span.active { background-color: var(--button-color); color: #000; }
.burger-menu { display: none; cursor: pointer; flex-direction: column; gap: 5px; width: 28px; height: 22px; justify-content: space-between; }
.burger-menu span { display: block; width: 100%; height: 3px; background-color: var(--text-color); border-radius: 2px; }


/* --- Секция Hero с фоновым изображением --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Поместите вашу картинку в папку "images" и укажите здесь к ней путь */
    background-image: url('/images/banner.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content { max-width: 750px; }
.hero-content h1 { font-size: 52px; margin-bottom: 25px; font-weight: 700; line-height: 1.2; }
.hero-content p { font-size: 18px; line-height: 1.6; margin-bottom: 40px; max-width: 550px; opacity: 0.9; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; }

/* --- СТИЛИ КНОПОК --- */
.cta-button {
    background-color: var(--button-color);
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 18px 35px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(2, 242, 106, 0.3);
}

.cta-button.cta-button--apk {
    background-color: #425C94;
    color: var(--text-color);
    border-color: #425C94;
    box-shadow: none;
}

.cta-button.cta-button--apk:hover {
    background-color: #5370B3;
    border-color: #5370B3;
    box-shadow: none;
    transform: translateY(-3px) scale(1.05);
}

/* --- Общий заголовок для секций --- */
.section-title {
    font-size: 42px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

/* --- Секция FAQ --- */
.faq-section {
    padding: 80px 0;
    background-color: var(--main-bg);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--accent-color);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 25px 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
}
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: relative;
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 3px;
    background-color: var(--text-color);
    transform: translate(-50%, -50%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}
.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

details[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 15px 30px 15px;
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

/* --- Футер --- */
.footer {
    background-color: var(--main-bg);
    padding: 60px 0;
    border-top: 1px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-column {
    flex: 1;
    min-width: 220px;
}

.footer .logo img {
    height: 30px;
    margin-bottom: 15px;
}

.copyright {
    font-size: 14px;
    opacity: 0.7;
}

.footer-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-nav {
    list-style: none;
}
.footer-nav li {
    margin-bottom: 10px;
}
.footer-nav a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}
.footer-nav a:hover {
    opacity: 1;
    color: var(--button-color);
}

.social-links {
    display: flex;
    gap: 15px;
}
.social-links a {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}
.social-links a:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* --- Мобильная навигация --- */
.mobile-nav { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(47, 69, 116, 0.95); backdrop-filter: blur(5px); flex-direction: column; align-items: center; justify-content: center; gap: 40px; z-index: 100; }
.mobile-nav.active { display: flex; }
.mobile-nav ul { list-style: none; text-align: center; }
.mobile-nav ul li { margin-bottom: 30px; }
.mobile-nav ul li a { color: var(--text-color); text-decoration: none; font-size: 24px; padding: 10px 15px; }
.mobile-nav .nav-menu__item--highlight a { background-color: var(--highlight-red); border-radius: 8px; font-weight: 700; padding: 12px 20px; display: inline-block; transition: background-color 0.3s; }
.mobile-nav .nav-menu__item--highlight a:hover { background-color: #e84a4a; }
.close-btn { position: absolute; top: 30px; right: 30px; font-size: 70px; color: var(--text-color); cursor: pointer; }

/* --- Адаптивность --- */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .burger-menu { display: flex; }
    .header .burger-menu { grid-column: 3 / 4; justify-self: end; }
    
    .hero-content h1 { font-size: 40px; }
    .hero-content p { font-size: 16px; }
    .hero-section { padding: 60px 0; min-height: 100vh; }
    
    .section-title { font-size: 32px; }
    .faq-question { font-size: 18px; }
    
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-column { width: 100%; min-width: unset; }
    .footer .logo { margin: 0 auto 15px auto; }
    .social-links { justify-content: center; }
}

/* --- Секция Текст + Картинка --- */
.text-image-section {
    padding: 80px 0;
    background-color: var(--main-bg); /* Используем основной фон */
}

.text-image-content {
    display: flex;
    align-items: center;
    gap: 60px; /* Расстояние между картинкой и текстом */
    flex-wrap: wrap; /* Для адаптивности */
}

.text-image-column {
    flex: 1; /* Обе колонки занимают равное пространство */
    min-width: 300px; /* Минимальная ширина для адаптивности */
}

.image-column img {
    width: 100%;
    height: auto;
    border-radius: 12px; /* Скругляем углы картинки */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.section-title--left {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: left; /* Заголовок выравнивается по левому краю */
}

.text-column p {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 30px;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
}

.features-list li {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.feature-icon {
    color: var(--button-color); /* Цвет галочки */
    font-weight: 700;
    font-size: 22px;
    margin-right: 15px;
}

/* --- Адаптивность для нового блока --- */
@media (max-width: 992px) {
    .text-image-content {
        flex-direction: column; /* Ставим блоки друг под друга на средних экранах */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .section-title--left {
        font-size: 32px;
        text-align: center;
    }

    .text-column {
        text-align: center; /* Центрируем все содержимое колонки, включая кнопку и параграфы */
    }
    
    .features-list {
        display: inline-block; /* Позволяет отцентрировать сам блок списка */
        text-align: left;      /* Выравнивает текст и иконки внутри списка по левому краю */
        margin: 0 auto 40px auto; /* Центрирует блок и сохраняет нижний отступ */
    }

    .features-list li {
        /* Сбрасываем лишнее правило, если оно было */
        justify-content: flex-start; 
    }
}

/* --- Секция только с текстом --- */
.text-only-section {
    padding: 80px 0;
    /* Используем акцентный цвет для фона, чтобы секции визуально отделялись */
    /* Вы можете поменять его на var(--main-bg), если хотите одинаковый фон */
    background-color: var(--accent-color);
}

.text-content-wrapper {
    max-width: 850px; /* Ограничиваем ширину для лучшей читаемости длинных текстов */
    margin: 0 auto; /* Центрируем блок по горизонтали */
    text-align: left; /* Центрируем сам текст */
}

.text-content-wrapper p {
    font-size: 17px; /* Немного увеличим шрифт для лучшего восприятия */
    line-height: 1.8; /* Увеличим межстрочный интервал */
    opacity: 0.9;
    margin-bottom: 25px; /* Отступ между абзацами */
}

.text-content-wrapper p:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего абзаца */
}


/* --- Адаптивность для текстового блока --- */
@media (max-width: 768px) {
    .text-only-section {
        padding: 60px 0;
    }

    .text-content-wrapper {
        /* На мобильных устройствах длинный текст лучше выравнивать по левому краю */
        text-align: left; 
    }

    .text-content-wrapper p {
        font-size: 16px; /* Возвращаем стандартный размер шрифта для мобильных */
    }
}


/* --- Стили для выделенного текста и ссылок в контентных блоках --- */

/* 
  Применяем стили к тегам <b>, <strong> и <a> 
  только внутри секций .text-only-section и .text-image-section 
*/
.hero-content b,
.hero-content strong,  
.text-only-section b,
.text-only-section strong,
.text-only-section a,
.text-image-section .text-column b,
.text-image-section .text-column strong,
.text-image-section .text-column a {
    color: var(--text-color); /* Белый цвет текста (уже должен быть, но для надежности) */
    font-weight: 700; /* Жирное начертание */
    text-decoration: underline; /* Добавляем подчеркивание */
    text-decoration-color: var(--button-color); /* Зеленый цвет для подчеркивания (#02F26A) */
    text-decoration-thickness: 2px; /* Делаем линию чуть толще */
    text-underline-offset: 4px; /* Небольшой отступ линии от текста для красоты */
    transition: color 0.3s ease; /* Плавный переход для ссылок при наведении */
}

/* 
  Дополнительный стиль для ссылок <a> при наведении,
  чтобы они оставались интерактивными.
*/
.text-only-section a:hover,
.text-image-section .text-column a:hover {
    color: var(--button-color); /* Текст ссылки становится зеленым при наведении */
}

/* --- Секция с картинкой на всю ширину --- */
.full-width-image-section {
    /* Добавляем отступы сверху и снизу, чтобы отделить блок от остального контента */
    padding: 60px 0;
    background-color: var(--main-bg); /* Используем основной цвет фона */
}

.full-width-image-section img {
    width: 100%; /* Картинка растягивается на всю ширину контейнера */
    height: auto; /* Высота подстраивается автоматически, чтобы сохранить пропорции */
    display: block; /* Убирает возможные лишние отступы под картинкой */
    border-radius: 12px; /* Скругляем углы, чтобы выглядело современно */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* Добавляем тень для объема */
}


/* --- Адаптивность для нового блока --- */
@media (max-width: 768px) {
    .full-width-image-section {
        padding: 40px 0; /* Уменьшаем отступы на мобильных устройствах */
    }
}