/* ==========================================================================
   Афиша — дизайн-система
   Токены → база → компоненты → страницы → адаптив
   ========================================================================== */

:root {
  /* палитра */
  --accent:        #f5352b;
  --accent-dark:   #d21f16;
  --accent-soft:   #fff0ef;
  --accent-2:      #7c5cff;

  --ink:           #14161a;
  --ink-2:         #3c4149;
  --ink-3:         #6b7280;
  --ink-4:         #9aa1ac;

  --bg:            #ffffff;
  --bg-2:          #f6f7f9;
  --bg-3:          #eceef2;
  --bg-inverse:    #14161a;

  --line:          #e4e7ec;
  --line-2:        #d3d8e0;

  --good:          #17a673;
  --good-soft:     #e6f7f0;
  --mid:           #f0a020;
  --mid-soft:      #fff5e3;
  --bad:           #e04343;
  --bad-soft:      #fdeceb;

  /* геометрия */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --container: 1280px;
  --gutter: 20px;
  --header-h: 62px;

  --shadow-1: 0 1px 2px rgba(16,20,28,.06), 0 2px 8px rgba(16,20,28,.05);
  --shadow-2: 0 6px 16px rgba(16,20,28,.10), 0 2px 4px rgba(16,20,28,.06);
  --shadow-3: 0 18px 44px rgba(16,20,28,.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Roboto",
          "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --accent-soft: #2a1614;
  --ink:      #eef0f4;
  --ink-2:    #c3c8d1;
  --ink-3:    #949cab;
  --ink-4:    #6d7481;
  --bg:       #101216;
  --bg-2:     #171a20;
  --bg-3:     #1f232b;
  --bg-inverse: #eef0f4;
  --line:     #262b34;
  --line-2:   #333944;
  --good-soft: #10281f;
  --mid-soft:  #2a2114;
  --bad-soft:  #2c1616;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 6px 18px rgba(0,0,0,.5);
  --shadow-3: 0 18px 44px rgba(0,0,0,.6);
}

/* --------------------------------------------------------------- база */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1,h2,h3,h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
h1 { font-size: clamp(28px, 4vw, 42px); }
h2 { font-size: clamp(21px, 2.4vw, 28px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent); color: #fff; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.muted   { color: var(--ink-3); }
.small   { font-size: 13px; }
.tiny    { font-size: 12px; }
.nowrap  { white-space: nowrap; }
.center  { text-align: center; }
.hide    { display: none !important; }
.stack   { display: flex; flex-direction: column; gap: 12px; }
.row     { display: flex; align-items: center; gap: 10px; }
.row-wrap{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer  { flex: 1; }
.dot::before { content: "·"; margin: 0 6px; color: var(--ink-4); }

/* --------------------------------------------------------------- шапка */

.header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}

.logo {
  display: flex; align-items: baseline; gap: 2px;
  font-size: 25px; font-weight: 850; letter-spacing: -0.05em;
  color: var(--accent);
  flex-shrink: 0;
}
.logo span { color: var(--ink); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-left: 4px; }

.city-pick {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.city-pick:hover { border-color: var(--ink-4); }
.city-pick svg { width: 13px; height: 13px; opacity: .6; }

.search {
  position: relative; flex: 1; max-width: 520px;
}
.search input {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink); font-size: 14px;
}
.search input::placeholder { color: var(--ink-4); }
.search input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.search__icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; opacity: .5; pointer-events: none;
}
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-3);
  overflow: hidden; z-index: 70; max-height: 60vh; overflow-y: auto;
}
.suggest:empty { display: none; }
.suggest__item {
  display: flex; align-items: center; gap: 11px; padding: 9px 13px;
  border-bottom: 1px solid var(--line);
}
.suggest__item:last-child { border-bottom: 0; }
.suggest__item:hover, .suggest__item.is-active { background: var(--bg-2); }
.suggest__item img { width: 34px; height: 46px; border-radius: 5px; object-fit: cover; }
.suggest__t { font-weight: 600; font-size: 14px; }
.suggest__s { font-size: 12px; color: var(--ink-3); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid transparent; background: transparent;
  cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }

.avatar-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
}

