/* =========================================
   1. БАЗОВЫЕ НАСТРОЙКИ И ПЕРЕМЕННЫЕ
========================================= */
:root {
    --blue-950: #002E5D;
    --blue-900: #00366B;
    --blue-800: #004B87;
    --blue-700: #005FA9;
    --blue-600: #0072BD;
    --cyan: #00AEEF;
    --orange: #FF6900;
    --orange-hover: #FF7D1A;
    --white: #FFFFFF;
    --shadow: 0 12px 35px rgba(0,42,82,.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Чтобы отступы не распирали блоки */
}

body {
    font-family: Arial, sans-serif;
    background: var(--blue-900);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden; /* Защита от бокового скролла */
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Главный контейнер, который центрирует сайт на ПК и дает отступы на мобилках */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. ШАПКА САЙТА И НАВИГАЦИЯ
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--blue-950);
    box-shadow: 0 3px 20px rgba(0,0,0,.14);
}

.top-header {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    border-radius: 8px;
    font-weight: 900;
    font-size: 20px;
}

.logo-name {
    font-size: 20px;
    font-weight: 900;
}

.logo-name span {
    color: var(--orange);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s ease;
}

.download-link { background: rgba(255,255,255,.07); }
.login-btn { background: var(--blue-700); }
.register-btn { background: var(--orange); }
.header-actions a:hover { transform: translateY(-1px); }

/* Меню */
.main-nav {
    background: var(--blue-800);
}

