/* ============================================
   WISTA MEET 2026 — СТИЛИ
   ============================================ */

:root {
    --red-primary: #C41E3A;
    --red-dark: #8B0000;
    --red-bright: #DC143C;
    --red-glow: rgba(196, 30, 58, 0.6);
    
    --black-primary: #000000;
    --black-dark: #0A0A0A;
    --black-gray: #1A1A1A;
    --black-card: #151515;
    
    --text-white: #FFFFFF;
    --text-light: #E5E7EB;
    --text-gray: #9CA3AF;
    --text-muted: #6B7280;
    
    --gradient-red: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
    --shadow-red: 0 10px 40px rgba(196, 30, 58, 0.4);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.5);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black-primary);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.section-title, .hero-title,
.category-card h3, .partner-card h4,
.event-year, .rules-header h3 {
    font-family: 'Montserrat', 'Oswald', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--text-white);
}

.handwritten {
    font-family: 'Racing Sans One', cursive !important;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--red-primary);
}

/* ============================================
   ШРИФТЫ — ИСПРАВЛЕНО ДЛЯ МОБИЛЬНЫХ
   ============================================ */

/* Racing Sans One для акцентов (КРОМЕ кнопок и stat-label) */
.hero-badge,
.section-subtitle,
.partner-card-simple h4,
.category-card h3,
.event-year,
.footer-widget h4 {
    font-family: 'Racing Sans One', cursive !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* stat-label — Oswald для читаемости на мобильных */
.stat-label {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* Кнопки — Oswald для читаемости */
.btn-primary,
.btn-cta {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Навигация — Oswald для кириллицы */
.nav-link {
    font-family: 'Oswald', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Заголовки — Montserrat/Oswald */
h1, h2, h3, h4, h5, h6,
.section-title, .hero-title {
    font-family: 'Montserrat', 'Oswald', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Основной текст — Inter */
body, p, .text-gray, .partner-description,
.form-control, .form-select {
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--red-primary);
}

.text-primary { color: var(--red-primary) !important; }
.text-white { color: var(--text-white) !important; }
.text-light { color: var(--text-light) !important; }
.text-gray { color: var(--text-gray) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-success { color: #22c55e !important; }
.text-danger { color: var(--red-bright) !important; }

/* ПРЕЛОАДЕР */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--black-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-wheel {
    width: 80px;
    height: 80px;
    border: 4px solid var(--black-gray);
    border-top-color: var(--red-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.preloader-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.3em;
    color: var(--red-primary);
    animation: fadeInOut 2s ease-in-out infinite;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* НАВИГАЦИЯ */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 30, 58, 0.2);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-red);
}

.navbar-brand img,
.site-footer img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    transition: var(--transition);
}

.navbar-brand:hover img {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(196, 30, 58, 0.6));
}

.nav-link {
    color: var(--text-gray) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--red-primary);
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-cta {
    background: var(--gradient-red);
    color: white !important;
    border-radius: 25px;
    padding: 0.5rem 1.5rem !important;
    font-weight: 700;
    box-shadow: var(--shadow-red);
}

.btn-cta:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(196, 30, 58, 0.6);
}

/* ============================================
   HERO SECTION — НОВАЯ СТРУКТУРА (с картинкой)
   ============================================ */

.hero-section {
    position: relative;
    padding: 0;
    min-height: 100vh;
}

/* Верхняя часть — изображение с заголовком */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 80vh; /* Высота картинки */
    overflow: hidden;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Градиент для плавного перехода */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 30%,
        rgba(0,0,0,0.6) 60%,
        rgba(0,0,0,0.95) 100%
    );
}

/* Заголовок НА картинке */
.hero-image-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-title-image {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8);
    margin: 0;
    line-height: 1;
}

