/* ═══════════════════════════════════════════════════════════
   СТИХИЯ СПОРТА — главная страница
   База: глубокий уральский «камень у реки».
   Акценты: изумруд (лес) + вода (река). Энергия без «огня».
   ═══════════════════════════════════════════════════════════ */
:root {
    /* Фон / поверхности */
    --color-bg: #0C1B22;
    --color-bg-2: #0F2730;
    --color-surface: #122831;
    --color-surface-2: #16323d;
    --color-border: #1c3742;
    --color-border-soft: #16303a;

    /* Акценты: лес и река Урала */
    --color-accent: #3DA98B;
    --color-accent-soft: #6FCBAE;
    --color-river: #63B7C5;
    --color-pine: #3E916B;

    /* Текст */
    --color-text: #E0E7EF;
    --color-text-dim: #8197a1;
    --color-white: #f1f4ff;

    /* Градиент-акцент (кнопки, цифры, иконки) */
    --grad-accent: linear-gradient(135deg, var(--color-accent), var(--color-river));

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --side: clamp(20px, 5vw, 80px);
    --section-gap: clamp(96px, 12vw, 160px);
    --header-h: 76px;

    --shadow-soft: 0 18px 50px -28px rgba(0, 0, 0, 0.85);
    --shadow-accent: 0 16px 40px -16px rgba(61, 169, 139, 0.55);
}

/* ───────────────────────────────────────
   База
─────────────────────────────────────── */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    /* Базовый шрифт по умолчанию — чтобы элементы без класса (поля форм,
       подписи) тоже были в фирменном шрифте, а не в системном serif */
    font-family: "Montserrat Alternates", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    display: block;
}

:focus-visible {
    outline: 2px solid var(--color-accent-soft);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: rgba(61, 169, 139, 0.32);
    color: var(--color-white);
}

/* ───────────────────────────────────────
   Шрифты
─────────────────────────────────────── */
.MontserratRegular {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.MontserratMedium {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.MontserratBold {
    font-family: "Montserrat Alternates", sans-serif;
    font-weight: 700;
    font-style: normal;
    color: #FFFFFF;
    display: inline-block;
}

/* ───────────────────────────────────────
   Слой над фоном
─────────────────────────────────────── */
.onBg {
    position: relative;
    z-index: 3;
    margin-top: 0;
}

#Mainwindow {
    position: relative;
    overflow: hidden;
}

#top {
    position: absolute;
    top: 0;
}

/* ───────────────────────────────────────
   Кнопки
─────────────────────────────────────── */
.Btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: var(--radius);
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.Btn--sm {
    padding: 10px 20px;
    font-size: 13px;
}

.Btn--lg {
    padding: 18px 38px;
    font-size: 15px;
}

.Btn--primary {
    background: var(--grad-accent);
    color: #04231c;
    box-shadow: var(--shadow-accent);
}

.Btn--primary::after {
    content: "→";
    transition: transform 0.2s ease;
}

.Btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px -14px rgba(61, 169, 139, 0.75);
}

.Btn--primary:hover::after {
    transform: translateX(4px);
}

.Btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.Btn--ghost:hover {
    border-color: var(--color-river);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* ───────────────────────────────────────
   Шапка (липкая)
─────────────────────────────────────── */
.SiteHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
    border-bottom: 1px solid transparent;
}

.SiteHeader.is-scrolled {
    background: rgba(10, 22, 28, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--color-border-soft);
    box-shadow: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
}

.SiteHeader_inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px var(--side);
    min-height: var(--header-h);
}

.SiteHeader_logoLink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

#logo {
    height: 54px;
    width: 54px;
    transition: transform 0.3s ease;
}

.SiteHeader.is-scrolled #logo {
    height: 46px;
    width: 46px;
}

.SiteHeader_logoLink:hover #logo {
    transform: rotate(-6deg) scale(1.05);
}

.SiteHeader_wordmark {
    font-size: 20px;
    letter-spacing: 0.14em;
    color: var(--color-white);
    text-shadow: 0 1px 8px rgba(6, 16, 21, 0.55);
}

