/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #ff3b3b;
    --primary-dark: #d62a2a;
    --accent: #ff3b3b;
    --accent-dark: #d62a2a;
    --accent-electric: #ff6b6b;
    --bg-dark: #070708;
    --bg-elevated: #0e0e12;
    --card-bg: rgba(22, 22, 28, 0.85);
    --text: #f4f4f5;
    --text-light: #a1a1aa;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(255, 59, 59, 0.35), 0 0 80px rgba(255, 107, 107, 0.12);
    --radius: 16px;
    --radius-lg: 22px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
    --success: #4CAF50;
    --error: #ff6b6b;
    --warning: #ff9800;
    /* Фон «как у чётных секций» — для карточек и повторного использования */
    --section-mesh-bg: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 59, 59, 0.04), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(255, 107, 107, 0.05), transparent 45%);
}
/* Font Awesome fallback на случай проблем с загрузкой */
.fas, .fab {
    display: inline-block;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
/* Стили для карты */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.transport-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}
/* Контейнер для изображения трассы */
.track-image-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--primary); /* Красная рамка в стиле Ватрушкина */
    box-shadow: 0 10px 30px rgba(255, 46, 46, 0.2);
    background: #1a1a1a;
}
/* По умолчанию скрываем ответ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding: 0 20px; /* Отступы внутри, когда закрыто */
}

/* Когда у родителя (faq-item) есть класс active — показываем ответ */
.faq-item.active .faq-answer {
    max-height: 1000px; /* Даем запас по высоте */
    opacity: 1;
    padding: 15px 20px; /* Возвращаем отступы */
}

/* Анимация иконки (стрелочки) */
.faq-question i {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
/* Добавить внутрь style.textContent */
        .modal-close-top {
            position: absolute;
            top: 20px;
            right: 20px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            color: white;
            font-size: 28px;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 100;
            transition: all 0.3s ease;
        }
        .modal-close-top:hover {
            background: var(--primary);
            transform: rotate(90deg);
        }
		.gallery-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 20px 0;
}

.gallery-track {
    display: flex;
    width: calc(250px * 8); /* Ширина одного фото * количество фото */
    animation: scrollRight 20s linear infinite;
}

.gallery-item {
    width: 250px;
    height: 180px;
    flex-shrink: 0;
    padding: 0 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid var(--primary);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

@keyframes scrollRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4)); } /* Смещение на половину трека */
}

/* Остановка при наведении */
.gallery-track:hover {
    animation-play-state: paused;
}
/* Настройки самого изображения */
.track-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover; /* Чтобы изображение заполняло область */
}

/* Эффект при наведении */
.track-image-container:hover .track-img {
    transform: scale(1.05); /* Легкое увеличение */
}

/* Стили для текстовой плашки поверх фото */
.track-img-overlay {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 46, 46, 0.9);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.transport-info ul {
    list-style: none;
    padding-left: 0;
}

.transport-info li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.transport-info li:before {
    content: "•";
    color: #ff6b00;
    position: absolute;
    left: 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 15px;
}

.contact-item i {
    color: #ff6b00;
    font-size: 1.2rem;
    margin-top: 3px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: #ff6b00;
    transform: translateY(-3px);
}
/* Если Font Awesome не загрузился, покажем символы */
body:not(.fonts-loaded) .fa-bolt:before { content: "⚡"; }
body:not(.fonts-loaded) .fa-phone:before { content: "📞"; }
body:not(.fonts-loaded) .fa-bars:before { content: "☰"; }
body:not(.fonts-loaded) .fa-calendar-star:before { content: "📅"; }
body:not(.fonts-loaded) .fa-leaf:before { content: "🌿"; }
body:not(.fonts-loaded) .fa-rocket:before { content: "🚀"; }
body:not(.fonts-loaded) .fa-shield-alt:before { content: "🛡️"; }
/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Roboto', sans-serif;
    /* Единый фон как у блока «Стоимость и услуги»: сетка + тёмная база */
    background: var(--section-mesh-bg), var(--bg-dark);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

::selection {
    background: rgba(255, 59, 59, 0.35);
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== УТИЛИТЫ ===== */
.section {
    padding: 88px 0;
    position: relative;
}

/* Фон страницы на body — секции без отдельных «чёрных» наслоений */
.section:nth-of-type(even) {
    background: transparent;
}

#about.section {
    background: transparent;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    padding-bottom: 22px;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-electric));
    border-radius: 4px;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.75s var(--ease-out-expo) 0.15s;
}

.section-title.revealed::after {
    transform: translateX(-50%) scaleX(1);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.65s var(--ease-out-expo) 0.08s, transform 0.65s var(--ease-out-expo) 0.08s;
}

.section-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}
/* Font Awesome: solid — Free 900; бренды — Brands 400 (иначе VK/Instagram не рисуются) */
.fas,
.fa-solid {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}

.fab,
.fa-brands {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
}

/* Если иконки не загрузились - покажем символы */
.fa-bolt:before { content: "⚡"; }
.fa-phone:before { content: "📞"; }
.fa-bars:before { content: "☰"; }
.fa-calendar-star:before { content: "📅"; }
/* Fallback для отсутствующих иконок */
.no-fontawesome .fas,
.no-fontawesome .fab {
    font-family: Arial, sans-serif !important;
    position: relative;
    padding-left: 20px;
}

