@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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, U+20BD;
}

:root {
  --bg: #0f0e13;
  --bg-2: #15141b;
  --card: #1b1a22;
  --card-2: #23212b;
  --line: #2b2934;
  --line-2: #3b3846;
  --fg: #f3efe8;
  --fg-2: #cbc6bd;
  --muted: #8d889a;
  --accent: #ff8a5b;
  --accent-hover: #ff9d75;
  --on-accent: #1d0e06;
  --free: #5bd690;
  --few: #f4c452;
  --none: #6d6879;
  --danger: #ff6464;
  --glow: rgba(255, 138, 91, 0.16);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f3f0; --bg-2: #ecebe7; --card: #ffffff; --card-2: #f6f5f2; --line: #e2dfd8; --line-2: #cfcbc2;
    --fg: #17151c; --fg-2: #3b3842; --muted: #6c6776; --accent: #e5602e; --accent-hover: #d4541f;
    --on-accent: #ffffff; --free: #1b9a52; --few: #b07f00; --none: #9e99a8; --danger: #d23b3b;
    --glow: rgba(229, 96, 46, 0.12); --shadow: 0 10px 30px rgba(40, 30, 20, 0.08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f3f0; --bg-2: #ecebe7; --card: #ffffff; --card-2: #f6f5f2; --line: #e2dfd8; --line-2: #cfcbc2;
  --fg: #17151c; --fg-2: #3b3842; --muted: #6c6776; --accent: #e5602e; --accent-hover: #d4541f;
  --on-accent: #ffffff; --free: #1b9a52; --few: #b07f00; --none: #9e99a8; --danger: #d23b3b;
  --glow: rgba(229, 96, 46, 0.12); --shadow: 0 10px 30px rgba(40, 30, 20, 0.08);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 var(--font); font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.label { font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 560px; }
main { flex: 1; padding-block: 20px 56px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* шапка */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.03em; }
.age { display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; border: 1.5px solid var(--muted); color: var(--muted); border-radius: 6px; padding: 1px 5px; line-height: 1.3; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.top-link { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--fg-2); }
.top-link:hover { background: var(--card); color: var(--fg); }
.top-link .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }

.foot { border-top: 1px solid var(--line); padding-block: 24px calc(24px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 13px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--fg-2); }
.foot a:hover { color: var(--fg); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

/* кнопки и поля */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--fg);
  font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--card-2); border-color: var(--muted); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ok { background: var(--free); border-color: var(--free); color: #08140d; }
.btn-ok:hover { filter: brightness(1.08); background: var(--free); border-color: var(--free); }
.btn-danger { color: var(--danger); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--card); border-color: var(--line); }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-muted { color: var(--muted); font-weight: 500; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 650; color: var(--fg-2); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg); font-size: 16px;
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.input-code { font-size: 26px; letter-spacing: 0.5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--muted); }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--fg-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 1px solid var(--line-2); background: var(--card); }
.alert-error { border-color: color-mix(in srgb, var(--danger) 60%, transparent); color: var(--fg); background: color-mix(in srgb, var(--danger) 10%, var(--card)); }
.flash {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 50; max-width: min(520px, calc(100% - 32px)); width: max-content;
  background: var(--fg); color: var(--bg); padding: 12px 18px; border-radius: 14px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
  animation: flash-in .25s ease-out;
}
@keyframes flash-in { from { opacity: 0; transform: translate(-50%, 8px); } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--fg-2); background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.tag-demo { color: var(--few); border-color: color-mix(in srgb, var(--few) 40%, transparent); }

.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.lv-free { color: var(--free); }
.lv-few { color: var(--few); }
.lv-none, .lv-closed { color: var(--none); }
.lv-free.pill::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--free) 22%, transparent); animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--free) 8%, transparent); } }

