/* Inter Tight: кириллица и латиница, woff2, локально */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-tight-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-tight-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-tight-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-tight-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-tight-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/inter-tight-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   «Щелкунчик» и новогодний балет.

   Архетип: тёмно-синяя зимняя ночь с золотом, событие — УЗКАЯ ВЫСОКАЯ
   КАРТОЧКА. Опознавательные черты темы:

   — сетка из вертикальных «пилонов»: квадратная обложка сверху, под ней
     заголовок, под ним факты столбиком парами «подпись — значение», внизу
     цена и кнопка. Карточка заметно выше, чем шире, и на широком экране их
     встаёт четыре в ряд;
   — шапка двухэтажная: строка с названием и меню, под ней узкая золотая
     полоса выпуска на всю ширину;
   — на главной есть «сводка» — все спектакли сезона одной колонкой с тремя
     числами: длительность, число дат, цена. Это не таблица афиши, а индекс
     программы, и он существует только на первой странице;
   — числа и подписи набраны узким кеглем в верхнем регистре с большим
     трекингом; углы почти прямые (4px), золото — только на линиях, числах
     и кнопках.
   ========================================================================== */

:root {
  --night: #070D1E;
  --deep: #0C1430;
  --panel: #121C3C;
  --panel-hi: #17224A;
  --gold: #C9A227;
  --gold-hi: #E7D091;
  --gold-dim: #7E6420;
  --ink: #EAEEF8;
  --ink-soft: #C6D0E6;
  --muted: #94A2C4;
  --line: #1F2B52;
  --col: 1200px;
  --pad: clamp(16px, 4vw, 34px);
  --gap: clamp(14px, 2vw, 22px);
  --r: 4px;
  --face: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

/* Страховка для атрибута hidden: у элемента со своим display правило
   браузера по умолчанию проигрывает по специфичности, и без этой строки
   фильтры и кнопка меню видны до запуска скрипта, а без JavaScript —
   навсегда. */
[hidden] { display: none !important; }

html {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dim) var(--night);
}
html::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track { background: var(--night); }
html::-webkit-scrollbar-thumb { background: var(--gold-dim); border: 3px solid var(--night); border-radius: 0; }
html::-webkit-scrollbar-thumb:hover { background: var(--gold); }