.no-fontawesome .fa-bolt:before { content: "⚡"; font-family: Arial; }
.no-fontawesome .fa-phone:before { content: "📞"; font-family: Arial; }
.no-fontawesome .fa-bars:before { content: "☰"; font-family: Arial; }
.no-fontawesome .fa-calendar-star:before { content: "📅"; font-family: Arial; }
.no-fontawesome .fa-leaf:before { content: "🌿"; font-family: Arial; }
.no-fontawesome .fa-rocket:before { content: "🚀"; font-family: Arial; }
.no-fontawesome .fa-shield-alt:before { content: "🛡️"; font-family: Arial; }
.no-fontawesome .fa-user:before { content: "👤"; font-family: Arial; }
.no-fontawesome .fa-child:before { content: "👶"; font-family: Arial; }
.no-fontawesome .fa-gift:before { content: "🎁"; font-family: Arial; }
.no-fontawesome .fa-users:before { content: "👥"; font-family: Arial; }
.no-fontawesome .fa-graduation-cap:before { content: "🎓"; font-family: Arial; }
.no-fontawesome .fa-gamepad:before { content: "🎮"; font-family: Arial; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #e62828 50%, #ff6b35 100%);
    background-size: 200% 200%;
    color: white;
    border-color: transparent;
    transition: var(--transition), background-position 0.5s ease;
}

.btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-3px);
    box-shadow: var(--shadow), 0 0 24px rgba(255, 59, 59, 0.35);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--accent-electric);
    outline-offset: 3px;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Пропуск навигации (доступность и SEO-краулеры) */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* ===== ХЕДЕР ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding-top: env(safe-area-inset-top, 0);
    background: linear-gradient(180deg, rgba(7, 7, 8, 0.88) 0%, rgba(7, 7, 8, 0.65) 100%);
    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.header.is-scrolled {
    background: rgba(7, 7, 8, 0.94);
    border-bottom-color: rgba(255, 59, 59, 0.18);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 59, 59, 0.08) inset;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.logo {
    display: block;
    line-height: 0;
    text-decoration: none;
    flex-shrink: 0;
    z-index: 1002;
}

.logo-img {
    display: block;
    height: 48px;
    width: auto;
    max-width: min(280px, 46vw);
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

/* Текстовый логотип (если где-то остался) */
.logo-electric {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-vatrushkin {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.2rem 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0.35rem 0.5rem;
    flex: 1;
    max-width: 52rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: rgba(244, 244, 245, 0.88);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    padding: 0.5rem 0.65rem;
    border-radius: 999px;
    display: inline-block;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: #fff;
    background: rgba(255, 59, 59, 0.14);
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.2);
}

.nav-menu a:focus-visible {
    outline: 2px solid var(--accent-electric);
    outline-offset: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
    z-index: 1002;
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem 0.5rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: var(--transition);
    white-space: nowrap;
}

.header-phone:hover {
    border-color: rgba(255, 59, 59, 0.45);
    color: #fff;
    background: rgba(255, 59, 59, 0.1);
    box-shadow: 0 0 24px rgba(255, 59, 59, 0.15);
}

.header-phone:focus-visible {
    outline: 2px solid var(--accent-electric);
    outline-offset: 2px;
}

.header-phone-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #c92a2a 100%);
    color: #fff;
    font-size: 0.75rem;
    box-shadow: 0 4px 14px rgba(255, 59, 59, 0.35);
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    border-color: rgba(255, 59, 59, 0.4);
    color: var(--primary);
    background: rgba(255, 59, 59, 0.08);
}

.menu-toggle:focus-visible {
    outline: 2px solid var(--accent-electric);
    outline-offset: 2px;
}

