/* x-faktor.uz — «Пропуск зрителя». Один файл, без зависимостей и сборки. */

/* ------------------------------------------------------------------ *
 * Токены
 * ------------------------------------------------------------------ */

:root {
  --ground-top: #2f0463;
  --ground-mid: #1a0442;
  --ground-bot: #070224;
  --panel: #1c0745;
  --print: #7f31b5;
  --print-mid: #63289f;
  --print-deep: #4c2189;
  --chrome-1: #cec1d7;
  --chrome-2: #f2eef6;
  --chrome-3: #a99bb8;
  --ink: #ffffff;
  --muted: #cec1d7;
  --muted-2: #b9adc6;
  --line: rgba(206, 193, 215, .35);
  --line-strong: rgba(206, 193, 215, .55);

  --display: "Unbounded", "Trebuchet MS", sans-serif;
  --text: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1160px;
  --pad: 16px;
  --cut: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  /* Плёночное зерно: фон страницы и бумага билета берут один и тот же тайл. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* ------------------------------------------------------------------ *
 * Основа
 * ------------------------------------------------------------------ */

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--print) #14042f;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ground-bot);
  background-image: linear-gradient(180deg, var(--ground-top) 0, var(--ground-mid) 34%, var(--ground-bot) 78%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Плёночное зерно поверх всей поверхности */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: .06;
  background-image: var(--grain);
}

img, svg { max-width: 100%; }
img { border: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
dd { margin: 0; }

a { color: inherit; }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: 56px; }

/* ------------------------------------------------------------------ *
 * Поверхности браузера
 * ------------------------------------------------------------------ */

::selection { background: var(--chrome-2); color: var(--ground-top); }

:focus-visible {
  outline: 2px solid var(--chrome-2);
  outline-offset: 3px;
  border-radius: 1px;
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: #14042f; }
::-webkit-scrollbar-thumb { background: var(--print); border: 3px solid #14042f; }
::-webkit-scrollbar-thumb:hover { background: var(--chrome-3); }

.skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--chrome-2);
  color: var(--ground-top);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ *
 * Кнопки билетной формы
 * ------------------------------------------------------------------ */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  font-family: var(--text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--b-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: transform .25s var(--ease);
}
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  clip-path: var(--cut);
}
.btn::before { inset: 0; background: var(--b-edge); }
.btn::after { inset: 1px; background: var(--b-fill); transition: background .25s var(--ease); }

.btn--cta   { --b-edge: #fff; --b-fill: var(--chrome-2); --b-ink: var(--ground-top); }
.btn--solid { --b-edge: var(--chrome-3); --b-fill: var(--print); --b-ink: #fff; }
.btn--ghost { --b-edge: var(--line-strong); --b-fill: var(--panel); --b-ink: var(--chrome-2); }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--cta:hover::after   { background: #fff; }
  .btn--solid:hover::after { background: var(--print-mid); }
  .btn--ghost:hover::after { background: #260a5b; }
}
.btn:active { transform: translateY(0); }

.linkish {
  display: inline-block;
  min-height: 44px;
  padding: 10px 0;
  font: inherit;
  font-size: 14px;
  color: var(--chrome-2);
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.linkish:hover { text-decoration-color: var(--chrome-2); }

/* ------------------------------------------------------------------ *
 * Шапка
 * ------------------------------------------------------------------ */

.hdr {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px var(--pad);
}

.hdr__stamp { display: block; flex: none; }
.hdr__stamp img {
  display: block;
  width: 56px; height: 56px;
  background: #7f31b5;      /* точный фон логотипа — стык не виден */
  border-radius: 2px;
}

.hdr__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--chrome-1);
  display: none;
}

.hdr__nav { display: none; }

.hdr__lang {
  margin-left: auto;
  display: flex;
  align-items: center;
  background: rgba(7, 2, 36, .72);
  border: 1px solid var(--line);
}
.hdr__lang a,
.foot__lang a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; min-height: 44px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
  text-decoration: none;
}
.hdr__lang a + a, .foot__lang a + a { border-left: 1px solid var(--line); }
.hdr__lang a[aria-current], .foot__lang a[aria-current] {
  background: var(--chrome-2);
  color: var(--ground-top);
}

.hdr__burger {
  flex: none;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  background: rgba(7, 2, 36, .72);
  border: 1px solid var(--line);
  cursor: pointer;
}
.burger__bars { display: block; width: 22px; }
.burger__bars span {
  display: block;
  height: 2px;
  background: var(--chrome-2);
  transition: transform .25s var(--ease);
}
.burger__bars span + span { margin-top: 6px; }
.hdr[data-menu="open"] .burger__bars span:first-child { transform: translateY(4px) rotate(45deg); }
.hdr[data-menu="open"] .burger__bars span:last-child  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 899px) {
  .hdr[data-menu="open"] .hdr__nav {
    display: block;
    position: fixed;
    inset: 72px 0 auto;
    background: #14042f;
    border-block: 1px solid var(--line);
    padding: 8px var(--pad) 16px;
  }
  .hdr__nav a {
    display: block;
    padding: 13px 0;
    min-height: 44px;
    font-size: 16px;
    font-weight: 600;
    color: var(--chrome-2);
    text-decoration: none;
    border-bottom: 1px solid rgba(206, 193, 215, .18);
  }
}

