:root {
  --bg: #05070D;
  --bg-2: #0B1020;
  --bg-3: #0E1530;
  --card: rgba(255,255,255,0.04);
  --card-2: rgba(255,255,255,0.06);
  --card-hi: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.12);
  --line-hi: rgba(255,255,255,0.18);
  --neon: #00D1FF;
  --neon-2: #2EA8FF;
  --gold: #D4AF37;
  --gold-2: #F1D27B;
  --warm: #E8B89A;       /* тёплый акцент для бытовых сценариев (семья, гость) */
  --warm-2: #F2D5BD;
  --warm-deep: #B5824F;
  --fg: #F5F7FA;
  --muted: #9AA4B2;
  --muted-2: #6B7385;
  --ok: #22C55E;
  --warn: #F59E0B;
  --err: #EF4444;
  --r: 14px;
  --r-lg: 20px;
  --shadow-glow: 0 0 0 1px rgba(0,209,255,0.18), 0 14px 60px -16px rgba(0,209,255,0.45);
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv11','ss01','ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.neon { color: var(--neon); }
.h-num { font-family: 'JetBrains Mono', monospace; font-weight: 500; letter-spacing: -0.02em; }

/* Grid background */
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(0,209,255,0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(212,175,55,0.06), transparent 60%),
    linear-gradient(180deg, #05070D 0%, #06091A 50%, #05070D 100%);
}
.app-bg::before {
  content: ""; position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(1200px 800px at 50% 30%, black, transparent 75%);
}

