/* ============================================================================
   EMBER — premium design system
   Dark luxe aesthetic · champagne-gold accents · Apple-grade spacing & type
   ============================================================================ */

:root {
  /* Surfaces */
  --bg: #08080a;
  --bg-2: #0c0c10;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #f4f4f6;
  --text-2: #a0a0aa;
  --text-3: #6c6c76;

  /* Gold */
  --gold-1: #f7e7b4;
  --gold-2: #e1bd72;
  --gold-3: #c69a45;
  --gold-deep: #a87b2c;
  --gold-grad: linear-gradient(135deg, #f9ecc4 0%, #e1bd72 45%, #c69a45 100%);
  --gold-soft: rgba(225, 189, 114, 0.12);
  --gold-line: rgba(225, 189, 114, 0.32);

  /* Semantic */
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.14);
  --red: #f87171;
  --red-soft: rgba(248, 113, 113, 0.13);
  --blue: #7dd3fc;
  --blue-soft: rgba(125, 211, 252, 0.14);

  /* Geometry */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 9px;
  --maxw: 1140px;
  --nav-h: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 18px 50px -16px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 18px 60px -18px rgba(198, 154, 69, 0.45);

  --font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
    "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", "Menlo", "Consolas", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background glow — warm, subtle, fixed */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(198, 154, 69, 0.14), transparent 70%),
    radial-gradient(700px 500px at 90% 8%, rgba(120, 90, 200, 0.06), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  pointer-events: none;
}

a { color: var(--gold-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gold-1); }

img { max-width: 100%; display: block; }

::selection { background: rgba(225, 189, 114, 0.28); color: #fff; }

/* ── Layout ──────────────────────────────────────────────────────────────── */

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

.section { padding: clamp(64px, 11vw, 132px) 0; }
.section-tight { padding: clamp(48px, 7vw, 88px) 0; }

main { min-height: 60vh; }

/* ── Typography ──────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }

.display {
  font-size: clamp(2.7rem, 1.4rem + 5.4vw, 5.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.h-section { font-size: clamp(2rem, 1.3rem + 2.7vw, 3.2rem); letter-spacing: -0.035em; }
.h-card { font-size: 1.35rem; letter-spacing: -0.025em; }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.42rem);
  color: var(--text-2);
  line-height: 1.5;
  letter-spacing: -0.015em;
  font-weight: 400;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 18px;
}

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.center { text-align: center; }
.balance { text-wrap: balance; }

/* ── Navigation ──────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 13, 0.55);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled {
  background: rgba(9, 9, 12, 0.8);
  border-bottom-color: var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 12px 1px rgba(225, 189, 114, 0.6);
}
.brand b { font-weight: 600; letter-spacing: 0.14em; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-email { color: var(--text-3); font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; padding: 8px;
  color: var(--text);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .2s ease,
    border-color .2s ease, color .2s ease, opacity .2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-primary {
  background: var(--gold-grad);
  color: #1a1407;
  font-weight: 600;
  box-shadow: 0 8px 24px -8px rgba(198, 154, 69, 0.55);
}
.btn-primary:hover {
  color: #1a1407;
  transform: translateY(-1.5px);
  box-shadow: 0 14px 34px -8px rgba(198, 154, 69, 0.7);
}

.btn-ghost {
  background: var(--surface-2);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-3); border-color: var(--gold-line); color: var(--text); }

.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }

.btn-success { background: var(--green); color: #06210f; font-weight: 600; }
.btn-success:hover { color: #06210f; transform: translateY(-1.5px); box-shadow: 0 12px 28px -10px rgba(74,222,128,.5); }
.btn-danger { background: transparent; border-color: rgba(248,113,113,.4); color: #fca5a5; }
.btn-danger:hover { background: var(--red-soft); border-color: var(--red); color: #fecaca; }

.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 15px; font-size: 0.86rem; }
.btn-block { width: 100%; }

.btn svg { width: 18px; height: 18px; }

/* ── Cards & surfaces ────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.card-pad-lg { padding: 34px; }

.surface-link { transition: border-color .2s ease, transform .2s ease, background .2s ease; }
.surface-link:hover {
  border-color: var(--gold-line);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.divider { height: 1px; background: var(--border); border: 0; margin: 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { position: relative; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 9vw, 110px); text-align: center; }
.hero .container { position: relative; z-index: 1; }
.hero .lead { max-width: 620px; margin: 24px auto 0; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--text-3); }

.hero-visual {
  margin: clamp(48px, 7vw, 84px) auto 0;
  max-width: 920px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* device mockup of staff dashboard */
.mock {
  padding: 18px;
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.mock-col-head { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--text-3); margin-bottom: 10px; }
.mock-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 10px; }
.mock-card .t { font-weight: 600; font-size: .95rem; }
.mock-card .s { font-size: .82rem; color: var(--text-2); margin-top: 3px; }
.mock-card.hot { border-color: var(--gold-line); box-shadow: 0 0 0 1px var(--gold-soft) inset; }

