/* PT Sans: кириллица и латиница, woff2, локально. Правила вшиты в начало файла
   намеренно — @import на шрифт стоил бы лишнего блокирующего запроса. */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-sans-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/pt-sans-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: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-sans-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/pt-sans-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: #16202E;
  --surface: #FFF8EC;
  --card: #FFFFFF;
  --accent: #D9442B;
  --accent-soft: #FFE3DA;
  --kid: #0E7C66;
  --kid-soft: #D8F1E9;
  --sun: #FFC53D;
  --muted: #5C6879;
  --line: #E7DCC9;

  --r-lg: 36px;
  --r-md: 26px;
  --r-sm: 18px;
  --pad: clamp(18px, 4vw, 34px);
  --gap: clamp(16px, 3vw, 26px);
}

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

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

html {
  scrollbar-color: var(--accent) var(--accent-soft);
  -webkit-text-size-adjust: 100%;
}
::-webkit-scrollbar { width: 14px; height: 14px; }
::-webkit-scrollbar-track { background: var(--accent-soft); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; border: 3px solid var(--accent-soft); }
::-webkit-scrollbar-thumb:hover { background: var(--ink); }

body {
  margin: 0;
  font-family: 'PT Sans', system-ui, sans-serif;
  font-size: clamp(17px, 1.15vw + 14px, 20px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
  overflow-wrap: break-word;
  word-break: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible { outline: 4px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 0 0 var(--r-sm) 0;
  z-index: 40;
}
.skip:focus { left: 0; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 28px);
  min-width: 0;
}
.wrap--narrow { max-width: 760px; }

/* --- Шапка --------------------------------------------------------------- */
.head {
  background: var(--surface);
  padding: clamp(12px, 2vw, 20px) 0;
  position: relative;
  z-index: 20;
}
.head__in {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  flex: 0 0 auto;
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--sun);
  border: 3px solid var(--ink);
  display: grid; place-items: center;
  font-size: 26px; font-weight: 700; line-height: 1;
}
.brand__text { min-width: 0; display: flex; flex-direction: column; }
.brand__name {
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__sub {
  font-size: 15px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.burger {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 10px;
  font: inherit; font-weight: 700;
  background: var(--card); color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}
.burger span[aria-hidden] {
  width: 20px; height: 3px; background: var(--ink); border-radius: 2px;
  box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink);
}
.burger__label { white-space: nowrap; }

.nav { flex: 0 0 auto; }
.nav__list {
  display: flex; flex-wrap: nowrap;
  gap: 8px; margin: 0; padding: 0; list-style: none;
}
.nav__link {
  display: block;
  white-space: nowrap;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
}
.nav__link:hover { background: var(--sun); border-color: var(--ink); color: var(--ink); }

.head.is-compact .head__in { flex-wrap: wrap; }
.head.is-compact .nav { flex: 1 1 100%; order: 3; }
.head.is-compact .nav__list { flex-direction: column; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.head.is-compact .nav__link { text-align: center; padding: 15px 18px; font-size: 19px; }

/* --- Крошки -------------------------------------------------------------- */
.crumbs { padding: 6px 0 2px; }
.crumbs__list {
  display: flex; flex-wrap: wrap; gap: 6px 10px;
  margin: 0; padding: 0; list-style: none;
  font-size: 15px; color: var(--muted);
}
.crumbs__item + .crumbs__item::before { content: '→'; margin-right: 10px; color: var(--line); }
.crumbs a { color: var(--muted); }

/* --- Общие блоки --------------------------------------------------------- */
main { padding-bottom: clamp(30px, 6vw, 60px); }

.block { margin-top: var(--gap); }
.panel {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: var(--pad);
}
.panel--soft { background: var(--accent-soft); border-color: transparent; }
.panel--kid { background: var(--kid-soft); border-color: transparent; }
.panel--sun { background: var(--sun); border-color: transparent; }

.h1 {
  font-size: clamp(30px, 5.4vw, 52px);
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 700;
}
.h3 { font-size: clamp(20px, 2.2vw, 24px); margin: 0 0 8px; font-weight: 700; }
.lead { font-size: clamp(18px, 1.5vw + 12px, 23px); margin: 0 0 18px; }
.note { color: var(--muted); font-size: 16px; }

.sect__head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 10px 20px;
}
.sect__head .h2 { margin-bottom: 12px; }
.link { font-weight: 700; }

/* --- Кнопки -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font: inherit; font-weight: 700;
  text-align: center; text-decoration: none;
  background: var(--accent); color: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 13px 24px;
  cursor: pointer;
  min-height: 52px;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn--lg { font-size: clamp(18px, 1.3vw + 12px, 22px); padding: 16px 30px; min-height: 62px; }
.btn--ghost { background: var(--card); color: var(--ink); }
.btn--ghost:hover { background: var(--sun); color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.btn--sm { padding: 10px 18px; min-height: 46px; font-size: 17px; }

/* --- Главная: приветственный блок ---------------------------------------- */
.hero { margin-top: var(--gap); }
.hero__in {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 900px) { .hero__in { grid-template-columns: minmax(0, 1fr); } }
.hero__kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 16px;
  background: var(--sun);
  border-radius: 999px;
  font-weight: 700; font-size: 16px;
}
.hero__lead { font-size: clamp(18px, 1.5vw + 12px, 23px); margin: 0 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

.gates { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gate {
  display: flex; align-items: center; gap: 16px;
  padding: 18px var(--pad);
  border-radius: var(--r-md);
  text-decoration: none; color: var(--ink);
  background: var(--card);
  border: 3px solid var(--ink);
}
.gate:hover { background: var(--sun); }
.gate__num {
  flex: 0 0 auto;
  width: 74px; height: 74px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 24px; font-weight: 700;
  background: var(--kid-soft); color: var(--kid);
  border: 3px solid currentColor;
}
.gate--six .gate__num { background: var(--accent-soft); color: var(--accent); }
.gate__t { display: block; font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; }
.gate__d { display: block; font-size: 16px; color: var(--muted); }

.counts {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin: 22px 0 0; padding: 0; list-style: none;
}
.counts li {
  background: var(--card); border-radius: var(--r-sm);
  padding: 14px 18px; border: 2px solid var(--line);
}
.counts b { display: block; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; }
.counts span { font-size: 16px; color: var(--muted); }

/* --- Сетка карточек ------------------------------------------------------ */
.grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}
.grid > * { min-width: 0; }

.kid {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  overflow: hidden;
  min-width: 0;
}
.kid__pic { display: block; position: relative; background: var(--accent-soft); }
.kid__pic img { width: 100%; height: auto; }
.kid__age {
  position: absolute; left: 14px; top: 14px;
  min-width: 58px; height: 58px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700;
  background: var(--kid-soft); color: var(--kid);
  border: 3px solid var(--kid);
}
.kid__age[data-age="6+"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.kid__body { padding: var(--pad); display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; min-width: 0; }
.kid__t { font-size: clamp(21px, 1.9vw, 26px); line-height: 1.2; margin: 0; font-weight: 700; }
.kid__t a { color: var(--ink); text-decoration: none; }
.kid__t a:hover { color: var(--accent); text-decoration: underline; }
.kid__when { margin: 0; font-size: 19px; font-weight: 700; }
/* Чем полезен сайт: три пункта сразу под первым экраном, без вступления. */
.worth {
  list-style: none; margin: 0; padding: 0; min-width: 0;
  display: grid; gap: var(--gap);
}
@media (min-width: 760px) { .worth { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.worth__i {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--r-md);
  padding: clamp(16px, 2.2vw, 22px); min-width: 0;
}
.worth__t { font-size: 18px; margin: 0; }
.worth__x { font-size: 15.5px; color: var(--muted); margin: 8px 0 0; }
.block--tight { padding-bottom: 0; }

.kid__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 2px solid var(--line);
  font-size: 15px; font-weight: 700;
}
.chip--kid { background: var(--kid-soft); border-color: var(--kid); color: var(--kid); }
.kid__venue { margin: 0; font-size: 16px; color: var(--muted); }
.kid__foot {
  margin-top: auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px;
}
.kid__price { margin: 0; font-size: 20px; font-weight: 700; white-space: nowrap; }

/* --- Плитки разделов ----------------------------------------------------- */
.tiles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); margin: 0; padding: 0; list-style: none; }
.tile {
  display: block; height: 100%;
  padding: var(--pad);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 3px solid var(--ink);
  text-decoration: none; color: var(--ink);
}
.tile:hover { background: var(--sun); }
.tile__t { font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; margin: 0 0 6px; }
.tile__d { margin: 0; font-size: 16px; color: var(--muted); }
.tile__n { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block; padding: 11px 18px;
  border-radius: 999px; background: var(--card);
  border: 2px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px;
}
.tag:hover { background: var(--sun); border-color: var(--ink); }
.tag b { color: var(--accent); }

