/* =============================================================================
   SIP Телефония — Unified Admin & Landing design system
   Palette: emerald / mint / graphite / near-white
   System font stack, no external assets. Responsive + accessible.
   ============================================================================= */

:root {
  /* Brand */
  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --mint-100:   #d1fae5;
  --mint-50:    #ecfdf5;
  --graphite-900: #111827;
  --graphite-700: #374151;
  --graphite-500: #6b7280;
  --graphite-300: #d1d5db;
  --graphite-150: #e5e7eb;
  --graphite-100: #f3f4f6;
  --near-white:  #fafafa;

  /* Status */
  --green:  #16a34a;
  --red:    #dc2626;
  --amber:  #d97706;
  --gray:   #6b7280;
  --blue:   #2563eb;
  --teal:   #0d9488;

  /* Surfaces */
  --bg:          var(--near-white);
  --surface:     #ffffff;
  --surface-2:   var(--graphite-100);
  --border:      var(--graphite-150);
  --border-strong: var(--graphite-300);
  --text:        var(--graphite-900);
  --text-muted:  var(--graphite-500);
  --text-invert: #ffffff;

  /* Misc */
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06);
  --shadow-md: 0 4px 16px rgba(17,24,39,.08);
  --shadow-lg: 0 12px 40px rgba(17,24,39,.12);
  --shadow-xl: 0 24px 64px rgba(17,24,39,.16);
  --focus-ring: 0 0 0 3px rgba(16,185,129,.35);
  --grad-brand: linear-gradient(150deg, #ecfdf5 0%, #f8fafc 55%, #ecfdf5 100%);
  --grad-hero: radial-gradient(1200px 600px at 80% -10%, rgba(16,185,129,.14), transparent 60%),
               radial-gradient(900px 500px at 0% 110%, rgba(5,150,105,.10), transparent 55%);
  --sidebar-w: 248px;
  --topbar-h: 60px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
               Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--emerald-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Focus (accessibility) ---------- */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ---------- Layout: admin shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; font-weight: 700; font-size: 16px;
  color: var(--emerald-700); border-bottom: 1px solid var(--border);
}
.sidebar nav { display: flex; flex-direction: column; padding: 12px 10px; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--graphite-700); font-weight: 500;
}
.sidebar nav a:hover { background: var(--mint-50); text-decoration: none; }
.sidebar nav a.active { background: var(--mint-100); color: var(--emerald-700); font-weight: 600; }
.sidebar .section-label { padding: 14px 12px 6px; font-size: 11px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted); }
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: var(--topbar-h); background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; position: sticky; top: 0; z-index: 20;
}
.topbar .page-title { font-size: 17px; font-weight: 600; }
.topbar .topbar-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 4px;
  width: 40px; height: 40px; padding: 8px;
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer;
  position: relative; z-index: 30;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-toggle-bar { display: block; width: 100%; height: 2px; background: var(--graphite-700);
  border-radius: 1px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.content { padding: 24px; max-width: 1280px; width: 100%; }
.footer { padding: 16px 24px; color: var(--text-muted); font-size: 12.5px;
  border-top: 1px solid var(--border); }

/* ---------- Cards / stats ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px;
}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.grid-stats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.stat-card .label { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.stat-card .value { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.stat-card .hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.stat-card.accent { border-top: 3px solid var(--emerald-500); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px;
  border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; }
.badge.green  { background: #dcfce7; color: var(--green); }
.badge.red    { background: #fee2e2; color: var(--red); }
.badge.amber  { background: #fef3c7; color: var(--amber); }
.badge.gray   { background: var(--graphite-100); color: var(--gray); }
.badge.blue   { background: #dbeafe; color: var(--blue); }
.badge.teal   { background: #ccfbf1; color: var(--teal); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 9px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border .15s;
  text-decoration: none; line-height: 1.2; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--emerald-600); color: #fff; }
.btn-primary:hover { background: var(--emerald-700); text-decoration: none; }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-secondary:hover { background: var(--graphite-100); text-decoration: none; }
.btn-danger { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--graphite-700); }
.btn-ghost:hover { background: var(--graphite-100); text-decoration: none; }
.btn-sm { padding: 6px 11px; font-size: 13px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px;
  color: var(--graphite-700); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 9px 12px; font-size: 14px; background: var(--surface); color: var(--text);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--emerald-500); box-shadow: var(--focus-ring); }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-row .field { flex: 1; min-width: 180px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; padding: 5px 0; font-size: 14px; }
.checkbox-row input[type=checkbox], .perm-node input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--emerald-600); cursor: pointer; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; padding: 11px 14px; font-size: 12.5px; color: var(--text-muted);
  font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
  border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--mint-50); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Pills / filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.filter-bar .field { margin-bottom: 0; flex: 1; min-width: 150px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; color: var(--graphite-700); font-weight: 500; border-bottom: 2px solid transparent; }
.tabs a:hover { text-decoration: none; background: var(--graphite-100); }
.tabs a.active { color: var(--emerald-700); border-bottom-color: var(--emerald-500); font-weight: 600; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty .empty-title { font-size: 17px; font-weight: 600; color: var(--graphite-700); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---------- Alerts / toasts ---------- */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; margin-bottom: 16px; }
.alert.error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert.success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert.warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.toast { position: fixed; bottom: 20px; right: 20px; z-index: 100; border-radius: var(--radius);
  padding: 12px 18px; color: #fff; font-weight: 500; box-shadow: var(--shadow-md);
  animation: toast-in .2s ease; max-width: 360px; }
