/* Проект: ZVUMO — общий стиль страниц броней (тёмный, свечения, градиент ZVUMO).
   При встраивании шрифты берутся из static/fonts ZVUMO, а не с Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Unbounded:wght@400;500;600;700&display=swap');

:root {
  --bg: #07071A; --panel: rgba(20, 22, 58, .55); --line: rgba(170, 178, 255, .10); --line-2: rgba(170, 178, 255, .20);
  --text: #EEF0FF; --soft: #C9CCEB; --muted: #A3A8D0; --dim: #6F74A3;
  --cyan: #22D3EE; --blue: #3B6BFF; --violet: #7C5CFF; --magenta: #E040FB; --mint: #5EF2C7; --hot: #FF4D7E;
  --brand: linear-gradient(90deg, #22D3EE, #3B8BFF 35%, #7C5CFF 65%, #E040FB);
  --btn: linear-gradient(100deg, #3B6BFF, #6D4CFF 48%, #B83FF0);
  --st-request: #E040FB; --st-counter: #B48CFF; --st-confirmed: #6F8BFF; --st-seated: #22D3EE;
  --st-done: #4B5080; --st-noshow: #FF4D7E; --st-free: #5EF2C7; --st-block: #6F74A3;
  --display: 'Unbounded', system-ui, sans-serif;
  --body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 22px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(900px 520px at 12% -8%, rgba(59,107,255,.20), transparent 62%),
              radial-gradient(760px 520px at 100% 0%, rgba(224,64,251,.13), transparent 60%),
              radial-gradient(900px 600px at 60% 120%, rgba(34,211,238,.10), transparent 60%); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--cyan); }
b { font-weight: 600; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.glass { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,0) 40%), var(--panel);
  border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 60px -30px rgba(0,0,0,.8); backdrop-filter: blur(14px); }

.logo { display: inline-flex; align-items: center; gap: 3px; height: 26px; }
.logo i { display: block; width: 4px; border-radius: 4px; background: var(--brand); background-size: 60px 100%; box-shadow: 0 0 10px rgba(124,92,255,.55); }
.logo i:nth-child(1) { height: 35%; background-position: 0 0; } .logo i:nth-child(2) { height: 62%; background-position: -8px 0; }
.logo i:nth-child(3) { height: 85%; background-position: -16px 0; } .logo i:nth-child(4) { height: 100%; background-position: -24px 0; }
.logo i:nth-child(5) { height: 85%; background-position: -32px 0; } .logo i:nth-child(6) { height: 62%; background-position: -40px 0; }
.logo i:nth-child(7) { height: 35%; background-position: -48px 0; }
.wordmark { font: 600 17px/1 var(--display); letter-spacing: .08em; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; background: none;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; text-decoration: none; color: var(--text); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--btn); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,92,255,.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(184,63,240,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.line { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.btn.line:hover { border-color: rgba(170,178,255,.4); background: rgba(255,255,255,.06); }
.btn.ghost { color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn.danger { border-color: rgba(255,77,126,.35); color: #FFB3C7; }
.btn.sm { height: 34px; padding: 0 13px; font-size: 13.5px; }
.btn.icon { width: 38px; height: 38px; padding: 0; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: 13.5px; font-weight: 500; color: var(--soft); }
button.chip:hover { border-color: rgba(170,178,255,.45); }
.chip.on { background: rgba(124,92,255,.28); border-color: rgba(124,92,255,.7); color: #fff; box-shadow: 0 0 14px -2px rgba(124,92,255,.8); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill svg { width: 13px; height: 13px; }
.pill.request { color: #fff; background: linear-gradient(90deg, rgba(224,64,251,.9), rgba(124,92,255,.9)); box-shadow: 0 0 18px rgba(224,64,251,.55); }
.pill.test { color: #07071A; background: var(--mint); height: 20px; font-size: 10.5px; letter-spacing: .08em; }
.pill.st { border: 1px solid var(--c, var(--line-2)); color: var(--soft); }
.ava { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none;
  font: 600 14px/1 var(--display); color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 55%), var(--btn);
  box-shadow: 0 0 16px rgba(124,92,255,.5); }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.src { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.src svg { width: 15px; height: 15px; }
.src.agent { color: #E9B8FF; } .src.agent svg { filter: drop-shadow(0 0 6px rgba(224,64,251,.8)); }
.now-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); }
.warn { color: #FFB3C7 !important; }
.empty { color: var(--dim); font-size: 14px; padding: 10px 0; }

/* окно действий (снизу на телефоне, по центру на планшете) */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: grid; align-items: end; justify-items: center;
  background: rgba(3,3,14,.6); backdrop-filter: blur(3px); }
.sheet { width: min(520px, 100%); max-height: 88vh; overflow: auto; padding: 12px 20px 24px; border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, rgba(36,38,92,.98), rgba(14,15,44,.98)); border: 1px solid rgba(170,178,255,.22); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
@media (min-width: 760px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 26px; border-bottom: 1px solid rgba(170,178,255,.22); } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(170,178,255,.3); margin: 0 auto 12px; }
.sheet h3 { font: 600 19px/1.25 var(--display); }
.sheet .sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sheet .acts { display: grid; gap: 8px; margin-top: 16px; }
.sheet .acts.two { grid-template-columns: 1fr 1fr; }
.sheet .acts .btn { width: 100%; }
.sheet .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.facts { display: grid; gap: 6px; margin-top: 14px; font-size: 14px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.facts span { color: var(--muted); }
.quote { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(224,64,251,.07); border: 1px solid rgba(224,64,251,.18); color: #F2D9FF; font-size: 14px; }

/* формы */
.form { display: grid; gap: 12px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.inp, select.inp, textarea.inp { width: 100%; height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(5,6,22,.6); color: var(--text); font: 500 15px var(--body); }
textarea.inp { height: 76px; padding: 10px 14px; resize: vertical; }
.inp:focus { border-color: rgba(124,92,255,.8); outline: none; box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; color: var(--soft) !important; font-size: 13.5px !important; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #7C5CFF; flex: none; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper b { font: 600 20px/1 var(--display); min-width: 36px; text-align: center; }
.hint { color: var(--dim); font-size: 12.5px; }

/* всплывающее сообщение */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; padding: 12px 18px; border-radius: 16px;
  background: rgba(28,30,74,.97); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.6); font-size: 14px; max-width: calc(100vw - 32px); }
.toast.ok { border-color: rgba(94,242,199,.5); } .toast.err { border-color: rgba(255,77,126,.6); color: #FFD0DC; }

.dev { margin-top: 18px; padding: 12px 14px; border-radius: 16px; border: 1px dashed rgba(94,242,199,.35); color: var(--muted); font-size: 13px;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dev b { color: var(--mint); font-weight: 600; }
