/* --- Общие настройки и переменные --- */
:root {
    --primary-color: #00ff9d;
    --bg-dark: #0d1117;
    --text-light: #e6edf3;
    --text-dark: #7d8590;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: hidden; }
body { font-family: 'Montserrat', sans-serif; background-color: var(--bg-dark); color: var(--text-light); }
.container { max-width: 1280px; width: 90%; margin: 0 auto; }

/* --- Хедер --- */
.site-header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); display: flex; align-items: center; z-index: 100; background: rgba(13, 17, 23, 0.5); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { flex: 0 1 auto; }
.logo-img { height: calc(var(--header-height) * 0.6); display: block; }
.header-left, .header-right { flex: 1 0 0; display: flex; align-items: center; gap: 20px; }
.header-left { justify-content: flex-start; }
.header-right { justify-content: flex-end; }
.hamburger-menu { display: none; }

/* --- Десктопная навигация --- */
.desktop-nav ul { list-style: none; display: flex; gap: 22px; }
.nav-link { color: var(--text-light); text-decoration: none; font-weight: 500; position: relative; transition: color 0.3s ease; }
.desktop-nav .nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 100%; height: 2px; background-color: var(--primary-color); transform: scaleX(0); transform-origin: center; transition: transform 0.4s ease; }
.desktop-nav .nav-link:hover, .desktop-nav .nav-link.active { color: var(--primary-color); }
.desktop-nav .nav-link:hover::after, .desktop-nav .nav-link.active::after { transform: scaleX(1); }

/* --- Управляющие элементы --- */
.lang-switcher { display: flex; background-color: rgba(255, 255, 255, 0.05); border-radius: 20px; padding: 4px; }
.lang-btn { background: none; border: none; color: var(--text-dark); font-weight: 700; padding: 6px 12px; border-radius: 16px; cursor: pointer; transition: all 0.3s ease; font-family: 'Montserrat', sans-serif; }
.lang-btn.active { background-color: var(--primary-color); color: var(--bg-dark); }
.btn.login-btn { display: flex; background-color: transparent; border: 1px solid var(--primary-color); color: var(--primary-color); padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; font-family: 'Montserrat', sans-serif; text-decoration: none; }
.login-btn:hover { background-color: var(--primary-color); color: var(--bg-dark); }

/* Убираем подчеркивание у ссылок в переключателе языков */
.lang-switcher a.lang-btn { text-decoration: none; }

/* --- Герой (Первый экран) --- */
.hero-section { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: var(--header-height) 20px 20px; text-align: center; background-image: url('/images/first-screen-image.webp'); background-size: cover; background-position: center; background-repeat: no-repeat; }

/* --- Контейнер для двух кнопок --- */
.hero-buttons-wrapper { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; flex-wrap: wrap; }

/* --- Стили для самих кнопок --- */
.hero-buttons-wrapper .cta-btn { min-width: 250px; }

/* --- Адаптивность для мобильных устройств --- */
@media (max-width: 600px) {
    .hero-buttons-wrapper {
        flex-direction: column; /* Ставим кнопки в столбик */
        gap: 15px; /* Уменьшаем расстояние между ними */
        width: 100%; /* Заставляем контейнер занять всю доступную ширину */
    }

    .hero-buttons-wrapper .cta-btn {
        width: 100%; /* Растягиваем каждую кнопку на всю ширину */
        max-width: 320px; /* Но ограничиваем максимальную ширину для эстетики */
        min-width: auto; /* Сбрасываем минимальную ширину */
    }
}

/* Темное наложение для читабельности текста */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(13, 17, 23, 0.5), rgba(13, 17, 23, 0.9));
    z-index: 1; /* Наложение под контентом */
}