/* нижняя навигация по разделам */
.subnav {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: var(--header-h); z-index: 55;
}
.subnav__scroll {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  -ms-overflow-style: none;
}
.subnav__scroll::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 11px 12px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------- кнопки */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px;
  border: 1px solid transparent; background: var(--bg-3); color: var(--ink);
  font-size: 14.5px; font-weight: 650; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .06s;
}
.btn:hover { background: var(--line); }
.btn:active { transform: scale(.985); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { background: transparent; border-color: var(--line-2); }
.btn--ghost:hover { background: var(--bg-2); border-color: var(--ink-4); }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn--lg { height: 50px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .45; pointer-events: none; }
.btn svg { width: 17px; height: 17px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--bg);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip__count { font-size: 11.5px; color: var(--ink-4); font-weight: 600; }
.chip.is-active .chip__count { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--bg-3); color: var(--ink-2);
  font-size: 11.5px; font-weight: 650; letter-spacing: .01em;
}
.tag--accent { background: var(--accent); color: #fff; }
.tag--soft   { background: var(--accent-soft); color: var(--accent); }
.tag--ghost  { background: transparent; border: 1px solid var(--line-2); color: var(--ink-3); }

/* рейтинг */
.rate {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 24px; padding: 0 7px; border-radius: 7px;
  font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.rate--good { background: var(--good); color: #fff; }
.rate--mid  { background: var(--mid);  color: #fff; }
.rate--bad  { background: var(--bad);  color: #fff; }
.rate--none { background: var(--bg-3); color: var(--ink-4); }
.rate--lg   { min-width: 54px; height: 34px; font-size: 18px; border-radius: 9px; }

/* --------------------------------------------------------------- формы */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); font-size: 14.5px; font-family: inherit;
}
.textarea { height: auto; min-height: 110px; padding: 11px 13px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 11px;
}
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.form-note--error { color: var(--bad); }
.form-note--ok { color: var(--good); }

.flash {
  padding: 12px 16px; border-radius: var(--r); font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
}
.flash--error { background: var(--bad-soft); color: var(--bad); }
.flash--ok    { background: var(--good-soft); color: var(--good); }

.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--accent); }

/* --------------------------------------------------------------- секции */

.section { margin: 36px 0; }
.section__head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px;
}
.section__head h2 { flex-shrink: 0; }
.section__more {
  margin-left: auto; font-size: 14px; font-weight: 650; color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 4px;
}
.section__more:hover { color: var(--accent); }
.section__sub { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

.page-head { padding: 26px 0 8px; }
.page-head h1 { margin-bottom: 6px; }
.page-head__meta { color: var(--ink-3); font-size: 14.5px; }

.crumbs { display: flex; gap: 7px; font-size: 13px; color: var(--ink-3); padding: 14px 0 0; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--ink-4); }

/* --------------------------------------------------------------- карточки событий */

.grid {
  display: grid; gap: 22px 16px;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}
