/* Golos Text: кириллица и латиница, woff2, локально */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/golos-text-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/golos-text-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: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/golos-text-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/golos-text-500-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: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/golos-text-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/golos-text-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 {
  --ink: #15160F;
  --paper: #FAF8F2;
  --paper-alt: #F0ECE1;
  --accent: #1D4E3F;
  --accent-deep: #14372D;
  --accent-soft: #D9E5DE;
  --muted: #6C6A5E;
  --rule: #D8D2C4;

  --sheet: 1240px;
  --gut: clamp(16px, 5vw, 64px);
  --band: clamp(44px, 7vw, 104px);
  --measure: 34rem;

  --display: clamp(2.35rem, 6.4vw, 5rem);
  --display-sm: clamp(1.95rem, 4.6vw, 3.4rem);
  --h2: clamp(1.4rem, 2.8vw, 2.15rem);
  --h3: clamp(1.12rem, 1.7vw, 1.4rem);
}

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


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

html {
  scrollbar-color: var(--accent) var(--paper-alt);
  scrollbar-width: thin;
  -webkit-text-size-adjust: 100%;
}
html::-webkit-scrollbar { width: 11px; height: 11px; }
html::-webkit-scrollbar-track { background: var(--paper-alt); }
html::-webkit-scrollbar-thumb { background: var(--accent); border: 3px solid var(--paper-alt); }
html::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  overflow-wrap: break-word;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.1; }
p, ul, ol, dl { margin: 0; }
button { font: inherit; color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 60;
  background: var(--accent); color: var(--paper); padding: 12px 18px; text-decoration: none;
}
.skip:focus { left: 0; }

:where(a, button, summary, details):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --- Сетка листа -------------------------------------------------------- */

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

.spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.spread > * { min-width: 0; }

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

.display { font-size: var(--display); letter-spacing: -0.035em; line-height: 0.99; }
.display--sm { font-size: var(--display-sm); letter-spacing: -0.03em; line-height: 1.03; }

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: clamp(14px, 2vw, 22px);
}
.kicker--accent { color: var(--accent); }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.5;
  color: #34342B;
  max-width: 40rem;
  margin-top: clamp(18px, 2.4vw, 30px);
}
.lede--sm { font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; }

.head2 {
  font-size: var(--h2);
  letter-spacing: -0.03em;
}
.head2--light { color: var(--paper); }

.band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.4vw, 44px);
}

.quiet {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  padding-bottom: 2px;
  font-weight: 500;
  white-space: nowrap;
}
.quiet:hover { border-bottom-color: var(--accent); }

.press {
  display: inline-block;
  background: var(--accent);
  color: var(--paper);
  text-decoration: none;
  font-weight: 500;
  padding: 15px 30px;
  border: 0;
  letter-spacing: 0.005em;
}
.press:hover { background: var(--accent-deep); }
.press--block { display: block; width: 100%; text-align: center; }
.press--sm { padding: 11px 20px; font-size: 0.95rem; }

.tick {
  display: inline-block;
  /* вертикальные поля нужны не для вида, а для пальца: без них ссылка
     получается 27px высотой и мимо неё промахиваются */
  padding: 9px 0;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-color: var(--accent-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  white-space: nowrap;
}
.tick::after { content: ' →'; }
.tick:hover { text-decoration-color: var(--accent); }

/* --- Выходные данные и шапка -------------------------------------------- */

.dateline {
  background: var(--accent);
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.dateline__in {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 7px;
  flex-wrap: wrap;
}
.dateline__right { color: var(--accent-soft); }

.mast {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.mast__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 3vw, 48px);
  padding-block: clamp(16px, 2.2vw, 26px);
}
.flag {
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  display: block;
}
.flag__name {
  display: block;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flag__sub {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu { flex: 0 0 auto; }
.menu__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 1.8vw, 30px);
  list-style: none;
  padding: 0;
}
.menu__a {
  white-space: nowrap;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.menu__a:hover { border-bottom-color: var(--accent); color: var(--accent); }

.menubtn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: 1px solid var(--ink);
  padding: 9px 15px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}
.menubtn__bars {
  width: 17px; height: 9px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}
.mast.is-compact .menu {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 14px 22px -18px rgba(21, 22, 15, 0.5);
  z-index: 30;
}
.mast.is-compact .menu__list {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 6px var(--gut) 14px;
}
.mast.is-compact .menu__a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
}

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

