:root {
  --accent: #8b1e3f;
  --accent-dark: #6d1832;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e2dd;
  --bg: #faf9f7;
  --card: #ffffff;
  --ok: #1d7a4f;
  --warn: #b06000;
  --bad: #a13030;
  /* брендовые мягкие тинты (переопределяются в тёмной теме) */
  --accent-soft: #f3eef0;
  --accent-soft-line: #e3d6db;
  --on-accent: #ffffff;
  /* шкала отступов / радиусы / тени / шрифты */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --shadow-1: 0 1px 3px rgba(0,0,0,.06);
  --shadow-2: 0 4px 14px rgba(0,0,0,.10);
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --border-radius-lg: 12px;
  /* цветные плейсхолдеры (постеры/коллажи/леттермарки) — тон по --h */
  --ph-bg-s: 42%; --ph-bg-l: 88%; --ph-fg-l: 30%;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #d76a86;
    --accent-dark: #e890a4;
    --ink: #ece8e2;
    --muted: #a8a39a;
    --line: #322d27;
    --bg: #15120f;
    --card: #1e1b16;
    --ok: #5dca8f;
    --warn: #e3b34a;
    --bad: #ef9595;
    --accent-soft: #2c2126;
    --accent-soft-line: #3d2d33;
    --on-accent: #1a1410;
    --shadow-1: 0 1px 3px rgba(0,0,0,.4);
    --shadow-2: 0 4px 14px rgba(0,0,0,.5);
    /* тёмная тема: приглушаем плейсхолдеры (тёмный фон, светлая буква) */
    --ph-bg-s: 26%; --ph-bg-l: 25%; --ph-fg-l: 70%;
  }
}
html { scroll-padding-top: 80px; }
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 6px 0; }
.logo { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.3px; flex: 0 0 auto; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.menu { position: relative; flex: 0 0 auto; }
.menu > summary { list-style: none; cursor: pointer; display: none; }
.menu > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: inline-block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; } .burger::after { top: 7px; }
.nav { display: flex; gap: 16px; }
.nav a { color: var(--ink); font-weight: 500; }
.nav a[aria-current="page"] { color: var(--accent); }
.header-search { position: relative; margin-left: auto; display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 20px; background: var(--bg);
  max-width: 320px; flex: 1 1 180px; }
.header-search input { border: 0; background: transparent; padding: 8px 12px;
  font-size: 14px; color: var(--ink); width: 100%; min-width: 0; outline: none; }
.header-search button { border: 0; background: transparent; color: var(--muted);
  padding: 0 12px; cursor: pointer; display: flex; align-items: center; min-height: 44px; }
.header-search button:hover { color: var(--accent); }
.city-badge { color: var(--muted); font-size: 14px; border: 1px solid var(--line);
  border-radius: 16px; padding: 2px 12px; flex: 0 0 auto; }

/* live-подсказки поиска (Фаза 7) */
.suggest-box { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-2); padding: 6px; max-height: 70vh; overflow-y: auto; min-width: 260px; }
.sg-group { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 8px 10px 4px; }
.sg-item { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 10px;
  border-radius: 8px; color: var(--ink); }
.sg-item:hover, .sg-item:focus-visible { text-decoration: none; background: var(--accent-soft); }
.sg-name { font-size: 14px; }
.sg-sub { font-size: 12px; color: var(--muted); margin-left: auto; white-space: nowrap; }

