:root {
  --bg: #08090c;
  --bg-2: #0e1016;
  --card: #13161e;
  --card-2: #191d27;
  --line: #262b38;
  --text: #e8edf4;
  --muted: #8d95a8;
  --lime: #c8f04d;
  --lime-ink: #14180a;
  --rose: #ff6b7d;
  --amber: #e8b84a;
  --indigo: #8b9cff;
  --vip: #d6b07a;
  --boot: #5ee0c5;
  --free: #b7e35a;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Manrope", system-ui, sans-serif;
  --display: "Syne", "Manrope", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  background: #07080c;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: #07080c;
}
.scene__grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 42px 42px;
  transform: perspective(900px) rotateX(52deg) scale(1.35);
  transform-origin: center 20%;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 18%, transparent 72%);
}
.scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
}
.scene__glow--a {
  width: 520px;
  height: 520px;
  left: -140px;
  top: 12%;
  background: radial-gradient(circle, rgba(200, 240, 77, 0.28), transparent 68%);
}
.scene__glow--b {
  width: 460px;
  height: 460px;
  right: -120px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(94, 224, 197, 0.2), transparent 68%);
}

.app-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.phone,
.phone__bezel {
  display: contents;
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
}
.phone__scroll { display: none; }
#dock {
  flex-shrink: 0;
  z-index: 45;
}

button, input, textarea { font: inherit; color: inherit; }
button, .chip, .slot, .seat, .btn, .dock__btn, .seg__btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.chip:active, .slot:active, .seat:active, .btn:active, .seg__btn:active, .dock__btn:active {
  transform: scale(0.97);
}
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.04em; line-height: 1.1; margin: 0 0 8px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
h2 { font-size: 1.25rem; }
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}
.skip:focus { left: 8px; background: var(--lime); color: var(--lime-ink); padding: 8px 12px; z-index: 80; }