.toast.success { background: var(--emerald-600); }
.toast.error { background: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex;
  align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md);
  max-width: 520px; width: 100%; padding: 24px; max-height: 90vh; overflow-y: auto; }
.modal .modal-title { font-size: 18px; font-weight: 700; margin-bottom: 12px; }
.modal .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--border); margin-left: 8px; }
.timeline li:last-child { border-left-color: transparent; }
.timeline .dot { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--emerald-500); border: 2px solid #fff; }
.timeline .time { font-size: 12px; color: var(--text-muted); }
.timeline .entry-title { font-weight: 600; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 16px 0; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); color: var(--graphite-700); font-size: 13px; }
.pagination .current { background: var(--emerald-600); color: #fff; border-color: var(--emerald-600); }

/* ---------- Permission tree ---------- */
.perm-group { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.perm-group > .perm-head { display: flex; align-items: center; gap: 9px; padding: 12px 14px;
  font-weight: 700; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.perm-children { padding: 8px 14px 12px; }
.perm-node { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.perm-node input[type=checkbox] { flex-shrink: 0; }

/* ---------- QR ---------- */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.qr-box .manual-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 20px; letter-spacing: .16em; font-weight: 700; color: var(--graphite-900); }
.qr-ttl { font-size: 13px; color: var(--text-muted); }

/* ---------- Audio player ---------- */
.audio-block { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.audio-block .audio-label { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
audio { width: 100%; }

/* =============================================================================
   Landing — premium public site
   ============================================================================= */
.landing { background: var(--near-white); color: var(--graphite-900); }
.landing a { text-decoration: none; }

/* Header */
.landing-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.landing-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px;
  color: var(--graphite-900); letter-spacing: -.01em; white-space: nowrap; }
.landing-nav .brand-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--emerald-500);
  box-shadow: 0 0 0 4px var(--mint-100); flex: 0 0 auto; }
.landing-nav .nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.landing-nav .nav-links a { color: var(--graphite-700); font-weight: 500; font-size: 14.5px; padding: 8px 12px;
  border-radius: var(--radius-sm); white-space: nowrap; }
.landing-nav .nav-links a:hover { color: var(--emerald-700); background: var(--mint-50); text-decoration: none; }
.landing-nav .nav-cta { flex: 0 0 auto; }

/* Shared section scaffolding */
.lp-container { max-width: 1120px; margin: 0 auto; padding-left: clamp(16px, 4vw, 32px); padding-right: clamp(16px, 4vw, 32px); }
.lp-section { padding: clamp(64px, 9vw, 120px) 0; }
.lp-section.tint { background: var(--grad-brand); }
.lp-section.dark { background: linear-gradient(180deg, #064e3b, #065f46); color: #ecfdf5; }
.lp-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--emerald-700); margin: 0 0 18px; }
.lp-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.lp-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  margin: 0 0 16px; }
.lp-head p { color: var(--gray); font-size: 17px; line-height: 1.7; margin: 0; }
.lp-head.left { margin-left: 0; margin-right: 0; text-align: left; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 48px; background: var(--grad-hero); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  margin: 0 0 20px; }
.hero .lede { font-size: clamp(17px, 2vw, 20px); color: var(--gray); line-height: 1.65; max-width: 560px; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .cta .btn { padding: 13px 22px; font-size: 15px; border-radius: var(--radius); }

/* Hero product mockup (pure CSS) */
.phone-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.phone {
  width: 300px; max-width: 82vw; height: 600px; background: linear-gradient(180deg, #0b1220, #111a2e);
  border-radius: 44px; padding: 14px; box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,.15) inset;
  position: relative; color: #fff; display: flex; flex-direction: column;
}
.phone .screen { background: linear-gradient(180deg, #f8fafc, #eef2f7); border-radius: 32px;
  flex: 1; padding: 22px 18px; color: var(--graphite-900); overflow: hidden; position: relative; display: flex;
  flex-direction: column; }
.phone .status-prot { display: flex; justify-content: space-between; font-size: 11px; color: var(--graphite-500); margin-bottom: 16px; }
.phone .call-card { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow-md); }
.phone .call-status { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald-700); margin-bottom: 10px; }
.phone .call-number { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.phone .call-label { font-size: 13px; color: var(--gray); margin-bottom: 18px; }
.phone .btn-answer { background: var(--emerald-600); color: #fff; border: none; border-radius: 14px;
  padding: 14px; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.phone .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: auto; }
.phone .key { height: 46px; background: #fff; border: 1px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; color: var(--graphite-700); font-weight: 600; box-shadow: var(--shadow-sm); }
.float-card { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-size: 13.5px;
  font-weight: 600; color: var(--graphite-900); }
.float-card .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--emerald-500); flex: 0 0 auto; }
.fc-manager { top: 34%; left: -6%; }
.fc-line { bottom: 12%; right: -4%; }
.float-card .sub { display: block; font-weight: 400; color: var(--gray); font-size: 12px; }
.flow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: var(--graphite-700); }
.flow .chip { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px; box-shadow: var(--shadow-sm); }
.flow .arrow { color: var(--emerald-600); font-weight: 800; }

