/*
 * Лендинг «ЧБТ Studio» (studio.chbt.io): layouts/studio.ejs + pages/devstudio/landing.ejs. Префикс .sl-.
 * Самостоятельный файл (marketing.css не грузится): свои токены светлой и тёмной темы, кнопки, меню, FAQ.
 * Направление «чертёж продукта»: холодный белый и #f4f6fb, бренд #2d5bff, ink #0f172a, моно-метки JetBrains Mono.
 * Макеты кабинета внутри страницы — в настоящей тёплой палитре кабинета (#f6f5f2 / #e8e5de) в обеих темах.
 * Адаптив: 1240 / 980 (бургер) / 768 / 620 / 380.
 */
.sl {
  --sl-brand: #2d5bff;
  --sl-brand-hover: #1f47e0;
  --sl-brand-text: #1f47e0;   /* бренд-текст на --sl-tint (5.96:1) */
  --sl-link: #2d5bff;         /* ссылки на белом и mist (5.18 / 4.79:1) */
  --sl-ink: #0f172a;
  --sl-slate: #475569;
  --sl-bg: #ffffff;
  --sl-mist: #f4f6fb;
  --sl-surface: #ffffff;
  --sl-line: #e3e8f2;
  --sl-line-strong: #d5dbe7;
  --sl-dot: #d9e0ee;
  --sl-tint: #e8eeff;
  --sl-ok: #16a34a;
  --sl-warn: #d97706;
  --sl-shadow: 0 24px 48px -24px rgba(15, 23, 42, .28);
  /* Палитра кабинета — для макетов «так это выглядит в кабинете» */
  --cab-bg: #f6f5f2;
  --cab-line: #e8e5de;
  --cab-ink: #1c1f2b;
  --cab-slate: #5b6170;
  --sl-font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --sl-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sl-wrap: 1160px;
  --sl-gutter: 28px;
  --sl-nav-h: 64px;
}
/* Тёмная секция «Платформа» — всегда тёмная (скоуп .sl-dark) */
.sl .sl-dark {
  --sl-bg: #0f172a;
  --sl-surface: #16203a;
  --sl-line: #26324f;
  --sl-ink: #e6eaf4;
  --sl-slate: #9aa6bf;
  --sl-link: #7d9bff;
  --sl-brand-text: #7d9bff;
  --sl-tint: #1c2a52;
}
@media (prefers-color-scheme: dark) {
  .sl {
    --sl-brand-text: #a9bcff;
    --sl-link: #7d9bff;
    --sl-ink: #e6eaf4;
    --sl-slate: #9aa6bf;
    --sl-bg: #0f172a;
    --sl-mist: #131d35;
    --sl-surface: #16203a;
    --sl-line: #26324f;
    --sl-line-strong: #33415f;
    --sl-dot: #26324f;
    --sl-tint: #1c2a52;
    --sl-shadow: 0 24px 48px -24px rgba(0, 0, 0, .6);
  }
  .sl .sl-dark { --sl-bg: #0a1020; --sl-surface: #131c33; }
}

/* ───────── База ───────── */
.sl *, .sl *::before, .sl *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.sl {
  margin: 0; font-family: var(--sl-font); font-size: 16px; line-height: 1.6; color: var(--sl-ink);
  background: var(--sl-bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.sl [hidden] { display: none !important; }
.sl a { color: var(--sl-link); text-decoration: none; }
.sl a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sl a.sl-btn:hover { text-decoration: none; }
.sl h1, .sl h2, .sl h3 { margin: 0; color: var(--sl-ink); }
.sl p { margin: 0; }
.sl ul, .sl ol { margin: 0; padding: 0; list-style: none; }
.sl :focus-visible { outline: 3px solid var(--sl-brand); outline-offset: 2px; border-radius: 6px; }
.sl .sl-dark :focus-visible { outline-color: #7d9bff; }
.sl .m-svg { display: block; width: 100%; height: 100%; }
.sl main section[id] { scroll-margin-top: calc(var(--sl-nav-h) + 8px); }
.sl-skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--sl-ink); color: var(--sl-bg) !important;
  padding: 10px 14px; border-radius: 10px; font-weight: 600;
}
.sl-skip:focus { top: 12px; }

.sl-wrap { max-width: var(--sl-wrap); margin: 0 auto; padding: 0 var(--sl-gutter); }
.sl-mono, .sl-eyebrow {
  font-family: var(--sl-mono); font-weight: 500; font-size: 12px; line-height: 1.3; letter-spacing: .02em; color: var(--sl-slate);
}
.sl-accent { color: var(--sl-brand); }
@media (prefers-color-scheme: dark) { .sl-accent { color: #7d9bff; } }

/* ───────── Кнопки ───────── */
.sl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font: 600 14px/1.2 var(--sl-font);
  text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.sl-btn--lg { min-height: 52px; padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.sl .sl-btn--primary { background: var(--sl-brand); color: #fff; }
.sl .sl-btn--primary:hover { background: var(--sl-brand-hover); color: #fff; }
.sl .sl-btn--ghost { background: var(--sl-surface); color: var(--sl-ink); border-color: var(--sl-line-strong); }
.sl .sl-btn--ghost:hover { border-color: var(--sl-brand); color: var(--sl-ink); }
.sl .sl-btn--invert { background: #fff; color: #2d5bff; }
.sl .sl-btn--invert:hover { background: #e8eeff; color: #1f47e0; }
.sl .sl-btn--outline-invert { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.sl .sl-btn--outline-invert:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.sl-link { font-weight: 600; }

/* ───────── Шапка ───────── */
.sl-nav {
  position: sticky; top: 0; z-index: 40; background: var(--sl-bg); border-bottom: 1px solid var(--sl-line);
}
.sl-nav-in { display: flex; align-items: center; gap: 24px; height: var(--sl-nav-h); }
.sl .sl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--sl-ink); text-decoration: none; flex-shrink: 0; }
.sl-brand-mark { display: block; border-radius: 9px; }
.sl-brand-name { font-weight: 800; font-size: 20px; letter-spacing: -0.04em; line-height: 1; }
.sl-brand-tag {
  font-family: var(--sl-mono); font-weight: 500; font-size: 12px; line-height: 1; color: var(--sl-slate);
  border: 1px solid var(--sl-line-strong); border-radius: 6px; padding: 4px 6px;
}
.sl-links { flex: 1; display: flex; justify-content: center; gap: 4px; }
.sl .sl-links a { color: var(--sl-slate); font-size: 14px; font-weight: 500; padding: 8px 10px; border-radius: 8px; }
.sl .sl-links a:hover { color: var(--sl-ink); background: var(--sl-mist); text-decoration: none; }
.sl-nav-actions { display: flex; align-items: center; gap: 16px; }
.sl .sl-login { color: var(--sl-ink); font-size: 14px; font-weight: 500; }

.sl-menu { display: none; }
.sl-menu > summary { list-style: none; }
.sl-menu > summary::-webkit-details-marker { display: none; }
.sl-burger {
  width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px solid var(--sl-line-strong); border-radius: 10px; background: var(--sl-surface); cursor: pointer;
}
.sl-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--sl-ink); transition: transform .2s, opacity .2s; }
.sl-menu[open] .sl-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sl-menu[open] .sl-burger span:nth-child(2) { opacity: 0; }
.sl-menu[open] .sl-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.sl-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; background: var(--sl-bg); border-bottom: 1px solid var(--sl-line);
  box-shadow: 0 24px 32px -24px rgba(15, 23, 42, .3); padding: 8px var(--sl-gutter) 20px; max-height: calc(100vh - var(--sl-nav-h)); overflow-y: auto;
}
.sl-menu-panel nav { display: flex; flex-direction: column; }
.sl .sl-menu-panel nav a { color: var(--sl-ink); font-weight: 600; font-size: 16px; padding: 12px 4px; border-bottom: 1px solid var(--sl-line); }
.sl-menu-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.sl-menu-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 14px !important; font-size: 14px; }
.sl-menu-foot a { padding: 6px 0; }

/* ───────── Hero ───────── */
.sl-hero { padding: 72px 0 88px; }
.sl-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.sl-h1 {
  font-size: clamp(32px, 3.4vw + 14px, 58px); line-height: 1.04; letter-spacing: -0.045em; font-weight: 800; margin: 16px 0 20px !important;
}
.sl-br-lg { display: none; }
.sl-nw { white-space: nowrap; }
@media (min-width: 1024px) { .sl-br-lg { display: inline; } }
.sl-lead { font-size: clamp(16px, .4vw + 15px, 19px); line-height: 1.55; color: var(--sl-slate); max-width: 34em; }
.sl-priceline {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 28px 0 !important; padding: 12px 18px;
  border: 1px solid var(--sl-line); border-radius: 12px; font-size: 15px; color: var(--sl-slate); background: var(--sl-surface);
}
.sl-priceline b { color: var(--sl-ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sl-priceline-sep { width: 1px; height: 20px; background: var(--sl-line-strong); }
.sl-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sl-hero-note { margin-top: 14px !important; font-size: 14px; color: var(--sl-slate); max-width: 36em; }
.sl-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px !important; font-size: 14px; color: var(--sl-ink); }
.sl-facts li { display: inline-flex; align-items: center; gap: 8px; }
.sl-facts-ico { width: 18px; height: 18px; flex-shrink: 0; color: var(--sl-ok); }
.sl-facts-ico .m-svg { stroke-width: 2.4; }

/* Иллюстрация «сборка»: чертёжный стол и три схемы */
.sl-desk {
  position: relative; height: 548px; border-radius: 24px; background-color: var(--sl-mist);
  background-image: radial-gradient(var(--sl-dot) 1px, transparent 1.2px); background-size: 20px 20px; background-position: 10px 10px;
}
.sl-scr-phone {
  position: absolute; left: 6%; top: 64px; z-index: 2; width: 214px; height: 420px; padding: 10px; border-radius: 32px;
  background: #0f172a; box-shadow: var(--sl-shadow); border: 1px solid #1e293b;
}
.sl-scr-phone-bar { width: 64px; height: 5px; border-radius: 5px; background: #334155; margin: 4px auto 8px; }
.sl-scr-phone-screen { height: calc(100% - 17px); border-radius: 24px; background: #f1f5f9; padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sl-scr-phone-head { font-size: 11px; font-weight: 600; color: #475569; text-align: center; padding: 2px 0 6px; border-bottom: 1px solid #e2e8f0; }
.sl-bubble { max-width: 88%; padding: 8px 10px; border-radius: 14px; font-size: 12px; line-height: 1.35; }
.sl-bubble--bot { align-self: flex-start; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
.sl-bubble--user { align-self: flex-end; background: #2d5bff; color: #fff; border-bottom-right-radius: 4px; }
.sl-bubble-btns { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.sl-bubble-btns--row { flex-direction: row; }
.sl-bubble-btns i { display: block; flex: 1; font-style: normal; font-size: 11px; font-weight: 600; text-align: center; padding: 5px 8px; border-radius: 8px; background: #eef2ff; color: #1f47e0; }

.sl-scr-app {
  position: absolute; right: 6%; top: 40px; z-index: 1; width: 196px; height: 392px; padding: 8px; border-radius: 28px;
  background: #0f172a; box-shadow: var(--sl-shadow); display: flex; flex-direction: column; border: 1px solid #1e293b;
}
.sl-scr-app > * { background: #fff; }
.sl-scr-app-head { border-radius: 20px 20px 0 0; padding: 14px 12px 8px; font-size: 13px; font-weight: 700; color: #0f172a; }
.sl-scr-app-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 4px 10px 10px; align-content: start; }
.sl-tile { display: flex; flex-direction: column; gap: 5px; }
.sl-tile i { display: block; height: 70px; border-radius: 10px; background: #e2e8f0; }
.sl-tile:nth-child(2) i { background: #dbe4ff; }
.sl-tile:nth-child(3) i { background: #d9f3f1; }
.sl-tile span { font-size: 9.5px; font-weight: 600; color: #334155; line-height: 1.2; }
.sl-scr-app-foot { border-radius: 0 0 20px 20px; padding: 6px 10px 10px; }
.sl-scr-app-foot span { display: block; padding: 9px; border-radius: 10px; background: #2d5bff; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }

.sl-scr-cab {
  position: absolute; left: 50%; bottom: 40px; z-index: 3; width: 300px; transform: translateX(-38%);
  background: #fff; border: 1px solid var(--cab-line); border-radius: 14px; padding: 14px; box-shadow: var(--sl-shadow); color: var(--cab-ink);
}
.sl-scr-cab-top, .sl-cab-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.sl-scr-cab-top b, .sl-cab-top b { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-pill { flex-shrink: 0; font-size: 11.5px; font-weight: 600; line-height: 1; padding: 5px 9px; border-radius: 999px; background: #e8eeff; color: #1f47e0; }
.sl-segs { display: flex; gap: 4px; margin: 12px 0 8px; }
.sl-segs i { flex: 1; height: 6px; border-radius: 3px; background: var(--cab-line); transition: background-color .2s; }
.sl-segs i.on { background: #2d5bff; }
.sl-scr-cab-foot, .sl-cab-stage { font-size: 12px; color: var(--cab-slate); }

.sl-callout {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sl-mono); font-weight: 500; font-size: 11px; line-height: 1; color: var(--sl-slate);
}
.sl-callout::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sl-slate); }
.sl-callout::after { content: ""; position: absolute; height: 1px; background: var(--sl-slate); opacity: .6; }
.sl-callout--phone { left: 7%; top: 30px; }
.sl-callout--app { right: 7%; top: 16px; }
.sl-callout--cab { left: calc(50% - 114px + 12px); bottom: 14px; }

/* ───────── Секции ───────── */
.sl-section { padding-block: clamp(56px, 7vw, 112px); }
.sl-section--mist { background: var(--sl-mist); }
.sl-dark { background: var(--sl-bg); color: var(--sl-ink); }
.sl-head { margin-bottom: 40px; }
.sl-head h2 { font-size: clamp(26px, 2.2vw + 18px, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; margin-top: 12px; max-width: 22em; }
.sl-sub { margin-top: 12px !important; font-size: 17px; color: var(--sl-slate); max-width: 40em; }
.sl-more { margin-top: 28px !important; color: var(--sl-slate); font-size: 15px; }
.sl-more a { font-weight: 600; white-space: nowrap; }
.sl-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; }
.sl-cta-row--center { justify-content: center; }

/* ───────── 01 Услуги ───────── */
.sl-svc-group + .sl-svc-group { margin-top: 40px; }
.sl-svc-label { display: flex; align-items: center; gap: 12px; margin-bottom: 14px !important; font-family: var(--sl-mono); font-weight: 500; font-size: 12px; color: var(--sl-slate); }
.sl-svc-label::after { content: ""; flex: 1; height: 1px; background: var(--sl-line); }
.sl-svc-grid { display: grid; gap: 16px; }
.sl-svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sl-svc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sl-svc-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sl-svc {
  display: flex; gap: 16px; background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 16px; padding: 20px;
}
.sl-svc-main { flex: 1; min-width: 0; }
.sl-svc h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; margin: 14px 0 6px; }
.sl-svc p { font-size: 14px; line-height: 1.5; color: var(--sl-slate); }
.sl-svc-ico { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #fff; padding: 9px; }
.sl-ico--tg { background: #229ed9; }
.sl-ico--vk { background: #0077ff; }
.sl-ico--mx { background: #6d5dfc; padding: 10px; }
.sl-ico--web { background: #0ea5a3; }
.sl-ico--ai { background: #ec4899; }
.sl-ico--api { background: #6366f1; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; }
.sl-chips li { font-size: 12px; font-weight: 600; line-height: 1.2; padding: 4px 9px; border-radius: 999px; background: var(--sl-tint); color: var(--sl-brand-text); }
.sl-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px !important; }
.sl-chain span { font-family: var(--sl-mono); font-weight: 500; font-size: 11px; color: var(--sl-ink); padding: 4px 7px; border: 1px solid var(--sl-line-strong); border-radius: 6px; background: var(--sl-bg); }
.sl-chain i { width: 14px; height: 1px; background: var(--sl-slate); }

/* Схема экрана мини-приложения 64×112 */
.sl-svc-scheme {
  flex-shrink: 0; align-self: flex-start; width: 64px; height: 112px; border: 1.5px solid var(--sl-ink); border-radius: 12px;
  padding: 10px 6px 6px; display: grid; gap: 4px; background: var(--sl-bg); position: relative;
}
.sl-svc-scheme::before { content: ""; position: absolute; top: 4px; left: 50%; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--sl-line-strong); }
.sl-svc-scheme b, .sl-svc-scheme u, .sl-svc-scheme em, .sl-svc-scheme s { display: block; text-decoration: none; border-radius: 3px; }
.sl-svc-scheme--tma { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr 12px; }
.sl-svc-scheme--tma b { background: var(--sl-line); }
.sl-svc-scheme--tma b:nth-child(2) { background: var(--sl-tint); }
.sl-svc-scheme--tma em, .sl-svc-scheme--max em { grid-column: 1 / -1; background: var(--sl-brand); border-radius: 4px; }
.sl-svc-scheme--vk { grid-template-rows: repeat(4, 12px) 1fr; }
.sl-svc-scheme--vk u { background: var(--sl-line); }
.sl-svc-scheme--vk u:nth-child(1) { background: var(--sl-tint); }
.sl-svc-scheme--vk s { align-self: end; height: 10px; border-top: 1.5px solid var(--sl-line-strong); border-radius: 0; }
.sl-svc-scheme--max { grid-template-rows: 10px 14px 14px 1fr; }
.sl-svc-scheme--max u { background: var(--sl-line); }
.sl-svc-scheme--max u.f { background: transparent; border: 1px solid var(--sl-line-strong); }
.sl-svc-scheme--max em { align-self: end; height: 12px; }

/* ───────── 02 Задачи ───────── */
.sl-tasks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sl-task-col { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 16px; padding: 20px 24px 8px; }
.sl-task-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 6px !important; }
.sl-task-ico { width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--sl-tint); color: var(--sl-brand-text); flex-shrink: 0; }
.sl-task-col li { padding: 14px 0; border-top: 1px solid var(--sl-line); }
.sl-task-col h3 { font-size: 15px; line-height: 1.35; font-weight: 600; margin-bottom: 4px; }
.sl-task-col p { font-size: 14px; line-height: 1.5; color: var(--sl-slate); }

/* ───────── 03 Как мы работаем ───────── */
.sl-process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sl-process-aside { position: sticky; top: calc(var(--sl-nav-h) + 32px); }
.sl-cab { background: var(--cab-bg); border: 1px solid var(--cab-line); border-radius: 20px; padding: 16px; color: var(--cab-ink); box-shadow: var(--sl-shadow); }
.sl-cab-caption { font-family: var(--sl-mono); font-weight: 500; font-size: 11px; color: var(--cab-slate); margin: 0 0 10px 4px !important; }
.sl-cab-caption::before { content: "↘ "; }
.sl-cab-card { background: #fff; border: 1px solid var(--cab-line); border-radius: 12px; padding: 14px; }
.sl-cab-card + .sl-cab-card { margin-top: 10px; }
.sl-cab-mat-h { font-size: 12px; font-weight: 600; color: var(--cab-slate); margin-bottom: 4px !important; }
.sl-cab-mat li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--cab-line); font-size: 13px; }
.sl-cab-mat li:first-child { border-top: 0; }
.sl-cab-mat-ico { width: 24px; height: 24px; padding: 4px; border-radius: 7px; background: #e8eeff; color: #1f47e0; flex-shrink: 0; }

.sl-steps { counter-reset: none; }
.sl-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 32px; }
.sl-step::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--sl-line); }
.sl-step:last-child { padding-bottom: 0; }
.sl-step:last-child::before { display: none; }
.sl-step-n {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--sl-line-strong); background: var(--sl-bg); font-family: var(--sl-mono); font-weight: 500; font-size: 13px; color: var(--sl-slate);
  transition: background-color .2s, color .2s, border-color .2s;
}
.sl-step.is-done .sl-step-n { border-color: var(--sl-brand); color: var(--sl-link); }
.sl-step.is-current .sl-step-n { background: var(--sl-brand); border-color: var(--sl-brand); color: #fff; }
.sl-step-body { padding-top: 8px; }
.sl-step h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
.sl-step-body > p:not(.sl-hand) { font-size: 15px; color: var(--sl-slate); margin-top: 4px !important; }
.sl-hand {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 12px !important; padding: 10px 14px;
  border-radius: 12px; background: var(--sl-tint); font-size: 14px; line-height: 1.45; color: var(--sl-ink);
}
.sl-hand-ico { width: 20px; height: 20px; color: var(--sl-brand-text); flex-shrink: 0; }
.sl-hand-txt { flex: 1 1 220px; min-width: 0; }
.sl-hand-txt b { font-weight: 700; }
.sl-hand-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-family: var(--sl-mono); font-weight: 500; font-size: 11px; color: var(--sl-brand-text); white-space: nowrap; }
.sl-hand-tag .m-svg { width: 14px; height: 14px; }

/* ───────── 04 Стоимость ───────── */
.sl-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sl-price { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 20px; padding: 32px; }
.sl-price-h { font-size: 18px; font-weight: 700; margin-top: 14px !important; }
.sl-price-num {
  font-size: clamp(40px, 3vw + 28px, 60px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; font-variant-numeric: tabular-nums;
  margin: 10px 0 16px !important; white-space: nowrap;
}
.sl-price-num small { font-size: .45em; font-weight: 700; letter-spacing: 0; margin-left: .25em; }
.sl-price > p:not(.sl-mono):not(.sl-price-num) { font-size: 15px; color: var(--sl-slate); }
.sl-price .sl-price-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--sl-line); color: var(--sl-ink) !important; }
.sl-price-note-ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--sl-ok); margin-top: 1px; }
.sl-fix {
  display: flex; align-items: flex-start; gap: 12px; margin: 16px 0 48px !important; padding: 18px 22px; border-radius: 16px;
  background: var(--sl-surface); border: 1px solid var(--sl-brand); font-size: 16px; font-weight: 500;
}
.sl-fix-ico { width: 24px; height: 24px; color: var(--sl-brand); flex-shrink: 0; }
.sl-factors h3, .sl-diy h3 { font-size: 20px; line-height: 1.3; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.sl-factors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sl-factors-grid > div { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 16px; padding: 18px 22px 8px; }
.sl-factor-list { margin-top: 8px !important; }
.sl-factor-list li { position: relative; padding: 9px 0 9px 20px; font-size: 15px; border-top: 1px solid var(--sl-line); }
.sl-factor-list li::before { content: ""; position: absolute; left: 0; top: 17px; width: 8px; height: 8px; border-radius: 50%; }
.sl-factor-list--low li::before { background: var(--sl-ok); }
.sl-factor-list--high li::before { background: var(--sl-warn); }
.sl-diy { margin-top: 48px; padding: 28px 32px; border-radius: 20px; border: 1.5px dashed var(--sl-line-strong); }
.sl-diy p { color: var(--sl-slate); max-width: 46em; }
.sl-diy p + p { margin-top: 10px !important; }
.sl-diy-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px !important; font-weight: 600; }

/* ───────── 05 Платформа ───────── */
.sl-plat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sl-plat-row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--sl-line); }
.sl-plat-row:first-child { border-top: 0; padding-top: 0; }
.sl-plat-ico { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #fff; flex-shrink: 0; }
.sl-plat-row h3 { font-size: 16px; font-weight: 700; line-height: 1.35; }
.sl-plat-row p { font-size: 14px; line-height: 1.5; color: var(--sl-slate); margin-top: 2px !important; }
.sl-plat-foot { margin-top: 18px !important; font-size: 14px; color: var(--sl-slate); }
.sl-plat-proof { margin-top: 10px !important; font-size: 14px; color: var(--sl-ink); }
.sl-plat-proof a, .sl-plat-more { font-weight: 600; }
.sl-plat-more { display: inline-block; margin-top: 14px; }

.sl-plat-art { position: sticky; top: calc(var(--sl-nav-h) + 32px); }
.sl-plat-app {
  display: grid; grid-template-columns: 60px minmax(0, 1fr); min-height: 400px; border-radius: 20px; overflow: hidden;
  background: var(--cab-bg); border: 1px solid #2b3858; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.sl-plat-rail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; background: #fff; border-right: 1px solid var(--cab-line); }
.sl-plat-rail i { display: block; width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: #fff; transition: opacity .15s, box-shadow .15s; }
.sl-plat:has(.sl-plat-row:hover) .sl-plat-rail i { opacity: .3; }
.sl-plat:has(.sl-plat-row[data-k="flow"]:hover) .sl-plat-rail i[data-k="flow"],
.sl-plat:has(.sl-plat-row[data-k="inbox"]:hover) .sl-plat-rail i[data-k="inbox"],
.sl-plat:has(.sl-plat-row[data-k="chart"]:hover) .sl-plat-rail i[data-k="chart"],
.sl-plat:has(.sl-plat-row[data-k="ai"]:hover) .sl-plat-rail i[data-k="ai"],
.sl-plat:has(.sl-plat-row[data-k="ru"]:hover) .sl-plat-rail i[data-k="ru"],
.sl-plat:has(.sl-plat-row[data-k="cab"]:hover) .sl-plat-rail i[data-k="cab"] { opacity: 1; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #2d5bff; }
.sl-plat-canvas {
  padding: 18px 22px 24px; color: var(--cab-ink);
  background-image: radial-gradient(#dcd8cf 1px, transparent 1.2px); background-size: 18px 18px;
}
.sl-plat-canvas-h { font-size: 13px; font-weight: 700; margin-bottom: 22px !important; }
.sl-flow { display: flex; flex-direction: column; gap: 30px; }
.sl-node {
  position: relative; align-self: flex-start; background: #fff; border: 1px solid var(--cab-line); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; font-weight: 600; box-shadow: 0 6px 16px -10px rgba(28, 31, 43, .35);
}
.sl-node:not(:last-child)::after { content: ""; position: absolute; left: 28px; top: 100%; width: 2px; height: 31px; background: #b9c6ef; }
.sl-node--start { border-left: 4px solid #22c55e; }
.sl-node--msg { margin-left: 0; width: min(100%, 280px); display: flex; flex-direction: column; gap: 6px; border-left: 4px solid #6366f1; }
.sl-node--msg span { font-weight: 400; color: var(--cab-slate); }
.sl-node--msg em { font-style: normal; font-size: 12px; text-align: center; padding: 6px; border-radius: 8px; background: #eef2ff; color: #1f47e0; }
.sl-node--op { border-left: 4px solid #f59e0b; }

/* ───────── 06 Кейсы ───────── */
.sl-empty {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 36px; align-items: center;
  padding: 40px 32px; border: 1.5px dashed #cdd5e4; border-radius: 20px;
}
.sl-empty-art svg { display: block; width: 160px; height: 120px; }
.sl-empty-txt h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.sl-empty-txt p { margin: 8px 0 18px !important; color: var(--sl-slate); max-width: 40em; }
.sl-cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sl-case { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 16px; padding: 20px; }
.sl-case h3 { font-size: 18px; font-weight: 700; margin: 12px 0 10px; }
.sl-case-kv dt { font-size: 12px; font-weight: 600; color: var(--sl-slate); margin-top: 8px; }
.sl-case-kv dd { margin: 2px 0 0; font-size: 14px; }
@media (prefers-color-scheme: dark) { .sl-empty { border-color: var(--sl-line-strong); } }

/* ───────── 07 FAQ ───────── */
.sl-faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.sl-faq-head { position: sticky; top: calc(var(--sl-nav-h) + 32px); margin-bottom: 0; }
.sl-faq-item { background: var(--sl-surface); border: 1px solid var(--sl-line); border-radius: 14px; }
.sl-faq-item + .sl-faq-item { margin-top: 10px; }
.sl-faq-item > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; border-radius: 14px; }
.sl-faq-item > summary::-webkit-details-marker { display: none; }
.sl-faq-item h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
.sl-faq-chev { width: 20px; height: 20px; flex-shrink: 0; color: var(--sl-slate); transition: transform .2s; }
.sl-faq-item[open] .sl-faq-chev { transform: rotate(180deg); }
.sl-faq-item > p { padding: 0 20px 18px; color: var(--sl-slate); font-size: 15px; max-width: 44em; }

/* ───────── Финал ───────── */
.sl-final-wrap { padding-bottom: clamp(48px, 5vw, 80px); outline: none; }
.sl-final {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center;
  background: #2d5bff; color: #fff; border-radius: 24px; padding: 56px 48px;
}
.sl .sl-final h2 { color: #fff; font-size: clamp(26px, 2.2vw + 18px, 40px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 800; }
.sl-final-copy > p { margin-top: 14px !important; font-size: 17px; color: #fff; max-width: 32em; }
.sl-final-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.sl .sl-final :focus-visible { outline-color: #fff; }
.sl-final-mail { margin-top: 18px !important; font-size: 15px; }
.sl .sl-final-mail a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.sl-chat { background: #fff; color: #0f172a; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(10, 20, 60, .55); max-width: 340px; margin-left: auto; }
.sl-chat-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px; font-size: 14px; font-weight: 700; border-bottom: 1px solid #e3e8f2; }
.sl-chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; }
.sl-chat-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.sl-chat-hi { font-size: 13px; color: #475569; margin-bottom: 4px !important; }
.sl-field { display: block; padding: 10px 12px; border: 1px solid #e3e8f2; border-radius: 10px; font-size: 13px; color: #64748b; }
.sl-field--tall { height: 64px; }
.sl-chat-btn { display: block; margin-top: 4px; padding: 11px; border-radius: 10px; background: #2d5bff; color: #fff; text-align: center; font-size: 14px; font-weight: 600; }

/* ───────── Подвал ───────── */
.sl-footer { border-top: 1px solid var(--sl-line); padding: 40px 0; font-size: 14px; color: var(--sl-slate); }
.sl-footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: start; }
.sl-footer-brand p { margin-top: 10px !important; max-width: 30em; }
.sl-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
.sl .sl-footer-links a { color: var(--sl-ink); padding: 4px 0; }
.sl-footer-copy { grid-column: 1 / -1; font-size: 13px; }

/* Баннер cookie (только при включённой Метрике) */
.sl-cookie {
  position: fixed; left: 16px; bottom: 16px; z-index: 60; max-width: 420px; padding: 16px; border-radius: 14px;
  background: var(--sl-surface); color: var(--sl-ink); border: 1px solid var(--sl-line); box-shadow: 0 20px 40px -16px rgba(15, 23, 42, .35); font-size: 14px;
}
.sl-cookie-actions { display: flex; gap: 8px; margin-top: 12px; }

/* ───────── Адаптив ───────── */
@media (max-width: 1240px) {
  .sl-svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .sl-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; }
  .sl-scr-phone { left: 2%; }
  .sl-scr-app { right: 2%; }
}
@media (max-width: 980px) {
  .sl-links, .sl-login { display: none; }
  .sl-menu { display: block; }
  .sl-nav-in { gap: 12px; justify-content: space-between; }
  .sl-nav-actions { margin-left: auto; }
  .sl-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .sl-hero-art { max-width: 560px; width: 100%; margin: 0 auto; }
  .sl-svc-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .sl-svc--app { max-width: 720px; }
  .sl-tasks { grid-template-columns: minmax(0, 1fr); }
  .sl-process { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .sl-process-aside { position: static; max-width: 520px; }
  .sl-plat { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sl-plat-art { position: static; max-width: 560px; }
  .sl-faq { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sl-faq-head { position: static; margin-bottom: 28px; }
  .sl-final { grid-template-columns: minmax(0, 1fr); }
  .sl-chat { margin-left: 0; }
  .sl-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .sl-hero { padding: 40px 0 56px; }
  .sl-head { margin-bottom: 28px; }
  .sl-priceline { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .sl-priceline-sep { display: none; }
  .sl-hero-cta { flex-direction: column; }
  .sl-hero-cta .sl-btn { width: 100%; }
  /* Иллюстрация упрощена: край телефона с диалогом и карточка заказа на всю ширину */
  .sl-desk { height: auto; padding: 20px 20px 22px; }
  .sl-scr-app, .sl-callout { display: none; }
  .sl-scr-phone { position: relative; left: auto; top: auto; width: min(100%, 300px); height: 172px; margin: 0 auto; padding-bottom: 0; border-radius: 28px 28px 0 0; border-bottom: 0; overflow: hidden; box-shadow: none; }
  .sl-scr-phone-screen { height: auto; border-radius: 20px 20px 0 0; }
  .sl-scr-cab { position: relative; left: auto; bottom: auto; transform: none; width: 100%; margin-top: -16px; }
  .sl-svc-grid--2 { grid-template-columns: minmax(0, 1fr); }
  .sl-prices, .sl-factors-grid { grid-template-columns: minmax(0, 1fr); }
  .sl-price { padding: 24px; }
  .sl-step { grid-template-columns: 32px minmax(0, 1fr); gap: 14px; }
  .sl-step::before { left: 15px; top: 38px; }
  .sl-step-n { width: 32px; height: 32px; font-size: 12px; }
  .sl-step-body { padding-top: 3px; }
  .sl-hand-tag { margin-left: 0; flex-basis: 100%; }
  .sl-cab .sl-cab-mat li:nth-child(n+3) { display: none; }
  .sl-plat-app { min-height: 0; }
  .sl-node--start, .sl-node--op { display: none; }
  .sl-node--msg::after { display: none; }
  .sl-plat-canvas-h { margin-bottom: 14px !important; }
  .sl-cta-row .sl-btn { width: 100%; }
  .sl-footer { padding-bottom: 104px; }
  .sl-footer-in { grid-template-columns: minmax(0, 1fr); }
  .sl-footer-links { justify-content: flex-start; flex-direction: column; gap: 2px; }
}
@media (max-width: 620px) {
  .sl { --sl-gutter: 20px; --sl-nav-h: 56px; }
  .sl-nav-cta { display: none; }
  .sl-svc-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .sl-svc { padding: 16px; gap: 14px; flex-direction: row; }
  .sl-svc-main { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; }
  .sl-svc-ico { width: 36px; height: 36px; padding: 8px; grid-row: span 2; }
  .sl-svc h3 { margin: 0 0 4px; font-size: 17px; }
  .sl-svc p { grid-column: 2; }
  .sl-chips, .sl-svc-scheme, .sl-chain { display: none; }
  .sl-task-col { padding: 16px 18px 4px; }
  .sl-price-num small { font-size: .42em; }
  .sl-fix { padding: 16px; font-size: 15px; }
  .sl-diy { padding: 22px 20px; }
  .sl-empty { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 20px; }
  .sl-empty-art svg { width: 120px; height: 90px; }
  .sl-faq-item > summary { padding: 16px; }
  .sl-faq-item > p { padding: 0 16px 16px; }
  .sl-final { padding: 32px 20px; border-radius: 20px; }
  .sl-final-art { display: none; }
  .sl-final-cta { flex-direction: column; }
  .sl-final-cta .sl-btn { width: 100%; }
  .sl-cookie { left: 12px; right: 12px; max-width: none; }
}
@media (max-width: 380px) {
  .sl { --sl-gutter: 16px; }
  .sl-priceline { padding: 10px 14px; }
  .sl-price { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl *, .sl *::before, .sl *::after { transition: none !important; animation: none !important; }
}
