*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --accent: #7C3AED; --accent2: #5B21B6;
  --bg: #F6F5FB; --bg2: #FFFFFF; --bg3: #EEEAFB;
  --fg: #150E2E; --muted: #5B6475; --line: rgba(21,14,46,.1);
  --ok: #047857; --warn: #92400E; --bad: #B91C1C; --idle: #94A3B8;
  --field-bg: #fff; --field-fg: #150E2E;
  --radius: 16px;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', system-ui, sans-serif; background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; line-height: 1.5; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.mono { font-family: 'DM Mono', ui-monospace, monospace; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--accent); color: #fff; padding: .5rem 1rem; border-radius: 8px; }

nav.top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; font-family: 'Unbounded', sans-serif;
  font-weight: 900; font-size: 13px; color: #0D0820;
}
.logo { font-family: 'Unbounded', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.logo .dot { color: var(--accent); }
.nav-r { display: flex; align-items: center; gap: 12px; }
.nav-phone { font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.nav-cta { font-size: 13px; padding: 8px 18px; border: 1px solid var(--accent); border-radius: 40px; color: var(--accent); text-decoration: none; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 5%; }
.hero { max-width: 1140px; margin: 0 auto; padding: 3.5rem 5% 2.5rem; display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.2rem; align-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em;
  color: var(--accent); border: 1px solid var(--line);
  padding: 5px 14px; border-radius: 40px; margin-bottom: 1.4rem;
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; }
h1 {
  font-family: 'Unbounded', sans-serif; font-weight: 900;
  font-size: clamp(1.7rem, 4.4vw, 2.8rem); line-height: 1.12;
  letter-spacing: -.02em; margin-bottom: 1rem; max-width: 18ch;
}
h1 em, h2 em { color: var(--accent); font-style: normal; }
.sub { font-size: 1.05rem; color: var(--muted); line-height: 1.7; max-width: 36rem; margin-bottom: 1.4rem; }
.checks { display: grid; gap: 8px; margin-bottom: 1.4rem; list-style: none; }
.checks li { font-size: 14px; color: var(--muted); }
.checks li::before { content: "→ "; color: var(--accent); font-weight: 700; }

.form-card { background: var(--bg2); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 20px; padding: 1.35rem 1.25rem; box-shadow: 0 20px 50px -30px rgba(76,29,149,.45); }
.form-card h2 { font-family: 'Unbounded', sans-serif; font-size: 1.05rem; margin-bottom: .35rem; }
.form-card .mini { font-size: 13px; color: var(--muted); margin-bottom: 1rem; line-height: 1.45; }
form { display: grid; gap: 10px; }
label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 500; }
input, textarea, select {
  width: 100%; min-height: 46px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field-bg); color: var(--field-fg);
  font: 16px 'DM Sans', sans-serif;
}
textarea { min-height: 72px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 24px; border-radius: 40px; border: none;
  font: 500 15px 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; color: #fff;
  background: var(--accent); width: 100%;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .65; cursor: wait; }