/* Trust strip */
.trust-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: #fff; }
.trust-strip .inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: center;
  padding: 22px 16px; color: var(--graphite-500); font-size: 14px; font-weight: 500; }
.trust-strip .sep { color: var(--graphite-300); }

/* Cards / grids */
.card-grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.lp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--graphite-300); }
.lp-card .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint-100); color: var(--emerald-700);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; margin-bottom: 16px; }
.lp-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 8px; }
.lp-card p { color: var(--gray); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px; box-shadow: var(--shadow-sm); }
.step .num { font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--emerald-600); margin-bottom: 14px; }
.step h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.step p { color: var(--gray); font-size: 14.5px; line-height: 1.65; margin: 0; }
.step::after { content: ""; position: absolute; top: 50%; left: 100%; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--graphite-300), transparent); transform: translateY(-50%); }
.step:last-child::after { display: none; }

/* Problem -> solution */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.ps-col { border-radius: var(--radius-lg); padding: 32px; }
.ps-col.before { background: #fff; border: 1px solid var(--border); }
.ps-col.after { background: linear-gradient(160deg, #059669, #047857); color: #ecfdf5; }
.ps-col h3 { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 18px; }
.ps-col.before h3 { color: var(--gray); }
.ps-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.ps-col li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.ps-col.before li::before { content: "–"; color: var(--gray); flex: 0 0 auto; }
.ps-col.after li::before { content: "✓"; color: #a7f3d0; flex: 0 0 auto; font-weight: 800; }

/* Security premium section */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-item { border-radius: var(--radius-lg); padding: 26px; border: 1px solid rgba(236,253,245,.14);
  background: rgba(255,255,255,.04); }
.sec-item .ico { font-size: 22px; color: #6ee7b7; margin-bottom: 14px; }
.sec-item h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #ecfdf5; }
.sec-item p { color: #a7f3d0; font-size: 14.5px; line-height: 1.65; margin: 0; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 26px;
  box-shadow: var(--shadow-sm); }
.faq-item h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; }
.faq-item p { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.7; }

/* Final CTA */
.cta-band { text-align: center; padding: clamp(64px, 9vw, 110px) 24px;
  background: radial-gradient(900px 500px at 50% 0%, rgba(16,185,129,.18), transparent 60%), var(--grad-brand); }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.cta-band p { color: var(--gray); max-width: 560px; margin: 0 auto 26px; font-size: 16.5px; line-height: 1.7; }
.cta-band .btn { padding: 14px 26px; font-size: 15.5px; border-radius: var(--radius); }

/* Footer */
.landing-footer { background: #fff; border-top: 1px solid var(--border); padding: 48px 0 32px; }
.landing-footer .grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.landing-footer .brand { font-weight: 800; font-size: 16px; color: var(--graphite-900); display: flex; align-items: center;
  gap: 9px; margin-bottom: 10px; }
.landing-footer .tagline { color: var(--gray); font-size: 14px; line-height: 1.6; max-width: 320px; }
.landing-footer h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gray); margin: 0 0 12px; }
.landing-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.landing-footer ul a { color: var(--graphite-700); font-size: 14px; }
.landing-footer ul a:hover { color: var(--emerald-700); }
.landing-footer .bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--gray); font-size: 13px; }

/* Download meta (usable within hero too) */
.download-meta { display: flex; gap: 20px; flex-wrap: wrap; color: var(--text-muted); font-size: 13.5px; }
.download-meta .k { font-weight: 600; color: var(--graphite-700); }
.download-meta .sha { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }

/* Generic subpage (about/security/privacy/contact) */
.lp-hero { padding: clamp(40px, 6vw, 72px) 0 32px; background: var(--grad-hero); }
.lp-hero h1 { font-size: clamp(30px, 4.5vw, 46px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 14px; }
.lp-hero .lede { color: var(--gray); font-size: 17px; line-height: 1.7; max-width: 680px; margin: 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 12px; }
.prose p, .prose li { color: var(--graphite-700); font-size: 15.5px; line-height: 1.8; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li { margin: 6px 0; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 28px; max-width: 620px; }
.contact-card p { color: var(--gray); font-size: 15.5px; line-height: 1.7; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(160deg, var(--mint-50), var(--near-white)); }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 32px; width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.auth-card .sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { position: static; width: 100%; height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; padding: 8px; }
  .sidebar .section-label { display: none; }
  .content { padding: 16px; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .sidebar { border-bottom: none; }
  .sidebar .brand { display: none; }
  .sidebar nav { display: none; }
  .shell.nav-open .sidebar nav { display: flex; flex-direction: column; align-items: stretch; padding: 8px 12px 12px; }
  .shell.nav-open .sidebar nav a { padding: 11px 12px; }
  .topbar { padding: 0 12px; gap: 12px; }
  .topbar .page-title { flex: 1; }
  .hero { padding: 36px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 31px; }
  .hero .lede { font-size: 16px; }
  .hero .cta { flex-direction: column; align-items: stretch; }
  .hero .cta .btn { width: 100%; }
  .phone { height: 520px; }
  .fc-manager { top: 26%; left: -2%; }
  .fc-line { bottom: 8%; right: -2%; }
  .lp-section { padding: 56px 0; }
  .lp-head { margin-bottom: 32px; }
  .grid-2, .grid-3, .grid-4, .steps, .sec-grid, .ps-grid { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .landing-nav { padding: 12px 16px; flex-wrap: wrap; }
  .landing-nav .nav-links { order: 3; width: 100%; gap: 0; }
  .landing-nav .nav-links a { padding: 8px 10px; font-size: 14px; }
  .landing-footer .grid { grid-template-columns: 1fr; gap: 26px; }
  table.data th, table.data td { padding: 9px 10px; font-size: 13px; }
  .grid-stats { grid-template-columns: 1fr 1fr; }
}

/* =============================================================================
   V3 — Product-led premium landing
   ============================================================================= */
.v3-body {
  --v3-bg: #f7f8f8;
  --v3-ink: #0d1b17;
  --v3-ink-2: #22312c;
  --v3-muted: #5b6b65;
  --v3-line: #e4e9e7;
  --v3-surface: #ffffff;
  --v3-brand: #0b8f5e;
  --v3-brand-2: #0fae74;
  --v3-brand-soft: #e6f5ee;
  --v3-dark: #0c1512;
  --v3-dark-2: #13201b;
  --v3-dark-line: #22312b;
  --v3-dark-text: #eaf3ef;
  --v3-dark-muted: #9bb0a7;
  --v3-amber: #e8a23d;
  --v3-gray: #a7b3ae;
  background: var(--v3-bg);
  color: var(--v3-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  margin: 0;
}
.v3-body a { text-decoration: none; color: inherit; }
.v3-body * { box-sizing: border-box; }

.v3-wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ---- header ---- */
.v3-header {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: 40px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--v3-line);
}
.v3-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.v3-brand-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--v3-brand);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
}
.v3-brand-name { font-size: 16px; color: var(--v3-ink); }
.v3-nav { display: flex; gap: 4px; margin: 0 auto; }
.v3-nav a { padding: 8px 14px; font-size: 14.5px; color: var(--v3-ink-2); font-weight: 500;
  border-radius: 8px; transition: background .15s, color .15s; }
.v3-nav a:hover { background: var(--v3-brand-soft); color: var(--v3-brand); }
.v3-header-cta { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }

/* Гамбургер — только на мобильных. На desktop скрыт. */
.v3-nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; margin-left: auto;
  padding: 10px; border: 1px solid var(--v3-line); border-radius: 10px;
  background: #fff; cursor: pointer;
}
.v3-nav-toggle-bar { display: block; width: 100%; height: 2px; border-radius: 2px; background: var(--v3-ink); transition: transform .2s ease, opacity .2s ease; }
.v3-nav-toggle[aria-expanded="true"] .v3-nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.v3-nav-toggle[aria-expanded="true"] .v3-nav-toggle-bar:nth-child(2) { opacity: 0; }
.v3-nav-toggle[aria-expanded="true"] .v3-nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- buttons ---- */
.v3-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; font-size: 15px; padding: 13px 24px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; cursor: pointer; }
.v3-btn-primary { background: var(--v3-brand); color: #fff; border: 1px solid var(--v3-brand); box-shadow: 0 8px 22px rgba(11,143,94,.22); }
.v3-btn-primary:hover { background: var(--v3-brand-2); border-color: var(--v3-brand-2); transform: translateY(-1px); }
.v3-btn-ghost { background: transparent; color: var(--v3-ink-2); border: 1px solid var(--v3-line); }
.v3-btn-ghost:hover { border-color: var(--v3-ink-2); }
.v3-btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.28); }
.v3-btn-outline:hover { border-color: #fff; }
.v3-btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---- shared type ---- */
.v3-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--v3-brand); margin: 0 0 18px; }
.v3-eyebrow-light { color: #5cd7a4; }
.v3-h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05;
  margin: 0 0 20px; color: var(--v3-ink); }