/* Контент должен быть НАД наложением */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-title { font-size: 4rem; font-weight: 900; line-height: 1.1; text-shadow: 0 0 5px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.7); }
.hero-subtitle { font-size: 1.2rem; color: var(--text-dark); margin: 20px auto 40px; max-width: 600px; }
.cta-btn { background: linear-gradient(45deg, var(--primary-color), #00ffc3); color: var(--bg-dark); border: none; padding: 18px 40px; font-size: 1.2rem; box-shadow: 0 0 20px rgba(0, 255, 157, 0.4); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; border-radius: 8px; font-weight: 700; font-family: 'Montserrat', sans-serif; text-decoration: none; }
.cta-btn:hover { transform: scale(1.05); box-shadow: 0 0 30px rgba(0, 255, 157, 0.7); }

/* --- МОБИЛЬНЫЙ ОВЕРЛЕЙ --- */
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--bg-dark); z-index: 1000; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-overlay.is-open { opacity: 1; pointer-events: all; }
.mobile-overlay-header { display: flex; justify-content: flex-end; align-items: center; width: 100%; height: var(--header-height); padding: 0 5%; border-bottom: 1px solid var(--border-color); }
.nav-close-btn { font-size: 4.5rem; font-weight: 300; color: var(--primary-color); cursor: pointer; }
.mobile-overlay-content { flex-grow: 1; display: flex; justify-content: center; align-items: center; }
.mobile-overlay-content ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 50px; }
.mobile-overlay .nav-link { font-size: 1.8rem; font-weight: 700; text-transform: uppercase; }
.mobile-overlay .nav-link-highlighted { border: 2px solid var(--primary-color); padding: 10px 30px; border-radius: 50px; transition: all 0.3s ease; }
.mobile-overlay .nav-link-highlighted:hover { background-color: var(--primary-color); color: var(--bg-dark); transform: scale(1.05); }

/* --- МЕДИА-ЗАПРОСЫ (МОБИЛЬНАЯ ВЕРСТКА) --- */
@media (max-width: 992px) {
    .desktop-nav, .header-right .login-btn { display: none; }
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; /* Уменьшил ширину для лучшего вида */ height: 25px; cursor: pointer; }
    .hamburger-menu span { width: 100%; height: 3px; background-color: var(--text-light); border-radius: 3px; }
    .hero-title { font-size: 3.2rem; line-height: 1.2; }
    .hero-subtitle { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .logo-img { height: calc(var(--header-height) * 0.5); }
    .hero-subtitle { font-size: 1rem; }
    .cta-btn { width: 100%; padding: 15px 20px; font-size: 1rem; }
    .mobile-overlay .nav-link { font-size: 1.5rem; }
}

/* --- СТИЛИ ДЛЯ ОБЫЧНЫХ ТЕКСТОВЫХ БЛОКОВ --- */

/* Стили для подзаголовков h3 */

.content-text h3 { font-size: 1.6rem; font-weight: 700; color: var(--text-light); margin-top: 40px; margin-bottom: 15px; }
/* Стили для подзаголовков h4 */
.content-text h4 { font-size: 1.3rem; font-weight: 700; color: var(--text-light); margin-top: 40px; margin-bottom: 15px; }

/* Общие стили для списков */
.content-text ul,
.content-text ol { padding-left: 25px; margin-bottom: 30px; }
.content-text li { color: var(--text-dark); line-height: 1.8; margin-bottom: 12px; padding-left: 10px; }

/* Стили для маркеров (точек) в маркированном списке */
.content-text ul li::marker { color: var(--primary-color); font-size: 1.2em; }

/* Стили для номеров в нумерованном списке */
.content-text ol li::marker { color: var(--text-light); font-weight: 700; }