/* ── Section header ──────────────────────────────────────────────────────── */

.sec-head { max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head .lead { margin-top: 16px; }

/* ── Feature grid ────────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease, background .25s ease;
}
.feature:hover { border-color: var(--gold-line); transform: translateY(-3px); background: var(--surface-2); }
.icon-chip {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  margin-bottom: 18px;
}
.icon-chip svg { width: 23px; height: 23px; stroke: var(--gold-1); }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--text-2); font-size: 0.96rem; line-height: 1.5; }

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding-top: 18px; border-top: 1px solid var(--border); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--gold-2);
  display: block; margin-bottom: 12px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 7px; }
.step p { margin: 0; color: var(--text-2); font-size: 0.93rem; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.price {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.price.featured {
  border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(225,189,114,0.07), var(--surface));
  box-shadow: var(--shadow-gold);
}
.price-badge {
  position: absolute; top: 18px; right: 18px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1a1407; background: var(--gold-grad);
  padding: 4px 11px; border-radius: 999px;
}
.price h3 { font-size: 1.15rem; margin-bottom: 6px; }
.price .tier-sub { color: var(--text-2); font-size: 0.9rem; min-height: 40px; }
.price .amount { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 20px; }
.price .amount .num { font-size: 2.7rem; font-weight: 600; letter-spacing: -0.04em; }
.price .amount .per { color: var(--text-3); font-size: 0.95rem; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; }
.price ul li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 0.94rem; color: var(--text-2); }
.price ul li svg { width: 17px; height: 17px; stroke: var(--gold-2); flex: none; margin-top: 3px; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 22px 4px;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-size: 1.08rem; font-weight: 550; letter-spacing: -0.02em;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { transition: transform .25s ease; color: var(--gold-2); flex: none; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq p { color: var(--text-2); margin: 14px 0 0; font-size: 0.98rem; line-height: 1.6; }

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-band {
  text-align: center;
  background: linear-gradient(180deg, rgba(225,189,114,0.08), var(--surface));
  border: 1px solid var(--gold-line);
  border-radius: 28px;
  padding: clamp(48px, 7vw, 80px) 28px;
}

/* ── Forms ───────────────────────────────────────────────────────────────── */

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.input, input[type=text], input[type=email], input[type=password], input[type=number], textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 13px 15px;
  border-radius: var(--radius-xs);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input::placeholder, input::placeholder { color: var(--text-3); }
.input:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold-line);
  box-shadow: 0 0 0 4px var(--gold-soft);
  background: #0a0a0d;
}
.input-mono { font-family: var(--mono); font-size: 0.86rem; letter-spacing: 0; }
.field small { display: block; margin-top: 8px; font-size: 0.83rem; color: var(--text-3); line-height: 1.5; }
.check-row { display: flex; align-items: center; gap: 11px; cursor: pointer; font-size: .94rem; color: var(--text); }
.check-row input[type=checkbox] { width: 19px; height: 19px; flex: none; accent-color: var(--gold-2); cursor: pointer; }

/* ── Auth ────────────────────────────────────────────────────────────────── */

.auth-wrap { display: flex; align-items: center; justify-content: center; padding: clamp(40px, 9vw, 96px) 0; }
.auth-card {
  width: 100%; max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.7rem; letter-spacing: -0.03em; }