.v3-h2-light { color: var(--v3-dark-text); }
.v3-lead { font-size: 17px; line-height: 1.65; color: var(--v3-muted); margin: 0; }
.v3-lead-light { color: var(--v3-dark-muted); }

/* dots */
.v3-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.v3-dot-green { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.16); }
.v3-dot-amber { background: var(--v3-amber); box-shadow: 0 0 0 3px rgba(232,162,61,.16); }
.v3-dot-gray { background: var(--v3-gray); }

/* ---- hero ---- */
.v3-hero { padding: clamp(48px, 7vw, 96px) 0 40px; position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 18% -8%, rgba(11,143,94,.10), transparent 60%),
    radial-gradient(900px 480px at 100% 110%, rgba(15,174,116,.08), transparent 55%),
    var(--v3-bg); }
.v3-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center;
  max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.v3-hero-title { font-size: clamp(44px, 6vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .98;
  margin: 0 0 24px; color: var(--v3-ink); }
.v3-hero-lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--v3-muted);
  max-width: 520px; margin: 0 0 32px; }
.v3-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.v3-hero-facts { display: flex; gap: 28px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--v3-line); }
.v3-fact { display: flex; flex-direction: column; gap: 2px; }
.v3-fact strong { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--v3-ink); }
.v3-fact span { font-size: 13px; color: var(--v3-muted); }