.trail { padding-top: clamp(16px, 2vw, 26px); }
.trail__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.trail__item + .trail__item::before { content: '/ '; color: var(--rule); }
.trail__item a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--rule); }
.trail__item a:hover { color: var(--accent); }

/* --- Открывающий разворот ----------------------------------------------- */

.opening { padding-block: clamp(36px, 6vw, 84px) var(--band); }
.spread--opening { align-items: end; }
.opening__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(24px, 3vw, 38px);
}

.ledger { border-top: 2px solid var(--ink); }
.ledger__row {
  display: grid;
  /* вторая колонка тоже с minmax(0, …): длинное название площадки вроде
     «Театр Шалом (Сцена на Новослободской)» иначе раздвигает сетку шире
     контейнера и даёт горизонтальный скролл на 320 */
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: baseline;
  gap: 6px 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.ledger dt { color: var(--muted); font-size: 0.9rem; }
.ledger dd {
  margin: 0;
  min-width: 0;
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
}

/* --- Спектакль номера --------------------------------------------------- */

.lead {
  background: var(--paper-alt);
  padding-block: var(--band);
}
.spread--lead { align-items: center; }
.lead__title {
  font-size: clamp(1.9rem, 4.4vw, 3.3rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.lead__title a { text-decoration: none; }
.lead__title a:hover { color: var(--accent); }
.lead__meta {
  margin-top: 16px;
  font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.lead__facts, .lead__cast {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 34rem;
}
.lead__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 26px;
  margin-top: clamp(22px, 3vw, 34px);
}
.lead__shot { margin: 0; }
.lead__shot img { width: 100%; }
.lead__shot figcaption {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* --- Лента карточек ----------------------------------------------------- */

.feed { padding-block: var(--band); }
.feed--tail { background: var(--paper-alt); }

.notes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr));
  gap: clamp(30px, 4vw, 52px) clamp(20px, 2.6vw, 38px);
}
.note { min-width: 0; }
.note__shot { display: block; margin-bottom: 14px; }
.note__shot img { width: 100%; filter: grayscale(0.08); }
.note__shot:hover img { filter: none; }
.note__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.note__dot { padding-inline: 7px; color: var(--rule); }
.note__title {
  font-size: var(--h3);
  margin-top: 7px;
  letter-spacing: -0.03em;
}
.note__title a { text-decoration: none; }
.note__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.note__house { margin-top: 8px; font-size: 0.92rem; font-weight: 500; }
.note__when { font-size: 0.88rem; color: var(--muted); margin-top: 2px; }
.note__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-top: 13px;
}
.note__price { font-weight: 700; letter-spacing: -0.02em; }

/* --- Театры города ------------------------------------------------------ */