.grid--wide { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.card { position: relative; display: flex; flex-direction: column; gap: 9px; }
.card__poster {
  position: relative; display: block; aspect-ratio: 2/3;
  border-radius: var(--r); overflow: hidden; background: var(--bg-3);
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover .card__poster { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.card__poster img { width: 100%; height: 100%; object-fit: cover; }
.card__rate { position: absolute; left: 8px; top: 8px; box-shadow: 0 2px 6px rgba(0,0,0,.28); }
.card__age {
  position: absolute; right: 8px; top: 8px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 6px; border-radius: 5px; backdrop-filter: blur(4px);
}
.card__flag {
  position: absolute; left: 8px; top: 38px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 750;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .02em;
}
.card__title {
  font-size: 14.5px; font-weight: 680; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card:hover .card__title { color: var(--accent); }
.card__meta { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.card__price { font-size: 12.5px; color: var(--ink-2); font-weight: 650; }
.card__fav {
  position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px;
  border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: rgba(20,22,26,.55); color: #fff; backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .15s;
}
.card:hover .card__fav, .card__fav.is-active { opacity: 1; }
.card__fav.is-active { background: var(--accent); }
.card__fav svg { width: 15px; height: 15px; }

/* горизонтальная лента */
.rail { position: relative; }
.rail__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 168px;
  gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  padding-bottom: 6px; scrollbar-width: thin;
}
.rail__track > * { scroll-snap-align: start; }
.rail__track::-webkit-scrollbar { height: 6px; }
.rail__track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.rail__track--wide { grid-auto-columns: 300px; }

/* --------------------------------------------------------------- герой */

.hero { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin: 22px 0 8px; }
.hero__main, .hero__side {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-3); min-height: 320px; display: flex; align-items: flex-end;
}
.hero__side { min-height: 152px; }
.hero__col { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__body { position: relative; padding: 22px; color: #fff; }
.hero__main .hero__body { padding: 28px; }
.hero__kicker {
  display: inline-flex; margin-bottom: 10px; background: rgba(255,255,255,.16);
  backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.hero__title { font-size: clamp(22px, 3vw, 36px); font-weight: 800; margin-bottom: 6px; text-wrap: balance; }
.hero__side .hero__title { font-size: 19px; }
.hero__sub { font-size: 14.5px; opacity: .88; max-width: 46ch; }
.hero__thumbs { display: flex; gap: 6px; margin-top: 14px; }
.hero__thumbs img {
  position: static; width: 40px; height: 58px; border-radius: 6px;
  object-fit: cover; border: 1.5px solid rgba(255,255,255,.35);
}

/* --------------------------------------------------------------- фильтры */

.filters {
  display: flex; flex-direction: column; gap: 12px;
  padding: 16px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.filters__line { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters__line--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters__line--scroll::-webkit-scrollbar { display: none; }
.filters__label { font-size: 13px; font-weight: 650; color: var(--ink-4); margin-right: 2px; }
.filters .select { height: 34px; width: auto; min-width: 150px; font-size: 13.5px; border-radius: 999px; }

.results-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.results-head__count { font-size: 14px; color: var(--ink-3); }
.results-head .select { width: auto; min-width: 190px; height: 36px; font-size: 13.5px; border-radius: 999px; }

/* --------------------------------------------------------------- страница события */

.ev-hero { position: relative; margin-bottom: 26px; }
.ev-hero__bg {
  position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl);
}
.ev-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05); }
.ev-hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,9,12,.94) 0%, rgba(8,9,12,.82) 45%, rgba(8,9,12,.55) 100%);
}
.ev-hero__inner {
  position: relative; display: grid; grid-template-columns: 250px 1fr; gap: 32px;
  padding: 34px var(--gutter) 38px; color: #fff;
}
.ev-hero__poster {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-3);
  aspect-ratio: 2/3; background: #222;
}
.ev-hero__poster img { width: 100%; height: 100%; object-fit: cover; }
.ev-hero h1 { color: #fff; margin-bottom: 8px; text-wrap: balance; }
.ev-hero__orig { font-size: 15px; opacity: .62; margin-bottom: 16px; }
.ev-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; opacity: .85; margin-bottom: 18px; }
.ev-hero__tagline { font-size: 17px; font-style: italic; opacity: .9; margin-bottom: 16px; max-width: 62ch; }
.ev-hero__rates { display: flex; gap: 22px; margin-bottom: 20px; flex-wrap: wrap; }
.ev-hero__rate-label { font-size: 12px; opacity: .65; margin-top: 3px; }
.ev-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ev-hero .btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.ev-hero .btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 34px; align-items: start; }
.layout--reverse { grid-template-columns: 320px minmax(0,1fr); }

.panel {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; background: var(--bg);
}
.panel--flat { background: var(--bg-2); border-color: transparent; }
.panel h3 { margin-bottom: 12px; }

.deflist { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; }
.deflist dt { color: var(--ink-3); }
.deflist dd { margin: 0; font-weight: 600; }

.prose { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 68ch; }
.prose p { margin-bottom: 1.1em; }

.persons { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 16px 12px; }
.person { text-align: center; }
.person img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
  border-radius: var(--r); margin-bottom: 7px; background: var(--bg-3);
}
.person__name { font-size: 13.5px; font-weight: 650; line-height: 1.25; }
.person__role { font-size: 12px; color: var(--ink-3); }

/* --------------------------------------------------------------- расписание */

.days { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 0 0 auto; min-width: 62px; padding: 8px 10px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--bg); text-align: center; cursor: pointer;
}
.day:hover { border-color: var(--ink-4); }
.day.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.day.is-empty { opacity: .38; }
.day__label { font-size: 11.5px; font-weight: 650; text-transform: capitalize; }
.day__num { font-size: 19px; font-weight: 750; line-height: 1.1; }
.day__month { font-size: 11px; color: var(--ink-4); }
.day.is-active .day__month { color: color-mix(in srgb, var(--bg) 70%, transparent); }