/* hero visual composition */
.v3-hero-visual { position: relative; min-height: 560px; }
.v3-phone {
  position: absolute; top: 0; right: 12%; width: 300px; height: 560px;
  background: linear-gradient(180deg, #0d1923, #12202b); border-radius: 44px; padding: 12px;
  box-shadow: 0 40px 90px rgba(13,27,23,.30), 0 0 0 1px rgba(0,0,0,.25) inset;
  animation: v3-float 7s ease-in-out infinite;
}
.v3-phone-screen { background: linear-gradient(180deg, #fdfdfd, #eef3f0); border-radius: 34px;
  height: 100%; padding: 22px 18px; color: var(--v3-ink); display: flex; flex-direction: column; }
.v3-phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--v3-muted); margin-bottom: 16px; }
.v3-phone-top .v3-dot { width: 7px; height: 7px; }
.v3-call-card { background: #fff; border: 1px solid var(--v3-line); border-radius: 22px; padding: 22px;
  box-shadow: 0 12px 30px rgba(13,27,23,.08); }
.v3-call-status { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--v3-brand); margin-bottom: 12px; }
.v3-ring-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--v3-brand);
  animation: v3-ring 1.4s ease-in-out infinite; }
.v3-call-number { font-size: 27px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.v3-call-line { font-size: 13px; color: var(--v3-muted); margin-bottom: 20px; }
.v3-answer { width: 100%; background: var(--v3-brand); color: #fff; border: none; border-radius: 14px;
  padding: 15px; font-weight: 700; font-size: 15px; cursor: default; }
.v3-phone-actions { display: flex; gap: 10px; margin-top: auto; }
.v3-key { width: 40px; height: 14px; border-radius: 8px; background: #e7ecea; }

.v3-float { position: absolute; background: #fff; border: 1px solid var(--v3-line); border-radius: 14px;
  padding: 14px 16px; box-shadow: 0 16px 40px rgba(13,27,23,.14); animation: v3-float 8s ease-in-out infinite; }
.v3-float-label { font-size: 11px; color: var(--v3-muted); font-weight: 600; letter-spacing: .02em; }
.v3-float-name { font-size: 15px; font-weight: 700; margin: 2px 0 6px; }
.v3-float-state { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--v3-ink-2); }
.v3-float-manager { top: 30%; left: 0; animation-delay: .6s; }
.v3-float-line { bottom: 16%; left: 6%; animation-delay: 1.2s; }
.v3-float-route { top: 8%; left: 10%; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  animation-delay: 1.8s; color: var(--v3-ink-2); }
.v3-arrow { color: var(--v3-brand); font-weight: 800; }
.v3-float-device { right: 0; bottom: 26%; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; animation-delay: 2.4s; }

/* ---- value ---- */
.v3-value { padding: clamp(72px, 9vw, 130px) 0; background: #fff; border-top: 1px solid var(--v3-line); }
.v3-value-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.v3-value-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.v3-value-list li { display: flex; gap: 18px; align-items: flex-start; }
.v3-value-icon, .v3-value-icon2, .v3-value-icon3 {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--v3-brand); background: var(--v3-brand-soft); }
.v3-value-icon svg, .v3-value-icon2 svg, .v3-value-icon3 svg { width: 20px; height: 20px; }
.v3-value-list strong { font-size: 17px; font-weight: 700; display: block; margin-bottom: 4px; }
.v3-value-list p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--v3-muted); }