/* Дата НА картинке */
.hero-date-image {
    font-size: clamp(2rem, 6vw, 5rem);
    color: var(--red-primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;  /* Было margin-top, теперь margin-bottom */
    text-shadow: 
        0 0 20px rgba(196, 30, 58, 0.8),
        0 0 40px rgba(196, 30, 58, 0.5),
        0 0 60px rgba(196, 30, 58, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.8);
    animation: pulseDate 3s ease-in-out infinite;
    font-weight: 400;
}

/* Нижняя часть — контент под картинкой */
.hero-content-wrapper {
    padding: 80px 0 100px;
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.15) 0%, transparent 60%),
        var(--black-primary);
    position: relative;
    margin-top: -80px; /* Наложение на картинку для плавного перехода */
}

/* Остальные элементы */
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-top: -1rem; /* Поднимаем текст чуть выше */
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

.hero-text {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Скрываем старые элементы */
.hero-bg,
.hero-particles,
.hero-gradient,
.hero-pattern,
.scroll-indicator {
    display: none !important;
}

/* Адаптив для планшетов */
@media (max-width: 991px) {
    .hero-image-wrapper {
        height: 50vh;
    }
    
    .hero-title-image {
        font-size: 2.5rem;
    }
    
    .hero-content-wrapper {
        padding: 60px 0 80px;
        margin-top: -50px;
    }
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hero-image-wrapper {
        height: 45vh;
    }
    
    .hero-title-image {
        font-size: 2rem;
    }
    .hero-date-image {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;  /* Было margin-top */
        letter-spacing: 0.1em;
    }

    /* Опускаем весь блок с текстом */
    .hero-image-content {
        transform: translate(-50%, -40%);  /* Было -50%, стало -40% */
    }
    
    .hero-date {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        letter-spacing: 0.1em;
    }
    
    .hero-content-wrapper {
        padding: 50px 0 70px;
        margin-top: -40px;
    }
    
    .hero-subtitle {
        margin-top: -0.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-outline-light {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        height: 40vh;
    }
    
    .hero-title-image {
        font-size: 1.8rem;
    }
}
/* ============================================
   КНОПКИ — ИСПРАВЛЕНО
   ============================================ */

.btn-primary {
    background: var(--gradient-red) !important;
    border: none !important;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 5px;
    color: white !important;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-red);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px; height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(196, 30, 58, 0.6);
}

/* КРАСНЫЙ БОРДЕР У КНОПОК */
.btn-outline-light {
    background: transparent;
    border: 2px solid var(--red-primary) !important;
    color: var(--text-white);
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: var(--red-primary);
    border-color: var(--red-primary) !important;
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--red-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-indicator .mouse {
    width: 26px; height: 40px;
    border: 2px solid var(--text-gray);
    border-radius: 20px;
    display: flex;
    justify-content: center;
}

.scroll-indicator .wheel {
    width: 4px; height: 8px;
    background: var(--red-primary);
    border-radius: 2px;
    margin-top: 6px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(10px); }
}

.scroll-text {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

/* СЕКЦИИ */
section {
    padding: 100px 0;
    position: relative;
}

/* СТАЛО (чёрный + красное свечение): */
.section-black {
    background: 
        radial-gradient(ellipse at 10% 0%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(196, 30, 58, 0.1) 0%, transparent 50%),
        var(--black-primary);
}

/* ✅ СТАЛО (без fixed — скролл будет плавным): */
.section-dark {
    background: var(--black-gray);
    background-image: url('../img/wheel-pattern-white.png');
    background-size: 800px;
    background-repeat: repeat;
}

/* Инверсия паттерна для темных секций */
.section-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 26, 26, 0.92);
    pointer-events: none;
}

.section-dark > .container {
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    display: inline-block;
    color: var(--red-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 40px; height: 2px;
    background: var(--red-primary);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0;
    color: var(--text-white);
}

/* ABOUT SECTION */
.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196,30,58,0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.about-image-wrapper img {
    width: 100%;
    display: block;
    transition: var(--transition);
    filter: brightness(0.9);
}

.about-image-wrapper:hover img {
    transform: scale(1.03);
    filter: brightness(1);
}

.image-overlay {
    position: absolute;
    inset: 0;
    background-image: url('../img/wheel-pattern-white.png');
    background-size: 150px;
    opacity: 0.08;
    pointer-events: none;
    filter: brightness(1.5) contrast(1.2);
}

.social-links .btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
}

