/* ============================================================
   Турандот — Mini App. Полноэкранная версия прототипа.
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel2: #17171a;
  --line: #2a2a2e;
  --line-soft: #212124;
  --gold: #d4af37;
  --gold-light: #f0d47e;
  --green: #3fa66a;
  --green-soft: #7fbf9a;
  --red: #d97777;
  --text: #f6f1e7;
  --muted: #a49b8a;
  --muted2: #6f6a60;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
.mini-body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(212, 175, 55, .08), transparent 60%),
    #060607;
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
a { color: var(--gold); }
::selection { background: rgba(212, 175, 55, .3); color: #fff; }
:focus-visible { outline: 2px solid rgba(212, 175, 55, .75); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ================= КОРЕНЬ ================= */
.app-root {
  position: relative;
  display: flex; flex-direction: column;
  width: 100%; max-width: 480px; height: 100dvh;
  margin: 0 auto; overflow: hidden;
  background: var(--bg);
  border-left: 1px solid #1f1f22;
  border-right: 1px solid #1f1f22;
}

.app-header {
  flex: none; height: 62px; padding: 0 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border-bottom: 1px solid rgba(212, 175, 55, .16);
}
.brand-logo { width: 38px; height: 38px; border-radius: 50%; flex: none; border: 1px solid rgba(212, 175, 55, .4); }
.brand { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 17px; letter-spacing: .14em; color: var(--gold); }
.brand-sub { margin-top: 3px; font-size: 7.5px; letter-spacing: .38em; color: var(--muted2); }
.demo-chip {
  padding: 3px 8px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 999px;
  background: rgba(212, 175, 55, .07); color: var(--gold);
  font-size: 8px; letter-spacing: .1em; text-transform: uppercase;
}

.logo-badge {
  position: relative; display: inline-grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #2a2110, #0c0b08 72%);
  color: var(--gold);
}
.logo-badge img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.logo-fallback { position: relative; z-index: 0; font-family: Georgia, serif; font-size: 1.2em; color: var(--gold); }