.SiteHeader_nav {
    margin-left: auto;
}

.SiteHeader_nav ul {
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.NavigatorText {
    position: relative;
    font-size: 15px;
    color: var(--color-text);
    transition: color 0.2s ease;
}

.NavigatorText::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--grad-accent);
    transition: width 0.25s ease;
}

.NavigatorText:hover {
    color: var(--color-white);
}

.NavigatorText:hover::after {
    width: 100%;
}

.SiteHeader_cta {
    flex-shrink: 0;
}

.SiteHeader_burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.SiteHeader_burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.SiteHeader.is-open .SiteHeader_burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.SiteHeader.is-open .SiteHeader_burger span:nth-child(2) {
    opacity: 0;
}

.SiteHeader.is-open .SiteHeader_burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ───────────────────────────────────────
   Фон героя: медленный «ken burns» зум
─────────────────────────────────────── */
.TopContentWhBg {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background-color: var(--color-bg);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.TopContentWhBg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("IMG/backgroundimage.jpg") center top / cover no-repeat;
    transform-origin: 60% 40%;
    animation: heroZoom 26s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.09); }
}

/* ───────────────────────────────────────
   Тени / виньетка героя
─────────────────────────────────────── */
.shadows {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    background:
        /* мягкая тень под шапкой — для читаемости меню */
        linear-gradient(to bottom, rgba(12, 27, 34, 0.5) 0%, rgba(12, 27, 34, 0) 15%),
        /* плотная полоса снизу — бесшовный стык со следующей секцией */
        linear-gradient(to top, rgba(12, 27, 34, 1) 0%, rgba(12, 27, 34, 1) 3%, rgba(12, 27, 34, 0.45) 14%, rgba(12, 27, 34, 0.12) 32%, rgba(12, 27, 34, 0) 50%),
        /* «полусфера»: единый мягкий обхват справа, снизу и сверху-справа.
           Светлый центр смещён в верх-лево — велосипед, левый и верх-левый край остаются открытыми */
        radial-gradient(122% 126% at 27% 43%,
            rgba(12, 27, 34, 0) 50%,
            rgba(12, 27, 34, 0.13) 68%,
            rgba(12, 27, 34, 0.36) 86%,
            rgba(12, 27, 34, 0.58) 100%);
}

/* ───────────────────────────────────────
   Hero — главный экран
─────────────────────────────────────── */
.Hero {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    padding: calc(var(--header-h) + 4vh) var(--side) 8vh 10vw;
}

.Hero_left {
    max-width: 640px;
}

.Hero_kicker {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-river);
    margin: 0 0 18px;
    padding-left: 38px;
    position: relative;
}

.Hero_kicker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 26px;
    height: 2px;
    background: linear-gradient(to right, var(--color-river), transparent);
}

.Hero_title {
    font-size: clamp(4.2rem, 9vw, 142px);
    line-height: 0.92;
    margin: 0;
    letter-spacing: -0.01em;
}


.Hero_titleAccent {
    color: transparent;
    -webkit-text-stroke: 2.5px var(--color-accent-soft);
    text-stroke: 2.5px var(--color-accent-soft);
    text-shadow: none;
    /* Чёткая тень контура, чтобы «СПОРТА» читалась на любом фоне */
    filter:
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.9)) drop-shadow(0 9px 20px rgba(0, 0, 0, 0.6));
}

.Hero_subtitle {
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.5;
    color: var(--color-text);
    max-width: 480px;
    margin: 26px 0 0;
}

.Hero_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

/* Таймер обратного отсчёта */
.Countdown {
    margin-top: 40px;
}

.Countdown_label {
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--color-text-dim);
    text-transform: uppercase;
    margin: 0 0 12px;
}

.Countdown_grid {
    display: flex;
    gap: 10px;
}

.Countdown_unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 74px;
    padding: 14px 10px;
    border-radius: var(--radius-sm);
    background: rgba(12, 27, 34, 0.55);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(6px);
}

.Countdown_num {
    font-size: 32px;
    line-height: 1;
    color: var(--color-white);
    font-variant-numeric: tabular-nums;
}

