@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/montserrat-cyrillic.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 700;
  font-display: swap;
  src: url("/fonts/montserrat-latin.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;
}

:root {
  /* Скин заведения. Касса подменяет --brand и --paper.
     Кнопки и акценты читают --brand. Сетка повторяет wooobbq.ru:
     Montserrat, Arial Black, белый фон, красный #cf1111, карточки #f4f5f7. */
  --brand: #cf1111;
  --brand-deep: #9d0d0d;
  --paper: #ffffff;
  --paper-ink: #252525;
  --bg: #ffffff;
  --bg-2: #f4f5f7;
  --ink: #252525;
  --muted: #5e5e5e;
  --line: rgba(15, 15, 15, 0.12);
  --dark: #0f0f0f;
  --sans: "Montserrat", "Segoe UI", Arial, sans-serif;
  --head: "Arial Black", Arial, Gadget, sans-serif;
  --ketchup: var(--brand);
  --mustard: var(--brand);
  --lettuce: #1f7a3a;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
}
button, input, a { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
a { color: var(--brand); text-decoration-thickness: 1px; }

.logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: min(240px, 70vw);
  object-fit: contain;
}
.mark {
  margin: 0;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 20px;
  color: var(--brand);
}
.brand-lockup { display: flex; align-items: flex-end; gap: 14px; }
.brand-role {
  margin: 0 0 8px;
  font-family: var(--head);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--head); font-weight: 700; letter-spacing: 0; line-height: 1.2; }
h1 { font-size: 36px; }
h2 { font-size: 22px; }

.btn {
  border: 0;
  border-radius: 3px;
  padding: 13px 15px;
  background: var(--brand);
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.btn.paper {
  background: var(--paper);
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn:disabled { opacity: 0.45; cursor: default; }
.wide { width: 100%; }

.door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 160px;
  padding: 22px;
  border-radius: 42px;
  text-decoration: none;
  color: white;
  background: var(--brand);
}
.door.dark {
  background: var(--dark);
  color: white;
  border: 0;
}
.door strong { font-family: var(--head); font-size: 32px; letter-spacing: 0; line-height: 1.1; }
.door span { color: rgba(255, 255, 255, 0.86); }
.door.dark span { color: rgba(255, 255, 255, 0.72); }

.lobby { max-width: 980px; margin: 0 auto; padding: 28px 20px 64px; }
.lobby h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.15; margin: 16px 0 8px; }
.lede { font-size: 16px; max-width: 40rem; color: var(--muted); }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 28px; }
.steps article, .panel {
  border: 0;
  border-radius: 42px;
  padding: 18px 20px;
  background: var(--bg-2);
}
.steps b { display: block; color: var(--brand); font-family: var(--head); font-size: 14px; letter-spacing: 0.04em; }
.qr-row { display: flex; gap: 18px; align-items: center; }
.qr {
  background: white;
  padding: 8px;
  border-radius: 3px;
  line-height: 0;
  border: 2px solid var(--brand);
}
.qr svg { width: 168px; height: 168px; display: block; }
.url {
  word-break: break-all;
  font-family: Consolas, monospace;
  font-size: 14px;
  font-weight: 500;
}
.fine { color: var(--muted); font-size: 13px; }
.links { display: flex; gap: 16px; align-items: center; }