/* каталог */
.hero { display: flex; flex-direction: column; gap: 8px; padding-block: 12px 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: var(--fg-2); font-size: 16px; max-width: 46ch; }
.toolbar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--fg-2); }
.chip:hover { border-color: var(--muted); color: var(--fg); }
.chip.on { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.seg a, .seg button, .seg label { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 650; color: var(--muted); border: 0; background: none; cursor: pointer; }
.seg .on, .seg input:checked + span { background: var(--card-2); color: var(--fg); }

.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.vcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.vcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.vcard-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-media .plan { position: absolute; inset: 0; padding: 18px; }
.vcard-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; }
.vcard-name { font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.vcard-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vcard-addr { color: var(--muted); font-size: 14px; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }

.map { height: min(70vh, 560px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.leaflet-container { font-family: var(--font); background: var(--bg-2); }
.leaflet-tile-pane { filter: var(--map-filter, none); }
:root { --map-filter: invert(1) hue-rotate(180deg) brightness(0.92) contrast(0.88) saturate(0.4); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) { --map-filter: saturate(0.55); } }
:root[data-theme="light"] { --map-filter: saturate(0.55); }
.pin { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 2px currentColor; background: currentColor; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; }
.leaflet-popup-content a.btn { color: var(--on-accent); margin-top: 8px; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--card) 80%, transparent) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--fg-2) !important; }

/* схема зала */
.plan { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; }
.t { display: grid; place-items: center; font-size: 11px; font-weight: 800; border-radius: 8px; border: 2px solid currentColor; color: var(--none); background: transparent; }
.t.s2 { width: 30px; height: 30px; border-radius: 50%; }
.t.s4 { width: 36px; height: 36px; }
.t.s6 { width: 52px; height: 36px; }
.t.s8 { width: 66px; height: 36px; }
.t.free { color: var(--free); background: color-mix(in srgb, var(--free) 16%, transparent); }
.t.reserved { color: var(--few); }
.t.busy { color: var(--none); background: color-mix(in srgb, var(--none) 16%, transparent); }
.plan-lg { gap: 14px; justify-content: flex-start; }
.plan-lg .t { font-size: 13px; }
.plan-lg .t.s2 { width: 40px; height: 40px; }
.plan-lg .t.s4 { width: 48px; height: 48px; }
.plan-lg .t.s6 { width: 70px; height: 48px; }
.plan-lg .t.s8 { width: 90px; height: 48px; }
.plan.is-closed { filter: grayscale(1); opacity: .45; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; border: 2px solid currentColor; }