.Countdown_word {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-top: 6px;
}

/* Появление текста Hero на загрузке */
.Hero_kicker,
.Hero_title,
.Hero_subtitle,
.Hero_actions,
.Countdown {
    opacity: 0;
    transform: translateY(20px);
    animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.Hero_title    { animation-delay: 0.08s; }
.Hero_subtitle { animation-delay: 0.18s; }
.Hero_actions  { animation-delay: 0.28s; }
.Countdown     { animation-delay: 0.38s; }

@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ───────────────────────────────────────
   Ближайшие мероприятия (правая колонка героя)
─────────────────────────────────────── */
.MainNextEvent {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: calc(var(--header-h) + 4vh);
}

.MainNextEvent_Text {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: right;
    margin: 0 0 8px;
    /* Такая же ненавязчивая тень, как у «СПОРТА» */
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.9), 0 9px 20px rgba(0, 0, 0, 0.6);
}

.MainNextEvent_Cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
}

.MainNextEvent_Card {
    position: relative;
    width: 280px;
    height: 220px;
    /* фиксированный размер: карточки не сжимаются и не тянутся в колонке */
    flex: 0 0 auto;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-soft);
}

.MainNextEvent_Card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.MainNextEvent_Card:hover img {
    transform: scale(1.06);
}

.MainNextEvent_CardOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 30, 39, 0.92) 0%, rgba(12, 30, 39, 0.1) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    transition: background 0.4s ease;
}

.MainNextEvent_Card:hover .MainNextEvent_CardOverlay {
    background: linear-gradient(to top, rgba(12, 30, 39, 0.97) 0%, rgba(12, 30, 39, 0.3) 65%, transparent 100%);
}

.MainNextEvent_CardDate {
    font-size: 12px;
    color: var(--color-accent-soft);
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.MainNextEvent_CardText {
    font-size: 17px;
    color: var(--color-white);
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.MainNextEvent_CardDesc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--color-text);
    margin: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.4s ease, margin-top 0.4s ease;
}

.MainNextEvent_Card:hover .MainNextEvent_CardDesc,
.MainNextEvent_Card:focus-visible .MainNextEvent_CardDesc {
    max-height: 80px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 7px;
}

/* ───────────────────────────────────────
   Бегущая строка
─────────────────────────────────────── */
.Marquee {
    position: relative;
    z-index: 3;
    overflow: hidden;
    background: linear-gradient(90deg, var(--color-bg-2), var(--color-surface));
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
    padding: 16px 0;
}

.Marquee_track {
    display: flex;
    width: max-content;
    animation: marquee 28s linear infinite;
}

.Marquee:hover .Marquee_track {
    animation-play-state: paused;
}

.Marquee_item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: clamp(22px, 3vw, 40px);
    letter-spacing: 0.04em;
    color: var(--color-white);
    text-transform: uppercase;
    padding-right: 8px;
}

.Marquee_item i {
    font-style: normal;
    color: var(--color-accent);
    margin: 0 28px;
    font-size: 0.7em;
    transform: translateY(-2px);
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* ───────────────────────────────────────
   Переиспользуемая шапка секции
─────────────────────────────────────── */
.Section_Head {
    margin-bottom: 38px;
}

.Section_Eyebrow {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-river);
    padding-left: 34px;
    position: relative;
    margin-bottom: 14px;
}

.Section_Eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 2px;
    background: linear-gradient(to right, var(--color-river), transparent);
}

.Section_Title {
    display: block;
    font-size: clamp(30px, 5vw, 54px);
    color: var(--color-white);
    line-height: 1;
    margin: 0;
    letter-spacing: -0.01em;
}

/* ───────────────────────────────────────
   Появление при скролле
─────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ───────────────────────────────────────
   Дисциплины
─────────────────────────────────────── */
.Disciplines {
    margin: clamp(64px, 9vw, 120px) var(--side) 0;
}

.Disciplines_Grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.Disciplines_Grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.Disciplines_Grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.Disciplines_Grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.DiscCard {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius);
    padding: 28px 24px 26px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.DiscCard:hover {
    transform: translateY(-6px);
    background: var(--color-surface-2);
    border-color: rgba(99, 183, 197, 0.4);
    box-shadow: var(--shadow-soft);
}