@media (max-width: 1200px) and (min-width: 993px) {
    .nav-menu a {
        font-size: 0.66rem;
        letter-spacing: 0.09em;
        padding: 0.45rem 0.5rem;
    }

    .nav-menu {
        gap: 0.05rem;
        padding: 0.25rem 0.35rem;
    }

    .header-phone {
        font-size: 0.65rem;
        padding: 0.45rem 0.85rem 0.45rem 0.55rem;
    }
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ===== */
.floating-buy-btn {
    position: fixed;
    bottom: calc(30px + env(safe-area-inset-bottom, 0));
    right: calc(30px + env(safe-area-inset-right, 0));
    z-index: 999;
    background: linear-gradient(135deg, var(--primary) 0%, #ff6b35 100%);
    color: white;
    padding: 16px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 36px rgba(255, 59, 59, 0.45), 0 0 0 0 rgba(255, 59, 59, 0.4);
    transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s ease;
    animation: floatingPulse 2.8s ease-in-out infinite;
}

.floating-buy-btn:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 48px rgba(255, 59, 59, 0.55), 0 0 0 6px rgba(255, 59, 59, 0.12);
    animation: none;
}

.floating-buy-btn:focus-visible {
    outline: 2px solid var(--accent-electric);
    outline-offset: 4px;
}

@keyframes floatingPulse {
    0%, 100% { box-shadow: 0 12px 36px rgba(255, 59, 59, 0.45), 0 0 0 0 rgba(255, 59, 59, 0.35); }
    50% { box-shadow: 0 14px 40px rgba(255, 59, 59, 0.55), 0 0 0 12px rgba(255, 59, 59, 0); }
}

/* ===== ГЕРОЙ СЕКЦИЯ (ИСПРАВЛЕНЫ ШРИФТЫ ДЛЯ МОБИЛЬНЫХ) ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 59, 59, 0.22), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(255, 107, 107, 0.08), transparent),
        radial-gradient(ellipse 50% 30% at 0% 80%, rgba(255, 59, 59, 0.1), transparent);
    animation: meshDrift 18s ease-in-out infinite alternate;
}

@keyframes meshDrift {
    0% { opacity: 0.85; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.03); }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.08);
    animation: heroKenBurns 28s ease-in-out infinite alternate;
}

@keyframes heroKenBurns {
    0% { transform: scale(1.06); }
    100% { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(4, 4, 6, 0.55) 0%, rgba(7, 7, 10, 0.82) 45%, rgba(4, 4, 6, 0.92) 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-electric);
    margin-bottom: 1.25rem;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.28);
}

.hero-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-electric);
    box-shadow: 0 0 12px var(--accent-electric);
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.92); }
}

.hero-enter {
    opacity: 0;
    animation: heroEnterUp 0.9s var(--ease-out-expo) forwards;
}

.hero-enter--1 { animation-delay: 0.08s; }
.hero-enter--2 { animation-delay: 0.16s; }
.hero-enter--3 { animation-delay: 0.26s; }
.hero-enter--4 { animation-delay: 0.36s; }
.hero-enter--5 { animation-delay: 0.46s; }
.hero-enter--6 { animation-delay: 0.56s; }
.hero-enter--7 { animation-delay: 0.66s; }

@keyframes heroEnterUp {
    from {
        opacity: 0;
        transform: translateY(32px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 56rem;
    margin: 0 auto 1.5rem;
    gap: 0;
}

.hero-title-kicker {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.hero-title-lockup {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: 0;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.35rem, 7.5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 1.125rem;
}

.hero-title-accent {
    background: linear-gradient(120deg, #ffffff 0%, #ffe8e8 18%, var(--primary) 42%, #ff7b54 78%, var(--accent-electric) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    padding-right: 0.06em;
    filter: drop-shadow(0 2px 24px rgba(255, 59, 59, 0.25));
    animation: heroAccentGlow 5s ease-in-out infinite;
}

@keyframes heroAccentGlow {
    0%, 100% {
        filter: drop-shadow(0 2px 20px rgba(255, 59, 59, 0.22));
    }
    50% {
        filter: drop-shadow(0 2px 28px rgba(255, 59, 59, 0.35)) drop-shadow(0 0 20px rgba(255, 107, 107, 0.16));
    }
}

.hero-title-plain {
    color: #ffffff;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.45);
}

.hero-title-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.5rem 1.15rem 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.88);
    font-family: 'Roboto', sans-serif;
    text-transform: none;
    line-height: 1.3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.hero-title-location i {
    color: var(--accent-electric);
    font-size: 0.95em;
    opacity: 0.95;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 0 auto 1.75rem;
    padding: 0;
    max-width: 640px;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.hero-trust li i {
    color: var(--accent-electric);
    font-size: 0.85rem;
    opacity: 0.95;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-hero-cta {
    position: relative;
    overflow: hidden;
    padding: 16px 36px;
    font-size: 1.05rem;
    box-shadow: var(--shadow-glow);
    border: none;
}

.btn-hero-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%, rgba(255, 107, 107, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.75;
}

.btn-hero-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.btn-hero-inner {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

@keyframes btnShine {
    0%, 40% { left: -100%; }
    60%, 100% { left: 160%; }
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 107, 0.4);
    color: #fff;
}

.hero-countdown {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 20px 36px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.countdown-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.countdown-separator {
    color: var(--text);
}

/* ===== ОСОБЕННОСТИ ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background:
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 59, 59, 0.1), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(255, 107, 107, 0.08), transparent 45%),
        var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    text-align: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo),
        border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.features-grid .feature-card:nth-child(1) { transition-delay: 0.02s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.14s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(5) { transition-delay: 0.26s; }

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 59, 59, 0.45);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 59, 59, 0.08);
}

.feature-card.revealed:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

.feature-highlight {
    background:
        linear-gradient(135deg, rgba(255, 59, 59, 0.22), rgba(255, 107, 107, 0.1)),
        radial-gradient(ellipse 120% 80% at 50% 0%, rgba(255, 59, 59, 0.1), transparent 55%),
        radial-gradient(ellipse 80% 50% at 100% 100%, rgba(255, 107, 107, 0.08), transparent 45%),
        var(--card-bg);
    border-color: var(--primary);
}

/* ===== КАРТЫ ===== */
.karts-section {
    background: transparent;
}

.unlock-system {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.1), rgba(255, 107, 107, 0.06));
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

.unlock-system.revealed {
    opacity: 1;
    transform: translateY(0);
}

.unlock-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.unlock-info i {
    font-size: 3rem;
    color: var(--primary);
}

.unlock-rules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.rule {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rule-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    flex-shrink: 0;
}

