:root {
    --main-bg: #0D0D0D;
    --card-bg-blur: rgba(26, 26, 26, 0.75);
    --accent-color: #00448a;
    --accent-light: #0063c7;
    --text-color: #EAEAEA;
    --hint-color: #999;
    --input-bg: #282828;
    --border-color: #444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--main-bg); 
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    position: relative; 
    
    /* Восстановлено: Возвращаем min-height: 100% или 100vh */
    min-height: 100vh; /* Если нужен фуллскрин, но это будет прыгать */
    
    scrollbar-width: none; 
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none; 
    width: 0;
}

.container {
    max-width: 600px;
    margin: auto;
    
    /* Отступы по бокам - здесь вы можете оставить 20px или увеличить */
    padding: 0 20px; 
    
    /* Восстановлено: Вернули динамическую высоту, которая вызывает скачки */
    min-height: 100vh; 
    
    /* УДАЛЕНО: height: 100%; */
    /* УДАЛЕНО: overflow-y: auto; */
    /* УДАЛЕНО: -webkit-overflow-scrolling: touch; */
    
    box-sizing: border-box;
}

.header {
    text-align: center;
    padding: 30px 0 20px;
    position: relative;
    z-index: 1;
}

.logo-text {
    color: var(--accent-light);
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 5px;
    text-shadow: 0 0 5px rgba(0, 99, 199, 0.5);
}

.logo-car {
    font-size: 4em;
    line-height: 0.5;
    color: var(--accent-light);
}

.card {
    background-color: var(--card-bg-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 25px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6), 0 0 5px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.label {
    display: block;
    font-size: 0.9em;
    color: var(--hint-color);
    margin-bottom: 5px;
}

/* ======================================= */
/* 5. ПОЛЯ ВВОДА (INPUTS) - НЕОНОВОЕ МЕРЦАНИЕ */
/* ======================================= */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
textarea {
    width: 100%;
    padding: 15px 12px;
    margin-top: 5px;
    margin-bottom: 25px;

    box-sizing: border-box;
    /* Базовая, слегка заметная рамка */
    border: 1px solid var(--border-color);
    border-radius: 10px;

    font-size: 1.1em;
    background-color: var(--input-bg);
    color: var(--text-color);
    outline: none;

    /* Начальная тень для "выключенного" состояния */
    box-shadow: 0 0 0 0 rgba(0, 99, 199, 0);

    /* Плавный переход для цвета рамки и тени */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;

    -moz-appearance: textfield;
}

/* Стили для textarea */
textarea {
    resize: vertical;
    min-height: 80px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input::placeholder {
    color: var(--hint-color);
}

/* Эффект при ФОКУСЕ: Активируем НЕОНОВОЕ СВЕЧЕНИЕ */
input:focus,
textarea:focus {
    /* Рамка становится акцентного цвета */
    border-color: var(--accent-light);

    /* Основной неоновый ореол */
    box-shadow:
        0 0 10px var(--accent-light),
        0 0 20px var(--accent-color);

    /* Активируем мерцание */
    animation: neon-flicker 1.5s infinite alternate;
}

/* ======================================= */
/* 6. КНОПКИ ВЫБОРА (ТИП АВТО, ГОДЫ) */
/* ======================================= */
.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 20px;
}

/* Базовый стиль: ПОЛНОЕ скругление 15px */
.choice-button {
    padding: 12px 10px;
    border: 1px solid var(--input-bg);
    border-radius: 15px;
    /* <--- БАЗОВОЕ ПОЛНОЕ СКРУГЛЕНИЕ для ВСЕХ, кроме крайних */
    background-color: var(--input-bg);
    color: var(--text-color);
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    text-align: center;
}

/* Стиль ВЫБРАННОЙ (активной) кнопки */
.choice-button.selected {
    background: linear-gradient(145deg, var(--accent-light), var(--accent-color));
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 99, 199, 0.7);
}


/* --- КОРРЕКТНЫЕ УНИКАЛЬНЫЕ СТИЛИ ДЛЯ КРАЙНИХ КНОПОК --- */
/* Используем короткую запись для гарантированного переопределения */

/* 1. Первая кнопка (САМЫЙ ПЕРВЫЙ ГОД) */
.choice-button.first-in-grid {
    /* [верх-лево] [верх-право] [низ-право] [низ-лево] */
    border-radius: 15px 0 0 0 !important;
}