/* --- СТИЛИ КОНТЕНТНОГО БЛОКА с картинкой --- */
.content-section { padding: 80px 0; opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.content-section.is-visible { opacity: 1; transform: translateY(0); }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-title { font-size: 2.6rem; font-weight: 900; margin-bottom: 25px; line-height: 1.2; overflow-wrap: break-word; word-break: break-word; }
.content-grid .section-title { text-align: center; }
.content-text p { font-size: 1.1rem; color: var(--text-dark); line-height: 1.8; margin-bottom: 30px; }
.features-list { list-style: none; padding: 0; margin-bottom: 40px; display: flex; flex-direction: column; gap: 15px; }
.features-list li { position: relative; padding-left: 30px; font-weight: 500; }
.features-list li::before { content: '✓'; position: absolute; left: 0; top: 2px; color: var(--primary-color); font-weight: 900; }
.content-image img { width: 100%; height: auto; display: block; border-radius: 12px; }
.cta-btn-secondary { font-family: 'Montserrat', sans-serif; background-color: transparent; border: 2px solid var(--primary-color); color: var(--primary-color); padding: 15px 35px; border-radius: 8px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: all 0.3s ease; display: block; width: fit-content;  margin: 40px auto 0; }
.cta-btn-secondary:hover { background-color: var(--primary-color); color: var(--bg-dark); }

@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .content-image {
        order: -1;
    }
    .section-title {
        font-size: 1.8rem;
    }
}

/* --- СТИЛИ ДЛЯ БЛОКА ТОЛЬКО С ТЕКСТОМ --- */
.text-only-section .content-text { max-width: 800px; margin: 0 auto; text-align: center; }
.text-only-section .features-list,
.text-only-section .cta-btn-secondary { display: none; }

/* --- СТИЛИ ДЛЯ НУМЕРОВАННОГО СПИСКА --- */
.numbered-list { list-style: none; counter-reset: custom-counter; margin: 40px auto; padding: 0; text-align: left; max-width: 600px; }
.numbered-list li { counter-increment: custom-counter; position: relative; padding-left: 55px; margin-bottom: 25px; font-size: 1.1rem; line-height: 1.7; color: var(--text-dark); font-weight: 500; }
.numbered-list li::before { content: counter(custom-counter); position: absolute; left: 0; top: -2px; color: var(--primary-color); font-size: 1.5rem; font-weight: 900; background-color: rgba(0, 255, 157, 0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; line-height: 1; }
.numbered-list li strong,
.numbered-list li b { color: var(--text-light); font-weight: 700; border-bottom: 1px solid var(--primary-color); padding-bottom: 2px; }

/* --- Стили для акцентного текста и ссылок в контенте --- */
.hero-subtitle strong { color: var(--text-light); font-weight: 700; }
.content-text strong,
.content-text b { color: var(--text-light); font-weight: 700; }
.content-text a:not(.cta-btn-secondary) { color: var(--text-light); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--primary-color); padding-bottom: 2px; transition: color 0.3s ease, border-color 0.3s ease; }
.content-text a:not(.cta-btn-secondary):hover { color: var(--primary-color); border-color: transparent; }

/* --- СТИЛИ ДЛЯ ИНФОРМАЦИОННЫХ ТАБЛИЦ (2 СТОЛБЦА) --- */

.info-table { width: 100%; border-collapse: collapse; margin: 40px 0; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; font-size: 1rem; }
.info-table td { padding: 18px 20px; border-bottom: 1px solid var(--border-color); vertical-align: top; line-height: 1.7; }
.info-table tr td:first-child { width: 30%; font-weight: 700; color: var(--text-light); }
.info-table tr td:last-child { color: var(--text-dark); }
.info-table tr:last-child td { border-bottom: none; }
.info-table tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.02); }
.info-table tr:hover { background-color: rgba(0, 255, 157, 0.08); cursor: default; }

/* --- АДАПТИВНЫЕ СТИЛИ ДЛЯ ИНФОРМАЦИОННОЙ ТАБЛИЦЫ НА МОБИЛЬНЫХ --- */
@media (max-width: 768px) {

    /* Превращаем таблицу в подобие списка блоков */
    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table td {
        display: block;
        width: 100%;
    }

    /* Убираем общую рамку и скругление у таблицы */
    .info-table {
        border: none;
        border-radius: 0;
    }

    /* Каждая бывшая строка теперь - отдельный блок с отступом */
    .info-table tr {
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid var(--border-color);
    }
    .info-table tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

    /* Стили для ячейки-заголовка (бывшая левая колонка) */
    .info-table tr td:first-child {
        width: auto; /* Сбрасываем жесткую ширину в 30% */
        padding: 0 0 10px 0; /* Убираем лишние отступы */
        border: none; /* Убираем нижнюю границу ячейки */
        font-size: 1.2rem; /* Делаем заголовок чуть крупнее */
        background-color: transparent !important; /* Убираем "зебру" */
    }

    /* Стили для ячейки-описания (бывшая правая колонка) */
    .info-table tr td:last-child {
        padding: 0; /* Убираем лишние отступы */
        border: none;
    }
    
    /* Отключаем эффект подсветки при наведении на мобильных */
    .info-table tr:hover {
        background-color: transparent;
    }
}