.wrap { width: min(1120px, calc(100% - 24px)); max-width: 100%; margin: 0 auto; }
.page { padding: 18px 0 20px; }
.page__head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lead { color: #c5ccd8; max-width: 46ch; }
.muted { color: var(--muted); margin: 6px 0; }
.label { margin: 14px 0 8px; font-weight: 600; font-size: 0.92rem; }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); }
.policy {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(232, 184, 74, 0.08);
  border: 1px solid rgba(232, 184, 74, 0.22);
  color: #f3d89a;
  font-size: 0.9rem;
}
.error { color: var(--rose); min-height: 1.2em; }
.empty { color: var(--muted); padding: 18px 0; }
.empty--inline { padding: 8px 0; }
.note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.note--warn { border-color: rgba(255, 107, 125, 0.35); background: rgba(255, 107, 125, 0.08); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--lime { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn--ghost { background: transparent; }
.btn--lg { width: 100%; min-height: 52px; }

.to-neoroop {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 12, 0.72);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}
.to-neoroop:hover { border-color: var(--lime); color: var(--lime); text-decoration: none; }
.to-neoroop--page { display: none; }
.to-neoroop--app { flex-shrink: 0; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: transparent;
  overflow: hidden;
  flex-shrink: 0;
}
.brand__mark svg { display: block; width: 36px; height: 36px; }
.brand__text { display: flex; flex-direction: column; }
.brand__text strong { font-family: var(--display); font-size: 1.05rem; }
.brand__text em { font-style: normal; color: var(--muted); font-size: 0.75rem; }
.top__actions { margin-left: auto; display: flex; gap: 8px; }

.offer { padding: 22px 0 8px; }
.cup {
  display: inline-block;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}
.hall-tools { display: grid; gap: 12px; margin: 12px 0 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; color: var(--muted); font-size: 0.85rem; align-items: center; }
.lg { width: 10px; height: 10px; border-radius: 99px; display: inline-block; }
.lg-free { background: var(--free); }
.lg-busy { background: var(--rose); }
.lg-booked { background: var(--amber); }
.lg-hold { background: var(--indigo); }
.lg-mnt { background: #6b7280; }

.chips, .seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg__btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
}
.chip.is-on, .seg__btn.is-on {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}

.hall-layout { display: grid; gap: 16px; }
.hall {
  background: rgba(14, 16, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 16px;
  backdrop-filter: blur(10px);
}
.hall__floor { display: grid; gap: 16px; }
.zone {
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.zone--vip { border-color: rgba(214, 176, 122, 0.35); }
.zone--bootcamp { border-color: rgba(94, 224, 197, 0.35); }
.zone__head {
  display: grid;
  grid-template-rows: 1.2rem 1.15rem;
  align-content: start;
  gap: 2px;
  margin-bottom: 10px;
}
.zone__head h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}
.zone__head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
  white-space: nowrap;
  max-width: 100%;
}
.zone__grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 8px;
}
.seat {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #0c0e13;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  min-height: 72px;
}
.seat__num { font-family: var(--mono); font-weight: 600; font-size: 1.05rem; line-height: 1.1; }
.seat__st {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.seat__fav { position: absolute; top: 4px; right: 6px; color: var(--amber); font-size: 0.7rem; }
.seat.is-free { box-shadow: inset 0 0 0 1px rgba(183, 227, 90, 0.45); }
.seat.is-busy { box-shadow: inset 0 0 0 1px rgba(255, 107, 125, 0.55); opacity: 0.9; }
.seat.is-booked { box-shadow: inset 0 0 0 1px rgba(232, 184, 74, 0.55); }
.seat.is-hold { box-shadow: inset 0 0 0 1px rgba(139, 156, 255, 0.55); }
.seat.is-maintenance { opacity: 0.4; filter: grayscale(0.6); }
.seat.is-selected { background: var(--lime); color: var(--lime-ink); }
.seat.is-selected .seat__st { color: var(--lime-ink); }
.hall__desk {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  background: rgba(19, 22, 30, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px;
  backdrop-filter: blur(12px);
}
.panel__head h2 { margin-bottom: 4px; }
.slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}
.slot__time { font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; }
.slot__night {
  margin-top: 2px;
  font-family: var(--font);
  font-size: 0.58rem;
  opacity: 0.75;
}
.slot.is-on {
  background: var(--lime);
  color: var(--lime-ink);
  border-color: transparent;
}
.slot.is-off { opacity: 0.35; cursor: not-allowed; text-decoration: none; }
.slot.is-off .slot__time { text-decoration: line-through; }
.sum {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-2);
}
.sum p { display: flex; justify-content: space-between; margin: 0 0 6px; }
.sum strong { font-family: var(--mono); font-size: 1.2rem; }
.fields { display: grid; gap: 10px; margin: 12px 0; }
label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
input, textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c0e13;
  padding: 0 12px;
}
.check { display: flex; gap: 10px; align-items: center; color: var(--text); margin: 10px 0; }
.check input { width: 18px; min-height: 18px; }
.pay { display: grid; gap: 8px; margin-top: 8px; }
.sheet-head {
  display: flex;
  justify-content: flex-end;
  padding: 4px 4px 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(var(--bg), var(--bg) 70%, transparent);
}
.sheet-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-2);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}
.sheet-close span {
  font-size: 1.35rem;
  line-height: 1;
}
.hall-layout__side { position: relative; }
.hall-layout__side.is-empty { display: none; }

