/* Сезон большого биатлона 2026 — стили промо-страницы (без сборки) */

:root {
    --navy: #293651;
    --navy-deep: #1d2740;
    --navy-up: #34436a;
    --ink: #293651;
    --ink-2: #4b5875;
    --bg: #f3f6fa;
    --surface: #e6edf5;
    --paper: #ffffff;
    --accent: #6aa3d8;
    --accent-ink: #1d2740;
    --on-navy: #f3f6fa;
    --on-navy-2: #b8c5d9;
    --target: #121a2b;
    --live: #e5484d;

    /* Пять размеров шрифта */
    --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
    --step-head: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem);
    --step-display: clamp(2.25rem, 0.25rem + 8.4vw, 8.5rem);

    --gutter: clamp(16px, 2.2vw, 32px);
    --gap: clamp(64px, 8vw, 128px);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
    --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
    --t-press: 140ms;
    --t-hover: 180ms;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* clip, а не hidden: не ломает sticky. Страховка от широких пунктов админ-панели */
html,
body.vnb {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.vnb {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--step-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.vnb img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* :where — сброс не перебивает классы компонентов */
.vnb :where(h1, h2, h3, h4, p, ul, ol, figure) {
    margin: 0;
}

.vnb :where(ul, ol) {
    padding: 0;
    list-style: none;
}

.vnb a {
    color: inherit;
}

.vnb ::selection {
    background: var(--accent);
    color: var(--accent-ink);
}

.vnb :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.wrap {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Типографика */

.display {
    font-size: var(--step-display);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.035em;
    text-transform: uppercase;
    margin-left: -0.04em;
}

.head {
    font-size: var(--step-head);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: clamp(28px, 3.4vw, 56px);
    text-wrap: balance;
}

.lead {
    font-size: var(--step-lead);
    line-height: 1.3;
    max-width: 34ch;
    text-wrap: pretty;
}

.vnb p {
    text-wrap: pretty;
}

.link,
.files a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.07em;
    transition: color var(--t-hover) var(--ease-out);
}

/* Кнопка: одна форма на всю страницу */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    background: var(--navy);
    color: var(--paper) !important;
    font-weight: 700;
    font-size: var(--step-body);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out);
}

.btn:active {
    transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--navy-deep);
    }
    .link:hover,
    .files a:hover {
        color: var(--ink-2);
    }
}

/* Шапка */

.bar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 16px;
}

.bar__logo img {
    width: auto;
    height: 40px;
}

.bar__nav {
    display: flex;
    gap: clamp(16px, 2.4vw, 36px);
    font-weight: 600;
}

.bar__nav a {
    text-decoration: none;
    padding-block: 8px;
    transition: color var(--t-hover) var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .bar__nav a:hover {
        color: var(--ink-2);
    }
}

/* Первый экран: заголовок, логотип в кольцах, мишени сезона */

.hero {
    padding-top: clamp(16px, 2.4vw, 32px);
    padding-bottom: clamp(56px, 7vw, 112px);
}

.hero__grid {
    display: grid;
    grid-template-areas: "title" "logo" "info";
    gap: clamp(24px, 3vw, 40px);
}

.hero__title {
    grid-area: title;
}

.hero__title .line,
.hero__title [data-line] {
    display: block;
}

.hero__logo {
    grid-area: logo;
    position: relative;
    justify-self: center;
    width: min(86vw, 420px);
    aspect-ratio: 1;
}

.hero__logo img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--s);
    aspect-ratio: 1;
    translate: -50% -50%;
    border: 3px dashed var(--accent);
    border-radius: 50%;
    opacity: var(--o);
}

.hero__info {
    grid-area: info;
}

.hero__dates {
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.hero__place {
    margin-top: 8px;
    max-width: 60ch;
}

.hero__range {
    display: grid;
    gap: 12px;
    margin-top: clamp(24px, 3vw, 36px);
}

.board__caption a {
    text-decoration: none;
}

.board__caption span {
    display: block;
    font-weight: 400;
    color: var(--ink-2);
}

@media (hover: hover) and (pointer: fine) {
    .board__caption a:hover {
        text-decoration: underline;
        text-underline-offset: 0.18em;
        text-decoration-thickness: 0.07em;
    }
}

.hero__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    margin-top: clamp(20px, 2.4vw, 28px);
}

.hero__foot > div {
    flex: 1 1 280px;
}

.hero__next {
    max-width: 48ch;
}

