/* Афиша Луганск — редизайн 2026/27 «Кинематографичная ночь».
   Палитра: prism dark (WGSN FW26/27) + Cloud Dancer (Pantone 2026) +
   шампанское золото / Amber Haze. Триколор — только как художественный мазок.
   Mobile-first, одна таблица стилей. */

:root {
  --bg: #0b0a0d;
  --bg-2: #111015;
  --surface: #17151c;
  --surface-2: #1f1c25;
  --line: rgba(240, 237, 230, .08);
  --line-2: rgba(240, 237, 230, .16);
  --text: #f0ede6;          /* Cloud Dancer */
  --muted: #a39e95;
  --gold: #e3b566;          /* шампанское */
  --gold-2: #f2a65a;        /* Amber Haze */
  --gold-grad: linear-gradient(100deg, #f6dca3 0%, #e3b566 38%, #c98b3c 70%, #f2c27a 100%);
  --ink-on-gold: #1a1206;
  --flag-w: #f3f0ea;
  --flag-b: #3366f0;
  --flag-r: #ef2f3f;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .85);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --t-fast: 180ms;
  --t: 520ms;
  --gutter: 16px;
  --tabbar-h: 64px;
  --display: "Oranienbaum", "Playfair Display", Georgia, serif;
  --sans: "Manrope", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

  --c-cinema: #7aa7ff;
  --c-theatre: #2bb3a3;     /* Transformative Teal */
  --c-circus: #f2a65a;
  --c-philharmonic: #b79cff;
  --c-concert: #ff6f91;     /* Electric Fuchsia, приглушённый */
  --c-kids: #ffd166;
  --c-museum: #8fd3ff;
  --c-city: #c9c3b8;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--sans);
  padding-bottom: calc(var(--tabbar-h) + 20px + env(safe-area-inset-bottom));
}
/* Световые блики (как засветка плёнки) и зерно */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(242, 166, 90, .13), transparent 60%),
    radial-gradient(800px 520px at 0% 30%, rgba(51, 102, 240, .10), transparent 60%),
    radial-gradient(700px 500px at 80% 100%, rgba(239, 47, 63, .07), transparent 60%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Фон всего сайта: коллаж Луганска, приглушённый под палитру, неподвижный при прокрутке */
.backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url("/static/design-assets/bg-luhansk-1672.webp") center 30% / cover no-repeat; opacity: .16; filter: blur(3px) saturate(.8); }
.backdrop::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,10,13,.45) 0%, rgba(11,10,13,.82) 45%, rgba(11,10,13,.94) 100%); }
@media (max-width: 640px) { .backdrop { background-image: url("/static/design-assets/bg-luhansk-mobile.webp"); } }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1; margin: 0; letter-spacing: .01em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(30px, 8vw, 58px); }
h2 { font-size: clamp(26px, 6vw, 44px); }
.eyebrow { font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.muted { color: var(--muted); font-size: 13px; }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink-on-gold); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }

/* ---------- Шапка: стеклянная «таблетка» ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; padding: 10px 0; transition: background var(--t) var(--ease); }
.top.is-scrolled { background: linear-gradient(180deg, rgba(11,10,13,.92), rgba(11,10,13,.6)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top__in { display: flex; align-items: center; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo__mono {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font: 400 26px/1 var(--display); color: var(--ink-on-gold); background: var(--gold-grad);
  box-shadow: 0 8px 22px -10px rgba(227,181,102,.7), inset 0 1px 0 rgba(255,255,255,.5);
}
.logo__mono::after { /* тонкая линия триколора под монограммой */
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -6px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--flag-w) 0 33.3%, var(--flag-b) 33.3% 66.6%, var(--flag-r) 66.6%);
}
.logo__text { display: grid; line-height: .95; }
.logo__text b { font: 400 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.logo__text small { font: 600 9px/1.5 var(--sans); letter-spacing: .08em; color: var(--gold); white-space: nowrap; }
@media (max-width: 420px) { .logo__text small { display: none; } }
.top__nav {
  display: none; margin-inline: auto; padding: 5px; gap: 2px; border-radius: 999px;
  background: rgba(31, 28, 37, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.top__nav a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13px; letter-spacing: .02em; transition: color var(--t-fast), background var(--t-fast); }
.top__nav a:hover { color: var(--text); }
.top__nav a[aria-current] { color: var(--ink-on-gold); background: var(--gold-grad); }
.search {
  margin-left: auto; flex: 1; max-width: 300px; min-width: 0;
  display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px;
  background: rgba(31, 28, 37, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: 17px; height: 17px; flex: none; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input { all: unset; flex: 1; min-width: 0; font-size: 14px; color: var(--text); }
.search input::placeholder { color: var(--muted); }

/* ---------- Герой: кинематографичная карусель ---------- */
.hero { position: relative; margin-top: 4px; }
.hero__viewport { overflow: hidden; overflow: clip; }
.hero__track { display: flex; touch-action: pan-y pinch-zoom; }
.slide {
  position: relative; flex: 0 0 calc(100% - 2 * var(--gutter)); margin-left: var(--gutter); min-width: 0;
  aspect-ratio: 4 / 5.2; max-height: 620px; border-radius: var(--radius); overflow: hidden; overflow: clip; isolation: isolate;
  background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
  border: 1px solid var(--line);
}
.slide:last-child { margin-right: var(--gutter); }
.slide__bg {
  position: absolute; inset: -60px; z-index: -3; background-size: cover; background-position: center;
  filter: blur(34px) saturate(1.25) brightness(.5); transform: scale(1.15);
}
.slide__poster {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center 22%;
  transform: scale(1.06); transition: transform 7s linear;
}
.slide.is-active .slide__poster { transform: scale(1); }
.slide::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,13,.35) 0%, transparent 22%, transparent 42%, rgba(11,10,13,.82) 66%, #0b0a0d 100%),
    radial-gradient(120% 70% at 50% 120%, rgba(242,166,90,.18), transparent 60%);
}
.slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 24px; }
.slide__body > * { opacity: 0; transform: translateY(16px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
.slide.is-active .slide__body > * { opacity: 1; transform: none; }
.slide.is-active .slide__body > :nth-child(2) { transition-delay: 90ms; }
.slide.is-active .slide__body > :nth-child(3) { transition-delay: 180ms; }
.slide.is-active .slide__body > :nth-child(4) { transition-delay: 270ms; }
.slide__title {
  font: 400 clamp(34px, 9.5vw, 76px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em;
  margin: 12px 0 10px; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow: clip;
}
.slide__body .badge { align-self: flex-start; }
.slide__title--long { font-size: clamp(28px, 7vw, 54px); }
.slide__meta { color: #d9d3c7; font-size: 14px; }
.slide__meta b { color: var(--gold); font-weight: 600; }
.slide__cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.hero__ui { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.hero__dots { display: flex; gap: 6px; }
.hero__dot { width: 18px; height: 3px; padding: 0; border: 0; border-radius: 3px; background: var(--line-2); overflow: hidden; overflow: clip; cursor: pointer; position: relative; transition: width var(--t) var(--ease); }
.hero__dot.is-active { width: 48px; }
.hero__dot.is-active::after { content: ""; position: absolute; inset: 0; background: var(--gold-grad); transform-origin: left; animation: progress var(--autoplay, 5500ms) linear forwards; }
.hero.is-paused .hero__dot.is-active::after { animation-play-state: paused; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero__count { font: 400 18px/1 var(--display); color: var(--muted); letter-spacing: .1em; }
.hero__count b { color: var(--text); font-weight: 400; }
.hero__arrows { display: none; gap: 8px; }

/* ---------- Кадр города: настоящее фото Луганска с кино-цветокоррекцией ---------- */
.cityframe { position: relative; margin-top: 40px; isolation: isolate; overflow: hidden; overflow: clip; min-height: 420px; display: flex; align-items: end; }
.cityframe__photo {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%;
  transform: scale(1.08); transition: transform 1.6s var(--ease);
}
.cityframe.is-in .cityframe__photo { transform: scale(1); }
.cityframe::before { /* тёплая плёночная тонировка + виньетка + переход в фон страницы */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,13,.85) 0%, rgba(11,10,13,.05) 20%, rgba(11,10,13,.1) 50%, rgba(11,10,13,.88) 84%, rgba(11,10,13,.96) 100%),
    radial-gradient(90% 70% at 70% 35%, rgba(242,166,90,.22), transparent 65%),
    radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(0,0,0,.7) 100%);
  mix-blend-mode: normal;
}
.cityframe__body { padding-block: 190px 26px; }
/* Читаемость текста на фото: стеклянная подложка (размытие + тёмная тонировка) вместо теней у букв */
.glass {
  max-width: 560px; padding: 22px 22px 20px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(17,16,21,.78), rgba(11,10,13,.62));
  border: 1px solid rgba(240,237,230,.12);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.9);
}
.cityframe__body h1 { margin-top: 12px; max-width: 13ch; }
.cityframe__body p { margin: 12px 0 0; color: #e4ded3; max-width: 44ch; }
.cityframe__credit { position: absolute; right: 12px; bottom: 8px; font-size: 10px; color: rgba(240,237,230,.45); }
.tricolor-line { display: block; width: 96px; height: 3px; margin-top: 22px; border-radius: 3px;
  background: linear-gradient(90deg, var(--flag-w) 0 33.3%, var(--flag-b) 33.3% 66.6%, var(--flag-r) 66.6%); opacity: .9; }

/* ---------- Кнопки, чипы, бейджи ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 14px; letter-spacing: .02em;
  background: var(--gold-grad); color: var(--ink-on-gold);
  box-shadow: 0 10px 30px -12px rgba(227, 181, 102, .6);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), filter var(--t-fast);
}
.btn:hover { filter: brightness(1.06); box-shadow: 0 14px 34px -12px rgba(227, 181, 102, .8); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: rgba(240,237,230,.06); color: var(--text); box-shadow: none; border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(31,28,37,.6); cursor: pointer; backdrop-filter: blur(8px);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { border-color: var(--gold); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px;
  border-radius: 999px; font: 700 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  background: rgba(11, 10, 13, .55); color: var(--text); border: 1px solid var(--line-2); backdrop-filter: blur(8px);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cat, var(--gold)); box-shadow: 0 0 10px var(--cat, var(--gold)); }
.badge--age { letter-spacing: .04em; }
.badge--age::before { display: none; }

.filters { position: sticky; top: 62px; z-index: 30; padding-block: 10px 12px; margin-top: 14px;
  background: linear-gradient(180deg, var(--bg) 75%, rgba(11,10,13,0)); }
.scroller {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); padding-block: 2px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 28px), transparent);
}
.scroller::-webkit-scrollbar { display: none; }
.scroller + .scroller { margin-top: 8px; }
.chip {
  flex: none; scroll-snap-align: start; display: inline-flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; color: var(--text);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.chip:hover { border-color: rgba(227,181,102,.5); }
.chip:active { transform: scale(.96); }
.chip[aria-selected="true"] { background: var(--gold-grad); color: var(--ink-on-gold); border-color: transparent; }
.chip i { font-style: normal; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.chip[aria-selected="true"] i { color: rgba(26,18,6,.7); }
.chip--day { flex-direction: column; justify-content: center; gap: 2px; height: 56px; min-width: 62px; padding: 0 12px; border-radius: 18px; line-height: 1; }
.chip--day b { font: 400 20px/1 var(--display); }
.chip--day small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.chip--day[aria-selected="true"] small { color: rgba(26,18,6,.75); }
.chip--day.is-empty { opacity: .4; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); box-shadow: 0 0 8px var(--cat); }

/* ---------- Лента ---------- */
.feed { margin-top: 18px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 10px 0 18px; }
.section-head .eyebrow { display: block; margin-bottom: 8px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; cursor: pointer;
}
/* Карточки видны всегда; мягкое проявление при прокрутке — там, где браузер умеет scroll-driven анимации. */
@supports (animation-timeline: view()) {
  .card { animation: card-in linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes card-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.card__media {
  position: relative; aspect-ratio: 3 / 4.1; border-radius: var(--radius-sm); overflow: hidden; overflow: clip; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover .card__media { border-color: rgba(227,181,102,.45); box-shadow: 0 20px 40px -20px rgba(227,181,102,.35); }
.card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11,10,13,.85)); }
.card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08); filter: blur(12px) saturate(1.2);
  transition: opacity 800ms var(--ease), transform 1100ms var(--ease), filter 800ms var(--ease);
}
.card__media img.is-loaded { opacity: 1; transform: scale(1); filter: none; }
.card:hover .card__media img.is-loaded { transform: scale(1.045); }
.card__media .badge { position: absolute; top: 9px; left: 9px; z-index: 2; height: 24px; padding: 0 9px; font-size: 9.5px; letter-spacing: .1em;
  max-width: calc(100% - 64px); overflow: hidden; overflow: clip; white-space: nowrap; }
.card__media .badge--age { left: auto; right: 9px; }
.card__date { position: absolute; left: 11px; bottom: 10px; z-index: 2; line-height: 1; }
.card__date b { display: block; font: 400 24px/1 var(--display); color: var(--text); }
.card__date span { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.card__body { padding: 11px 2px 0; }
.card__title { font: 700 15px/1.3 var(--sans); letter-spacing: 0; text-transform: none; margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow: clip; }
.card__venue { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; overflow: clip; text-overflow: ellipsis; }
.card__times { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.card__times span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line-2); color: #ddd6c9; }

.shimmer::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(227,181,102,.07) 50%, transparent 80%) var(--surface);
  background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
}
.shimmer.is-done::before { animation: none; opacity: 0; transition: opacity 500ms; }
@keyframes shimmer { to { background-position: -200% 0; } }
.noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center;
  font: 400 22px/1.05 var(--display); text-transform: uppercase; color: #e6dfd2;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in srgb, var(--cat) 35%, transparent), transparent 60%), var(--surface-2); }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- Кино ---------- */