h1 { font-size: 26px; line-height: 1.25; margin: 24px 0 6px; letter-spacing: -.3px; }
.lead { color: var(--muted); margin: 0 0 20px; }
h2 { font-size: 20px; margin: 28px 0 12px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 18px; font-size: 14px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.chip:hover { text-decoration: none; border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip.scenario { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent-dark); font-weight: 500; }
.chip.scenario:hover { border-color: var(--accent); }
.chip.scenario.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.tag-pill { display: inline-block; padding: 4px 12px; border-radius: 16px; font-size: 14px;
  background: var(--accent-soft); color: var(--accent-dark); border: 1px solid var(--accent-soft-line); }
.tag-pill:hover { text-decoration: none; border-color: var(--accent); }

.filter-axis { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; flex-wrap: wrap; }
.filter-axis .chips { margin: 0; }
.axis-label { font-size: 12px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; flex: 0 0 auto; min-width: 56px; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 18px; }
.chip-active { background: var(--accent-soft); border-color: var(--accent-soft-line); color: var(--accent-dark); }
.chip-active span { opacity: .55; margin-left: 3px; }
.chip-active:hover { border-color: var(--accent); }
.chip-reset { color: var(--muted); }
.chip-n { font-size: 11px; opacity: .6; font-weight: 400; margin-left: 2px; }
.chip.scenario.active .chip-n { opacity: .85; }

/* лента конкретных дат (Фаза 11) */
.filter-axis .date-strip { margin: 0; }
.date-strip { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px;
  -webkit-overflow-scrolling: touch; flex: 1 1 100%; }
.datechip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; min-width: 46px; min-height: 48px; padding: 4px 8px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card);
  color: var(--ink); line-height: 1.15; }
