* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Arial', sans-serif; }
body { background-color: #f4f4f4; color: #222; display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Header & Nav */
.navbar { background-color: #ffffff; border-bottom: 3px solid #cc0000; padding: 1rem 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.header-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.header-controls { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.logo { font-size: 1.8rem; font-weight: 900; text-transform: uppercase; }
.logo strong { color: #cc0000; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.nav-links a { font-size: 0.95rem; font-weight: bold; text-transform: uppercase; color: #555; transition: color 0.3s; }
.nav-links a:hover, .nav-links a.active { color: #cc0000; }

.social-lang-wrapper { display: flex; align-items: center; gap: 1.5rem; }
.social-icons { display: flex; gap: 1rem; font-size: 1.2rem; }
.social-icons a:hover { color: #cc0000; }
.lang-switcher { display: flex; gap: 10px; font-weight: bold; border-left: 2px solid #ddd; padding-left: 15px; }
.lang-switcher a { color: #999; }
.lang-switcher a:hover, .lang-switcher a.active { color: #cc0000; }

/* Hero Section */
.hero { background: linear-gradient(135deg, rgba(204,0,0,0.9), rgba(139,0,0,0.9)), url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=1470&auto=format&fit=crop') center/cover; height: 500px; display: flex; align-items: center; color: #fff; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; text-transform: uppercase; line-height: 1.1; }
.hero-content p { font-size: 1.2rem; margin-bottom: 2rem; max-width: 600px; }
.btn-primary { background: #fff; color: #cc0000; padding: 15px 30px; border-radius: 4px; font-weight: bold; text-transform: uppercase; transition: 0.3s; display: inline-block; cursor: pointer; border: none; }
.btn-primary:hover { background: #222; color: #fff; }

/* Карточки с красивыми картинками */
.section-padding { padding: 3rem 0; }
.section-header { margin-bottom: 2rem; border-bottom: 2px solid #ccc; padding-bottom: 1rem; }
.section-header h2 { font-size: 2rem; color: #cc0000; text-transform: uppercase; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.08); display: flex; flex-direction: column; }
.card-img { height: 250px; position: relative; background: #eee; }
.card-img img { width: 100%; height: 100%; object-fit: cover; } /* Идеальная вставка фото */
.date-badge { position: absolute; top: 10px; right: 10px; background: #cc0000; color: white; padding: 5px 10px; font-weight: bold; border-radius: 4px; }
.card-body { padding: 1.5rem; flex-grow: 1; }
.card-body h3 { margin-bottom: 1rem; color: #222; }

/* Таблица результатов */
.results-table { width: 100%; border-collapse: collapse; margin-top: 1rem; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.results-table th, .results-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.results-table th { background: #cc0000; color: #fff; text-transform: uppercase; }
.results-table tr:hover { background: #f9f9f9; }

/* Админ-панель */
.admin-form { background: #fff; padding: 2rem; border-radius: 8px; margin-bottom: 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.admin-form input, .admin-form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; }
.btn-danger { background: #cc0000; color: #fff; padding: 8px 15px; border: none; border-radius: 4px; cursor: pointer; }
.btn-danger:hover { background: #8b0000; }

/* Footer */
footer { background: #fff; border-top: 5px solid #cc0000; padding: 2rem 0; margin-top: auto; }

/* МОБИЛЬНАЯ АДАПТАЦИЯ (Для телефонов) */
@media (max-width: 768px) {
    .header-container { flex-direction: column; text-align: center; }
    .header-controls { flex-direction: column; gap: 1rem; width: 100%; }
    .nav-links { justify-content: center; width: 100%; }
    .social-lang-wrapper { justify-content: center; width: 100%; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero { height: auto; padding: 4rem 0; text-align: center; }
    .results-table { display: block; overflow-x: auto; white-space: nowrap; }
}
/* Новые кнопки для Мейна */
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-secondary { background: #222; color: #fff; padding: 15px 30px; border-radius: 4px; font-weight: bold; text-transform: uppercase; transition: 0.3s; display: inline-block; cursor: pointer; border: none; }
.btn-secondary:hover { background: #cc0000; color: #fff; }

/* Экран логина */
.login-screen { max-width: 400px; margin: 4rem auto; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); text-align: center; }
.login-screen input { width: 100%; padding: 12px; margin: 15px 0; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
/* Делаем body flex-контейнером */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

/* Заставляем основной контент занимать всё свободное место */
main {
  flex: 1;
}

/* Стилизация самого футера */
.site-footer {
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}
.admin-btn {
  display: none;
}
/* --- СТИЛИ ДЛЯ ИСТОРИИ ФЕДЕРАЦИИ --- */
.history-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.history-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #444;
    text-align: justify;
}
.history-content p:first-of-type {
    font-size: 1.25rem;
    font-weight: bold;
    color: #222;
}
.history-highlight {
    background: #fdf5f5;
    border-left: 5px solid #cc0000;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

/* --- СТИЛИ ДЛЯ ГАЛЕРЕИ --- */
/* --- СТИЛИ ДЛЯ ГАЛЕРЕИ (с поддержкой видео) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 2rem;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 250px;
    background: #000; /* Черный фон для видео, если они не на весь экран */
}

/* Делаем так, чтобы и фото, и видео заполняли карточку */
.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Анимация увеличения при наведении (только для фото, чтобы не мешать кнопкам плеера) */
.gallery-item img {
    transition: transform 0.4s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Настройки самого плеера (чтобы кнопки управления влезали) */
.gallery-item video {
    object-fit: contain; /* Видео не будет обрезаться, а впишется целиком */
}
/* --- КНОПКИ ФИЛЬТРОВ ГАЛЕРЕИ --- */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 20px;
    border: 2px solid #cc0000;
    background: transparent;
    color: #333;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}
.filter-btn.active, .filter-btn:hover {
    background: #cc0000;
    color: #fff;
}
.gallery-item.hide {
    display: none;
}
.gallery-item {
    cursor: pointer; /* Показываем, что на карточку можно нажать */
}

/* --- ЛАЙТБОКС (Всплывающее окно для фото) --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Скрыто по умолчанию */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox.active {
    display: flex;
    opacity: 1;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
.lightbox-close {
    position: absolute;
    top: 20px; right: 30px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
}
.lightbox-close:hover {
    color: #cc0000;
}
/* --- СПОНСОРЫ (В ОДНУ ЛИНИЮ) --- */
.sponsors-grid {
    display: flex;
    justify-content: center; /* Центрируем логотипы на больших экранах */
    align-items: center; /* Выравниваем по центру по вертикали */
    gap: 30px; /* Расстояние между логотипами */
    
    /* Самое главное: запрещаем перенос на новую строку */
    flex-wrap: nowrap; 
    
    /* Если логотипы не влезают (на телефоне), разрешаем скроллить пальцем */
    overflow-x: auto; 
    padding: 20px 0;
    
    /* Скрываем полосу прокрутки, чтобы было эстетично */
    scrollbar-width: none; /* Для Firefox */
    -ms-overflow-style: none; /* Для IE/Edge */
}

/* Скрываем полосу прокрутки для Chrome, Safari, Edge */
.sponsors-grid::-webkit-scrollbar {
    display: none;
}

.sponsor-link {
    /* Логотипы не будут сжиматься, если им тесно */
    flex: 0 0 auto; 
    transition: transform 0.3s ease;
}

.sponsor-link {
    flex: 0 0 auto; /* Логотипы не сжимаются */
    transition: transform 0.3s ease;
}

/* Легкое увеличение при наведении оставляем, это выглядит красиво */
.sponsor-link:hover {
    transform: scale(1.05); 
}

.sponsor-link img {
    height: 80px; /* Задаем одинаковую высоту для всех логотипов */
    width: auto; 
    object-fit: contain; /* Пропорции картинки не искажаются */
    /* Убрали фильтры (filter), теперь цвета полностью родные по умолчанию */
}

/* --- Адаптация для мобильных телефонов --- */
@media (max-width: 992px) {
    .sponsors-grid {
        justify-content: flex-start; /* На телефонах прижимаем к левому краю, чтобы было понятно, что можно листать */
        padding-left: 20px; /* Отступ сбоку */
        padding-right: 20px;
    }
    .sponsor-link img {
        height: 60px; /* На телефонах делаем логотипы чуть компактнее */
    }
}
/* --- СТИЛИ ДЛЯ ПОЧТЫ В ФУТЕРЕ --- */
.footer-email {
    color: #cc0000; /* Фирменный красный цвет */
    text-decoration: none; /* Убираем стандартное подчеркивание ссылки */
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #ff3333; /* Делаем чуть светлее при наведении */
    text-decoration: underline; /* Добавляем подчеркивание при наведении */
}
/* --- СТИЛИ ДЛЯ ДЛИННОГО ЛОГОТИПА --- */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #333;
}
.logo strong {
    color: #cc0000;
    font-size: 2rem;
}
.logo-text {
    font-size: 0.75rem; /* Мелкий, но читаемый шрифт для длинного названия */
    line-height: 1.2;
    max-width: 280px; /* Чтобы не растягивался на весь экран */
    font-weight: 600;
    text-transform: uppercase;
}
/* Для телефонов делаем еще чуть компактнее */
@media (max-width: 768px) {
    .logo-text { font-size: 0.65rem; max-width: 180px; }
    .logo strong { font-size: 1.5rem; }
}
/* --- СЛАЙДЕР --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 80vh; /* Высота слайдера */
    min-height: 500px;
    overflow: hidden;
    background-color: #000;
}
.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}
.slide.active {
    opacity: 1;
    z-index: 1;
}
/* Тот самый красивый красный полупрозрачный фон поверх картинки */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(180, 0, 0, 0.85); /* Красный цвет с прозрачностью */
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 3; /* Текст должен быть поверх красного фона */
    color: #fff;
    max-width: 800px;
}
.hero-content h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.5;
}
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.btn {
    padding: 12px 30px; background: #fff; color: #cc0000;
    text-decoration: none; font-weight: bold; border-radius: 4px; transition: 0.3s;
}
.btn:hover { background: #eee; }
.btn-dark {
    background: #333; color: #fff;
}
.btn-dark:hover { background: #111; }

/* Точки управления слайдером */
.slider-dots {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    z-index: 4;
}
.dot {
    display: inline-block;
    width: 12px; height: 12px; margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%; cursor: pointer; transition: 0.3s;
}
.dot.active, .dot:hover {
    background-color: #fff;
}
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
}
/* --- СТИЛИ ДЛЯ ИКОНКИ ЛОГОТИПА --- */
.logo-icon {
    height: 40px; /* Высота логотипа, можешь сделать больше или меньше */
    width: auto;
    object-fit: contain;
}
@media (max-width: 768px) {
    .logo-icon { height: 30px; } /* На телефонах чуть поменьше */
}
/* --- СТРАНИЦА КАТЕГОРИЙ --- */
.categories-photo-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.categories-photo-grid img {
    width: 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}
.categories-photo-grid img:hover {
    transform: scale(1.03); /* Легкое увеличение при наведении */
}
/* --- СТРАНИЦА БИЛЕТОВ --- */
.tickets-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh; /* Занимает почти весь экран, чтобы не было пустоты */
}

.ticket-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 600px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Красивая мягкая тень */
    border-top: 5px solid #cc0000; /* Фирменная красная полоска сверху */
}

.ticket-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.ticket-card h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.ticket-info {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Спец-кнопка для билетов */
.btn-ticket {
    display: inline-block;
    padding: 15px 45px;
    font-size: 1.2rem;
    background-color: #cc0000;
    color: #fff;
    border-radius: 30px; /* Круглая стильная кнопка */
    box-shadow: 0 5px 15px rgba(204, 0, 0, 0.3);
}

.btn-ticket:hover {
    background-color: #a30000;
    transform: translateY(-2px); /* Кнопка чуть-чуть приподнимается при наведении */
    color: #fff;
}
/* --- ИКОНКА YOUTUBE В ШАПКЕ --- */
.social-icon {
    width: 25px; /* Задаем жесткую ширину, как у других иконок */
    height: auto; /* Высота подстроится пропорционально */
    vertical-align: middle; /* Выравниваем по центру относительно соседних иконок */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Легкий эффект при наведении, чтобы кнопка казалась "живой" */
.social-link:hover .social-icon {
    opacity: 0.7;
    transform: scale(1.1);
}