.auth-card .sub { color: var(--text-2); margin: 8px 0 26px; font-size: 0.98rem; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 0.92rem; color: var(--text-3); }

/* ── Alerts ──────────────────────────────────────────────────────────────── */

.alert { padding: 13px 16px; border-radius: var(--radius-xs); margin-bottom: 18px; font-size: 0.92rem; line-height: 1.5; }
.alert-error { color: #fecaca; background: var(--red-soft); border: 1px solid rgba(248,113,113,.3); }
.alert-ok { color: #bbf7d0; background: var(--green-soft); border: 1px solid rgba(74,222,128,.3); }
.alert-info { color: #bae6fd; background: var(--blue-soft); border: 1px solid rgba(125,211,252,.28); }

/* ── Status pill ─────────────────────────────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 550; letter-spacing: -0.005em;
}
.pill .led { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pill.running { background: var(--green-soft); color: #86efac; }
.pill.running .led { background: #4ade80; box-shadow: 0 0 8px 1px rgba(74,222,128,.8); }
.pill.stopped { background: var(--surface-3); color: var(--text-2); }
.pill.stopped .led { background: var(--text-3); }
.pill.error { background: var(--red-soft); color: #fca5a5; }
.pill.error .led { background: var(--red); }
.pill.created { background: var(--blue-soft); color: #bae6fd; }
.pill.created .led { background: var(--blue); }

/* ── Page header (app) ───────────────────────────────────────────────────── */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); letter-spacing: -0.035em; }
.page-head .sub { color: var(--text-2); margin-top: 6px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 0.9rem; margin-bottom: 20px; }
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

/* ── Venue grid (dashboard) ──────────────────────────────────────────────── */

.venue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.venue {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--text);
}
.venue:hover { color: var(--text); }
.venue .venue-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.venue h3 { font-size: 1.22rem; letter-spacing: -0.025em; }
.venue .meta { color: var(--text-3); font-size: 0.86rem; margin-top: 8px; display: flex; gap: 7px; flex-wrap: wrap; align-items: center; }
.venue .meta .sep { opacity: .5; }
.venue-add {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; min-height: 160px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  color: var(--text-2);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.venue-add:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }
.venue-add .plus { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-strong); }
.venue-add .plus svg { width: 22px; height: 22px; }

/* empty state */
.empty {
  text-align: center; padding: clamp(48px, 8vw, 88px) 24px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid var(--gold-line); }
.empty .empty-icon svg { width: 30px; height: 30px; stroke: var(--gold-1); }
.empty h2 { font-size: 1.5rem; margin-bottom: 10px; }
.empty p { color: var(--text-2); max-width: 420px; margin: 0 auto 26px; }

/* ── Code / token boxes ──────────────────────────────────────────────────── */

.codebox {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs); padding: 12px 14px;
  font-family: var(--mono); font-size: 0.86rem; color: var(--gold-1);
  word-break: break-all;
}
.codebox code { flex: 1; min-width: 0; background: none; padding: 0; color: inherit; }
.copy-btn {
  flex: none; background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--text-2); border-radius: 7px; padding: 6px 10px; cursor: pointer;
  font-family: var(--font); font-size: 0.78rem; transition: all .18s ease;
}
.copy-btn:hover { color: var(--text); border-color: var(--gold-line); }
.copy-btn.copied { color: var(--green); border-color: rgba(74,222,128,.4); }

code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--surface-2); color: var(--gold-1);
  padding: 2px 6px; border-radius: 5px;
}

/* terminal log */
.terminal {
  background: #060608; border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.terminal-bar .tdot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.terminal-bar .tlabel { margin-left: 8px; font-size: 0.8rem; color: var(--text-3); font-family: var(--mono); }
.terminal pre {
  margin: 0; padding: 16px; max-height: 320px; overflow: auto;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word;
}

/* ── Tabs (tenant sections IA) ───────────────────────────────────────────── */

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  padding: 11px 16px; border-radius: 10px 10px 0 0; font-size: 0.94rem; font-weight: 500;
  color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: inline-flex; align-items: center; gap: 8px;
}
.tab.active { color: var(--text); border-bottom-color: var(--gold-2); }
.tab.soon { color: var(--text-3); cursor: default; }
.tab .soon-tag { font-size: 0.62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-3); border: 1px solid var(--gold-line); border-radius: 999px; padding: 1px 7px; }