.datechip:hover { text-decoration: none; border-color: var(--accent); }
.datechip.active { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dc-wd { font-size: 11px; color: var(--muted); }
.datechip.active .dc-wd { color: var(--on-accent); }
.dc-day { font-size: 16px; font-weight: 600; }

/* пагинация «показать ещё» (Фаза 11) */
.more-row { display: flex; align-items: center; gap: 14px; justify-content: center; margin: 26px 0 8px; flex-wrap: wrap; }
.more-count { font-size: 13px; color: var(--muted); }
.more-btn { display: inline-block; min-height: 44px; padding: 11px 24px; border: 1px solid var(--accent);
  border-radius: var(--r); color: var(--accent); font-weight: 500; background: var(--card); }
.more-btn:hover { text-decoration: none; background: var(--accent-soft); }

/* хлебные крошки + SEO-лендинги (Фаза 11) */
.breadcrumbs { font-size: 13px; color: var(--muted); margin: 16px 0 2px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span[aria-current] { color: var(--ink); }
.bc-sep { opacity: .5; }
.afisha-count { font-size: 14px; margin: 2px 0 14px; }
.afisha-allink { margin: 2px 0 16px; }

/* шеринг + календарь (Фаза 9) */
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
.share-btn { min-height: 40px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.share-btn:hover { border-color: var(--accent); }
.share-net { font-size: 13px; color: var(--muted); padding: 6px 8px;
  min-height: 40px; display: inline-flex; align-items: center; }
.share-net:hover { color: var(--accent); }
.ics-link { display: inline-flex; align-items: center; min-height: 36px; font-size: 12px;
  color: var(--muted); margin-top: 4px; }
.ics-link:hover { color: var(--accent); }

/* редакционный слой (Фаза 10) */
.editorial-intro { font-size: 16px; line-height: 1.7; max-width: 720px; margin: 8px 0 18px; }
.editorial-intro p { margin: 0 0 10px; }
.editorial-intro p:last-child { margin-bottom: 0; }
.item-note { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 7px 2px 0;
  padding-left: 9px; border-left: 2px solid var(--accent-soft-line); border-radius: 0; }
.editorial-note { background: var(--accent-soft); border: 1px solid var(--accent-soft-line);
  border-radius: var(--r-lg); padding: 16px 18px; }
.editorial-note h2 { margin-top: 0; }
.editorial-note-body { line-height: 1.7; }
.editorial-note-body p { margin: 0 0 10px; }
.editorial-note-body p:last-child { margin-bottom: 0; }

/* витрина «по настроению» на главной (Фаза 10) */
.mood-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mood-tile { display: flex; flex-direction: column; gap: 4px; background: var(--accent-soft);
  border: 1px solid var(--accent-soft-line); border-radius: var(--r); padding: 14px 16px;
  color: var(--accent-dark); transition: border-color .18s ease, transform .1s ease; }
.mood-tile:hover { text-decoration: none; border-color: var(--accent); }
.mood-tile:active { transform: scale(.985); }
.mood-name { font-size: 16px; font-weight: 500; }
.mood-intro { font-size: 13px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* подборка: hero-коллаж обложек (Фаза 12) */
.collection-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; aspect-ratio: 24/7;
  border-radius: var(--r-lg); overflow: hidden; margin: 8px 0 14px; background: var(--accent-soft); }
.collection-hero > * { overflow: hidden; }
.collection-hero .poster-img, .collection-hero .poster-ph { width: 100%; height: 100%; object-fit: cover; }
.collection-hero .poster-ph span { font-size: 30px; }

/* постерный тайл показа: афиша/жанр/сценарий (Фаза 12) — картинка + время сеанса + билеты */
.ptile { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; }
.ptile:hover { box-shadow: var(--shadow-2); border-color: var(--accent-soft-line); }
.ptile-poster { position: relative; aspect-ratio: 2/3; background: var(--accent-soft); }
.ptile-poster-link { display: block; width: 100%; height: 100%; }
.ptile-poster .poster-img, .ptile-poster .poster-ph { width: 100%; height: 100%; object-fit: cover; }
.ptile-time { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.66); color: #fff;
  font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.ptile-pk { position: absolute; left: 8px; bottom: 8px; background: var(--accent); color: var(--on-accent);
  font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.ptile-body { padding: 8px 10px 11px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ptile-title { font-size: 14px; font-weight: 500; line-height: 1.25; color: var(--ink); }
.ptile-title:hover { color: var(--accent); text-decoration: none; }
.ptile-meta { font-size: 12px; color: var(--muted); }
.ptile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 6px; }
.ptile-price { font-size: 13px; font-weight: 500; }
.ptile-buy { font-size: 12px; font-weight: 500; background: var(--accent); color: var(--on-accent);
  padding: 6px 12px; border-radius: 7px; min-height: 36px; display: inline-flex; align-items: center; }
.ptile-buy:hover { text-decoration: none; background: var(--accent-dark); }

/* слой персон: аватар-леттермарк, hero, чипы состава (Фаза 13) */
.pavatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%; font-family: var(--font-serif); font-weight: 500;
  font-size: 15px; line-height: 1; background: hsl(var(--h, 340) var(--ph-bg-s) var(--ph-bg-l));
  color: hsl(var(--h, 340) 45% var(--ph-fg-l)); }
.pavatar-lg { width: 88px; height: 88px; font-size: 34px; }
.person-hero { display: flex; gap: 18px; align-items: center; margin: 24px 0 12px; }
.person-hero-main { min-width: 0; }
.person-hero-main h1 { margin: 0 0 4px; }
.person-roles { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.pchips { display: flex; flex-wrap: wrap; gap: 10px; }
.pchip { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 16px 5px 5px; color: var(--ink); }
.pchip:hover { text-decoration: none; border-color: var(--accent-soft-line); box-shadow: var(--shadow-1); }
.pchip-text { display: flex; flex-direction: column; line-height: 1.2; }
.pchip-name { font-size: 14px; font-weight: 500; }
.pchip-role { font-size: 12px; color: var(--muted); }

/* свёртка фильтров афиши в тоггл на мобайле (Фаза 12) */
.filters-collapse > summary { list-style: none; display: none; }
.filters-collapse > summary::-webkit-details-marker { display: none; }

/* image-forward: мобильные доработки (Фаза 12) */
@media (max-width: 760px) {
  .lead-hide-mobile { display: none; }
  .row-scroll > .scard { flex: 0 0 44vw; width: 44vw; }
  .collection-hero { aspect-ratio: 16/7; grid-template-columns: repeat(3, 1fr); margin-left: -16px; margin-right: -16px; border-radius: 0; }
  .collection-hero > *:nth-child(n+4) { display: none; }
  .filters-collapse > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px;
    padding: 7px 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card);
    color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; margin: 0 0 12px; }
  .filters-collapse > summary::before { content: "\2699"; }
  .filters-collapse[open] > summary { border-color: var(--accent); color: var(--accent); }
  .filters-collapse .filters { display: none; }
  .filters-collapse[open] .filters { display: flex; }
}

/* микровзаимодействия (Фаза 9): мягкие переходы + отклик на нажатие */
.scard, .ccard, .tcard, .card-link, .perf, .chip, .tile, .buy, .fav-btn, .more-btn,
.datechip, .tab, .sg-item, .tag-pill, .share-btn, .filters select, .header-search,
.collection-card { transition: border-color .18s ease, box-shadow .18s ease,
  background-color .18s ease, color .15s ease, transform .1s ease; }
.scard:active, .ccard:active, .tcard:active, .tile:active, .chip:active, .buy:active,
.fav-btn:active, .more-btn:active, .datechip:active, .share-btn:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important;
    scroll-behavior: auto !important; }
}
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.filters select {
  padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); font-size: 14px; color: var(--ink); max-width: 46vw;
}
.filters button {
  padding: 7px 14px; border: 0; border-radius: 8px; background: var(--accent);
  color: var(--on-accent); font-size: 14px; cursor: pointer;
}