/* 2. Последняя кнопка (САМЫЙ ПОСЛЕДНИЙ ГОД) */
.choice-button.last-in-grid {
    /* [верх-лево] [верх-право] [низ-право] [низ-лево] */
    border-radius: 0 0 15px 0 !important;
}


/* Стиль для кнопок внутри диапазона (сохранен из вашего кода) */
.choice-button.in-range {
    background-color: #333;
    border-color: #333;
    color: var(--text-color);
}

/* Стиль при наведении (для десктопа) */
.choice-button:not(.selected):hover {
    background-color: #383838;
}

/* ======================================= */
/* 7. ИНДИКАТОР ШАГОВ (ТОЧКИ) */
/* ======================================= */
.step-indicator {
    display: flex;
    justify-content: center;
    margin: 20px 0 30px;
    position: relative;
    z-index: 1;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: var(--input-bg);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--accent-light);
}

/* ======================================= */
/* 8. СТИЛИ НАВИГАЦИОННЫХ КНОПОК */
/* ======================================= */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #282828;
}

.nav-button {
    flex: 1;
    padding: 15px;
    border-radius: 15px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
    border: none;

    /* === ИЗМЕНЕНИЯ ДЛЯ НЕАКТИВНЫХ КНОПОК (лучше видно на стекле) === */
    background-color: #383838;
    /* Чуть светлее, чем input-bg */
    color: var(--hint-color);
    opacity: 0.8;
    /* Увеличение непрозрачности с 0.6 до 0.8 */
}

.nav-button.back {
    background-color: var(--input-bg);
    color: var(--accent-light);
    opacity: 1;
}

.nav-button.next.active {
    background: linear-gradient(145deg, var(--accent-light), var(--accent-color));
    color: #fff;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 99, 199, 0.7);
}

/* ======================================= */
/* 9. СТИЛИ ДЛЯ ШАГА ПРОВЕРКИ ДАННЫХ (ШАГ 6) */
/* ======================================= */
.review-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #333;
    padding-bottom: 5px;
}

.review-field-label {
    color: var(--hint-color);
    font-size: 0.9em;
}

.review-field-value {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-field-edit {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 1.2em;
    cursor: pointer;
    padding: 0;
    margin: 0;
    transform: translateY(2px);
}

/* ======================================= */
/* 10. СТИЛИ АВТОПОДСКАЗКИ */
/* ======================================= */
.autocomplete-list {
    position: relative;
    margin-top: 5px;
    z-index: 10;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 10px;
    background-color: var(--input-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 1px solid #383838;
}

.autocomplete-item {
    padding: 12px;
    cursor: pointer;
    color: var(--text-color);
    font-size: 1em;
    border-bottom: 1px solid #333;
    transition: background-color 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #383838;
    color: var(--accent-light);
}

.autocomplete-item strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* ======================================= */
/* 11. НАЛОЖЕНИЕ НА ФОН (ФИКСИРОВАННЫЙ БЕЗ СКАЧКОВ) */
/* ======================================= */
body::before {
    content: '';
    
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    
    /* Восстановлено: Вернули динамическую высоту (будет скакать) */
    height: 100vh; 
    
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%), 
                url('./background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    z-index: -1; 
}

/* ======================================= */
/* 12. СТИЛИ ДЛЯ FAQ-АККОРДЕОНА (КАРТОЧКИ) */
/* ======================================= */

.faq-item {
    /* Применяем стили как у .card */
    background-color: var(--card-bg-blur);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 20px;
    /* Немного меньше, чем у основной карточки */
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Более мягкая тень */
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;

    /* Убираем старую границу */
    border-bottom: none;
}

.faq-question {
    padding: 15px 10px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-color);
    transition: color 0.2s, background-color 0.2s;
}

.faq-question:hover {
    color: var(--accent-light);
    /* При наведении делаем фон чуть темнее */
    background-color: rgba(0, 0, 0, 0.15);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 10px;
    font-size: 0.95em;
    color: var(--hint-color);
    /* Фон для ответа должен быть прозрачным или очень темным, чтобы не перебивать подложку */
    background-color: transparent;
}

.faq-answer p {
    margin-top: 0;
    padding-bottom: 15px;
    line-height: 1.5;
    /* Добавляем разделитель сверху для ответа */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
}

/* Стили для маркеров */
/* ... (остальной код для ul, li, ::before остается без изменений) ... */

.faq-answer ul {
    padding-left: 20px;
    padding-bottom: 15px;
    list-style-type: none;
    margin-top: 0;
}

.faq-answer ul li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.faq-answer ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: bold;
}