.sched { display: flex; flex-direction: column; gap: 2px; }
.sched__group {
  display: grid; grid-template-columns: 260px 1fr; gap: 20px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.sched__group:last-child { border-bottom: 0; }
.sched__venue-name { font-size: 15.5px; font-weight: 700; margin-bottom: 3px; }
.sched__venue-name:hover { color: var(--accent); }
.sched__venue-meta { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.metro-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 5px; vertical-align: middle;
}
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  min-width: 74px; padding: 7px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg); cursor: pointer;
  transition: border-color .12s, transform .06s;
}
.time:hover { border-color: var(--accent); transform: translateY(-1px); }
.time__h { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.time__p { font-size: 11.5px; color: var(--ink-3); }
.time__f { font-size: 10px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.time--soldout { opacity: .45; pointer-events: none; }
.time--few { border-color: var(--mid); }

/* --------------------------------------------------------------- отзывы */

.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: 11px; margin-bottom: 9px; }
.review__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); }
.review__author { font-weight: 650; font-size: 14.5px; }
.review__date { font-size: 12.5px; color: var(--ink-4); }
.review__title { font-weight: 700; margin-bottom: 5px; }
.review__body { color: var(--ink-2); line-height: 1.6; }
.review__foot { margin-top: 10px; }
.like-btn {
  border: 1px solid var(--line-2); background: transparent; border-radius: 999px;
  padding: 4px 12px; font-size: 12.5px; cursor: pointer; color: var(--ink-3);
}
.like-btn:hover { border-color: var(--ink-4); color: var(--ink); }

.rating-picker { display: flex; gap: 5px; flex-wrap: wrap; }
.rating-picker input { position: absolute; opacity: 0; width: 0; }
.rating-picker label {
  width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-size: 14px; font-weight: 650;
}
.rating-picker label:hover { border-color: var(--accent); }
.rating-picker input:checked + label { background: var(--accent); border-color: var(--accent); color: #fff; }

/* --------------------------------------------------------------- схема зала */

.seat-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 30px; align-items: start; }

.screen {
  height: 34px; margin: 0 auto 26px; width: 100%; min-width: 240px;
  border-radius: 0 0 60% 60% / 0 0 26px 26px;
  background: linear-gradient(180deg, var(--ink-3), transparent);
  display: grid; place-items: start center; padding-top: 5px;
  font-size: 11px; letter-spacing: .3em; color: var(--ink-3); font-weight: 700;
}

