/* Commissioner: кириллица и латиница, woff2, локально */
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/commissioner-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/commissioner-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: 'Commissioner';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/commissioner-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/commissioner-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: 'Commissioner';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/commissioner-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Commissioner';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/commissioner-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;
}

/* ==========================================================================
   Кремлёвский дворец: афиша и билеты.

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

:root {
  --night: #0D0B09;
  --stage: #16120E;
  --plate: #1F1913;
  --plate-hi: #2A2218;
  --gold: #C8A24A;
  --gold-hi: #E7CE8C;
  --gold-dim: #8A6F2E;
  --ink: #F2EBDD;
  --muted: #A0917A;
  --rule: #33291E;
  --hall: 1180px;
  --pad: clamp(16px, 4vw, 40px);
  --gap: clamp(18px, 3vw, 34px);
  --r: 3px;
  --face: 'Commissioner', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--face);
  font-size: 16.5px;
  line-height: 1.62;
  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.16; letter-spacing: -0.01em; }
p, ul, ol, dl { margin: 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: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---- Опорная сетка ------------------------------------------------------ */

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

/* Двойное золотое правило — главный разделитель этой темы */
.rule {
  border: 0;
  height: 4px;
  margin: 0;
  background:
    linear-gradient(var(--gold-dim), var(--gold-dim)) top/100% 1px no-repeat,
    linear-gradient(var(--rule), var(--rule)) bottom/100% 1px no-repeat;
}

/* ---- Верхняя строка с номером выпуска ---------------------------------- */

.ribbon {
  background: #0A0806;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ribbon__in {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  justify-content: space-between; align-items: baseline;
  padding-top: 8px; padding-bottom: 8px;
  min-width: 0;
}
.ribbon b { color: var(--gold); font-weight: 600; }

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

.crown {
  background: linear-gradient(180deg, #17130F, var(--night));
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.crown::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 18%, var(--gold) 50%, var(--gold-dim) 82%, transparent);
  opacity: .55;
}
/* Мобильный порядок — основной: меню уходит вертикальным списком под кнопку,
   и без скрипта тоже, поэтому строка шапки не распирается ни на 320px. */
.crown__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 3vw, 36px);
  padding-top: 18px; padding-bottom: 20px;
  min-width: 0;
}