/* info rows */
.info-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .info-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }

/* ── Staff list (Кальянщики) ─────────────────────────────────────────────── */
.s-list > * + * { margin-top: 10px; }
.s-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: 12px; background: var(--surface);
}
.s-num {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border-strong);
  font-weight: 600; font-size: 0.92rem; color: var(--gold-1);
}
.s-num.admin { color: var(--text-3); }
.s-info { flex: 1; min-width: 150px; }
.s-info .nm { font-weight: 550; }
.s-info .meta { color: var(--text-3); font-size: 0.83rem; margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.s-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 550; padding: 4px 10px; border-radius: 999px; }
.tag.admin { background: var(--gold-soft); color: var(--gold-1); border: 1px solid var(--gold-line); }
.tag.kal { background: var(--surface-3); color: var(--text-2); }
.tag.active { background: var(--green-soft); color: #86efac; }
.code-flash { border-color: var(--gold-line); background: linear-gradient(180deg, rgba(225,189,114,0.08), var(--surface)); }

/* ── Menu manager (Меню) ─────────────────────────────────────────────────── */
.menu-intro { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 13px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 0.92rem; color: var(--text-2); margin-bottom: 18px; }

.dir-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.dir-pill { font-size: 0.86rem; font-weight: 500; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; transition: all .18s ease; white-space: nowrap; }
.dir-pill:hover { color: var(--text); border-color: var(--gold-line); background: var(--gold-soft); }
.dir-pill-add { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-1);
  border-color: var(--gold-line); border-style: dashed; background: transparent; }
.dir-pill-add:hover { background: var(--gold-soft); color: var(--gold-1); border-style: solid; }
.dir-pill-add svg { width: 14px; height: 14px; }

.dir-list { display: flex; flex-direction: column; gap: 10px; max-width: 560px; }
.dir-row { border: 1px solid var(--border); border-radius: 13px; background: var(--surface); padding: 13px 16px; }
.dir-row-view { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.dir-row.editing .dir-row-view { display: none; }
.dir-row-edit { display: none; flex-direction: column; gap: 9px; }
.dir-row.editing .dir-row-edit { display: flex; }
.dir-edit-actions { display: flex; gap: 8px; margin-top: 2px; }
.icon-btn { width: 34px; height: 34px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text-2);
  transition: color .15s, background .15s, border-color .15s; }