.hall { overflow-x: auto; padding-bottom: 10px; text-align: center; }
.hall__inner { display: inline-block; min-width: min(100%, 320px); }
.sector { margin-bottom: 22px; }
.sector__name {
  font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 9px; text-align: center;
}
.seat-line { display: flex; align-items: center; gap: 10px; justify-content: center; margin-bottom: 4px; }
.seat-row { display: grid; grid-template-columns: repeat(var(--cols, 20), 21px); gap: 4px; }
.seat-row__no {
  width: 20px; flex: 0 0 20px; text-align: center; font-size: 10.5px; color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.seat {
  width: 21px; height: 21px; border-radius: 5px; border: 0; padding: 0; cursor: pointer;
  background: var(--zone, #4c6ef5); opacity: .82; transition: transform .1s, opacity .1s;
  position: relative;
}
.seat:hover { transform: scale(1.22); opacity: 1; z-index: 2; }
.seat--busy { background: var(--line-2) !important; cursor: not-allowed; opacity: .55; }
.seat--busy:hover { transform: none; }
.seat--sel {
  background: var(--ink) !important; opacity: 1;
  box-shadow: 0 0 0 2px var(--accent);
}
.seat--gap { background: transparent !important; cursor: default; pointer-events: none; }

.legend { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; font-size: 13px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__swatch { width: 13px; height: 13px; border-radius: 4px; }

.cart { position: sticky; top: calc(var(--header-h) + 16px); }
.cart__list { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; max-height: 260px; overflow-y: auto; }
.cart__item {
  display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  padding: 8px 10px; background: var(--bg-2); border-radius: var(--r-sm);
}
.cart__item b { font-weight: 650; }
.cart__x {
  margin-left: auto; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-4); font-size: 17px; line-height: 1; padding: 0 2px;
}
.cart__x:hover { color: var(--bad); }
.cart__total { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.cart__total--big { font-size: 19px; font-weight: 750; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.cart__empty { color: var(--ink-4); font-size: 14px; padding: 18px 0; text-align: center; }

.timer {
  display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums;
  background: var(--mid-soft); color: var(--mid); padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}

/* --------------------------------------------------------------- билет */

.ticket {
  display: grid; grid-template-columns: 1fr 168px; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden; background: var(--bg); margin-bottom: 14px;
}
.ticket__body { padding: 20px 22px; }
.ticket__stub {
  border-left: 2px dashed var(--line-2); padding: 18px; display: grid;
  place-items: center; gap: 8px; background: var(--bg-2); text-align: center;
}
.ticket__stub img { width: 118px; height: 118px; }
.ticket__code { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--ink-3); }
.ticket__title { font-size: 19px; font-weight: 750; margin-bottom: 4px; }
.ticket__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 14px; margin-top: 16px; }
.ticket__k { font-size: 11.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .06em; }
.ticket__v { font-size: 15px; font-weight: 650; }

.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.status--paid { background: var(--good-soft); color: var(--good); }
.status--pending { background: var(--mid-soft); color: var(--mid); }
.status--cancelled, .status--expired { background: var(--bg-3); color: var(--ink-3); }
.status--refunded { background: var(--accent-soft); color: var(--accent); }

/* --------------------------------------------------------------- прочее */

.pager { display: flex; gap: 6px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: 14px; font-weight: 600;
}
.pager a:hover { border-color: var(--ink); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.empty { text-align: center; padding: 60px 20px; color: var(--ink-3); }
.empty__icon { font-size: 42px; margin-bottom: 12px; }
.empty h3 { margin-bottom: 8px; color: var(--ink); }

.venue-card {
  display: flex; gap: 14px; padding: 14px; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--bg);
}
.venue-card:hover { box-shadow: var(--shadow-2); }
.venue-card img { width: 108px; height: 78px; border-radius: var(--r-sm); object-fit: cover; flex-shrink: 0; }
.venue-card__name { font-weight: 700; font-size: 15.5px; margin-bottom: 3px; }
.venue-card__meta { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

.article-card { display: flex; flex-direction: column; gap: 10px; }
.article-card img { aspect-ratio: 3/2; border-radius: var(--r); object-fit: cover; background: var(--bg-3); }
.article-card:hover img { opacity: .92; }
.article-card__rubric { font-size: 11.5px; font-weight: 750; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; }
.article-card__title { font-size: 16px; font-weight: 700; line-height: 1.3; }
.article-card:hover .article-card__title { color: var(--accent); }
.article-card__lede { font-size: 13.5px; color: var(--ink-3); line-height: 1.45; }

.collection-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  aspect-ratio: 3/2; display: flex; align-items: flex-end; background: var(--bg-3);
}
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-card__body { position: relative; padding: 16px; color: #fff; }
.collection-card__title { font-size: 18px; font-weight: 780; margin-bottom: 3px; }
.collection-card__sub { font-size: 13px; opacity: .85; }
.collection-card:hover img { transform: scale(1.03); transition: transform .3s; }

.subscribe {
  background: var(--bg-2); border-radius: var(--r-xl); padding: 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin: 40px 0;
}
.subscribe h2 { margin-bottom: 6px; }
.subscribe form { display: flex; gap: 8px; }
.subscribe .input { width: 260px; }

/* таблицы админки */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-4); padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: var(--bg-2); }
.table__thumb { width: 34px; height: 50px; border-radius: 5px; object-fit: cover; }

.admin-nav { display: flex; gap: 6px; margin: 18px 0 24px; flex-wrap: wrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 26px; }
.stat {
  padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg);
}
.stat__v { font-size: 27px; font-weight: 780; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat__k { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

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

.footer {
  margin-top: 60px; border-top: 1px solid var(--line);
  background: var(--bg-2); padding: 40px 0 28px;
}
.footer__cols {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 30px; margin-bottom: 30px;
}
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer a { font-size: 14px; color: var(--ink-2); }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-4);
}
.footer__note { max-width: 62ch; line-height: 1.5; }

/* --------------------------------------------------------------- модалка городов */