.DiscCard_Icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--color-accent-soft);
    background: rgba(61, 169, 139, 0.12);
    border: 1px solid rgba(61, 169, 139, 0.25);
    margin-bottom: 18px;
    transition: transform 0.35s ease, background 0.35s ease;
}

.DiscCard_Icon svg {
    width: 26px;
    height: 26px;
}

.DiscCard:hover .DiscCard_Icon {
    transform: scale(1.08) rotate(-4deg);
    background: rgba(61, 169, 139, 0.2);
}

.DiscCard_Title {
    font-size: 21px;
    line-height: 1.2;
    color: var(--color-white);
    /* Резерв под 2 строки — заголовки и описания выровнены во всех карточках */
    min-height: 2.4em;
    margin: 0 0 8px;
}

.DiscCard_Text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-text-dim);
    margin: 0;
}

/* ───────────────────────────────────────
   Статистика
─────────────────────────────────────── */
.Stats {
    margin: var(--section-gap) var(--side) 0;
    padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 56px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(61, 169, 139, 0.12), transparent 55%),
        radial-gradient(120% 160% at 100% 100%, rgba(99, 183, 197, 0.12), transparent 55%),
        var(--color-bg-2);
    border: 1px solid var(--color-border-soft);
}

.Stats_Grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
}

.Stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.Stat_Num {
    display: block;
    font-size: clamp(38px, 5.4vw, 62px);
    line-height: 1.05;
    white-space: nowrap;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

/* Единица измерения — мельче самого числа, чтобы цифры выглядели ровно */
.Stat_Suffix {
    font-size: 0.5em;
    margin-left: 2px;
}

.Stat_Label {
    display: block;
    margin-top: 12px;
    /* Резерв под 2 строки — подписи выровнены по высоте */
    min-height: 2.6em;
    font-size: 14px;
    line-height: 1.3;
    color: var(--color-text-dim);
    letter-spacing: 0.02em;
}

/* ───────────────────────────────────────
   Мероприятия
─────────────────────────────────────── */
.MainEvents {
    margin: var(--section-gap) var(--side) 0;
}

.MainEvent_Grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.MainEvent_Grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.MainEvent_Grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ───────────────────────────────────────
   Горизонтальная прокрутка секций, когда карточек много
─────────────────────────────────────── */
.MainEvent_Grid.is-scroll,
.AllInfoCards.is-scroll {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
    -webkit-overflow-scrolling: touch;
}

.MainEvent_Grid.is-scroll {
    align-items: flex-start;
}

.AllInfoCards.is-scroll {
    align-items: stretch;
}

.MainEvent_Grid.is-scroll>*,
.AllInfoCards.is-scroll>* {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.MainEvent_Grid.is-scroll>* {
    width: clamp(240px, 26vw, 300px);
}

.AllInfoCards.is-scroll>* {
    width: clamp(280px, 32vw, 360px);
}

.MainEvent_Grid.is-scroll::-webkit-scrollbar,
.AllInfoCards.is-scroll::-webkit-scrollbar {
    height: 8px;
}

.MainEvent_Grid.is-scroll::-webkit-scrollbar-thumb,
.AllInfoCards.is-scroll::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}

.MainEvent_Card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: block;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.7s ease;
}

.MainEvent_Card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 183, 197, 0.4);
    box-shadow: 0 22px 50px -24px rgba(0, 0, 0, 0.8);
}

.MainEvent_Card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.MainEvent_Card:hover img {
    transform: scale(1.07);
}

.MainEvent_Overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12, 27, 34, 0.92) 0%, rgba(12, 27, 34, 0.12) 52%, rgba(12, 27, 34, 0.28) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    transition: background 0.4s ease;
}

.MainEvent_Card:hover .MainEvent_Overlay {
    background: linear-gradient(to top, rgba(12, 27, 34, 0.96) 0%, rgba(12, 27, 34, 0.42) 60%, rgba(12, 27, 34, 0.35) 100%);
}