.kart-category-switch {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.category-btn {
    padding: 12px 30px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-btn.active {
    background: var(--primary);
    color: white;
}

.karts-container {
    margin-top: 2rem;
}

.karts-grid {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.karts-grid.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.kart-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo),
        border-color 0.35s ease, box-shadow 0.35s ease;
}

.kart-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.kart-card:hover {
    border-color: rgba(255, 59, 59, 0.5);
    box-shadow: var(--shadow), 0 0 40px rgba(255, 59, 59, 0.08);
}

.kart-card.revealed:hover {
    transform: translateY(-10px);
}

.kart-featured {
    border-color: var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.kart-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.adult-age {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.kids-age {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.access-badge {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
    display: inline-block;
}

.unlocked {
    background: rgba(255, 46, 46, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.locked {
    background: rgba(255, 46, 46, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.kart-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.kart-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.kart-visual {
    position: relative;
    height: 220px;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.kart-image-frame {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    overflow: hidden;
}

.kart-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.kart-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #222, #444);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
}

.kart-img-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 2;
    text-align: center;
}

.kart-stats {
    margin-bottom: 1.5rem;
}

.stat {
    margin-bottom: 1rem;
}

.stat-label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.stat-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.stat-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 1s ease;
}

.stat-value {
    float: right;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
}

.kart-features {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.kart-features p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.kart-features i {
    color: var(--primary);
}

.kart-footer {
    margin-top: auto;
}

.unlock-requirement {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--text-light);
}

.requirement-locked {
    background: rgba(255, 46, 46, 0.1);
    color: var(--primary);
}

.unlock-container {
    text-align: center;
}

.progress-container {
    margin: 1rem 0;
}

.progress-bar-unlock {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill-unlock {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    display: block;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.btn-unlock {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-unlock:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff2e2e, #ff5252);
    transform: translateY(-3px);
}

.btn-unlock:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== ЦЕНЫ (ИСПРАВЛЕНА ЦЕНТРОВКА И ТОЧКИ) ===== */
.prices-section {
    background: transparent;
}

.opening-notice {
    background: linear-gradient(135deg, rgba(255, 59, 59, 0.12), rgba(255, 107, 107, 0.06));
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo);
}

.opening-notice.revealed {
    opacity: 1;
    transform: translateY(0);
}

.opening-notice i {
    font-size: 2rem;
    color: var(--primary);
}

.price-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.price-tab {
    padding: 12px 24px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-tab.active {
    background: var(--primary);
    color: white;
}

.price-category {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.price-category.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.price-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border);
    position: relative;
    text-align: center; /* Принудительная центровка текста */
    display: flex;
    flex-direction: column;
    align-items: center; /* Центровка по горизонтальной оси */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s var(--ease-out-expo), transform 0.65s var(--ease-out-expo),
        border-color 0.35s ease, box-shadow 0.35s ease;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
    transform: skewX(-12deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.price-card:hover::before {
    left: 130%;
}

.price-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.price-card.revealed:hover {
    transform: translateY(-10px);
}

.price-card:hover {
    border-color: rgba(255, 59, 59, 0.45);
    box-shadow: var(--shadow), 0 0 48px rgba(255, 59, 59, 0.12);
}

.price-card-featured {
    border-color: rgba(255, 59, 59, 0.55);
    box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.15), 0 16px 48px rgba(255, 59, 59, 0.12);
    padding-top: 2.75rem;
}

.price-card-featured.revealed {
    transform: translateY(0) scale(1.04);
}

.price-card-featured.revealed:hover {
    transform: translateY(-10px) scale(1.04);
}

.prices-grid .popular-badge {
    top: 0.55rem;
}

.price-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
    width: 100%;
}

.price-amount {
    margin: 1.5rem 0;
    width: 100%;
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 5px;
    display: block;
}

.price-new {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
    display: block;
}

.price-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price-card ul {
    list-style: none !important; /* Убираем точки */
    padding: 0 !important; /* Убираем отступы слева */
    margin: 0 0 2rem 0;
    width: 100%;
    text-align: center; /* Центровка содержимого списка */
}

.price-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: center; /* Центровка галочки по вертикали */
    justify-content: center; /* Центровка галочки и текста по горизонтали */
    gap: 10px;
    color: var(--text-light);
}

.price-card li i {
    color: var(--primary);
    flex-shrink: 0;
}

.btn-price {
    width: 100%;
    margin-top: auto;
}

/* ===== ПЛАТЕЖНАЯ СИСТЕМА / МОДАЛКА БРОНИРОВАНИЯ ===== */
.payment-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease-out-expo), visibility 0.35s ease;
    overflow-y: auto;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: rgba(4, 4, 6, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.payment-modal.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    margin: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
        var(--section-mesh-bg),
        rgba(18, 18, 24, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 59, 59, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(255, 59, 59, 0.06);
}

.payment-modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%, rgba(255, 59, 59, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-modal.active .payment-modal-content {
    animation: modalFadeIn 0.4s var(--ease-out-expo) forwards;
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem 1.15rem 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.payment-modal-head-main {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.payment-modal-kicker {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 0.35rem;
}

.payment-modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.1rem, 3.5vw, 1.35rem);
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.25;
    font-weight: 700;
}

.payment-modal-header h3 i {
    color: var(--primary);
    font-size: 1.1em;
}

.payment-modal-sub {
    margin: 0.45rem 0 0;
    font-size: 0.8125rem;
    color: var(--text-light);
    line-height: 1.4;
}

.close-modal-btn {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-size: 1.1rem;
    cursor: pointer;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 59, 59, 0.2);
    border-color: rgba(255, 59, 59, 0.35);
    color: #fff;
    transform: scale(1.03);
}

.payment-modal-body {
    position: relative;
    z-index: 1;
    padding: 0.85rem 1.15rem 1.1rem;
    overflow: visible;
}

.payment-form {
    margin-bottom: 0;
}

.payment-form-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.payment-form-footer {
    flex-shrink: 0;
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Компактные поля — всё без внутренней прокрутки */
.payment-modal-body .form-group {
    margin-bottom: 0.6rem;
}

.payment-modal-body .form-group label {
    margin-bottom: 4px;
    font-size: 0.78rem;
}

.payment-modal-body .form-group input {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 10px;
}

.payment-modal-body #promoMessage {
    margin-top: 4px;
    font-size: 0.8rem;
}

.payment-modal-body .payment-promo-row {
    gap: 8px;
}

.payment-modal-body .btn-promo-apply {
    padding: 0 14px;
    min-height: 42px;
}

@media (min-width: 400px) {
    .payment-form-row2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 10px;
        align-items: start;
    }

    .payment-form-row2 .form-group {
        margin-bottom: 0.6rem;
    }
}

.payment-form-lead {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.75rem;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-modal-body .payment-form-lead {
    margin-bottom: 0.65rem;
}

.payment-form-lead-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #c62828);
    box-shadow: 0 8px 24px rgba(255, 59, 59, 0.3);
}

.payment-form-lead-icon i {
    color: #fff;
    font-size: 1.05rem;
}

.payment-form-lead-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.payment-form-lead-hint {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-light);
    margin-top: 2px;
}

.promo-applied-banner {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.12), rgba(76, 175, 80, 0.06));
    border: 1px solid rgba(76, 175, 80, 0.35);
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 0.65rem;
}

.promo-applied-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.promo-applied-banner-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.promo-applied-banner-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-applied-banner-icon i {
    color: #fff;
    font-size: 1rem;
}

.promo-applied-banner-title {
    color: var(--success);
    font-weight: 700;
    font-size: 0.9rem;
}

.promo-applied-banner-sub {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-top: 2px;
}

.promo-remove-btn {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.promo-remove-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.875rem;
    font-weight: 500;
}

.form-group label i {
    margin-right: 6px;
    color: var(--primary);
    opacity: 0.9;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-family: 'Roboto', sans-serif;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 59, 59, 0.55);
    background: rgba(255, 59, 59, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}

.payment-promo-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.payment-promo-row input {
    flex: 1;
    min-width: 0;
}

.payment-promo-notice-text {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.payment-promo-notice-text i {
    margin-right: 8px;
    color: rgba(255, 193, 7, 0.85);
}

.btn-promo-apply {
    flex-shrink: 0;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--primary), #c62828);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-promo-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 59, 59, 0.35);
}

#promoMessage {
    margin-top: 8px;
    font-size: 0.85rem;
}

.order-summary,
.payment-order-summary {
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(255, 59, 59, 0.14), transparent 60%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 59, 59, 0.28);
    border-radius: 12px;
    padding: 0.65rem 0.85rem 0.75rem;
    margin: 0 0 0.65rem;
}

