/* ===== CSS ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #ff2e2e;
    --primary-dark: #cc0000;
    --accent: #ff2e2e;
    --accent-dark: #cc0000;
    --bg-dark: #0a0a0a;
    --card-bg: #1a1a1a;
    --text: #ffffff;
    --text-light: #b0b0b0;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --transition: all 0.3s ease;
    --success: #4CAF50;
    --error: #ff6b6b;
    --warning: #ff9800;
}
/* 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;
}

.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(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== УТИЛИТЫ ===== */
.section {
    padding: 80px 0;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.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;
}

/* ===== КНОПКИ ===== */
.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;
}
/* Fallback для иконок */
.fas, .fab, .fa {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900;
}

/* Если иконки не загрузились - покажем символы */
.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: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== ХЕДЕР ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.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;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== ПЛАВАЮЩАЯ КНОПКА ===== */
.floating-buy-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(255, 46, 46, 0.3);
    transition: var(--transition);
}

.floating-buy-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 46, 46, 0.4);
}

/* ===== ГЕРОЙ СЕКЦИЯ ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.9));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.hero-title-main {
    font-size: 2rem;
    color: var(--text-light);
    font-weight: 300;
}

.hero-title-electric {
    color: var(--primary);
    font-size: 3.5rem;
    font-weight: 800;
    white-space: nowrap;
}

.hero-title-rest {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-title-location {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 10px;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-countdown {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px 40px;
    display: inline-block;
    border: 1px solid var(--border);
}

.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: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.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, 46, 46, 0.2), rgba(255, 46, 46, 0.1));
    border-color: var(--primary);
}

/* ===== КАРТЫ ===== */
.karts-section {
    background: rgba(0, 0, 0, 0.7);
}

.unlock-system {
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.1), rgba(255, 46, 46, 0.05));
    border-radius: var(--radius);
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid var(--border);
}

.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);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.kart-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.kart-featured {
    border-color: var(--primary);
    position: relative;
}

.popular-badge {
    position: absolute;
    top: -12px;
    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: 200px;
    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-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: rgba(0, 0, 0, 0.7);
}

.opening-notice {
    background: linear-gradient(135deg, rgba(255, 46, 46, 0.1), rgba(255, 46, 46, 0.05));
    border-radius: var(--radius);
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 800px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.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);
    padding: 2rem;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.price-card-featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pre-open-badge {
    position: absolute;
    top: -12px;
    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;
}

.price-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: var(--text);
}

.price-amount {
    margin: 1.5rem 0;
}

.price-old {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 5px;
}

.price-new {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
}

.price-card > p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.price-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.price-card li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-light);
}

.price-card li i {
    color: var(--primary);
    margin-top: 3px;
}

.btn-price {
    width: 100%;
    margin-top: auto;
}

/* ===== ПЛАТЕЖНАЯ СИСТЕМА ===== */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.payment-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
}

.payment-modal-content {
    background: var(--bg);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin: auto; /* Центрирование */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Анимации */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.payment-modal.active .payment-modal-content {
    animation: modalFadeIn 0.3s ease forwards;
}
.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    border-radius: 20px 20px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.payment-modal-header h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.close-modal-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal-btn:hover {
    background: rgba(255, 46, 46, 0.1);
    color: var(--primary);
}


.payment-modal-body {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
}

.payment-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: var(--transition);
    font-family: 'Roboto', sans-serif;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 46, 46, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 46, 46, 0.1);
}

.order-summary {
    background: rgba(255, 46, 46, 0.1);
    border: 1px solid rgba(255, 46, 46, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
}

.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-actions {
    display: flex;
    gap: 15px;
    margin-top: 2rem;
}

.btn-pay {
    flex: 1;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-pay:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 46, 46, 0.3);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-cancel {
    flex: 1;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
    padding: 18px;
    border-radius: 12px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-cancel:hover {
    border-color: var(--text-light);
    background: rgba(255, 255, 255, 0.05);
}

.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);
}

/* Стили для виджета ЮKassa */
#paymentWidgetContainer {
    display: none;
}

#payment-widget {
    margin: 20px 0;
    min-height: 300px;
}

.success-icon {
    text-align: center;
    font-size: 60px;
    color: var(--success);
    margin: 20px 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.payment-success {
    text-align: center;
    padding: 2rem;
}

.payment-success i {
    font-size: 3rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.payment-success h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.error-message {
    color: var(--error);
    font-size: 0.8rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Уведомление об успехе */
.success-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    z-index: 10001;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s forwards;
    max-width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid #2E7D32;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ===== ТРАССЫ ===== */
.track-section {
    background: rgba(0, 0, 0, 0.5);
}

.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: rgba(0, 0, 0, 0.5);
}

.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: rgba(0, 0, 0, 0.5);
}

.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);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.leader-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    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, .leader-kart, .leader-laps {
    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;
}

/* ===== КОНТАКТЫ ===== */
.contacts-section {
    background: rgba(0, 0, 0, 0.7);
}

.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.05);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px);
}

.contacts-map {
    position: relative;
}

.map-placeholder {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    height: 400px;
    border: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-visual {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, #222, #444);
    border-radius: 10px;
    margin-top: 1rem;
    position: relative;
}

.map-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;
}

/* ===== ФУТЕР ===== */
.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;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-logo span {
    font-family: 'Orbitron', sans-serif;
}

.logo-electric {
    color: var(--primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-vatrushkin {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.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);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .track-content,
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title-electric,
    .hero-title-rest {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 1000;
        border-top: 1px solid var(--border);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .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 {
        transform: none;
    }
    
    .payment-methods {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title-electric,
    .hero-title-rest {
        font-size: 2rem;
    }
    
    .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: 20px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .floating-buy-btn span {
        display: none;
    }
    
    .floating-buy-btn i {
        font-size: 1.2rem;
    }
}

/* Отключение анимаций для пользователей, которые предпочитают их отсутствие */
@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;
}

.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); }
}