.EventDate {
    align-self: flex-start;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: var(--color-white);
    background: rgba(12, 27, 34, 0.55);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 20px;
}

.MainEvent_Bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 56px;
}

.MainEvent_Card img.MainEvent_Logo {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    object-fit: contain;
    opacity: 0;
    transform: translateY(10px) scale(0.85);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
    z-index: 3;
}

.MainEvent_Card:hover img.MainEvent_Logo,
.MainEvent_Card:focus-visible img.MainEvent_Logo {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.EventChips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.EventChip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--color-text);
    background: rgba(12, 27, 34, 0.5);
    border: 1px solid var(--color-border);
    padding: 4px 10px;
    border-radius: 20px;
}

.EventChip::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-river);
}

.Cat_run::before { background: var(--color-river); }
.Cat_bike::before { background: var(--color-accent); }
.Cat_ski::before { background: #a7c2d6; }
.Cat_walk::before { background: var(--color-pine); }

.MainEvent_TextEventFont {
    font-size: clamp(18px, 2vw, 26px);
    color: var(--color-white);
    line-height: 1.12;
    text-transform: uppercase;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.MainEvent_More {
    font-size: 13px;
    color: var(--color-accent-soft);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: max-height 0.4s ease, opacity 0.35s ease, transform 0.4s ease;
}

.MainEvent_Card:hover .MainEvent_More,
.MainEvent_Card:focus-visible .MainEvent_More {
    max-height: 30px;
    opacity: 1;
    transform: translateY(0);
}

/* ───────────────────────────────────────
   Галерея / атмосфера
─────────────────────────────────────── */
.Gallery {
    margin: var(--section-gap) 0 0;
}

.Gallery .Section_Head {
    margin-left: var(--side);
    margin-right: var(--side);
}

.Gallery_Track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px var(--side) 18px;
    scrollbar-width: none;
}

.Gallery_Track::-webkit-scrollbar {
    display: none;
}

.Gallery_Item {
    position: relative;
    flex: 0 0 clamp(260px, 34vw, 400px);
    aspect-ratio: 4 / 3;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--color-border-soft);
}

.Gallery_Item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.Gallery_Item:hover img {
    transform: scale(1.06);
}

.Gallery_Cap {
    position: absolute;
    left: 14px;
    bottom: 12px;
    font-size: 14px;
    color: var(--color-white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
    padding: 6px 12px;
    background: rgba(12, 27, 34, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    backdrop-filter: blur(6px);
}

/* ───────────────────────────────────────
   О нас
─────────────────────────────────────── */
.AboutUs {
    display: flex;
    gap: 44px;
    align-items: center;
    margin: var(--section-gap) var(--side) 0;
}

.AboutUs_Photo {
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.AboutUs_Photo img {
    width: 460px;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.AboutUs_Photo:hover img {
    transform: scale(1.04);
}

.AboutUs_TextBlock {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    gap: 0;
}

.AboutUs_TextBlock.reveal {
    transition-delay: 0.12s;
}

.AboutUs_MainText {
    margin-bottom: 20px;
}

.AboutUs_OtherText {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.AboutUs_OtherText p {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

.AboutUs_Features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 18px;
    margin: 26px 0 0;
    padding: 0;
}

.AboutUs_Feature {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--color-text);
}

.AboutUs_Feature::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304231c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat,
        var(--grad-accent);
}

/* ───────────────────────────────────────
   FAQ
─────────────────────────────────────── */
.Faq {
    margin: var(--section-gap) var(--side) 0;
}

.Faq_List {
    max-width: 900px;
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius);
    background: var(--color-surface);
    overflow: hidden;
}

.Faq_Item {
    border-bottom: 1px solid var(--color-border-soft);
}

.Faq_Item:last-child {
    border-bottom: none;
}

.Faq_Q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--color-white);
    cursor: pointer;
    list-style: none;
    transition: background 0.25s ease, color 0.25s ease;
}

.Faq_Q::-webkit-details-marker {
    display: none;
}

.Faq_Q:hover {
    background: rgba(255, 255, 255, 0.02);
}

