/* SKT per-page CSS: hero */

/* from hero.html */
body, html {
            height: 100%;
            font-family: 'Montserrat', sans-serif;
        }

        /* Настройка фонового изображения */
        .hero-section {
            background-image: url('https://images.unsplash.com/photo-1506318137071-a8e063b4bec0?q=80&w=3300&auto=format&fit=crop'); /* Замените на свой фон со звездами */
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            min-height: 100vh;
            color: white;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        /* Затемнение фона для лучшей читаемости */
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0; right: 0; bottom: 0; left: 0;
            background: rgba(0, 0, 0, 0.3);
            z-index: 1;
        }

        /* Вывод контента поверх затемнения */
        .content-wrapper {
            position: relative;
            z-index: 2;
            flex: 1;
            display: flex;
            align-items: center;
        }

        /* Стилизация навигации */
/* --- Стили Навигации --- */
.transition-navbar {
    transition: all 0.3s ease-in-out;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: transparent;
    z-index: 1030;
}

/* Исходное состояние логотипа (на темном фоне) */
.logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    transition: color 0.3s ease;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

/* Исходное состояние ссылок меню (на темном фоне) */
.transition-navbar .nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: none; /* Убрали uppercase, как на скрине */
    letter-spacing: normal;
    transition: color 0.3s ease;
}
.transition-navbar .nav-link:hover {
    color: #fff !important;
}

/* Изменение цвета иконки гамбургера для белого фона */
.navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- СОСТОЯНИЕ ПРИ ПРОКРУТКЕ (.navbar-scrolled) --- */
.navbar-scrolled {
    background-color: #173557 !important;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-bottom: none;
}

/* Логотип при прокрутке */
.navbar-scrolled .logo-icon {
    background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%); /* Можно заменить на ваши цвета бренда */
    background: linear-gradient(135deg, #4b6fb8 0%, #c14545 100%); /* Цвета близкие к скрину */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.navbar-scrolled .logo-title {
    color: #ffffff;
}
.navbar-scrolled .logo-subtitle {
    color: rgba(255, 255, 255, 0.75);
}

/* Ссылки при прокрутке */
.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}
.navbar-scrolled .nav-link:hover {
    color: #ffd166 !important;
}

/* Белый гамбургер для темного фона */
.navbar-scrolled .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}
.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

        .nav-link:hover {
            color: #fff !important;
            text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
        }

        /* Стили для главного заголовка */
        .main-heading {
            font-weight: 700;
            font-size: 4rem;
            line-height: 1.1;
            letter-spacing: 2px;
            margin-bottom: 1.5rem;
        }

        .sub-heading {
            font-weight: 400;
            font-size: 1.5rem;
            letter-spacing: 1px;
            color: rgba(255, 255, 255, 0.9);
        }

        /* Эффект свечения для статуи */
        .statue-container {
            position: relative;
            display: inline-block;
        }

        .statue-container::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, rgba(255,200,50,0.6) 0%, rgba(255,200,50,0) 70%);
            z-index: -1;
            filter: blur(20px);
        }

        /* Адаптив для текста */
        @media (max-width: 992px) {
            .main-heading { font-size: 3rem; }
            .sub-heading { font-size: 1.2rem; }
            .navbar-collapse { background: rgba(0,0,0,0.8); padding: 1rem; border-radius: 8px; }
        }
        @media (max-width: 576px) {
            .main-heading { font-size: 2.2rem; text-align: center; }
            .sub-heading { font-size: 1rem; text-align: center; }
            .statue-container { margin-bottom: 2rem; }
        }
        /* --- Секция "Выберите свой путь" --- */
.choose-path {
    background-color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.section-title {
    color: #0b4c9e;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.card-path {
    position: relative;
    border-radius: 12px;
    padding: 3rem 2.5rem;
    color: white;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card-path:hover {
    transform: translateY(-5px);
}

/* Цвета карточек и контрастные рамки снизу */
.card-blue {
    background-color: #d6322b;
    border-bottom: 6px solid #0b4c9e;
}

.card-red {
    background-color: #0b4c9e;
    border-bottom: 6px solid #d6322b;
}

/* Защита от пустого card_class во 2-й карточке MIGX */
.path-card-idx-2.card-blue {
    background-color: #0b4c9e;
    border-bottom: 6px solid #d6322b;
}

/* CSS-паттерн (ромбы) для фона карточек */
.pattern-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
      linear-gradient(45deg, rgba(0,0,0,0.04) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.04) 75%, rgba(0,0,0,0.04)), 
      linear-gradient(45deg, rgba(0,0,0,0.04) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.04) 75%, rgba(0,0,0,0.04));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    z-index: 1;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Оформление круглой иконки */
.icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Оформление тегов (pills) */
.path-tag {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin: 0 8px 10px 0;
    backdrop-filter: blur(5px);
}

/* Ссылка со стрелкой */
.path-link {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    transition: opacity 0.2s;
}

.path-link:hover {
    color: white;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .card-path { padding: 2rem 1.5rem; }
}

/* --- Секция "О турнире" --- */
.about-tournament {
    /* Легкий серый оттенок фона, чтобы белые карточки выделялись */
    background-color: #f8f9fc; 
    font-family: 'Montserrat', sans-serif;
}

/* Ограничиваем ширину текста и выравниваем его по левому краю внутри центрированного блока */
.about-text {
    color: #4a5568;
    line-height: 1.6;
    font-size: 1rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Стилизация карточек со статистикой */
.stat-card {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    border-top: 4px solid #0b4c9e; /* Синяя полоса сверху */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    padding: 2.5rem 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.stat-number {
    color: #d6322b; /* Красный цвет из макета */
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-title {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-desc {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .stat-number { font-size: 2.2rem; }
    .stat-card { padding: 1.5rem; }
}
/* --- Секция "Архив событий" --- */
.archive-section {
    background-color: #f4f5f8; /* Немного контрастный серый фон */
    font-family: 'Montserrat', sans-serif;
}

.archive-title {
    color: #0b4c9e;
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

.archive-subtitle {
    color: #6c757d;
    font-size: 1rem;
}

/* Базовые стили для карточек годов */
.year-card {
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    height: 100%;
    min-height: 180px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Как у карточек «Выберите свой путь»: контент поверх .pattern-overlay */
.archive-section .year-card > .card-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    min-height: 0;
}

.year-num {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    z-index: 2;
    position: relative;
}

.year-sub {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    position: relative;
}

/* Основной турнир (красная карточка) */
.card-main {
    background-color: #d6322b;
    border-bottom: 6px solid #0b4c9e;
    color: #ffffff;
}

.card-main:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

.card-main .year-sub {
    color: rgba(255, 255, 255, 0.9);
}

/* Отборочный турнир (синяя карточка) */
.card-qual {
    background-color: #0b4c9e;
    border-bottom: 6px solid #d6322b;
    color: #ffffff;
}

.card-qual:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

.card-qual .year-sub {
    color: rgba(255, 255, 255, 0.9);
}

/* Текущее событие (градиент) */
.card-active {
    background: linear-gradient(135deg, #0b4c9e 0%, #d6322b 100%);
    color: #ffffff;
    box-shadow: 0 15px 35px rgba(214, 50, 43, 0.25);
    padding: 2.5rem 1rem; /* Делаем активную карточку чуть крупнее */
}

.card-active:hover {
    transform: translateY(-5px);
    color: #ffffff;
}

/* Плашка "Активно" */
.badge-active {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-block;
    margin-top: 0.75rem;
    z-index: 2;
    position: relative;
    backdrop-filter: blur(4px);
}

/* Предстоящее событие (серая карточка) */
.card-future {
    background: #c8ced5;
    color: #495057;
    box-shadow: none;
    cursor: default;
}

.card-future .year-sub {
    color: #5c636a;
}

@media (max-width: 768px) {
    .archive-title { font-size: 2rem; }
    .year-num { font-size: 2.2rem; }
    .card-active { padding: 2rem 1rem; }
}

/* Popup-баннер на главной (Fancybox) */
.skt-home-popup .fancybox__backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.skt-home-popup .fancybox__slide {
    padding: 0;
}

.skt-home-popup .fancybox__content {
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.skt-home-popup .fancybox__image {
    width: auto;
    height: auto;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
}

.skt-home-popup .fancybox__caption {
    padding: 16px 0 34px;
    text-align: center;
}

.skt-home-popup .home-popup-go-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    background-color: #d6322b;
    color: #ffffff;
    font-weight: 700;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(214, 50, 43, 0.3);
}

.skt-home-popup .home-popup-go-button:hover {
    background-color: #bd2a24;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(214, 50, 43, 0.4);
}