/* --- Почему тут ---------------------------------------------------------- */
.why { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 0; padding: 0; list-style: none; counter-reset: why; }
.why li { background: var(--card); border-radius: var(--r-md); padding: var(--pad); border: 2px solid var(--line); }
.why__t { font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; margin: 0 0 8px; }
.why__x { margin: 0; font-size: 17px; }

/* --- Фильтры ------------------------------------------------------------- */
.filters {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 14px;
  margin: 0 0 var(--gap);
}
.filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters__label { font-weight: 700; font-size: 17px; }
.filters__btn {
  font: inherit; font-size: 17px; font-weight: 700;
  padding: 11px 18px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--card); color: var(--ink);
  cursor: pointer;
  min-height: 48px;
}
.filters__btn:hover { background: var(--sun); }
.filters__btn.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.listing__count { font-size: 17px; color: var(--muted); margin: 0 0 var(--gap); }
.empty { font-size: 19px; font-weight: 700; margin: var(--gap) 0 0; }

/* --- Квиз ---------------------------------------------------------------- */
.quiz__box { margin-top: 18px; }
.quiz__step { font-size: 16px; font-weight: 700; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.quiz__q { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; margin: 0 0 18px; line-height: 1.2; }
.quiz__answers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.quiz__a {
  font: inherit; font-size: clamp(18px, 1.2vw + 12px, 21px); font-weight: 700;
  text-align: left;
  padding: 18px 22px;
  border-radius: var(--r-md);
  border: 3px solid var(--ink);
  background: var(--card); color: var(--ink);
  cursor: pointer;
  min-height: 70px;
}
.quiz__a:hover { background: var(--sun); }
.quiz__bar { margin-top: 18px; height: 14px; border-radius: 999px; background: var(--card); border: 2px solid var(--ink); overflow: hidden; }
.quiz__fill { display: block; height: 100%; background: var(--accent); }
.quiz__results { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.qr { background: var(--card); border: 3px solid var(--ink); border-radius: var(--r-md); padding: 18px; min-width: 0; }
.qr__t { font-size: 21px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; }
.qr__t a { color: var(--ink); }
.qr__m { margin: 0 0 4px; font-size: 16px; color: var(--muted); }
.qr__p { margin: 0 0 12px; font-size: 19px; font-weight: 700; }
.quiz__again { margin: 18px 0 0; }
.quiz__note { margin: 0; }

/* --- Страница события ---------------------------------------------------- */
.ev__top { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 360px) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .ev__top { grid-template-columns: minmax(0, 1fr); } }
.ev__pic { border-radius: var(--r-md); overflow: hidden; border: 3px solid var(--ink); }
.ev__pic img { width: 100%; height: auto; }
.ev__agerow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.agebig {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: var(--kid-soft); color: var(--kid);
  border: 3px solid currentColor;
  font-weight: 700;
}
.agebig[data-age="6+"] { background: var(--accent-soft); color: var(--accent); }
.agebig__n { width: 52px; height: 52px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 22px; }
.agebig__x { font-size: 17px; }

.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 18px 0; padding: 0; list-style: none; }
.facts li { background: var(--surface); border-radius: var(--r-sm); padding: 14px 18px; border: 2px solid var(--line); min-width: 0; }
.facts dt, .facts__k { display: block; font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.facts dd, .facts__v { display: block; margin: 0; font-size: 19px; font-weight: 700; }

.ev__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 10px; }
.ev__ctanote { margin: 0; font-size: 16px; color: var(--muted); }