/* Стиль для активного аккордеона */
.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.faq-item.active .faq-question {
    color: var(--accent-light);
    /* Убираем лишний фон, чтобы подложка была видна */
    background-color: transparent;
}

/* Иконка-стрелка */
/* ... (остальной код для .faq-icon остается без изменений) ... */
.faq-icon {
    width: 20px;
    height: 20px;
    margin-left: 10px;
    display: inline-block;
    vertical-align: middle;
    background-color: var(--accent-light);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9l-7 7l-7-7'/%3E%3C/svg%3E") no-repeat 50% 50%;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m19 9l-7 7l-7-7'/%3E%3C/svg%3E") no-repeat 50% 50%;

    transform: rotate(0deg);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(-180deg);
}

/* ======================================= */
/* 14. ПРЕДЗАГРУЗЧИК (PRELOADER) */
/* ======================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* ИСПРАВЛЕНИЕ: ГАРАНТИЯ ВЫСОТЫ ПО ВИДОВОМУ ОКНУ (100vh) */
    height: 100vh !important;

    background-color: var(--main-bg);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* --- НОВЫЙ СТИЛЬ СПИННЕРА (ДВОЙНОЕ КОЛЬЦО) --- */
.loader {
    width: 60px;
    /* Немного увеличим размер */
    height: 60px;

    /* Базовая граница (фоновая, менее заметная) */
    border: 6px solid rgba(255, 255, 255, 0.1);

    /* Анимированная граница акцентного цвета */
    border-top-color: var(--accent-light);
    border-right-color: var(--accent-color);
    /* Добавляем второй цвет для градиента */

    border-radius: 50%;

    /* Добавляем легкую тень, имитирующую свечение */
    box-shadow: 0 0 15px var(--accent-light);

    /* Запускаем анимацию */
    animation: spin 0.8s linear infinite;
    /* Ускорим анимацию для динамики */
}

/* Анимация вращения */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ======================================= */
/* 15. СТИЛИ ДЛЯ КАРТОЧЕК МЕНЕДЖЕРОВ */
/* ======================================= */
.contact-card {
    display: flex;
    /* Изменено: Используем строку, чтобы имя и иконка были на одной линии */
    flex-direction: row; 
    
    /* Добавлено: Центрируем содержимое по вертикали */
    align-items: center; 
    
    /* Изменено: Растягиваем на всю ширину и убираем центрирование текста */
    justify-content: space-between; 
    
    /* Используем ваши переменные */
    background-color: var(--card-bg-blur);
    backdrop-filter: blur(8px);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    
    /* Убрал text-align: center; */
    text-decoration: none; 
    color: var(--text-color); 
    transition: transform 0.2s, box-shadow 0.2s;
}
.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Стиль для кнопки Telegram */
.main-contact-button {
    display: block;
    width: 100%;
    padding: 20px 0px;
    margin-bottom: 25px; /* Отступ после основной кнопки */
    /* Используем градиент как для активной кнопки 'Next' */
    background: linear-gradient(145deg, var(--accent-light), var(--accent-color));
    color: #fff;
    text-decoration: none;
    border-radius: 15px; /* Большие скругления для главной кнопки */
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 99, 199, 0.8);
    transition: opacity 0.2s;
}
.main-contact-button:hover {
    opacity: 0.9;
}
.contact-info {
    /* Добавлено: Позволяет имени занимать все доступное место */
    flex-grow: 1; 
    /* Добавлено: Центрирует текст внутри себя */
    text-align: center; 
}

.contact-name {
    margin: 0; /* Увеличил верхний отступ, чтобы разделить от иконки */
    color: var(--text-color);
    font-size: 1.3em;
    font-weight: 400;
}

.contact-icon {
    font-size: 2.5em; 
    color: var(--text-color); 
    line-height: 1;
    margin-left: 10px; 
    filter: grayscale(1) brightness(2);
}
.spacer {
    /* Добавлено: Создает невидимый элемент, равный по ширине иконке */
    width: 35px; /* Ширина иконки (2.5em = ~35px) + небольшой отступ */
    height: 1px;
}

.contact-button:hover {
    background-color: var(--accent-light);
}