/* Top nav (both .nav and .topbar-wrap share the same chrome) */
.nav, .topbar-wrap { position: sticky; top: 0; z-index: 60; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: linear-gradient(180deg, rgba(5,7,13,0.97), rgba(5,7,13,0.95)); border-bottom: 1px solid var(--line); }
.nav-inner, .topbar { max-width: 1440px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
/* Brand mark — full GERZOG logo (silver shield with cyan G + wings + GERZOG wordmark).
   Renders the canonical brand mark via background-image so every existing
   `<div className="brand-mark">G</div>` instance shows the new logo. */
.brand-mark { width: 78px; height: 54px;
  background: url('assets/logo-mark.svg') center/contain no-repeat;
  border: none; border-radius: 0; box-shadow: none;
  display: inline-block; position: relative; overflow: visible;
  filter: drop-shadow(0 0 10px rgba(0,209,255,0.22)) drop-shadow(0 6px 14px rgba(0,0,0,0.45));
  font-size: 0 !important; color: transparent !important; letter-spacing: 0;
  flex-shrink: 0;
}
.brand-mark > *, .brand-mark::after, .brand-mark::before { display: none; }
/* Smaller compact variant — shield + wings only, no wordmark (for tight inline badges) */
.brand-mark.compact { width: 44px; height: 32px; background-image: url('assets/logo-shield.svg'); }
/* Warm-themed family/guest cabinets: subtle warm tint on the silver mark */
.brand-mark.brand-warm { filter: drop-shadow(0 0 10px rgba(232,184,154,0.40)) drop-shadow(0 6px 14px rgba(0,0,0,0.45)); }
.brand-name { font-weight: 700; letter-spacing: 0.16em; font-size: 13.5px; line-height: 1.1; }
.brand-name .gg { color: var(--gold); font-weight: 800; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); letter-spacing: 0.08em; margin-top: 3px; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-links a { padding: 8px 12px; font-size: 13px; color: var(--muted); border-radius: 8px; transition: 0.15s; cursor: pointer; border: 1px solid transparent; }
.nav-links a:hover { color: var(--fg); background: var(--card); }
.nav-links a:focus-visible { outline: none; color: var(--fg); background: var(--card); border-color: var(--line-hi); }
.nav-links a.active { color: var(--fg); background: rgba(0,209,255,0.08); border-color: rgba(0,209,255,0.25); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.nav-cta .badge-num { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--neon); color: #001823; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; font-weight: 700; margin-left: 4px; }

/* Burger button (mobile) */
.burger { display: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card-2); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.burger span { width: 18px; height: 1.5px; background: var(--fg); position: relative; transition: 0.2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--fg); transition: 0.2s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mob-drawer { position: fixed; inset: 65px 0 0 0; z-index: 55; background: linear-gradient(180deg, rgba(5,7,13,0.98), rgba(5,7,13,0.96)); backdrop-filter: blur(20px); padding: 24px 20px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s ease; }
.mob-drawer.open { transform: translateX(0); }
.mob-drawer a { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px; font-size: 16px; color: var(--fg); border-bottom: 1px solid var(--line); cursor: pointer; }
.mob-drawer a:hover { background: var(--card); }
.mob-drawer a.active { color: var(--neon); }
.mob-actions { display: flex; gap: 8px; margin-top: 22px; flex-direction: column; }
.mob-actions .btn { justify-content: center; padding: 14px; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 13.5px; border: 1px solid var(--line-2); background: var(--card-2); color: var(--fg); transition: 0.2s; white-space: nowrap; }
.btn:hover { background: var(--card-hi); border-color: var(--line-hi); }
.btn-primary { background: linear-gradient(180deg, #00d1ff, #0aa6cc); color: #001823; border-color: transparent; box-shadow: 0 0 0 1px rgba(0,209,255,0.4), 0 14px 36px -10px rgba(0,209,255,0.55); }
.btn-primary:hover { background: linear-gradient(180deg, #1ee0ff, #18b5d8); color: #001823; }
.btn-gold { background: linear-gradient(180deg, #e6c14a, #b8902a); color: #1a1200; border-color: transparent; box-shadow: 0 14px 36px -12px rgba(212,175,55,0.45); }
.btn-gold:hover { background: linear-gradient(180deg, #f1d27b, #d4af37); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; }
.btn-lg { padding: 14px 22px; font-size: 14.5px; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-glass { background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02)); border: 1px solid var(--line-2); border-radius: var(--r); backdrop-filter: blur(8px); box-shadow: var(--shadow-card); }
.card-pad { padding: 18px; }
.card-pad-lg { padding: 24px; }

/* Headings */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.22em; color: var(--neon); text-transform: uppercase; }
.eyebrow.gold { color: var(--gold); }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--card); white-space: nowrap; flex-shrink: 0; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.pill.ok { color: #b6efc8; border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.08); }
.pill.ok .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pill.warn { color: #fde2a6; border-color: rgba(245,158,11,0.3); background: rgba(245,158,11,0.08); }
.pill.warn .dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.pill.err { color: #fbb6b6; border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.08); }
.pill.err .dot { background: var(--err); box-shadow: 0 0 8px var(--err); }
.pill.neon { color: #b6e8ff; border-color: rgba(0,209,255,0.3); background: rgba(0,209,255,0.08); }
.pill.neon .dot { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
.pill.gold { color: var(--gold-2); border-color: rgba(212,175,55,0.3); background: rgba(212,175,55,0.08); }
.pill.gold .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Layout helpers */
.container { max-width: 1440px; margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.row { display: flex; gap: 16px; }
.col { display: flex; flex-direction: column; gap: 16px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
.input, .textarea, .select {
  background: rgba(0,0,0,0.3); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--fg); font-size: 14px; transition: 0.2s; width: 100%;}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(0,209,255,0.15); }
.textarea { min-height: 96px; resize: vertical; }

/* Hero */
.hero { position: relative; padding: 80px 0 100px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; font-weight: 800; letter-spacing: -0.035em; }
.hero h1 .accent { background: linear-gradient(120deg, var(--neon), #b6e8ff 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--muted); max-width: 560px; margin: 22px 0 32px; line-height: 1.55; }

/* Lock visual */
.lock-vis { position: relative; aspect-ratio: 1/1; max-width: 560px; margin-left: auto; }
.lock-vis .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0,209,255,0.12); }
.lock-vis .ring.r2 { inset: 30px; border-color: rgba(0,209,255,0.18); }
.lock-vis .ring.r3 { inset: 70px; border-color: rgba(0,209,255,0.28); border-style: dashed; animation: spin 80s linear infinite; }
.lock-vis .ring.r4 { inset: 110px; border-color: rgba(212,175,55,0.18); }
@keyframes spin { to { transform: rotate(360deg); } }
.lock-vis .core { position: absolute; inset: 22%; border-radius: 28px; background: linear-gradient(180deg, #0d1422, #050810); border: 1px solid rgba(0,209,255,0.25); box-shadow: 0 0 80px -10px rgba(0,209,255,0.4), inset 0 1px 0 rgba(255,255,255,0.1); display: grid; place-items: center; overflow: hidden; }
.lock-vis .core::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 40%, rgba(0,209,255,0.18) 60%, transparent 80%); }
.lock-vis .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px; }
.lock-vis .key { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); display: grid; place-items: center; color: var(--fg); font-family: 'JetBrains Mono', monospace; font-size: 14px; transition: 0.3s; }
.lock-vis .key.lit { background: rgba(0,209,255,0.18); border-color: rgba(0,209,255,0.5); color: var(--neon); box-shadow: 0 0 18px rgba(0,209,255,0.5); }
.lock-vis .badge { position: absolute; padding: 8px 14px; background: rgba(11,16,32,0.85); border: 1px solid var(--line-2); border-radius: 999px; backdrop-filter: blur(8px); font-size: 12px; display: flex; align-items: center; gap: 8px; }

/* Tag chips */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); cursor: pointer; transition: 0.2s; }
.chip:hover { color: var(--fg); border-color: var(--line-hi); }
.chip.active { color: var(--fg); background: rgba(0,209,255,0.1); border-color: rgba(0,209,255,0.4); box-shadow: 0 0 0 1px rgba(0,209,255,0.2) inset; }

/* Product card */
.prod { display: flex; flex-direction: column; transition: 0.3s; overflow: hidden; }
.prod:hover { transform: translateY(-2px); border-color: var(--line-hi); box-shadow: 0 30px 60px -30px rgba(0,209,255,0.2); }
.prod-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #0a0e1c 0%, #0d1426 100%); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.prod-img::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(0,209,255,0.18), transparent 60%); }
.prod-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.prod-name { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.prod-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.prod-price { display: flex; align-items: baseline; gap: 10px; }
.prod-price .now { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 600; color: var(--fg); }
.prod-price .old { font-size: 13px; color: var(--muted-2); text-decoration: line-through; }

/* Tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,0.02); position: sticky; top: 0; }
.tbl tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(255,255,255,0.02); }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }

/* Sidebar layout (cabinet/admin) */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: calc(100vh - 65px); }
.shell.admin { grid-template-columns: 248px 1fr; }
.sidebar { border-right: 1px solid var(--line); padding: 24px 16px; background: linear-gradient(180deg, rgba(11,16,32,0.7), rgba(5,7,13,0.7)); position: sticky; top: 65px; height: calc(100vh - 65px); overflow-y: auto; }
.sb-section { margin-bottom: 28px; }
.sb-label { font-size: 10.5px; letter-spacing: 0.2em; color: var(--muted-2); text-transform: uppercase; font-weight: 600; padding: 0 12px; margin-bottom: 10px; }
.sb-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 13.5px; cursor: pointer; transition: 0.15s; margin-bottom: 2px; }
.sb-link:hover { color: var(--fg); background: var(--card); }
.sb-link.active { color: var(--fg); background: linear-gradient(90deg, rgba(0,209,255,0.12), rgba(0,209,255,0)); border-left: 2px solid var(--neon); padding-left: 10px; }
.sb-link .badge-num { margin-left: auto; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); padding: 2px 7px; background: var(--card-2); border-radius: 6px; }
.sb-link.active .badge-num { color: var(--neon); background: rgba(0,209,255,0.12); }
.shell-main { padding: 32px; min-width: 0; }

/* Stat cards */
.stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden; }
.stat .stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat .stat-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(0,209,255,0.1); border: 1px solid rgba(0,209,255,0.25); display: grid; place-items: center; color: var(--neon); }
.stat .stat-icon.gold { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: var(--gold); }
.stat .stat-icon.ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--ok); }
.stat .stat-icon.warn { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: var(--warn); }
.stat .stat-val { font-family: 'JetBrains Mono', monospace; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.stat .stat-label { font-size: 12.5px; color: var(--muted); }
.stat .stat-trend { font-size: 11.5px; font-family: 'JetBrains Mono', monospace; }

/* Mini bar/line chart */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.spark .b { flex: 1; background: linear-gradient(180deg, rgba(0,209,255,0.5), rgba(0,209,255,0.1)); border-radius: 2px 2px 0 0; min-height: 4px; }

/* Sticky header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; }
.page-head p { color: var(--muted); margin: 6px 0 0; font-size: 13.5px; }

/* Search bar admin */
.adm-top {
  display: flex; align-items: center; gap: 12px; padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  /* Solid (nearly-opaque) background so page-head h1 text doesn't bleed
     through when scrolled behind the sticky search bar. */
  background: linear-gradient(180deg, rgba(8,11,22,0.97), rgba(8,11,22,0.94));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: sticky; top: 65px; z-index: 55;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,0.6);
}
.adm-search { flex: 1; max-width: 520px; position: relative; }
.adm-search .input { padding-left: 38px; }
.adm-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* Admin/cabinet header strip */
.role-bar { padding: 8px 14px; border-radius: 10px; background: linear-gradient(90deg, rgba(212,175,55,0.08), rgba(0,209,255,0.04)); border: 1px solid rgba(212,175,55,0.18); display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--gold-2); }

/* Timeline */
.timeline { display: flex; flex-direction: column; gap: 4px; }
.tl-item { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.tl-time { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* Modal */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 32px; }
.modal { background: linear-gradient(180deg, #0c1226, #07091a); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; max-width: 640px; width: 100%; box-shadow: 0 60px 120px -40px rgba(0,209,255,0.18); }

/* Mobile bezels */
.phones { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; padding: 24px 0 60px; }
.phone { width: 320px; height: 660px; border-radius: 44px; background: linear-gradient(180deg, #1a1d2a, #07091a); padding: 12px; border: 1px solid var(--line-hi); box-shadow: 0 50px 100px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06); position: relative; flex-shrink: 0; }
.phone-screen { width: 100%; height: 100%; background: var(--bg); border-radius: 32px; overflow: hidden; position: relative; border: 1px solid #000; }
.phone .notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #000; border-radius: 14px; z-index: 5; }
.phone-status { display: flex; justify-content: space-between; padding: 14px 22px 6px; font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--fg); }
.phone-content { padding: 8px 16px 14px; height: calc(100% - 40px); overflow: hidden; position: relative; }
.phone-tab { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 18px 18px; background: rgba(11,16,32,0.85); backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: flex; justify-content: space-around; }
.phone-tab .t { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: var(--muted); }
.phone-tab .t.active { color: var(--neon); }
.phone-label { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.06em; }

/* Image placeholder */
.img-ph { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, rgba(255,255,255,0.04) 12px 24px),
    linear-gradient(180deg, #0a0e1c, #0d1426);
  border: 1px dashed var(--line-2); border-radius: 12px; display: grid; place-items: center; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Lock illustration small */
.lock-thumb { width: 100%; aspect-ratio: 4/3; background: linear-gradient(135deg, #0a0e1c, #0d1426); border-radius: 12px; display: grid; place-items: center; position: relative; overflow: hidden; }
.lock-thumb::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(0,209,255,0.18), transparent 60%); }
.lock-thumb svg { position: relative; z-index: 1; }

/* Decorative grid lines */
.deco-lines { position: absolute; inset: 0; pointer-events: none; opacity: 0.4; background-image:
    linear-gradient(90deg, transparent 0%, transparent calc(100% - 1px), rgba(0,209,255,0.08) 100%);
  background-size: 80px 100%; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); }
.tab { padding: 12px 16px; font-size: 13.5px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--fg); border-color: var(--neon); }

/* Steps stepper */
.steps { display: flex; gap: 12px; align-items: center; }
.step { display: flex; align-items: center; gap: 10px; }
.step .num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-2); font-family: 'JetBrains Mono', monospace; font-size: 12.5px; color: var(--muted); }
.step.active .num { background: var(--neon); color: #001823; border-color: var(--neon); }
.step.done .num { background: rgba(34,197,94,0.15); color: var(--ok); border-color: rgba(34,197,94,0.3); }
.step .lab { font-size: 13px; color: var(--muted); }
.step.active .lab, .step.done .lab { color: var(--fg); }
.steps .sep { flex: 1; height: 1px; background: var(--line-2); }

/* Notice */
.notice { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(245,158,11,0.25); background: rgba(245,158,11,0.06); color: #fde2a6; font-size: 12.5px; display: flex; align-items: flex-start; gap: 10px; }
.notice.neon { border-color: rgba(0,209,255,0.25); background: rgba(0,209,255,0.05); color: #b6e8ff; }
.notice.err { border-color: rgba(239,68,68,0.25); background: rgba(239,68,68,0.06); color: #fbb6b6; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 36px; margin-top: 80px; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.4)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-size: 13px; margin-bottom: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--fg); font-size: 13.5px; }
.footer ul a:hover { color: var(--neon); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 24px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }

/* Specific util */
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 8px 24px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; font-size: 13.5px; }

/* Scrollbar nicer */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.16); }

/* Section header (admin) */
.adm-pagehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; gap: 14px; flex-wrap: wrap; }

/* Floating router pill */
.router-pill { position: fixed; bottom: 18px; right: 18px; z-index: 200; display: flex; gap: 6px; padding: 6px; border-radius: 999px; background: rgba(11,16,32,0.85); border: 1px solid var(--line-2); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -14px rgba(0,209,255,0.3); }
.router-pill button { background: transparent; border: 0; color: var(--muted); font-size: 11.5px; padding: 7px 12px; border-radius: 999px; }
.router-pill button.active { background: rgba(0,209,255,0.15); color: var(--fg); }

/* progress */
.bar { height: 6px; border-radius: 3px; background: var(--card); overflow: hidden; }
.bar > div { height: 100%; background: linear-gradient(90deg, var(--neon), #b6e8ff); border-radius: 3px; }

/* Reviews / stars row */
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.review { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.review:last-child { border-bottom: 0; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, rgba(0,209,255,0.25), rgba(212,175,55,0.15)); display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--fg); flex-shrink: 0; }

/* Comparison table */
.cmp-tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.cmp-tbl th, .cmp-tbl td { padding: 16px 18px; text-align: left; vertical-align: top; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.cmp-tbl thead th { font-size: 14px; font-weight: 700; }
.cmp-tbl thead th.tt { color: var(--neon); }
.cmp-tbl thead th.sl { color: var(--gold); }
.cmp-tbl tbody td:first-child { color: var(--muted); font-size: 13px; }
.cmp-tbl tbody tr:last-child td { border-bottom: 0; }
.cmp-check { color: var(--ok); }
.cmp-cross { color: var(--muted-2); }

/* Trust strip */
.trust-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.trust-tile { padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.trust-tile .ico { width: 38px; height: 38px; border-radius: 10px; background: rgba(0,209,255,0.1); border: 1px solid rgba(0,209,255,0.25); color: var(--neon); display: grid; place-items: center; flex-shrink: 0; }
.trust-tile .ico.gold { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: var(--gold); }

/* Calculator */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; }
.calc-stat { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.calc-stat .v { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 600; }
.calc-stat .l { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* Loading skeleton */
@keyframes shimmer { 0% { background-position: -800px 0; } 100% { background-position: 800px 0; } }
.skel { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08), rgba(255,255,255,0.04)); background-size: 800px 100%; animation: shimmer 1.6s infinite linear; border-radius: 8px; }

/* Empty state */
.empty { padding: 64px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; background: rgba(255,255,255,0.02); }
.empty .ico { width: 72px; height: 72px; border-radius: 20px; background: var(--card-2); display: grid; place-items: center; margin: 0 auto 18px; color: var(--muted); }

/* FAQ accordion */
.faq-item { border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 14.5px; }
.faq-q:hover { background: var(--card-hi); }
.faq-a { padding: 0 20px 20px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

/* Map placeholder */
.map-ph { height: 360px; background:
    repeating-linear-gradient(0deg, rgba(0,209,255,0.04) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(0,209,255,0.04) 0 1px, transparent 1px 60px),
    radial-gradient(circle at 30% 60%, rgba(0,209,255,0.12), transparent 50%),
    radial-gradient(circle at 70% 40%, rgba(212,175,55,0.08), transparent 50%),
    linear-gradient(180deg, #0a0e1c, #050810);
  border: 1px solid var(--line); border-radius: 14px; position: relative; overflow: hidden;
}
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.map-pin .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--neon); border: 2px solid #fff; box-shadow: 0 0 18px var(--neon), 0 0 0 8px rgba(0,209,255,0.18); }
.map-pin .lab { background: rgba(11,16,32,0.95); border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 999px; font-size: 11px; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

/* Stock badge variants */
.stock-in { color: var(--ok); }
.stock-low { color: var(--warn); }
.stock-order { color: var(--muted); }

/* Range slider */
/* Checkout-specific */
.checkout-mobile-bar {
  display: none;
}
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr !important; }
  .checkout-summary { position: static !important; }
}
@media (max-width: 720px) {
  .checkout-mobile-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: rgba(11,16,32,0.92);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -20px 50px -16px rgba(0,0,0,0.6);
  }
  .checkout-mobile-bar .btn { padding: 12px 18px; }
  .checkout-nav { display: none !important; }
}

input[type="range"].range { -webkit-appearance: none; width: 100%; height: 4px; background: var(--card-hi); border-radius: 999px; outline: none; }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--neon); cursor: pointer; box-shadow: 0 0 10px rgba(0,209,255,0.6), 0 0 0 2px #001823; }
input[type="range"].range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--neon); cursor: pointer; border: 2px solid #001823; }

/* Hero CTA button hover */
.btn:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .calc { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .lock-vis { margin: 0 auto; max-width: 460px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shell, .shell.admin { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .page-head h1 { font-size: 24px; }
  .hero { padding: 48px 0 60px; }
  .section { padding: 56px 0; }
}

@media (max-width: 720px) {
  .nav-cta .btn:not(.btn-icon):not(.always-show) { display: none; }
  .nav-cta .btn-icon { display: inline-grid; }
  .nav-inner, .topbar { padding: 12px 18px; gap: 12px; }
  .container { padding: 0 18px; }
  .grid-4 { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px !important; }
  .page-head { flex-direction: column; align-items: stretch; }
  .page-head h1 { font-size: 22px; }
  .steps { overflow-x: auto; padding-bottom: 8px; }
  .step .lab { display: none; }
  .step .num { width: 24px; height: 24px; font-size: 11px; }
}

/* =========================================================
   BLOCK J — Cookie banner (152-ФЗ)
   ========================================================= */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 1500; /* выше футера/sticky-bar, ниже модалок (99999) */
  animation: cookieIn .35s ease-out;
}
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.cookie-inner {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 22px; max-width: 1180px; margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,209,255,0.15);
}
.cookie-content { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
.cookie-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold);
  display: grid; place-items: center; flex-shrink: 0;
}
.cookie-text { font-size: 13px; line-height: 1.55; color: var(--muted); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 720px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; }
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 16px 18px; gap: 14px; }
  .cookie-actions { flex-direction: column; }
  .cookie-actions .btn { width: 100%; justify-content: center; padding: 12px; }
}