/* ---- how it works ---- */
.v3-how { padding: clamp(72px, 9vw, 130px) 0; background: var(--v3-bg); }
.v3-how-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.v3-flow { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.v3-flow-node { background: #fff; border: 1px solid var(--v3-line); border-radius: 16px; padding: 20px 28px;
  min-width: 220px; text-align: center; box-shadow: 0 8px 24px rgba(13,27,23,.06); }
.v3-node-line .v3-node-icon { margin: 0 auto 10px; width: 36px; height: 36px; color: var(--v3-brand); }
.v3-node-title { font-size: 16px; font-weight: 700; }
.v3-node-sub { font-size: 13px; color: var(--v3-muted); }
.v3-node-state { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--v3-ink-2); }
.v3-node-mark { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: #fff; background: var(--v3-brand);
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.v3-node-platform { background: var(--v3-brand); border-color: var(--v3-brand); color: #fff; }
.v3-node-platform .v3-node-title { color: #fff; }
.v3-node-platform .v3-node-sub { color: rgba(255,255,255,.7); }
.v3-flow-connector { width: 2px; height: 28px; background: var(--v3-line); position: relative; overflow: hidden; }
.v3-pulse { position: absolute; top: 0; left: 0; width: 2px; height: 10px; background: var(--v3-brand);
  animation: v3-flow 1.8s ease-in-out infinite; }
.v3-flow-split { display: flex; gap: 90px; height: 28px; align-items: flex-start; }
.v3-flow-split .v3-flow-connector { height: 28px; }
.v3-flow-managers { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.v3-node-mgr { min-width: 160px; padding: 16px 20px; }
.v3-steps { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; list-style: none;
  margin: 56px 0 0; padding: 0; max-width: 880px; margin-left: auto; margin-right: auto; }
.v3-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--v3-ink-2); }
.v3-steps span { font-weight: 800; color: var(--v3-brand); letter-spacing: .02em; }

/* ---- dashboard ---- */
.v3-product { padding: clamp(72px, 9vw, 130px) 0; background: #fff; border-top: 1px solid var(--v3-line); }
.v3-product-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.v3-dashboard {
  display: flex; max-width: 1120px; margin: 0 auto; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--v3-line); box-shadow: 0 40px 100px rgba(13,27,23,.16);
  background: #fff;
}
.v3-dash-side { width: 220px; background: var(--v3-dark); padding: 24px 18px; color: #fff; flex: 0 0 auto; }
.v3-dash-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; margin-bottom: 26px; }
.v3-dash-nav { display: flex; flex-direction: column; gap: 2px; }
.v3-dash-nav a { padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: var(--v3-dark-muted); cursor: default; }
.v3-dash-nav a.v3-active { background: rgba(255,255,255,.08); color: #fff; }
.v3-dash-main { flex: 1; padding: 28px; background: #fafbfa; }
.v3-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v3-dash-panel { background: #fff; border: 1px solid var(--v3-line); border-radius: 14px; padding: 20px; }
.v3-dash-panel-wide { grid-column: span 2; }
.v3-dash-panel-title { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--v3-muted); margin-bottom: 16px; }
.v3-dash-line { padding: 12px 0; border-bottom: 1px solid var(--v3-line); }
.v3-dash-line:last-child { border-bottom: none; }
.v3-dash-line-name { font-weight: 700; font-size: 14.5px; }
.v3-dash-line-num { font-size: 13px; color: var(--v3-muted); }
.v3-dash-line-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--v3-ink-2); margin-top: 4px; }
.v3-dash-emp { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--v3-line); font-size: 13.5px; }
.v3-dash-emp:last-child { border-bottom: none; }
.v3-dash-emp > span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.v3-faint { color: var(--v3-muted); font-size: 12.5px; }
.v3-dash-call { display: grid; grid-template-columns: 90px 1fr 1fr auto; gap: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--v3-line); font-size: 13.5px; align-items: center; }
.v3-dash-call:last-child { border-bottom: none; }
.v3-dash-dir { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; text-align: center; }
.v3-dir-in { background: var(--v3-brand-soft); color: var(--v3-brand); }
.v3-dir-out { background: #eef2f0; color: var(--v3-ink-2); }

/* ---- use cases ---- */
.v3-use { padding: clamp(72px, 9vw, 130px) 0; background: var(--v3-bg); }
.v3-use-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.v3-use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v3-use-card { background: #fff; border: 1px solid var(--v3-line); border-radius: 18px; padding: 32px 28px;
  position: relative; overflow: hidden; box-shadow: 0 10px 30px rgba(13,27,23,.05); transition: transform .2s ease, box-shadow .2s ease; }
.v3-use-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(13,27,23,.10); }
.v3-use-index { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--v3-brand-soft); margin-bottom: 20px; }
.v3-use-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; }
.v3-use-card p { font-size: 15px; line-height: 1.65; color: var(--v3-muted); margin: 0 0 20px; }
.v3-use-tag { display: inline-block; font-size: 12.5px; font-weight: 600; color: var(--v3-brand); background: var(--v3-brand-soft);
  padding: 6px 12px; border-radius: 999px; }
