/* Зимние Игры Паралимпийцев «Мы вместе. Спорт» 2026 — стили промо-страницы (без сборки).
   Цвета, полосы и стрелки — по заставке Игр 2026 года из материалов федерации. */

:root {
    --navy: #273371;
    --navy-deep: #1c2558;
    --blue: #144a8a;
    --teal: #24b6c3;
    --lilac: #d6eefa;
    --mist: #eef7fc;
    --paper: #ffffff;
    --red: #d4151d;
    --red-deep: #ad0f16;
    --ink: #1c2558;
    --ink-2: #4a5280;
    --line: #dde1f0;


    /* Пять размеров шрифта */
    --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
    --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
    --step-lead: clamp(1.25rem, 0.95rem + 1vw, 1.75rem);
    --step-head: clamp(2.125rem, 1.2rem + 3.2vw, 4rem);
    --step-display: clamp(3rem, 0.6rem + 6.4vw, 6.75rem);

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

    --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);
}

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

/* clip, а не hidden: не ломает sticky */
html,
body.mvs {
    overflow-x: clip;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body.mvs {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
    font-size: var(--step-body);
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.mvs a {
    color: inherit;
}

.mvs button {
    font: inherit;
    color: inherit;
}

.mvs ::selection {
    background: var(--red);
    color: #fff;
}

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

.mvs [hidden] {
    display: none !important;
}

.skip {
    position: absolute;
    left: var(--gutter);
    top: -100px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
}

.skip:focus {
    top: 12px;
}

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

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

.display {
    font-size: var(--step-display);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.head {
    font-size: var(--step-head);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin-bottom: clamp(28px, 3.4vw, 48px);
}

/* Две стрелки с афиши */
.arrows {
    display: inline-block;
    flex: none;
    width: 1.6em;
    height: 0.9em;
    background:
        linear-gradient(var(--teal), var(--teal)) 0 0 / 50% 100% no-repeat,
        linear-gradient(var(--blue), var(--blue)) 100% 0 / 50% 100% no-repeat;
    clip-path: polygon(0 0, 50% 50%, 0 100%, 0 0, 50% 0, 100% 50%, 50% 100%, 50% 0);
}

/* Кнопки и ссылки */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    background: var(--red);
    color: #fff !important;
    font-size: var(--step-small);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    border: 2px solid var(--red);
    transition: background-color 180ms, border-color 180ms, color 180ms, transform 140ms;
}

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

.btn--ghost {
    background: transparent;
    color: var(--navy) !important;
    border-color: var(--navy);
}

@media (hover: hover) and (pointer: fine) {
    .btn:hover {
        background: var(--red-deep);
        border-color: var(--red-deep);
    }
    .btn--ghost:hover {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff !important;
    }
    .files a:hover {
        color: var(--red);
    }
}

/* Шапка */

.bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.admin-bar .bar {
    top: 32px;
}

.bar__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
}

.bar__logo img {
    width: 113px;
}

.bar__nav {
    display: flex;
    gap: clamp(16px, 2.4vw, 36px);
    font-size: var(--step-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bar__nav a {
    text-decoration: none;
    padding: 8px 0;
    background: linear-gradient(var(--red), var(--red)) 0 100% / 0 3px no-repeat;
    transition: background-size 220ms var(--ease-out);
}

.bar__nav a:hover {
    background-size: 100% 3px;
}

/* Положение — заметной кнопкой в шапке */
.bar__nav .bar__doc {
    padding: 8px 14px;
    background: var(--red);
    color: #fff;
    transition: background-color 180ms;
}

.bar__nav .bar__doc:hover {
    background: var(--red-deep);
}

.bar__nav {
    align-items: center;
}

.btn__note {
    margin-left: 8px;
    padding: 2px 6px;
    font-size: 0.75em;
    border: 1px solid currentColor;
}

/* Первый экран */

.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(32px, 4vw, 64px) clamp(40px, 5vw, 80px);
    isolation: isolate;
}

/* Плоскости и треугольники по заставке — один SVG на весь первый экран, прижат к правому верхнему углу */
.hero__art {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Справа узор целиком, от логотипа влево растворяется, к середине экрана исчезает */
    -webkit-mask-image: linear-gradient(to left, #000 15%, transparent 50%);
    mask-image: linear-gradient(to left, #000 15%, transparent 50%);
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
}

.hero__eyebrow {
    font-size: var(--step-lead);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--blue);
    margin-bottom: 16px;
}

.hero__title {
    color: var(--navy);
    /* Первый экран целиком в окне и на широком невысоком мониторе */
    font-size: min(var(--step-display), 11vh);
}

.hero__title .line {
    display: block;
}

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

.hero__when {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: clamp(20px, 2.4vw, 32px);
    font-size: min(var(--step-head), 6.5vh);
}

.hero__when p {
    display: flex;
    flex-direction: column;
}

.hero__dates {
    color: var(--red);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.hero__city {
    margin-top: 8px;
    font-size: var(--step-lead);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--navy);
}

.hero__next {
    margin-top: clamp(24px, 3vw, 36px);
    max-width: 38em;
    padding-left: 16px;
    border-left: 4px solid var(--red);
    color: var(--ink-2);
}

.hero__next strong {
    color: var(--ink);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__emblem {
    justify-self: center;
    width: min(100%, 420px, 56vh);
}


.hero__emblem img {
    width: 100%;
    /* Белые углы картинки не ложатся на узор */
    border-radius: 50%;
}

/* Виды программы: текст слева, силуэты справа */
.sports {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin-top: clamp(40px, 5vw, 72px);
    background: var(--line);
    border: 2px solid var(--line);
}

.sport {
    display: flex;
    gap: 16px;
    height: 100%;
    padding: clamp(20px, 2.4vw, 32px);
    background: var(--paper);
    text-decoration: none;
    transition: background-color 180ms;
}

.sport:hover {
    background: var(--mist);
}

.sport__text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.sport__pics {
    display: flex;
    flex: none;
    align-items: flex-end;
    gap: 8px;
}

/* Силуэты на белом фоне: multiply убирает белое на голубой подложке при наведении.
   .sport — чтобы перебить общее .mvs img { height: auto } */
.sport .sport__pic {
    height: clamp(96px, 10vw, 150px);
    width: auto;
    mix-blend-mode: multiply;
    transition: transform 400ms var(--ease-out);
}


.sport:hover .sport__pic {
    transform: translateX(-4px);
}

.sport__dates {
    font-size: var(--step-small);
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.sport__name {
    margin-top: 10px;
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
}

.sport__note {
    color: var(--ink-2);
}

.sport__venue {
    margin-top: auto;
    padding-top: 16px;
    font-size: var(--step-small);
    color: var(--ink-2);
}

/* Программа */

.program {
    padding-block: var(--gap);
    background: var(--mist);
}

.program__top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px 32px;
    margin-bottom: clamp(24px, 3vw, 40px);
}

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

.program__lead {
    max-width: 30em;
    font-size: var(--step-small);
    color: var(--ink-2);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.filter {
    min-height: 48px;
    padding: 8px 18px;
    border: 2px solid var(--navy);
    background: transparent;
    font-size: var(--step-small);
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms, color 180ms;
}

.filter[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
}

@media (hover: hover) and (pointer: fine) {
    .filter[aria-pressed="false"]:hover {
        background: var(--lilac);
    }
}

.days-nav {
    display: grid;
    grid-template-columns: repeat(11, minmax(56px, 1fr));
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 4px;
}

.days-nav::-webkit-scrollbar {
    display: none;
}

.days-nav__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 4px 10px;
    border: 0;
    background: var(--paper);
    cursor: pointer;
    transition: background-color 180ms, color 180ms;
}

.days-nav__num {
    font-size: var(--step-lead);
    font-weight: 900;
    line-height: 1;
}

.days-nav__wd {
    font-size: var(--step-small);
    color: var(--ink-2);
}

.days-nav__tab[aria-selected="true"] {
    background: var(--navy);
    color: #fff;
}

.days-nav__tab[aria-selected="true"] .days-nav__wd {
    color: var(--lilac);
}

/* Отметка дня, в котором есть старты выбранного вида */
.days-nav__tab.is-empty .days-nav__num {
    opacity: 0.35;
}

@media (hover: hover) and (pointer: fine) {
    .days-nav__tab[aria-selected="false"]:hover {
        background: var(--lilac);
    }
}

.day {
    background: var(--paper);
    padding: clamp(20px, 3vw, 40px);
}

/* Без JS дни идут подряд, с JS — вкладками */
.day + .day {
    margin-top: 4px;
}

.js .day:not(.is-active) {
    display: none;
}

.day__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--navy);
}

.day__date {
    font-size: var(--step-lead);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--red);
}

.day__title {
    font-size: var(--step-lead);
    font-weight: 800;
}

.day__empty {
    padding: 24px 0 8px;
    color: var(--ink-2);
}

.slot {
    display: grid;
    grid-template-columns: 9.5em minmax(0, 1fr) 9em;
    gap: 4px 24px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.slot__time {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.slot__tbc {
    font-size: var(--step-small);
    font-weight: 600;
    color: var(--ink-2);
}

.slot__text {
    display: block;
    font-weight: 600;
}

.slot__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 4px;
    font-size: var(--step-small);
    color: var(--ink-2);
}

.slot__tag {
    font-weight: 700;
}

.slot__tag--hockey {
    color: var(--red);
}

.slot__tag--vi {
    color: var(--blue);
}

.slot__tag--pi {
    color: var(--navy);
}

.slot__kind {
    justify-self: end;
    text-align: right;
    font-size: var(--step-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-2);
}

.slot__live {
    display: none;
}

.slot--race .slot__text {
    font-weight: 800;
}

.slot--race .slot__kind {
    color: var(--red);
}

.slot--award .slot__kind {
    color: var(--blue);
}

.slot--ceremony {
    margin-block: 8px;
    padding-inline: 16px;
    background: var(--navy);
    color: #fff;
    border-bottom: 0;
}

.slot--ceremony .slot__text {
    font-weight: 800;
}

.slot--ceremony .slot__meta,
.slot--ceremony .slot__kind,
.slot--ceremony .slot__tbc {
    color: var(--lilac);
}

.slot--train .slot__text,
.slot--info .slot__text {
    font-weight: 500;
}

.slot[data-status="done"] {
    opacity: 0.5;
}

.slot[data-status="live"] {
    box-shadow: inset 4px 0 0 var(--red);
    padding-left: 16px;
    background: #fff5f5;
}

.slot[data-status="live"] .slot__live {
    display: block;
    color: var(--red);
}

.slot[data-status="live"] .slot__live::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
    background: var(--red);
    vertical-align: 1px;
}

/* Фильтр по виду: строки «для всех» остаются */
[data-filter-active="hockey"] .slot:not([data-sport="hockey"], [data-sport="all"]),
[data-filter-active="ski"] .slot:not([data-sport="ski"], [data-sport="all"]) {
    display: none;
}

.day__team {
    margin-top: 20px;
}

.day__team summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-size: var(--step-small);
    font-weight: 700;
    color: var(--ink-2);
    cursor: pointer;
    list-style: none;
}