/* ------------------------------------------------------------------ *
 * Афиша
 * ------------------------------------------------------------------ */

.hero {
  position: relative;
  /* Высота задана явно: только так строка 1fr отдаёт остаток арту,
     а билет целиком помещается в первый экран. */
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  background: linear-gradient(180deg, var(--ground-top) 0, var(--ground-mid) 34%, var(--ground-bot) 78%);
  display: grid;
  grid-template-rows: minmax(150px, 1fr) auto;
}

.hero__art { position: relative; min-height: 0; overflow: hidden; }
/* Арт растворяется в собственном градиенте героя — стыка с фоном страницы нет. */
.hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--ground-top) 0, var(--ground-mid) 34%, var(--ground-bot) 78%);
  background-size: 100% 100vh;
  background-size: 100% 100svh;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #0000 40%, #000 100%);
  mask-image: linear-gradient(180deg, #0000 40%, #000 100%);
}
.hero__art picture { display: block; width: 100%; height: 100%; }
.hero__art img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(47, 4, 99, .34) 0,
    rgba(47, 4, 99, .10) 40%,
    rgba(24, 4, 60, .34) 100%);
}

.hero__pass {
  position: relative;
  z-index: 2;
  margin-top: -24px;
  padding: 0 var(--pad) 18px;
}

.hero__secondary {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
}
.hero__secondary a {
  display: inline-block;
  min-height: 44px;
  padding-top: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
.hero__secondary a:hover { color: var(--chrome-2); text-decoration-color: var(--chrome-2); }

/* ------------------------------------------------------------------ *
 * Билет
 * ------------------------------------------------------------------ */

.ticket {
  --stub: 128px;
  --notch: 12px;
  position: relative;
  max-width: 520px;
  margin-inline: auto;
  color: var(--ink);
  background: linear-gradient(168deg, var(--print) 0, var(--print-mid) 54%, var(--print-deep) 100%);
  -webkit-mask-image:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 98%, #000 100%),
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 98%, #000 100%);
  mask-image:
    radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub)), #0000 98%, #000 100%),
    radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub)), #0000 98%, #000 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.ticket[data-stubstate="gone"] { --stub: 0px; }

/* Бумага, а не заливка: тот же тайл зерна поверх печати билета. */
.ticket::after,
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .07;
  background-image: var(--grain);
}

.ticket__main { position: relative; padding: 18px 20px 16px 30px; }

.ticket__chrome {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--chrome-1) 0, var(--chrome-2) 46%, var(--chrome-3) 100%);
  transition: filter .25s var(--ease);
}