.order-summary h4 {
    color: var(--primary);
    margin-bottom: 15px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
}

.order-summary p {
    margin: 8px 0;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
}

.discount-note {
    color: var(--success) !important;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px !important;
    background: rgba(76, 175, 80, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.payment-method {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method:hover {
    background: rgba(255, 255, 255, 0.1);
}

.payment-method.active {
    border-color: var(--primary);
    background: rgba(255, 46, 46, 0.1);
}

.payment-method i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
    color: var(--text);
}

.payment-method span {
    font-size: 0.8rem;
    color: var(--text-light);
    display: block;
}

.payment-order-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 0.35rem;
}

.payment-order-service {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-order-product {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.payment-order-total {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin: 0;
    padding: 0;
    border: none;
    font-size: 1rem;
    color: var(--text);
}

.payment-order-total .payment-order-label {
    margin-bottom: 0;
    flex: 0 0 auto;
    align-self: center;
}

.payment-order-price {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 4.5vw, 1.45rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    text-shadow: 0 0 24px rgba(255, 59, 59, 0.25);
    flex: 1 1 auto;
    text-align: right;
    white-space: nowrap;
}

.payment-order-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.payment-order-row strong {
    color: var(--text);
    font-weight: 600;
    text-align: right;
}

.payment-form-footer .payment-agreement {
    margin-bottom: 0.55rem;
}

.payment-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.payment-agreement-text {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.45;
    flex: 1;
    min-width: 0;
}

.payment-agreement-text label {
    display: inline;
    cursor: pointer;
    font-size: inherit;
    color: inherit;
    margin: 0;
}

.payment-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}

.payment-agreement .js-open-offer-modal {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.payment-agreement .js-open-offer-modal:hover {
    text-decoration: underline;
}

.payment-form-footer .payment-actions {
    margin-top: 0;
}

.payment-actions {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    margin-top: 1.5rem;
}

@media (min-width: 480px) {
    .payment-actions {
        flex-direction: row;
        gap: 12px;
    }
}

.btn-pay,
.btn-payment-submit {
    flex: 2;
    min-height: 46px;
    background: linear-gradient(135deg, var(--primary), #c62828);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 14px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(255, 59, 59, 0.35);
}

.btn-pay:hover:not(:disabled),
.btn-payment-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255, 59, 59, 0.45);
}

.btn-pay:disabled,
.btn-payment-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none;
}

.btn-cancel,
.btn-payment-cancel,
.close-payment-modal {
    flex: 1;
    min-height: 46px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 14px 20px;
    border-radius: 14px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel:hover,
.btn-payment-cancel:hover,
.close-payment-modal:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.secure-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85em;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-form-footer .payment-modal-trust {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-size: 0.72rem;
}

.payment-modal-trust {
    margin: 1rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.payment-modal-trust i {
    color: var(--success);
    font-size: 0.85rem;
}

/* ===== МОДАЛКА ПУБЛИЧНОЙ ОФЕРТЫ ===== */
.offer-modal {
    position: fixed;
    inset: 0;
    z-index: 10100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
    background: rgba(4, 4, 6, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.offer-modal.active {
    display: flex;
}

.offer-modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: min(88vh, 900px);
    margin: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
        var(--section-mesh-bg),
        rgba(18, 18, 24, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.offer-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 1rem 1.15rem 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.offer-modal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: var(--text);
    margin: 0;
    line-height: 1.3;
    font-weight: 700;
}

.offer-modal-body {
    padding: 1rem 1.25rem 1.35rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-light);
}

.offer-modal-body .offer-intro {
    color: var(--text);
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.offer-modal-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.15rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.offer-modal-body h3:first-of-type {
    margin-top: 0.5rem;
}

.offer-modal-body p {
    margin: 0 0 0.55rem;
}

.offer-modal-body .offer-list {
    margin: 0 0 0.65rem;
    padding-left: 1.25rem;
}

.offer-modal-body .offer-list li {
    margin-bottom: 0.25rem;
}

.offer-table-wrap {
    overflow-x: auto;
    margin: 0.5rem 0 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.offer-table th,
.offer-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    vertical-align: top;
}

.offer-table th {
    background: rgba(255, 59, 59, 0.12);
    color: var(--text);
    font-weight: 600;
}

.offer-table tr:last-child td {
    border-bottom: none;
}

.offer-modal-body .offer-requisites {
    color: var(--text);
    margin-bottom: 0;
}

.offer-modal-body .offer-requisites a {
    color: var(--primary);
}

/* ===== МОДАЛКА КОНСТРУКТОРА СЕРТИФИКАТА (как бронирование / payment-modal) ===== */
.cert-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    overflow-y: auto;
    background: rgba(4, 4, 6, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: modalFadeIn 0.35s var(--ease-out-expo) forwards;
}

.cert-modal-shell {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: auto;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: min(96vh, 920px);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%),
        var(--section-mesh-bg),
        rgba(18, 18, 24, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 59, 59, 0.12),
        0 24px 64px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(255, 59, 59, 0.06);
}

.cert-modal-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 45%, rgba(255, 59, 59, 0.25));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.65;
    z-index: 0;
}

.cert-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
}

.cert-modal-shell > .payment-modal-header {
    position: relative;
    z-index: 5;
    flex-shrink: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-right: 3.25rem;
}

.cert-modal-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.cert-modal-panel {
    padding: 0.75rem 1.15rem 1.1rem;
    box-sizing: border-box;
}

.cert-modal-panel--form {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cert-modal-panel--form .form-group {
    margin-bottom: 0.65rem;
}

.cert-modal-panel--form .form-group label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 6px;
}

.cert-modal-panel--form .form-group input,
.cert-modal-panel--form .form-group select {
    padding: 10px 12px;
    font-size: 15px;
    border-radius: 10px;
}

.cert-modal-panel--form .form-group select {
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23a1a1aa' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.cert-modal-panel--form .form-group select:focus {
    outline: none;
    border-color: rgba(255, 59, 59, 0.55);
    background-color: rgba(255, 59, 59, 0.06);
    box-shadow: 0 0 0 3px rgba(255, 59, 59, 0.12);
}

.cert-modal-panel--preview {
    flex: 1.35;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.85rem 1rem 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.cert-modal-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 10px;
    align-items: start;
}

@media (max-width: 520px) {
    .cert-modal-row2 {
        grid-template-columns: 1fr;
    }
}

.cert-total-strip {
    margin-top: 0.5rem;
    padding: 0.65rem 0.85rem 0.75rem;
    border-radius: 12px;
    background:
        radial-gradient(ellipse 100% 80% at 50% 0%, rgba(255, 59, 59, 0.14), transparent 60%),
        rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 59, 59, 0.28);
}