.day__team summary::-webkit-details-marker {
    display: none;
}

.day__team summary::before {
    content: "+";
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 2px solid currentColor;
    font-weight: 800;
    line-height: 1;
}

.day__team[open] summary::before {
    content: "−";
}

.slots--team .slot {
    padding-block: 10px;
    font-size: var(--step-small);
}

.slots--team .slot__text {
    font-weight: 600;
}

.slots--team .slot__kind {
    display: none;
}

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

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

.tv__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px clamp(24px, 3vw, 48px);
}

.tv__head {
    grid-column: 1 / -1;
}

.tv__soon {
    grid-column: 1 / -1;
    max-width: 40em;
    font-size: var(--step-lead);
    font-weight: 600;
    color: var(--lilac);
}

.tv__player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy-deep);
}

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

.tv__empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--lilac);
}

.tv__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 480px;
    overflow-y: auto;
}

.tv__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    text-align: left;
    cursor: pointer;
    transition: background-color 180ms;
}

.tv__item:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tv__item.is-active {
    background: var(--paper);
    color: var(--ink);
}

.tv__when {
    font-size: var(--step-small);
    opacity: 0.8;
}

.tv__title {
    font-weight: 700;
}

.tv__status--live {
    color: var(--red);
    font-weight: 800;
}