/* КАТЕГОРИИ - 4 В ОДНУ ЛИНИЮ */
.category-card {
    background: var(--black-card);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-8px);
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 70px; height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 58, 0.15);
    border: 2px solid var(--red-primary);
    border-radius: 50%;
    font-size: 1.75rem;
    color: var(--red-primary);
    transition: var(--transition);
}

.category-card:hover .card-icon {
    background: var(--red-primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-white);
}

.category-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.category-card .btn-outline-danger {
    margin-top: auto;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* ПРАВИЛА */
.rules-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.rules-category {
    background: var(--black-card);
    border: 1px solid #333;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.rules-category:hover {
    border-color: var(--red-primary);
    box-shadow: var(--shadow-red);
}

.rules-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: var(--black-gray);
    border-bottom: 1px solid #333;
}

.rules-header i {
    font-size: 1.5rem;
    color: var(--red-primary);
}

.rules-header h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-white);
}

.rules-header.drift {
    border-left: 4px solid var(--red-primary);
}

.rules-header.project {
    border-left: 4px solid #22c55e;
}

.rules-content {
    padding: 1.5rem 2rem;
}

.intro-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.rule-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px dashed #333;
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.rule-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rule-text strong {
    color: var(--text-light);
    font-weight: 600;
}

.rule-text span {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.rule-item.success .rule-icon { color: #22c55e; }
.rule-item.danger .rule-icon { color: var(--red-bright); }

.approval-section h4 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-white);
}

.approval-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.approval-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.approval-item i {
    color: inherit;
    flex-shrink: 0;
}