.hero__note {
    margin-top: 4px;
    font-size: var(--step-small);
    color: var(--ink-2);
}

@media (min-width: 1024px) {
    .hero__grid {
        grid-template-columns: 7fr 5fr;
        grid-template-areas: "title logo" "info logo";
        grid-template-rows: auto 1fr;
        column-gap: clamp(24px, 3vw, 56px);
    }
    .hero__title {
        font-size: clamp(3rem, 0.2rem + 5.4vw, 6.5rem);
    }
    .hero__logo {
        align-self: center;
        width: 100%;
        max-width: 620px;
    }
    .hero .target__plate {
        width: clamp(44px, 4vw, 64px);
    }
}

@media (min-width: 1280px) {
    .hero__range {
        grid-template-columns: 4fr 5fr;
    }
    .hero .board__targets {
        grid-template-columns: repeat(var(--count), 1fr);
    }
}

.fans__photo img,
.venue__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board {
    background: var(--paper);
    color: var(--ink);
    padding: clamp(16px, 2vw, 28px) clamp(12px, 2vw, 32px) clamp(16px, 2vw, 24px);
}

.board__caption {
    font-weight: 700;
    margin-bottom: clamp(16px, 2vw, 24px);
}

.board__targets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(6px, 1.2vw, 16px);
}

.target {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding-block: 6px;
}

.target__plate {
    position: relative;
    display: block;
    width: clamp(48px, 6.4vw, 92px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--target);
    transition: transform var(--t-hover) var(--ease-out);
}

.target__cover {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--paper);
    transform: scale(0);
    transition: transform 420ms var(--ease-out);
}

/* Закрытая мишень: белая шторка, по краю видно черное кольцо */
.target[data-status="done"] .target__cover {
    transform: scale(0.84);
}

.target[data-next] .target__plate::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: 50%;
    border: 4px solid var(--accent);
}

.target[data-status="live"] .target__plate::after {
    border-color: var(--live);
}