.tv__item:not(.is-active) .tv__status--live {
    color: #ff7a7f;
}

/* Результаты и документы */

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

.files-block__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 24px clamp(24px, 4vw, 64px);
}

.files-block__grid .head {
    grid-column: 1 / -1;
    margin-bottom: 0;
}

.files-block__sub {
    font-size: var(--step-small);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red);
    margin-bottom: 8px;
}

.files-block__sub:not(:first-child) {
    margin-top: 28px;
}

.files-block__soon {
    color: var(--ink-2);
}

.files li {
    border-bottom: 1px solid var(--line);
}

.files a {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms;
}

.files a::before {
    content: "";
    flex: none;
    width: 0.7em;
    height: 0.8em;
    margin-top: 0.35em;
    background: var(--red);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Новости */

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

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

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

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

.arrow {
    width: 56px;
    height: 56px;
    border: 2px solid var(--navy);
    background: transparent;
    font-size: 1.25rem;
    cursor: pointer;
}

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

.news__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: clamp(260px, 28vw, 380px);
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter)));
    padding-inline: max(var(--gutter), calc((100vw - 1360px) / 2 + var(--gutter)));
    scrollbar-width: none;
}

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

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

.story a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
}

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

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

.story a:hover .story__pic img {
    transform: scale(1.04);
}