.modal {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(10,12,16,.5); backdrop-filter: blur(3px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: var(--bg); border-radius: var(--r-xl); padding: 26px;
  max-width: 620px; width: 100%; max-height: 80vh; overflow-y: auto; box-shadow: var(--shadow-3);
}
.modal__head { display: flex; align-items: center; margin-bottom: 18px; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: 8px; }
.city-grid button {
  text-align: left; padding: 10px 13px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--bg-2); cursor: pointer; font-size: 14.5px; font-weight: 600;
}
.city-grid button:hover { background: var(--bg-3); }
.city-grid button.is-active { background: var(--accent); color: #fff; }

/* --------------------------------------------------------------- адаптив */

@media (max-width: 1080px) {
  .layout, .seat-layout { grid-template-columns: 1fr; }
  .layout--reverse { grid-template-columns: 1fr; }
  .cart { position: static; }
  .hero { grid-template-columns: 1fr; }
  .hero__col { grid-template-rows: auto auto; }
}

@media (max-width: 860px) {
  .ev-hero__inner { grid-template-columns: 150px 1fr; gap: 20px; padding: 24px 0 28px; }
  .sched__group { grid-template-columns: 1fr; gap: 12px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .subscribe { grid-template-columns: 1fr; }
  .subscribe .input { width: 100%; }
  .subscribe form { flex-direction: column; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__stub { border-left: 0; border-top: 2px dashed var(--line-2); }
}

@media (max-width: 640px) {
  :root { --gutter: 14px; --header-h: 56px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px 12px; }
  .rail__track { grid-auto-columns: 140px; }
  .rail__track--wide { grid-auto-columns: 250px; }
  .search { display: none; }
  .search.is-mobile-open { display: block; position: absolute; left: 14px; right: 14px; top: 9px; z-index: 80; }
  .ev-hero__inner { grid-template-columns: 110px 1fr; }
  .ev-hero__rates { gap: 14px; }
  .footer__cols { grid-template-columns: 1fr; gap: 22px; }
  .table { font-size: 13px; }
  .table th:nth-child(n+4), .table td:nth-child(n+4) { display: none; }
}

@media print {
  .header, .subnav, .footer, .btn, .no-print { display: none !important; }
  .ticket { break-inside: avoid; border: 1px solid #999; }
}

/* --------------------------------------------------------------- входной билет */

.capacity { margin-bottom: 18px; }
.capacity__bar {
  height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; margin-bottom: 8px;
}
/* заполнение = сколько уже продано: чем краснее, тем меньше осталось */
.capacity__bar span {
  display: block; height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--good), var(--mid) 70%, var(--bad));
}
.capacity__text { font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.capacity__text b { color: var(--ink); }

.tariffs { display: flex; flex-direction: column; gap: 10px; }
.tariff {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg); transition: border-color .15s;
}
.tariff:hover { border-color: var(--line-2); }
.tariff.is-picked { border-color: var(--accent); background: var(--accent-soft); }
.tariff__dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.tariff__info { flex: 1; min-width: 0; }
.tariff__name { font-weight: 650; font-size: 15px; }
.tariff__desc { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.tariff__price { font-weight: 700; font-size: 15px; white-space: nowrap; }

.stepper {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; background: var(--bg);
}
.stepper__btn {
  width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent;
  cursor: pointer; font-size: 17px; line-height: 1; color: var(--ink-2);
}
.stepper__btn:hover:not(:disabled) { background: var(--bg-3); color: var(--ink); }
.stepper__btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper__val {
  width: 34px; height: 30px; border: 0; background: transparent; text-align: center;
  font-size: 15px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__val::-webkit-outer-spin-button,
.stepper__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__val:focus { outline: none; }

.time__f--muted { color: var(--ink-4) !important; font-weight: 650; }

@media (max-width: 520px) {
  .tariff { flex-wrap: wrap; }
  .tariff__price { order: 3; margin-left: 22px; }
  .stepper { margin-left: auto; }
}

/* ==========================================================================
   Панель управления
   ========================================================================== */

.adm-body { background: var(--bg-2); }

.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }

.adm__side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-inverse); color: color-mix(in srgb, var(--bg) 78%, transparent);
  padding: 18px 12px 12px;
}
.adm__logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.adm__logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}
.adm__logo b { display: block; font-size: 15px; color: var(--bg); }
.adm__logo i { display: block; font-size: 11px; font-style: normal; opacity: .55; }