body {
  margin: 0;
  font-family: var(--face);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--night);
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-hi); }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }
p, ul, ol, dl { margin: 0; }
section { min-width: 0; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--night);
  padding: 10px 16px; font-weight: 700; z-index: 40;
}
.skip:focus { left: 6px; top: 6px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

.col {
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  min-width: 0;
}

/* ---- Двухэтажная шапка -------------------------------------------------- */

.head { background: var(--deep); border-bottom: 1px solid var(--line); }
/* Мобильная раскладка основная: меню — вертикальный список под кнопкой,
   поэтому строка не распирается ни на 320px, ни при выключенном скрипте. */
.head__in {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(12px, 2.4vw, 30px);
  padding-top: 16px; padding-bottom: 16px; min-width: 0;
}
.head__line {
  background: var(--night);
  border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  padding-top: 7px; padding-bottom: 7px;
}
.head__line .col { display: block; min-width: 0; }

.logo {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
/* Метка: две золотые вертикали разной высоты — щелкунчик в профиль,
   без лиц, шапок и мишуры */
.logo__mark {
  flex: 0 0 auto; width: 26px; height: 34px; position: relative;
  border-bottom: 3px solid var(--gold);
}
.logo__mark::before, .logo__mark::after {
  content: ''; position: absolute; bottom: 3px; width: 6px; background: var(--gold-dim);
}
.logo__mark::before { left: 3px; height: 26px; }
.logo__mark::after { right: 3px; height: 17px; background: var(--gold); }
.logo__text { min-width: 0; }
.logo__name {
  display: block; font-weight: 700;
  font-size: clamp(17px, 2.4vw, 22px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.logo__sub {
  display: block; font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.opener {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--gold-hi); font: inherit; font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 15px; cursor: pointer; border-radius: var(--r);
}
.opener__lines { width: 15px; height: 8px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

.nav { flex: 1 1 100%; order: 3; width: 100%; min-width: 0; }
.nav__list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line);
}
.nav__a {
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; color: var(--ink-soft);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 13px 2px; border-bottom: 1px solid var(--line);
}
.nav__a:hover { color: var(--gold-hi); }

@media (min-width: 900px) {
  .head__in { flex-wrap: nowrap; }
  .opener { display: none; }
  .nav { flex: 0 0 auto; order: 0; width: auto; }
  .nav__list {
    flex-direction: row; flex-wrap: nowrap; align-items: center;
    gap: clamp(12px, 2vw, 28px); margin: 0; border-top: 0;
  }
  .nav__a { padding: 4px 0; border-bottom: 2px solid transparent; }
  .nav__a:hover { border-bottom-color: var(--gold); }

  /* Скрипт замерил строку: подписи не влезают — складываем так же,
     как на телефоне. */
  .head.is-folded .head__in { flex-wrap: wrap; }
  .head.is-folded .opener { display: inline-flex; }
  .head.is-folded .nav { flex: 1 1 100%; order: 3; width: 100%; }
  .head.is-folded .nav__list {
    flex-direction: column; gap: 0; border-top: 1px solid var(--line); margin-top: 12px;
  }
  .head.is-folded .nav__a { padding: 13px 2px; border-bottom: 1px solid var(--line); }
}

/* ---- Хлебные крошки ----------------------------------------------------- */

.trail { padding-top: 16px; }
.trail__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 3px 9px;
  font-size: 12.5px; color: var(--muted); min-width: 0;
}
.trail__list li + li::before { content: '·'; color: var(--gold-dim); margin-right: 9px; }
.trail__list a { color: var(--muted); text-decoration: none; }
.trail__list a:hover { color: var(--gold-hi); }

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

.over {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 12px;
}
.over--pale { color: var(--muted); }

.big { font-size: clamp(30px, 5.6vw, 52px); letter-spacing: -0.025em; }
.big--inner { font-size: clamp(26px, 4.2vw, 38px); }

.mid { font-size: clamp(20px, 2.8vw, 28px); margin-bottom: clamp(14px, 2vw, 20px); }
.mid--gap { margin-top: clamp(30px, 4vw, 44px); }
.mid-bar {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  align-items: baseline; justify-content: space-between; min-width: 0;
}
.mid-bar .mid { flex: 1 1 auto; min-width: 0; }
.mid-bar .note { flex: 0 0 auto; }

.say { font-size: clamp(16px, 1.8vw, 18.5px); color: var(--ink-soft); max-width: 66ch; }
.say--tight { margin-bottom: clamp(16px, 2.2vw, 22px); }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; max-width: 60ch; }
.fine--gap { margin-top: 20px; }
.tally {
  margin-top: 14px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

.note {
  color: var(--gold-hi); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; border-bottom: 1px solid var(--gold-dim);
  white-space: nowrap;
}
.note:hover { border-bottom-color: var(--gold-hi); }

.span { padding-top: clamp(28px, 4vw, 48px); }
.span:last-of-type { padding-bottom: clamp(28px, 4vw, 48px); }
.span--dark {
  background: var(--deep);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding-bottom: clamp(28px, 4vw, 48px);
  margin-top: clamp(28px, 4vw, 48px);
}

/* ---- Кнопки ------------------------------------------------------------- */

.push {
  display: inline-block; text-align: center;
  background: var(--gold); color: var(--night);
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 12px 24px; border-radius: var(--r);
  text-decoration: none; border: 1px solid var(--gold);
}
.push:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--night); }
.push--edge { background: transparent; color: var(--gold-hi); border-color: var(--line); }
.push--edge:hover { background: transparent; border-color: var(--gold); color: var(--gold-hi); }
.push--full { display: block; width: 100%; }
.push--slim { padding: 9px 18px; }

/* ---- Обложка ------------------------------------------------------------ */

.prologue { padding-top: clamp(28px, 4.4vw, 54px); padding-bottom: clamp(20px, 3vw, 34px); }
.prologue--inner { padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(14px, 2.2vw, 24px); }
.prologue__acts { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 12px; }

/* ---- Сводка программы --------------------------------------------------- */