.Faq_Mark {
    position: relative;
    flex-shrink: 0;
    width: 22px;
    height: 22px;
}

.Faq_Mark::before,
.Faq_Mark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: var(--color-accent-soft);
    border-radius: 2px;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.Faq_Mark::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.Faq_Item[open] .Faq_Mark::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0);
}

.Faq_Item[open] .Faq_Q {
    color: var(--color-accent-soft);
}

.Faq_A {
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--color-text-dim);
    max-width: 760px;
}

.Faq_Item[open] .Faq_A {
    animation: faqIn 0.35s ease;
}

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

/* ───────────────────────────────────────
   Объявления
─────────────────────────────────────── */
.AnnouncementAtCommand {
    margin: var(--section-gap) var(--side) 0;
}

.AllInfoCards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.AllInfoCards .reveal:nth-child(2) { transition-delay: 0.1s; }
.AllInfoCards .reveal:nth-child(3) { transition-delay: 0.2s; }

.InfoCard {
    background-color: var(--color-surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--color-border-soft);
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding-bottom: 18px;
}

.InfoCard:hover {
    border-color: #2a4f63;
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.InfoCard_Image {
    overflow: hidden;
}

/* Карточка без фото — аккуратная градиентная заглушка вместо картинки */
.InfoCard_Image--empty {
    height: 120px;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(61, 169, 139, 0.18), transparent 60%),
        radial-gradient(120% 140% at 100% 100%, rgba(99, 183, 197, 0.16), transparent 60%),
        var(--color-bg-2);
}

.InfoCard_Image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.Announcements_Empty {
    color: var(--color-text-dim);
    font-size: 15px;
    margin: 4px 0 0;
}

.InfoCard:hover .InfoCard_Image img {
    transform: scale(1.05);
}

.InfoCard_User {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px 0;
}

.InfoCard_User img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.InfoCard_User-Name {
    font-size: 15px;
    color: var(--color-text);
}

.InfoCard_Date {
    font-size: 13px;
    color: var(--color-text-dim);
    padding: 8px 0 0 18px;
    display: block;
}

.InfoCard_NameOfCard {
    font-size: 17px;
    color: var(--color-white);
    padding: 0 18px;
    line-height: 1.3;
    margin-top: 7px;
}

.InfoCard_Description {
    font-size: 14px;
    color: var(--color-text-dim);
    padding: 0 18px;
    line-height: 1.55;
    margin-top: 8px;
}

/* ───────────────────────────────────────
   CTA-баннер
─────────────────────────────────────── */
.CtaBanner {
    margin: var(--section-gap) var(--side) 0;
}

.CtaBanner_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 28px;
    padding: clamp(32px, 4vw, 52px);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 180% at 100% 0%, rgba(61, 169, 139, 0.22), transparent 55%),
        radial-gradient(120% 180% at 0% 100%, rgba(99, 183, 197, 0.18), transparent 55%),
        var(--color-surface);
    border: 1px solid rgba(99, 183, 197, 0.28);
}

.CtaBanner_Title {
    font-size: clamp(26px, 3.5vw, 42px);
    color: var(--color-white);
    margin: 0;
    line-height: 1.05;
}

.CtaBanner_Text {
    font-size: clamp(15px, 1.4vw, 18px);
    color: var(--color-text);
    margin: 12px 0 0;
    max-width: 520px;
}