.target__date {
    margin-top: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.board__targets li {
    min-width: 0;
}

.target__name {
    font-size: var(--step-small);
    line-height: 1.25;
    color: var(--ink-2);
    hyphens: auto;
    overflow-wrap: break-word;
}

@media (hover: hover) and (pointer: fine) {
    .target:hover .target__plate {
        transform: scale(1.06);
    }
    .target:not([data-status="done"]):hover .target__cover {
        transform: scale(0.84);
        transition-duration: 160ms;
    }
}

/* Расписание */

.schedule {
    padding-top: var(--gap);
}

.chapter {
    padding-block: clamp(40px, 5vw, 80px) clamp(56px, 7vw, 112px);
}

.chapter--2 {
    background: var(--surface);
    padding-top: clamp(56px, 7vw, 112px);
}

.chapter__grid {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: clamp(28px, 4vw, 80px);
    align-items: start;
}

.chapter__about {
    position: sticky;
    top: 24px;
}

.chapter__name {
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

.chapter__dates {
    font-size: var(--step-lead);
    line-height: 1.1;
    color: var(--ink-2);
    margin-top: 4px;
}

.chapter__title {
    margin-top: 20px;
    max-width: 38ch;
}

.chapter__fact {
    margin-top: 12px;
    font-weight: 600;
}

.chapter__sub {
    font-size: var(--step-body);
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 8px;
}

.chapter__link {
    margin-top: 28px;
}

.chapter__link a {
    font-weight: 600;
    text-underline-offset: 0.18em;
}

.files {
    display: grid;
    gap: 6px;
}

.files--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin-top: 14px;
}

.days {
    display: grid;
    gap: 4px;
}

.day {
    display: grid;
    grid-template-columns: clamp(84px, 9vw, 136px) 1fr;
    gap: clamp(12px, 2vw, 32px);
    padding: clamp(14px, 1.6vw, 20px) clamp(16px, 2vw, 28px);
    scroll-margin-top: 24px;
}

.day--race {
    background: var(--paper);
    padding-block: clamp(20px, 2.4vw, 32px);
}

.day__num {
    display: block;
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.day--race .day__num {
    font-size: var(--step-head);
    letter-spacing: -0.03em;
    line-height: 0.85;
}

.day__month {
    display: block;
    margin-top: 6px;
    font-size: var(--step-small);
    color: var(--ink-2);
}

.day__title {
    font-weight: 700;
}

.day--race .day__title {
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.day__rows {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.day__rows--timed li {
    display: grid;
    grid-template-columns: 3.4em 1fr;
    gap: 12px;
}

.day__rows:not(.day__rows--timed) .day__time {
    display: none;
}

.day__rows .is-race {
    font-weight: 600;
}

.day__time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.day__tbc {
    display: inline-block;
    font-size: var(--step-small);
    font-weight: 400;
    color: var(--ink-2);
}

.day:target {
    background: var(--paper);
    box-shadow: inset 4px 0 0 var(--accent);
}

/* Трансляции */

.tv {
    background: var(--navy-deep);
    color: var(--on-navy);
    padding-block: var(--gap);
}

.tv__grid {
    display: grid;
    grid-template-columns: 8fr 4fr;
    gap: 24px clamp(20px, 2.4vw, 40px);
}

.tv__head {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.tv__player {
    aspect-ratio: 16 / 9;
    background: #0d1424;
    display: grid;
    place-items: center;
}

.tv__player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.tv__empty {
    color: var(--on-navy-2);
    padding: 24px;
    text-align: center;
}

.tv__list {
    display: grid;
    align-content: start;
    gap: 4px;
    max-height: 100%;
    overflow-y: auto;
}

.tv__item {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 14px 18px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background var(--t-hover) var(--ease-out);
}

.tv__item.is-active {
    background: var(--navy-up);
}

@media (hover: hover) and (pointer: fine) {
    .tv__item:hover {
        background: var(--navy);
    }
    .tv__item.is-active:hover {
        background: var(--navy-up);
    }
}

.tv__when {
    font-size: var(--step-small);
    color: var(--on-navy-2);
}

.tv__status--live {
    color: #ff8c8f;
    font-weight: 700;
}

.tv__title {
    font-weight: 600;
    line-height: 1.3;
}

/* Новости */

.news {
    background: var(--paper);
    padding-block: var(--gap);
}

.news__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: clamp(28px, 3.4vw, 56px);
}

.news__top .head {
    margin-bottom: 0;
}

.news__arrows {
    display: flex;
    gap: 4px;
}

.arrow {
    width: 56px;
    height: 56px;
    border: 0;
    background: var(--surface);
    color: var(--ink);
    font: 700 1.375rem/1 "Inter Tight", Arial, sans-serif;
    cursor: pointer;
    transition: background var(--t-hover) var(--ease-out), opacity var(--t-hover), transform var(--t-press) var(--ease-out);
}

.arrow:active {
    transform: scale(0.94);
}

.arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .arrow:not(:disabled):hover {
        background: var(--navy);
        color: var(--paper);
    }
}

.news__track {
    --edge: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter)));
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(272px, 27vw, 400px);
    gap: clamp(16px, 1.8vw, 28px);
    overflow-x: auto;
    padding-inline: var(--edge);
    scroll-padding-inline: var(--edge);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}

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

.story {
    scroll-snap-align: start;
}

.story a {
    display: block;
    text-decoration: none;
}

.story__pic {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--surface);
}

.story__pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-soft);
}

.story__meta {
    display: block;
    margin-top: 16px;
    font-size: var(--step-small);
    color: var(--ink-2);
}

.story__title {
    display: -webkit-box;
    margin-top: 6px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
    .story a:hover .story__pic img {
        transform: scale(1.04);
    }
    .story a:hover .story__title {
        text-decoration: underline;
        text-underline-offset: 0.18em;
        text-decoration-thickness: 0.07em;
    }
}

/* Болельщикам */

.fans {
    padding-block: var(--gap);
}

.fans__grid {
    display: grid;
    grid-template-columns: 6fr 6fr;
    gap: clamp(28px, 4vw, 80px);
    align-items: start;
}

.fans__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--surface);
    position: sticky;
    top: 24px;
}

.fans__list {
    display: grid;
    gap: 16px;
    margin-top: clamp(28px, 3vw, 44px);
    max-width: 52ch;
}

.contests {
    margin-top: clamp(32px, 4vw, 56px);
    padding: clamp(20px, 2.4vw, 36px);
    background: var(--paper);
}

.contests__head {
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
}