/* =========================================================
   Gold button variant (Block B.4 — «Открыть удалённо», и др.)
   ========================================================= */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b58a2c) !important;
  border-color: var(--gold) !important;
  color: #1a1200 !important;
  font-weight: 600;
}
.btn-gold:hover { filter: brightness(1.08); box-shadow: 0 8px 24px -6px rgba(212,175,55,0.5); }

/* =========================================================
   BLOCK H — Cabinet control / Admin fleet
   ========================================================= */
.control-grid { gap: 16px; }
@media (max-width: 980px) { .control-grid { grid-template-columns: 1fr !important; } }

/* =========================================================
   BLOCK E.1 — Legal docs (sticky TOC + контент)
   ========================================================= */
@media (max-width: 980px) {
  .legal-grid { grid-template-columns: 1fr !important; }
  .legal-grid aside { position: static !important; }
}

/* =========================================================
   BLOCK F — Mobile: таблицы → карточки + sticky drawer для кабинета
   ========================================================= */

/* На мобиле прятать сайдбар сайдбары админки/кабинета (уже было) — добавить drawer-кнопку */
.shell-mob-toggle { display: none; }
.shell-mob-wrapper { display: none; }
@media (max-width: 1100px) {
  .shell-mob-wrapper { display: block; padding: 16px 18px 0; grid-column: 1 / -1; }
  .shell-mob-toggle {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px;
    border: 1px solid var(--line-2); border-radius: 10px;
    background: var(--card-2); color: var(--fg);
    font-size: 13px; cursor: pointer; width: 100%;
    justify-content: space-between;
  }
  .shell-mob-toggle > span { white-space: nowrap; }
  .sidebar.mob-open {
    display: block !important;
    position: fixed; inset: 65px 0 0 0; z-index: 60;
    background: linear-gradient(180deg, rgba(5,7,13,0.98), rgba(5,7,13,0.96));
    backdrop-filter: blur(20px);
    overflow-y: auto;
    width: 100%;
    height: calc(100vh - 65px);
    padding: 24px 20px;
  }
  /* Admin/UC toolbar: на узком вьюпорте поиск занимает первую строку,
     кнопки переносятся на вторую и остаются выровнены вправо — иначе тесно. */
  .adm-top { flex-wrap: wrap; padding: 12px 18px; gap: 10px; }
  .adm-search { flex: 1 1 100%; max-width: none; }
}