.rail { margin-top: 48px; }
.rail__viewport { overflow: hidden; overflow: clip; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.rail__track { display: flex; gap: 12px; touch-action: pan-y pinch-zoom; }
.rail .card { flex: 0 0 46%; }
.cinema-times { margin-top: 7px; display: grid; gap: 3px; font-size: 12px; color: #ddd6c9; }
.cinema-times b { color: var(--gold); font-weight: 700; margin-right: 5px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Справочник ---------- */
.city { margin-top: 52px; }
.city__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.city__item {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, var(--surface-2), var(--surface)); border: 1px solid var(--line);
  font-weight: 700; font-size: 14px; transition: border-color var(--t-fast), transform var(--t-fast);
}
.city__item span { font-size: 20px; }
.city__item:hover { border-color: rgba(227,181,102,.45); }
.city__item:active { transform: scale(.97); }
.city__item--all { grid-column: 1 / -1; flex-direction: row; justify-content: center; color: var(--gold); }

.foot { position: relative; margin-top: 60px; padding: 34px 0 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; overflow: hidden; overflow: clip; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.foot nav a:hover { color: var(--gold); }

/* ---------- Нижняя навигация (телефон) ---------- */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  height: var(--tabbar-h); display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: 24px; background: rgba(23, 21, 28, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow);
}
.tabbar a { display: grid; place-items: center; align-content: center; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.tabbar a[aria-current] { color: var(--gold); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }

/* ---------- Подробности ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; align-items: end; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(5, 4, 7, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--t) var(--ease); }
.sheet__panel {
  position: relative; max-height: 92vh; overflow: auto; overscroll-behavior: contain;
  background: var(--bg-2); border-radius: 26px 26px 0 0; border: 1px solid var(--line-2);
  transform: translateY(100%); transition: transform 560ms var(--ease); padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.detail__media { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; overflow: clip; isolation: isolate; }
.detail__media .slide__bg { inset: -40px; }
.detail__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 1; filter: none; transform: none; }
.detail__body { padding: 20px 20px 28px; }
.detail__body h2 { font-size: clamp(30px, 7vw, 46px); margin: 14px 0 8px; }
.detail__venue { color: var(--muted); }
.detail__sessions { display: grid; gap: 8px; margin: 18px 0; }
.detail__day { display: flex; gap: 12px; align-items: baseline; padding: 11px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.detail__day b { min-width: 96px; font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.detail__day span { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.detail__day em { font-style: normal; font: 400 20px/1 var(--display); }
.detail__day small { color: var(--muted); font-size: 11.5px; margin: 0 6px 0 2px; }
.detail__note { font-size: 12px; color: var(--muted); border-left: 2px solid var(--gold); padding-left: 10px; margin-top: 18px; }

/* ---------- Планшет и компьютер ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 18px; }
  .rail .card { flex-basis: 28%; }
  .slide { aspect-ratio: 16 / 8.2; }
  .slide__poster { width: 40%; left: auto; right: 5%; object-position: center; filter: drop-shadow(0 30px 40px rgba(0,0,0,.7)); }
  .slide::after { background: linear-gradient(90deg, #0b0a0d 0, rgba(11,10,13,.88) 38%, rgba(11,10,13,.2) 70%, transparent), radial-gradient(60% 80% at 75% 50%, rgba(242,166,90,.16), transparent 70%); }
  .slide__body { right: auto; width: 58%; top: 0; display: flex; flex-direction: column; justify-content: center; padding: 44px; }
  .city__grid { grid-template-columns: repeat(6, 1fr); }
  .city__item--all { grid-column: auto; flex-direction: column; justify-content: end; }
  .sheet { align-items: center; justify-items: center; }
  .sheet__panel { width: min(920px, 94vw); border-radius: 28px; transform: translateY(26px) scale(.98); opacity: 0;
    transition: transform 460ms var(--ease), opacity 340ms var(--ease); display: grid; grid-template-columns: 1fr 1.1fr; }
  .sheet.is-open .sheet__panel { opacity: 1; transform: none; }
  .detail__media { aspect-ratio: auto; min-height: 100%; }
  .cityframe { min-height: 540px; }
  .cityframe__body { padding-block: 200px 56px; }
  .glass { padding: 30px 32px 26px; }
}
@media (min-width: 1000px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .top__nav { display: flex; }
  .top { padding: 14px 0; }
  .search { margin-left: 0; }
  .filters { top: 70px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail .card { flex-basis: 19%; }
  .hero__arrows { display: flex; }
  .hero { max-width: 1280px; margin-inline: auto; }
  .slide { max-height: 600px; }
}
@media (min-width: 1320px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* «Уменьшить движение»: оставляем мягкие проявления, убираем сдвиги и увеличения. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { animation: none; }
  .slide__body > *, .card__media img, .slide__poster, .sheet__panel { transform: none !important; }
  .card__media img { filter: none; }
  .shimmer::before { animation: none; }
}

/* ===================== Блоки рабочего сайта, возвращённые в редизайн ===================== */

/* Фильтры: даты + «Выбрать дату», категории, время/место/избранное */
.filters { background: linear-gradient(180deg, rgba(11,10,13,.96) 78%, rgba(11,10,13,0)); }
.filters__row { display: flex; gap: 8px; align-items: center; }
.filters__row .scroller { flex: 1; min-width: 0; margin-right: 0; }
.chip svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip--pick { height: 56px; border-radius: 18px; flex-direction: column; gap: 3px; font-size: 11px; padding: 0 12px; }
.filters__extra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.seg { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.seg button { flex: none; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; transition: background var(--t-fast), color var(--t-fast); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.select { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.select select { background: transparent; color: var(--text); border: 0; font: 600 13px var(--sans); max-width: 190px; padding: 6px; cursor: pointer; }
.select select option { background: var(--surface); }
.chip--fav[aria-pressed="true"] { background: rgba(239,47,63,.16); border-color: rgba(239,47,63,.5); }
.chip--fav[aria-pressed="true"] svg { fill: var(--flag-r); stroke: var(--flag-r); }
.link-btn { border: 0; background: none; color: var(--gold); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Месячный календарь: дни с событиями выделены, прошедшие недоступны */
.monthcal { margin-top: 10px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-2); max-width: 380px; box-shadow: var(--shadow); }
.monthcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.monthcal__head b { font: 400 22px/1 var(--display); text-transform: uppercase; }
.monthcal__head .icon-btn { width: 34px; height: 34px; }
.monthcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.monthcal__grid small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 4px; }
.monthcal__grid button { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: none; font: 600 13px var(--sans); cursor: pointer; color: var(--text); font-variant-numeric: tabular-nums; }
.monthcal__grid button:disabled { color: rgba(240,237,230,.25); cursor: default; }
.monthcal__grid button.has { border-color: rgba(227,181,102,.4); }
.monthcal__grid button.has::after { content: attr(data-n); position: absolute; right: 3px; top: 2px; font-size: 8.5px; color: var(--gold); }
.monthcal__grid button[aria-selected="true"] { background: var(--gold-grad); color: var(--ink-on-gold); }

/* Две колонки: лента + правая колонка (справочник, «как это работает», реклама) */
.layout { display: grid; gap: 34px; margin-top: 8px; }
.layout__main { min-width: 0; }
.layout__side { display: grid; gap: 14px; align-content: start; }
.side-card { padding: 18px; border-radius: var(--radius); background: rgba(23,21,28,.86); border: 1px solid var(--line); }
.side-card h3 { font: 400 26px/1.05 var(--display); text-transform: uppercase; margin: 8px 0 12px; }
.side-card .muted { margin: 8px 0 0; font-size: 13.5px; line-height: 1.55; }
.side-card--cta { background: linear-gradient(160deg, rgba(227,181,102,.14), rgba(23,21,28,.9) 60%); border-color: rgba(227,181,102,.3); }
.side-card--cta .btn { margin-top: 14px; }
.city__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
.city__item { padding: 11px 8px; justify-content: center; text-align: center; font-size: 13px; }
.city__item--all { grid-column: 1 / -1; }

/* Реклама: обязательная маркировка «РЕКЛАМА», единый стиль с афишей */
.ad { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-sm); background: rgba(31,28,37,.9); border: 1px dashed rgba(227,181,102,.35); margin-top: 14px; }
.layout__side > .ad { margin-top: 0; }
.ad__label { font: 700 9.5px/1 var(--sans); letter-spacing: .16em; color: var(--muted); }
.ad strong { font-size: 15px; }
.ad small { color: var(--muted); font-size: 12px; }
.ad__cta { font-size: 13px; font-weight: 700; color: var(--gold); }
.ad__art { display: grid; place-items: center; border-radius: 10px; color: var(--muted); font-size: 12px; text-align: center; padding: 10px;
  background: repeating-linear-gradient(135deg, rgba(240,237,230,.04) 0 10px, transparent 10px 20px), var(--surface); }
.ad__art--h { aspect-ratio: 16 / 7; }
.slide--ad .slide__body .badge::before { background: var(--muted); box-shadow: none; }

/* Карточки: сердечко «в избранное», город для гастролей */
.card__fav { position: absolute; z-index: 3; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: rgba(11,10,13,.6); backdrop-filter: blur(6px); cursor: pointer; color: var(--text); }
.card__fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.card__fav[aria-pressed="true"] svg { fill: var(--flag-r); stroke: var(--flag-r); }
.card__city { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-on-gold); background: var(--gold); vertical-align: 1px; }
.card__price { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Чат поддержки (на сайте — ИИ-помощник с продажей рекламы) */
.chat-fab { position: fixed; z-index: 55; right: 16px; bottom: calc(var(--tabbar-h) + 26px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px 0 14px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 700; font-size: 14px;
  background: var(--gold-grad); color: var(--ink-on-gold); box-shadow: 0 14px 30px -12px rgba(227,181,102,.7); }
.chat-fab svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.chat { position: fixed; z-index: 70; right: 12px; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 380px; margin-left: auto;
  border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; overflow: clip; }
.chat__head { display: grid; grid-template-columns: 1fr auto; padding: 14px 14px 12px 16px; border-bottom: 1px solid var(--line); }
.chat__head small { grid-column: 1; color: var(--muted); font-size: 12px; }
.chat__head .icon-btn { grid-row: 1 / 3; grid-column: 2; width: 36px; height: 36px; }
.chat__log { display: grid; gap: 8px; padding: 14px; max-height: 46vh; overflow-y: auto; }
.msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.msg--bot { background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg--user { justify-self: end; background: rgba(227,181,102,.18); border-bottom-right-radius: 4px; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; }
.chat__quick button { border: 1px solid var(--line-2); background: none; color: var(--text); border-radius: 999px; padding: 7px 11px; font-size: 12.5px; cursor: pointer; }
.chat__note { margin: 0; padding: 10px 16px 14px; font-size: 11.5px; color: var(--muted); border-top: 1px solid var(--line); }

/* Подвал: служебный текст и скрытый вход (5 кликов) */
.foot { background: rgba(11,10,13,.92); }
.foot__in { display: grid; gap: 12px; }
.foot__in p { margin: 0; max-width: 70ch; }
.foot__bottom { font-size: 12px; color: rgba(163,158,149,.7); }
.cabinet-entry { color: inherit; }

/* Источники и уведомление в подробностях */
.detail__sources { display: grid; gap: 4px; margin-top: 14px; font-size: 13px; }
.detail__sources a { color: var(--gold); }
.detail__facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 13.5px; }
.detail__facts dt { color: var(--muted); }
.detail__facts dd { margin: 0; }

/* Телефон: компактные карточки «постер слева — информация справа» */
@media (max-width: 639px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .grid .card { min-width: 0; }
  .grid .card { flex-direction: row; gap: 12px; padding: 8px; border-radius: var(--radius-sm); background: rgba(23,21,28,.82); border: 1px solid var(--line); }
  .grid .card__media { flex: 0 0 104px; aspect-ratio: 3 / 4; }
  .grid .card__media::after, .grid .card__date, .grid .badge--age { display: none; }
  .grid .card__media .badge { top: 6px; left: 6px; max-width: calc(100% - 12px); font-size: 8.5px; padding: 0 7px; height: 20px; }
  .grid .card__body { padding: 2px 0 0; min-width: 0; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 2px; }
  .grid .card__when { font: 400 18px/1 var(--display); color: var(--gold); }
  .grid .card__fav { right: 8px; bottom: 8px; width: 30px; height: 30px; }
}
@media (min-width: 640px) { .card__when { display: none; } }
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .layout__side { position: sticky; top: 170px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chat-fab { bottom: 24px; }
  .rail .card { flex-basis: 24%; }
}
@media (min-width: 1320px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.slide--ad { cursor: default; background:
  radial-gradient(80% 90% at 80% 30%, rgba(227,181,102,.22), transparent 60%),
  repeating-linear-gradient(135deg, rgba(240,237,230,.035) 0 14px, transparent 14px 28px), var(--surface); border-style: dashed; border-color: rgba(227,181,102,.35); }
.slide--ad::after { display: none; }
.slide--ad .slide__body { top: 0; display: flex; flex-direction: column; justify-content: end; }

/* ===================== Мобильная версия как приложение (< 1000px) ===================== */
.top__actions { display: none; gap: 8px; margin-left: auto; }
.chip--filters { display: none; }
.chip--filters i { font-style: normal; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--gold); color: var(--ink-on-gold); }
.filters__cats { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.filters__cats .scroller { flex: 1; min-width: 0; margin-top: 0; margin-left: 0; padding-left: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 28px), transparent); }
.day-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; margin: 14px 0 2px; font: 400 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.day-head:first-child { margin-top: 0; }
.day-head i { font: 600 12px var(--sans); font-style: normal; color: var(--muted); letter-spacing: 0; text-transform: none; }
.ad--feed { grid-column: 1 / -1; margin-top: 0; }
.ad--banner { margin-top: 28px; }
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tabbar button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: none; cursor: pointer;
  font: 600 10px/1 var(--sans); color: var(--muted); padding: 0; }
.tabbar button[aria-current] { color: var(--gold); }
.tabbar button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tabbar__dot { position: absolute; top: 10px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--flag-r); }

/* Шторки снизу */
.msheet { position: fixed; inset: 0; z-index: 85; display: grid; align-items: end; }
.msheet[hidden] { display: none; }
.msheet__backdrop { position: absolute; inset: 0; background: rgba(5,4,7,.6); opacity: 0; transition: opacity 320ms var(--ease); }
.msheet__panel { position: relative; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 26px 26px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 420ms var(--ease); }
.msheet.is-open .msheet__backdrop { opacity: 1; }
.msheet.is-open .msheet__panel { transform: none; }
.msheet__grip { display: block; width: 40px; height: 4px; margin: 2px auto 10px; border-radius: 4px; background: var(--line-2); }
.msheet__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.msheet__head b { font: 400 26px/1 var(--display); text-transform: uppercase; }
.msheet .filters__extra { display: grid; gap: 12px; margin: 0; }
.msheet .seg { flex-wrap: wrap; border-radius: 16px; }
.msheet .seg button { flex: 1 1 45%; height: 40px; }
.msheet .select { height: 46px; border-radius: 14px; justify-content: space-between; }
.msheet .select select { max-width: 60vw; }
.msheet .chip--fav { height: 46px; justify-content: center; border-radius: 14px; }
.msheet .monthcal { margin: 0; max-width: none; border: 0; padding: 0; background: none; box-shadow: none; }
.msheet .monthcal__grid button { font-size: 15px; }

/* Полноэкранный поиск */
.searchview { position: fixed; inset: 0; z-index: 88; background: var(--bg); display: grid; grid-template-rows: auto 1fr; opacity: 0; transform: translateY(12px); transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.searchview[hidden] { display: none; }
.searchview.is-open { opacity: 1; transform: none; }
.searchview__bar { display: flex; gap: 10px; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; border-bottom: 1px solid var(--line); }
.searchview__bar > div { flex: 1; min-width: 0; }
.searchview__bar .search { max-width: none; margin: 0; }
.searchview__body { overflow-y: auto; padding: 16px 16px calc(30px + env(safe-area-inset-bottom)); display: grid; gap: 12px; align-content: start; }
.searchview__tags, .searchview__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.searchview__tags button, .searchview__cats button { border: 1px solid var(--line-2); background: var(--surface); color: var(--text); border-radius: 999px; padding: 9px 14px; font: 600 13.5px var(--sans); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.searchview__cats .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cat); }
.searchview__results { display: grid; gap: 10px; }
.searchview__results .card { flex-direction: row; gap: 12px; padding: 8px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.searchview__results .card__media { flex: 0 0 84px; aspect-ratio: 3 / 4; }
.searchview__results .card__date, .searchview__results .badge--age, .searchview__results .card__media::after { display: none; }
.searchview__results .card__body { padding: 0; min-width: 0; flex: 1; }
.searchview__results .card__when { display: block; font: 400 17px/1 var(--display); color: var(--gold); }

/* Подробности: действие всегда под пальцем */
.detail__actions { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 12px 0; margin: 4px 0 0;
  background: linear-gradient(180deg, rgba(17,16,21,0), var(--bg-2) 30%); }
.detail__actions .btn { flex: 1; }
.detail__actions .icon-btn[aria-pressed="true"] svg { fill: var(--flag-r); stroke: var(--flag-r); }
.detail__actions .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

@media (max-width: 999px) {
  .ad--d { display: none; }
  .top { padding: 8px 0; transition: transform 300ms var(--ease), background 300ms; background: rgba(11,10,13,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .top__in { gap: 10px; }
  .top > .wrap .search { display: none; }
  .top__actions { display: flex; }
  .top__actions .icon-btn { width: 40px; height: 40px; }
  .logo__mono { width: 34px; height: 34px; font-size: 22px; border-radius: 10px; }
  .filters { top: 56px; margin-top: 12px; padding-block: 8px 10px; transition: top 300ms var(--ease); }
  body.chrome-hidden .top { transform: translateY(-110%); }
  body.chrome-hidden .filters { top: env(safe-area-inset-top, 0px); }
  .filters .filters__extra, .filters .monthcal { display: none; }
  .chip--filters { display: inline-flex; flex: none; }
  .chip--pick { display: none; }
  .hero { margin-top: 10px; }
  .slide { flex-basis: 86%; aspect-ratio: 4 / 5; max-height: 64vh; }
  .hero__arrows { display: none; }
  .cityframe { margin-top: 26px; min-height: 0; }
  .cityframe__body { padding-block: 150px 18px; }
  .glass h1 { font-size: clamp(28px, 8vw, 40px); }
  .layout { gap: 26px; }
  .chat-fab { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  .chat-fab span { display: none; }
  .chat { bottom: calc(var(--tabbar-h) + 22px + env(safe-area-inset-bottom)); }
  .sheet__panel { max-height: 94vh; }
  .rail { margin-top: 34px; }
}
@media (min-width: 1000px) {
  .ad--m { display: none; }
  .searchview, .msheet { display: none !important; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slide { flex-basis: 70%; aspect-ratio: 16 / 10; }
}
/* Телефон: сначала то, ради чего открывают афишу — события; кадр города ниже ленты */
@media (max-width: 999px) {
  main { display: flex; flex-direction: column; }
  main > .hero { order: 1; }
  main > .filters { order: 2; }
  main > .layout { order: 3; }
  main > .cityframe { order: 4; margin-top: 34px; }
}

[hidden] { display: none !important; }


/* ===================== Реклама со свечением (только занятые места) ===================== */
.ad-slot:empty { display: none; }
.ad.is-live { position: relative; border: 1px solid transparent; isolation: isolate; overflow: visible;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--glow-angle, 0deg), rgba(227,181,102,.15), #f6dca3, #e3b566, rgba(242,166,90,.2), rgba(227,181,102,.15)) border-box;
  box-shadow: 0 0 0 1px rgba(227,181,102,.08), 0 10px 40px -12px rgba(242,166,90,.55);
  animation: ad-glow 6s linear infinite; }
.ad.is-live::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1; pointer-events: none;
  box-shadow: 0 0 28px -6px rgba(242,166,90,.45); animation: ad-breathe 3.2s ease-in-out infinite; }
@property --glow-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ad-glow { to { --glow-angle: 360deg; } }
@keyframes ad-breathe { 50% { box-shadow: 0 0 40px -4px rgba(242,166,90,.7); } }
.ad__img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 7; object-fit: cover; }
.ad__label { color: var(--gold); }
.slide--ad.is-live { border: 1px solid rgba(227,181,102,.6); box-shadow: 0 0 0 1px rgba(227,181,102,.25), 0 0 46px -8px rgba(242,166,90,.6); background: var(--surface); }
.slide--ad.is-live::after { display: block; }
.badge--ad { color: var(--ink-on-gold); background: var(--gold-grad); border-color: transparent; letter-spacing: .08em; }
.badge--ad::before { display: none; }
.proto-ads { justify-self: start; font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .ad.is-live, .ad.is-live::after { animation: none; } }

/* ===================== Кадр города — первым блоком страницы ===================== */
.cityframe { margin-top: 0; }
.hero { margin-top: 18px; }
@media (max-width: 999px) {
  main > .cityframe { order: 0; margin-top: 0; }
  .cityframe__body { padding-block: 120px 16px; }
  .glass { padding: 16px 16px 14px; }
  .glass p { font-size: 13.5px; }
  .glass .tricolor-line { margin-top: 14px; }
}
/* Картинка города начинается от самого верха экрана, под прозрачной шапкой */
main > .cityframe { margin-top: -70px; }
.cityframe::before { background:
    linear-gradient(180deg, rgba(11,10,13,.55) 0%, rgba(11,10,13,0) 18%, rgba(11,10,13,.05) 50%, rgba(11,10,13,.88) 86%, rgba(11,10,13,.97) 100%),
    radial-gradient(90% 70% at 70% 35%, rgba(242,166,90,.2), transparent 65%); }
@media (max-width: 999px) {
  main > .cityframe { margin-top: -56px; }
  .top:not(.is-scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
main > .cityframe { margin-top: -76px; }
@media (max-width: 999px) { main > .cityframe { margin-top: -56px; } }

/* ===================== Рабочий сайт: адаптация под серверную разметку ===================== */
.proto-ads { display: none; }
a.chip { text-decoration: none; }
.chip[aria-current] { background: var(--gold-grad); color: var(--ink-on-gold); border-color: transparent; }
.chip[aria-current] i, .chip[aria-current] small { color: rgba(26,18,6,.75); }
.card[hidden] { display: none !important; }
.card__title a { color: inherit; }
.card__title a:focus-visible { outline: 2px solid var(--gold); }

/* Постер целиком (без обрезки текста афиши) на размытом фоне из него же */
.card__media img { object-fit: contain; }
.card__bg { position: absolute; inset: -12px; z-index: 0; background: var(--poster, none) center / cover no-repeat; filter: blur(16px) brightness(.55) saturate(1.1); }
.card__media img, .card__media .badge, .card__date, .card__fav { z-index: 1; }
.card__media::after { z-index: 1; }

/* Месячный календарь со ссылками */
.monthcal__grid a, .monthcal__grid span:not(:empty) { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; font: 600 13px var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; color: var(--text); }
.monthcal__grid .is-past, .monthcal__grid .is-free { color: rgba(240,237,230,.28); }
.monthcal__grid a.has { border: 1px solid rgba(227,181,102,.45); }
.monthcal__grid a.has::after { content: attr(data-n); position: absolute; right: 3px; top: 2px; font-size: 8.5px; color: var(--gold); }
.monthcal__grid a.is-selected { background: var(--gold-grad); color: var(--ink-on-gold); }
.monthcal__head .icon-btn { text-decoration: none; color: var(--text); }

/* Реклама из кабинета (ad_creative.html): блок есть только при активной кампании, светится */
.ad-slot-host:empty, .ad-feed[hidden], .ad-side[hidden] { display: none !important; }
.ad-feed { grid-column: 1 / -1; }
.ad-feed:not(:has([data-ad-id])), .ad-side:not(:has([data-ad-id])) { display: none; }
.afisha-ad { position: relative; display: grid; gap: 8px; padding: 14px; border-radius: var(--radius-sm); border: 1px solid transparent; isolation: isolate; margin-top: 14px;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              conic-gradient(from var(--glow-angle, 0deg), rgba(227,181,102,.15), #f6dca3, #e3b566, rgba(242,166,90,.2), rgba(227,181,102,.15)) border-box;
  box-shadow: 0 10px 40px -12px rgba(242,166,90,.55); animation: ad-glow 6s linear infinite; }
.ad-side .afisha-ad, .ad-feed .afisha-ad { margin-top: 0; }
.afisha-ad-label { font: 700 9.5px/1.3 var(--sans); letter-spacing: .14em; color: var(--gold); }
.placement-artwork img { width: 100%; height: auto; border-radius: 10px; display: block; }
.afisha-ad-body { display: grid; gap: 4px; }
.afisha-ad-body strong { font-size: 15px; }
.afisha-ad-body p, .afisha-ad-body small { margin: 0; color: var(--muted); font-size: 12.5px; }
.ad-cta { font-weight: 700; font-size: 13px; color: var(--gold); text-decoration: none; }
.placement-image-error { display: grid; gap: 4px; padding: 14px; border-radius: 10px; background: var(--surface-2); font-size: 12px; }
.ad-directory-preview { display: grid; gap: 10px; margin-top: 14px; }
.ad-directory-all { font-size: 13px; color: var(--gold); font-weight: 600; }
/* Рекламный слайд карусели: вертикальный постер рекламодателя целиком */
.slide--ad .ad-slot-host, .slide--ad .afisha-ad { position: absolute; inset: 0; margin: 0; border-radius: inherit; }
.slide--ad .afisha-ad { padding: 18px; align-content: end; background: var(--surface); animation: none; box-shadow: none; }
.slide--ad .placement-artwork { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; }
.slide--ad .placement-artwork img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.slide--ad .afisha-ad-label { justify-self: start; padding: 6px 10px; border-radius: 999px; background: var(--gold-grad); color: var(--ink-on-gold); letter-spacing: .08em; }
.slide--ad .afisha-ad-body { padding: 14px; border-radius: 14px; background: rgba(11,10,13,.78); backdrop-filter: blur(8px); }
a.slide { color: inherit; text-decoration: none; display: block; }

/* Поиск: результаты на телефоне */
.sres { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.sres small { color: var(--muted); }
form.search { margin-bottom: 0; }

/* Страница события */
.event { padding-top: 14px; }
.event__back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.event__back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.event__grid { display: grid; gap: 22px; }
.event__media { position: relative; border-radius: var(--radius); overflow: hidden; overflow: clip; isolation: isolate; background: var(--surface); aspect-ratio: 4 / 5; max-height: 72vh; }
.event__media::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--poster, none) center / cover; filter: blur(30px) brightness(.5); }
.event__media img { width: 100%; height: 100%; object-fit: contain; }
.event__title { font: 400 clamp(32px, 7vw, 56px)/1 var(--display); text-transform: uppercase; margin: 14px 0 6px; text-wrap: balance; }
.event__desc { margin-top: 16px; color: #e4ded3; line-height: 1.65; max-width: 68ch; white-space: pre-line; }
.event__share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.event__share a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 13px; }
.event__share label { display: grid; gap: 4px; width: 100%; font-size: 12px; color: var(--muted); }
.event__share input { background: var(--surface); border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; }
.page-event .detail__actions { position: sticky; bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom)); z-index: 5; }
@media (max-width: 999px) {
  /* Плотная плавающая панель: текст и звёзды не просвечивают под кнопками */
  .page-event .detail__actions { background: rgba(23, 21, 28, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px; border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); }
}
@media (min-width: 1000px) {
  .event__grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .event__media { position: sticky; top: 90px; }
  .page-event .detail__actions { bottom: 0; }
}

/* Чат поддержки в стиле сайта; на телефоне — над нижними вкладками */
.help-dock { font-family: var(--sans); right: 16px; bottom: 24px; }
.help-launch { background: var(--gold-grad); color: var(--ink-on-gold); border: 0; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(227,181,102,.7); }
.help-panel { background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 22px; }
.help-head, .help-lead-toggle { background: var(--surface); color: var(--text); border-color: var(--line); }
.help-lead-toggle { color: var(--gold); }
.help-shortcuts { border-color: var(--line); }
.help-shortcuts button { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.help-bot { background: var(--surface-2); color: var(--text); }
.help-user { background: rgba(227,181,102,.18); color: var(--text); }
.help-composer input, .help-lead input:not([type=checkbox]), .help-lead textarea, .help-lead select { background: var(--surface); color: var(--text); border-color: var(--line-2); }
@media (max-width: 999px) {
  .help-dock { bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); right: 12px; }
  .help-launch { width: 52px; height: 52px; padding: 0; border-radius: 50%; font-size: 0; }
  .help-launch::before { content: "💬"; font-size: 22px; }
  body.page-event .help-dock { bottom: calc(var(--tabbar-h) + 92px + env(safe-area-inset-bottom)); }
}
/* Телефон: помощник — полноэкранная шторка поверх вкладок, ничего не обрезается по краям */
@media (max-width: 639px) {
  .help-panel { position: fixed; inset: 0; width: auto; height: 100dvh; max-height: none; border: 0; border-radius: 0; z-index: 1001;
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); box-sizing: border-box; }
  .help-shortcuts { flex-wrap: wrap; overflow: visible; }
  .help-messages { min-height: 0; }
  .help-dock:has(.help-panel:not([hidden])) .help-launch { visibility: hidden; }
}

/* Тексты не обрезаются: больше строк для длинных названий */
.slide__title { line-height: 1.02; -webkit-line-clamp: 4; }
.card__title { -webkit-line-clamp: 3; }

/* Кнопка чата — как в прототипе: золотая «таблетка» с иконкой; на телефоне круглая */
.help-dock .help-launch {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 18px 0 15px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 14px/1 var(--sans); letter-spacing: .01em; background: var(--gold-grad); color: var(--ink-on-gold);
  box-shadow: 0 14px 30px -12px rgba(227,181,102,.7), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), filter var(--t-fast);
}
.help-dock .help-launch:hover { filter: brightness(1.06); box-shadow: 0 18px 36px -12px rgba(227,181,102,.85); background: var(--gold-grad); color: var(--ink-on-gold); }
.help-dock .help-launch:active { transform: scale(.96); }
.help-dock .help-launch svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; }
.help-dock .help-launch::before { content: none; }
@media (max-width: 999px) {
  .help-dock .help-launch { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; font-size: 14px; }
  .help-dock .help-launch span { display: none; }
}

/* Постер: заполняет карточку, если пропорции близки (срез ≤ 6% по краю, текст афиши не задет);
   квадратные и широкие постеры вписываются целиком на размытом фоне. Класс ставит afisha-2026.js. */
.card__media img.fit-cover { object-fit: cover; }
.card__media.is-cover .card__bg { display: none; }

/* ===================== Адаптивная ширина: на весь экран ===================== */
/* Поля растут вместе с экраном, содержимое — до 1840 px; колонки карточек считает браузер. */
:root { --wrap-max: 1840px; --gutter: clamp(16px, 2.6vw, 56px); }
.wrap { max-width: var(--wrap-max); }
.hero { max-width: var(--wrap-max); }

/* Прилипающие фильтры: плотный фон во всю ширину экрана, постеры под ним не просвечивают */
.filters { background: rgba(11, 10, 13, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 0 0 100vmax rgba(11, 10, 13, .9); clip-path: inset(0 -100vmax); border-bottom: 1px solid var(--line); }

@media (min-width: 640px) {
  /* Карточки не уже 200 px и не шире ~280 px: на 1366 — 3 колонки, 1920 — 5, 2560 — 7 */
  .grid { grid-template-columns: repeat(auto-fill, minmax(clamp(190px, 13vw, 250px), 1fr)); }
  .rail .card { flex: 0 0 clamp(180px, 15vw, 250px); }
}
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) clamp(300px, 21vw, 400px); gap: clamp(24px, 2.4vw, 48px); }
  .slide { max-height: min(640px, 62vh); aspect-ratio: 16 / 7; }
  .slide__body { width: min(58%, 760px); padding: clamp(32px, 3vw, 64px); }
  .slide__title { font-size: clamp(40px, 3.6vw, 76px); }
  .slide__title--long { font-size: clamp(32px, 2.8vw, 58px); }
  .cityframe { min-height: clamp(460px, 42vw, 720px); }
  .glass { max-width: clamp(480px, 34vw, 680px); }
  .glass h1 { font-size: clamp(40px, 3.6vw, 72px); }
}
@media (min-width: 1700px) {
  body { font-size: 16px; }
  .card__title { font-size: 16px; }
  .top__in { height: 76px; }
}
:root { --wrap-max: 2400px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(auto-fill, minmax(clamp(200px, 12vw, 260px), 1fr)); } }

