:root {
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --ink: #0f172a;
  --muted: #526077;
  --line: #e2e8f0;
  --accent: #2155d6;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --warn: #b45309;
  --warn-soft: #fff4e5;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.soft { background: var(--bg-soft); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 720px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 800; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--accent-ink); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); padding: 14px 24px; border-radius: 12px; transition: transform .1s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(33, 85, 214, .25); }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }

/* первый экран */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; color: var(--muted); font-size: 15px; }
.facts b { color: var(--ink); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* карточки */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.soft .card { box-shadow: 0 1px 0 var(--line); }
.num { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.pain { border-left: 4px solid var(--warn); }
.check { list-style: none; padding: 0; margin: 0; }
.check li { padding-left: 28px; position: relative; margin: 8px 0; }
.check li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.quote { background: var(--warn-soft); border-radius: 12px; padding: 16px 18px; font-size: 16px; }
.compare td, .compare th { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare { width: 100%; border-collapse: collapse; background: var(--bg); border-radius: var(--radius); overflow: hidden; }
.compare th { background: var(--bg-soft); font-size: 15px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field output { color: var(--accent); }
input[type=range] { width: 100%; accent-color: var(--accent); }
.result { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px; }
.result .big { font-size: clamp(32px, 4vw, 44px); font-weight: 800; line-height: 1.1; margin: 6px 0 10px; }
.result .muted { color: #b6c2d6; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); position: relative; }
.plan.best::before { content: "Популярный выбор"; position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price { font-size: clamp(24px, 2.5vw, 36px); font-weight: 800; margin: 8px 0 2px; }
@media (max-width: 900px) { .price { font-size: clamp(26px, 7.5vw, 36px); } }
.plan, .plans > *, .grid > *, .split > *, .calc > * { min-width: 0; }
@media (max-width: 400px) { .plan { padding: 22px; } .founder { padding: 20px; } .cta-band { padding: 28px 22px; } }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan .check { margin: 18px 0 24px; flex: 1; }
.plan .btn { width: 100%; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* форма */
.modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal.open { display: flex; }
.dialog { background: var(--bg); border-radius: 18px; width: min(520px, 100%); max-height: 94vh; overflow-y: auto; padding: 28px; position: relative; }
.close { position: absolute; top: 10px; right: 14px; background: none; border: 0; font-size: 28px; color: var(--muted); cursor: pointer; }
form label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
form input, form select, form textarea { width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
form .consent input { width: auto; margin-top: 4px; }
form .btn { width: 100%; margin-top: 18px; }
.hp { position: absolute; left: -5000px; }
.form-msg { margin-top: 12px; font-size: 15px; }
.form-msg.err { color: #b91c1c; }
.done { text-align: center; padding: 20px 0; }
.done .ico { font-size: 44px; }

/* подвал */
footer { background: var(--ink); color: #cbd5e1; padding: 40px 0; font-size: 15px; }
footer a { color: #fff; }
.foot { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.cta-band { background: var(--accent); color: #fff; border-radius: 20px; padding: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band .btn { background: #fff; color: var(--accent); }
.cta-band p { color: #dbe5ff; margin: 0; }

/* живое демо на первом экране */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(circle at 1px 1px, #cbd5e1 1px, transparent 0); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, #000 20%, transparent 75%);
  transform: translate(var(--px, 0), var(--py, 0)); transition: transform .4s ease-out; will-change: transform; }
.hero .wrap { position: relative; }
.demo { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.14), 0 2px 6px rgba(15,23,42,.06); overflow: hidden; position: relative; min-width: 0; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft); font-size: 13px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.demo-bar i:nth-child(1) { background: #fca5a5; } .demo-bar i:nth-child(2) { background: #fcd34d; } .demo-bar i:nth-child(3) { background: #86efac; }
.demo-bar span { margin-left: 8px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 420px) { .demo-bar span { display: none; } .demo-text { font-size: 13px; } }
.demo-status { margin-left: auto; font-style: normal; color: var(--accent); font-weight: 600; white-space: nowrap; }
.demo-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; animation: pulse 1.2s infinite; will-change: opacity; }
.demo-status.warn { color: #dc2626; } .demo-status.ok { color: var(--ok); }
.demo-status.ok::before { animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
.demo-text { padding: 12px 16px 4px; font-size: 14px; line-height: 1.55; min-height: 74px; color: var(--ink); }
.demo-text .s { border-radius: 4px; padding: 1px 2px; transition: background .3s, box-shadow .3s; }
.demo-text .s.on { background: var(--accent-soft); }
.demo-text .s.gap { background: #fee2e2; box-shadow: inset 0 -2px 0 #dc2626; }
.demo-text .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: pulse .8s infinite; }
.demo-svg { display: block; width: 100%; height: auto; padding: 6px 12px 12px; }
.demo-svg .pool { fill: #fbfdff; stroke: #cbd5e1; }
.demo-svg .lane-line { stroke: #e2e8f0; }
.demo-svg .lane-title { font-size: 11px; fill: var(--muted); text-anchor: middle; font-weight: 600; }
.demo-svg .t { font-size: 11px; fill: var(--ink); text-anchor: middle; font-weight: 500; }
.demo-svg .t.small { font-size: 10px; fill: var(--muted); }
.demo-svg .t.big { font-size: 20px; fill: #334155; font-weight: 400; }
.demo-svg .ev { fill: #fff; stroke: #334155; stroke-width: 2; }
.demo-svg .ev.end { stroke-width: 4; }
.demo-svg .task { fill: #fff; stroke: var(--accent); stroke-width: 1.6; }
.demo-svg .task.ok { stroke: var(--ok); fill: #f0fdf4; }
.demo-svg .gw { fill: #fffbeb; stroke: #b45309; stroke-width: 1.6; }
.demo-svg .flow { fill: none; stroke: #334155; stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .7s ease-in-out, opacity .2s; }
.demo-svg .flow.ok { stroke: var(--ok); stroke-width: 2; }
.demo-svg .flow.on { stroke-dashoffset: 0; opacity: 1; }
.demo-svg .el { opacity: 0; transform: translateY(6px) scale(.96); transform-box: fill-box; transform-origin: center; transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1.3); }
.demo-svg .el.on { opacity: 1; transform: none; }
.demo-svg .el.lit .task, .demo-svg .el.lit .gw, .demo-svg .el.lit .ev { stroke-width: 3; }
.demo-svg .gap { opacity: 0; transition: opacity .4s; }
.demo-svg .gap.on { opacity: 1; }
.demo-svg .gap-line { stroke: #dc2626; stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.demo-svg .gap-dot { fill: #fee2e2; stroke: #dc2626; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.demo-svg .gap-q { fill: #dc2626; font-weight: 800; font-size: 14px; }
.demo-svg .gap-lbl { fill: #dc2626; }
.demo-svg .gap.on:not(.done) .gap-line { animation: dash 1s linear infinite; }
.demo-svg .gap.on:not(.done) .gap-dot { animation: ring 1.4s ease-in-out infinite; }
.demo-svg .gap.done .gap-line, .demo-svg .gap.done .gap-dot, .demo-svg .gap.done .gap-q { opacity: 0; transition: opacity .3s; }
@keyframes dash { to { stroke-dashoffset: -18; } }
@keyframes ring { 50% { transform: scale(1.15); } }
.demo-q { margin: 0 14px 14px; background: #fff; border: 1px solid #fecaca; border-left: 4px solid #dc2626; border-radius: 12px; padding: 10px 14px;
  box-shadow: 0 14px 30px rgba(15,23,42,.16); font-size: 14px; opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1.2); pointer-events: none; }
.demo-q.on { opacity: 1; transform: none; }
.demo-q .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-soft); transition: background .25s, color .25s, border-color .25s, transform .2s; }
.chip.pick { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.06); }

.demo { scroll-margin-top: 76px; scroll-margin-bottom: 12px; }

/* вертикальная схема для телефонов */
.demo-svg-v { display: none; }
.demo-svg .t.left { text-anchor: start; }
@media (max-width: 560px) { .demo-svg-h { display: none; } .demo-svg-v { display: block; max-width: 360px; margin: 0 auto; } }

/* карточка вопроса: заглушка, пока вопроса нет, чтобы не было пустого места */
.demo-q { display: grid; opacity: 1; transform: none; border: 1px dashed #cbd5e1; border-left: 4px solid #cbd5e1; box-shadow: none; transition: border-color .3s, box-shadow .3s; }
.demo-q > * { grid-area: 1 / 1; transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1.2); }
.demo-q .q-idle { color: var(--muted); font-size: 13px; align-self: center; }
.demo-q .q-body { opacity: 0; transform: translateY(8px); }
.demo-q.on { border: 1px solid #fecaca; border-left: 4px solid #dc2626; box-shadow: 0 14px 30px rgba(15,23,42,.16); }
.demo-q.on .q-body { opacity: 1; transform: none; }
.demo-q.on .q-idle { opacity: 0; }

/* появление блоков при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.btn.glow { position: relative; isolation: isolate; }
.btn.glow::after { content: ""; position: absolute; inset: -3px; border-radius: 14px; z-index: -1; background: var(--accent); opacity: .35; filter: blur(10px); animation: glow 2.6s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .08; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn.glow::after, .demo-status::before, .demo-svg .gap.on .gap-line, .demo-svg .gap.on .gap-dot { animation: none; }
  .hero::before { transform: none; }
}

.early { background: #fff7e6; border: 1px solid #fcd9a0; color: #1f2937; border-radius: 12px; padding: 12px 16px; font-size: 16px; margin: 16px 0 0; }
.early a { font-weight: 600; }

/* заголовок выезжает из-под маски */
.rise-line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.rise-line > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes rise { to { transform: none; } }

/* примеры под демо */
.demo-col { min-width: 0; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--muted); }
.examples > span { margin-right: 2px; font-weight: 600; }
.ex { font: inherit; font-size: 14px; cursor: pointer; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background .2s, color .2s, border-color .2s, transform .15s; }
.ex:hover { border-color: var(--accent); transform: translateY(-1px); }
.ex.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ex:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* цифры и бегущая строка */
.stats-band { padding: 8px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }
.stat { border-top: 2px solid var(--line); padding-top: 14px; }
.stat-num { font-size: clamp(40px, 5vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.stat-num small { font-size: .45em; font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.marquee { margin-top: 36px; overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { white-space: nowrap; padding: 0 28px; font-weight: 600; color: var(--muted); position: relative; }
.marquee-track span::after { content: "◆"; position: absolute; right: -6px; color: var(--accent); font-size: 9px; top: 50%; transform: translateY(-50%); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* слайдер «чат-бот против нас» */
.versus { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-top: 22px; user-select: none; touch-action: pan-y; }
.vs-pane { padding: 52px 18px 18px; background: #fff; }
.vs-us { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--x)); background: #fbfffc; }
.vs-bot { background: #fffafa; }
.vs-pane svg { display: block; width: 100%; height: auto; }
.vs-tag { position: absolute; top: 14px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.vs-tag.bad { left: 16px; background: #fee2e2; color: #b91c1c; }
.vs-tag.good { right: 16px; background: #dcfce7; color: var(--ok); }
.vs-cap { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.vs-bot .vs-cap { max-width: 48%; }
.vs-us .vs-cap { margin-left: auto; max-width: 48%; text-align: right; }
.v-ev { fill: #fff; stroke: #334155; stroke-width: 2; } .v-ev.end { stroke-width: 4; }
.v-fl { fill: none; stroke: #334155; stroke-width: 1.8; } .v-fl.red { stroke: #b91c1c; stroke-width: 2.2; }
.v-task { fill: #fff; stroke: var(--accent); stroke-width: 1.6; } .v-task.red { stroke: #b91c1c; fill: #fef2f2; stroke-width: 2; }
.v-gw { fill: #fffbeb; stroke: #b45309; stroke-width: 1.6; }
.v-t { font-size: 12px; text-anchor: middle; fill: var(--ink); font-weight: 500; }
.v-t.small { font-size: 11px; fill: var(--muted); } .v-t.big { font-size: 20px; font-weight: 400; } .v-t.left { text-anchor: start; }
.v-t.redt { fill: #b91c1c; font-weight: 700; } .v-t.q { fill: #dc2626; font-weight: 800; font-size: 15px; }
.v-badge rect { fill: #fee2e2; stroke: #fca5a5; }
.v-gap { stroke: #dc2626; stroke-width: 2; stroke-dasharray: 5 4; fill: none; }
.v-gapdot { fill: #fee2e2; stroke: #dc2626; stroke-width: 2; }
.v-ask rect { fill: #fff; stroke: #fecaca; stroke-width: 1.5; }
.vs-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.vs-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 18px rgba(33,85,214,.35); }
.vs-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.vs-range:focus-visible + .vs-handle, .versus:focus-within .vs-handle span { outline: 3px solid #bfd0ff; }
@media (max-width: 760px) { .vs-pane { padding-top: 48px; } .vs-cap { font-size: 13px; } }

/* кто делает */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; background: var(--bg-soft); border-radius: 20px; padding: 36px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--accent), #6d8dff); box-shadow: 0 12px 30px rgba(33,85,214,.3); }
@media (max-width: 760px) { .founder { grid-template-columns: 1fr; padding: 24px; } .avatar { width: 84px; height: 84px; font-size: 28px; } }

/* липкая кнопка на телефоне */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; box-shadow: 0 10px 30px rgba(33,85,214,.4); }
  footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .rise-line > span { animation: none; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track span[aria-hidden] { display: none; }
}

/* статьи */
.article { max-width: 780px; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); }
.article h2 { font-size: clamp(23px, 3vw, 30px); margin-top: 40px; }
.article ol, .article ul:not(.check) { padding-left: 22px; }
.article li { margin: 6px 0; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.src { background: var(--bg-soft); border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; padding: 16px 18px; margin: 0 0 18px; }
.src p { margin: 0; }
.src b { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.article .table-wrap { margin: 0 0 18px; }
.article .compare td, .article .compare th { font-size: 15px; }
.next { display: grid; gap: 12px; margin-top: 12px; }
.next a { display: block; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.next a:hover { border-color: var(--accent); }

/* «Кто вы» и преимущества на первом экране */
.segments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.segments > span { font-weight: 600; }
.seg { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--accent); }
.seg:hover { border-color: var(--accent); }
.seg[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.seg:focus-visible, .support-q:focus-visible, .support-fab:focus-visible, .support-x:focus-visible, .benefits a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-note { background: var(--accent-soft); border-radius: 12px; padding: 12px 16px; font-size: 16px; max-width: 720px; }
.benefits { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; max-width: 640px; }
.benefits li { padding-left: 28px; position: relative; }
.benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }
.benefits a { color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px dashed #b8c4d8; }
.benefits a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* разделы возможностей со скриншотами */
.feature { scroll-margin-top: 64px; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 44px; align-items: center; }
.feature-grid.wide { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); }
.feature-grid.no-shot { grid-template-columns: 1fr; max-width: 820px; }
.feature-grid.no-shot figure { display: none; }
.feature figure { margin: 0; min-width: 0; }
.feature figcaption { font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.feature figcaption:last-child { margin-bottom: 0; }
.shot-small { max-width: min(460px, 100%); }
.feature-sub { font-weight: 600; margin-bottom: 6px; }
.remarks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.remarks li { background: var(--warn-soft); border-left: 3px solid var(--warn); border-radius: 0 10px 10px 0; padding: 8px 12px; font-size: 15px; }
.remarks li::before { content: "⚠ "; color: var(--warn); }
@media (max-width: 900px) { .feature-grid, .feature-grid.wide { grid-template-columns: 1fr; gap: 24px; } }

/* калькулятор: рекомендуемый тариф */
.rec { border-top: 1px solid #334155; padding-top: 14px; margin-bottom: 18px; }
.rec b { display: block; font-size: 20px; margin: 2px 0 4px; }
.rec p { margin: 0; color: #cbd5e1; font-size: 15px; }
.rec-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.ghost.on-dark { color: #fff; box-shadow: inset 0 0 0 2px #64748b; }

/* тарифы: четыре колонки и путь после заявки */
.plans4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plans4 .plan { padding: 24px 20px; }
.plans4 .price { font-size: clamp(24px, 2.2vw, 30px); }
.plans4 .check li { font-size: 15px; }
@media (max-width: 1100px) { .plans4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; } }
@media (max-width: 640px) { .plans4 { grid-template-columns: 1fr; } }
.one-off { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.one-off > div { flex: 1 1 420px; }
.limits { margin-top: 12px; border-bottom: 0; }
.limits p { font-size: 15px; }
.path-title { margin-top: 36px; }
.path { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.path li { counter-increment: step; background: var(--bg-soft); border-radius: var(--radius); padding: 18px 20px 18px 60px; position: relative; font-size: 16px; }
.path li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
@media (max-width: 900px) { .path { grid-template-columns: 1fr; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* чат поддержки */
.support { position: fixed; right: 20px; bottom: 20px; z-index: 45; font-size: 15px; }
.support-fab { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(15,23,42,.25); }
.support.open .support-fab { display: none; }
.support-panel { width: 360px; max-height: min(560px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 60px rgba(15,23,42,.22); overflow: hidden; }
.support-panel[hidden] { display: none; }
.support-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--ink); color: #fff; }
.support-x { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.support-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.support-body[hidden] { display: none; }
.support-msg { margin: 0; background: var(--bg-soft); border-radius: 12px 12px 12px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.5; max-width: 92%; }
.support-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-radius: 12px 12px 4px 12px; }
.support-msg.ok { background: #dcfce7; }
.support-msg .btn { margin-top: 8px; }
.support-faq { display: flex; flex-wrap: wrap; gap: 6px; }
.support-q { font: inherit; font-size: 13px; cursor: pointer; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--accent); background: #fff; color: var(--accent); text-align: left; }
.support-q:hover { background: var(--accent-soft); }
.support-foot { border-top: 1px solid var(--line); padding: 10px 16px; }
.support-foot[hidden] { display: none; }
.support-ask { width: 100%; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 10px; border-radius: 10px; border: 1px dashed var(--accent); background: #fff; color: var(--accent); }
.support-form { padding: 6px 16px 14px; overflow-y: auto; }
.support-form label { font-size: 13px; margin: 10px 0 4px; }
.support-form input, .support-form textarea { font-size: 16px; padding: 9px 10px; }
.support-form .consent { font-size: 13px; }
.support-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.support-actions { display: flex; gap: 8px; margin-top: 12px; }
.support-actions .btn { width: auto; flex: 1; margin-top: 0; }
@media (max-width: 760px) {
  .support { right: 12px; bottom: 12px; }
  .support:not(.open) { bottom: 84px; }
  .support-fab span { display: none; }
  .support-fab { padding: 14px; }
  .support.open { left: 0; right: 0; bottom: 0; }
  .support-panel { width: 100%; max-height: 85vh; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: reduce) { .support-fab { transition: none; } }

/* «Войти», памятка, публикации */
.nav a.login { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .nav a.login { display: inline; } }
.memo { counter-reset: memo; list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.memo li { counter-increment: memo; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 60px; position: relative; }
.memo li::before { content: counter(memo); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 800; display: grid; place-items: center; }
.memo b { display: block; margin-bottom: 2px; }
@media (max-width: 760px) { .memo { grid-template-columns: 1fr; } }
.pubs-title { margin: 32px 0 12px; }
.pubs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.pub { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.pub:hover { border-color: var(--accent); }
.pub:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pub-src { font-size: 14px; color: var(--muted); font-weight: 600; }
.pub-more { color: var(--accent); font-size: 15px; }
@media (max-width: 760px) { .nav { gap: 14px; } .top .btn.small { padding: 8px 12px; } }
@media (max-width: 420px) { .logo { white-space: nowrap; font-size: 15px; } .nav { gap: 10px; } .nav a.login { font-size: 14px; } .top .btn.small { font-size: 14px; padding: 8px 10px; } }
/* очень узкие телефоны (320–359 px): в шапке логотип и «Войти», попробовать — большой кнопкой на первом экране и липкой внизу */
@media (max-width: 359px) { .top .btn.small { display: none; } .wrap { padding: 0 16px; } }
