/* Montserrat — локально (OFL), без запросов к Google */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-300-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-300-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/montserrat-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Liana";
  src: url("/assets/fonts/liana.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Палитра брендбука «Ты Уникальная» */
  --black: #000;
  --graphite: #1b1b1b;
  --smoke: #4c4c4c;
  --mist: #a9a9a9;
  --white: #fff;
  --gold: #c9a24a;
  --gold-pale: #ecd8a0;
  --gold-deep: #94702f;
  --gold-metal: linear-gradient(100deg, #8f6a2b 0%, #e8d29a 38%, #c9a24a 58%, #f1e2b4 76%, #a07a33 100%);
  --line: #262219;
  --danger: #f0907b;

  --font: "Montserrat", system-ui, sans-serif;
  --script: "Liana", "Segoe Script", cursive;

  --page: min(1180px, 100% - 48px);
  --cart-h: 0px;

  color-scheme: dark;
  accent-color: var(--gold);
}

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

html { scroll-behavior: smooth; scrollbar-color: #3a3020 var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--gold);
}

::selection { background: var(--gold-pale); color: var(--black); }

img { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold-pale);
  outline-offset: 3px;
}

h1, h2 { margin: 0; font-weight: 400; }

/* Заголовки разделов — как на печатных билетах: прописные с разрядкой */
/* Абзацы без одиноких слов в последней строке */
p, li, dd { text-wrap: pretty; }
h1, h3 { text-wrap: balance; }