/* ================= ВКЛАДКИ ================= */
.tabs {
  flex: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px; padding: 8px 10px;
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
}
.tab {
  height: 36px; padding: 0 6px; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid #2a2a2e; border-radius: 18px;
  background: #131315; color: #b8b0a0; font-size: 11px; white-space: nowrap;
  transition: all .16s ease;
}
.tab .icon { width: 15px; height: 15px; flex: none; }
.tab.is-active {
  border-color: transparent; color: #171204; font-weight: 600;
  background: linear-gradient(135deg, #efd27d, #d4af37 55%, #c39a2b);
  box-shadow: 0 5px 16px rgba(212, 175, 55, .18);
}
@media (max-width: 640px) {
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ================= КОНТЕНТ ================= */
.app-main {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 18px 16px calc(100px + env(safe-area-inset-bottom, 0px));
  overscroll-behavior: contain;
}
.app-main.is-chat { padding: 0; overflow: hidden; }
.pane { display: none; }
.pane.is-active { display: block; animation: rise .22s ease; }
.pane-chat.is-active { display: flex; flex-direction: column; height: 100%; padding: 0 14px; }

.boot-loader {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  color: var(--muted); font-size: 12px; text-align: center;
}
.spinner {
  width: 30px; height: 30px; border: 2px solid #2a2a2e;
  border-top-color: var(--gold); border-radius: 50%;
  animation: spin .8s linear infinite;
}

.kicker { margin: 0 0 6px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: 25px; line-height: 1.16; color: var(--text);
}
.h3 {
  margin: 24px 0 10px;
  font-family: Georgia, "Times New Roman", serif; font-weight: 400;
  font-size: 17px; color: var(--gold);
}
.lead { margin: 0 0 18px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.hint { margin: 10px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--muted2); }

/* ================= ШАГИ ================= */
.stepbar { margin-bottom: 20px; }
.stepbar-top { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 10px; letter-spacing: .04em; color: var(--muted2); }
.step-track { height: 3px; border-radius: 2px; background: #242426; overflow: hidden; }
.step-track i { display: block; width: 16.66%; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #c9a227, #f0d47e); transition: width .25s ease; }
.bstep { display: none; }
.bstep.is-active { display: block; animation: rise .22s ease; }
.backlink {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 14px; padding: 0;
  border: none; background: none; color: var(--muted); font-size: 11px;
}
.backlink .icon { width: 14px; height: 14px; }
.backlink:hover { color: var(--gold); }
.cta-wrap { margin-top: 22px; display: grid; gap: 9px; }

/* ================= ДАТА ================= */
.date-strip {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  margin: 0 -16px; padding: 2px 16px 10px;
}
.day-card {
  position: relative; width: 100%; min-width: 0; height: 82px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid #2c2c31; border-radius: 14px;
  background: #141416; color: var(--text);
  transition: all .16s ease;
}
.day-card .wd { font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted2); }
.day-card .day { font-family: Georgia, serif; font-size: 21px; line-height: 1; color: #eee7d8; }
.day-card .mon { font-size: 9px; color: var(--muted2); }
.day-card .avail-dot { position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.day-card.is-selected {
  border-color: transparent; color: #171204;
  background: linear-gradient(150deg, #f0d47e, #d4af37 60%, #bd9529);
  box-shadow: 0 6px 18px rgba(212, 175, 55, .24);
}
.day-card.is-selected .wd, .day-card.is-selected .mon { color: rgba(23, 18, 4, .68); }
.day-card.is-selected .day { color: #171204; }
.day-card.is-selected .avail-dot { background: rgba(23, 18, 4, .55); }
.day-card:disabled { opacity: .32; }
.day-card:disabled .avail-dot { display: none; }

.guests-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--panel);
}
.guests-copy b { display: block; font-size: 13px; font-weight: 600; }
.guests-copy span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted2); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid rgba(212, 175, 55, .55); border-radius: 50%;
  background: transparent; color: var(--gold); font-size: 20px; line-height: 1;
}
.stepper button:active { background: rgba(212, 175, 55, .12); }
.stepper strong { min-width: 30px; text-align: center; font-family: Georgia, serif; font-weight: 400; font-size: 24px; color: var(--gold); }

.notice {
  display: grid; gap: 7px; margin-top: 14px; padding: 12px 13px;
  border: 1px solid rgba(212, 175, 55, .26); border-radius: 14px;
  background: rgba(212, 175, 55, .06); font-size: 11.5px; line-height: 1.5; color: var(--muted);
}
.notice b { font-size: 12px; color: var(--gold); }
.notice .btn { justify-self: start; margin-top: 2px; }
.notice-soft { border-color: var(--line); background: #131315; color: var(--muted); }

/* ================= КНОПКИ ================= */
.btn {
  width: 100%; height: 50px; padding: 0 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 14px;
  font-size: 14px; font-weight: 600; letter-spacing: .01em; text-decoration: none;
  transition: transform .12s ease, background .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-gold {
  color: #171204;
  background: linear-gradient(135deg, #f0d47e, #d4af37 55%, #bd9529);
  box-shadow: 0 8px 24px rgba(212, 175, 55, .18);
}
.btn-outline { border: 1px solid rgba(212, 175, 55, .55); background: transparent; color: var(--gold); }
.btn-ghost { border: 1px solid #2c2c31; background: transparent; color: #b8b0a0; }
.btn-red { color: #fff; background: linear-gradient(135deg, #8f3535, #6b2424); box-shadow: 0 8px 24px rgba(107, 36, 36, .28); }
.btn-sm { width: auto; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 12px; }
.btn:disabled { opacity: .38; pointer-events: none; }
.btn-row { display: flex; gap: 8px; margin: 14px 0 4px; }
.btn-row .btn { flex: 1; }

.summary { display: flex; flex-wrap: wrap; gap: 5px; margin: 2px 0 16px; }
.summary span {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px;
  background: #151517; font-size: 10.5px; color: var(--muted);
}
.summary b { color: var(--text); font-weight: 600; }

/* ================= СЛОТЫ ================= */
.slot-group { margin-top: 17px; }
.slot-group h4 { margin: 0 0 8px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted2); }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.slot {
  height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid rgba(63, 166, 106, .34); border-radius: 12px;
  background: rgba(63, 166, 106, .06); color: #eaf6ef;
  transition: all .14s ease;
}
.slot b { font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.slot small { font-size: 9.5px; color: var(--green-soft); }
.slot:active { transform: scale(.97); }
.slot.is-selected {
  border-color: transparent; color: #171204;
  background: linear-gradient(145deg, #f0d47e, #d4af37);
  box-shadow: 0 4px 14px rgba(212, 175, 55, .22);
}
.slot.is-selected small { color: rgba(23, 18, 4, .66); }

.empty {
  padding: 26px 18px; text-align: center;
  border: 1px dashed #303035; border-radius: 16px;
  color: var(--muted); font-size: 12px; line-height: 1.5;
}
.empty b { display: block; margin-bottom: 4px; font-size: 13.5px; color: var(--text); font-weight: 600; }
.empty .btn { margin-top: 12px; }

/* ================= ЗАЛЫ ================= */
.zones { display: grid; gap: 11px; }
.zone-card {
  display: block; width: 100%; padding: 0; text-align: left;
  border: 1px solid #2b2b30; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #17171a, #111113); color: inherit;
  transition: border-color .16s ease, transform .16s ease;
}
.zone-card:active { transform: scale(.99); }
.zone-card:disabled { opacity: .45; filter: grayscale(.55); }
.zone-photo {
  position: relative; display: block; height: 138px; overflow: hidden; background: #0d0d0f;
  box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .18);
}
.zone-photo::before {
  content: ""; position: absolute; inset: -14%;
  background: url("/media/brand/logo.jpg") center 30% / cover;
  filter: blur(17px) brightness(.5) saturate(1.15);
  transform: scale(1.15);
}
.zone-photo.has-photo::before {
  background-image: var(--zone-photo);
  filter: none;
  transform: scale(1.02);
}
.zone-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 12, .05), rgba(11, 11, 12, .88) 85%);
}
.zone-photo.zone-silver::after {
  background: linear-gradient(180deg, rgba(30, 40, 56, .18), rgba(11, 11, 12, .92) 88%), radial-gradient(circle at 70% 20%, rgba(180, 200, 220, .18), transparent 60%);
}
.zone-photo.zone-porcelain::after {
  background: linear-gradient(180deg, rgba(56, 48, 34, .12), rgba(11, 11, 12, .92) 88%), radial-gradient(circle at 30% 20%, rgba(230, 220, 195, .16), transparent 60%);
}
.zone-photo .zone-name {
  position: absolute; left: 15px; bottom: 12px; z-index: 2;
  font-family: Georgia, serif; font-size: 20px; color: var(--gold-light);
}
.zone-tag {
  position: absolute; right: 11px; top: 11px; z-index: 2;
  padding: 3px 8px; border: 1px solid rgba(212, 175, 55, .3); border-radius: 999px;
  background: rgba(11, 11, 12, .45); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: rgba(240, 212, 126, .8);
  backdrop-filter: blur(4px);
}
.zone-body { display: block; padding: 12px 15px 14px; }
.zone-desc { margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zone-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.zone-count { font-size: 10.5px; color: var(--green-soft); }
.zone-count.is-zero { color: var(--muted2); }
.zone-cta { font-size: 10.5px; color: var(--gold); }

/* ================= КАРТА ================= */
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 9px; }
.legend { display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 9.5px; color: var(--muted2); }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex: none; }
.dot-gold { background: var(--gold); box-shadow: 0 0 8px rgba(212, 175, 55, .6); }
.dot-green { background: var(--green); }
.dot-gray { background: #55555c; }
.chip-btn { height: 27px; padding: 0 11px; border: 1px solid #2c2c31; border-radius: 999px; background: #151517; color: #cfc6b5; font-size: 10.5px; }
.chip-btn.is-on { border-color: var(--gold); color: var(--gold); background: rgba(212, 175, 55, .08); }
.map-wrap {
  position: relative; border: 1px solid #2b2b30; border-radius: 18px;
  overflow: hidden; background: #0d0d0f;
}
.map-scroll { overflow-x: auto; overflow-y: hidden; max-height: none; overscroll-behavior: contain; scrollbar-width: thin; }
.map-scroll::-webkit-scrollbar { width: 4px; height: 4px; }
.map-scroll::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }
.map {
  position: relative; width: 676px; aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .09), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 42px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .022) 0 1px, transparent 1px 42px),
    #0f0f11;
  transition: width .2s ease;
}
.map::before {
  content: "СХЕМА ЗАЛА"; position: absolute; left: 50%; top: 9px; transform: translateX(-50%);
  font-size: 7.5px; letter-spacing: .34em; color: rgba(212, 175, 55, .35); white-space: nowrap;
}
.tbl {
  position: absolute; padding: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid transparent; border-radius: 9px;
  font-size: 11px; line-height: 1; color: #fff;
  transition: transform .13s ease, box-shadow .13s ease;
}
.tbl b { font-size: 12px; font-weight: 700; }
.tbl small { font-size: 7px; opacity: .78; }
.tbl.is-free {
  border-color: #46a86d;
  background: linear-gradient(145deg, #2f8b56, #216a41);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.tbl.is-free:active { transform: scale(.94); }
.tbl.is-busy {
  border-color: #333; color: #74747b; cursor: not-allowed;
  background: repeating-linear-gradient(45deg, #2a2a2e 0 4px, #232327 4px 8px);
}
.tbl.is-broken { border-color: #4a1d1d; background: #3a1717; color: #b98a8a; cursor: not-allowed; }
.tbl.is-selected {
  border-color: #fff3c4; color: #171204; z-index: 3;
  background: linear-gradient(145deg, #f0d47e, #d4af37);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .28), 0 0 20px rgba(212, 175, 55, .45);
  transform: scale(1.06);
}
.decor {
  position: absolute; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px; overflow: hidden;
}
.decor span {
  font-size: 6px; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  color: rgba(255, 255, 255, .58); white-space: nowrap;
}
.decor-window { background: rgba(104, 170, 255, .16); border: 1px solid rgba(104, 170, 255, .6); }
.decor-door { background: rgba(212, 175, 55, .16); border: 1px solid rgba(212, 175, 55, .7); }
.decor-bar { background: rgba(150, 98, 52, .2); border: 1px dashed rgba(196, 140, 88, .75); }
.decor-piano { background: rgba(240, 240, 245, .07); border: 1px solid rgba(230, 230, 240, .55); border-radius: 50% 50% 4px 4px; }
.decor-column { border-radius: 50%; background: rgba(212, 175, 55, .12); border: 1px solid rgba(212, 175, 55, .55); }
.decor-wc { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .24); }
.decor-stage { background: rgba(212, 175, 55, .08); border: 1px solid rgba(212, 175, 55, .4); }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 5px 10px;
  margin: 7px 2px 0; font-size: 8.5px; color: var(--muted2);
}
.map-legend span { display: inline-flex; align-items: center; gap: 4px; }
.map-legend i { width: 9px; height: 6px; display: inline-block; border-radius: 1px; }
.lg-window { background: rgba(104, 170, 255, .3); border: 1px solid rgba(104, 170, 255, .75); }
.lg-door { background: rgba(212, 175, 55, .3); border: 1px solid rgba(212, 175, 55, .75); }
.lg-bar { background: rgba(150, 98, 52, .35); border: 1px dashed rgba(196, 140, 88, .85); }
.lg-piano { background: rgba(240, 240, 245, .15); border: 1px solid rgba(230, 230, 240, .6); border-radius: 3px 3px 1px 1px; }
.lg-column { background: rgba(212, 175, 55, .2); border: 1px solid rgba(212, 175, 55, .65); border-radius: 50%; }
.map.is-compact .tbl small { display: none; }
.map-zoom {
  position: absolute; right: 7px; bottom: 7px; z-index: 5;
  display: flex; align-items: center; gap: 2px; padding: 3px;
  border: 1px solid #2e2e33; border-radius: 999px; background: rgba(10, 10, 11, .86);
  backdrop-filter: blur(6px);
}
.map-zoom button { width: 24px; height: 24px; display: grid; place-items: center; border: none; border-radius: 50%; background: transparent; color: var(--muted); font-size: 15px; }
.map-zoom button:active { background: #26262a; color: var(--gold); }
.map-zoom span { min-width: 34px; text-align: center; font-size: 9px; color: var(--muted2); }
.table-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.table-card {
  padding: 10px; text-align: left;
  border: 1px solid #2b2b30; border-radius: 11px; background: #141416; color: var(--text);
}
.table-card.is-selected { border-color: rgba(212, 175, 55, .7); background: rgba(212, 175, 55, .08); box-shadow: 0 0 0 1px rgba(212, 175, 55, .18); }
.table-card b { display: block; font-size: 12.5px; }
.table-card span { display: block; margin-top: 2px; font-size: 10px; color: var(--green-soft); }
.selected-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; margin-bottom: 12px; padding: 9px 10px 9px 13px;
  border: 1px solid rgba(212, 175, 55, .28); border-radius: 14px; background: #151517;
}
.selected-copy { font-size: 10.5px; line-height: 1.4; color: var(--muted); }
.selected-copy b { color: var(--text); font-size: 11.5px; }

/* ================= ФОРМА ================= */
.field { margin-bottom: 13px; }
.field > label { display: block; margin-bottom: 5px; font-size: 10.5px; color: var(--muted); }
.field > label span { color: var(--muted2); font-size: 9.5px; }
.field input, .field textarea {
  width: 100%; padding: 12px 13px;
  border: 1px solid #2e2e33; border-radius: 12px;
  background: #121214; color: var(--text); font-size: 13.5px;
  outline: none; transition: border-color .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 62px; line-height: 1.45; }
.field input::placeholder, .field textarea::placeholder { color: #5f5a52; }
.field input:focus, .field textarea:focus { border-color: rgba(212, 175, 55, .65); background: #151517; }
.field-note { display: block; margin-top: 4px; font-size: 9.5px; color: var(--muted2); }
.err { display: block; margin-top: 4px; font-size: 9.5px; font-style: normal; color: #e07b7b; }
.check { display: flex; align-items: flex-start; gap: 9px; margin: 8px 0 2px; font-size: 10.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  width: 19px; height: 19px; flex: none; margin-top: 1px;
  display: grid; place-items: center;
  border: 1px solid #3a3a40; border-radius: 5px; background: #121214;
  transition: all .15s;
}
.check-box .icon { width: 12px; height: 12px; color: #171204; opacity: 0; }
.check input:checked + .check-box { border-color: var(--gold); background: var(--gold); }
.check input:checked + .check-box .icon { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid rgba(212, 175, 55, .6); outline-offset: 2px; }
.link { padding: 0; border: none; background: none; color: var(--gold); font-size: inherit; text-decoration: underline; }

/* ================= ПОДТВЕРЖДЕНИЕ ================= */
.confirm-card {
  padding: 3px 15px; margin: 6px 0 4px;
  border: 1px solid rgba(212, 175, 55, .32); border-radius: 17px;
  background: linear-gradient(180deg, #17161a, #121214);
}
.crow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #232326; font-size: 12px; }
.crow:last-child { border-bottom: none; }
.crow .cl { color: var(--muted); }
.crow .cv { text-align: right; font-weight: 500; }
.crow-edit { padding: 0; border: none; background: none; color: var(--gold); font-size: 9.5px; text-decoration: underline; }

/* ================= УСПЕХ ================= */
.success { text-align: center; padding: 18px 0 6px; }
.success-check {
  width: 74px; height: 74px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border: 1px solid rgba(212, 175, 55, .5); border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .18), rgba(212, 175, 55, .03) 70%);
  box-shadow: 0 0 34px rgba(212, 175, 55, .16);
}
.success-check .icon { width: 34px; height: 34px; color: var(--gold); }
.success h2 { margin: 0 0 5px; font-family: Georgia, serif; font-weight: 400; font-size: 24px; color: var(--text); }
.success-sub { margin: 0; font-size: 11.5px; color: var(--muted); }
.id-pill {
  display: inline-block; margin: 13px auto 0; padding: 5px 13px;
  border: 1px dashed rgba(212, 175, 55, .5); border-radius: 999px;
  background: rgba(212, 175, 55, .06); color: var(--gold);
  font-size: 10px; letter-spacing: .12em;
}
.success-card { margin: 16px 0; padding: 3px 14px; text-align: left; background: #141416; border: 1px solid var(--line); border-radius: 15px; }
.success-actions { display: grid; gap: 8px; margin-top: 16px; }
.success-note { margin: 13px 0 0; font-size: 10px; line-height: 1.5; color: var(--muted2); }

/* ================= МОЯ БРОНЬ ================= */
.segmented { display: flex; gap: 3px; margin: 12px 0 15px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: #121214; }
.segmented button { flex: 1; height: 33px; border: none; border-radius: 9px; background: transparent; color: var(--muted); font-size: 11.5px; }
.segmented button.is-active { background: #242426; color: var(--gold); }
.booking-card { display: flex; gap: 11px; margin-bottom: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: #141416; }
.date-badge {
  width: 52px; height: 60px; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 1px solid rgba(212, 175, 55, .3); border-radius: 11px; background: rgba(212, 175, 55, .055);
}
.date-badge .d { font-family: Georgia, serif; font-size: 21px; line-height: 1; color: var(--gold); }
.date-badge .m { font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted2); }
.booking-main { flex: 1; min-width: 0; }
.booking-top { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.booking-time { font-size: 14.5px; font-weight: 600; }
.status { padding: 2px 7px; border-radius: 999px; font-size: 7.5px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.status.active { border: 1px solid rgba(63, 166, 106, .35); background: rgba(63, 166, 106, .1); color: var(--green-soft); }
.status.cancelled { border: 1px solid #3a3a40; background: #1c1c20; color: #8a8a90; }
.booking-meta { margin-top: 3px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.booking-id { margin-top: 4px; font-family: ui-monospace, Consolas, monospace; font-size: 8.5px; letter-spacing: .05em; color: var(--muted2); }
.booking-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mini-btn { display: inline-flex; align-items: center; height: 27px; padding: 0 10px; border: 1px solid #2e2e33; border-radius: 8px; background: transparent; color: var(--muted); font-size: 9.5px; text-decoration: none; }
.mini-btn.danger { border-color: rgba(217, 119, 119, .35); color: var(--red); }
.mini-btn:hover { border-color: rgba(212, 175, 55, .5); color: var(--gold); }

/* ================= МЕНЮ ================= */
.menu-hero {
  position: relative; height: auto; margin: 0 -16px 15px;
  overflow: hidden; background: #0b0b0c;
}
.menu-hero img {
  display: block; width: 100%; height: auto; max-height: 68vh;
  object-fit: contain; object-position: center;
  opacity: 1; transform: none; background: #0b0b0c;
}
.menu-hero-overlay {
  position: static; inset: auto; padding: 12px 16px 0;
  display: block; background: none;
}
.menu-hero .h2 { margin: 0; font-size: 28px; color: var(--gold-light); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.chip { height: 29px; padding: 0 11px; border: 1px solid #2e2e33; border-radius: 999px; background: #151517; color: #b8b0a0; font-size: 10.5px; white-space: nowrap; }
.chip.is-active { border-color: rgba(212, 175, 55, .6); background: rgba(212, 175, 55, .08); color: var(--gold); }
.menu-group { margin-bottom: 17px; }
.menu-group h4 { margin: 10px 0 3px; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted2); }
.menu-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.mi-name { font-size: 12.5px; line-height: 1.35; }
.mi-price { font-size: 12px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.mi-desc { grid-column: 1 / -1; font-size: 10px; line-height: 1.45; color: var(--muted2); }
.hit { display: inline-block; margin-left: 5px; padding: 1px 5px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 999px; font-size: 6.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); vertical-align: 1px; }
.demo-note { margin: 16px 0 0; padding: 8px 10px; border: 1px dashed #2e2e33; border-radius: 10px; font-size: 9.5px; line-height: 1.45; color: var(--muted2); }

/* ================= О РЕСТОРАНЕ ================= */
.about-hero { padding: 8px 0 18px; text-align: center; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.about-logo { width: 92px; height: 92px; margin: 0 auto 12px; border-radius: 50%; display: grid; border: 1px solid rgba(212, 175, 55, .42); }
.about-logo .logo-fallback { font-size: 38px; }
.about-hero .h2 { margin-bottom: 4px; }
.about-hero p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.info-list { display: grid; }
.info-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid #1d1d20; font-size: 11.5px; }
.info-row .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--gold); }
.info-row b { display: block; margin-bottom: 1px; font-size: 8.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted2); font-weight: 500; }
.info-row span, .info-row a { font-size: 11.5px; color: #d8d1c4; text-decoration: none; }
.about-zones { display: grid; gap: 8px; }
.about-zone { padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: #141416; }
.about-zone h4 { margin: 0 0 3px; font-family: Georgia, serif; font-weight: 400; font-size: 14.5px; color: var(--gold); }
.about-zone p { margin: 0; font-size: 10.5px; line-height: 1.5; color: var(--muted); }

/* ================= ОТЗЫВЫ ================= */
.stars { display: flex; justify-content: center; gap: 4px; margin: 6px 0 2px; }
.stars button { padding: 0 2px; border: none; background: none; color: #34343a; font-size: 34px; line-height: 1; transition: color .14s, transform .14s; }
.stars button.is-on { color: var(--gold); text-shadow: 0 0 16px rgba(212, 175, 55, .45); }
.stars button:active { transform: scale(.9); }
.rating-label { margin: 0 0 15px; text-align: center; font-size: 10.5px; color: var(--muted); }
.review-thanks, .callback-done {
  padding: 20px 16px; margin-bottom: 16px; text-align: center;
  border: 1px solid rgba(63, 166, 106, .3); border-radius: 16px;
  background: rgba(63, 166, 106, .055);
}
.success-mini { width: 44px; height: 44px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; background: rgba(212, 175, 55, .14); border: 1px solid rgba(212, 175, 55, .4); }
.success-mini .icon { width: 22px; height: 22px; color: var(--gold); }
.review-thanks h3, .callback-done h3 { margin: 0 0 5px; font-family: Georgia, serif; font-weight: 400; font-size: 18px; color: var(--gold-light); }
.review-thanks p, .callback-done p { margin: 0 0 13px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.review-card { margin-bottom: 9px; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 13px; background: #141416; }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.review-stars { font-size: 11px; letter-spacing: 2px; color: var(--gold); }
.review-stars .off { color: #3a3a40; }
.review-date { font-size: 8.5px; color: var(--muted2); }
.review-name { margin-top: 4px; font-size: 10.5px; font-weight: 600; color: #d8d1c4; }
.review-text { margin: 5px 0 0; font-size: 10.5px; line-height: 1.5; color: var(--muted); }

/* ================= ИИ-ЧАТ ================= */
.ai-head { flex: none; display: flex; align-items: center; gap: 9px; padding: 11px 2px; border-bottom: 1px solid var(--line-soft); }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(63, 166, 106, .7); }
.ai-head b { display: block; font-size: 12.5px; }
.ai-head small { display: block; margin-top: 1px; font-size: 9.5px; color: var(--muted2); }
.ai-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 13px 0; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.ai-msg { max-width: 86%; padding: 9px 11px; border-radius: 14px; font-size: 11.5px; line-height: 1.48; }
.ai-msg.bot { align-self: flex-start; border: 1px solid #26262a; border-bottom-left-radius: 4px; background: #17171a; color: #ddd6c9; }
.ai-msg.user { align-self: flex-end; border-bottom-right-radius: 4px; background: linear-gradient(135deg, #efd27d, #d4af37); color: #171204; font-weight: 500; }
.ai-action { display: block; width: 100%; margin-top: 8px; padding: 7px 8px; border: 1px solid rgba(212, 175, 55, .35); border-radius: 8px; background: rgba(212, 175, 55, .1); color: var(--gold); font-size: 10.5px; text-align: center; }
.ai-quick { flex: none; display: flex; gap: 5px; overflow-x: auto; padding: 5px 0 7px; scrollbar-width: none; }
.ai-quick::-webkit-scrollbar { display: none; }
.ai-composer { flex: none; display: flex; align-items: center; gap: 7px; padding: 4px 0 5px; }
.ai-composer input { flex: 1; min-width: 0; height: 41px; padding: 0 14px; border: 1px solid #2e2e33; border-radius: 21px; background: #151517; color: var(--text); font-size: 12px; outline: none; }
.ai-composer input:focus { border-color: rgba(212, 175, 55, .6); }
.ai-composer button { width: 41px; height: 41px; flex: none; display: grid; place-items: center; border: none; border-radius: 50%; background: linear-gradient(135deg, #efd27d, #d4af37); color: #171204; }
.ai-composer button .icon { width: 17px; height: 17px; }
.ai-hint { flex: none; margin: 0 0 7px; text-align: center; font-size: 8.5px; }
.typing { align-self: flex-start; display: flex; gap: 3px; padding: 11px 13px; border: 1px solid #26262a; border-radius: 14px; border-bottom-left-radius: 4px; background: #17171a; }
.typing i { width: 4px; height: 4px; border-radius: 50%; background: #7a7468; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

/* ================= ОВЕРЛЕЙ / ТОСТ ================= */
.overlay {
  position: absolute; inset: 0; z-index: 90;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 16px; background: rgba(5, 5, 6, .72); backdrop-filter: blur(5px);
}
.overlay[hidden] { display: none; }
.modal {
  position: relative; width: 100%; padding: 18px 17px 16px;
  border: 1px solid #303035; border-radius: 20px; background: #17171a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
  animation: up .2s ease;
}
.modal h3 { margin: 0 0 7px; padding-right: 22px; font-family: Georgia, serif; font-weight: 400; font-size: 19px; color: var(--gold-light); }
.modal-body { max-height: 46vh; overflow-y: auto; font-size: 11.5px; line-height: 1.55; color: var(--muted); }
.modal-body p { margin: 0 0 8px; }
.modal-body b { color: var(--text); }
.modal-actions { display: grid; gap: 7px; margin-top: 15px; }
.modal-actions .btn { height: 44px; font-size: 13px; }
.modal-x { position: absolute; top: 9px; right: 11px; width: 26px; height: 26px; border: none; background: none; color: var(--muted2); font-size: 21px; line-height: 1; }
.toast {
  position: absolute; left: 50%; bottom: 86px; z-index: 80;
  max-width: 84%; padding: 9px 15px;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .35); border-radius: 999px;
  background: #1c1c20; color: var(--text); font-size: 10.5px; text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  transition: opacity .2s, transform .2s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(217, 119, 119, .5); color: #f0b4b4; }
.toast.is-success { border-color: rgba(63, 166, 106, .5); color: #b9e6c9; }

/* ================= АНИМАЦИИ ================= */
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

@media (max-width: 520px) {
  .app-root { max-width: none; border: none; }
  .app-header { height: calc(62px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); }
  .app-main { padding-bottom: calc(34px + env(safe-area-inset-bottom)); }
  .ai-hint { margin-bottom: calc(7px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom)); }
}