.ev__cols { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: start; margin-top: var(--gap); }
@media (max-width: 960px) { .ev__cols { grid-template-columns: minmax(0, 1fr); } }
.ev__side { display: grid; gap: var(--gap); position: sticky; top: 16px; }
@media (max-width: 960px) { .ev__side { position: static; } }

.dates__month + .dates__month { margin-top: 22px; }
.dates__mname { font-size: clamp(19px, 1.7vw, 23px); font-weight: 700; margin: 0 0 12px; }
.dates__list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); margin: 0; padding: 0; list-style: none; }
.dates__item {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  padding: 13px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 2px solid var(--line);
  min-width: 0;
}
.dates__d { font-size: 19px; font-weight: 700; }
.dates__wd { font-size: 16px; color: var(--muted); }
.dates__time { font-size: 19px; font-weight: 700; color: var(--accent); }
.dates__dur { font-size: 15px; color: var(--muted); flex: 1 1 100%; }
.ics { margin-top: 12px; font-size: 16px; }
.ics span { color: var(--muted); margin-left: 8px; }
.dates__go {
  flex: 1 1 100%; margin-top: 4px;
  font-size: 15px; font-weight: 700; text-decoration: none;
  color: var(--accent);
}
.dates__go:hover { text-decoration: underline; }
.dates__item--tight .dates__go { font-size: 14px; margin-top: 2px; }

