:root {
  --paper: #F6F3EC;
  --band: #EFE8DC;
  --card: #FFFFFF;
  --ink: #1C1A17;
  --muted: #6A645A;
  --line: #E0D9CC;
  --line-strong: #CFC6B6;
  --accent: #9E1B32;
  --accent-dark: #7F1428;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1312px;
  --gutter: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- шапка --------------------------------------------------------------- */
.hdr { border-bottom: 1px solid var(--line); background: var(--paper); }
.hdr .wrap { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.logo { font: italic 700 34px/1 var(--serif); letter-spacing: -0.02em; }
.logo span, .ftr .logo span { color: var(--accent); }
.city-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 500; font-size: 15px; }
.city-btn svg { flex-shrink: 0; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; margin-left: auto; }
.nav a[aria-current="page"] { color: var(--accent); }

/* --- поиск ------------------------------------------------------------- */
.search { position: relative; display: flex; align-items: center; gap: 10px; width: 280px; height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.search input { flex-grow: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.search:focus-within { border-color: var(--ink); }
.results { position: absolute; z-index: 10; top: calc(100% + 8px); left: 0; width: min(440px, calc(100vw - 32px));
  max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(28, 26, 23, 0.12); padding: 6px; }
.results a { display: block; padding: 10px 12px; border-radius: 8px; }
.results a:hover, .results a.sel { background: var(--band); color: var(--ink); }
.results b { display: block; font: 600 19px/1.2 var(--serif); }
.results small { font-size: 13px; color: var(--muted); }
.results .hd { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.results .none { padding: 12px; color: var(--muted); font-size: 14px; }

/* --- хлебные крошки ------------------------------------------------------ */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 10px; padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--ink); }

/* --- первый экран -------------------------------------------------------- */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 56px 0 32px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: 84px; line-height: 0.95; letter-spacing: -0.02em; margin-top: 16px; }
.hero p { margin: 18px 0 0; font-size: 19px; color: var(--muted); max-width: 640px; }
.stat { text-align: right; padding-bottom: 8px; flex-shrink: 0; }
.stat b { display: block; font: 600 56px/1 var(--serif); color: var(--accent); }
.stat span { font-size: 15px; color: var(--muted); }

/* --- даты ---------------------------------------------------------------- */
.dates { display: flex; align-items: stretch; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; flex-shrink: 0; height: 60px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); font-size: 15px; font-weight: 500; white-space: nowrap; }
.pill.on, .day.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.on:hover, .day.on:hover { color: var(--paper); }
.dates .sep { width: 1px; flex-shrink: 0; background: var(--line); margin: 4px 8px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  width: 52px; height: 60px; border-radius: 12px; }
.day small { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.day.we small { color: var(--accent); }
.day.on small { color: var(--paper); }
.day b { font-size: 20px; font-weight: 600; }
.day.off { opacity: 0.35; pointer-events: none; }

/* --- жанры ------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 20px; }
.chip { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); font-size: 14px; font-weight: 500; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.on:hover { color: #fff; }

/* --- авторы -------------------------------------------------------------- */
.authors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.authors a { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; min-height: 150px;
  padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.authors b { font: 600 30px/1.05 var(--serif); }
.authors span { font-size: 13px; color: var(--muted); }

/* --- секции -------------------------------------------------------------- */
.sec { padding: 56px 0 24px; }
.sec-band { background: var(--band); padding: 64px 0; margin-top: 48px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.sec-head h2 { font-size: 46px; line-height: 1.05; }
.sec-head p { margin: 8px 0 0; color: var(--muted); }
.more { font-size: 15px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.more:hover { color: var(--accent-dark); }

/* --- карточки ------------------------------------------------------------ */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 48px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.cover { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #E7D9CB; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .letter { position: absolute; right: -4%; top: -22%; font: 700 min(220px, 60vw)/1 var(--serif); color: rgba(28, 26, 23, 0.07); }
.cover .badge { position: absolute; right: 12px; bottom: 12px; background: var(--card); color: var(--ink);
  border-radius: 6px; padding: 6px 10px; font-size: 13px; font-weight: 600; }
.t0 { background: #E7D9CB; } .t1 { background: #D6DEE2; } .t2 { background: #E4D3D6; }
.t3 { background: #DAE1D3; } .t4 { background: #E6DDC6; } .t5 { background: #DCD6E4; }
.card h3 { font-size: 27px; line-height: 1.1; }
.card .venue { font-size: 14px; color: var(--muted); margin-top: 6px; }
.card .price { font-size: 15px; font-weight: 600; margin-top: 8px; }

/* --- списки показов ------------------------------------------------------ */
.month { padding: 24px 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.row { display: grid; grid-template-columns: 110px 80px minmax(0, 1fr) 150px 170px; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line); }
.row .dn { display: flex; align-items: baseline; gap: 8px; }
.row .dn b { font: 600 40px/1 var(--serif); }
.row .dn small { font-size: 14px; color: var(--muted); }
.row .dn small.we { color: var(--accent); }
.row .tm { font-size: 18px; font-weight: 500; }
.row .what { min-width: 0; }
.row .what a.title { font: 600 24px/1.15 var(--serif); }
.row .what .sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
.row .pr { font-size: 17px; font-weight: 600; }
.row.compact { grid-template-columns: 80px minmax(0, 1fr) 150px 170px; }
.sec > .row:first-child, .sec > .sec-head + .row { border-top: 0; }
.buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.buy a { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 1.5px solid var(--accent); color: var(--accent); font-size: 15px; font-weight: 600; white-space: nowrap; }
.buy a:hover { background: var(--accent); color: #fff; }
.buy small { font-size: 11px; color: var(--muted); }
.promo { font: inherit; font-size: 12px; color: var(--accent); background: none; border: 1px dashed var(--accent);
  border-radius: 6px; padding: 3px 8px; cursor: pointer; white-space: nowrap; }
.promo b { font-weight: 600; letter-spacing: 0.04em; }
.promo:hover { background: var(--accent); color: #fff; }
.promo.done { border-style: solid; }
.promo-note { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px;
  padding: 16px 20px; border: 1px dashed var(--accent); border-radius: 10px; background: var(--card); font-size: 15px; }
.promo-note b { color: var(--accent); }
.promo-note .promo { font-size: 14px; padding: 8px 14px; }

/* --- строки афиши с картинкой ------------------------------------------ */
.trow { display: grid; grid-template-columns: 128px minmax(0, 1fr) 150px 190px; align-items: center; gap: 20px;
  padding: 14px 0; border-top: 1px solid var(--line); }
.sec > .trow:first-child, .sec > .sec-head + .trow, .month + .trow { border-top: 0; }
.thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .letter { position: absolute; right: -2px; top: -18px; font: 700 110px/1 var(--serif); color: rgba(28, 26, 23, 0.08); }
.trow .when { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.trow .title { display: inline-block; margin-top: 2px; font: 600 24px/1.15 var(--serif); }
.trow .sub { font-size: 15px; color: var(--muted); margin-top: 2px; }
.trow .pr { font-size: 17px; font-weight: 600; }

/* --- страница спектакля / театра ----------------------------------------- */
.lead { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 64px; align-items: start; padding: 32px 0 56px; }
.lead .cover { aspect-ratio: 4 / 3; border-radius: 10px; }
.lead .cover .letter { font-size: 420px; }
.lead h1 { font-size: 76px; line-height: 0.95; letter-spacing: -0.02em; margin-top: 16px; }
.lead .author { font-size: 20px; color: var(--muted); margin-top: 12px; }
.place-link { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); margin-top: 28px; }
.facts div { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts span { font-size: 13px; color: var(--muted); }
.facts b { font-size: 18px; font-weight: 600; }
.cta { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; height: 56px; padding: 0 32px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.text { max-width: 760px; font-size: 17px; color: var(--muted); }

/* --- алфавитные списки --------------------------------------------------- */
.letters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 600 20px var(--serif); }
.az h2 { font-size: 40px; padding: 32px 0 12px; }
.cols { columns: 3 280px; column-gap: 48px; }
.cols a { display: block; padding: 7px 0; break-inside: avoid; }
.cols a small { color: var(--muted); font-size: 13px; margin-left: 6px; }
.list2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.list2 a { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.list2 a small { color: var(--muted); font-size: 14px; white-space: nowrap; }
.filter { display: flex; align-items: center; gap: 10px; max-width: 420px; height: 48px; padding: 0 18px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.filter input { flex-grow: 1; border: 0; outline: none; background: transparent; font: inherit; color: var(--ink); }

/* --- подвал -------------------------------------------------------------- */
.ftr { margin-top: 72px; background: var(--ink); color: #EDE7DB; padding: 48px 0; }
.ftr .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.ftr .logo { font-size: 30px; }
.ftr .logo span { color: #D9495F; }
.ftr p { margin: 12px 0 0; font-size: 14px; color: #B9B2A5; max-width: 520px; }
.ftr nav { display: flex; flex-wrap: wrap; gap: 12px 32px; font-size: 14px; }
.ftr a:hover { color: #fff; }

.prose { max-width: 760px; }
.prose h2 { font-size: 34px; margin: 32px 0 8px; }
.prose p { font-size: 17px; color: var(--muted); margin: 0; }
.prose a { color: var(--accent); }

.empty { padding: 32px 0; color: var(--muted); font-size: 17px; }

/* --- адаптив ------------------------------------------------------------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .authors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lead { grid-template-columns: 1fr; gap: 32px; }
  .lead .cover { max-width: 560px; }
  .nav { gap: 18px; }
  .search { width: 220px; }
  .hero h1 { font-size: 64px; }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .hdr .wrap { min-height: 60px; gap: 8px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .logo { font-size: 28px; }
  .city-btn { margin-left: auto; height: 40px; }
  .search { order: 4; width: 100%; margin-bottom: 4px; }
  .nav { order: 3; width: 100%; margin: 0; gap: 18px; overflow-x: auto; white-space: nowrap; padding: 6px 0 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding: 28px 0 20px; gap: 16px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .stat { text-align: left; }
  .stat b { font-size: 40px; }
  .pill { height: 44px; padding: 0 14px; font-size: 14px; }
  .day { height: 44px; width: 44px; }
  .day small { font-size: 10px; }
  .day b { font-size: 16px; }
  .sec { padding: 32px 0 8px; }
  .sec-band { padding: 32px 0; margin-top: 32px; }
  .sec-head { margin-bottom: 16px; flex-direction: column; gap: 8px; }
  .sec-head h2 { font-size: 32px; }
  .grid { grid-template-columns: 1fr; row-gap: 0; }
  .grid .card { flex-direction: row; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .grid .card .cover { width: 96px; height: 96px; aspect-ratio: auto; flex-shrink: 0; }
  .grid .card .cover .letter { font-size: 110px; }
  .grid .card .cover .badge { display: none; }
  .card h3 { font-size: 22px; }
  .card .when { display: block; }
  .row, .row.compact { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; }
  .row .dn { flex-direction: column; gap: 0; grid-row: span 3; }
  .row .dn b { font-size: 32px; }
  .row .tm { font-size: 15px; }
  .row.compact .tm { grid-row: span 3; align-self: start; padding-top: 4px; }
  .row .dn { align-self: start; }
  .row .pr { font-size: 15px; }
  .buy { flex-direction: row; align-items: center; justify-content: space-between; }
  .buy a { height: 40px; padding: 0 16px; font-size: 14px; }
  .trow { grid-template-columns: 88px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 12px 0; }
  .trow .thumb { grid-row: span 3; }
  .trow .title { font-size: 21px; }
  .trow .sub { font-size: 14px; }
  .trow .pr, .trow .buy { grid-column: 2; }
  .trow .pr { font-size: 15px; }
  .thumb .letter { font-size: 80px; top: -12px; }
  .buy { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
  .promo-note { flex-direction: column; align-items: flex-start; }
  .lead { padding: 16px 0 32px; }
  .lead h1 { font-size: 44px; }
  .lead .cover .letter { font-size: 260px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cta { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .list2 { grid-template-columns: 1fr; }
  .authors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .authors a { min-height: 110px; padding: 16px; }
  .authors b { font-size: 24px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip { flex-shrink: 0; }
  .ftr .wrap { flex-direction: column; }
}
@media (min-width: 761px) { .card .when { display: none; } }