.v3-use-secondary { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 40px; font-size: 14px; color: var(--v3-muted); }
.v3-sep { color: var(--v3-line); }

/* ---- download app ---- */
.v3-download { padding: clamp(72px, 9vw, 130px) 0; background: #fff; border-top: 1px solid var(--v3-line); }
.v3-download-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.v3-download-copy .v3-h2 { margin-bottom: 16px; }
.v3-download-copy .v3-lead { margin-bottom: 28px; }
.v3-download-meta { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.v3-download-fact { display: flex; flex-direction: column; gap: 2px; }
.v3-download-fact span { font-size: 12.5px; color: var(--v3-muted); }
.v3-download-fact strong { font-size: 14.5px; font-weight: 700; color: var(--v3-ink); font-family: ui-monospace, Menlo, monospace; letter-spacing: -.01em; }
.v3-btn-disabled { display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; font-size: 15px; padding: 13px 24px;
  background: var(--v3-line); color: var(--v3-muted); cursor: not-allowed; }
.v3-download-visual { display: flex; justify-content: center; }
.v3-download-card { background: #fff; border: 1px solid var(--v3-line); border-radius: 20px; padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(13,27,23,.10); text-align: center; width: 320px; }
.v3-download-app-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--v3-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.v3-download-app-icon svg { width: 30px; height: 30px; }
.v3-download-app-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.v3-download-app-sub { font-size: 13.5px; color: var(--v3-muted); margin: 4px 0 16px; }
.v3-download-app-state { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--v3-ink-2); }

/* ---- security ---- */
.v3-security { padding: clamp(72px, 9vw, 130px) 0; background: var(--v3-dark); color: var(--v3-dark-text); }
.v3-security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.v3-security-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.v3-sec-fact { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--v3-dark-line);
  border-radius: 14px; padding: 20px; background: rgba(255,255,255,.02); }
.v3-sec-icon { flex: 0 0 auto; color: #5cd7a4; }
.v3-sec-icon svg { width: 20px; height: 20px; }
.v3-sec-fact strong { font-size: 15px; font-weight: 700; display: block; margin-bottom: 4px; }
.v3-sec-fact p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--v3-dark-muted); }

/* ---- faq ---- */
.v3-faq { padding: clamp(72px, 9vw, 130px) 0; background: #fff; border-top: 1px solid var(--v3-line); }
.v3-faq-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.v3-faq-list { max-width: 720px; margin: 0 auto; }
.v3-faq-item { border-bottom: 1px solid var(--v3-line); }
.v3-faq-item summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 16.5px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; color: var(--v3-ink); }
.v3-faq-item summary::-webkit-details-marker { display: none; }
.v3-faq-item summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--v3-brand); transition: transform .2s ease; }
.v3-faq-item[open] summary::after { transform: rotate(45deg); }
.v3-faq-item p { margin: 0; padding: 0 4px 22px; font-size: 15px; line-height: 1.65; color: var(--v3-muted); }