.card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  margin-bottom: 10px;
}
.card__act { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ticket {
  max-width: 420px;
  margin: 0 auto;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}
.ticket h1 { font-family: var(--mono); letter-spacing: 0.08em; }
.qr {
  width: 180px;
  height: 180px;
  margin: 16px auto;
  display: grid;
  grid-template-columns: repeat(21, 1fr);
  grid-template-rows: repeat(21, 1fr);
  padding: 10px;
  background: #fff;
  border-radius: 12px;
}
.qr__cell { background: transparent; }
.qr__cell.is-on { background: #111; }
.timer { font-size: 1.2rem; }
.timer strong { font-family: var(--mono); }

.cash {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  margin-bottom: 14px;
}
.cash__wait { color: var(--muted); }
.cash__wait strong { display: block; color: var(--amber); font-size: 1.4rem; font-family: var(--mono); }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.gate { display: grid; gap: 10px; max-width: 320px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.modal {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 60;
  display: grid;
  place-items: end center;
  padding: 16px;
}
.modal__card {
  position: relative;
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.dock {
  display: flex;
  gap: 6px;
  margin: 6px 10px 10px;
  padding: 6px;
  width: auto;
  border-radius: 22px;
  background: rgba(18, 20, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
}
.dock__btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border-radius: 16px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
}
.dock__btn:hover { text-decoration: none; color: var(--text); }
.dock__btn.is-on {
  background: rgba(200, 240, 77, 0.16);
  color: var(--lime);
}
.dock__ico { font-size: 1.05rem; line-height: 1; }

.chat {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 25;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.chat__launch {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px 0 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow);
}
.chat__ava {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 800;
}
.chat__panel {
  width: min(360px, calc(100% - 24px));
  height: min(520px, 70%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat.is-open {
  z-index: 50;
}
.chat.is-open .chat__launch { display: none; }
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.chat__head p { margin: 0; display: grid; }
.chat__head span { color: var(--muted); font-size: 0.8rem; }
.chat__x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; }
.chat__log { overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat__msg {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 14px;
  white-space: pre-wrap;
  font-size: 0.95rem;
}
.chat__msg--bot { background: var(--card); align-self: start; }
.chat__msg--user { background: var(--lime); color: var(--lime-ink); align-self: end; }
.chat__offers { display: grid; gap: 6px; }
.chat__offer {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
  font-weight: 700;
  text-decoration: none;
}
.chat__quick { display: flex; gap: 6px; padding: 0 10px 8px; overflow: auto; }
.chat__quick button {
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat__form textarea {
  min-height: 44px;
  resize: none;
  padding-top: 10px;
}
.chat__form button {
  width: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
  cursor: pointer;
  font-weight: 800;
}

@media (min-width: 720px) {
  .modal { place-items: center; }
  .cash { grid-template-columns: 1.4fr 1fr auto; align-items: center; }
}

@media (min-width: 960px) {
  .hall-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
  .hall-layout__side {
    position: sticky;
    top: 80px;
  }
  .hall__floor {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
  .zone--standard { grid-column: 1; grid-row: 1 / span 2; }
}

@media (max-width: 959px) {
  .hall-layout__side.is-open {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    max-height: 78%;
    overflow: auto;
    padding: 4px 10px 12px;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow);
  }
}

/* Компьютер: контур телефона, внутри — мобильная вёрстка */
@media (min-width: 860px) and (pointer: fine) {
  .to-neoroop--page {
    display: inline-flex;
    position: fixed;
    top: max(18px, env(safe-area-inset-top));
    left: max(18px, env(safe-area-inset-left));
    z-index: 90;
  }
  .to-neoroop--app { display: none; }
  #dock {
    padding-bottom: 2px;
  }
  .dock {
    margin: 4px 10px 12px;
  }
  html, body {
    min-height: 100%;
    height: 100%;
  }
  body {
    display: grid;
    place-items: center;
  }
  .phone {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    position: relative;
    z-index: 1;
    padding: 20px;
    gap: 10px;
  }
  .phone__scroll {
    display: block;
    position: relative;
    width: 14px;
    flex-shrink: 0;
    align-self: stretch;
    margin: 50px 0 40px;
    background: #2c2e34;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }
  .phone__scroll[hidden] { display: none !important; }
  .phone__scroll.is-idle { opacity: 0.35; }
  .phone__thumb {
    position: absolute;
    left: 2px;
    right: 2px;
    top: 0;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: #b0b4bc;
    cursor: grab;
  }
  .phone__thumb:active { cursor: grabbing; background: #c8ccd4; }
  .app-shell {
    scrollbar-width: none;
  }
  .app-shell::-webkit-scrollbar {
    width: 0;
    height: 0;
  }
  .phone__bezel {
    display: block;
    position: relative;
    width: 390px;
    height: min(844px, calc(100dvh - 40px));
    padding: 12px 12px 22px;
    border-radius: 48px;
    background: linear-gradient(180deg, #f6f6f8 0%, #cfd0d6 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.55) inset,
      0 1px 0 rgba(0, 0, 0, 0.12),
      0 28px 80px rgba(0, 0, 0, 0.55),
      0 0 48px rgba(200, 240, 77, 0.14);
  }
  .phone__island {
    display: block;
    position: absolute;
    top: 18px;
    left: 50%;
    z-index: 60;
    width: 96px;
    height: 28px;
    transform: translateX(-50%);
    background: #0a0a0c;
    border-radius: 20px;
    pointer-events: none;
  }
  .phone__screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    border-radius: 36px;
    overflow: hidden;
    background: #08090c;
  }
  .app-shell {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .top {
    padding-top: 22px;
  }
  .hall-layout,
  .hall__floor {
    grid-template-columns: 1fr;
  }
  .zone--standard {
    grid-column: auto;
    grid-row: auto;
  }
  .hall-layout__side {
    position: static;
  }
  .hall-layout__side.is-open {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    max-height: 78%;
    overflow: auto;
    padding: 4px 10px 12px;
    background: var(--bg);
    border-radius: 20px 20px 0 0;
    box-shadow: var(--shadow);
  }
  .cash {
    grid-template-columns: 1fr;
  }
  .modal {
    place-items: end center;
  }
}