.btn.ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); width: auto; }
.note { font-size: 12px; color: var(--muted); line-height: 1.4; }
.note a { color: var(--accent); }
.ok { display: none; font-size: 13px; color: #4C1D95; background: rgba(124,58,237,.12); padding: 10px 12px; border-radius: 10px; }
.ok.err { color: #991B1B; background: rgba(248,113,113,.18); }
.ok.show { display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: var(--bg); padding: 1.5rem 1rem; text-align: center; }
.stat b { display: block; font-family: 'DM Mono', monospace; font-size: clamp(1.25rem, 2.8vw, 1.85rem); color: var(--accent); font-weight: 500; }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

.section { padding: 4.2rem 5%; max-width: 1140px; margin: 0 auto; }
.section.tight { padding-top: 0; }
.tag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 500; margin-bottom: .85rem; }
h2.sec { font-family: 'Unbounded', sans-serif; font-size: clamp(1.3rem, 3vw, 1.95rem); line-height: 1.2; margin-bottom: .75rem; max-width: 26ch; }
.lead { color: var(--muted); max-width: 40rem; margin-bottom: 1.6rem; line-height: 1.6; }

.grid2, .grid3 { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.cell { background: var(--bg2); padding: 1.5rem; }
.cell .ic { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--accent); margin-bottom: 10px; }
.cell h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.cell p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.box { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.box.no { border-color: rgba(248,113,113,.4); }
.box.yes { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.box .k { font-family: 'DM Mono', monospace; font-size: 11px; margin-bottom: 8px; }
.box.no .k { color: var(--bad); }
.box.yes .k { color: var(--accent); }
.box h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.box ul { list-style: none; }
.box li { font-size: 13.5px; color: var(--muted); padding: .32rem 0 .32rem 1.1rem; position: relative; line-height: 1.45; }
.box.no li::before { content: "×"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.box.yes li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; counter-reset: s; }
.step { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; }
.step .n { font-family: 'DM Mono', monospace; font-size: 11px; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.step.last { background: var(--accent); border: none; color: #fff; }
.step.last .n, .step.last p { color: rgba(255,255,255,.8); }

.path { display: grid; grid-template-columns: repeat(9, minmax(104px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; list-style: none; scroll-snap-type: x mandatory; }
.path li { scroll-snap-align: start; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .9rem .8rem; position: relative; }
.path li .n { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--accent); }
.path li b { display: block; font-size: 13.5px; margin: 4px 0; }
.path li span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.path li.hl { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--bg2)); }

.vs { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--bg2); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.vs th, .vs td { padding: .9rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.vs thead th { font-family: 'DM Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.vs td:first-child { color: var(--muted); width: 26%; }
.vs td.was { color: var(--muted); }
.vs td.now { font-weight: 500; }
.vs tr:last-child td { border-bottom: none; }

.faq { display: flex; flex-direction: column; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq details { background: var(--bg2); padding: 1.15rem 1.4rem; }
.faq summary { cursor: pointer; font-size: 15px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: 'DM Mono', monospace; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: .75rem; font-size: 14px; line-height: 1.65; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 1rem; }

.cta {
  margin: 2rem auto 4rem; max-width: calc(1140px - 10%); width: 90%;
  background: var(--accent); border-radius: 24px; padding: 2.5rem; color: #0D0820;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; align-items: start;
}
.cta h2 { font-family: 'Unbounded', sans-serif; font-size: clamp(1.2rem, 2.5vw, 1.7rem); color: #0D0820; }
.cta p { font-size: 14px; color: rgba(0,0,0,.65); margin: 8px 0 1rem; }
.cta a.tel { color: #0D0820; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(0,0,0,.3); }
.cta input, .cta textarea, .cta select { background: #fff; color: #0D0820; border: none; }
.cta .btn { background: #0D0820; }
.cta .note { color: rgba(0,0,0,.65); }
.cta .ok { background: rgba(255,255,255,.4); color: #0D0820; }

footer.foot { border-top: 1px solid var(--line); padding: 1.6rem 5%; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 12px; color: var(--muted); }
footer.foot a { color: var(--muted); text-decoration: none; }

.bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .55rem 4% calc(.55rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 97%, transparent); border-top: 1px solid var(--line); gap: .5rem; }
.bar a { flex: 1; text-align: center; border-radius: 40px; padding: 13px; font-size: 14px; font-weight: 600; text-decoration: none; }
.bar .call { border: 1px solid var(--line); }
.bar .go { background: var(--accent); color: #fff; }

/* Макеты интерфейса: вымышленные данные, только HTML/CSS */
.mock { background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(76,29,149,.35); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: .7rem 1rem; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar i:nth-child(1) { background: #F87171; }
.mock-bar i:nth-child(2) { background: #FBBF24; }
.mock-bar i:nth-child(3) { background: #34D399; }
.mock-bar span { margin-left: 8px; font-family: 'DM Mono', monospace; }
.mock-body { padding: 1rem; overflow-x: auto; }
.mock-cap { font-size: 12px; color: var(--muted); margin-top: .7rem; }

.mx { border-collapse: separate; border-spacing: 4px; font-size: 12px; min-width: 560px; width: 100%; }
.mx th { font-weight: 500; color: var(--muted); text-align: left; padding: 4px 6px; white-space: nowrap; }
.mx td.obj { font-family: 'DM Mono', monospace; white-space: nowrap; padding-right: 10px; }
.mx td.obj small { display: block; font-family: 'DM Sans', sans-serif; color: var(--muted); font-size: 11px; }
.st { display: block; border-radius: 7px; padding: 6px 7px; font-size: 11px; white-space: nowrap; text-align: center; }
.st.done { background: rgba(52,211,153,.16); color: var(--ok); }
.st.wait { background: rgba(251,191,36,.16); color: var(--warn); }
.st.bad { background: rgba(248,113,113,.18); color: var(--bad); }
.st.none { background: color-mix(in srgb, var(--idle) 18%, transparent); color: var(--muted); }

.legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: .8rem; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }

.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: .8rem; }
.kv div { background: var(--bg3); border-radius: 10px; padding: .7rem .75rem; }
.kv small { display: block; font-size: 11px; color: var(--muted); }
.kv b { display: block; font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; margin-top: 2px; }
.kv b.neg { color: var(--bad); }
.kv b.pos { color: var(--ok); }

.flags { list-style: none; display: grid; gap: 6px; }
.flags li { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13px; padding: .55rem .75rem; border-radius: 10px; background: var(--bg3); }
.flags li em { font-style: normal; font-family: 'DM Mono', monospace; font-size: 12px; }
.flags li.on { background: rgba(248,113,113,.14); }
.flags li.on em { color: var(--bad); }
.flags li.off em { color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; font-size: 13px; background: var(--bg3); }
.tile small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.tile.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg2)); }
.tile.on::before { content: "● вкл"; display: block; font-family: 'DM Mono', monospace; font-size: 10px; color: var(--accent); margin-bottom: 4px; }
.tile.off::before { content: "○ выкл"; display: block; font-family: 'DM Mono', monospace; font-size: 10px; color: var(--muted); margin-bottom: 4px; }

.rows { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
.rows th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rows td { padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rows td.m { font-family: 'DM Mono', monospace; }
.rows tr:last-child td { border-bottom: none; }

.hero-mock { margin-top: 1.4rem; }
.toc {
  display: flex; flex-wrap: wrap; gap: 8px 16px;
  max-width: 1140px; margin: 0 auto; padding: 0 5% 1.8rem;
  font-size: 13px;
}
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .kv { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero, .cta, .split, .steps, .grid2 { grid-template-columns: 1fr; }
  .stats, .stats.three { grid-template-columns: 1fr 1fr; }
  .vs td:first-child { width: auto; }
}
@media (max-width: 560px) {
  .grid3 { grid-template-columns: 1fr; }
  .vs thead { display: none; }
  .vs, .vs tbody, .vs tr, .vs td { display: block; width: 100%; }
  .vs tr { border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .vs td { border: none; padding: .3rem 1rem; }
  .vs.compare td.was::before { content: "Было: "; color: var(--bad); }
  .vs.compare td.now::before { content: "Стало: "; color: var(--accent); }
}
@media (max-width: 480px) {
  nav.top { padding: .9rem 4%; }
  .nav-cta { display: none; }
  .hero { padding: 2rem 4% 1.5rem; gap: 1.3rem; }
  .section { padding: 2.6rem 4%; }
  .cta { width: 92%; margin: 1rem auto 3rem; padding: 1.5rem; border-radius: 16px; }
  .stats.three { grid-template-columns: 1fr; }
  .stat { padding: 1.1rem .6rem; }
  .bar { display: flex; }
  body { padding-bottom: 5.1rem; }
  footer.foot { padding: 1.3rem 4%; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