/* ---- cta ---- */
.v3-cta { padding: clamp(72px, 9vw, 130px) 0; background: var(--v3-bg); }
.v3-cta-inner { background: linear-gradient(150deg, #0b8f5e, #0a7850); border-radius: 24px; padding: clamp(48px, 7vw, 88px);
  text-align: center; color: #fff; position: relative; overflow: hidden; }
.v3-cta-visual { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.v3-cta-node { padding: 10px 18px; border-radius: 10px; background: rgba(255,255,255,.12); font-weight: 700; font-size: 14px; }
.v3-cta-core { background: rgba(255,255,255,.22); }
.v3-cta-link { width: 28px; height: 2px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.v3-cta-inner .v3-h2 { color: #fff; margin-bottom: 14px; }
.v3-cta-inner .v3-lead { color: rgba(255,255,255,.82); margin-bottom: 28px; }
.v3-cta-inner .v3-btn-primary { background: #fff; color: var(--v3-brand); border-color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* ---- contact form (public) ---- */
.v3-form { display: flex; flex-direction: column; gap: 18px; }
.v3-form .field label { font-weight: 600; font-size: 14px; }
.v3-section { background: #fff; }

/* ---- footer ---- */
.v3-footer { background: var(--v3-dark); color: var(--v3-dark-text); padding: 56px 0 24px; }
.v3-footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.v3-footer-brand .v3-brand-name { color: #fff; }
.v3-footer-tagline { font-size: 14px; line-height: 1.6; color: var(--v3-dark-muted); max-width: 300px; margin-top: 12px; }
.v3-footer-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--v3-dark-muted); margin: 0 0 14px; }
.v3-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.v3-footer-links a { font-size: 14px; color: var(--v3-dark-text); }
.v3-footer-links a:hover { color: #5cd7a4; }
.v3-footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--v3-dark-line); font-size: 13px; color: var(--v3-dark-muted); }

/* ---- motion ---- */
@keyframes v3-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes v3-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(11,143,94,.4); } 50% { box-shadow: 0 0 0 6px rgba(11,143,94,0); } }
@keyframes v3-flow { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.v3-reveal { /* без JS: видимы по умолчанию. Скрытие/раскрытие только при html.v3-js */ }
html.v3-js .v3-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.v3-js .v3-reveal.v3-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .v3-phone, .v3-float, .v3-pulse, .v3-ring-dot { animation: none !important; }
  html.v3-js .v3-reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .v3-hero-grid { grid-template-columns: 1fr; }
  .v3-hero-visual { min-height: 480px; }
  .v3-value-grid { grid-template-columns: 1fr; }
  .v3-security-grid { grid-template-columns: 1fr; }
  .v3-footer-grid { grid-template-columns: 1fr; }
  .v3-use-grid { grid-template-columns: 1fr; }
  .v3-download-grid { grid-template-columns: 1fr; }
  .v3-dash-grid { grid-template-columns: 1fr; }
  .v3-dash-panel-wide { grid-column: span 1; }
  .v3-dashboard { flex-direction: column; }
  .v3-dash-side { width: 100%; }
  .v3-dash-nav { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .v3-header { flex-wrap: wrap; gap: 12px; }
  .v3-nav-toggle { display: flex; }
  /* По умолчанию nav и CTA скрыты на мобильном. */
  .v3-nav,
  .v3-header-cta { display: none; }
  /* Раскрыто — вертикальное меню. Шапка (sticky) расширяется, контент сдвигается. */
  .v3-header.nav-open .v3-nav {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; order: 10; padding-bottom: 8px;
  }
  .v3-header.nav-open .v3-nav a {
    padding: 13px 14px; font-size: 15.5px; border-radius: 10px;
  }
  .v3-header.nav-open .v3-header-cta {
    display: flex; flex-direction: column; align-items: stretch;
    width: 100%; order: 11; padding-bottom: 8px; gap: 8px;
  }
  .v3-header.nav-open .v3-header-cta .v3-btn { width: 100%; }
  .v3-hero-title { font-size: 38px; }
  .v3-hero-facts { flex-direction: column; gap: 14px; }
  .v3-hero-visual { min-height: 440px; }
  .v3-phone { right: 0; width: 250px; height: 480px; }
  .v3-flow-managers { flex-direction: column; align-items: center; }
  .v3-flow-split { gap: 40px; }
  .v3-steps { flex-direction: column; gap: 14px; }
  .v3-security-facts { grid-template-columns: 1fr; }
}

/* ---------- In-page destructive confirm dialog (native <dialog>, browser-native-free) ---------- */
.confirm-dialog { border: none; border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 0; max-width: 460px; width: calc(100% - 40px); background: var(--surface); }
.confirm-dialog::backdrop { background: rgba(17,24,39,.45); }
.confirm-dialog__body { padding: 22px 24px; }
.confirm-dialog__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.confirm-dialog__message { font-size: 14px; line-height: 1.5; color: var(--text); margin-bottom: 20px; white-space: pre-wrap; }
.confirm-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- Local toast (in-page banner, not browser notification) ---------- */
.toast { opacity: 0; transform: translateY(8px); transition: opacity .2s ease, transform .2s ease; background: var(--emerald-600); }
.toast--visible { opacity: 1; transform: none; }