.day-h::first-letter { text-transform: uppercase; }
.day-h {
  font-size: 15px; font-weight: 600; color: var(--muted);
  margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.perf-list { display: flex; flex-direction: column; gap: 10px; }
.perf {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px;
}
.perf-poster { flex: 0 0 auto; width: 76px; aspect-ratio: 2/3; border-radius: var(--r-sm);
  overflow: hidden; background: var(--accent-soft); }
.perf-poster .poster-ph span { font-size: 30px; }
.perf-time { font-size: 18px; font-weight: 700; min-width: 56px; }
.perf-body { flex: 1; min-width: 0; }
.perf-title { font-size: 17px; font-weight: 600; }
.perf-meta { color: var(--muted); font-size: 14px; margin-top: 2px; }
.perf-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.perf-tags span { font-size: 11px; padding: 1px 8px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark); }
.perf-side { text-align: right; min-width: 110px; }
.scard-wrap { display: flex; flex-direction: column; gap: 6px; }
.scard-remove { margin: 0; }
.scard-remove .link-btn { font-size: 12px; color: var(--muted); }
.price { font-weight: 600; white-space: nowrap; }
.buy {
  display: inline-block; margin-top: 6px; padding: 7px 14px; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600;
}
.buy:hover { background: var(--accent-dark); text-decoration: none; }
.badge { display: inline-block; font-size: 12px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); margin-left: 6px; vertical-align: 2px; }
.t-status { font-size: 13px; margin-top: 4px; }
.t-available { color: var(--ok); }
.t-few_left { color: var(--warn); }
.t-sold_out, .t-not_on_sale { color: var(--bad); }
.t-unknown { color: var(--muted); }
.pushkin { font-size: 12px; color: #2456a4; }
.pitch { font-size: 13px; color: var(--muted); margin-top: 4px; }
.venue-list { margin: 6px 0 0; padding-left: 18px; }
.venue-list li { margin: 4px 0; color: var(--ink); }
.map-link { font-size: 13px; margin-left: 6px; white-space: nowrap; }
.search-box { display: flex; gap: 8px; margin: 0 0 8px; }
.search-box input { flex: 1; padding: 9px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 15px; background: var(--card); color: var(--ink); }
.search-box button { padding: 9px 16px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 15px; cursor: pointer; }
.acc-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.acc-badge { font-size: 12px; padding: 2px 9px; border-radius: 12px;
  background: #e8f1ea; color: #1d5e3f; border: 1px solid #cfe3d6; }
.feedback-form { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin-top: 16px; }
.feedback-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.feedback-form input, .feedback-form select, .feedback-form textarea {
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px;
  background: var(--card); color: var(--ink); font-family: inherit; }
.feedback-form button { align-self: flex-start; padding: 10px 20px; border: 0; border-radius: 8px;
  background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.feedback-form .req { color: var(--accent); }
.form-error { color: var(--bad); }
.footer-links { margin-top: 8px; }
.nav-account { color: var(--ink); font-weight: 500; }
.fav-form, .follow-form { margin: 14px 0 4px; }
.fav-btn { display: inline-block; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--accent);
  background: var(--card); color: var(--accent); font-size: 15px; font-weight: 600; cursor: pointer; }
.fav-btn:hover { text-decoration: none; }
.fav-btn.on { background: var(--accent); color: var(--on-accent); }

/* табы кабинета (Фаза 7) */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 18px 0 4px; }
.tab { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 9px 14px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.fav-hint { font-size: 14px; color: var(--muted); margin: 14px 0 4px; }
.consent { flex-direction: row !important; align-items: flex-start; gap: 8px; font-size: 14px; }
.consent input { width: auto; flex: none; margin-top: 2px; }
.account-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.link-btn { background: none; border: 0; color: var(--accent); cursor: pointer; font-size: 14px; padding: 0; }
.reviews { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.review-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.stars { color: #c79a2e; letter-spacing: 1px; }
.review-status { color: var(--muted); font-size: 14px; }
.review-form { max-width: 520px; }
.poster { margin: 12px 0 16px; max-width: 420px; }
.poster img { width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover;
  border-radius: var(--border-radius-lg, 12px); display: block; }
.poster figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.show-descr { white-space: pre-line; line-height: 1.7; margin: 12px 0 4px; }
.descr-source { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

/* страница спектакля: двухколоночный hero + липкая CTA (Фаза 5) */
/* hero спектакля — image-forward (Фаза 12) */
.show-hero { display: grid; grid-template-columns: 360px 1fr; gap: 28px; margin: 20px 0 8px; align-items: start; }
.hero-poster { position: sticky; top: 72px; }
.hero-poster .poster { margin: 0; max-width: none; }
.hero-poster .poster img { box-shadow: var(--shadow-2); }
.hero-ph { aspect-ratio: 2/3; border-radius: var(--r-lg); flex-direction: column; gap: 10px;
  padding: 18px; text-align: center; }
.hero-ph .hero-ph-letter { font-family: var(--font-serif); font-size: 68px; line-height: 1; opacity: .85;
  color: hsl(var(--h, 340) 45% var(--ph-fg-l)); }
.hero-ph .hero-ph-title { font-family: var(--font-serif); font-size: 19px; line-height: 1.25; opacity: .92;
  color: hsl(var(--h, 340) 45% var(--ph-fg-l)); }
.hero-fav-form { margin: 0; }
.hero-fav { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; text-shadow: 0 0 3px rgba(0,0,0,.6); }
.hero-fav.on { background: var(--accent); color: var(--on-accent); }
.hero-fav:hover { text-decoration: none; }
.hero-main h1 { margin-top: 0; }
.hero-pitch { font-size: 17px; line-height: 1.5; margin: 12px 0 14px; }
.buy-box { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px;
  padding: 14px 16px; background: var(--accent-soft); border: 1px solid var(--accent-soft-line);
  border-radius: var(--r-lg); }
.buy-box-price { font-size: 20px; font-weight: 600; color: var(--accent-dark); }
.buy-primary { font-size: 15px; padding: 10px 20px; margin: 0; }
.fav-count { font-size: 13px; color: var(--muted); }
.show-content { max-width: 720px; }

.sticky-buy { display: none; }
@media (max-width: 760px) {
  /* мобайл: постер во всю ширину, текст под ним */
  .show-hero { display: block; margin: 0 0 4px; }
  .hero-poster { position: relative; top: auto; margin: 0 -16px; }
  .hero-poster .poster { margin: 0; }
  .hero-poster .poster img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 0; box-shadow: none; }
  .hero-poster figcaption { padding: 6px 16px 0; }
  .hero-ph { aspect-ratio: 4 / 5; border-radius: 0; }
  .hero-ph .hero-ph-letter { font-size: 76px; }
  .hero-main { padding-top: 14px; }
  .show-hero .share .share-net { display: none; }  /* на мобайле — только системная «Поделиться» */
  main.wrap { padding-bottom: 76px; }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    align-items: center; justify-content: space-between; gap: 12px;
    background: var(--accent); color: var(--on-accent); padding: 11px 18px;
    box-shadow: 0 -2px 14px rgba(0,0,0,.18); }
  .sticky-buy:hover { text-decoration: none; }
  .sticky-buy-price { font-weight: 600; font-size: 16px; }
  .sticky-buy-cta { background: var(--on-accent); color: var(--accent);
    padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 14px; }
}
.cab-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cab-nav a { font-size: 14px; padding: 6px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.cab-nav a:hover { border-color: var(--accent); text-decoration: none; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--ink); }
.kpi-card:hover { text-decoration: none; }
.kpi-warn { border-color: #e3b34a; background: #fdf6e6; }
.kpi-num { font-size: 28px; font-weight: 700; }
.kpi-label { color: var(--muted); font-size: 14px; margin-top: 2px; }
.cab-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cab-table th, .cab-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cab-table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.cab-table td.warn { color: var(--bad); }
.changes-cell { font-family: var(--font-mono, monospace); font-size: 12px; color: var(--muted); max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.saved-banner { background: #e8f1ea; color: #1d5e3f; border: 1px solid #cfe3d6; border-radius: 8px; padding: 10px 14px; }
.verified { color: var(--ok); }
.verify-form { margin: 8px 0 16px; }
.verify-form button { padding: 8px 16px; border: 1px solid var(--ok); background: #e8f1ea; color: #1d5e3f; border-radius: 8px; cursor: pointer; font-size: 14px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }

/* постерная сетка карточек спектакля (Фаза 2) */
.cards-posters { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.scard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; color: var(--ink); }
.scard:hover { text-decoration: none; box-shadow: var(--shadow-2); border-color: var(--accent-soft-line); }
.scard-poster { position: relative; aspect-ratio: 2/3; background: var(--accent-soft); }
.poster-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: hsl(var(--h, 340) var(--ph-bg-s) var(--ph-bg-l)); }
.poster-ph span { font-family: var(--font-serif); font-size: 40px;
  color: hsl(var(--h, 340) 45% var(--ph-fg-l)); opacity: .85; }
.scard-body { padding: 9px 11px 12px; display: flex; flex-direction: column; gap: 1px; }
.scard-theatre { font-size: 11px; color: var(--muted); }
.scard-title { font-size: 14px; font-weight: 500; line-height: 1.25; }
.scard-meta { font-size: 12px; color: var(--muted); }
.scard-price { font-size: 13px; font-weight: 500; margin-top: 4px; }
.scard-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.scard-tags span { font-size: 11px; padding: 1px 7px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-dark); }
.card h3 { margin: 0 0 4px; font-size: 17px; }
.card .muted { color: var(--muted); font-size: 14px; }
.card-link { display: block; color: var(--ink); }
.card-link:hover { text-decoration: none; border-color: var(--accent-soft-line); box-shadow: var(--shadow-1); }

/* главная-дискавери: заголовки секций, карусель, жанровые плитки (Фаза 6) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { margin-bottom: 6px; }
.more-link { font-size: 14px; color: var(--accent); white-space: nowrap; flex: 0 0 auto; }
.row-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 2px 0 10px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.row-scroll > .scard { flex: 0 0 158px; width: 158px; scroll-snap-align: start; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--r); background: var(--accent-soft); border: 1px solid var(--accent-soft-line);
  color: var(--accent-dark); font-weight: 500; font-size: 15px; }
.tile:hover { text-decoration: none; border-color: var(--accent); }

/* подборки-витрины: коллаж обложек (Фаза 6) */
.cards-collections { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.ccard { display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; color: var(--ink); }
.ccard:hover { text-decoration: none; box-shadow: var(--shadow-2); border-color: var(--accent-soft-line); }
.ccard-collage { position: relative; aspect-ratio: 16/9; background: var(--accent-soft);
  display: grid; }
.ccard-collage.has-covers { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }
.ccard-collage > .poster-img, .ccard-collage > .poster-ph { width: 100%; height: 100%; object-fit: cover; }
.ccard-collage .poster-ph span { font-size: 30px; }
.ccard-count { position: absolute; right: 8px; bottom: 8px; font-size: 12px; font-weight: 500;
  background: rgba(0,0,0,.62); color: #fff; padding: 2px 9px; border-radius: 12px; }
.ccard-body { padding: 11px 14px 14px; }
.ccard-title { font-size: 16px; font-weight: 500; }
.ccard-descr { font-size: 13px; color: var(--muted); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* театры: плитки с леттермарком + hero (Фаза 7) */
.cards-theatres { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tcard { display: flex; gap: 14px; align-items: center; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px; color: var(--ink); }
.tcard:hover { text-decoration: none; box-shadow: var(--shadow-1); border-color: var(--accent-soft-line); }
.tcard-mark { flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif);
  font-size: 26px; background: hsl(var(--h, 340) var(--ph-bg-s) var(--ph-bg-l));
  color: hsl(var(--h, 340) 45% var(--ph-fg-l)); }
.tcard-body { min-width: 0; }
.tcard-name { font-size: 16px; font-weight: 500; }
.tcard-addr { font-size: 13px; }
.theatre-hero { display: flex; gap: 18px; align-items: center; margin: 24px 0 10px; }
.theatre-hero-mark { width: 72px; height: 72px; font-size: 36px; flex: 0 0 auto; }
.theatre-hero-main h1 { margin: 0 0 6px; }
.theatre-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted);
  font-size: 14px; margin-bottom: 6px; }
.theatre-facts a { color: var(--accent); }

.kv { color: var(--muted); font-size: 15px; margin: 2px 0; }
.kv b { color: var(--ink); font-weight: 600; }
.section { margin-bottom: 32px; }
.checked-at { color: var(--muted); font-size: 13px; margin-top: 16px; }
.empty { color: var(--muted); padding: 24px 0; }

.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 20px 0 32px; color: var(--muted); font-size: 14px; }

/* шапка: бургер-меню на узких экранах (Фаза 4) */
@media (max-width: 760px) {
  .menu > summary { display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; }
  .menu .nav { display: none; position: absolute; top: calc(100% + 8px); left: 0;
    flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line);
    border-radius: 10px; padding: 8px 14px; box-shadow: var(--shadow-2); min-width: 168px; z-index: 60; }
  .menu[open] .nav { display: flex; }
  .header-search { flex-basis: 120px; }
  .city-badge { display: none; }
}

@media (max-width: 600px) {
  .perf { flex-wrap: wrap; }
  .perf-side { text-align: left; width: 100%; display: flex; align-items: center; gap: 12px; }
  .buy { margin-top: 0; }
  h1 { font-size: 22px; }
}

/* доступность и тач-зоны (Фаза 0) */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.buy, .filters button, .search-box button, .feedback-form button, .fav-btn, .verify-form button {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
}
.chip, .nav a, .nav-account { min-height: 36px; display: inline-flex; align-items: center; }

/* тёмная тема: оставшиеся жёсткие тинты */
@media (prefers-color-scheme: dark) {
  .acc-badge { background: #16332a; color: #7fd6ac; border-color: #1f4d3c; }
  .saved-banner { background: #16332a; color: #7fd6ac; border-color: #1f4d3c; }
  .kpi-warn { background: #2e2510; border-color: #5a4a1e; }
  .verify-form button { background: #16332a; color: #7fd6ac; border-color: #1f4d3c; }
  .pushkin { color: #7db0ec; }
  .stars { color: #e3b34a; }
}