.text { font-size: clamp(17px, 1.1vw + 13px, 20px); }
.text h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 28px 0 12px; line-height: 1.2; }
.text h3 { font-size: clamp(20px, 2vw, 24px); margin: 22px 0 10px; }
.text p { margin: 0 0 16px; }
.text ul, .text ol { margin: 0 0 16px; padding-left: 26px; }
.text li { margin-bottom: 8px; }
.text > *:first-child { margin-top: 0; }

.cast { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.side__price { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin: 0 0 4px; }
.side__date { margin: 0 0 16px; font-size: 17px; }
.side__note { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.side__k { font-size: 15px; color: var(--muted); margin: 0 0 6px; }

.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px clamp(14px, 3vw, 22px);
  background: var(--card);
  border-top: 3px solid var(--ink);
}
.sticky__price { font-weight: 700; font-size: 20px; }
@media (min-width: 961px) { .sticky { display: none; } }

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: 14px; }
.faq__item {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  padding: 4px 6px;
}
.faq__q {
  cursor: pointer;
  font-size: clamp(19px, 1.6vw, 23px); font-weight: 700;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ' +'; color: var(--accent); }
.faq__item[open] .faq__q::after { content: ' −'; }
.faq__a { padding: 0 18px 16px; }
.faq__a p { margin: 0; }

/* --- Блог ---------------------------------------------------------------- */
.posts { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }
.posts__item { background: var(--card); border: 3px solid var(--ink); border-radius: var(--r-md); padding: var(--pad); }
.posts__title { font-size: clamp(21px, 2.2vw, 28px); font-weight: 700; margin: 0 0 8px; line-height: 1.2; }
.posts__title a { color: var(--ink); text-decoration: none; }
.posts__title a:hover { color: var(--accent); text-decoration: underline; }
.posts__desc { margin: 0 0 8px; }
.posts__meta { margin: 0; font-size: 16px; color: var(--muted); }
.post__meta { font-size: 16px; color: var(--muted); margin: 0 0 20px; }
.post__back { margin: 26px 0 0; }