.ticket__frame {
  position: absolute;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(242, 238, 246, .40);
  white-space: nowrap;
  pointer-events: none;
}
.ticket__frame--top    { top: 6px;  left: 28px; right: 20px; }
.ticket__frame--bottom { bottom: 5px; left: 28px; right: 20px; text-align: right; }
.ticket__frame--left   { top: 20px; bottom: 18px; left: 11px; width: 11px; }
.ticket__frame--right  { top: 20px; bottom: 18px; right: 7px; width: 11px; }
.ticket__frame--left span  { writing-mode: vertical-rl; transform: rotate(180deg); display: block; }
.ticket__frame--right span { writing-mode: vertical-rl; display: block; }

.ticket__inner { position: relative; }

.ticket__head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .20em;
  text-transform: uppercase;
  color: rgba(242, 238, 246, .88);
  font-variant-numeric: tabular-nums;
}

.ticket__kind { margin-right: auto; }

/* Штамп X-Faktor: знак вырезан из фиолетовой подложки, alpha-PNG.
   Подложки нет — печать билета видна сквозь знак, края квадрата не читаются. */
.ticket__stamp {
  flex: none;
  display: block;
  width: 40px; height: 40px;
}

.ticket__season {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(29px, 8.2vw, 40px);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.ticket__status {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.35;
  color: #f4eefb;
  max-width: 34ch;
}

.ticket__doneline { margin-top: 8px; }
.ticket__donetitle {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.ticket__donetext { font-size: 14px; color: #f4eefb; margin-top: 2px; }

.ticket__fields {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 14px;
  border-top: 1px solid rgba(242, 238, 246, .22);
  padding-top: 10px;
}
.field dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 238, 246, .78);
}
.field dd {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.field--logo dd { display: flex; }
.ticket .ftv { display: block; height: 24px; width: auto; }

.ticket__repeat {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: .04em;
  color: rgba(242, 238, 246, .72);
  font-variant-numeric: tabular-nums;
}

/* Корешок */
.ticket__stub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-top: 2px dashed rgba(242, 238, 246, .55);
  background: rgba(7, 2, 36, .22);
  transform-origin: 50% 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}

.stub__qr {
  flex: none;
  width: 72px; height: 72px;
  padding: 4px;
  background: var(--chrome-2);
}
.stub__qr svg { display: block; width: 100%; height: 100%; }

.stub__act { flex: 1 1 auto; min-width: 0; }
.stub__act .btn { display: flex; width: 100%; min-height: 56px; font-size: 16px; }
.stub__hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(242, 238, 246, .78);
}

.ticket[data-state="torn"] .ticket__stub {
  transform: translateY(30px) rotate(-3deg);
  opacity: 0;
  pointer-events: none;
}

@media (hover: hover) and (min-width: 900px) {
  .ticket { transition: transform .3s var(--ease); }
  .ticket:hover { transform: translateY(-2px); }
  .ticket:hover .ticket__chrome { filter: brightness(1.25); }
}

/* ------------------------------------------------------------------ *
 * Табло сезона
 * ------------------------------------------------------------------ */

.band { position: relative; isolation: isolate; padding-block: 52px; overflow: hidden; }
.band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/assets/img/stage-1920.webp") 50% 45% / cover no-repeat;
}
.band__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(47, 4, 99, .85);
}
.band h2 { font-size: clamp(22px, 5.4vw, 34px); }

.stages {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  margin-inline: calc(var(--pad) * -1);
  padding: 4px var(--pad) 14px;
  overscroll-behavior-x: contain;
}

/* Два корешка целиком плюс 24 px третьего — видно, что ряд прокручивается. */
@media (max-width: 899px) {
  .stages { gap: 16px; }
  .stages > .stage { flex: 0 0 calc((100% - 24px - 16px) / 2); }
  .stages > .stage:last-child { scroll-snap-align: end; }
}

.stage {
  position: relative;
  flex: 0 0 62%;
  scroll-snap-align: start;
  isolation: isolate;
  min-height: 118px;
  padding: 16px 16px 18px 20px;
  background: linear-gradient(168deg, var(--print) 0, var(--print-deep) 100%);
}
.stage__chrome {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--chrome-1), var(--chrome-2) 46%, var(--chrome-3));
  opacity: 0;
}
.stage__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.stage__status {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(242, 238, 246, .82);
}