.roster {
  list-style: none; margin: 0; padding: 0;
  border-top: 1px solid var(--gold-dim); min-width: 0;
}
.roster__row {
  display: grid; gap: 2px 14px;
  grid-template-columns: 26px minmax(0, 1fr);
  padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0;
  align-items: baseline;
}
@media (min-width: 860px) {
  .roster__row { grid-template-columns: 30px minmax(0, 2.2fr) minmax(0, 1.6fr) 74px 82px 100px; }
}
.roster__n { font-size: 12.5px; color: var(--gold-dim); font-weight: 600; }
.roster__t { font-size: 16.5px; font-weight: 600; min-width: 0; }
.roster__t a { color: var(--ink); text-decoration: none; }
.roster__t a:hover { color: var(--gold-hi); }
.roster__v { font-size: 13.5px; color: var(--muted); min-width: 0; }
.roster__d, .roster__k {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
}
.roster__p { font-size: 14px; font-weight: 700; color: var(--gold-hi); white-space: nowrap; }
@media (min-width: 860px) {
  .roster__d, .roster__k, .roster__p { text-align: right; }
}
@media (max-width: 859px) {
  .roster__n { grid-row: span 5; }
  .roster__d::before { content: 'Длительность: '; color: var(--muted); }
  .roster__k::before { content: 'В афише: '; color: var(--muted); }
}

/* ---- Вертикальные карточки — главная черта темы ------------------------- */

.pillars {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  min-width: 0;
}
@media (max-width: 400px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

.pillar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-dim);
  border-radius: var(--r);
  padding: 0 0 16px;
  display: flex; flex-direction: column;
  min-width: 0;
}
.pillar:hover { border-top-color: var(--gold); background: var(--panel-hi); }
.pillar__top { display: block; overflow: hidden; background: var(--deep); }
.pillar__top img { width: 100%; height: auto; }
.pillar__kind {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
  padding: 14px 16px 0;
}
.pillar__t { font-size: 19px; padding: 7px 16px 0; }
.pillar__t a { color: var(--ink); text-decoration: none; }
.pillar__t a:hover { color: var(--gold-hi); }