.story__meta {
    font-size: var(--step-small);
    color: var(--ink-2);
}

.story__title {
    font-weight: 700;
    line-height: 1.3;
}

.story__pic {
    position: relative;
}

.story__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: var(--paper);
    color: var(--navy);
    font-size: var(--step-small);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.story__badge--video {
    background: var(--red);
    color: #fff;
}

.story a.is-loading {
    cursor: progress;
    opacity: 0.6;
}

.news--media {
    padding-top: var(--gap);
    background: var(--navy);
    color: #fff;
}

.news--media .arrow {
    border-color: #fff;
}

.news--media .story__meta {
    color: var(--lilac);
}

/* Окно записи */

html.is-locked {
    overflow: hidden;
}

.reader,
.lightbox {
    padding: 0;
    border: 0;
    max-width: none;
    max-height: none;
}

.reader {
    width: min(100% - 32px, 980px);
    height: min(100% - 32px, 92vh);
    margin: auto;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
}

.reader[open] {
    display: flex;
    flex-direction: column;
}

.reader::backdrop {
    background: rgba(28, 37, 88, 0.85);
    backdrop-filter: blur(4px);
}

.reader__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px clamp(20px, 3vw, 40px);
    border-bottom: 2px solid var(--navy);
}

.reader__date {
    font-size: var(--step-small);
    font-weight: 800;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.reader__link {
    margin-left: auto;
    font-size: var(--step-small);
    font-weight: 700;
}

.reader__close,
.lightbox__close,
.lightbox__btn {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 2px solid currentColor;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.reader__scroll {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.reader__body {
    max-width: 760px;
    margin-inline: auto;
    padding: clamp(24px, 4vw, 48px) clamp(20px, 3vw, 40px) 64px;
}

.reader--media .reader__body {
    max-width: none;
}

.reader__title {
    font-size: var(--step-lead);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 24px;
}

.reader__content {
    line-height: 1.65;
}

.reader__content > * + * {
    margin-top: 1em;
}

.reader__content img {
    height: auto;
}

.reader__content img:not(.emoji) {
    cursor: zoom-in;
}

.reader__content img.emoji {
    display: inline;
    width: 1em;
    height: 1em;
    vertical-align: -0.1em;
}

.reader__cover {
    width: 100%;
    margin-bottom: 24px;
}

.reader__content iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

/* Галерея WordPress внутри записи — сеткой превью */
.reader__content .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(160px, 45%), 1fr));
    gap: 6px;
}

.reader__content .gallery-item {
    margin: 0;
}

.reader__content .gallery-item img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: opacity 180ms;
}

.reader__content .gallery-item a:hover img {
    opacity: 0.85;
}

.reader__content .gallery br,
.reader__content .gallery-caption {
    display: none;
}

/* Просмотр фото */

.lightbox {
    width: 100%;
    height: 100%;
    background: #0a0e24;
    color: #fff;
}

.lightbox[open] {
    display: grid;
    place-items: center;
}

.lightbox::backdrop {
    background: transparent;
}

.lightbox__img {
    max-width: calc(100% - 32px);
    max-height: calc(100% - 120px);
    object-fit: contain;
    touch-action: pan-y;
    user-select: none;
}

.lightbox__count {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    font-size: var(--step-small);
    font-weight: 700;
}

.lightbox__close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: #fff;
}

.lightbox__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.3);
}

.lightbox__btn--prev {
    left: 16px;
}

.lightbox__btn--next {
    right: 16px;
}

.lightbox--single .lightbox__btn,
.lightbox--single .lightbox__count {
    display: none;
}

@media (max-width: 767px) {
    .reader {
        width: 100%;
        height: 100%;
    }
    .lightbox__btn {
        top: auto;
        bottom: 8px;
        transform: none;
    }
}

/* Площадки */

.venues {
    padding-block: var(--gap);
    background: var(--mist);
}

.venues__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 32px);
}

.place {
    background: var(--paper);
}

.place__photo {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--lilac);
}

.place__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: clamp(20px, 2.4vw, 32px);
}

.place__sports {
    font-size: var(--step-small);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--red);
}