/* ───────────────────────────────────────
   Футер
─────────────────────────────────────── */
.Footer {
    margin-top: var(--section-gap);
    padding: clamp(48px, 6vw, 72px) var(--side) 28px;
    background: linear-gradient(to top, #08171f 0%, rgba(8, 23, 31, 0.75) 100%);
    border-top: 1px solid rgba(224, 231, 239, 0.08);
}

.Footer_inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.Footer_brand {
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.Footer_logoLink {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.Footer_logo {
    width: 56px;
    height: 56px;
}

.Footer_wordmark {
    font-size: 18px;
    letter-spacing: 0.12em;
    color: var(--color-white);
}

.Footer_about {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-dim);
    margin: 0;
}

.Footer_col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.Footer_colTitle {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-dim);
    margin-bottom: 4px;
}

.Footer_link {
    color: var(--color-text);
    font-size: 15px;
    width: fit-content;
    transition: color 0.2s ease;
}

.Footer_link:hover {
    color: var(--color-accent-soft);
}

.Footer_city {
    cursor: default;
}

.Footer_city:hover {
    color: var(--color-text);
}

.Footer_bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(224, 231, 239, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.Footer_copy {
    color: var(--color-text-dim);
    margin: 0;
    font-size: 14px;
}

.Footer_top {
    color: var(--color-text);
    font-size: 14px;
    transition: color 0.2s ease;
}

.Footer_top:hover {
    color: var(--color-accent-soft);
}

/* ═══════════════════════════════════════════════════════════
   Адаптация
   ═══════════════════════════════════════════════════════════ */

/* Планшет */
@media (max-width: 1200px) {
    .AboutUs {
        flex-direction: column;
        align-items: stretch;
    }

    .AboutUs_Photo img {
        width: 100%;
        height: clamp(280px, 42vw, 440px);
    }

    .AboutUs_TextBlock {
        max-width: 100%;
    }

    .Footer_inner {
        grid-template-columns: 1fr 1fr;
    }

    .Footer_brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

/* Гамбургер-меню */
@media (max-width: 900px) {
    .SiteHeader_inner {
        flex-wrap: wrap;
        column-gap: 16px;
        row-gap: 0;
    }

    .SiteHeader_burger {
        display: flex;
        order: 3;
    }

    .SiteHeader_cta {
        margin-left: auto;
    }

    .SiteHeader_nav {
        order: 4;
        flex-basis: 100%;
        margin-left: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .SiteHeader.is-open {
        background: rgba(10, 22, 28, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-bottom-color: var(--color-border-soft);
    }

    .SiteHeader.is-open .SiteHeader_nav {
        max-height: 320px;
    }

    .SiteHeader_nav ul {
        flex-direction: column;
        gap: 4px;
        padding: 8px 0 16px;
    }

    .SiteHeader_nav li a {
        display: block;
        padding: 12px 4px;
    }

    .NavigatorText::after {
        display: none;
    }
}

/* Телефон */
@media (max-width: 700px) {
    .SiteHeader_wordmark {
        display: none;
    }

    .SiteHeader_cta {
        padding: 9px 15px;
        font-size: 12px;
    }

    .MainNextEvent {
        display: none !important;
    }

    .Hero {
        padding: calc(var(--header-h) + 2vh) var(--side) 14vh;
        align-items: center;
        text-align: center;
    }

    .Hero_left {
        max-width: 100%;
    }

    .Hero_kicker {
        padding-left: 0;
        font-size: 11px;
        letter-spacing: 0.05em;
        margin-bottom: 18px;
    }

    .Hero_kicker::before {
        display: none;
    }

    .Hero_subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .Hero_actions {
        justify-content: center;
    }

    .Countdown_grid {
        justify-content: center;
        flex-wrap: wrap;
    }

    .Countdown_unit {
        min-width: 64px;
    }

    .MainEvent_Grid {
        grid-template-columns: 1fr;
    }

    .Stats_Grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .MainEvent_TextEventFont {
        font-size: 25px;
    }

    .AboutUs_Features {
        grid-template-columns: 1fr;
    }

    .CtaBanner_inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .CtaBanner_inner .Btn {
        width: 100%;
    }

    .Footer_inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .Footer_bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .Hero_title {
        font-size: clamp(3.6rem, 17vw, 110px);
    }
}

/* Мини-экраны */
@media (max-width: 550px) {
    .NavigatorText {
        font-size: clamp(12px, 3vw, 15px);
    }

    .Marquee_item {
        font-size: 22px;
    }

    .Marquee_item i {
        margin: 0 18px;
    }
}

/* ───────────────────────────────────────
   Уважение к prefers-reduced-motion
─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .TopContentWhBg::before { animation: none; }

    .Hero_kicker,
    .Hero_title,
    .Hero_subtitle,
    .Hero_actions,
    .Countdown {
        opacity: 1;
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