.pillar__facts {
  list-style: none; margin: 14px 0 0; padding: 0 16px;
  display: grid; gap: 0; min-width: 0;
}
.pillar__facts li {
  display: flex; flex-direction: column;
  padding: 6px 0; border-top: 1px solid var(--line); min-width: 0;
}
.pillar__facts span {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.pillar__facts b { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.pillar__cast { font-size: 12.5px; color: var(--gold-hi); padding: 12px 16px 0; }
.pillar__cost {
  font-size: 21px; font-weight: 700; color: var(--gold-hi);
  padding: 14px 16px 0; margin-top: auto; white-space: nowrap;
}
.pillar__cost span { font-size: 12px; font-weight: 400; color: var(--muted); }
.pillar__go { padding: 12px 16px 0; display: grid; gap: 10px; justify-items: start; }

/* ---- Разделы и подборки ------------------------------------------------- */

.cuts { display: grid; gap: clamp(16px, 2.4vw, 26px); min-width: 0; }
@media (min-width: 640px) { .cuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cuts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cut {
  background: var(--panel); border-radius: var(--r);
  padding: clamp(16px, 2.2vw, 22px); min-width: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cut--plain { background: transparent; border-left: 2px solid var(--gold-dim); border-radius: 0; padding-left: 16px; }
.cut__h { font-size: 18px; }
.cut__h a { text-decoration: none; color: var(--ink); }
.cut__h a:hover { color: var(--gold-hi); }
.cut__x { font-size: 14.5px; color: var(--ink-soft); }
.cut__n {
  margin-top: auto; padding-top: 6px;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}

.pips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.pip {
  display: inline-block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 8px 15px; font-size: 14px; color: var(--ink-soft);
}
.pip b { color: var(--gold); }
.pip:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---- Разбор устройства спектакля --------------------------------------- */

.stepline { list-style: none; margin: 0; padding: 0; min-width: 0; }
.step {
  display: grid; gap: 6px 20px;
  grid-template-columns: minmax(0, 1fr);
  padding: 18px 0; border-top: 1px solid var(--line); min-width: 0;
}
@media (min-width: 720px) { .step { grid-template-columns: 116px minmax(0, 1fr); } }
.step__n {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; padding-top: 4px;
}
.step__body { min-width: 0; max-width: 64ch; }
.step__h { font-size: 18px; margin-bottom: 6px; }
.step__body p { font-size: 15.5px; color: var(--ink-soft); }

/* ---- Подбор ------------------------------------------------------------- */

.pick { display: grid; gap: clamp(20px, 3vw, 34px); min-width: 0; }
@media (min-width: 900px) { .pick { grid-template-columns: 1fr 1fr; align-items: start; } }
.pick__side { min-width: 0; }
.quiz {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(18px, 2.6vw, 26px); min-width: 0;
}
.qhead { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.qask { font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; margin-top: 8px; margin-bottom: 16px; }
.qopts { display: grid; gap: 8px; min-width: 0; }
.qopt {
  font: inherit; font-size: 15px; font-weight: 600; text-align: left;
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 15px; cursor: pointer; color: var(--ink); min-width: 0;
}
.qopt:hover { border-color: var(--gold); color: var(--gold-hi); }
.qgauge { height: 2px; background: var(--line); margin-top: 18px; overflow: hidden; }
.qgauge span { display: block; height: 100%; background: var(--gold); }
.qfound { display: grid; gap: 8px; min-width: 0; }
.qcard { background: var(--deep); border-left: 2px solid var(--gold-dim); padding: 12px 14px; min-width: 0; }
.qcard__t { font-size: 17px; font-weight: 700; }
.qcard__t a { text-decoration: none; color: var(--ink); }
.qcard__m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.qcard__p { font-size: 17px; font-weight: 700; color: var(--gold-hi); margin-top: 5px; }
.qcard__go { margin-top: 8px; }
.qagain { margin-top: 16px; }
.qback {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--gold-dim); border-radius: var(--r);
  padding: 9px 18px; color: var(--gold-hi);
}
.qback:hover { border-color: var(--gold); }

/* ---- Блог --------------------------------------------------------------- */

.cards { display: grid; gap: var(--gap); min-width: 0; }
@media (min-width: 680px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card {
  background: var(--panel); border-top: 3px solid var(--gold-dim); border-radius: var(--r);
  padding: clamp(16px, 2.2vw, 22px); min-width: 0;
}
.card:hover { border-top-color: var(--gold); }
.card__no { font-size: 11.5px; letter-spacing: 0.16em; color: var(--gold-dim); font-weight: 600; margin-bottom: 10px; }
.card__t { font-size: clamp(19px, 2.2vw, 23px); }
.card__t a { text-decoration: none; color: var(--ink); }
.card__t a:hover { color: var(--gold-hi); }
.card__x { font-size: 14.5px; color: var(--ink-soft); margin-top: 8px; }
.card__d { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); min-width: 0; }
.lines__item { padding: 14px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lines__t { font-size: 18px; }
.lines__t a { text-decoration: none; color: var(--ink); }
.lines__t a:hover { color: var(--gold-hi); }
.lines__x { font-size: 14.5px; color: var(--ink-soft); margin-top: 5px; }

/* ---- Страница спектакля ------------------------------------------------- */

.apron {
  display: grid; gap: clamp(18px, 2.6vw, 30px); min-width: 0;
  padding-top: clamp(18px, 2.6vw, 28px);
}
@media (min-width: 860px) { .apron { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.apron__pic { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }

.slip {
  background: var(--panel); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); border-radius: var(--r);
  padding: clamp(18px, 2.4vw, 24px); min-width: 0;
}
.slip--past { max-width: 520px; margin-top: 22px; }
.slip__cost {
  font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; line-height: 1.12;
  color: var(--gold-hi); margin-bottom: 16px;
}
.slip__cost span { display: block; font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.slip__cost--sm { font-size: 24px; margin-bottom: 10px; }

.grid-rows { display: grid; margin-bottom: 18px; min-width: 0; }
.grid-row {
  display: flex; flex-wrap: wrap; gap: 3px 14px; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; min-width: 0;
}
.grid-row dt { color: var(--muted); }
.grid-row dd { margin: 0; font-weight: 600; text-align: right; }

.duet {
  display: grid; gap: clamp(20px, 3vw, 34px); min-width: 0;
  padding-top: clamp(26px, 3.6vw, 40px); padding-bottom: clamp(26px, 3.6vw, 40px);
}
@media (min-width: 920px) { .duet { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; } }
.duet__main { min-width: 0; }

.rail { display: grid; gap: 14px; min-width: 0; align-content: start; }
.rail__box {
  background: var(--panel); border-radius: var(--r);
  padding: 16px 18px; min-width: 0;
}
.rail__h {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 9px;
}
.rail__x { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 10px; }
.rail__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.rail__links a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.rail__links a:hover { color: var(--gold-hi); border-bottom-color: var(--gold-dim); }

.essay { max-width: 68ch; min-width: 0; }
.essay h2 { font-size: clamp(20px, 2.6vw, 26px); margin-top: 30px; margin-bottom: 10px; color: var(--gold-hi); }
.essay h3 { font-size: clamp(17px, 2vw, 20px); margin-top: 24px; margin-bottom: 8px; }
.essay h2:first-child, .essay h3:first-child { margin-top: 0; }
.essay p { margin-bottom: 15px; color: var(--ink-soft); }
.essay ul, .essay ol { margin: 0 0 15px 20px; padding: 0; color: var(--ink-soft); }
.essay li { margin-bottom: 6px; }
.essay strong { font-weight: 700; color: var(--ink); }

/* ---- Календарь дат ------------------------------------------------------ */

.calendar { margin-top: clamp(28px, 4vw, 42px); }
.calendar__month { margin-bottom: 20px; }
.calendar__name {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; font-weight: 600;
}
.slots { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.slot {
  background: var(--panel); border-left: 2px solid var(--line);
  padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 2px 12px;
  align-items: baseline; min-width: 0;
}
.slot b { font-size: 15px; color: var(--ink); }
.slot span { font-size: 13px; color: var(--muted); flex: 1 1 auto; min-width: 0; }
.slot i { font-style: normal; font-size: 15px; font-weight: 700; color: var(--gold-hi); }
.slot--we { border-left-color: var(--gold); }

.troupe { margin-top: clamp(26px, 3.6vw, 36px); }
.troupe__names { font-size: 16px; }
.sep { color: var(--gold-dim); margin: 0 7px; }

/* ---- FAQ ---------------------------------------------------------------- */

.asks { border-top: 1px solid var(--gold-dim); max-width: 820px; min-width: 0; }
.asks__item { border-bottom: 1px solid var(--line); min-width: 0; }
.asks__q {
  font-size: 17px; font-weight: 600; cursor: pointer;
  padding: 16px 0 16px 30px; list-style: none; position: relative;
}
.asks__q::-webkit-details-marker { display: none; }
.asks__q::before {
  content: '+'; position: absolute; left: 4px; top: 15px;
  color: var(--gold); font-weight: 700;
}
.asks__item[open] .asks__q::before { content: '–'; }
.asks__a { padding: 0 0 18px 30px; font-size: 16px; color: var(--ink-soft); }

/* ---- Статья ------------------------------------------------------------- */

.paper { padding-top: clamp(20px, 3vw, 32px); padding-bottom: clamp(30px, 4vw, 50px); }
.paper__body { margin-top: clamp(20px, 2.8vw, 30px); }
.paper__back { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }

/* ---- Фильтры ------------------------------------------------------------ */

.sieve {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  padding-bottom: 18px; min-width: 0;
}
.sieve__cap { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.sieve__cap--gap { margin-left: 10px; }
.tbtn {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 7px 14px; color: var(--ink-soft);
}
.tbtn:hover { border-color: var(--gold-dim); color: var(--gold-hi); }
.tbtn.is-on { background: var(--gold); border-color: var(--gold); color: var(--night); }

/* ---- Нижняя панель покупки --------------------------------------------- */

.shelf {
  position: sticky; bottom: 0; z-index: 20;
  background: var(--deep); border-top: 1px solid var(--gold-dim);
  padding: 10px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
}
.shelf__cost { font-weight: 700; font-size: 17px; color: var(--gold-hi); white-space: nowrap; }
@media (min-width: 920px) { .shelf { display: none !important; } }

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

.foot {
  background: var(--deep); border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(28px, 4vw, 44px);
  margin-top: clamp(28px, 4vw, 48px);
}
.foot__in { display: grid; gap: clamp(18px, 2.6vw, 30px); min-width: 0; }
@media (min-width: 700px) { .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot__in { grid-template-columns: 1.7fr 1fr 1.1fr 1.2fr; } }
.foot__cell { min-width: 0; }
.foot__name { font-weight: 700; color: var(--gold-hi); font-size: 17px; margin-bottom: 10px; }
.foot__h {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dim); font-weight: 600; margin-bottom: 10px;
}
.foot__text { font-size: 14px; color: var(--muted); }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--gold-hi); }

/* Переключатель порядка в сводке программы — появляется только со скриптом */
.rank {
  display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center;
  padding-bottom: 16px; min-width: 0;
}
.rank__cap { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