.place__name {
    font-size: var(--step-lead);
    font-weight: 800;
    line-height: 1.15;
}

.place .btn {
    margin-top: 12px;
}

/* Вторая часть Игр */

.later {
    padding-block: clamp(48px, 6vw, 88px);
}

.later__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 24px clamp(24px, 4vw, 64px);
    align-items: start;
}

.later__head {
    font-size: var(--step-lead);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.15;
}

.later__head span {
    display: block;
    color: var(--red);
}

.later__closing {
    margin-top: 12px;
    color: var(--ink-2);
}

.later__list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2px 24px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.later__list li:first-child {
    border-top: 2px solid var(--navy);
}

.later__list strong {
    grid-row: span 2;
    font-weight: 800;
}

.later__list span {
    font-size: var(--step-small);
    color: var(--ink-2);
}

/* Подвал */

.foot {
    position: relative;
    padding-block: 0 40px;
    background: var(--navy);
    color: #fff;
}

.foot__band {
    display: block;
    height: 8px;
    margin-bottom: clamp(40px, 5vw, 64px);
    background: var(--red);
}

.foot__label {
    font-size: var(--step-small);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lilac);
    margin-bottom: 12px;
}

/* Логотипы — на белой плашке: файлы с белым фоном */
.foot__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px clamp(20px, 3vw, 40px);
    padding: clamp(16px, 2vw, 28px) clamp(16px, 2.4vw, 36px);
    background: var(--paper);
}

.foot__logos img {
    height: clamp(44px, 4.4vw, 64px);
    width: auto;
}

.foot__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: var(--step-small);
}

.foot__org,
.foot__gov {
    display: flex;
    align-items: center;
    gap: 16px;
}

.foot__org a {
    padding: 8px 10px;
    background: var(--paper);
}

.foot__org img {
    width: 113px;
}

.foot__gov img {
    height: 64px;
    width: auto;
}

.foot__social {
    display: flex;
    gap: 24px;
    font-weight: 700;
}

/* Планшет */

@media (max-width: 1023px) {
    /* Эмблема над текстом: композиция только в верхней части, за эмблемой */
    .hero__art {
        height: 360px;
    }
    .hero__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .hero__emblem {
        grid-row: 1;
        width: min(60vw, 340px);
    }
    .hero__text {
        text-align: left;
    }
    .sports {
        grid-template-columns: minmax(0, 1fr);
    }
    .tv__grid,
    .files-block__grid,
    .later__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .tv__list {
        max-height: none;
    }
    .slot {
        grid-template-columns: 8em minmax(0, 1fr);
    }
    .slot__kind {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }
    .slot__kind:empty {
        display: none;
    }
}

/* Телефон */

@media (max-width: 767px) {
    .bar__wide {
        display: none;
    }
    .bar__nav {
        gap: 14px;
        font-size: 0.8125rem;
    }
    .bar__logo img {
        width: 88px;
    }
    .sport .sport__pic {
        height: 84px;
    }
    .hero__when {
        gap: 14px;
    }
    .hero__actions .btn {
        flex: 1 1 100%;
    }
    .venues__grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .days-nav {
        grid-template-columns: repeat(11, 56px);
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
    }
    .day {
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
    }
    .slot {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 12px;
    }
    .slot__body {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .slot__kind {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }
    .later__list li {
        grid-template-columns: minmax(0, 1fr);
    }
    .later__list strong {
        grid-row: auto;
    }
}

/* Анимации — только если не просили меньше движения */

@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 .hero__emblem img {
        opacity: 0;
        transform: rotate(-60deg) scale(0.85);
        animation: emblem-in 1400ms var(--ease-expo) 200ms forwards;
    }
    .js .hero__art {
        clip-path: inset(0 0 0 100%);
        animation: band-in 1200ms var(--ease-in-out) 300ms forwards;
    }
    .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;
    }
    .js [data-open] img {
        clip-path: inset(0 0 100% 0);
        transform: scale(1.08);
        transition: clip-path 1200ms var(--ease-in-out), transform 1600ms var(--ease-out);
    }
    .js [data-open].is-in img {
        clip-path: inset(0 0 0 0);
        transform: none;
    }
    .day.is-active {
        animation: day-in 360ms var(--ease-out);
    }
}

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

@keyframes emblem-in {
    to { opacity: 1; transform: none; }
}

@keyframes band-in {
    to { clip-path: inset(0 0 0 0); }
}

@keyframes day-in {
    from { opacity: 0; transform: translateY(8px); }
}