/* Таблицы → карточки на мобиле */
@media (max-width: 720px) {
  .tbl-wrap { border: none; background: transparent; overflow: visible; }
  .tbl { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tbody { display: flex; flex-direction: column; gap: 10px; }
  .tbl tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 16px;
  }
  .tbl td {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 6px 0;
    border: none;
    font-size: 13px;
    text-align: right;
  }
  .tbl td:first-child {
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px; padding-bottom: 10px;
    font-size: 13.5px; font-weight: 600;
  }
  .tbl td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: left;
    flex: 1;
  }
  /* для строк-ссылок (cursor:pointer) — мини-стрелка */
  .tbl tr[style*="cursor:pointer"]::after,
  .tbl tr[style*="cursor: pointer"]::after { content: ""; }
}

/* Cart on mobile → cards вместо table */
@media (max-width: 720px) {
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 10px;
  }
  .cart-table td { padding: 6px 0; text-align: left; }
}

/* Mobile sticky bottom-bar (product page, lock detail, etc.) */
.mob-sticky-bar { display: none; }
@media (max-width: 720px) {
  .mob-sticky-bar {
    display: flex;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 12px 16px;
    background: rgba(11,16,32,0.96);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--line-2);
    box-shadow: 0 -20px 50px -16px rgba(0,0,0,0.6);
    gap: 10px;
  }
  .mob-sticky-bar .btn { flex: 1; justify-content: center; padding: 14px; }
  body { padding-bottom: 72px; } /* avoid sticky covering content */
}