.crest {
  flex: 1 1 auto;
  min-width: 0;
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
}
.crest__mark {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  border: 1px solid var(--gold-dim);
  display: grid; place-items: center;
  color: var(--gold);
  font-weight: 700; font-size: 19px; line-height: 1;
  background: #120E0A;
}
.crest__text { min-width: 0; }
.crest__name {
  display: block;
  font-weight: 700;
  font-size: clamp(16px, 2.4vw, 20px);
  letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crest__sub {
  display: block;
  font-size: 12.5px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.torch {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center; gap: 8px;
  background: transparent;
  border: 1px solid var(--gold-dim);
  color: var(--gold-hi);
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 14px; cursor: pointer;
  border-radius: var(--r);
}
.torch[hidden] { display: none; }
.torch__bars { width: 16px; height: 9px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }

.tiers { flex: 1 1 100%; order: 3; min-width: 0; width: 100%; }
.tiers__list {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.tiers__a {
  display: block;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 13px 2px;
  border-bottom: 1px solid var(--rule);
}
.tiers__a:hover { color: var(--gold-hi); }

/* Широкий экран: подписи встают в одну строку и не переносятся */
@media (min-width: 900px) {
  .crown__in { flex-wrap: nowrap; }
  .torch { display: none; }
  .tiers { flex: 0 0 auto; order: 0; width: auto; }
  .tiers__list {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(10px, 1.8vw, 26px);
    margin: 0; border-top: 0;
  }
  .tiers__a {
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    letter-spacing: 0.07em;
  }
  .tiers__a:hover { border-bottom-color: var(--gold); }

  /* Скрипт замерил строку и решил, что подписи не помещаются: тот же
     вертикальный список за кнопкой, что и на телефоне. */
  .crown.is-folded .crown__in { flex-wrap: wrap; }
  .crown.is-folded .torch { display: inline-flex; }
  .crown.is-folded .tiers { flex: 1 1 100%; order: 3; width: 100%; }
  .crown.is-folded .tiers__list {
    flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--rule); margin-top: 14px;
  }
  .crown.is-folded .tiers__a {
    padding: 13px 2px; border-bottom: 1px solid var(--rule); letter-spacing: 0.05em;
  }
}

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

.trace { padding-top: 16px; }
.trace__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 13px; color: var(--muted);
  min-width: 0;
}
.trace__list li + li::before { content: '/'; color: var(--gold-dim); margin-right: 10px; }
.trace__list a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.trace__list a:hover { color: var(--gold-hi); }

/* ---- Общая типографика разделов --------------------------------------- */

section { min-width: 0; }

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

.display {
  font-size: clamp(30px, 6vw, 56px);
  letter-spacing: -0.02em;
}
.display--inner { font-size: clamp(26px, 4.6vw, 42px); }

.lede {
  font-size: clamp(16px, 1.9vw, 19px);
  color: #DCD2C0;
  max-width: 62ch;
}

.sect {
  font-size: clamp(21px, 3vw, 30px);
}
.sect--gap { margin-bottom: clamp(16px, 2.4vw, 24px); }
.sect--far { margin-top: clamp(26px, 3.4vw, 36px); }
.lede--gap { margin-bottom: clamp(18px, 2.6vw, 24px); }
.portal__near { margin-top: 22px; }
.sect-bar {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: baseline; justify-content: space-between;
  margin-bottom: clamp(16px, 2.4vw, 26px);
  min-width: 0;
}

.thin {
  color: var(--gold-hi);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  white-space: nowrap;
}
.thin:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* Латунная кнопка */
.gild {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: #1A1206;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 22px;
  border: 1px solid var(--gold-hi);
  border-radius: var(--r);
  text-align: center;
}
.gild:hover { background: var(--gold-hi); color: #1A1206; }
.gild--wide { display: block; width: 100%; }
.gild--slim { padding: 8px 14px; font-size: 13.5px; }

.hollow {
  display: inline-block;
  color: var(--gold-hi);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r);
  padding: 12px 22px;
  font-weight: 600; font-size: 15px;
  text-decoration: none;
  text-align: center;
}
.hollow:hover { border-color: var(--gold); color: var(--ink); }

/* ---- Портал: первый экран главной ------------------------------------- */

.portal {
  background:
    radial-gradient(120% 100% at 50% 0%, #241C13 0%, var(--night) 68%);
  padding-top: clamp(34px, 6vw, 68px);
  padding-bottom: clamp(30px, 5vw, 56px);
}
.portal__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
.portal__acts {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}
.portal__acts > * { flex: 1 1 220px; min-width: 0; }

.ledge {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.ledge__cell:last-child:nth-child(odd) {
  /* нечётная последняя ячейка занимает строку целиком, чтобы не было пустой клетки */
  grid-column: 1 / -1;
}
.ledge__cell {
  background: var(--stage);
  padding: clamp(14px, 2.2vw, 20px);
  min-width: 0;
}
.ledge__cell dt {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.ledge__cell dd {
  margin: 6px 0 0;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 700; color: var(--gold-hi);
  line-height: 1.1;
}

@media (min-width: 900px) {
  .portal__in { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
  .ledge { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Афишная плашка: главный элемент темы ----------------------------- */

.marquee { padding-top: clamp(34px, 5vw, 60px); padding-bottom: clamp(34px, 5vw, 60px); }

.bills {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
}
@media (min-width: 620px) { .bills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .bills { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bill {
  display: flex; flex-direction: column;
  min-width: 0;
  background: var(--plate);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--gold-dim);
  position: relative;
}
.bill:hover { border-color: var(--gold-dim); }
.bill:hover { border-top-color: var(--gold); }

.bill__face {
  display: block;
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: #100D09;
}
.bill__face img { width: 100%; height: auto; }
.bill__stamp {
  position: absolute; left: 0; bottom: 0;
  background: rgba(13, 11, 9, .88);
  border-top: 1px solid var(--gold-dim);
  border-right: 1px solid var(--gold-dim);
  color: var(--gold-hi);
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px;
  max-width: 100%;
}

.bill__body {
  padding: clamp(14px, 2vw, 20px);
  display: flex; flex-direction: column; gap: 9px;
  flex: 1 1 auto;
  min-width: 0;
}
.bill__title {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.22;
}
.bill__title a { color: var(--ink); text-decoration: none; }
.bill__title a:hover { color: var(--gold-hi); }
.bill__when {
  font-size: 14.5px; color: var(--gold-hi);
  font-weight: 600;
}
.bill__extra { font-size: 13.5px; color: var(--muted); }
.bill__cast {
  font-size: 13.5px; color: #C9BCA4;
  border-left: 2px solid var(--gold-dim);
  padding-left: 10px;
}
.bill__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--rule);
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  align-items: center; justify-content: space-between;
  min-width: 0;
}
.bill__cost { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bill__cost span { font-weight: 400; color: var(--muted); font-size: 13px; }

/* ---- Ярусы жанров ------------------------------------------------------ */

.gates { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(30px, 4vw, 52px); background: var(--stage); }
.gates__grid {
  display: grid; gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) { .gates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) { .gates__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.gate {
  background: var(--night);
  padding: clamp(16px, 2.2vw, 24px);
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0;
}
.gate:hover { background: #120F0B; }
.gate__no {
  font-size: 12px; letter-spacing: 0.14em;
  color: var(--gold-dim); font-weight: 700;
}
.gate__name { font-size: clamp(18px, 2.2vw, 22px); }
.gate__name a { color: var(--ink); text-decoration: none; }
.gate__name a:hover { color: var(--gold-hi); }
.gate__text { font-size: 14px; color: var(--muted); }
.gate__n {
  margin-top: auto; padding-top: 10px;
  font-size: 13px; color: var(--gold); font-weight: 600;
  letter-spacing: 0.05em;
}

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

.chooser { padding-top: clamp(34px, 5vw, 58px); padding-bottom: clamp(34px, 5vw, 58px); }
.chooser__in {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 940px) {
  .chooser__in { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
}
.chooser__box {
  background: var(--plate);
  border: 1px solid var(--gold-dim);
  padding: clamp(18px, 2.6vw, 28px);
  min-width: 0;
}
.chooser__off { font-size: 14px; color: var(--muted); }

.qhead {
  font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.qask { font-size: clamp(19px, 2.4vw, 24px); font-weight: 700; margin: 10px 0 18px; line-height: 1.2; }
.qopts { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .qopts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qopt {
  font: inherit; font-size: 15px; font-weight: 600;
  text-align: left;
  background: var(--night);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 13px 15px;
  cursor: pointer;
  min-width: 0;
}
.qopt:hover { border-color: var(--gold); color: var(--gold-hi); }
.qgauge { height: 2px; background: var(--rule); margin-top: 18px; }
.qgauge span { display: block; height: 2px; background: var(--gold); }

.qfound { display: grid; gap: 12px; }
.qcard {
  border: 1px solid var(--rule);
  background: var(--night);
  padding: 14px 16px;
  min-width: 0;
}
.qcard__t { font-size: 17px; font-weight: 700; line-height: 1.25; }
.qcard__t a { color: var(--ink); text-decoration: none; }
.qcard__t a:hover { color: var(--gold-hi); }
.qcard__m { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.qcard__p { font-size: 15px; font-weight: 700; color: var(--gold-hi); margin-top: 6px; }
.qcard__go { margin-top: 10px; }
.qagain { margin-top: 16px; }
.qback {
  font: inherit; font-size: 14px; font-weight: 600;
  background: transparent; color: var(--gold-hi);
  border: 1px solid var(--gold-dim); border-radius: var(--r);
  padding: 10px 16px; cursor: pointer;
}
.qback:hover { border-color: var(--gold); color: var(--ink); }

/* ---- Подборки и месяцы ------------------------------------------------ */

/* Чем полезен сайт: три пункта сразу под первым экраном, без вступления. */
.worth { padding: clamp(22px, 3vw, 34px) 0; }
.worth__list {
  list-style: none; margin: 0; padding: 0; min-width: 0;
  display: grid; gap: clamp(14px, 2vw, 24px);
}
@media (min-width: 760px) { .worth__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.worth__i { border-top: 2px solid var(--gold-dim); padding-top: 12px; min-width: 0; }
.worth__t { font-size: 16px; color: var(--gold-hi); font-weight: 700; }
.worth__x { font-size: 14.5px; color: var(--muted); margin-top: 7px; }

.shelf { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(30px, 4vw, 52px); background: var(--stage); }
.shelf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 720px) { .shelf__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.shelf__item {
  background: var(--night);
  padding: clamp(15px, 2vw, 22px);
  display: flex; gap: 14px;
  min-width: 0;
}
/* Новогодний сезон — больше половины афиши, и он должен стоять первым.
   Порядок подборок приходит из данных и в теме не переставляется, поэтому
   сезонную подборку поднимает сама раскладка: ищем слово в заголовке. */
.shelf__item[data-season*="овогодн"],
.shelf__item[data-season*="ёлк"], .shelf__item[data-season*="Ёлк"],
.shelf__item[data-season*="елк"], .shelf__item[data-season*="Елк"],
.shelf__item[data-season*="аникул"] { order: -1; }
.shelf__body { min-width: 0; }
.shelf__t { font-size: 17.5px; }
.shelf__t a { color: var(--ink); text-decoration: none; }
.shelf__t a:hover { color: var(--gold-hi); }
.shelf__x { font-size: 14px; color: var(--muted); margin-top: 6px; }
.shelf__n { font-size: 13px; color: var(--gold); font-weight: 600; margin-top: 8px; }

.dates-strip { margin-top: clamp(24px, 3vw, 34px); }
.tabs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tab {
  display: inline-flex; align-items: baseline; gap: 8px;
  border: 1px solid var(--rule);
  background: var(--night);
  color: var(--ink);
  text-decoration: none;
  padding: 9px 14px;
  font-size: 14.5px;
  border-radius: var(--r);
  min-width: 0;
}
.tab b { color: var(--gold); font-size: 13px; }
.tab:hover { border-color: var(--gold-dim); color: var(--gold-hi); }

/* ---- Зал: блок о площадке на главной ---------------------------------- */

.house { padding-top: clamp(34px, 5vw, 58px); padding-bottom: clamp(34px, 5vw, 58px); }
.house__in { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .house__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.house__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.house__facts li {
  border-left: 2px solid var(--gold-dim);
  padding-left: 14px;
  font-size: 15px;
  min-width: 0;
}
.house__facts b { color: var(--gold-hi); }

/* ---- Достоинства ------------------------------------------------------- */

.merits { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(30px, 4vw, 52px); background: var(--stage); }
.merits__grid { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .merits__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.merit { min-width: 0; padding-top: 16px; border-top: 2px solid var(--gold-dim); }
.merit__t { font-size: 18px; }
.merit__x { font-size: 14.5px; color: var(--muted); margin-top: 8px; }

/* ---- Чтение ------------------------------------------------------------ */

.reading { padding-top: clamp(30px, 4vw, 52px); padding-bottom: clamp(34px, 5vw, 58px); }
.reading__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.reading__item {
  border-top: 1px solid var(--rule);
  padding: clamp(14px, 2vw, 20px) 0;
  min-width: 0;
}
.reading__item:last-child { border-bottom: 1px solid var(--rule); }
.reading__t { font-size: clamp(17px, 2vw, 21px); }
.reading__t a { color: var(--ink); text-decoration: none; }
.reading__t a:hover { color: var(--gold-hi); }
.reading__x { font-size: 14.5px; color: var(--muted); margin-top: 6px; }

/* ---- Программка: списки на внутренних страницах ----------------------- */

.program { padding-top: clamp(24px, 3.5vw, 40px); padding-bottom: clamp(34px, 5vw, 58px); }
.program__head { margin-bottom: clamp(18px, 2.6vw, 28px); }
.program__count { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-top: 14px; font-weight: 600; }

.sieve {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  border: 1px solid var(--rule);
  background: var(--stage);
  padding: 12px 14px;
  margin-bottom: clamp(18px, 2.4vw, 26px);
  min-width: 0;
}
.sieve__cap {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-right: 2px;
}
.sieve__cap--gap { margin-left: clamp(0px, 2vw, 18px); }
.sieve__btn {
  font: inherit; font-size: 13.5px; font-weight: 600;
  background: var(--night); color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  padding: 7px 12px; cursor: pointer;
  min-width: 0;
}
.sieve__btn:hover { border-color: var(--gold-dim); }
.sieve__btn.is-on { background: var(--gold); border-color: var(--gold-hi); color: #1A1206; }

.sheets { list-style: none; margin: 0; padding: 0; }
.sheet-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px clamp(14px, 2vw, 24px);
  padding: clamp(16px, 2.2vw, 22px) 0;
  border-top: 1px solid var(--rule);
  min-width: 0;
}
.sheet-row:last-child { border-bottom: 1px solid var(--rule); }
.sheet-row__day {
  min-width: 0;
  display: flex; align-items: baseline; gap: 10px;
}
.sheet-row__num {
  font-size: clamp(28px, 4vw, 38px); font-weight: 700;
  color: var(--gold-hi); line-height: 1;
}
.sheet-row__mon {
  font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.sheet-row__mon b { display: block; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; }
.sheet-row__body { min-width: 0; }
.sheet-row__cat {
  font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.sheet-row__t { font-size: clamp(18px, 2.2vw, 23px); margin-top: 6px; }
.sheet-row__t a { color: var(--ink); text-decoration: none; }
.sheet-row__t a:hover { color: var(--gold-hi); }
.sheet-row__meta { font-size: 14px; color: var(--muted); margin-top: 7px; }
.sheet-row__buy { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.sheet-row__cost { font-size: 15px; font-weight: 700; white-space: nowrap; }
.sheet-row__cost span { color: var(--muted); font-weight: 400; font-size: 13px; }

@media (min-width: 760px) {
  .sheet-row {
    grid-template-columns: minmax(0, 120px) minmax(0, 1fr) minmax(0, 190px);
    align-items: center;
  }
  .sheet-row__day { flex-direction: column; gap: 2px; align-items: flex-start; }
  .sheet-row__buy { justify-content: flex-end; }
}

.blank {
  border: 1px dashed var(--gold-dim);
  padding: 18px;
  font-size: 14.5px; color: var(--muted);
  margin-top: 20px;
}

/* ---- Страница события ------------------------------------------------- */

.spot { padding-top: clamp(24px, 3.5vw, 42px); }
.spot__head { margin-bottom: clamp(20px, 3vw, 32px); }
.spot__in { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .spot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }

.spot__frame {
  margin: 0;
  border: 1px solid var(--gold-dim);
  padding: 8px;
  background: var(--plate);
  min-width: 0;
}
.spot__frame img { width: 100%; height: auto; }

/* Билетный корешок: пунктир по золоту */
.stub {
  border: 1px solid var(--gold-dim);
  background: linear-gradient(180deg, var(--plate-hi), var(--plate));
  padding: clamp(18px, 2.6vw, 26px);
  min-width: 0;
}
.stub__rows { display: grid; gap: 0; margin-bottom: 18px; }
.stub__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px 14px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 14.5px;
  min-width: 0;
}
.stub__row dt { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.stub__row dd { margin: 0; font-weight: 600; text-align: right; }
.stub__row dd a { color: var(--gold-hi); }
.stub__cost {
  font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; color: var(--gold-hi);
  line-height: 1.1; margin-bottom: 4px;
}
.stub__cost span { font-size: 14px; color: var(--muted); font-weight: 400; }
.stub__fine { font-size: 13px; color: var(--muted); margin-top: 12px; }

.body-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 52px);
}
@media (min-width: 980px) { .body-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); } }
.body-main { min-width: 0; }

.prose { min-width: 0; }
.prose h2 { font-size: clamp(20px, 2.6vw, 26px); margin: clamp(24px, 3vw, 34px) 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(17px, 2.2vw, 21px); margin: 22px 0 10px; color: var(--gold-hi); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--gold-hi); }
.prose a { color: var(--gold-hi); }

.daysheet { margin-top: clamp(28px, 4vw, 42px); }
.daysheet__month { margin-top: 20px; }
.daysheet__name {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  padding-bottom: 8px; border-bottom: 1px solid var(--rule);
}
.daysheet__list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr));
}
.daysheet__day {
  border: 1px solid var(--rule);
  background: var(--stage);
  padding: 10px 12px;
  font-size: 14px;
  min-width: 0;
}
.daysheet__day b { display: block; color: var(--ink); font-size: 15px; }
.daysheet__day span { display: block; color: var(--muted); font-size: 12.5px; }
.daysheet__day i { display: block; font-style: normal; color: var(--gold-hi); font-weight: 600; margin-top: 3px; }
.daysheet__go {
  display: block; margin-top: 8px;
  font-size: 12.5px; font-weight: 700; text-align: center;
  color: var(--gold-hi); text-decoration: none;
  border: 1px solid var(--rule); border-radius: var(--r);
  padding: 6px 8px;
}
.daysheet__go:hover { border-color: var(--gold-hi); background: var(--night); }
.daysheet__fine { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.daysheet__ics { margin-top: 10px; font-size: 13.5px; }
.daysheet__ics span { color: var(--muted); margin-left: 8px; }

.cast { margin-top: clamp(28px, 4vw, 42px); }
.cast__names { margin-top: 12px; font-size: 16px; line-height: 1.8; }
.cast__sep { color: var(--gold-dim); margin: 0 8px; }
.cast__fine { font-size: 13.5px; color: var(--muted); margin-top: 12px; }

.aside { min-width: 0; display: grid; gap: 16px; align-content: start; }
.aside__box {
  border: 1px solid var(--rule);
  background: var(--stage);
  padding: 18px;
  min-width: 0;
}
.aside__h {
  font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.aside__x { font-size: 14.5px; color: #D3C8B4; }
.aside__x + .thin { display: inline-block; margin-top: 12px; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; flex-wrap: nowrap; align-items: center; gap: 12px;
  justify-content: space-between;
  background: rgba(13, 11, 9, .96);
  border-top: 1px solid var(--gold-dim);
  padding: 10px var(--pad);
  min-width: 0;
}
.dock[hidden] { display: none; }
.dock__cost { font-size: 15px; font-weight: 700; color: var(--gold-hi); white-space: nowrap; min-width: 0; }
@media (min-width: 900px) { .dock { display: none; } }

/* ---- Страница площадки ------------------------------------------------ */

.venue-top { padding-top: clamp(24px, 3.5vw, 42px); }
.venue-top__in { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .venue-top__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }

/* ---- Вопросы ---------------------------------------------------------- */

.asks { padding-top: clamp(24px, 3.5vw, 42px); padding-bottom: clamp(34px, 5vw, 58px); }
.asks__in { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .asks__in { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; } }
.asks__side { font-size: 14.5px; color: var(--muted); margin-top: 18px; }

.query {
  border-top: 1px solid var(--rule);
  min-width: 0;
}
.query:last-child { border-bottom: 1px solid var(--rule); }
.query__q {
  cursor: pointer;
  list-style: none;
  padding: 16px 34px 16px 0;
  position: relative;
  font-size: clamp(16px, 1.9vw, 18.5px);
  font-weight: 600;
  min-width: 0;
}
.query__q::-webkit-details-marker { display: none; }
.query__q::after {
  content: '+';
  position: absolute; right: 2px; top: 14px;
  color: var(--gold); font-size: 22px; font-weight: 400; line-height: 1;
}
.query[open] .query__q::after { content: '–'; }
.query[open] .query__q { color: var(--gold-hi); }
.query__a { padding: 0 0 18px; font-size: 15.5px; color: #D3C8B4; }

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

.library { padding-top: clamp(24px, 3.5vw, 42px); padding-bottom: clamp(34px, 5vw, 58px); }
.library__list { list-style: none; margin: clamp(20px, 3vw, 30px) 0 0; padding: 0; }
.library__item {
  display: grid; gap: 6px 18px;
  grid-template-columns: minmax(0, 1fr);
  border-top: 1px solid var(--rule);
  padding: clamp(18px, 2.4vw, 26px) 0;
  min-width: 0;
}
.library__item:last-child { border-bottom: 1px solid var(--rule); }
.library__no { font-size: 13px; font-weight: 700; color: var(--gold-dim); letter-spacing: 0.1em; }
.library__t { font-size: clamp(19px, 2.4vw, 25px); }
.library__t a { color: var(--ink); text-decoration: none; }
.library__t a:hover { color: var(--gold-hi); }
.library__x { font-size: 15px; color: var(--muted); }
.library__d { font-size: 12.5px; color: var(--gold-dim); letter-spacing: 0.08em; }
@media (min-width: 760px) {
  .library__item { grid-template-columns: minmax(0, 56px) minmax(0, 1fr); }
  .library__no { grid-row: span 3; padding-top: 6px; }
}

.story { padding-top: clamp(24px, 3.5vw, 42px); padding-bottom: clamp(34px, 5vw, 58px); }
.story__body { max-width: 74ch; margin-top: clamp(22px, 3vw, 32px); }
.story__back { margin-top: clamp(26px, 3.5vw, 38px); display: flex; flex-wrap: wrap; gap: 10px 20px; }

/* ---- 404 --------------------------------------------------------------- */

.astray { padding-top: clamp(34px, 6vw, 70px); padding-bottom: clamp(30px, 4vw, 50px); }
.astray__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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

.footlights {
  background: #0A0806;
  border-top: 3px solid var(--gold-dim);
  padding-top: clamp(30px, 4vw, 48px);
  padding-bottom: clamp(30px, 4vw, 48px);
  margin-top: clamp(20px, 3vw, 40px);
}
.footlights__in {
  display: grid; gap: var(--gap);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 720px) { .footlights__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .footlights__in { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); } }
.footlights__block { min-width: 0; }
.footlights__name { font-size: 17px; font-weight: 700; color: var(--gold-hi); }
.footlights__note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.footlights__h {
  font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 10px;
}
.footlights__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.footlights__links a { color: #D3C8B4; text-decoration: none; }
.footlights__links a:hover { color: var(--gold-hi); }

/* Место под нижнюю панель покупки, чтобы она не закрывала подвал */
body[data-page-type='event'] .footlights { padding-bottom: clamp(84px, 10vw, 110px); }
@media (min-width: 900px) {
  body[data-page-type='event'] .footlights { padding-bottom: clamp(30px, 4vw, 48px); }
}

/* ==========================================================================
   Правки после второго разбора вёрстки
   ========================================================================== */

/* Страница зала: сводка идёт полосой сверху, текст — на всю ширину. */
.aside--strip {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  align-content: stretch;
}
.venue-text { padding-top: clamp(24px, 3.5vw, 42px); }
@media (min-width: 860px) {
  .venue-top__in { grid-template-columns: minmax(0, 1fr); }
}

/* Первый экран: плашки чисел заполняют колонку, а не оставляют дыру. */
@media (min-width: 900px) {
  .portal__in { align-items: stretch; }
  .ledge { grid-auto-rows: minmax(0, 1fr); }
}

/* Страница события: под сводкой не остаётся пустого места. */
@media (min-width: 900px) {
  .spot__in { align-items: stretch; }
  .stub { display: flex; flex-direction: column; }
  .stub__fine { margin-top: auto; padding-top: 12px; }
}

/* На телефоне кнопка идёт раньше афишного снимка. */
@media (max-width: 899px) {
  .spot__in { display: flex; flex-direction: column; }
  .stub { order: 1; }
  .spot__frame { order: 2; max-width: 280px; }
}

/* Длина строки: на мониторе колонка текста не шире 740 точек. */
.lede,
.prose p,
.prose li,
.worth__x,
.stub__fine { max-width: min(100%, 740px); }

/* Липкая кнопка не должна накрывать последние строки подвала. */
@media (max-width: 899px) {
  .footlights { padding-bottom: calc(clamp(30px, 4vw, 48px) + 72px); }
}

/* Снимок события не растягивается шире своего файла. */
.spot__frame img { width: auto; max-width: 100%; }
.spot__frame { display: flex; }

/* Первый экран на телефоне: плашки чисел компактнее, первая афиша выше. */
@media (max-width: 619px) {
  .portal { padding-top: clamp(22px, 4vw, 34px); }
  .ledge__cell { padding: 10px 12px; }
  .ledge__cell dd { font-size: 22px; }
  .portal__near { margin-top: 14px; }
}

/* Остатки длинных строк. */
.reading__x, .gates__x, .house__x, .ask__a p { max-width: min(100%, 740px); }
@media (max-width: 619px) {
  .marquee { padding-top: 24px; }
}