.icon-btn:hover { color: var(--gold-1); border-color: var(--gold-line); background: var(--gold-soft); }
.icon-btn svg { width: 16px; height: 16px; }
.dir-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dir-row-label { font-weight: 550; font-size: 1.02rem; letter-spacing: -0.015em; }
.dir-row-count { font-size: 0.8rem; color: var(--text-3); }
.dir-row-tag { flex: none; font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.dir-row.is-hidden { opacity: .5; }
.dir-row-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.dir-hidden-tag { font-size: .66rem; color: var(--text-3); border: 1px solid var(--border);
  border-radius: 999px; padding: 2px 8px; vertical-align: middle; text-transform: uppercase; letter-spacing: .04em; }

.menu-section { margin-bottom: 38px; scroll-margin-top: 84px; }
.menu-section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.menu-section-head h3 { font-size: 1.3rem; letter-spacing: -0.03em; white-space: nowrap; }
.menu-section-head .count { font-size: 0.78rem; font-weight: 500; color: var(--gold-2);
  background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 10px; }
.menu-section-head::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.menu-card { display: flex; flex-direction: column; border: 1px solid var(--border);
  border-radius: 14px; background: var(--surface); overflow: hidden;
  transition: border-color .2s, opacity .25s; }
.menu-card:hover { border-color: var(--gold-line); }
.menu-card.is-custom { border-color: var(--gold-line);
  background: linear-gradient(180deg, rgba(225,189,114,0.06), var(--surface)); }
.mc-body { display: block; padding: 16px 16px 4px; color: var(--text); flex: 1; }
.mc-body:hover { color: var(--text); background: var(--surface-2); }
.mc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mc-name { font-weight: 550; font-size: 1.06rem; letter-spacing: -0.02em; }
.mc-badge { flex: none; font-size: 0.62rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  border-radius: 999px; padding: 3px 8px; }
.mc-badge.custom { color: #1a1407; background: var(--gold-grad); }
.mc-badge.edited { color: var(--gold-1); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.mc-short { color: var(--text-3); font-size: 0.84rem; line-height: 1.45; margin: 7px 0 0; min-height: 2.4em; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px 13px; }
.mc-foot-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mc-chip { flex: none; font-size: 0.68rem; color: var(--text-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 8px; white-space: nowrap; }
.mc-grip { flex: none; display: inline-grid; place-items: center; width: 26px; height: 24px; margin-left: -5px;
  color: var(--text-3); cursor: grab; border-radius: 7px; transition: color .15s, background .15s; }
.mc-grip:hover { color: var(--gold-1); background: var(--surface-2); }
.mc-grip:active { cursor: grabbing; }
.mc-grip svg { width: 17px; height: 17px; pointer-events: none; }
.menu-card.dragging { opacity: 0.35; border-color: var(--gold-line); }
.menu-card:has(.switch:not(:checked)) { opacity: 0.55; }
.menu-card:has(.switch:not(:checked)):hover { opacity: 0.8; }

.switch { appearance: none; -webkit-appearance: none; flex: none; width: 42px; height: 24px; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; cursor: pointer;
  transition: background .2s, border-color .2s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #f4f4f6; transition: transform .2s; }
.switch:checked { background: var(--gold-grad); border-color: transparent; }
.switch:checked::after { transform: translateX(18px); background: #1a1407; }
.menu-card.busy { pointer-events: none; opacity: .7; }

.menu-card-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 130px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--text-2);
  text-align: center; font-size: 0.92rem; font-weight: 500;
  transition: border-color .2s, color .2s, background .2s; }
.menu-card-add:hover { border-color: var(--gold-line); color: var(--text); background: var(--gold-soft); }
.menu-card-add .mca-plus { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-strong); }
.menu-card-add .mca-plus svg { width: 20px; height: 20px; }
.menu-card-add:hover .mca-plus { border-color: var(--gold-line); }

/* recipe editor (Склад картки) */
.mix-block { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 16px; margin-bottom: 14px; }
.mix-top { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.mix-field { display: flex; flex-direction: column; gap: 6px; }
.mix-field.grow { flex: 2; min-width: 200px; }
.mix-field.grow-1 { flex: 1; min-width: 150px; }
.mix-field label { font-size: 0.82rem; color: var(--text-2); font-weight: 500; }
.accents-head { font-size: 0.82rem; color: var(--text-2); font-weight: 500; margin: 16px 0 8px; }
.accents { margin: 0 0 10px; display: flex; flex-direction: column; gap: 8px; }
.accent-row { display: flex; gap: 8px; align-items: center; }
.accent-row .accent-label { flex: 1; }
.accent-row .acc-del { flex: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--border); padding: 48px 0 40px; margin-top: 40px; }
.footer .container { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .brand { font-size: 1rem; }
.footer .foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer .foot-links a { color: var(--text-3); font-size: 0.9rem; }
.footer .foot-links a:hover { color: var(--text); }
.footer .copy { color: var(--text-3); font-size: 0.85rem; width: 100%; margin-top: 12px; }

/* ── Reveal animation ────────────────────────────────────────────────────── */

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .mock { grid-template-columns: 1fr; }
  .mock-col:nth-child(n+2) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(9,9,12,0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 22px;
    transform: translateY(-130%);
    transition: transform .32s cubic-bezier(.3,.8,.3,1);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: 10px 0; font-size: 1.02rem; }
  .nav-links .btn { width: 100%; margin-top: 6px; }
  .nav-email { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .page-head { align-items: flex-start; }
}

/* ── AI assistant widget ─────────────────────────────────────────────────── */
#ai-widget { position: fixed; right: 22px; bottom: 22px; z-index: 120; }

#ai-fab { display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px 12px 14px;
  border-radius: 999px; border: 1px solid var(--gold-line); cursor: pointer;
  background: linear-gradient(180deg, rgba(20,18,12,.96), rgba(12,11,8,.96));
  color: var(--gold-1); font-family: var(--font); font-size: .95rem; font-weight: 550;
  letter-spacing: -.01em; box-shadow: 0 14px 40px -12px rgba(0,0,0,.7), 0 0 0 0 rgba(225,189,114,.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .18s, box-shadow .25s, border-color .25s; }
#ai-fab:hover { transform: translateY(-2px); border-color: var(--gold-2);
  box-shadow: 0 20px 50px -14px rgba(0,0,0,.75), var(--shadow-gold); }
#ai-fab .ai-spark { width: 21px; height: 21px; color: var(--gold-2); filter: drop-shadow(0 0 6px rgba(225,189,114,.5)); }
#ai-widget.open #ai-fab { display: none; }

#ai-panel { position: fixed; right: 22px; bottom: 22px; width: 384px; max-width: calc(100vw - 32px);
  height: min(640px, calc(100vh - 44px)); display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--border-strong); border-radius: 20px; background: rgba(10,10,13,.96);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 40px 90px -24px rgba(0,0,0,.85); }
#ai-panel[hidden] { display: none; }
#ai-panel:not([hidden]) { animation: aiIn .2s cubic-bezier(.22,1,.36,1) both; }
#ai-panel.ai-no-anim { animation: none; }
@keyframes aiIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 14px 13px 16px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(225,189,114,.06), transparent); }
.ai-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.ai-orb { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold-grad); color: #1a1407; box-shadow: 0 4px 14px -4px rgba(198,154,69,.6); }
.ai-orb svg { width: 20px; height: 20px; }
.ai-name { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.ai-sub { font-size: .76rem; color: var(--text-3); margin-top: 1px; }
#ai-close { width: 32px; height: 32px; flex: none; display: grid; place-items: center; cursor: pointer;
  border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-3);
  transition: color .15s, background .15s, border-color .15s; }