/* Tabs scroll on mobile */
@media (max-width: 720px) {
  .tabs { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
}

/* Cookie banner above sticky bar */
@media (max-width: 720px) {
  .mob-sticky-bar ~ .cookie-banner { bottom: 80px; }
}

/* =========================================================
   PLATFORM v2.0 — общие классы для новых кабинетов
   ========================================================= */
.warm { color: var(--warm); }
.warm-bg { background: rgba(232, 184, 154, 0.08); border: 1px solid rgba(232, 184, 154, 0.22); }
.btn-warm { background: linear-gradient(180deg, var(--warm), var(--warm-deep)); color: #2a1606; border-color: transparent; }
.btn-warm:hover { filter: brightness(1.08); }
.pill.warm { color: var(--warm-2); border-color: rgba(232,184,154,0.35); background: rgba(232,184,154,0.08); }
.pill.warm .dot { background: var(--warm); box-shadow: 0 0 8px var(--warm); }

/* Cabinet selector (на главной платформы) */
.cabinet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cabinet-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 22px; border-radius: 16px; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid var(--line-2);
  transition: 0.25s;
  position: relative; overflow: hidden;
  min-height: 196px;
}
.cabinet-card:hover { transform: translateY(-3px); border-color: var(--line-hi); box-shadow: 0 30px 60px -30px rgba(0,209,255,0.25); }
.cabinet-card .cab-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,209,255,0.1); border: 1px solid rgba(0,209,255,0.3); color: var(--neon); }
.cabinet-card .cab-ico.gold { background: rgba(212,175,55,0.1); border-color: rgba(212,175,55,0.3); color: var(--gold); }
.cabinet-card .cab-ico.warm { background: rgba(232,184,154,0.1); border-color: rgba(232,184,154,0.3); color: var(--warm); }
.cabinet-card .cab-ico.ok { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.3); color: var(--ok); }
.cabinet-card h3 { font-size: 18px; letter-spacing: -0.01em; }
.cabinet-card .role { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.14em; text-transform: uppercase; }
.cabinet-card .who { font-size: 12.5px; color: var(--muted); line-height: 1.45; flex: 1; }
.cabinet-card .go-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--neon); }
.cabinet-card.warm-card { background: linear-gradient(180deg, rgba(232,184,154,0.08), rgba(232,184,154,0.02)); border-color: rgba(232,184,154,0.22); }
.cabinet-card.warm-card .go-link { color: var(--warm); }
@media (max-width: 1100px) { .cabinet-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .cabinet-grid { grid-template-columns: 1fr; } }

