/* b2b.css — раздел для компаний: лендинг (business.html), панель (b2b.html),
   активация сотрудником (team.html). Те же токены, что у главной (design/tokens.json,
   тема «Б»): тёмный фон, Geist, белая кнопка, скругление 26. Файл самодостаточный:
   старые слои (brand/funnel/apple) сюда не подключаются. */
:root {
  --bg: #08080a; --surface: #16161b; --surface-2: #1e1e25; --surface-3: #272730;
  --line: rgba(255,255,255,.14); --line-2: rgba(255,255,255,.08);
  --ink: #fff; --ink-2: rgba(255,255,255,.72); --muted: rgba(255,255,255,.56);
  --ok: #5bd08a; --warn: #f0b354; --bad: #ff7a70;
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 26px; --pill: 999px;
  --sans: "Geist", -apple-system, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }

/* ── шапка ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8,8,10,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.top-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 60px; display: flex; align-items: center; gap: 14px; }
.logo { font-weight: 600; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.logo small { font: 500 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 6px; min-width: 0; }
.top-co { color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.wrap { flex: 1; width: 100%; max-width: 1160px; margin: 0 auto; padding: 28px 20px 96px; }
.wrap--narrow { max-width: 560px; }

/* ── кнопки ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--pill); border: 0; background: var(--ink); color: #08080a; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: opacity .15s, background .15s; }
.btn:hover { opacity: .9; }
.btn[disabled] { opacity: .45; cursor: default; }
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.btn--ghost { background: rgba(255,255,255,.08); color: var(--ink); }
.btn--ghost:hover { background: rgba(255,255,255,.14); opacity: 1; }
.btn--text { background: none; color: var(--ink-2); padding: 0 12px; font-weight: 500; }
.btn--text:hover { color: var(--ink); opacity: 1; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--danger { background: rgba(255,122,112,.14); color: var(--bad); }
.btn svg, .ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--pill); border: 0; background: rgba(255,255,255,.08); cursor: pointer; }
.icbtn:hover { background: rgba(255,255,255,.14); }

/* ── карточки и заголовки ── */
.card { background: var(--surface); border-radius: var(--r-xl); padding: 22px; box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.card + .card { margin-top: 14px; }
.h1 { font-size: 34px; line-height: 1.04; letter-spacing: -.04em; font-weight: 500; margin: 0 0 8px; }
.h2 { font-size: 20px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; margin: 0 0 14px; }
.sub { color: var(--ink-2); margin: 0 0 18px; }
.muted { color: var(--muted); }
.kicker { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ── поля ── */
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.inp, .sel { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.04); font-size: 16px; outline: none; transition: border-color .15s; }
.inp:focus, .sel:focus { border-color: rgba(255,255,255,.6); }
.inp::placeholder { color: rgba(255,255,255,.34); }
.sel option { background: #16161b; color: #fff; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.err { color: var(--bad); font-size: 14px; min-height: 20px; margin: 4px 0 0; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: rgba(240,179,84,.1); color: #f6cf8c; font-size: 14px; margin-bottom: 14px; }
.note--ok { background: rgba(91,208,138,.1); color: #9fe6bd; }

/* ── вкладки ── */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 18px -20px 18px; padding: 0 20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 44px; padding: 0 16px; border-radius: var(--pill); border: 0; background: rgba(255,255,255,.06); color: var(--ink-2); font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab[aria-selected="true"] { background: var(--ink); color: #08080a; font-weight: 600; }
.tab i { font-style: normal; font-size: 13px; opacity: .6; }

/* ── счётчики ── */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; }
.kpi b { display: block; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi--ok b { color: var(--ok); }

/* ── знак сервиса ── */
.cv { flex: none; width: 44px; height: 44px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.cv img { width: 56%; height: 56%; object-fit: contain; }
.cv[data-svc="claude"] { background: #2b1c12; } .cv[data-svc="gemini"] { background: #101827; }
.cv[data-svc="perplexity"] { background: #0d2f34; } .cv[data-svc="telegram"] { background: #0b1d2a; }
.cv[data-svc="zoom"] { background: #1c2a5e; } .cv[data-svc="fortnite"] { background: #14141c; }
.cv--sm { width: 32px; height: 32px; border-radius: 10px; }
.cv b { font-size: 16px; font-weight: 600; color: var(--ink-2); }

/* ── магазин: строки тарифов со счётчиком ── */
.svc { margin-bottom: 18px; }
.svc-h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.rows { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 68px; }
.row + .row { border-top: 1px solid var(--line-2); }
.row-b { flex: 1; min-width: 0; }
.row-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-s { color: var(--muted); font-size: 13px; }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; background: rgba(255,255,255,.06); border-radius: var(--pill); }
.qty button { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; border-radius: var(--pill); }
.qty button:hover { background: rgba(255,255,255,.1); }
.qty input { width: 46px; height: 44px; border: 0; background: none; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.row.is-on { background: rgba(255,255,255,.04); }

/* ── полоса итога ── */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); background: rgba(22,22,27,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .22s ease; }
.bar.is-on { transform: none; }
.bar-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.bar-sum { flex: 1; min-width: 0; }
.bar-sum b { display: block; font-size: 20px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bar-sum span { color: var(--muted); font-size: 13px; }

/* ── код компании ── */
.code { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.code-v { font: 500 30px/1 var(--mono); letter-spacing: .08em; padding: 14px 18px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); user-select: all; }
.code-v.is-off { opacity: .4; text-decoration: line-through; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--pill); background: rgba(255,255,255,.07); color: var(--ink-2); font-size: 13px; white-space: nowrap; }
.chip--ok { background: rgba(91,208,138,.14); color: var(--ok); }
.chip--warn { background: rgba(240,179,84,.14); color: var(--warn); }
.chip--bad { background: rgba(255,122,112,.14); color: var(--bad); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--pill); background: rgba(255,255,255,.06); cursor: pointer; font-size: 14px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check:has(input:checked) { background: var(--ink); color: #08080a; font-weight: 600; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: var(--pill); background: rgba(255,255,255,.16); border: 0; cursor: pointer; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch[aria-checked="true"] { background: var(--ok); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ── списки ── */
.list { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: 64px; }
.li + .li { border-top: 1px solid var(--line-2); }
.li-b { flex: 1; min-width: 0; }
.li-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-s { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-a { display: flex; gap: 6px; flex: none; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .04em; }

/* ── шаги ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.step i { flex: none; width: 34px; height: 34px; border-radius: 11px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-style: normal; color: var(--ink); }
.step.is-on { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); }

/* ── окно ── */
.sheet { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); padding: 0; }
.sheet-in { width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--surface-2); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet-f { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.sheet-f .btn { flex: 1; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 60; background: #fff; color: #08080a; padding: 12px 18px; border-radius: var(--pill); font-weight: 500; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--bad { background: var(--bad); }
.skel { border-radius: var(--r-xl); background: linear-gradient(90deg, #16161b 0%, #1e1e25 50%, #16161b 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; height: 120px; margin-bottom: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .bar, .toast { transition: none; } }

/* ── лендинг ── */
.hero { padding: 40px 0 26px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.hero h1 { font-size: 64px; line-height: .96; letter-spacing: -.05em; font-weight: 500; margin: 0 0 18px; text-wrap: balance; }
.hero p { font-size: 18px; line-height: 1.5; color: var(--ink-2); margin: 0 0 24px; max-width: 460px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.demo { background: var(--surface); border-radius: 30px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px -50px #000; }
.demo-code { font: 500 26px/1 var(--mono); letter-spacing: .1em; padding: 16px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); text-align: center; margin: 10px 0 14px; }
.sect { padding: 34px 0 0; }
.sect h2 { font-size: 34px; line-height: 1.04; letter-spacing: -.04em; font-weight: 500; margin: 0 0 18px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; list-style: none; margin: 0; padding: 0; }
.flow li { background: var(--surface); border-radius: var(--r-xl); padding: 18px; min-height: 150px; display: flex; flex-direction: column; gap: 10px; }
.flow i { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; font-style: normal; }
.flow b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.flow span { color: var(--ink-2); font-size: 14px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--surface); border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 8px; }
.tile b { font-size: 17px; font-weight: 600; }
.tile span { color: var(--ink-2); font-size: 14px; }
.marks { display: flex; gap: 8px; flex-wrap: wrap; }
.faq { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line-2); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 56px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0; padding: 0 18px 18px; color: var(--ink-2); }
.foot { border-top: 1px solid var(--line-2); padding: 24px 20px 32px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.foot-in { max-width: 1120px; margin: 0 auto; display: flex; gap: 8px 22px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot p { margin: 0; flex-basis: 100%; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 22px; gap: 22px; }
  .hero h1 { font-size: 42px; }
  .flow { grid-template-columns: 1fr 1fr; } .tiles { grid-template-columns: 1fr; }
  .sect h2, .h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kpi b { font-size: 24px; } .kpi { padding: 12px; }
  .code-v { font-size: 24px; padding: 12px 14px; }
  .row { flex-wrap: wrap; } .row-b { flex-basis: calc(100% - 60px); }
  .row .price { margin-left: 56px; flex: 1; }
  .li { flex-wrap: wrap; } .li-a { margin-left: auto; }
  .flow li { min-height: 0; }
  .top-co { display: none; }
}
@media (min-width: 720px) { .sheet { align-items: center; padding: 20px; } .sheet-in { border-radius: var(--r-xl); } }

/* ════ Версия 2: панель с боковым меню, обзор, калькулятор лендинга ════ */

/* ── каркас панели ── */
.shell { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 24px 20px 110px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.side { display: none; }
.main { min-width: 0; }
.pg-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 18px; flex-wrap: wrap; }
.pg-h h1 { font-size: 30px; line-height: 1.05; letter-spacing: -.04em; font-weight: 500; margin: 0; }
.pg-h p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.nav-b { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(14,14,18,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); }
.nav-b button { position: relative; border: 0; background: none; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; cursor: pointer; }
.nav-b button[aria-current="page"] { color: var(--ink); }
.nav-b .ic { width: 22px; height: 22px; }
.nav-b i, .side-nav i { font-style: normal; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #08080a; display: inline-flex; align-items: center; justify-content: center; }
.nav-b i { position: absolute; top: 6px; left: 50%; margin-left: 6px; }
.bar { bottom: calc(58px + env(safe-area-inset-bottom)); }
.toast { bottom: 150px; }
@media (min-width: 960px) {
  .shell { grid-template-columns: 250px 1fr; gap: 34px; padding: 30px 28px 96px; }
  .side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 104px); }
  .nav-b { display: none; }
  .bar { bottom: 0; } .toast { bottom: 96px; }
  .pg-h h1 { font-size: 38px; }
}
.side-co { background: var(--surface); border-radius: var(--r-lg); padding: 14px 16px; }
.side-co b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-co span { color: var(--muted); font-size: 13px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav button, .side-nav a { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 14px; border-radius: var(--r-md); border: 0; background: none; color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; text-align: left; }
.side-nav button:hover, .side-nav a:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.side-nav button[aria-current="page"] { background: rgba(255,255,255,.1); color: var(--ink); }
.side-nav i { margin-left: auto; }
.side-nav .ic { width: 20px; height: 20px; }
.side-sep { height: 1px; background: var(--line-2); margin: 6px 0; }

/* ── путь из четырёх шагов ── */
.track { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; background: var(--surface); border-radius: var(--r-xl); padding: 18px 8px 16px; margin-bottom: 14px; }
.track-s { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; color: var(--muted); padding: 0 4px; }
.track-s::before { content: ""; position: absolute; top: 17px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.track-s:first-child::before { display: none; }
.track-s span { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--ink-2); }
.track-s.is-done span { background: var(--ok); color: #06120b; }
.track-s.is-done::before, .track-s.is-now::before { background: var(--ok); }
.track-s.is-now { color: var(--ink); }
.track-s.is-now span { background: var(--ink); color: #08080a; box-shadow: 0 0 0 5px rgba(255,255,255,.12); }
.next { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--r-xl); padding: 18px 20px; margin-bottom: 22px; flex-wrap: wrap; }
.next-b { flex: 1; min-width: 200px; }
.next-b b { display: block; font-size: 18px; letter-spacing: -.01em; }
.next-b span { color: var(--ink-2); font-size: 14px; }

/* ── шкала мест ── */
.meter { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: rgba(255,255,255,.08); }
.meter s { display: block; height: 100%; text-decoration: none; }
.meter .m-free { background: var(--ok); } .meter .m-held { background: var(--warn); } .meter .m-used { background: rgba(255,255,255,.34); }
.legend { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--ink-2); }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; background: var(--ok); }
.legend .l-held::before { background: var(--warn); } .legend .l-used::before { background: rgba(255,255,255,.34); }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }
.total { background: var(--surface); border-radius: var(--r-xl); padding: 20px; margin-bottom: 14px; }
.total-n { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.total-n b { font-size: 46px; line-height: 1; letter-spacing: -.04em; font-weight: 500; font-variant-numeric: tabular-nums; }
.total-n span { color: var(--muted); }

/* ── карточки остатка ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.pc { background: var(--surface); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.pc-h { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-h div { min-width: 0; }
.pc-h b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-h span { color: var(--muted); font-size: 13px; }
.pc-n { display: flex; align-items: baseline; gap: 8px; }
.pc-n b { font-size: 34px; line-height: 1; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.pc-n span { color: var(--muted); font-size: 13px; }
.pc .btn { width: 100%; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.sec-h h2 { font-size: 20px; letter-spacing: -.02em; font-weight: 600; margin: 0; }

/* ── пропуск: код компании ── */
.pass { background: var(--surface); border-radius: var(--r-xl); padding: 20px; display: grid; grid-template-columns: 1fr; gap: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pass-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass-code { font: 500 clamp(30px, 7vw, 46px)/1 var(--mono); letter-spacing: .1em; user-select: all; }
.pass-code.is-off { opacity: .35; text-decoration: line-through; }
.pass-act { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pass-act .btn { padding: 0 10px; }
.prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.prog s { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.ta { width: 100%; min-height: 96px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.04); font: inherit; font-size: 16px; color: inherit; outline: none; resize: vertical; }
.ta:focus { border-color: rgba(255,255,255,.6); }
.ta::placeholder { color: rgba(255,255,255,.34); }

/* ── счёт карточкой ── */
.bill { background: var(--surface); border-radius: var(--r-xl); padding: 18px 20px; }
.bill + .bill { margin-top: 10px; }
.bill.is-new { box-shadow: inset 0 0 0 1px rgba(255,255,255,.4); }
.bill-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.bill-h b { font-size: 26px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.bill-h span { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.bill-i { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.bill-a { display: flex; gap: 8px; flex-wrap: wrap; }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.tools .inp { flex: 1; min-width: 180px; min-height: 44px; }
.fchips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 14px; padding: 0 20px; }
.fchips::-webkit-scrollbar { display: none; }
.fchip { flex: none; min-height: 40px; padding: 0 14px; border-radius: var(--pill); border: 0; background: rgba(255,255,255,.06); color: var(--ink-2); font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #08080a; font-weight: 600; }
.row-sum { color: var(--ok); font-size: 13px; font-variant-numeric: tabular-nums; }
.hero-e { background: var(--surface); border-radius: 30px; padding: 34px 24px; text-align: center; }
.hero-e .marks { justify-content: center; margin-bottom: 18px; }
.hero-e h2 { font-size: 26px; letter-spacing: -.03em; font-weight: 500; margin: 0 0 8px; }
.hero-e p { color: var(--ink-2); margin: 0 auto 18px; max-width: 420px; }

/* ── лендинг: калькулятор и схема ── */
.calc { background: var(--surface); border-radius: 30px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 40px 80px -50px #000; }
.calc-rows { display: flex; flex-direction: column; margin: 6px 0 14px; }
.calc-r { display: flex; align-items: center; gap: 12px; padding: 8px 0; min-height: 60px; }
.calc-r + .calc-r { border-top: 1px solid var(--line-2); }
.calc-r .row-b { flex: 1; min-width: 0; }
.calc-t { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.calc-t b { font-size: 34px; letter-spacing: -.03em; font-weight: 500; font-variant-numeric: tabular-nums; }
.calc-t span { color: var(--muted); font-size: 14px; }
.calc .btn { width: 100%; margin-top: 14px; }
.scheme { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: st; list-style: none; margin: 0; padding: 0; }
.scheme li { position: relative; background: var(--surface); border-radius: var(--r-xl); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; }
.scheme li::after { counter-increment: st; content: counter(st); position: absolute; top: 16px; right: 18px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.scheme b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.scheme p { margin: 0; color: var(--ink-2); font-size: 14px; }
.scheme .viz { margin-top: auto; background: rgba(255,255,255,.05); border-radius: var(--r-md); padding: 12px; font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }
.viz-l { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.viz-l b { font-size: 13px; font-weight: 500; color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--ink); color: #08080a; border-radius: 30px; padding: 26px 28px; margin-top: 34px; }
.band h2 { font-size: 30px; line-height: 1.05; letter-spacing: -.04em; font-weight: 500; margin: 0; }
.band .btn { background: #08080a; color: #fff; }
@media (max-width: 860px) { .scheme { grid-template-columns: 1fr 1fr; } .split { grid-template-columns: 1fr; } .band h2 { font-size: 24px; } }
@media (max-width: 560px) { .scheme { grid-template-columns: 1fr; } .scheme li { min-height: 0; } .total-n b { font-size: 38px; } .track-s { font-size: 12px; } .pass-act .btn { font-size: 14px; } }

/* ── согласие с документами ── */
.agree { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 12px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: #fff; cursor: pointer; }
.agree a, .legal a { color: var(--ink); text-underline-offset: 3px; }
.legal { margin: -6px 0 16px; font-size: 13px; color: var(--muted); }

/* Спрятанная полоса итога уезжает за край целиком: над ней теперь нижнее меню,
   и сдвига на свою высоту не хватало — она оставалась лежать поверх него. */
.bar { transform: translateY(calc(100% + 90px)); visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
.bar.is-on { transform: none; visibility: visible; transition: transform .22s ease; }

.toast { border-radius: 18px; text-align: center; }

/* ── окно подтверждения ── */
.sheet--ask { z-index: 70; align-items: center; padding: 20px; }
.sheet--ask .sheet-in { max-width: 420px; border-radius: var(--r-xl); padding: 24px; }
.sheet--ask .h2 { margin-bottom: 8px; }
.sheet--ask .sub { margin-bottom: 4px; overflow-wrap: anywhere; }

/* ── быстрые действия на «Обзоре» ── */
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.qa { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 0; border-radius: var(--r-xl); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: background .15s, transform .15s; min-width: 0; }
.qa:hover { background: var(--surface-2); }
.qa:active { transform: scale(.985); }
.qa i { width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; font-style: normal; }
.qa b { font-weight: 600; font-size: 15px; }
.qa span { color: var(--muted); font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc, .bill, .card, .total, .pass, .list, .rows { transition: box-shadow .15s; }
.btn:active { transform: scale(.985); }
@media (prefers-reduced-motion: reduce) { .qa, .btn { transition: none; } .qa:active, .btn:active { transform: none; } }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } .qa { padding: 14px; } }

/* ════ Версия 4: лендинг-воронка (/business) и презентация (/hello) ════ */

.lp-nav { display: none; gap: 4px; margin-left: 18px; }
.lp-nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 0 12px; min-height: 40px; display: inline-flex; align-items: center; border-radius: var(--pill); }
.lp-nav a:hover { color: var(--ink); background: rgba(255,255,255,.06); }
@media (min-width: 900px) { .lp-nav { display: flex; } }

/* ── первый экран ── */
.lp-hero { padding: 44px 0 0; text-align: center; }
.lp-hero .kicker { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 32px; border-radius: var(--pill); background: rgba(255,255,255,.07); color: var(--ink-2); letter-spacing: .04em; }
.lp-hero .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.lp-hero h1 { font-size: clamp(38px, 6.4vw, 76px); line-height: .98; letter-spacing: -.05em; font-weight: 500; margin: 18px auto 18px; max-width: 900px; text-wrap: balance; }
.lp-hero p.lead { font-size: clamp(16px, 1.6vw, 19px); line-height: 1.5; color: var(--ink-2); margin: 0 auto 26px; max-width: 620px; text-wrap: pretty; }
.lp-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.lp-facts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.lp-facts .chip { min-height: 32px; padding: 0 12px; }

/* ── окно с панелью: живой образец ── */
.win { margin: 40px auto 0; max-width: 1040px; border-radius: 22px; background: #101014; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 60px 120px -60px #000; overflow: hidden; text-align: left; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line-2); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.win-bar span { margin: 0 auto; font-size: 12.5px; color: var(--muted); padding: 4px 14px; border-radius: 8px; background: rgba(255,255,255,.05); }
.win-bar em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.win-body { display: grid; grid-template-columns: 196px 1fr; min-height: 420px; }
.win-side { border-right: 1px solid var(--line-2); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.win-co { padding: 10px 12px 12px; margin-bottom: 6px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13px; }
.win-co b { display: block; font-weight: 600; } .win-co span { color: var(--muted); font-size: 12px; }
.win-tab { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-size: 14px; cursor: pointer; text-align: left; }
.win-tab:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.win-tab[aria-selected="true"] { background: rgba(255,255,255,.1); color: var(--ink); font-weight: 500; }
.win-tab .ic { width: 18px; height: 18px; }
.win-main { padding: 20px; min-width: 0; }
.win-main h3 { font-size: 22px; letter-spacing: -.03em; font-weight: 500; margin: 0 0 14px; }
.win-main .total, .win-main .pass, .win-main .list, .win-main .bill, .win-main .pc { background: rgba(255,255,255,.045); }
.win-main .total-n b { font-size: 38px; } .win-main .pass-code { font-size: 34px; }
.win-main .cards { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.win-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
@media (max-width: 760px) {
  .win-body { grid-template-columns: 1fr; }
  .win-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-2); padding: 8px; scrollbar-width: none; }
  .win-side::-webkit-scrollbar { display: none; }
  .win-co { display: none; } .win-tab { flex: none; }
  .win-main { padding: 16px; }
}

/* ── воронка из трёх шагов ── */
.fun { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; align-items: stretch; margin-top: 16px; }
.fun-s { background: var(--surface); border-radius: var(--r-xl); padding: 16px 18px; display: flex; gap: 14px; align-items: center; text-align: left; }
.fun-s i { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #08080a; font-style: normal; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.fun-s b { display: block; font-weight: 600; } .fun-s span { color: var(--muted); font-size: 13px; }
.fun .btn { height: 100%; min-height: 72px; border-radius: var(--r-xl); padding: 0 26px; }
@media (max-width: 900px) { .fun { grid-template-columns: 1fr; } .fun .btn { min-height: 56px; } }

/* ── возможности ── */
.sect-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; }
.sect-h h2 { margin: 0; } .sect-h p { margin: 0; color: var(--ink-2); max-width: 420px; }
.sect { padding-top: 64px; }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat-t { background: var(--surface); border-radius: var(--r-xl); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-height: 230px; }
.feat-t b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.feat-t > span { color: var(--ink-2); font-size: 14px; }
.feat-v { margin-top: auto; padding-top: 14px; }
.feat-v .mini { background: rgba(255,255,255,.05); border-radius: var(--r-md); padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--ink-2); }
.feat-v .mini .viz-l b { color: var(--ink); font-weight: 500; }
.feat-v .code { font: 500 22px/1 var(--mono); letter-spacing: .1em; color: var(--ink); }
.feat-t--wide { grid-column: span 2; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr 1fr; } .feat-t--wide { grid-column: span 2; } }
@media (max-width: 600px) { .feat { grid-template-columns: 1fr; } .feat-t--wide { grid-column: auto; } .feat-t { min-height: 0; } .sect { padding-top: 48px; } }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.two h2 { margin-bottom: 12px; } .two p { color: var(--ink-2); margin: 0 0 18px; max-width: 440px; }
.ticks { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: rgba(91,208,138,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235bd08a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7 10 16l-4-4'/%3E%3C/svg%3E") center/14px no-repeat; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

/* ── закреплённая кнопка на телефоне ── */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(14,14,18,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); display: none; }
.cta-bar .btn { width: 100%; }
@media (max-width: 760px) { .cta-bar.is-on { display: block; } body.has-cta .foot { padding-bottom: 96px; } }

/* ════ Презентация /hello: слайды во весь экран ════ */
.deck { height: 100vh; height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; scroll-behavior: smooth; }
.slide { min-height: 100vh; min-height: 100dvh; scroll-snap-align: start; display: flex; align-items: center; padding: 76px 24px 64px; position: relative; }
.slide-in { width: 100%; max-width: 1120px; margin: 0 auto; }
.slide .num { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; margin-bottom: 18px; display: block; }
.slide h1 { font-size: clamp(40px, 7vw, 92px); line-height: .96; letter-spacing: -.05em; font-weight: 500; margin: 0 0 22px; text-wrap: balance; }
.slide h2 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -.045em; font-weight: 500; margin: 0 0 18px; text-wrap: balance; }
.slide p.lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); margin: 0 0 26px; max-width: 640px; }
.slide .two { align-items: center; }
.slide .win { margin-top: 0; }
.deck-top { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 20px; background: linear-gradient(#08080a, rgba(8,8,10,0)); pointer-events: none; }
.deck-top > * { pointer-events: auto; }
.deck-top .logo { margin-right: auto; }
.deck-prog { position: fixed; left: 0; top: 0; height: 3px; background: var(--ink); z-index: 21; width: 0; transition: width .2s; }
.deck-nav { position: fixed; right: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: var(--pill); background: rgba(22,22,27,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--line-2); }
.deck-nav .icbtn { background: none; } .deck-nav .icbtn:hover { background: rgba(255,255,255,.1); }
.deck-nav span { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: center; }
.pain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pain div { background: var(--surface); border-radius: var(--r-xl); padding: 22px; }
.pain b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 8px; }
.pain span { color: var(--ink-2); font-size: 15px; }
.price-l { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; }
.price-l .li { min-height: 56px; }
.big-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.contact { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-top: 26px; color: var(--ink-2); }
.contact a { color: var(--ink); text-underline-offset: 4px; }
@media (max-width: 860px) { .pain { grid-template-columns: 1fr; } .slide { padding: 72px 18px 84px; align-items: flex-start; } .deck { scroll-snap-type: none; } .slide { min-height: 0; padding-bottom: 40px; } .slide + .slide { border-top: 1px solid var(--line-2); } }
@media (prefers-reduced-motion: reduce) { .deck { scroll-behavior: auto; } }
@media print {
  .deck { height: auto; overflow: visible; } .deck-top, .deck-nav, .deck-prog { display: none; }
  .slide { min-height: 0; page-break-after: always; break-after: page; padding: 28px 0; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ── первый экран на широком окне: текст слева, панель справа ──
   Панель — главное, что мы продаём. Когда она стояла под текстом, на экране
   ноутбука её не было видно без прокрутки: заголовок в три строки съедал весь экран. */
@media (min-width: 1100px) {
  .lp-hero { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 40px; align-items: center; text-align: left; padding-top: 34px; }
  .lp-hero h1 { font-size: clamp(40px, 4.1vw, 58px); margin: 16px 0 16px; }
  .lp-hero p.lead { margin: 0 0 24px; }
  .lp-cta, .lp-facts { justify-content: flex-start; }
  .lp-hero .win { margin: 0; max-width: none; }
  .lp-hero .win-body { grid-template-columns: 172px 1fr; min-height: 400px; }
  .lp-hero .win-main .cards { grid-template-columns: 1fr 1fr; }
  .lp-hero .win-main .pc-n b { font-size: 28px; }
  .win-hint { text-align: right; }
}
.slide .win-body { min-height: 360px; }
@media (min-width: 861px) { .two--demo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