/* ===================== Страница «Разместить рекламу» ===================== */
.adv { padding-block: 24px 40px; }
.adv__intro { max-width: 820px; margin-bottom: 22px; }
.adv__intro h1 { margin: 10px 0; }
.adv__intro p { color: #ddd6c9; line-height: 1.6; margin: 0; }
.adv__layout { display: grid; gap: 22px; }
.adv__form { min-width: 0; padding: clamp(16px, 2vw, 28px); border-radius: var(--radius); background: rgba(23,21,28,.88); border: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.adv__steps { display: grid; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.adv__steps .progress { height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.adv__steps .progress i { display: block; height: 100%; width: 16%; background: var(--gold-grad); transition: width var(--t) var(--ease); }
.adv .agent { display: flex; gap: 12px; align-items: center; }
.adv .agent p { margin: 0; font: 400 clamp(22px, 2.4vw, 30px)/1.1 var(--display); text-transform: uppercase; }
.adv .stage { display: grid; gap: 14px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice-grid.small { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.choice { display: grid; gap: 4px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; font: 600 14px var(--sans); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.choice small { color: var(--muted); font-weight: 500; font-size: 12.5px; line-height: 1.4; }
.choice:hover { border-color: rgba(227,181,102,.5); }
.choice:active { transform: scale(.98); }
.choice.selected { background: var(--gold-grad); color: var(--ink-on-gold); border-color: transparent; }
.choice.selected small { color: rgba(26,18,6,.75); }
.choice-grid.small .choice { text-align: center; }
.price-box { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(160deg, rgba(227,181,102,.16), rgba(23,21,28,.9) 70%); border: 1px solid rgba(227,181,102,.35); }
.price-box strong { font: 400 30px/1 var(--display); }
.price-box small { color: var(--muted); }
.hint { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #ddd6c9; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 15px var(--sans); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.field small { color: var(--muted); font-weight: 500; }
.fieldset { display: grid; gap: 12px; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0; }
.fieldset legend { padding: 0 6px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.contact-field { position: relative; }
.contact-ico { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; margin-right: 6px; border-radius: 6px; background: var(--surface-2); color: var(--gold); font-size: 10px; font-weight: 800; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #ddd6c9; line-height: 1.5; }
.terms input { margin-top: 3px; accent-color: var(--gold); width: 18px; height: 18px; }
.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.adv .next { justify-self: start; }
.adv-cal { padding: 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); max-width: 420px; }
.adv-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.adv-cal__head b { font: 400 22px/1 var(--display); text-transform: uppercase; }
.adv-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.adv-cal__grid small { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 4px; }
.adv-cal__grid button { aspect-ratio: 1; border-radius: 10px; border: 1px solid transparent; background: var(--surface-2); color: var(--text); font: 600 13px var(--sans); cursor: pointer; }
.adv-cal__grid button:disabled { background: none; color: rgba(240,237,230,.25); cursor: default; }
.adv-cal__grid button.selected { background: var(--gold-grad); color: var(--ink-on-gold); }
.availability { margin: 0; font-size: 14px; color: #ddd6c9; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; word-break: break-word; }
.result { padding: 16px; border-radius: 16px; background: rgba(43,179,163,.12); border: 1px solid rgba(43,179,163,.4); line-height: 1.55; }
.adv__done { display: flex; flex-wrap: wrap; gap: 8px; }
.error { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(239,47,63,.12); border: 1px solid rgba(239,47,63,.45); color: #ffd7db; font-size: 14px; }
.adv__preview { display: grid; gap: 10px; align-content: start; }
.adv__preview .pv { position: relative; }
.pv-slide { position: relative; flex: none; margin: 0; width: 100%; aspect-ratio: 4 / 5; max-height: 560px; }
.pv-slide .slide__body > * { opacity: 1; transform: none; }
.pv-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px;
  background: repeating-linear-gradient(135deg, rgba(240,237,230,.04) 0 14px, transparent 14px 28px), var(--surface); }
.pv-empty--h { position: static; aspect-ratio: 16 / 7; border-radius: 10px; }
.pv-note { font-size: 12px; }
@media (min-width: 1000px) {
  .adv__layout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); align-items: start; }
  .adv__preview { position: sticky; top: 96px; }
}

/* ===================== Остальные страницы в новом дизайне ===================== */
.publication-page, .cg-page { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding: 24px var(--gutter) 40px; }
.publication-page { display: grid; gap: 16px; max-width: 980px; }
.publication-eyebrow { margin: 0; font: 600 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.publication-page h1, .cg-intro h1 { font: 400 clamp(30px, 5vw, 52px)/1 var(--display); text-transform: uppercase; margin: 8px 0 4px; }
.publication-page h2, .cg-section h2 { font: 400 clamp(22px, 3vw, 32px)/1.1 var(--display); text-transform: uppercase; margin: 6px 0; }
.publication-page p, .publication-page li { color: #ddd6c9; line-height: 1.65; }
.contact-terms, .contact-form, .contact-revealed { padding: clamp(16px, 2vw, 26px); border-radius: var(--radius); background: rgba(23,21,28,.88); border: 1px solid var(--line); }
.contact-terms ol { padding-left: 20px; display: grid; gap: 8px; }
.contact-form { display: grid; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #ddd6c9; }
.contact-form input:not([type=checkbox]), .contact-form textarea, .contact-form select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 15px var(--sans); }
.contact-form .contact-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.contact-form button[type=submit] { justify-self: start; height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--ink-on-gold); font: 700 14px var(--sans); cursor: pointer; }
.contact-trap { position: absolute; left: -9999px; }
.publication-page a, .cg-page a { color: var(--gold); }
.cg-page { font-family: var(--sans); color: var(--text); }
.cg-intro p, .cg-notice { color: #ddd6c9; }
.cg-search { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 16px; border-radius: var(--radius); background: rgba(23,21,28,.88); border: 1px solid var(--line); margin: 16px 0; }
.cg-search label { font-size: 12px; color: var(--muted); }
.cg-search input, .cg-search select { padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 500 14px var(--sans); min-width: 0; }
.cg-search button { height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--gold-grad); color: var(--ink-on-gold); font: 700 14px var(--sans); cursor: pointer; }
.cg-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.cg-nav a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 600; }
.cg-nav a span { color: var(--muted); font-size: 11.5px; }
.cg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(240px, 18vw, 320px), 1fr)); gap: 12px; }
.city-place-card { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: var(--radius-sm); background: rgba(23,21,28,.88); border: 1px solid var(--line); }
.city-place-card h3 { margin: 4px 0; font: 700 16px/1.3 var(--sans); text-transform: none; }
.city-place-card p { margin: 0; color: #ddd6c9; font-size: 13.5px; line-height: 1.5; }
.cg-status { justify-self: start; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cg-status.cg-verified { color: var(--c-theatre); }
.cg-source { font-size: 12px !important; }

/* ===================== Рейтинг в звёздах ===================== */
/* Средний балл: пять звёзд-масок, золотая заливка на долю --r из 5 (дробные значения — частично залитая звезда). */
.stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.8l2.75 5.57 6.15.9-4.45 4.33 1.05 6.12L12 16.83l-5.5 2.89 1.05-6.12L3.1 9.27l6.15-.9z' stroke='%23000' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E");
  display: inline-block; width: 5.5em; height: 1.1em; vertical-align: -0.15em; font-size: 13px;
  background: linear-gradient(90deg, #f6dca3, #e3b566 50%, #f2a65a) 0 0 / calc(var(--r, 0) / 5 * 100%) 100% no-repeat, rgba(240,237,230,.18);
  -webkit-mask: var(--star) 0 0 / 1.1em 1.1em repeat-x; mask: var(--star) 0 0 / 1.1em 1.1em repeat-x;
  filter: drop-shadow(0 0 6px rgba(242,166,90,.35));
}
.stars--lg { font-size: 22px; }
.rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; }
.rating b { color: var(--gold); font-weight: 800; }
.rating i { font-style: normal; color: var(--muted); }
.rating i::before { content: "· "; }

/* Оценка на странице события */
.rate { display: grid; gap: 10px; margin: 14px 0 6px; padding: 16px; border-radius: var(--radius-sm);
  background: linear-gradient(160deg, rgba(227,181,102,.12), rgba(23,21,28,.9) 65%); border: 1px solid rgba(227,181,102,.28); }
.rate__avg { display: flex; align-items: center; gap: 10px; min-height: 26px; }
.rate__avg b { font: 400 30px/1 var(--display); color: var(--text); }
.rate__avg small { color: var(--muted); font-size: 13px; }
.rate__pick { display: flex; gap: 4px; }
.rate__star { width: 46px; height: 46px; padding: 6px; border: 0; border-radius: 12px; background: none; cursor: pointer; display: grid; place-items: center;
  transition: transform 160ms var(--ease), background 160ms; }
.rate__star svg { width: 100%; height: 100%; fill: rgba(240,237,230,.08); stroke: rgba(240,237,230,.45); stroke-width: 1.3; stroke-linejoin: round;
  transition: fill 160ms, stroke 160ms, filter 200ms; }
.rate__star:hover { transform: translateY(-2px) scale(1.06); background: rgba(240,237,230,.04); }
.rate__star:active { transform: scale(.92); }
.rate__star.is-lit svg { fill: #e3b566; stroke: #f6dca3; filter: drop-shadow(0 0 8px rgba(242,166,90,.65)); }
.rate__star:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rate__msg { margin: 0; font-size: 13px; color: #ddd6c9; }
.rate.is-busy { opacity: .7; pointer-events: none; }
@keyframes star-pop { 50% { transform: scale(1.25); } }
.rate__star.pop { animation: star-pop 360ms var(--ease); }
@media (prefers-reduced-motion: reduce) { .rate__star.pop { animation: none; } }

/* SEO-текст посадочных страниц и внутренние ссылки */
.seo-text { margin-top: 34px; padding: clamp(16px, 2vw, 26px); border-radius: var(--radius); background: rgba(23,21,28,.7); border: 1px solid var(--line); max-width: 920px; }
.seo-text h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 10px; }
.seo-text p { margin: 0 0 8px; color: #ddd6c9; line-height: 1.65; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; }
.foot__links a { color: var(--muted); text-decoration: none; }
.foot__links a:hover { color: var(--gold); }

/* Страница 404 */
.not-found-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.not-found-links .btn:not(.btn--ghost) { color: var(--ink-on-gold); }