/* Иерархия ЖК → дом → подъезд → этаж → квартира */
.zhk-tree { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,0.02); }
.zhk-tree .tree-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; }
.zhk-tree .tree-row .lvl-mark { width: 24px; height: 24px; border-radius: 7px; background: var(--card-2); display: grid; place-items: center; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; }
.zhk-tree .tree-row.lvl-1 { padding-left: 0; }
.zhk-tree .tree-row.lvl-2 { padding-left: 22px; }
.zhk-tree .tree-row.lvl-3 { padding-left: 44px; }
.zhk-tree .tree-row.lvl-4 { padding-left: 66px; font-size: 12px; color: var(--muted); }

/* Operator Desk (УК-ЖК — главная фишка) */
.op-grid { display: grid; grid-template-columns: 280px 1fr 320px; gap: 16px; min-height: calc(100vh - 200px); }
.op-queue { display: flex; flex-direction: column; gap: 8px; }
.op-call { padding: 12px 14px; border-radius: 11px; background: var(--card); border: 1px solid var(--line-2); cursor: pointer; transition: 0.2s; }
.op-call:hover { border-color: var(--line-hi); background: var(--card-hi); }
.op-call.active { background: rgba(0,209,255,0.08); border-color: rgba(0,209,255,0.4); }
.op-call.urgent { border-color: rgba(239,68,68,0.3); background: rgba(239,68,68,0.06); }
.op-call .op-call-time { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.08em; }
.op-call .op-call-loc { font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.op-call .op-call-desc { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

.op-stage {
  background: linear-gradient(180deg, #0a0e1c, #050810);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 460px;
}
.op-video {
  flex: 1;
  background:
    radial-gradient(circle at 50% 30%, rgba(0,209,255,0.12), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.02) 0 12px, rgba(255,255,255,0.04) 12px 24px),
    linear-gradient(180deg, #0a0e1c, #050810);
  position: relative;
  display: grid; place-items: center;
}
.op-overlay { position: absolute; padding: 8px 12px; border-radius: 8px; background: rgba(11,16,32,0.85); border: 1px solid var(--line-2); backdrop-filter: blur(10px); font-size: 11.5px; }
.op-overlay.tl { top: 14px; left: 14px; }
.op-overlay.tr { top: 14px; right: 14px; }
.op-overlay.br { bottom: 14px; right: 14px; }

.op-controls { padding: 14px 18px; display: flex; gap: 10px; align-items: center; justify-content: center; border-top: 1px solid var(--line-2); background: rgba(11,16,32,0.5); }
.op-ctl-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--card-2); color: var(--fg); cursor: pointer; transition: 0.2s; }
.op-ctl-btn:hover { background: var(--card-hi); }
.op-ctl-btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.op-ctl-btn.ok { background: var(--ok); border-color: var(--ok); color: #001b07; }
.op-ctl-btn.neon { background: var(--neon); border-color: var(--neon); color: #001823; }

@media (max-width: 1200px) { .op-grid { grid-template-columns: 1fr; } }

/* AI-консьерж preview (TV в холле) */
.tv-frame {
  aspect-ratio: 16/9;
  background: linear-gradient(180deg, #1a1d2a, #07091a);
  border: 1px solid var(--line-hi);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative;
}
.tv-frame::before { content: ""; position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); width: 80px; height: 6px; border-radius: 3px; background: linear-gradient(180deg, #2a2e3c, #181b25); }
.tv-frame::after { content: ""; position: absolute; left: 50%; bottom: -38px; transform: translateX(-50%); width: 200px; height: 14px; border-radius: 7px 7px 50% 50% / 7px 7px 80% 80%; background: linear-gradient(180deg, #181b25, #0d0f15); }
.tv-screen {
  width: 100%; height: 100%; border-radius: 10px; overflow: hidden; position: relative;
  background: radial-gradient(circle at 50% 40%, #1a2238 0%, #050810 70%);
  border: 1px solid rgba(0,0,0,0.5);
}

/* Booking calendar pills */
.cal-grid { display: grid; grid-template-columns: 180px repeat(14, 1fr); gap: 4px; align-items: center; }
.cal-cell { height: 28px; border-radius: 5px; background: var(--card); border: 1px solid var(--line); }
.cal-cell.booked { background: rgba(0,209,255,0.2); border-color: rgba(0,209,255,0.45); }
.cal-cell.cleaning { background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.4); }
.cal-cell.checkout { background: rgba(212,175,55,0.18); border-color: rgba(212,175,55,0.4); }
.cal-cell.maintenance { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.35); }
.cal-label { font-size: 12px; color: var(--muted); padding-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-head { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--muted-2); text-align: center; }

/* Insurance — золотой бэдж */
.insure-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(212,175,55,0.1); border: 1px solid rgba(212,175,55,0.3);
  color: var(--gold-2); font-size: 12px; font-weight: 600;
}

/* Shop — 5 категорий */
.shop-cat-card { padding: 22px; border-radius: 14px; cursor: pointer; transition: 0.25s; background: var(--card); border: 1px solid var(--line-2); display: flex; gap: 16px; align-items: center; }
.shop-cat-card:hover { border-color: var(--line-hi); background: var(--card-hi); }
.shop-cat-card .ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,209,255,0.08); border: 1px solid rgba(0,209,255,0.3); color: var(--neon); font-size: 24px; flex-shrink: 0; }
.shop-cat-card .ico.gold { background: rgba(212,175,55,0.08); border-color: rgba(212,175,55,0.3); color: var(--gold); }
.shop-cat-card .ico.warm { background: rgba(232,184,154,0.08); border-color: rgba(232,184,154,0.3); color: var(--warm); }
.shop-cat-card .ico.ok { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.3); color: var(--ok); }
.shop-cat-card h4 { font-size: 16px; }
.shop-cat-card .partner-tag { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; }

/* /life — категории */
.life-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1200px) { .life-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .life-grid { grid-template-columns: 1fr 1fr; } }

/* Phone screen вспомогательный padding/header */
.pw-head { padding: 14px 18px 6px; display: flex; align-items: center; justify-content: space-between; }
.pw-head h3 { font-size: 17px; }
.pw-section { padding: 12px 18px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-family: 'JetBrains Mono', monospace; }
.pw-card { margin: 4px 18px 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pw-tab { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(11,16,32,0.92); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 8px 4px 18px; display: flex; justify-content: space-around; }
.pw-tab .t { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; color: var(--muted); padding: 6px 8px; }
.pw-tab .t.active { color: var(--neon); }
.pw-tab .t.warm { color: var(--warm); }

/* Уютная "warm" zone — для семьи и гостя */
.cozy-bg {
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(232,184,154,0.10), transparent 60%),
    radial-gradient(700px 400px at -10% 100%, rgba(0,209,255,0.05), transparent 60%),
    linear-gradient(180deg, #08070d 0%, #0c0a10 50%, #07060c 100%);
}

/* Door cam preview (для интеркома) */
.doorcam {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 50% 60%, rgba(232,184,154,0.18), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0 2px, transparent 2px 4px),
    linear-gradient(180deg, #0c1018, #050810);
  border-radius: 12px; position: relative; overflow: hidden; border: 1px solid var(--line);
}
.doorcam::before { content: 'LIVE'; position: absolute; top: 10px; left: 10px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; padding: 3px 8px; border-radius: 999px; background: var(--err); color: #fff; letter-spacing: 0.12em; box-shadow: 0 0 12px rgba(239,68,68,0.5); }
.doorcam::after { content: '◉ REC'; position: absolute; top: 10px; right: 10px; font-family: 'JetBrains Mono', monospace; font-size: 9.5px; color: var(--err); letter-spacing: 0.12em; }

/* Mini metric card на узких сайдбарах */
.mini-stat { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.mini-stat .v { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 600; }
.mini-stat .l { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ===== Этап 4 — общие утилиты (Shop / Life / Insurance) ===== */
/* Stepper для количества в корзине */
.qty-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--card); }
.qty-stepper button { width: 30px; height: 30px; background: transparent; border: 0; color: var(--fg); font-size: 16px; cursor: pointer; transition: 0.12s; line-height: 1; }
.qty-stepper button:hover { background: var(--card-2); color: var(--neon); }
.qty-stepper span { min-width: 32px; text-align: center; font-size: 13px; padding: 0 4px; }

/* Иконочная кнопка без рамки */
.icon-btn { width: 32px; height: 32px; border-radius: 8px; background: transparent; border: 1px solid transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: 0.15s; flex-shrink: 0; }
.icon-btn:hover { background: var(--card); color: var(--err); border-color: rgba(239,68,68,0.25); }

/* Текстовая ссылка-инлайн */
.link { color: var(--neon); cursor: pointer; }
.link:hover { text-decoration: underline; }

/* Life — карточка места */
.life-place { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: flex; gap: 14px; cursor: pointer; transition: 0.15s; }
.life-place:hover { border-color: var(--line-hi); background: var(--card-2); transform: translateY(-1px); }
.life-place .ph { width: 110px; height: 90px; flex-shrink: 0; border-radius: 8px; background: linear-gradient(135deg, rgba(0,209,255,0.05), rgba(212,175,55,0.05)); border: 1px dashed var(--line); display: grid; place-items: center; color: var(--muted-2); font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.1em; }
.life-place .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.life-place .feat { display: inline-flex; gap: 4px; padding: 2px 8px; font-size: 10.5px; border-radius: 999px; background: var(--card-2); color: var(--muted); }
@media (max-width: 720px) {
  .life-place { flex-direction: column; }
  .life-place .ph { width: 100%; height: 140px; }
}

/* Insurance — radio большой */
.ins-radio { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; transition: 0.12s; display: flex; gap: 12px; align-items: flex-start; }
.ins-radio:hover { border-color: var(--line-hi); }
.ins-radio.checked { border-color: rgba(0,209,255,0.45); background: linear-gradient(180deg, rgba(0,209,255,0.04), transparent); box-shadow: 0 0 0 1px rgba(0,209,255,0.2) inset; }
.ins-radio .ico { font-size: 22px; flex-shrink: 0; line-height: 1; }
.ins-radio h4 { font-size: 14px; margin: 0; }
.ins-radio .sub { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ===== GlassSelect — кастомный glassmorphism dropdown ===== */
/* Заменяет нативный <select> везде. Триггер — кнопка со стрелкой; меню — портал в body. */
.gz-select {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  text-align: left; cursor: pointer;
  background: rgba(0,0,0,0.3);
}
.gz-select:hover { border-color: var(--line-hi); }
.gz-select:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.gz-select[aria-expanded="true"] { border-color: rgba(0,209,255,0.45); box-shadow: 0 0 0 3px rgba(0,209,255,0.10); }
.gz-select[disabled] { opacity: 0.5; cursor: not-allowed; }
.gz-select__val { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gz-select__chev { opacity: 0.6; flex-shrink: 0; }

/* Меню в портале — фиксированная позиция, glass-эффект */
.gz-select__menu {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(14, 19, 30, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(0,209,255,0.06) inset;
  overflow: hidden;
  animation: gz-sel-in 0.14s ease-out;
}
@keyframes gz-sel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.gz-select__menu-inner {
  max-height: 318px; overflow-y: auto;
  padding: 6px;
  /* Скруглить углы списка — чтобы скроллбар не торчал за пределы */
  border-radius: 12px;
}
/* Тонкий полупрозрачный скроллбар без обводки */
.gz-select__menu-inner::-webkit-scrollbar { width: 6px; height: 6px; }
.gz-select__menu-inner::-webkit-scrollbar-track { background: transparent; border: none; margin: 6px 0; }
.gz-select__menu-inner::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 8px;
  border: none;
}
.gz-select__menu-inner::-webkit-scrollbar-thumb:hover { background: rgba(0,209,255,0.45); }
.gz-select__menu-inner { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.18) transparent; }

.gz-select__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--fg); cursor: pointer;
  transition: background 0.1s, color 0.1s;
}
.gz-select__opt.is-hi {
  background: rgba(0,209,255,0.12);
  color: var(--fg);
}
.gz-select__opt.is-selected {
  background: rgba(0,209,255,0.16);
  color: var(--neon);
  font-weight: 500;
}
.gz-select__opt.is-selected.is-hi {
  background: rgba(0,209,255,0.22);
}
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 500; border: 1px solid; }
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.status-pill.pending { color: #f59e0b; border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); }
.status-pill.pending .dot { background: #f59e0b; }
.status-pill.review  { color: var(--neon); border-color: rgba(0,209,255,0.35); background: rgba(0,209,255,0.08); }
.status-pill.review .dot { background: var(--neon); }
.status-pill.paid    { color: var(--ok); border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.08); }
.status-pill.paid .dot { background: var(--ok); }
.status-pill.rejected { color: var(--err); border-color: rgba(239,68,68,0.35); background: rgba(239,68,68,0.08); }
.status-pill.rejected .dot { background: var(--err); }

/* ===== Этап 5 — состояния, пустоты, edge-cases ===== */
/* Skeleton — пульсация для loading */
.skel { background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.04) 100%); background-size: 200% 100%; animation: skel-pulse 1.4s ease-in-out infinite; border-radius: 6px; vertical-align: middle; }
@keyframes skel-pulse { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skel-row td { border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* Контраст для warn-pill (a11y) — повысили до 4.5:1 */
.pill.warn { color: #fde2a6; background: rgba(245,158,11,0.14); border-color: rgba(245,158,11,0.40); }
.pill.err  { color: #fda4a4; background: rgba(239,68,68,0.14);  border-color: rgba(239,68,68,0.40); }

/* Focus-visible — единый стиль для всех кликабельных */
.btn:focus-visible,
.icon-btn:focus-visible,
.tab:focus-visible,
.sb-link:focus-visible,
.life-place:focus-visible,
.ins-radio:focus-visible,
.shop-cat-card:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* Mobile responsive — горизонтальный скролл для tbl */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { min-width: 100%; }
@media (max-width: 720px) {
  .tbl-wrap { margin: 0 -16px; padding: 0 16px; }
  .tbl { font-size: 12.5px; }
  .tbl thead { display: none; }
  .tbl tbody tr { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: var(--card); }
  .tbl tbody td { display: flex; justify-content: space-between; padding: 6px 0; border: 0; gap: 10px; }
  .tbl tbody td::before { content: attr(data-label); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
}

/* ====== PRINT CSS — для счёт-оферты / акта / квитанции ====== */
@media print {
  @page { size: A4; margin: 18mm 16mm; }
  body { background: #fff !important; color: #111 !important; font-family: 'Manrope', sans-serif !important; }
  body::before, .app-bg, .nav, .topbar-wrap, .footer, .cookie-banner, .__gz_toast { display: none !important; }
  .container { max-width: 100% !important; padding: 0 !important; }
  .card-glass, .card { background: #fff !important; border: 1px solid #ddd !important; box-shadow: none !important; }
  .muted, .muted-2 { color: #555 !important; }
  .mono { font-family: 'JetBrains Mono', monospace !important; }
  .neon, .gold, .warm { color: #111 !important; }
  .btn, .icon-btn, .no-print { display: none !important; }
  .print-block { page-break-inside: avoid; }
  .print-head { border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 18px; }
  .print-foot { border-top: 1px solid #ddd; padding-top: 12px; margin-top: 24px; font-size: 11px; color: #555; }
  .print-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
  .print-table th, .print-table td { border: 1px solid #ccc; padding: 8px 10px; text-align: left; font-size: 12px; }
  .print-table th { background: #f3f3f3; }
  .print-sign { display: flex; justify-content: space-between; gap: 40px; margin-top: 30px; }
  .print-sign .col { flex: 1; }
  .print-sign .line { border-bottom: 1px solid #111; height: 30px; margin-top: 30px; }
}