.nav-inner {
    display: flex;
    gap: 5px;
    overflow-x: auto; /* Скролл пальцем на мобилках */
    scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar { display: none; }

.nav-link {
    padding: 15px 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0.8;
}

.nav-link.active, .nav-link:hover {
    opacity: 1;
    background: rgba(255,255,255,0.05);
}

/* =========================================
   3. ГЛАВНЫЙ БАННЕР (HERO)
========================================= */
.hero {
    padding: 60px 0;
    background: linear-gradient(115deg, var(--blue-950) 0%, var(--blue-900) 45%, var(--blue-700) 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Две колонки на ПК */
    align-items: center;
    gap: 40px;
}

.hero-label {
    display: inline-block;
    padding: 5px 15px;
    background: var(--orange);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span { color: var(--cyan); }

.hero-description {
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 25px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.button-orange { background: var(--orange); }
.button-outline { border: 1px solid rgba(255,255,255,0.3); }
.button:hover { transform: translateY(-2px); }

.hero-features {
    display: flex;
    gap: 20px;
}

.hero-feature { font-size: 13px; font-weight: 700; }
.feature-number { color: var(--orange); }

/* Правая карточка */
.hero-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    width: 100%;
    max-width: 380px;
    padding: 30px;
    background: var(--blue-800);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.visual-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.visual-logo { font-weight: 900; font-size: 22px; }
.visual-logo span { color: var(--orange); }
.visual-dot { width: 10px; height: 10px; background: var(--orange); border-radius: 50%; }
.visual-title { font-size: 24px; font-weight: 900; margin-bottom: 5px; }
.visual-subtitle { color: rgba(255,255,255,0.6); font-size: 13px; margin-bottom: 20px; }
.visual-items { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.visual-item { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; }
.visual-button { background: var(--orange); width: 100%; }

/* =========================================
   4. ФОРМА АВТОРИЗАЦИИ
========================================= */
.auth-wrapper {
    padding: 60px 0;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--blue-950);
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow);
}

.auth-card h2 { text-align: center; margin-bottom: 10px; font-weight: 900; }
.auth-subtitle { text-align: center; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 25px; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: 0.8; }
.form-group input { height: 45px; padding: 0 15px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; color: #fff; }
.form-group input:focus { outline: none; border-color: var(--orange); }
.auth-btn { width: 100%; margin-top: 10px; border: none; cursor: pointer; }
.auth-footer { text-align: center; font-size: 13px; margin-top: 20px; color: rgba(255,255,255,0.5); }
.auth-footer a { color: var(--orange); font-weight: 700; }

/* =========================================
   5. ПОДВАЛ (FOOTER)
========================================= */
.site-footer {
    background: #00284F;
    padding: 50px 0 20px;
    font-size: 13px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about p { color: rgba(255,255,255,0.5); margin-top: 15px; font-size: 12px; }
.footer-column { display: flex; flex-direction: column; gap: 10px; }
.footer-column h3 { font-size: 15px; font-weight: 900; margin-bottom: 5px; }
.footer-column a { color: rgba(255,255,255,0.5); }
.footer-column a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }
.footer-warning { display: flex; gap: 15px; align-items: center; margin-bottom: 15px; }
.footer-warning strong { background: var(--orange); padding: 3px 8px; border-radius: 4px; font-size: 11px; }
.footer-warning span { color: rgba(255,255,255,0.5); font-size: 12px; }
.footer-disclaimer { color: rgba(255,255,255,0.4); font-size: 11px; margin-bottom: 10px; }
.copyright { color: rgba(255,255,255,0.3); font-size: 11px; }

/* =========================================
   6. ЧИСТАЯ АДAПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ)
========================================= */
@media (max-width: 768px) {
    /* Перестраиваем шапку в столбик, чтобы кнопки не наезжали */
    .header-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions a {
        flex: 1; /* Кнопки поделят экран поровну */
        font-size: 12px;
        padding: 0;
    }
    
    .download-link { display: none; } /* Спрячем 'Скачать ПК' на телефонах */

    /* Переводим двухколоночный баннер ПК в одну колонку на мобилке */
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Подвал в одну колонку */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}
/* =========================================
   ВОЗВРАЩАЕМ КРАСИВЫЙ СПОЙЛЕР FAQ (АККОРДЕОН)
========================================= */
.faq-accordion {
    max-width: 850px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left; /* Чтобы текст вопросов не центрировался */
}

.faq-item {
    background: var(--blue-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.2s ease;
}

/* Главный кликабельный вопрос */
.faq-item summary {
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    cursor: pointer;
    list-style: none; /* Убираем стандартную стрелочку браузера */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Убираем стрелочку в Safari */
}

/* Кастомная оранжевая стрелочка справа */
.faq-item summary::after {
    content: "↓";
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--white);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 900;
    transition: 0.3s ease;
    flex-shrink: 0;
}

/* Открытый ответ */
.faq-item .faq-content {
    padding: 0 25px 25px 25px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
    opacity: 0.9;
}

/* Эффект при наведении */
.faq-item:hover {
    border-color: var(--orange);
    transform: translateY(-1px);
}

/* Когда плашка FAQ ОТКРЫТА */
.faq-item[open] {
    background: var(--blue-950);
    border-color: var(--orange);
}

/* Поворачиваем стрелочку вверх при открытии */
.faq-item[open] summary::after {
    transform: rotate(180deg);
    background: var(--orange-hover);
}
/* =========================================
   ВОЗВРАЩАЕМ ТЁМНО-СИНИЕ И КОНТУРНЫЕ КНОПКИ
========================================= */

/* Синяя кнопка (Вход в шапке и на сайте) */
.login-btn, .button-blue {
    background: var(--blue-700) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.login-btn:hover, .button-blue:hover {
    background: var(--blue-600) !important;
}

/* Контурная кнопка (Регистрация в шапке и прозрачные кнопки на сайте) */
.register-btn, .button-outline {
    background: transparent !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.register-btn:hover, .button-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
}

/* Общие стили для кнопок в шапке, чтобы они стояли ровно */
.header-actions a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    padding: 0 17px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    transition: .2s ease !important;
}
/* =========================================
   ИСПРАВЛЕННЫЕ СТИЛИ: ТОЛЬКО ДЛЯ ШАПКИ САЙТА
========================================= */

/* Применяем синий цвет СТРОГО к кнопке "Войти" в шапке */
.site-header .login-btn {
    background: var(--blue-700) !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.site-header .login-btn:hover {
    background: var(--blue-600) !important;
}

/* Применяем контурный стиль СТРОГО к кнопке "Регистрация" в шапке */
.site-header .register-btn {
    background: transparent !important;
    color: var(--white) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.site-header .register-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--white) !important;
}

/* Принудительно возвращаем оранжевый цвет кнопкам в формах и на баннере */
.auth-wrapper .auth-btn,
.auth-card .auth-btn,
.hero .button-orange,
.visual-card .visual-button {
    background: var(--orange) !important;
    color: var(--white) !important;
    border: none !important;
}

.auth-wrapper .auth-btn:hover,
.auth-card .auth-btn:hover,
.hero .button-orange:hover,
.visual-card .visual-button:hover {
    background: var(--orange-hover) !important;
}