.approval-item .bi-check2-circle { color: #22c55e; }
.approval-item .bi-x-circle { color: var(--red-bright); }

/* ПАРТНЕРЫ - АККОРДЕОН */
.partners-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.partner-accordion-item {
    background: var(--black-card);
    border: 1px solid #333;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.partner-accordion-item:hover {
    border-color: var(--red-primary);
}

.partner-accordion-header {
    padding: 1.5rem 2rem;
    background: var(--black-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.partner-accordion-header:hover {
    background: #1f1f1f;
}

.partner-accordion-header h4 {
    color: var(--red-primary);
    margin: 0;
    font-size: 1.3rem;
}

.partner-accordion-icon {
    font-size: 1.5rem;
    color: var(--red-primary);
    transition: var(--transition);
}

.partner-accordion-item.active .partner-accordion-icon {
    transform: rotate(180deg);
}

.partner-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 2rem;
}

.partner-accordion-item.active .partner-accordion-content {
    max-height: 500px;
    padding: 1.5rem 2rem 2rem;
}

.partner-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.partner-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.partner-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid var(--red-primary);
    border-radius: 5px;
    color: var(--red-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.partner-links a:hover {
    background: var(--red-primary);
    color: white;
}

/* ИВЕНТЫ - 2 В РЯД */
.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.event-card {
    background: var(--black-card);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 2rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    border-color: var(--red-primary);
    transform: translateX(5px);
}

.event-year {
    color: var(--red-primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}

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

.event-card .btn-sm {
    align-self: flex-start;
}

/* FOOTER — с красным акцентом */
.site-footer {
    background: 
        radial-gradient(ellipse at 50% 0%, rgba(196, 30, 58, 0.15) 0%, transparent 60%),
        var(--black-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(196, 30, 58, 0.3);
}

.site-footer h5 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 0.75rem;
}

.site-footer ul li a {
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-footer ul li a:hover {
    color: var(--red-primary);
    transform: translateX(3px);
}

.site-footer .btn-outline-danger {
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.copyright a {
    color: var(--red-primary);
}

/* ФОРМЫ */
.form-control,
.form-select {
    background: var(--black-card);
    border: 1px solid #333;
    color: var(--text-white);
    padding: 0.875rem 1rem;
    border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
    background: var(--black-card);
    border-color: var(--red-primary);
    color: var(--text-white);
    box-shadow: 0 0 0 0.25rem rgba(196, 30, 58, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background: var(--black-gray);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-title .text-primary {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        margin-top: -1rem; /* Меньше поднимаем на мобильном */
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-outline-light {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .rules-wrapper {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-dark {
        background-size: 400px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .partner-accordion-header {
        padding: 1.25rem 1.5rem;
    }
    
    .partner-accordion-content {
        padding: 0 1.5rem;
    }
    
    .partner-accordion-item.active .partner-accordion-content {
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* ============================================
   ФИКС КНОПОК ДЛЯ МОБИЛЬНЫХ (iOS Safari)
   ============================================ */

@media (max-width: 768px) {
    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        max-width: 320px !important;
        margin: 0.5rem auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .hero-buttons .btn i {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        vertical-align: middle !important;
        margin-right: 0.5rem !important;
    }
    
    @supports (-webkit-touch-callout: none) {
        .hero-buttons .btn {
            -webkit-transform: translateZ(0);
            transform: translateZ(0);
        }
    }
}

/* ============================================
   КОМПАКТНЫЕ ПАРТНЕРЫ - СЕТКА
   ============================================ */

.partners-accordion {
    max-width: 100%;
    margin: 0 auto;
}

.partner-desc-compact {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-gray);
}

.partner-desc-compact br {
    margin-bottom: 0.25rem;
}

/* Компактное описание партнера (для АВТОКЛАСТЕР) */
.partner-desc-full {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.partner-desc-full br {
    margin-bottom: 0.3rem;
}

/* На мобильных ещё компактнее */
@media (max-width: 768px) {
    .partner-desc-full {
        font-size: 0.75rem;
        line-height: 1.35;
    }
}

@media (min-width: 992px) {
    .partners-accordion {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .partners-accordion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
    .partners-accordion {
        display: block;
    }
}

/* Простые карточки партнеров */
.partner-card-simple {
    background: var(--black-card);
    border: 1px solid #333;
    border-radius: 15px;
    padding: 1.75rem 1.5rem;
    height: 100%;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.partner-card-simple:hover {
    border-color: var(--red-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-red);
}

.partner-card-simple h4 {
    color: var(--red-primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.partner-card-simple p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    line-height: 1.5;
}

.partner-card-simple .partner-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.partner-card-simple .partner-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(196, 30, 58, 0.1);
    border: 1px solid var(--red-primary);
    border-radius: 5px;
    color: var(--red-primary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.partner-card-simple .partner-links a:hover {
    background: var(--red-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   СТИЛИ ДЛЯ КАРУСЕЛИ МЕРОПРИЯТИЙ
   ============================================ */

.event-carousel {
    margin-bottom: 1rem;
}

.event-carousel .carousel-inner {
    border: 2px solid var(--red-primary);
}

.event-carousel img {
    height: 400px;
    object-fit: cover;
    width: 100%;
}

.event-carousel .carousel-control-prev,
.event-carousel .carousel-control-next {
    width: 40px;
    opacity: 0.7;
    transition: var(--transition);
}

.event-carousel .carousel-control-prev:hover,
.event-carousel .carousel-control-next:hover {
    opacity: 1;
}

.event-carousel .carousel-control-prev-icon,
.event-carousel .carousel-control-next-icon {
    background-color: rgba(196, 30, 58, 0.8);
    border-radius: 50%;
    padding: 10px;
}

@media (max-width: 991px) {
    .event-carousel img {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .event-carousel img {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .event-carousel img {
        height: 250px;
    }
}

/* ============================================
   СКРОЛЛБАР
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--black-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--red-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red-dark);
}

/* ============================================
   WOW.JS АНИМАЦИИ
   ============================================ */

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.wow {
    visibility: hidden;
}

.wow.fadeInUp,
.wow.fadeInLeft,
.wow.fadeInRight,
.wow.fadeInDown {
    visibility: visible;
    animation-fill-mode: both;
}

.wow.fadeInUp { animation-name: fadeInUp; }
.wow.fadeInLeft { animation-name: fadeInLeft; }
.wow.fadeInRight { animation-name: fadeInRight; }
.wow.fadeInDown { animation-name: fadeInDown; }

/* Дата на главном баннере */
.hero-date {
    font-family: 'Montserrat', 'Oswald', sans-serif;
    font-size: clamp(2.5rem, 8vw, 5rem);  /* Было 1.5rem, 5vw, 3rem */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;                /* Чуть больше расстояние */
    color: var(--red-primary);
    margin-bottom: 1.5rem;                 /* Больше отступ */
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);  /* Добавим тень для читаемости */
}
/* ============================================
   ИСПРАВЛЕНИЕ ШРИФТОВ ДЛЯ МОБИЛЬНЫХ
   ============================================ */

@media (max-width: 768px) {
    /* Заменяем Racing Sans One на Oswald для кириллицы */
    .section-subtitle,
    .category-card h3,
    .partner-card-simple h4,
    .event-year,
    .footer-widget h4,
    .rules-header h3,
    .site-footer h5 {
        font-family: 'Oswald', sans-serif !important;
        font-weight: 600;
        letter-spacing: 0.05em;
    }
    
    /* Кнопки тоже на Oswald */
    .btn-primary,
    .btn-cta {
        font-family: 'Oswald', sans-serif !important;
        font-weight: 600;
    }
    
    /* Навигация */
    .nav-link {
        font-family: 'Oswald', sans-serif !important;
    }
}

/* ============================================
   LOCATION SECTION — СО СТАТИЧНОЙ КАРТОЙ
   ============================================ */

.location-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid #333;
    aspect-ratio: 4/3; /* Соотношение сторон */
}

.location-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    filter: brightness(0.9) contrast(1.1);
}

.location-image-wrapper:hover img {
    filter: brightness(1) contrast(1);
    transform: scale(1.02);
}

.location-badge-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--red-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.5);
    animation: slideInLeft 0.5s ease;
}

.location-badge-overlay i {
    font-size: 1.25rem;
}

.location-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

.location-features .feature-item strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.location-buttons .btn {
    text-align: center;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Адаптив */
@media (max-width: 991px) {
    .location-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .location-image-wrapper {
        max-width: 100%;
        aspect-ratio: 16/9; /* На мобильном шире */
    }
    
    .location-badge-overlay {
        top: 15px;
        left: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .location-buttons {
        flex-direction: column;
    }
}
/* ============================================
   LOCATION SECTION — УНИКАЛЬНЫЙ СТИЛЬ
   ============================================ */

.section-location {
    background: 
        radial-gradient(ellipse at 10% 0%, rgba(196, 30, 58, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(196, 30, 58, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, var(--black-primary) 0%, var(--black-gray) 100%);
    position: relative;
    padding: 100px 0;
}

.section-location::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../img/wheel-pattern-white.png');
    background-size: 600px;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
}

.section-location > .container {
    position: relative;
    z-index: 1;
}

.location-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 2px solid #333;
    aspect-ratio: 4/3;
}

.location-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    filter: brightness(0.9) contrast(1.1);
}

.location-image-wrapper:hover img {
    filter: brightness(1) contrast(1);
    transform: scale(1.02);
}

.location-badge-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--red-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.5);
}

.location-badge-overlay i {
    font-size: 1.25rem;
}

.location-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-white);
}

.location-info h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.location-list strong {
    color: var(--text-light);
}

.location-note {
    font-size: 0.9rem;
}

.location-note a {
    color: var(--red-primary);
    text-decoration: none;
    font-weight: 500;
}

.location-note a:hover {
    text-decoration: underline;
}

.location-buttons .btn {
    text-align: center;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Адаптив */
@media (max-width: 991px) {
    .location-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-location {
        padding: 80px 0;
    }
    
    .location-image-wrapper {
        max-width: 100%;
        aspect-ratio: 16/9;
    }
    
    .location-badge-overlay {
        top: 15px;
        left: 15px;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .location-buttons {
        flex-direction: column;
    }
}

/* Скрываем названия линий метро на мобильных */
@media (max-width: 480px) {
    .station-line {
        display: none;
    }
    
    /* Убираем переносы для названий станций */
    .location-list li {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Или разрешаем перенос только для длинных названий */
    .location-list li:nth-child(3) {
        white-space: normal;
    }
}