#ai-close:hover { color: var(--text); background: var(--surface-2); border-color: var(--border); }
#ai-close svg { width: 17px; height: 17px; }

.ai-log { flex: 1; overflow-y: auto; padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 12px; }
.ai-log::-webkit-scrollbar { width: 8px; }
.ai-log::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }

.ai-msg { max-width: 86%; font-size: .9rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ai-msg.bot { align-self: flex-start; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px 14px 14px 5px; padding: 10px 13px; }
.ai-msg.user { align-self: flex-end; color: var(--gold-1); background: var(--gold-soft);
  border: 1px solid var(--gold-line); border-radius: 14px 14px 5px 14px; padding: 10px 13px; }

.ai-acts { align-self: flex-start; max-width: 92%; display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.ai-act { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--green);
  background: var(--green-soft); border: 1px solid rgba(74,222,128,.25); border-radius: 9px; padding: 6px 10px; }
.ai-act svg { width: 14px; height: 14px; flex: none; }

.ai-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px 14px 14px 5px; }
.ai-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: aiBlink 1.2s infinite; }
.ai-typing i:nth-child(2) { animation-delay: .2s; } .ai-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes aiBlink { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.ai-input { display: flex; align-items: flex-end; gap: 9px; padding: 12px 12px 14px; border-top: 1px solid var(--border); }
.ai-input textarea { flex: 1; resize: none; max-height: 130px; font-family: var(--font); font-size: .9rem;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 13px; line-height: 1.4; outline: none; transition: border-color .15s; }
.ai-input textarea:focus { border-color: var(--gold-line); }
.ai-input textarea::placeholder { color: var(--text-3); }
#ai-send { flex: none; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  border: none; border-radius: 12px; background: var(--gold-grad); color: #1a1407;
  box-shadow: 0 6px 18px -6px rgba(198,154,69,.55); transition: transform .15s, opacity .15s; }
#ai-send:hover { transform: translateY(-1px); }
#ai-send:disabled { opacity: .45; cursor: default; transform: none; }
#ai-send svg { width: 19px; height: 19px; }

@media (max-width: 560px) {
  #ai-widget { right: 16px; bottom: 16px; }
  #ai-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 88vh; height: 88dvh;
    border-radius: 20px 20px 0 0; }
}