.teaser { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.teaser a {
  display: block; padding: 16px var(--pad);
  border-radius: var(--r-md);
  background: var(--card); border: 2px solid var(--line);
  text-decoration: none; color: var(--ink);
}
.teaser a:hover { background: var(--sun); border-color: var(--ink); }
.teaser__t { display: block; font-size: clamp(19px, 1.6vw, 22px); font-weight: 700; }
.teaser__d { display: block; font-size: 16px; color: var(--muted); }

/* --- Подвал -------------------------------------------------------------- */
.foot {
  margin-top: clamp(30px, 6vw, 60px);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(26px, 5vw, 48px) 0;
}
.foot__in { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.foot__name { font-size: clamp(20px, 2vw, 25px); font-weight: 700; margin: 0 0 10px; }
.foot__head { font-weight: 700; margin: 0 0 10px; }
.foot__note { margin: 0; font-size: 16px; color: #C9D2DE; }
.foot__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot a { color: var(--sun); }
.foot a:hover { color: #fff; }

/* --- 404 ----------------------------------------------------------------- */
.nf__big { font-size: clamp(60px, 14vw, 140px); line-height: 1; font-weight: 700; margin: 0 0 10px; color: var(--accent); }

/* --- Раскрытие полного списка дат ---------------------------------------- */
.alldates { margin-top: 20px; }
.alldates__sum {
  cursor: pointer;
  list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: clamp(17px, 1.2vw, 20px);
  padding: 13px 22px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--card);
  min-height: 52px;
}
.alldates__sum::-webkit-details-marker { display: none; }
.alldates__sum::after { content: '↓'; color: var(--accent); }
.alldates[open] .alldates__sum::after { content: '↑'; }
.alldates__sum:hover { background: var(--sun); }
.alldates__body { margin-top: 20px; }
.dates__list--tight { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 8px; }
.dates__item--tight { padding: 10px 14px; font-size: 17px; gap: 3px 8px; }
.dates__item--tight .dates__d { font-size: 17px; }
.dates__item--tight .dates__time { font-size: 17px; }

/* ---- Правки разбора вёрстки ------------------------------------------- */

/* Строка на странице площадки доходила до 140 знаков. */
.text, .text p, .text li, .prose, .prose p, .faq__a p, .worth__x { max-width: 74ch; }

/* Красное по жёлтому: контраст 2,8. Внутри жёлтой плашки ссылки тёмные
   и подчёркнутые. */
.panel--sun a, .panel--sun .faq__a a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}
.panel--sun a:hover { color: var(--ink); background: #fff; }

/* Карточка: возраст больше не кружок на фотографии, а первая плашка в ряду;
   плашки стали плотнее и встают в один-два ряда вместо трёх. */
.chip { padding: 5px 12px; font-size: 14.5px; }
.kid__chips { gap: 6px; }

/* Сезонный порядок афиши: сначала декабрьские показы, потом январские. */
.kid { order: 5; }
.kid[data-near^="dekabr"] { order: 1; }
.kid[data-near^="yanvar"] { order: 2; }

/* Подвал не уходит под липкую полосу покупки. */
body:has(.dock) .foot, body:has(.sticky) .foot { padding-bottom: 96px; }

/* Подписи разборов не шире 74 знаков. */
.teaser__d, .list__d, .tile__d { max-width: 74ch; }

/* Строка текста на мониторе: не длиннее 760 точек. Прежде абзацы шли
   во всю ширину колонки и доходили до 140 знаков в строке. */
.prose p, .prose li, .text p, .text li,
main p:not([class]), main li:not([class]),
.lead, .intro, .say, .lede, .note, .atlas__lead, .hero__lead,
.qa__a, .faq__a p, .ask__a p, .asks p:not([class]) { max-width: min(74ch, 760px); }

/* Подбор больше не двигает страницу: место под ответ зарезервировано. */
[data-quiz] { min-height: 430px; }
/* Мелкий пояснительный текст тоже не шире 760 точек. */
[class$="__fine"], [class$="__note"], [class$="__text"], [class$="__x"], [class$="__cap"] { max-width: min(74ch, 760px); }