.contests ul {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.contests__prize {
    margin-top: 20px;
    font-weight: 700;
}

/* Как добраться */

.venue {
    background: var(--paper);
    padding-bottom: var(--gap);
}

.venue__photo {
    aspect-ratio: 21 / 8;
    overflow: hidden;
    background: var(--surface);
}

.venue__grid {
    display: grid;
    grid-template-columns: 5fr 4fr 3fr;
    gap: 24px clamp(24px, 3vw, 56px);
    padding-top: clamp(40px, 5vw, 80px);
    align-items: start;
}

.venue__grid .head {
    margin-bottom: 0;
}

.venue__name {
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.venue__col .btn + p {
    margin-top: 16px;
}

/* Подвал */

.foot {
    background: var(--navy);
    color: var(--on-navy);
    padding-block: clamp(56px, 7vw, 112px) 40px;
}

.foot__name {
    color: var(--on-navy);
}

.foot__row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: clamp(40px, 5vw, 80px);
    font-size: var(--step-small);
    color: var(--on-navy-2);
}

.foot__org img {
    height: 44px;
    width: auto;
    margin-bottom: 12px;
}

.foot__gov img {
    height: 64px;
    width: auto;
    margin-top: 8px;
}

.foot__social {
    display: flex;
    gap: 24px;
}

.foot__social a {
    color: var(--on-navy);
    font-size: var(--step-body);
    font-weight: 600;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.07em;
}

/* Планшет и телефон */

@media (max-width: 1023px) {
    .chapter__grid,
    .tv__grid,
    .fans__grid {
        grid-template-columns: 1fr;
    }
    .chapter__about,
    .fans__photo {
        position: static;
    }
    .fans__photo {
        aspect-ratio: 3 / 2;
    }
    .tv__list {
        max-height: 360px;
    }
    .venue__grid {
        grid-template-columns: 1fr 1fr;
    }
    .venue__grid .head {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .bar__wide {
        display: none;
    }
    .bar__logo img {
        height: 34px;
    }
    .board__targets {
        column-gap: 4px;
    }
    .target__name {
        font-size: 0.75rem;
    }
    .day {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .day__date {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }
    .day__month {
        margin-top: 0;
    }
    .day__rows--timed li {
        grid-template-columns: 3.2em 1fr;
        gap: 8px;
    }
    .news__top {
        align-items: center;
    }
    .arrow {
        width: 48px;
        height: 48px;
    }
    .venue__photo {
        aspect-ratio: 4 / 3;
    }
    .venue__grid {
        grid-template-columns: 1fr;
    }
    .foot__row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Движение: без скрипта и при reduced-motion страница сразу в конечном виде */

@keyframes line-up {
    to { transform: none; }
}

@keyframes ring {
    0%   { transform: scale(1);    opacity: 1; }
    70%  { transform: scale(1.18); opacity: 0; }
    100% { transform: scale(1.18); opacity: 0; }
}

@keyframes spin {
    to { rotate: 360deg; }
}

@keyframes plate-in {
    from { transform: scale(0.55); opacity: 0; }
    to   { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    .js .hero__title .line {
        overflow: hidden;
        padding-bottom: 0.06em;
        margin-bottom: -0.06em;
    }
    .js .hero__title [data-line] {
        transform: translateY(105%);
        animation: line-up 1000ms var(--ease-expo) forwards;
        animation-delay: calc(var(--i) * 110ms + 120ms);
    }

    .js [data-reveal] {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
        transition-delay: calc(var(--d, 0) * 80ms);
    }
    .js [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }

    /* Обрезка на картинке, не на рамке: иначе IntersectionObserver не видит рамку */
    .js [data-open] img {
        clip-path: inset(0 0 100% 0);
        transform: scale(1.1);
        transition: clip-path 1200ms var(--ease-in-out), transform 1600ms var(--ease-soft);
    }
    .js [data-open].is-in img {
        clip-path: inset(0 0 0 0);
        transform: none;
    }

    /* Мишени встают по очереди, потом закрываются прошедшие — как серия на рубеже */
    .js .board .target__plate {
        opacity: 0;
    }
    .js .board.is-in .target__plate {
        animation: plate-in 520ms var(--ease-out) forwards;
        animation-delay: calc(var(--n, 0) * 90ms + 200ms);
    }
    .js .board .target[data-status="done"] .target__cover {
        transform: scale(0);
    }
    .js .board.is-in .target[data-status="done"] .target__cover {
        transform: scale(0.84);
        transition-delay: calc(var(--n, 0) * 90ms + 760ms);
    }
    .js .board.is-in .target[data-status="done"]:hover .target__cover {
        transition-delay: 0ms;
    }
    .target[data-next] .target__plate::after {
        animation: ring 2.4s var(--ease-out) infinite;
    }
    .hero__ring {
        animation: spin var(--t) linear infinite var(--dir);
    }
}