.adm__nav { display: flex; flex-direction: column; gap: 1px; overflow-y: auto; flex: 1; }
.adm__group {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em;
  opacity: .42; padding: 16px 10px 6px; font-weight: 700;
}
.adm__link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-radius: 9px; font-size: 14px; font-weight: 550;
  color: color-mix(in srgb, var(--bg) 78%, transparent);
}
.adm__link:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); color: var(--bg); }
.adm__link.is-active { background: var(--accent); color: #fff; }
.adm__icon { width: 18px; text-align: center; font-size: 13px; opacity: .9; }
.adm__side-foot { padding: 12px 10px 0; border-top: 1px solid color-mix(in srgb, var(--bg) 12%, transparent); }
.adm__back { font-size: 13px; opacity: .7; }
.adm__back:hover { opacity: 1; }

.adm__main { display: flex; flex-direction: column; min-width: 0; }
.adm__top {
  display: flex; align-items: center; gap: 14px; padding: 14px 26px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.adm__title { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.adm__me { display: flex; align-items: center; gap: 9px; }
.adm__me-name { font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.adm__me-out { font-size: 12px; color: var(--ink-3); }
.adm__me-out:hover { color: var(--accent); }
.adm__content { padding: 22px 26px 60px; max-width: 1400px; width: 100%; }

.adm-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px 20px; margin-bottom: 18px;
}
.adm-card--flush { padding: 0; overflow: hidden; }
.adm-card__head {
  display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px;
}
.adm-card__head h2 { font-size: 17px; }
.adm-card--flush .adm-card__head { padding: 16px 20px 0; margin-bottom: 0; }

.adm-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.adm-filters .select, .adm-filters .input { height: 36px; font-size: 13.5px; }
.adm-filters .select { width: auto; min-width: 140px; }

.adm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.adm-grid--2 { grid-template-columns: minmax(0,2fr) minmax(0,1fr); align-items: start; }
@media (max-width: 1100px) { .adm-grid--2 { grid-template-columns: 1fr; } }

.adm-stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px 17px;
}
.adm-stat__v { font-size: 26px; font-weight: 780; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-stat__k { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.adm-stat__hint { font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }
.adm-stat--accent { border-color: var(--accent); }
.adm-stat--accent .adm-stat__v { color: var(--accent); }

.adm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-table th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-4); font-weight: 700; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-2);
  position: sticky; top: 0;
}
.adm-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tbody tr:hover td { background: var(--bg-2); }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table__thumb { width: 32px; height: 48px; border-radius: 5px; object-fit: cover; background: var(--bg-3); }
.adm-table__actions { display: flex; gap: 6px; justify-content: flex-end; }
.adm-table code { font-size: 12px; color: var(--ink-3); }
.adm-scroll { overflow-x: auto; }

.adm-form { display: grid; gap: 16px; }
.adm-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-start; }
.adm-row > .field { flex: 1 1 200px; min-width: 0; }
.adm-row > .field--sm { flex: 0 0 130px; }
.adm-row > .field--xs { flex: 0 0 100px; }
.adm-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  padding-top: 6px; border-top: 1px solid var(--line); margin-top: 4px;
}
.adm-hint { font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.adm-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.adm-chips .checkbox {
  border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; font-size: 13px;
}
.adm-chips .checkbox:has(input:checked) {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent);
}

.adm-cast { display: flex; flex-direction: column; gap: 8px; }
.adm-cast__row { display: flex; gap: 8px; align-items: center; }
.adm-cast__row .select { flex: 2; }
.adm-cast__row .input { flex: 2; }
.adm-cast__row .select--role { flex: 1; min-width: 130px; }

.adm-pick { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.adm-pick label { display: flex; gap: 9px; align-items: center; padding: 5px 6px; border-radius: 7px; font-size: 13.5px; }
.adm-pick label:hover { background: var(--bg-2); }

.adm-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }

.badge-role {
  display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.badge-role--admin { background: var(--accent-soft); color: var(--accent); }
.badge-role--editor { background: var(--mid-soft); color: var(--mid); }
.badge-role--user { background: var(--bg-3); color: var(--ink-3); }

.dot-state { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-state--on { background: var(--good); }
.dot-state--off { background: var(--ink-4); }

@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm__side {
    position: static; height: auto; flex-direction: row; align-items: center;
    gap: 10px; overflow-x: auto; padding: 10px 12px;
  }
  .adm__nav { flex-direction: row; gap: 4px; overflow-x: auto; }
  .adm__group, .adm__side-foot, .adm__logo i { display: none; }
  .adm__link { white-space: nowrap; }
  .adm__content { padding: 16px 14px 50px; }
  .adm__top { padding: 12px 14px; }
}