.cert-total-strip .cert-total-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 4px;
}

.cert-total-strip .cert-total-price {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.cert-agree {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0.75rem 0 0.35rem;
}

.cert-agree-text {
    font-size: 0.78rem;
    color: var(--text-light);
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}

.cert-agree-text label {
    display: inline;
    cursor: pointer;
    margin: 0;
    font-size: inherit;
    color: inherit;
}

.cert-agree input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.cert-agree .js-open-offer-modal {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.cert-agree .js-open-offer-modal:hover {
    text-decoration: underline;
}

.cert-modal-pay {
    width: 100%;
    margin-top: 0.35rem;
    min-height: 48px;
}

.cert-preview-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: min(900px, 100%);
}

.cert-preview-box {
    position: relative;
    width: 100%;
    max-width: min(900px, 100%);
    background: #000;
    /* Жёстко держим пропорции макета 800×566 — иначе flex + max-height на мобилке «давят» картинку по высоте */
    aspect-ratio: 800 / 566;
    flex-shrink: 0;
}

.cert-preview-box > img#vBG {
    width: 100%;
    height: auto;
    max-height: none;
    display: block;
    vertical-align: top;
    object-fit: contain;
    object-position: center top;
}

.cert-v-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    text-transform: uppercase;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

.cert-v-ref {
    position: absolute;
    top: 0.35%;
    right: 0.45%;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.95;
    letter-spacing: 0.1em;
    font-size: clamp(10px, 2.2vw, 14px);
    line-height: 1;
}

.cert-v-wish-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
}

.cert-v-wish {
    display: inline-block;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 300;
    transform: skewX(-5deg);
    transform-origin: center center;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.75);
    line-height: 1.35;
    font-size: clamp(14px, 4.5vw, 36px);
}

.cert-v-slogan {
    position: absolute;
    bottom: 21.5%;
    left: 7%;
    right: auto;
    max-width: 94%;
    display: inline-block;
    text-align: left;
    /* жирный курсив + доп. наклон skew (визуально «наклонный курсив») */
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 800;
    transform: skewX(-7deg);
    transform-origin: left bottom;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.9);
    font-size: clamp(12px, 3.05vw, 23px);
    line-height: 1.25;
}

.cert-v-type {
    position: absolute;
    bottom: 18%;
    left: 7%;
    display: inline-block;
    max-width: 94%;
    text-align: left;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-style: italic;
    font-weight: 300;
    transform: skewX(-5deg);
    transform-origin: left bottom;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.75);
    line-height: 1.3;
    font-size: clamp(12px, 2.8vw, 18px);
}

.cert-v-expiry {
    position: absolute;
    bottom: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 96%;
    text-align: center;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-weight: 600;
    color: #dddddd;
    opacity: 0.95;
    font-size: clamp(8px, 2vw, 12px);
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0.02em;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.65);
}

@media (max-width: 900px) {
    .cert-v-slogan {
        bottom: 22.5%;
    }
}

/* Снимок для PNG (html2canvas): на телефоне vw считается от узкого экрана — фиксируем как на ~800px макете */
.cert-preview-stack.cert-capture-export {
    width: 800px !important;
    max-width: none !important;
}

.cert-preview-stack.cert-capture-export .cert-preview-box {
    width: 800px !important;
    max-width: none !important;
    background: #000;
}

.cert-preview-stack.cert-capture-export .cert-preview-box > img {
    width: 800px !important;
    max-width: none !important;
    height: auto !important;
    display: block !important;
}

.cert-preview-stack.cert-capture-export .cert-v-ref {
    font-size: 14px !important;
}

.cert-preview-stack.cert-capture-export .cert-v-wish {
    font-size: 30px !important;
    font-style: italic !important;
    transform: skewX(-5deg) !important;
    transform-origin: center center !important;
}

.cert-preview-stack.cert-capture-export .cert-v-slogan {
    font-size: 22px !important;
    font-style: italic !important;
    font-weight: 800 !important;
    font-family: 'Montserrat', 'Roboto', sans-serif !important;
    transform: skewX(-7deg) !important;
    transform-origin: left bottom !important;
}

.cert-preview-stack.cert-capture-export .cert-v-type {
    font-size: 18px !important;
    font-style: italic !important;
    font-weight: 300 !important;
    transform: skewX(-5deg) !important;
    transform-origin: left bottom !important;
}