/* страница заведения */
.venue-layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.venue-layout > * { min-width: 0; }
@media (min-width: 900px) { .venue-layout { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .book-box { position: sticky; top: 80px; } }
.venue-cover { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.venue-cover img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; font-size: 15px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.back:hover { color: var(--fg); }
.about { font-size: 16px; color: var(--fg-2); max-width: 62ch; white-space: pre-line; }

.book-box { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding-inline: 20px; }
.days::-webkit-scrollbar { display: none; }
.day, .slot { position: relative; }
.day input, .slot input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.day span { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 650; font-size: 14px; white-space: nowrap; cursor: pointer; }
.day input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.day input:focus-visible + span, .slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot span { display: grid; place-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 650; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .12s; }
.slot span:hover { border-color: var(--muted); }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.day-slots + .day-slots { margin-top: 14px; }
.js .day-slots + .day-slots { margin-top: 0; }
.day-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.js .day-title { display: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 22px; line-height: 1; }
.stepper button:hover { background: var(--card-2); }
.stepper input { width: 44px; border: 0; background: none; text-align: center; font-size: 18px; font-weight: 800; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary { display: flex; flex-direction: column; gap: 2px; }
.summary b { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

/* мои брони */
.bk { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bk.is-new { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.bk-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bk-time { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.bk-day { color: var(--muted); font-size: 14px; font-weight: 600; }
.st { display: inline-flex; font-size: 12px; font-weight: 750; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid currentColor; }
.st-pending { color: var(--accent); }
.st-confirmed { color: var(--free); }
.st-arrived { color: var(--fg-2); }
.st-declined, .st-no_show { color: var(--danger); }
.st-cancelled, .st-expired { color: var(--muted); }
.bk-note { font-size: 14px; color: var(--fg-2); }
.bk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bk-actions form { display: contents; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-block: 8px 4px; }

/* возраст */
.gate { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.gate-box { max-width: 380px; display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.gate-num { font-size: 88px; font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; color: var(--accent); }

/* текстовые страницы */
.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 14px; font-size: 16px; color: var(--fg-2); }
.prose h2 { color: var(--fg); margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.landing { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
.landing > * { min-width: 0; }
@media (min-width: 900px) { .landing { grid-template-columns: 1fr 420px; align-items: start; } }
.facts-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-list > div { background: var(--card); padding: 16px 18px; display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: baseline; }
.facts-list b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* панель заведения */
.mtop { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mtop-in { display: flex; flex-direction: column; gap: 10px; padding-block: 14px 0; }
.mtabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
.mtabs::-webkit-scrollbar { display: none; }
.mtabs a { padding: 10px 14px; text-decoration: none; font-weight: 650; font-size: 15px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.mtabs a:hover { color: var(--fg); }
.mtabs a.on { color: var(--fg); border-bottom-color: var(--accent); }
.mtabs .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 6px; margin-left: 4px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.shift { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 14px; border: 1px dashed var(--line-2); }
.shift.on { border-style: solid; border-color: color-mix(in srgb, var(--free) 50%, transparent); }
.shift-state { font-weight: 650; font-size: 14px; }
.shift.on .shift-state { color: var(--free); }
.mlist { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.bk-who { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.bk-who b { font-weight: 700; }
.src { font-size: 13px; color: var(--muted); }
.src b { color: var(--fg-2); font-weight: 650; }
.src-catalog b { color: var(--accent); }
.bk-confirm { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.bk-confirm .select { min-height: 44px; padding-block: 8px; }
details.decline summary { list-style: none; cursor: pointer; }
details.decline summary::-webkit-details-marker { display: none; }
details.decline[open] summary { margin-bottom: 8px; }
.pulse { animation: pulse 1.2s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px var(--glow); } }

.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tcell { position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; min-height: 104px; padding: 12px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--card); }
.tcell b { font-size: 17px; font-weight: 800; }
.tcell span { font-size: 13px; color: var(--muted); }

.tcell.free { border-color: var(--free); }
.tcell.free em { color: var(--free); }
.tcell.reserved { border-color: var(--few); }
.tcell.reserved em { color: var(--few); }
.tcell.busy em { color: var(--muted); }
.tcell-actions { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.tcell-actions button { min-height: 38px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 14px; font-weight: 700; padding: 0 8px; }
.tcell-actions button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.counter { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--card); }
.counter b { display: block; font-size: 28px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.counter span { font-size: 13px; color: var(--muted); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-weight: 650; color: var(--muted); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tr.total td { font-weight: 800; background: var(--card-2); }
.big-money { font-size: clamp(34px, 6vw, 48px); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }

.linkbox { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 6px 6px 6px 14px; background: var(--bg-2); }
.linkbox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 600 15px/1.4 var(--font); }
.qr-box { background: #fff; border-radius: 16px; padding: 14px; width: 220px; max-width: 100%; }
.qr-box svg { width: 100%; height: auto; display: block; }
.two-col { display: grid; gap: 24px; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; align-items: start; } }

.subnav { display: flex; gap: 6px; flex-wrap: wrap; }
.subnav a { text-decoration: none; padding: 7px 12px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--muted); border: 1px solid var(--line); }
.subnav a.on { color: var(--fg); border-color: var(--line-2); background: var(--card); }
.trow { display: grid; grid-template-columns: 1fr 90px 70px auto auto; gap: 8px; align-items: end; padding-block: 10px; border-bottom: 1px solid var(--line); }
.trow:last-child { border-bottom: 0; }
@media (max-width: 560px) { .trow { grid-template-columns: 1fr 1fr 1fr; } .trow .btn { grid-column: span 1; } }
.photo-preview { width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }

.lead { border-bottom: 1px solid var(--line); padding-block: 12px; display: flex; justify-content: space-between; gap: 12px; }
.lead.done { opacity: .5; }

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