.marquee {
  overflow: hidden;
  height: 36px;
  background: var(--brand);
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.marquee p { margin: 8px 0; white-space: nowrap; animation: ticker 28s linear infinite; }

.hall-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
  gap: 22px;
  padding: 22px;
  min-height: calc(100vh - 36px);
}
.stage { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.record-wrap { display: grid; place-items: center; margin-bottom: 18px; }
.record {
  width: min(46vh, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 16%, var(--brand) 17.2% 21%, transparent 22%),
    repeating-radial-gradient(circle at 50% 50%, #1a1a1a 0 2px, #2a2a2a 3px 4px);
  box-shadow: 0 24px 50px rgba(15, 15, 15, 0.16), inset 0 0 0 12px #1a1a1a;
  position: relative;
}
.record.is-on { animation: spin 4.6s linear infinite; }
.record-pig {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
  background: white;
}
.mode {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 8px;
  padding: 4px 10px;
  border-radius: 3px;
  border: 1px solid var(--line);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
}
.mode-paid { background: var(--brand); color: white; border-color: transparent; }
.mode-house { color: var(--brand); border-color: var(--line); }
.stage h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin: 0; }
.who { margin: 8px 0; color: var(--brand); font-size: 18px; }
.artist { margin: 6px 0 0; color: var(--muted); }
.bar { height: 6px; border-radius: 3px; background: #ececee; overflow: hidden; margin-top: 18px; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand); }
.times { display: flex; justify-content: space-between; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
#bars { width: 100%; height: 48px; display: block; margin-top: 8px; }
.transport { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.transport input[type="range"] { width: 140px; }
.side { display: flex; flex-direction: column; gap: 14px; }
.side h2 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.ticket, .code-row, .track-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.ticket, .code-slip, .paper-card {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 20px;
  padding: 12px 14px;
  border: 0;
}
.paper-card { background: var(--bg-2); border-radius: 42px; padding: 18px 20px; }
.ticket + .ticket, .code-row + .code-row, .track-row + .track-row { margin-top: 8px; }
.ticket.is-now { box-shadow: inset 4px 0 0 var(--brand); }
.ticket .num { font-weight: 700; color: var(--brand); }
.ticket em, .fine-ink { font-style: normal; color: var(--muted); font-size: 13px; }
.queue, .house { list-style: none; margin: 0; padding: 0; }
.house li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.empty { color: var(--muted); }
.service { margin-top: 8px; }
.service form, .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.service input { width: 120px; }

.unlock {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
}
.unlock[hidden] { display: none; }
.unlock .card { max-width: 420px; }
.unlock .logo { margin: 0 auto 8px; }

.phone-wrap { width: min(480px, 100%); margin: 0 auto; padding: 0 16px 96px; }
.booth {
  margin: 0 -16px 16px;
  padding: 18px 16px 16px;
  background: #ffffff;
  color: var(--ink);
  border-bottom: 3px solid var(--brand);
}
.booth .mark, .booth h1, .booth .lede { color: var(--ink); }
.booth h1 { margin: 12px 0 4px; font-size: 32px; line-height: 1.15; }
.booth .lede { font-size: 15px; max-width: none; color: var(--muted); }
.booth input { margin-top: 12px; background: var(--bg-2); }

.nowbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  margin: 0 0 8px;
  background: var(--bg);
  border-bottom: 2px solid var(--brand);
}
.disc {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff url("/logo-mark.png") center / cover no-repeat;
  box-shadow: inset 0 0 0 2px var(--brand);
}
.kicker { margin: 0; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.nowbar h2, .song h3, .album h3 { margin: 0; font-family: var(--head); font-size: 18px; line-height: 1.2; }
.search { margin-top: 8px; }
.wallbox { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.pick {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: #ffffff;
  color: var(--paper-ink);
  border: 0;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 0 0 1px rgba(15, 15, 15, 0.08);
}
.pick .slot {
  display: grid;
  place-items: center;
  height: 52px;
  border-radius: 3px;
  background: var(--brand);
  color: white;
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pick strong { display: block; font-size: 16px; font-weight: 600; }
.pick small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; font-weight: 500; }
.pick .price { font-weight: 700; color: var(--brand); padding-right: 6px; white-space: nowrap; }
.sheet .btn.ghost { color: var(--paper-ink); border-color: rgba(15, 15, 15, 0.18); }
.sheet .kicker { color: var(--brand); }
.song p, .album p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
input[type="text"], input[type="search"], input[type="number"], input[type="password"], input[type="file"] {
  width: 100%;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 3px;
  padding: 12px 14px;
}
input[type="color"] {
  width: 72px;
  height: 42px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid rgba(15, 15, 15, 0.18);
  border-radius: 3px;
}
input[type="file"] { padding: 10px; }
.msg { min-height: 1.2em; color: var(--brand-deep); }
.sheet-back {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.4);
  z-index: 4;
}
.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  margin: 0 auto;
  width: min(480px, 100%);
  background: #ffffff;
  color: var(--ink);
  border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--brand);
}
.sheet h2 { font-family: var(--head); margin: 0 0 6px; }
.sheet .row { display: flex; gap: 8px; margin-top: 14px; }
.sheet .row .btn { flex: 1; }
details summary { cursor: pointer; color: var(--muted); margin: 14px 0 8px; }

.desk { max-width: 1100px; margin: 0 auto; padding: 22px 18px 72px; }
.desk-head, .split { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.desk-head .logo { height: 52px; }
.take { font-family: var(--head); font-size: 56px; line-height: 0.95; margin: 0; color: var(--brand); }
.fresh {
  margin: 12px 0;
  padding: 18px;
  border-radius: 20px;
  background: var(--brand);
  color: white;
}
.fresh b { display: block; font-size: 64px; letter-spacing: 0.12em; font-family: var(--head); line-height: 1; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline input { flex: 1; }
.checkline { display: flex; gap: 8px; align-items: center; color: var(--ink); margin: 10px 0; }
.track-row { grid-template-columns: 1fr auto; align-items: start; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.flags button, .tiny {
  border: 1px solid rgba(15, 15, 15, 0.16);
  background: #ffffff;
  color: var(--ink);
  border-radius: 3px;
  padding: 6px 10px;
}
.pin-wall {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg-2);
}
.pin-wall form {
  width: min(380px, 100%);
  background: #ffffff;
  color: var(--ink);
  border-radius: 42px;
  padding: 28px 24px;
  border: 0;
  box-shadow: 0 10px 30px rgba(15, 15, 15, 0.08);
  text-align: center;
}
.pin-wall .logo { margin: 0 auto 4px; }
.pin-wall h1 { margin: 8px 0 0; }
.pin-wall label, .pin-wall .fine, .pin-wall .msg { text-align: left; }

@media (max-width: 860px) {
  .doors, .steps, .hall-grid, .grid-2, .desk-head, .split, .pending-row { grid-template-columns: 1fr; display: grid; }
  .desk-head, .split { display: grid; }
  .qr-row { flex-direction: column; align-items: flex-start; }
  .record { width: min(70vw, 320px); }
}

@keyframes spin { to { transform: rotate(1turn); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .record.is-on, .marquee p { animation: none; }
}

.drop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0;
  padding: 18px;
  border: 2px dashed var(--brand);
  border-radius: 20px;
  background: #ffffff;
}
.drop.over { background: #fff1f1; }
.pending-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  align-items: end;
  margin: 8px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pending-row .checks { display: flex; flex-wrap: wrap; gap: 8px 14px; grid-column: 1 / -1; }
.paper-page { background: white; }
.sheet-page { max-width: 420px; margin: 0 auto; padding: 28px 16px 48px; text-align: center; }
.paper-sheet {
  border: 3px solid var(--brand);
  border-radius: 42px;
  padding: 28px 20px;
  background: white;
}
.paper-sheet .logo { margin: 0 auto; height: 72px; }
.paper-sheet h1 { margin: 12px 0 16px; }
.paper-sheet .qr { display: inline-block; }
.paper-sheet .qr svg { width: min(280px, 70vw); height: auto; }
.no-print { margin-top: 16px; }
@media print {
  .no-print { display: none !important; }
  body.paper-page { background: white; }
  .paper-sheet { border-width: 2px; }
}