h2 {
  font-size: clamp(20px, 2.3vw, 28px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-wrap: balance;
}

.sprite { position: absolute; }

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.muted { color: var(--mist); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .2s, transform .2s, box-shadow .2s;
}

.btn-gold {
  background: var(--gold-metal);
  color: var(--black);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-gold:active { transform: translateY(1px); }
.btn-gold:disabled { filter: grayscale(.6) brightness(.7); cursor: progress; }

.btn-ghost {
  background: transparent;
  color: var(--gold-pale);
  box-shadow: inset 0 0 0 1px var(--gold-deep);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--gold-pale); }

.btn-wide { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

.link-gold {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--gold-pale);
  text-decoration: underline;
  text-decoration-color: var(--gold-deep);
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-gold:hover { text-decoration-color: var(--gold-pale); }

/* ---------- Шапка ---------- */

.top {
  width: var(--page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.brand img { width: 34px; height: auto; }

.top-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
}
.top-nav a { text-decoration: none; color: var(--mist); }
.top-nav a:hover { color: var(--white); }

.top-phone {
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--gold-pale);
}

/* ---------- Hero: фирменный билет ---------- */

.hero {
  width: var(--page);
  margin: 24px auto 0;
}

.ticket {
  --notch: 22px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 260px;
  min-height: 520px;
  border-radius: 18px;
  background:
    url("/assets/wave.jpg") right -80px bottom -40px / auto 115% no-repeat,
    radial-gradient(120% 90% at 0% 100%, #2a1f0c 0%, transparent 55%),
    var(--black);
  box-shadow: 0 0 0 1px #2b2416, 0 36px 80px -36px rgba(0, 0, 0, .9);
  /* вырезы по линии отрыва */
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - 260px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 260px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at calc(100% - 260px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - 260px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}

.ticket-main {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 44px 48px 40px;
  gap: 24px;
}

/* Золотое фольгирование заголовка, как на печатном билете из брендбука. Единственный металлический текст на сайте */
.ticket-title {
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-metal);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: sheen 2.4s .3s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes sheen {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.ticket-when {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 14px 0 0;
  font-size: clamp(17px, 1.8vw, 22px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ticket-logo {
  align-self: center;
  justify-self: center;
  text-align: center;
  transform: translateX(-12%);
}
.ticket-logo img { width: 120px; height: auto; margin: 0 auto; }
.wordmark {
  margin: 10px 0 0;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.1em;
}
.script {
  margin: 4px 0 0;
  font-family: var(--script);
  font-size: 34px;
  line-height: 1.2;
  color: var(--gold-pale);
}

.ticket-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.ticket-seat {
  display: grid;
  gap: 10px;
  margin: 0;
}
.ticket-seat div { display: grid; grid-template-columns: 64px auto; align-items: center; }
.ticket-seat dt { font-size: 15px; }
.ticket-seat dd {
  margin: 0;
  min-width: 108px;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--gold-pale);
  color: var(--black);
  font-size: 14px;
  font-weight: 600;
}

/* Тёмная подложка под текстом, который лежит на ленте */
.ticket-place {
  position: relative;
  text-align: right;
  isolation: isolate;
}
.ticket-place::before {
  content: "";
  position: absolute;
  inset: -28px -36px -24px -48px;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .85), rgba(0, 0, 0, .6) 60%, transparent);
}
.ticket-place p { margin: 0; }
.ticket-time { font-size: 14px; color: #c9c9c9; }
.ticket-time span { color: var(--white); }
.ticket-venue { margin-top: 12px !important; font-size: 22px; font-weight: 500; }
.ticket-address { font-size: 14px; color: #c9c9c9; }

.ticket-stub {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 40px 32px 40px 28px;
  border-left: 2px dashed rgba(236, 216, 160, .35);
  background: rgba(0, 0, 0, .82);
}

.stub-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.9em;
  font-size: 15px;
  color: var(--mist);
}

.stub-body {
  display: grid;
  gap: 18px;
  justify-items: start;
}
.stub-price {
  margin: 0;
  font-size: 15px;
  color: var(--mist);
}
.stub-price span {
  display: block;
  font-size: 30px;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

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

.hall {
  width: var(--page);
  margin: 110px auto 0;
  scroll-margin-top: 24px;
}
.hall h2:focus { outline: none; }

.hall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 48px;
  flex-wrap: wrap;
}

.hall-note {
  max-width: 60ch;
  margin: 12px 0 0;
  color: var(--mist);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.legend li { display: flex; align-items: center; gap: 10px; }
.legend b { font-weight: 600; }

/* Три цены — три разных материала: заливка, контур, тонкий контур */
.swatch {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  flex: none;
}
.swatch.cat-a { background: #e3c77f; }
.swatch.cat-b { background: rgba(201, 162, 74, .25); box-shadow: inset 0 0 0 1.5px var(--gold); }
.swatch.cat-c { box-shadow: inset 0 0 0 1px #8a6a30; }
.swatch.sold { background: var(--graphite); }
.swatch.picked { background: var(--white); box-shadow: inset 0 0 0 2px var(--gold); }

.map-status {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: #2a1512;
  color: var(--danger);
}

@media (pointer: coarse) { .kbd-hint { display: none; } }

.map-hint { display: none; margin: 20px 0 0; font-size: 14px; color: var(--mist); }

.map-frame {
  position: relative;
  margin-top: 28px;
  border-radius: 18px;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(201, 162, 74, .14), transparent 70%),
    #070707;
  box-shadow: 0 0 0 1px #1d1a14;
  overflow: hidden;
}

/* Затемнение краёв, когда схема шире окна */
.map-frame::before,
.map-frame::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.map-frame::before { left: 0; background: linear-gradient(90deg, #070707, transparent); }
.map-frame::after { right: 0; background: linear-gradient(-90deg, #070707, transparent); }
.map-frame.fade-left::before,
.map-frame.fade-right::after { opacity: 1; }

.map-tools {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  display: flex;
  gap: 6px;
}
.tool,
.edge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
}
.tool:hover, .edge:hover { background: #2a2a2a; }
.tool:disabled { opacity: .35; cursor: default; }

.edge {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 56px;
  transform: translateY(-50%);
  background: rgba(27, 27, 27, .92);
}
.edge-left { left: 8px; }
.edge-right { right: 8px; }
.edge[hidden] { display: none; }

.map-scroll {
  overflow: auto;
  padding: 28px 20px 32px;
  overscroll-behavior-x: contain;
  scrollbar-color: #3a3020 transparent;
}

.map { margin: 0 auto; }
.map svg { display: block; width: 100%; height: auto; }

.seat rect { transition: fill .15s, stroke .15s; }
.seat text {
  font: 500 11px var(--font);
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  fill: #e9e2cf;
}

.seat.free { cursor: pointer; }
.seat.cat-a rect { fill: #e3c77f; stroke: #e3c77f; }
.seat.cat-a text { fill: #1a1408; font-weight: 600; }
.seat.cat-b rect { fill: rgba(201, 162, 74, .25); stroke: var(--gold); stroke-width: 1.4; }
.seat.cat-c rect { fill: transparent; stroke: #8a6a30; stroke-width: 1; }
.seat.cat-c text { fill: var(--gold-pale); }

.seat.free:hover rect,
.seat.free:focus-visible rect { fill: #f6ead0; stroke: var(--white); }
.seat.free:hover text,
.seat.free:focus-visible text { fill: var(--black); }
.seat.free:focus-visible { outline: none; }
.seat.free:focus-visible rect { stroke-width: 3; }

.seat.picked rect { fill: var(--white); stroke: var(--gold); stroke-width: 3; }
.seat.picked text { fill: var(--black); font-weight: 600; }

.seat.sold rect { fill: var(--graphite); stroke: none; }
.seat.sold text { fill: var(--smoke); font-weight: 500; }

.row-num {
  font: 400 12px var(--font);
  fill: var(--smoke);
  text-anchor: middle;
  dominant-baseline: central;
}
.row-num.open { fill: var(--mist); }

.stage-text {
  font: 500 15px var(--font);
  letter-spacing: 0.5em;
  fill: var(--black);
  text-anchor: middle;
  dominant-baseline: central;
}

.band-line { stroke: #3a3020; stroke-width: 1; stroke-dasharray: 2 4; }
.band-bracket { stroke-width: 2; stroke-linecap: round; }
.band-bracket.cat-a { stroke: #e3c77f; }
.band-bracket.cat-b { stroke: var(--gold); }
.band-bracket.cat-c { stroke: #8a6a30; }
.band-price {
  font: 600 12px var(--font);
  fill: var(--gold-pale);
  text-anchor: end;
  dominant-baseline: central;
  font-variant-numeric: tabular-nums;
}

.tip {
  position: fixed;
  z-index: 30;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  line-height: 1.35;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 12px));
  white-space: nowrap;
}
.tip b { font-weight: 600; }

/* ---------- Корзина ---------- */

.cart {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  padding: 0 12px 12px;
  animation: rise .25s cubic-bezier(.16, 1, .3, 1);
}
.cart[hidden] { display: none; }

@keyframes rise {
  from { transform: translateY(100%); }
  to { transform: none; }
}

/* Корзина не закрывает последние ряды и подвал */
body.has-cart .hall { padding-bottom: 96px; }
body.has-cart .foot { padding-bottom: 180px; }

.cart-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 12px 12px 20px;
  border-radius: 16px;
  background: #15130f;
  box-shadow: 0 0 0 1px #3a3020, 0 18px 40px -12px rgba(0, 0, 0, .9);
}

.cart-seats {
  flex: 1;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.cart-seats li {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: #2a251a;
  font-size: 13px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cart-seats li b { font-weight: 600; color: var(--gold-pale); }
.cart-seats button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}
.cart-seats button .icon { width: 16px; height: 16px; }
.cart-seats button:hover { background: #3b3424; color: var(--white); }

.cart-sum {
  display: flex;
  align-items: center;
  gap: 18px;
}
.cart-sum p {
  margin: 0;
  display: grid;
  text-align: right;
  font-size: 13px;
  line-height: 1.3;
  color: var(--mist);
}
.cart-sum strong {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 120px;
  z-index: 40;
  max-width: min(520px, calc(100% - 32px));
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--white);
  color: var(--black);
  font-size: 14px;
}

/* ---------- О конкурсе ---------- */

.about {
  position: relative;
  width: var(--page);
  margin: 140px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: 48px;
}
.about-stars {
  width: 100%;
  max-width: 400px;
  justify-self: center;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(closest-side, #000 75%, transparent);
          mask-image: radial-gradient(closest-side, #000 75%, transparent);
}
.about-text { max-width: 62ch; }
.about-text p { color: #d6d6d6; }
.about-text h2 { margin-bottom: 20px; }

/* ---------- FAQ ---------- */

.faq {
  width: min(820px, 100% - 48px);
  margin: 120px auto 0;
}
.faq h2 { margin-bottom: 28px; }

details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  font-size: 18px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
/* Плюс, превращающийся в крестик */
summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.75px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.75px 100% no-repeat;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}
details[open] summary::after { transform: rotate(45deg); }
details p { max-width: 64ch; margin: 0 0 24px; color: #cfcfcf; }
details a { color: var(--gold-pale); }

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

.foot {
  width: var(--page);
  margin: 120px auto 0;
  padding: 36px 0 64px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 36px;
  font-size: 14px;
  color: var(--mist);
}
.foot p { margin: 0; }
.foot a { color: var(--white); text-decoration: none; }
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--white);
  font-weight: 300;
  letter-spacing: 0.12em;
}
.foot-brand img { width: 28px; height: auto; }
/* Реквизиты и документы — отдельной строкой под основным подвалом */
.foot-legal {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 20px;
  border-top: 1px solid #17150f;
  font-size: 13px;
}
.foot-legal a { color: var(--mist); text-decoration: underline; text-underline-offset: 3px; }
.foot-legal a:hover { color: var(--white); }

/* ---------- Оформление ---------- */

.checkout {
  width: min(560px, 100% - 24px);
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #0c0b09;
  color: var(--white);
  box-shadow: 0 0 0 1px #3a3020, 0 40px 100px -20px rgba(0, 0, 0, .9);
}
.checkout.wide { width: min(760px, 100% - 24px); }
.checkout::backdrop { background: rgba(0, 0, 0, .78); }
.checkout[open] { animation: dialog-in .3s cubic-bezier(.16, 1, .3, 1); }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.checkout-step {
  padding: 36px 36px 32px;
}
.checkout h2 { font-size: 20px; padding-right: 48px; }
.checkout h2:focus { outline: none; }

.close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
}
.close:hover { background: #2a2a2a; }

.order-list {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.order-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #221e16;
}
.order-list li:last-child {
  border: 0;
  padding-top: 14px;
  font-size: 18px;
  font-weight: 600;
}

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field span { font-size: 13px; color: var(--mist); }
.field input {
  height: 50px;
  padding: 0 16px;
  border: 1px solid #2f2a20;
  border-radius: 10px;
  background: #15130f;
  color: var(--white);
  font: 400 16px var(--font);
}
.field input::placeholder { color: #8a8478; }
.field input:focus { outline: none; border-color: var(--gold); }
.field input[aria-invalid="true"] { border-color: #e0705a; }

.field-error {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--danger);
}
.field-error:empty { display: none; }

.pay-methods {
  display: grid;
  gap: 8px;
  margin: 6px 0 16px;
  padding: 0;
  border: 0;
}
.pay-methods[hidden] { display: none; }
.pay-methods legend { margin-bottom: 8px; padding: 0; font-size: 13px; color: var(--mist); }

.pay-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: #15130f;
  box-shadow: inset 0 0 0 1px #2f2a20;
  cursor: pointer;
  transition: box-shadow .15s;
}
.pay-option[hidden] { display: none; }
.pay-option:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--gold); }
.pay-option input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; }
.pay-option b { display: block; font-weight: 500; }
.pay-option small { display: block; margin-top: 2px; font-size: 13px; color: var(--mist); }

.check {
  display: flex;
  gap: 12px;
  margin: 6px 0 6px;
  font-size: 14px;
  color: #cfcfcf;
  cursor: pointer;
}
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.check a { color: var(--gold-pale); }

.form-error {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #2a1512;
  color: var(--danger);
  font-size: 14px;
}

#pay-btn { margin-top: 18px; }

.test-note {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--mist);
  text-align: center;
}

/* Шаг СБП */
.sbp {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 24px;
}
.sbp-qr {
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
}
.sbp-qr svg { display: block; width: 100%; height: auto; }
.sbp-facts { display: grid; gap: 12px; margin: 0; }
.sbp-facts dt { font-size: 13px; color: var(--mist); }
.sbp-facts dd { margin: 0; font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sbp-steps { margin: 24px 0 0; padding-left: 20px; color: #cfcfcf; font-size: 14px; }
.sbp-steps li + li { margin-top: 6px; }
.sbp-hold { margin: 16px 0 0; font-size: 14px; color: var(--gold-pale); }
.sbp-cancel { margin: 18px 0 0; text-align: center; font-size: 14px; }

.spinner {
  width: 36px;
  height: 36px;
  margin: 24px auto 4px;
  border-radius: 50%;
  border: 2px solid #3a3020;
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.done-note { color: #cfcfcf; margin: 12px 0 22px; }

.tickets { display: grid; gap: 14px; }

.mini-ticket {
  display: grid;
  grid-template-columns: 1fr 136px;
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .88) 35%, rgba(0, 0, 0, .25) 80%),
    url("/assets/wave.jpg") right 100px center / auto 160% no-repeat,
    var(--black);
  box-shadow: 0 0 0 1px #2b2416;
}
.mini-main { padding: 18px 20px; }
.mini-main h2,
.mini-main h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.mini-main p { margin: 4px 0 0; font-size: 13px; color: #bdbdbd; }
.mini-seat { display: flex; gap: 10px; margin: 14px 0 6px; }
.mini-seat span {
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--gold-pale);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
}
.mini-stub {
  display: grid;
  place-content: center;
  padding: 14px;
  border-left: 2px dashed rgba(236, 216, 160, .35);
  background: rgba(0, 0, 0, .7);
}
.mini-qr img,
.mini-qr svg {
  display: block;
  width: 104px;
  height: 104px;
  padding: 6px;
  border-radius: 8px;
  background: var(--white);
}

.done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- Простые страницы: билеты, проверка, вход ---------- */

.plain-main { width: var(--page); margin: 24px auto 80px; }
.plain-card {
  max-width: 520px;
  margin: 40px auto 0;
  padding: 32px;
  border-radius: 18px;
  background: #0c0b09;
  box-shadow: 0 0 0 1px #3a3020;
}
.plain-card h1, .plain-wide h1 { font-size: 24px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }
.plain-card p { color: #cfcfcf; }
.plain-wide { max-width: 760px; margin: 24px auto 0; }
.check-ok { box-shadow: 0 0 0 2px #6fbf73; }
.check-ok h1 { color: #9be29f; }
.check-bad { box-shadow: 0 0 0 2px #e0705a; }
.check-bad h1 { color: var(--danger); }
.check-seat { font-size: 28px; font-weight: 600; color: var(--white) !important; margin: 8px 0; }
.admin-login .btn { margin-top: 10px; }

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

@media (max-width: 960px) {
  .top-nav { display: none; }
  .top-phone { margin-left: auto; }

  .ticket {
    grid-template-columns: 1fr;
    min-height: 0;
    background:
      linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .45) 72%, rgba(0, 0, 0, .8) 90%),
      url("/assets/wave.jpg") 62% 50% / auto 100% no-repeat,
      var(--black);
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - 116px), transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - 116px), transparent 98%, #000) right / 51% 100% no-repeat;
            mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - 116px), transparent 98%, #000) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - 116px), transparent 98%, #000) right / 51% 100% no-repeat;
  }
  .ticket-main { padding: 28px 24px 24px; gap: 18px; }
  .ticket-logo { transform: none; margin: 0; }
  .ticket-logo img { width: 84px; }
  .wordmark { font-size: 18px; margin-top: 6px; }
  .script { font-size: 28px; }
  .ticket-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .ticket-place { text-align: left; }
  .ticket-place::before { inset: -16px -24px; }

  .ticket-stub {
    height: 116px;
    padding: 20px 24px;
    border-left: 0;
    border-top: 2px dashed rgba(236, 216, 160, .35);
  }
  .stub-label { display: none; }
  .stub-body {
    width: 100%;
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }

  .about { grid-template-columns: 1fr; gap: 8px; margin-top: 100px; }
  .about-stars { max-width: 200px; }
}

@media (max-width: 640px) {
  :root { --page: calc(100% - 28px); }
  body { font-size: 15px; }
  .brand span { display: none; }
  .hero { margin-top: 8px; }
  .hall { margin-top: 72px; }
  .hall-note { margin-top: 8px; }
  .map-hint { display: block; }
  .map-frame { margin: 12px -14px 0; border-radius: 0; }
  .map-scroll { padding: 64px 14px 24px; }

  body.has-cart .hall { padding-bottom: 150px; }
  .cart-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .cart-sum { justify-content: space-between; }
  .cart-sum p { text-align: left; }

  .checkout-step { padding: 26px 20px 22px; }
  .close { top: 16px; right: 14px; }
  .sbp { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .sbp-qr { width: 200px; }
  .done-actions { justify-content: stretch; }
  .done-actions .btn { flex: 1 1 100%; }
  .mini-ticket { grid-template-columns: 1fr 112px; }
  .mini-qr img, .mini-qr svg { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticket-title { background-position: 0 0; }
  /* Вращение спиннера не укачивает и показывает, что ждём оплату: оставляем, но медленнее */
  .spinner { animation: spin 2.4s linear infinite !important; }
}

/* ---------- Печать билетов ---------- */

@media print {
  .top, .done-actions, .done-note { display: none !important; }
  .mini-ticket { break-inside: avoid; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

/* Оферта и политика: спокойная колонка для чтения */
.doc { max-width: 68ch; margin: 0 auto; padding-bottom: 64px; }
.doc h1 { font-size: clamp(24px, 4vw, 32px); margin: 8px 0 12px; }
.doc h2 { margin: 36px 0 10px; font-size: 16px; }
.doc p, .doc li { color: #cfcfcf; line-height: 1.7; }
.doc ul { padding-left: 1.2em; }
.doc-lead { color: var(--mist) !important; }
.doc-back { margin-top: 48px; }

/* Телефон не рвётся посередине номера */
a[href^="tel:"] { white-space: nowrap; }