.cert-preview-stack.cert-capture-export .cert-v-expiry {
    font-size: 11px !important;
}

@media (min-width: 901px) {
    .cert-modal-inner {
        flex-direction: row;
        align-items: stretch;
    }

    .cert-modal-panel--form {
        order: 0;
        max-width: 420px;
        flex: 0 1 420px;
        border-right: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cert-modal-panel--preview {
        order: 1;
        border-top: none;
        flex: 1 1 auto;
    }
}

@media (max-width: 900px) {
    .cert-modal-panel--preview {
        order: -1;
        /* Не растягиваем панель flex’ом на всю высость — иначе превью визуально сжимается */
        flex: 0 0 auto;
        min-height: 0;
        max-height: 48vh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        align-items: flex-start;
        justify-content: flex-start;
        border-top: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cert-modal-panel--preview .cert-preview-stack,
    .cert-modal-panel--preview .cert-preview-box {
        width: 100%;
        max-width: 100%;
    }

    .cert-modal-shell {
        max-height: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cert-modal-overlay {
        animation: none;
    }
}

/* ===== ТРАССЫ ===== */
.track-section {
    background: transparent;
}

.track-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 20px;
}

.track-switcher {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
}

.track-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.track-btn.active {
    background: var(--primary);
    color: white;
}

.tracks-slider {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.track-slide {
    display: none;
    animation: fadeIn 0.5s ease;
}

.track-slide.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.track-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.track-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.track-badge.kids {
    background: var(--primary-dark);
}

.track-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.track-stats {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.track-stats li {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.track-visual {
    position: relative;
}

.track-placeholder {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    height: 300px;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.track-layout {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #333, #666);
    border-radius: 10px;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.adult-layout {
    background: linear-gradient(45deg, #222, #444);
}

.kids-layout {
    background: linear-gradient(45deg, #333, #555);
}

.track-img-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 2;
    text-align: center;
}

.track-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.track-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.track-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ===== FAQ ===== */
.faq-section {
    background: transparent;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-category h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--card-bg);
    border: none;
    color: var(--text);
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

.faq-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ===== ЛИДЕРЫ ===== */
.leaders-section {
    background: transparent;
}

.leaders-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 3rem;
}

.leader-tab {
    padding: 12px 30px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.leader-tab.active {
    background: var(--primary);
    color: white;
}

.leaders-container {
    margin-bottom: 3rem;
}

.leaders-grid {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.leaders-grid.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
}

.leader-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo),
        border-color 0.35s ease, box-shadow 0.35s ease;
}

.leader-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.leader-card.revealed:hover {
    transform: translateY(-10px);
}

.leader-card:hover {
    border-color: rgba(255, 59, 59, 0.45);
    box-shadow: var(--shadow);
}

.leader-gold {
    border-color: gold;
}

.leader-silver {
    border-color: silver;
}

.leader-bronze {
    border-color: #cd7f32;
}

.leader-medal {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.leader-rank {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.leader-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
}

.leader-time {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--primary);
    font-weight: 700;
    margin: 1rem 0;
}

.leader-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.leaders-note {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
    margin-top: 2rem;
}

.leaders-note i {
    color: var(--primary);
    margin-right: 10px;
}

.leaders-hint-kc {
    margin-top: 0.75rem;
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.45;
}

.leader-card--empty {
    border-style: dashed;
    opacity: 0.95;
}

.leader-card--empty .leader-name {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* ===== КОНТАКТЫ ===== */
.contacts-section {
    background: transparent;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contacts-info h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.contacts-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--text-light);
}

.contacts-info i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.contacts-info a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.contacts-info a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    color: #f4f4f5;
    font-size: 1.35rem;
    line-height: 1;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a i {
    display: block;
    line-height: 1;
}

.social-links a .social-icon-max {
    width: 2rem;
    height: 0.85rem;
    display: block;
    flex-shrink: 0;
}

.social-links a:hover {
    background: var(--primary);
    border-color: transparent;
    color: #fff;
    transform: translateY(-5px);
}

.social-links a.social-link--max:hover {
    background: #1a73ff;
}

.contacts-map {
    position: relative;
}

.location-map-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.35rem 1.4rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.location-map-heading {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    color: var(--text);
    margin: 0 0 0.35rem;
    line-height: 1.25;
}

.location-map-lead {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.location-map-text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-light);
}

.location-map-text strong {
    color: var(--text);
    font-weight: 600;
}

.location-map-trigger {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: zoom-in;
    border-radius: 14px;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.location-map-trigger:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.location-map-trigger-img-wrap {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.location-map-trigger img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: top;
    transition: transform 0.35s var(--ease-out-expo);
}

.location-map-trigger:hover img,
.location-map-trigger:focus-visible img {
    transform: scale(1.02);
}

.location-map-trigger-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #c62828);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.location-map-trigger-badge i {
    font-size: 0.95em;
    opacity: 0.95;
}

/* ===== ФУТЕР ===== */
.footer {
    background: #000;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

.footer-container {
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    display: block;
    height: clamp(48px, 10vw, 72px);
    width: auto;
    max-width: min(340px, 92%);
    object-fit: contain;
}

.footer > .container > p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.footer-eco {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 46, 46, 0.1);
    color: var(--primary);
    padding: 12px 24px;
    border-radius: 50px;
    margin: 1.5rem 0;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
}

.footer-eco i {
    font-size: 1.2rem;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.footer-seo-lead {
    color: var(--text-light);
    font-size: 0.8rem;
    line-height: 1.55;
    max-width: 40rem;
    margin: 1rem auto 0;
    opacity: 0.92;
}

/* ===== АДАПТИВНОСТЬ (ИСПРАВЛЕНА ШАПКА И ГЕРОЙ) ===== */
@media (max-width: 1024px) {
    .track-content,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Шапка: бургер и выезжающее меню (планшет и мобильный) */
@media (max-width: 992px) {
    body.nav-drawer-open {
        overflow: hidden;
    }

    .nav-container {
        min-height: 64px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .logo-img {
        height: 40px;
        max-width: min(200px, 48vw);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(340px, 88vw);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        flex: none;
        max-width: none;
        margin: 0;
        padding: 4.75rem 1.25rem 2rem;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.2rem;
        background: linear-gradient(165deg, rgba(14, 14, 18, 0.98) 0%, rgba(7, 7, 8, 0.99) 55%);
        backdrop-filter: blur(24px) saturate(1.2);
        -webkit-backdrop-filter: blur(24px) saturate(1.2);
        border-left: 1px solid rgba(255, 59, 59, 0.14);
        box-shadow: -20px 0 50px rgba(0, 0, 0, 0.55);
        transform: translateX(108%);
        opacity: 1;
        visibility: visible;
        transition: transform 0.42s var(--ease-out-expo);
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 0.78rem;
        letter-spacing: 0.11em;
        padding: 0.9rem 1rem;
        border-radius: 12px;
        text-align: left;
        white-space: normal;
    }

    .menu-toggle {
        display: flex;
    }

    .header-phone {
        padding: 0.45rem 0.75rem 0.45rem 0.5rem;
        font-size: 0.62rem;
    }

    .header-phone-icon {
        width: 1.75rem;
        height: 1.75rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    /* HERO — компактнее на планшетах */
    .hero-title-kicker {
        font-size: 0.7rem;
        letter-spacing: 0.18em;
        margin-bottom: 0.75rem;
    }

    .hero-title-lockup {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
        margin-bottom: 0.9rem;
    }

    .hero-title-location {
        font-size: 0.875rem;
        padding: 0.45rem 1rem;
    }
    
    .hero-trust {
        flex-direction: column;
        gap: 0.65rem;
        font-size: 0.85rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .track-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .track-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .price-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }
    
    .price-tab {
        flex-shrink: 0;
    }
    
    .price-card-featured.revealed {
        transform: translateY(0);
    }

    .price-card-featured.revealed:hover {
        transform: translateY(-6px);
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title-lockup {
        font-size: clamp(1.65rem, 10vw, 2.15rem);
        letter-spacing: -0.04em;
    }

    .hero-title-kicker {
        max-width: 16rem;
        line-height: 1.35;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .features-grid,
    .prices-grid,
    .karts-grid,
    .leaders-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .track-stats {
        grid-template-columns: 1fr;
    }
    
    .hero-countdown {
        padding: 15px 20px;
    }
    
    .countdown-timer {
        font-size: 1.4rem;
    }
    
    .floating-buy-btn {
        bottom: calc(20px + env(safe-area-inset-bottom, 0));
        right: calc(20px + env(safe-area-inset-right, 0));
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .floating-buy-btn span {
        display: none;
    }
    
    .floating-buy-btn i {
        font-size: 1.2rem;
    }

    .header-phone-text {
        display: none;
    }

    .header-phone {
        padding: 0.45rem;
    }
}

/* Отключение анимаций для пользователей, которые предпочитают их отсутствие */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Стили для промокодов */
.promo-applied {
    animation: fadeIn 0.3s ease;
}
/* ===== СЛАЙДЕР ГАЛЕРЕИ ===== */
.slider-container {
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scrollSlider 40s linear infinite; /* Авто-листание */
}

.slider-track:hover {
    animation-play-state: paused; /* Пауза при наведении */
}

@keyframes scrollSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 4 - 80px)); } /* Настройте под кол-во фото */
}

.slider-item {
    width: 300px;
    height: 200px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
    flex-shrink: 0;
    transition: var(--transition);
}

.item-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    background: linear-gradient(to top, var(--primary), transparent);
    padding: 15px;
    opacity: 0;
    transition: 0.3s;
}

.slider-item:hover .item-overlay { opacity: 1; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; }

/* LIGHTBOX — полноэкранный, картинка по центру */
.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    inset: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
    background: rgba(4, 4, 6, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin: 0;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    flex: 0 1 auto;
    width: 100%;
    max-width: min(96vw, 1320px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    pointer-events: none;
}

.lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    vertical-align: middle;
}

.close-lightbox {
    position: absolute;
    top: max(10px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 10002;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    user-select: none;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    margin: 0;
    padding: 0;
}

.close-lightbox:hover {
    background: rgba(255, 59, 59, 0.35);
    color: #fff;
    transform: scale(1.05);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10002;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    margin: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 59, 59, 0.45);
    border-color: rgba(255, 59, 59, 0.5);
}

.lightbox-prev {
    left: max(8px, env(safe-area-inset-left));
}

.lightbox-next {
    right: max(8px, env(safe-area-inset-right));
}

.lightbox-wrapper { text-align: center; max-width: 85%; }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: 0.3s;
}

.lightbox-nav:hover { background: var(--primary); }
.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 600px) {
    .lightbox-prev,
    .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
    }

    .lightbox-prev {
        left: 4px;
    }

    .lightbox-next {
        right: 4px;
    }

    .lightbox-img {
        max-height: 82vh;
        border-radius: 8px;
    }
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-bg,
    .hero-mesh,
    .hero-eyebrow-dot,
    .floating-buy-btn,
    .btn-hero-shine,
    .hero-title-accent {
        animation: none !important;
    }

    .hero-bg {
        transform: scale(1.06);
    }

    .hero-enter {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

    .feature-card,
    .kart-card,
    .price-card,
    .leader-card,
    .section-title,
    .section-subtitle,
    .unlock-system,
    .opening-notice {
        opacity: 1 !important;
        transform: none !important;
        transition-duration: 0.01ms !important;
    }

    .section-title::after {
        transform: translateX(-50%) scaleX(1) !important;
        transition: none !important;
    }

    .floating-buy-btn:hover {
        transform: none;
    }

    body {
        background-attachment: scroll;
    }

}