/* --- Класс-помощник для центрирования текстовых блоков --- */
.content-centered { max-width: 900px; margin-left: auto; margin-right: auto; text-align: left; }
.content-centered .section-title { text-align: center; }

/* --- СТИЛИ ДЛЯ FAQ-БЛОКА --- */
.faq-section .section-title { text-align: center; }
.faq-list { max-width: 800px; margin: 50px auto 0; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 25px 15px; cursor: pointer; transition: background-color 0.3s ease; }
.faq-question:hover { background-color: rgba(255, 255, 255, 0.03); }
.faq-question span { font-size: 1.2rem; font-weight: 700; color: var(--text-light); transition: color 0.3s ease; }
.faq-question:hover span { color: var(--primary-color); }
.faq-icon { font-size: 1.8rem !important; font-weight: 900 !important; color: var(--primary-color) !important; transition: transform 0.4s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease-out; }
.faq-answer p { padding: 0 20px; font-size: 1.1rem; color: var(--text-dark); line-height: 1.8; }

/* Стили для активного (открытого) элемента */
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { max-height: 300px; padding-bottom: 30px; }

/* --- СТИЛИ ФУТЕРА --- */
.main-footer { background-color: var(--bg-dark); padding: 80px 0 40px 0; border-top: 1px solid var(--border-color); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-logo { height: 40px; margin-bottom: 20px; opacity: 0.8; }
.footer-text { color: var(--text-dark); line-height: 1.7; font-size: 1rem; }
.footer-heading { color: var(--primary-color); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 15px; font-size: 1rem; }
.footer-links a { color: var(--text-dark); text-decoration: none; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--primary-color); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.payment-methods { display: flex; gap: 15px; align-items: center; }
.payment-methods img { height: 24px; opacity: 0.6; transition: opacity 0.3s ease; }
.payment-methods img:hover { opacity: 1; }
.copyright { font-size: 14px; color: var(--text-dark); }

@media (max-width: 768px) {
    .footer-grid, 
    .footer-grid .footer-column {
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
    }
}

/* --- Плавная прокрутка и коррекция для якорных ссылок --- */

html {
    scroll-behavior: smooth;
}

/* --- Добавляем отступ сверху --- */
#registration { scroll-margin-top: calc(var(--header-height) + 10px); }
#bonus { scroll-margin-top: calc(var(--header-height) + 10px); }
#mirror { scroll-margin-top: calc(var(--header-height) + 10px); }
#mobile { scroll-margin-top: calc(var(--header-height) + 10px); }

@media (max-width: 768px) {
    
    .content-text .numbered-list {   
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        max-width: 100%;
    }

    .content-centered {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-title {
        max-width: 90%; 
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem; 
        max-width: 100%;
    }
}

.error-section {
    background-color: var(--bg-dark);
    background-image: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - var(--header-height));
    padding: 40px 0;
}

.error-content {
    /* Просто контейнер для текста, стили не нужны */
}

.error-code { font-family: 'Montserrat', sans-serif; font-size: 10rem; font-weight: 900; line-height: 1; color: var(--primary-color); text-shadow: 0 0 15px rgba(0, 255, 157, 0.2); }
.error-message { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--text-dark); max-width: 500px; margin: 20px auto 40px; }
.error-button { min-width: 280px; }

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .error-code {
        font-size: 8rem;
    }
    .error-message {
        font-size: 1.1rem;
    }
}