.houses { padding-block: var(--band); border-top: 1px solid var(--rule); }
.houses__lede {
  max-width: 46rem;
  color: var(--muted);
  margin-top: -8px;
  margin-bottom: clamp(26px, 3.4vw, 42px);
}
.houses__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 0 clamp(24px, 3vw, 48px);
}
.house {
  min-width: 0;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.house__num {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.16em;
}
.house__name { font-size: var(--h3); margin-top: 6px; }
.house__name a { text-decoration: none; }
.house__name a:hover { color: var(--accent); }
.house__addr { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.house__count { font-size: 0.88rem; font-weight: 500; margin-top: 6px; color: var(--accent); }

/* --- Рубрикатор --------------------------------------------------------- */

.rubricator { padding-block: var(--band); background: var(--paper-alt); }
.rubricator--tail { background: none; border-top: 1px solid var(--rule); }
.rubricator__list { list-style: none; padding: 0; margin-top: clamp(18px, 2.4vw, 26px); }
.rubricator__list li { border-bottom: 1px solid var(--rule); }
.rubricator__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 18px;
  padding: 13px 0;
  text-decoration: none;
  font-weight: 500;
}
.rubricator__list a:hover { color: var(--accent); }
.rubricator__list b {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.rubricator__list a:hover b { color: var(--accent); }

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

.picker {
  background: var(--accent-deep);
  color: var(--paper);
  padding-block: var(--band);
}
.picker__lede {
  margin-top: 18px;
  color: var(--accent-soft);
  max-width: 30rem;
}
.picker__box {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(20px, 3vw, 34px);
}
.picker__off { font-size: 0.95rem; }
.qstep {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.qq {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-top: 10px;
  font-weight: 700;
  line-height: 1.12;
}
.qlist { display: grid; gap: 1px; margin-top: 22px; }
.qa {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper-alt);
  border: 0;
  padding: 15px 18px;
  cursor: pointer;
  font-weight: 500;
}
.qa:hover { background: var(--accent-soft); color: var(--accent-deep); }
.qbar { height: 3px; background: var(--paper-alt); margin-top: 22px; }
.qfill { display: block; height: 3px; background: var(--accent); }
.qres { display: grid; gap: 1px; margin-top: 20px; }
.qr {
  background: var(--paper-alt);
  padding: 16px 18px;
  display: grid;
  gap: 5px;
}
.qr__t { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.02em; }
.qr__t a { text-decoration: none; }
.qr__t a:hover { color: var(--accent); }
.qr__m { font-size: 0.87rem; color: var(--muted); }
.qr__p { font-weight: 700; }
.qr__go { margin-top: 6px; }
.qagain { margin-top: 20px; }
.qback {
  background: none;
  border: 1px solid var(--ink);
  padding: 11px 20px;
  cursor: pointer;
  font-weight: 500;
}
.qback:hover { border-color: var(--accent); color: var(--accent); }

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

.selections { padding-block: var(--band); }
.selections__list {
  list-style: none;
  padding: 0;
  margin-top: clamp(22px, 3vw, 36px);
  counter-reset: pick;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(26px, 3.4vw, 44px) clamp(24px, 3vw, 52px);
}
.pick {
  min-width: 0;
  counter-increment: pick;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.pick::before {
  content: counter(pick, decimal-leading-zero);
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.pick__title { font-size: var(--h3); }
.pick__title a { text-decoration: none; }
.pick__title a:hover { color: var(--accent); }
.pick__text { color: var(--muted); font-size: 0.94rem; margin-top: 9px; }
.pick__count { font-size: 0.85rem; font-weight: 500; margin-top: 10px; }

/* --- От редакции -------------------------------------------------------- */

.editorial { padding-block: var(--band); background: var(--paper-alt); }
.editorial__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: clamp(26px, 3.4vw, 44px) clamp(28px, 3.4vw, 56px);
  margin-top: clamp(24px, 3vw, 38px);
}
.editorial__item { min-width: 0; }
.editorial__title { font-size: 1.08rem; }
.editorial__text { color: var(--muted); font-size: 0.95rem; margin-top: 9px; }

/* --- Читать ------------------------------------------------------------- */

.reading { padding-block: var(--band); }
.reading__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 3vw, 40px) clamp(24px, 3vw, 48px);
}
.reading__item { min-width: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
.reading__title { font-size: 1.1rem; }
.reading__title a { text-decoration: none; }
.reading__title a:hover { color: var(--accent); }
.reading__text { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }

/* --- Каталог (листинги) ------------------------------------------------- */

.catalog { padding-block: clamp(30px, 4.4vw, 60px) var(--band); }
.catalog__head { max-width: 46rem; }
.catalog__count {
  margin-top: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.catalog--venue { padding-top: 0; }

.sift {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: clamp(24px, 3vw, 36px);
  padding-block: 18px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.sift__cap {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-right: 4px;
}
.sift__cap--gap { margin-left: clamp(0px, 2vw, 22px); }
.sift__btn {
  background: none;
  border: 1px solid var(--rule);
  padding: 8px 15px;
  cursor: pointer;
  font-size: 0.92rem;
}
.sift__btn:hover { border-color: var(--accent); color: var(--accent); }
.sift__btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--paper); }

.lines { list-style: none; padding: 0; margin-top: 8px; }
.line {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px clamp(18px, 2.4vw, 32px);
  padding: clamp(20px, 2.6vw, 30px) 0;
}
.line + .line { border-top: 1px solid var(--rule); }
.line__shot { display: block; grid-row: span 1; }
.line__shot img { width: 100%; }
.line__body { min-width: 0; }
.line__label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.line__title { font-size: clamp(1.18rem, 2.1vw, 1.55rem); margin-top: 8px; }
.line__title a { text-decoration: none; }
.line__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.line__when { margin-top: 8px; font-size: 0.93rem; }
.line__cast { margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.line__buy {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 10px;
  text-align: right;
}
.line__price { white-space: nowrap; font-size: 0.95rem; }
.line__price b { font-size: 1.15rem; letter-spacing: -0.02em; }

.void { margin-top: 26px; color: var(--muted); max-width: 40rem; }

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

.piece { padding-top: clamp(26px, 3.4vw, 46px); }
.spread--piece {
  margin-top: clamp(28px, 3.4vw, 46px);
  align-items: start;
}
.piece__shot { margin: 0; }
.piece__shot img { width: 100%; }
.piece__card { min-width: 0; }
.ledger--card { border-top-color: var(--accent); }
.ledger--card dd { font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.ledger--wide { margin-top: clamp(24px, 3vw, 36px); max-width: 44rem; }
.piece__act { margin-top: 22px; }
.piece__fine { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }

.spread--body { padding-block: var(--band); }

.prose { max-width: var(--measure); }
.prose--wide { max-width: 40rem; }
.prose h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-top: clamp(30px, 3.4vw, 44px);
  margin-bottom: 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 28px; margin-bottom: 8px; }
.prose p { margin-bottom: 1.05em; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose strong { font-weight: 700; }
.prose a { color: var(--accent); text-underline-offset: 3px; }

.calendar { margin-top: clamp(40px, 5vw, 64px); }
.calendar__month { margin-top: clamp(22px, 2.6vw, 30px); }
.calendar__name {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.calendar__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr));
  gap: 0 clamp(16px, 2vw, 30px);
}
.calendar__day {
  min-width: 0;
  display: grid;
  gap: 1px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.calendar__day b { font-size: 1.02rem; letter-spacing: -0.02em; }
.calendar__day span { font-size: 0.85rem; color: var(--muted); }
.calendar__day i { font-style: normal; font-weight: 500; font-size: 0.9rem; }
.calendar__fine, .cast__fine {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 36rem;
}

.cast { margin-top: clamp(40px, 5vw, 64px); }
.cast__names {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  line-height: 1.55;
  font-weight: 500;
  max-width: 40rem;
}
.cast__sep { color: var(--accent); padding-inline: 8px; }

.rail { min-width: 0; display: grid; gap: clamp(20px, 2.4vw, 28px); align-content: start; }
.rail__buy { background: var(--paper-alt); padding: clamp(20px, 2.4vw, 26px); }
.rail__price {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}
.rail__when { font-size: 0.92rem; color: var(--muted); margin: 6px 0 18px; }
.rail__note { font-size: 0.85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.rail__where { border-top: 2px solid var(--ink); padding-top: 16px; }
.rail__head {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.rail__text { margin: 9px 0 12px; font-size: 0.95rem; }

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: var(--accent-deep);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px var(--gut);
}
.dock__price { font-weight: 700; letter-spacing: -0.02em; }
.dock .press { background: var(--paper); color: var(--accent-deep); }
.dock .press:hover { background: var(--accent-soft); }

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

.house-page { padding-top: clamp(26px, 3.4vw, 46px); }

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

.asks { padding-block: clamp(30px, 4vw, 56px) var(--band); }
.asks__side {
  margin-top: clamp(22px, 3vw, 32px);
  font-size: 0.92rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  padding-top: 16px;
  max-width: 24rem;
}
.asks__side a { color: var(--accent); }
.asks__list { min-width: 0; }
.ask { border-top: 1px solid var(--rule); }
.ask:last-child { border-bottom: 1px solid var(--rule); }
.ask__q {
  cursor: pointer;
  list-style: none;
  padding: 19px 36px 19px 0;
  position: relative;
  font-weight: 500;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  letter-spacing: -0.015em;
}
.ask__q::-webkit-details-marker { display: none; }
.ask__q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 1.4rem;
  color: var(--accent);
  line-height: 1;
}
.ask[open] .ask__q::after { content: '–'; }
.ask__a { padding-bottom: 22px; max-width: 42rem; color: #34342B; }

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

.issue { padding-block: clamp(30px, 4vw, 56px) var(--band); }
.issue__list {
  list-style: none;
  padding: 0;
  margin-top: clamp(30px, 4vw, 52px);
  counter-reset: story;
}
.issue__item {
  counter-increment: story;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  padding: clamp(22px, 2.6vw, 30px) 0;
  border-top: 1px solid var(--rule);
  position: relative;
}
.issue__item::before {
  content: counter(story, decimal-leading-zero);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--accent);
}
.issue__title { font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; }
.issue__title a { text-decoration: none; }
.issue__title a:hover { color: var(--accent); }
.issue__text { color: var(--muted); max-width: 42rem; }
.issue__date { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; }

.story { padding-top: clamp(26px, 3.4vw, 46px); }
.story__body { padding-block: clamp(30px, 4vw, 52px) var(--band); }
.story__back { margin-top: clamp(32px, 4vw, 48px); display: flex; gap: 22px; flex-wrap: wrap; }

/* --- Архив и 404 -------------------------------------------------------- */

.gone { padding-block: clamp(30px, 4vw, 56px) var(--band); }
.gone__note {
  margin-top: clamp(20px, 2.6vw, 30px);
  padding: 16px 20px;
  background: var(--paper-alt);
  border-left: 3px solid var(--accent);
  max-width: 42rem;
}
.gone__act { margin-top: clamp(24px, 3vw, 34px); }

.lost { padding-block: clamp(40px, 6vw, 88px) var(--band); }
.lost__act { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: clamp(24px, 3vw, 36px); }

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

.colophon {
  background: var(--ink);
  color: var(--paper-alt);
  padding-block: clamp(36px, 5vw, 68px);
}
.colophon__in {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: clamp(26px, 3.4vw, 44px);
}
.colophon__block { min-width: 0; }
.colophon__block--wide { grid-column: span 1; }
.colophon__name { font-weight: 700; font-size: 1.1rem; letter-spacing: -0.02em; }
.colophon__note { color: #A9A79A; font-size: 0.88rem; margin-top: 10px; }
.colophon__head {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #A9A79A;
  font-weight: 600;
  margin-bottom: 12px;
}
.colophon__links { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.colophon__links a { text-decoration: none; border-bottom: 1px solid #3A3B31; padding-bottom: 2px; }
.colophon__links a:hover { color: #fff; border-bottom-color: var(--accent-soft); }

/* --- Ширины ------------------------------------------------------------- */

@media (min-width: 620px) {
  .line { grid-template-columns: 132px minmax(0, 1fr) minmax(0, 150px); }
  .spread--asks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
}

@media (min-width: 900px) {
  .menubtn { display: none; }
  .spread--opening { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .spread--lead { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .spread--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spread--picker { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .spread--piece { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
  .spread--body { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); }
  .spread--asks { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .rail { position: sticky; top: 26px; }
  .dock { display: none; }
  .colophon__block--wide { grid-column: span 2; }
  .issue__item { grid-template-columns: 70px minmax(0, 1fr); align-items: start; }
  .issue__item::before { grid-row: span 3; padding-top: 8px; }
}

@media (min-width: 1180px) {
  .spread--piece { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
  .notes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 619px) {
  .line { grid-template-columns: 84px minmax(0, 1fr); }
  .line__buy {
    grid-column: 1 / -1;
    justify-items: start;
    text-align: left;
    grid-auto-flow: column;
    align-items: center;
    gap: 18px;
    margin-top: 4px;
  }
  .dateline { font-size: 0.72rem; }
  .dateline__right { display: none; }
}

@media (max-width: 559px) {
  /* на узком экране подпись всё равно обрезается многоточием — честнее убрать */
  .flag__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