.stage--current .stage__chrome { opacity: 1; }
.stage--current { box-shadow: inset 0 0 0 1px rgba(242, 238, 246, .5); }

.stage--upcoming {
  background: rgba(7, 2, 36, .42);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage--upcoming .stage__name { color: var(--muted); }
.stage--upcoming .stage__status { color: var(--muted-2); }

.stage--done {
  --t: 12px;
  transform: translateY(6px) rotate(-2deg);
  opacity: .62;
  -webkit-mask-image: linear-gradient(#000 0 0), conic-gradient(from 135deg at 50% 0, #000 0 90deg, #0000 0);
  mask-image: linear-gradient(#000 0 0), conic-gradient(from 135deg at 50% 0, #000 0 90deg, #0000 0);
  -webkit-mask-size: 100% calc(100% - var(--t)), 18px var(--t);
  mask-size: 100% calc(100% - var(--t)), 18px var(--t);
  -webkit-mask-position: 0 0, 0 100%;
  mask-position: 0 0, 0 100%;
  -webkit-mask-repeat: no-repeat, repeat-x;
  mask-repeat: no-repeat, repeat-x;
  padding-bottom: 26px;
}

.legend {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted-2);
}

/* ------------------------------------------------------------------ *
 * Последний выпуск
 * ------------------------------------------------------------------ */

.section h2 { font-size: clamp(22px, 5.4vw, 34px); }

.epi {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(7, 2, 36, .38);
}
.epi__shot { display: block; }
.epi__shot img {
  display: block;
  width: 100%;
  height: auto;          /* иначе атрибут height="540" перебивает aspect-ratio */
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.epi__body { display: flex; flex-direction: column; gap: 8px; max-width: 60ch; }
.epi__label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  line-height: 1.25;
}
.epi__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.epi__meta .dot { color: var(--muted-2); }
.epi__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.epi__note {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted-2);
}

.more { margin-top: 16px; font-size: 14px; }
.more a {
  display: inline-block;
  min-height: 44px;
  padding-top: 11px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.more a:hover { color: var(--chrome-2); }

/* ------------------------------------------------------------------ *
 * Кастинг и голосование
 * ------------------------------------------------------------------ */

.pair { display: grid; gap: 16px; }
.card {
  border: 1px solid var(--line);
  background: rgba(7, 2, 36, .38);
  padding: 22px 20px 24px;
}
.card h2 { font-size: clamp(20px, 4.6vw, 26px); }
.card__text {
  margin-top: 12px;
  margin-bottom: 18px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 15px;
}

/* ------------------------------------------------------------------ *
 * Соцсети
 * ------------------------------------------------------------------ */

.socials { margin-top: 22px; display: grid; gap: 12px; }
.social {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 18px;
  color: var(--chrome-2);
  text-decoration: none;
  transition: transform .25s var(--ease);
}
.social::before, .social::after { content: ""; position: absolute; z-index: -1; clip-path: var(--cut); }
.social::before { inset: 0; background: var(--line-strong); }
.social::after  { inset: 1px; background: var(--panel); transition: background .25s var(--ease); }
@media (hover: hover) {
  .social:hover { transform: translateY(-2px); }
  .social:hover::after { background: #260a5b; }
}
.social .ico { flex: none; color: var(--chrome-1); }
.social__name { font-weight: 600; font-size: 15px; }
.social__count {
  margin-left: auto;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}
.social__suffix {
  font-family: var(--text);
  font-weight: 400;
  font-size: 12px;
  color: var(--muted-2);
  text-transform: lowercase;
}

/* ------------------------------------------------------------------ *
 * Подвал
 * ------------------------------------------------------------------ */

.foot {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(7, 2, 36, .6);
  padding-block: 32px 40px;
}
.foot__in { display: grid; gap: 18px; }
.foot__ftv { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.foot__ftv img { display: block; height: 22px; width: auto; }
.foot__ftv span, .foot__fre span { font-size: 13px; color: var(--muted); }
.foot__fre { display: flex; align-items: center; gap: 10px; }
.foot__fre img { display: block; height: 16px; width: auto; }
.foot__links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.foot__links a {
  display: inline-block;
  min-height: 44px;
  padding-top: 11px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.foot__links a:hover { color: var(--chrome-2); }
/* Адреса политики ещё нет: пункт остаётся текстом с пометкой, а не мёртвой ссылкой. */
.foot__soon {
  display: inline-block;
  min-height: 44px;
  padding-top: 11px;
  font-size: 14px;
  color: var(--muted-2);
}
.foot__lang { display: inline-flex; border: 1px solid var(--line); width: max-content; }
.foot__copy {
  font-size: 13px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ *
 * Планшет и десктоп
 * ------------------------------------------------------------------ */

@media (min-width: 700px) {
  :root { --pad: 24px; }
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .epi { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; padding: 18px; gap: 24px; }
  .stages {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: 0;
    padding-inline: 0;
  }
  .stage { flex: none; }
  .foot__in {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    gap: 20px 32px;
  }
}

@media (min-width: 900px) {
  /* Ритм: 56 px над заголовком, 40 px под блоком — соседние секции разводит 96 px. */
  .section { padding-block: 56px 40px; }
  .socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band { padding-block: 56px 40px; }

  /* Кадр подгоняется под текст, а не текст под кадр: иначе правая колонка
     на широком экране остаётся наполовину пустой. */
  .epi {
    grid-template-columns: minmax(0, min(46%, 520px)) minmax(0, 1fr);
    align-items: center;
  }

  .hdr { padding: 20px 32px; gap: 20px; }
  .hdr__name { display: block; }
  .hdr__burger { display: none; }
  .hdr__nav { display: block; margin-left: auto; }
  .hdr__nav ul { display: flex; gap: 26px; }
  .hdr__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
  }
  .hdr__nav a:hover { color: var(--chrome-2); }
  .hdr__lang { margin-left: 0; }

  /* Арт жюри 16:9: колонка в 62% обрезала двух судей из четырёх, поэтому
     на десктопе кадр идёт во всю ширину, а билет ложится на его нижнюю полосу.
     --art — высота кадра; от неё же считается и верх билета. */
  .hero {
    --art: min(56.25vw, 100svh);
    display: block;
    height: auto;
    /* Кадр плюс билет: под артом остаётся фиолетовая полоса, стыка с табло нет.
       Константа 525 px = высота блока билета со вторичной ссылкой (501 px)
       плюс 24 px воздуха под ссылкой. Было 540 px — под ссылкой пустовало 39 px. */
    min-height: calc(var(--art) * .46 + 525px);
  }
  .hero__art { width: 100%; height: var(--art); }
  .hero__art img { object-position: 50% 0; }
  .hero__pass {
    position: absolute;
    /* 46% — ниже лиц судей: они занимают верхние ~40% кадра. */
    top: calc(var(--art) * .46);
    left: 0; right: 0;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 64px 0 0;
  }
  .ticket { --stub: 152px; max-width: 480px; margin-inline: auto 0; }
  .ticket__main { padding: 26px 28px 24px 38px; }
  .ticket__season { font-size: 44px; }
  .stub__qr { width: 96px; height: 96px; }
  .ticket__stub { padding: 18px 24px; }
  /* Ссылка выровнена по правому краю билета, а не по краю экрана. */
  .hero__secondary { text-align: right; padding-left: 0; }
}

@media (min-width: 1200px) {
  .hero__pass { padding-inline: 0 64px; }
}

/* ------------------------------------------------------------------ *
 * Движение
 * ------------------------------------------------------------------ */

@media (prefers-reduced-motion: no-preference) {
  @keyframes settle {
    from { transform: translateY(12px); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
  .ticket { animation: settle .5s var(--ease) backwards; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
