@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0A0A0A;
  --card: #131313;
  --card-2: #0E0E0E;
  --line: #262626;
  --line-2: #333;
  --text: #F5F5F5;
  --mut: #A8A8A8;
  --mut-2: #808080;
  --ac: #3D8BFF;
  --bad: #FF6B6B;
  --good: #4CC38A;
  --on-ac: #fff;
  --ac-hover: #2f7cf0;
  --ac-soft: rgba(61, 139, 255, .12);
  --ac-soft-2: rgba(61, 139, 255, .08);
  --bad-soft: rgba(255, 107, 107, .06);
  --bad-line: rgba(255, 107, 107, .45);
  --surface: #111;
  --surface-2: #0F0F0F;
  --band: #0D0D0D;
  --menu: #121212;
  --menu-hover: #1b1b1b;
  --header-bg: rgba(10, 10, 10, .94);
  --chart-grid: #222;
  --chart-bar: #4a4a4a;
  --chart-bar-2: #6b6b6b;
  --teaser-bar: #3a3a3a;
  --backdrop: rgba(0, 0, 0, .7);
  color-scheme: dark;
  --radius: 12px;
  --gutter: 16px;
  --max: 1120px;
  --top: 60px;
}

:root[data-theme="light"] {
  --bg: #F7F7F5;
  --card: #FFFFFF;
  --card-2: #FCFCFA;
  --line: #E4E4E0;
  --line-2: #D4D4CE;
  --text: #121212;
  --mut: #50504C;
  --mut-2: #74746E;
  --ac: #1F6FEB;
  --bad: #D93C3C;
  --ac-hover: #195ED0;
  --ac-soft: rgba(31, 111, 235, .10);
  --ac-soft-2: rgba(31, 111, 235, .07);
  --bad-soft: rgba(217, 60, 60, .06);
  --bad-line: rgba(217, 60, 60, .45);
  --surface: #FFFFFF;
  --surface-2: #FBFBF9;
  --band: #EFEFEB;
  --menu: #FFFFFF;
  --menu-hover: #F1F1EE;
  --header-bg: rgba(247, 247, 245, .94);
  --chart-grid: #E8E8E4;
  --chart-bar: #C9C9C3;
  --chart-bar-2: #9E9E98;
  --teaser-bar: #D6D6D0;
  --backdrop: rgba(20, 20, 20, .45);
  color-scheme: light;
}

/* графики дашборда */
.chart .g { stroke: var(--chart-grid); }
.chart .b { fill: var(--chart-bar); }
.chart .b2 { fill: var(--chart-bar-2); }
.chart .ln { stroke: var(--ac); }
.chart text { fill: var(--mut-2); }
.chart .hl { fill: var(--text); }
.hint b { color: var(--text); }
.hint b.l { color: var(--ac); }

/* переключатель темы */
.theme-btn { width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: block; }
:root[data-theme="light"] .theme-btn .moon { display: none; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p a, li a, .wide-note a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
p a:hover, li a:hover { text-decoration-color: var(--ac); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ac); color: var(--on-ac); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; height: var(--top);
  background: var(--header-bg); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; height: 100%; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; white-space: nowrap; margin-right: auto; }
.nav { display: none; }
.nav a, .dd-btn { color: var(--mut); font-size: 14px; }
.nav a:hover, .dd-btn:hover, .nav a[aria-current] { color: var(--text); }
.dd { position: relative; }
.dd-btn { background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.dd-btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.dd-menu {
  display: none; position: absolute; top: calc(100% + 18px); left: -16px; min-width: 300px;
  background: var(--menu); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px;
}
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px; }
.dd-menu a:hover { background: var(--menu-hover); }
.dd-menu .dd-all { color: var(--ac); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }
.dd.open .dd-menu { display: block; }
.burger { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; background: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; flex: none; }
.burger span { width: 18px; height: 1.5px; background: var(--text); transition: transform .2s; }
.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.top .nav-cta { display: none; }

/* мобильное меню */
@media (max-width: 1099px) {
  .menu-open .nav {
    display: flex; flex-direction: column; gap: 0; position: fixed; inset: var(--top) 0 0 0;
    background: var(--bg); padding: 12px var(--gutter) 32px; overflow-y: auto; z-index: 19;
  }
  .menu-open .nav > a, .menu-open .dd-btn { font-size: 18px; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .menu-open .dd-menu { display: block; position: static; border: 0; background: none; padding: 0 0 8px 12px; min-width: 0; }
  .menu-open .dd-menu a { font-size: 15px; color: var(--mut); padding: 9px 0; }
  .menu-open .dd-btn::after { display: none; }
  .menu-open .top .nav-cta { display: inline-flex; margin-top: 20px; width: 100%; }
  .menu-open { overflow: hidden; }
  /* размытие шапки делает её «рамкой» для fixed-меню — на время меню выключаем */
  .menu-open .top { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .menu-open .top .top-cta { display: none; }
}
/* на телефоне кнопка звонка живёт в закреплённой панели внизу */
@media (max-width: 719px) {
  .top .top-cta { display: none; }
  .top .wrap { gap: 8px; }
}
@media (min-width: 1100px) {
  .nav { display: flex; align-items: center; gap: 24px; }
  .nav a, .dd-btn { white-space: nowrap; }
  .top .burger, .top .top-cta { display: none; }
  .top .nav-cta { display: inline-flex; }
}

/* ---------- кнопки, подписи ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--ac); border-radius: 10px; background: none;
  font-weight: 600; font-size: 15px; cursor: pointer; transition: background .2s; white-space: nowrap;
}
.btn:hover { background: var(--ac-soft); }
.btn.primary { background: var(--ac); color: var(--on-ac); }
.btn.primary:hover { background: var(--ac-hover); }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; }
.link { color: var(--mut); font-size: 15px; display: inline-flex; align-items: center; min-height: 48px; }
.link:hover { color: var(--text); }
.lb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ac); font-weight: 600; margin: 0 0 14px; }
.mut { color: var(--mut); }
.small { font-size: 13px; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; }
h1 { font-size: 36px; margin-bottom: 18px; }
h2 { font-size: 27px; margin-bottom: 22px; }
h3 { font-size: 17px; margin-bottom: 6px; line-height: 1.3; }
.lead { font-size: 17px; color: var(--mut); margin: 0 0 28px; max-width: 680px; }
.cta { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
.wide-note { margin: 22px 0 0; max-width: 760px; font-size: 15px; }

/* ---------- секции ---------- */
section { padding: 52px 0; border-top: 1px solid var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card p { margin: 0; color: var(--mut); font-size: 15px; }
.big { font-size: 30px; font-weight: 800; color: var(--ac); line-height: 1.1; margin-bottom: 8px; }
.tag-line { margin-top: 10px !important; font-size: 12px !important; color: var(--mut-2) !important; text-transform: uppercase; letter-spacing: .08em; }

.crumbs { padding-top: 18px; font-size: 13px; color: var(--mut-2); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--line-2); }

.hero { padding: 44px 0 52px; border-top: 0; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.page-hero { border-top: 0; padding: 28px 0 48px; }

.teaser { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.teaser .kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.teaser .k b { font-size: 16px; }
.teaser .bars { display: flex; align-items: flex-end; gap: 5px; height: 90px; }
.teaser .bars i { flex: 1; background: var(--teaser-bar); border-radius: 3px 3px 0 0; }
.teaser .bars i.on { background: var(--ac); }
.teaser-note { display: block; margin-top: 12px; font-size: 13px; color: var(--mut); }

/* путь клиента */
.funnel-strip { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: f; }
.funnel-strip li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; position: relative; counter-increment: f; }
.funnel-strip li::before { content: counter(f, decimal-leading-zero); display: block; font-size: 11px; color: var(--ac); font-weight: 600; margin-bottom: 4px; }
.funnel-strip b { display: block; font-size: 15px; }
.funnel-strip span { font-size: 12px; color: var(--mut-2); }

/* услуги */
.svc-card { display: flex; flex-direction: column; transition: border-color .2s; }
.svc-card:hover { border-color: var(--ac); }
.svc-card p { flex: 1; margin-bottom: 14px; }
.svc-price { font-weight: 800; font-size: 18px; }
.svc-more { font-size: 13px; color: var(--ac); margin-top: 6px; }

.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.check li { position: relative; padding-left: 30px; color: var(--mut); }
.check li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--ac); border-bottom: 2px solid var(--ac); transform: rotate(-45deg); }

.steps { list-style: none; margin: 0; padding: 0; }
.steps b { display: block; font-size: 20px; color: var(--ac); margin-bottom: 8px; }

.price-box { display: grid; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--ac); border-radius: 14px; padding: 24px; }
.price-box .lb { margin-bottom: 6px; }
.price-big { font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.price-box .mut { margin: 0; max-width: 560px; }

.price-tbl { width: 100%; border-collapse: collapse; }
.price-tbl th { text-align: left; font-weight: 400; color: var(--mut-2); font-size: 13px; padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.price-tbl td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-tbl td a { font-weight: 600; font-size: 17px; text-decoration: none; }
.price-tbl td a:hover { color: var(--ac); }
.price-tbl td .small { display: block; margin-top: 4px; }
.price-tbl .n { text-align: right; white-space: nowrap; font-weight: 800; padding-right: 0; }

.founder { display: grid; gap: 24px; align-items: start; }
/* портрет: силуэт без фона, синее свечение сзади, низ растворяется */
.portrait { position: relative; width: 100%; max-width: 280px; isolation: isolate; }
.portrait::before { content: ""; position: absolute; inset: 6% -8% 14%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(61, 139, 255, .42), rgba(61, 139, 255, .12) 60%, transparent);
  filter: blur(14px); animation: glow 6s ease-in-out infinite alternate; }
.portrait::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ac), transparent); }
.portrait picture { display: block; background: var(--lqip) center / 100% 100% no-repeat; }
.portrait img { width: 100%; height: auto; display: block; transition: opacity .9s ease, transform 1.2s ease;
  filter: drop-shadow(0 0 1px rgba(61, 139, 255, .55)); }
.portrait picture, .portrait img {
  -webkit-mask-image: linear-gradient(#000 72%, transparent 98%); mask-image: linear-gradient(#000 72%, transparent 98%); }
.portrait.loaded picture { background: none; }
.js .portrait:not(.loaded) img { opacity: 0; transform: scale(1.02); }
:root[data-theme="light"] .portrait::before { opacity: .55; }
@keyframes glow { from { opacity: .75; transform: scale(.97); } to { opacity: 1; transform: scale(1.03); } }
.founder p { margin: 0 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tag { border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font-size: 13px; color: var(--mut); }

.cases { display: grid; gap: 16px; }
.case h2 { font-size: 24px; margin-bottom: 18px; }
.case h3 { font-size: 15px; margin: 0 0 8px; color: var(--mut-2); font-weight: 600; }
.case p { margin-bottom: 18px; }
.case-grid { display: grid; gap: 20px; }
.case-res { display: grid; gap: 10px; align-content: start; }
.res { border-left: 2px solid var(--ac); padding: 2px 0 2px 14px; }
.res b { display: block; font-size: 26px; font-weight: 800; color: var(--ac); }
.res span { color: var(--mut); font-size: 14px; }

.faq { max-width: 860px; }
details { border-top: 1px solid var(--line); }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 22px; color: var(--ac); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 18px; color: var(--mut); }

.doc { max-width: 780px; }
.doc h2 { font-size: 19px; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--mut); }
.todo { color: var(--bad); }

/* ---------- форма обратного звонка ---------- */
.cta-block { background: var(--band); }
.cta-grid { display: grid; gap: 28px; align-items: start; }
.cb-form { display: grid; gap: 10px; max-width: 520px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 13px 14px; background: var(--card-2);
  border: 1px solid var(--line-2); border-radius: 10px; font-size: 16px; /* 16px: iPhone не увеличивает страницу */
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select:invalid { color: var(--mut-2); }
.field option { color: var(--text); background: var(--surface); }
.field input::placeholder { color: var(--mut-2); }
.field input:focus, .field select:focus { border-color: var(--ac); outline: none; }
.field .err { display: none; color: var(--bad); font-size: 13px; margin-top: 4px; }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mut); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ac); flex: none; }
.consent a { text-decoration: underline; }
.consent.invalid { color: var(--bad); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-form .btn { width: 100%; }
.form-err { display: none; color: var(--bad); margin: 0; font-size: 14px; }
.form-err.show { display: block; }
.form-ok { display: none; background: var(--card); border: 1px solid var(--ac); border-radius: var(--radius); padding: 20px; max-width: 520px; }
.form-ok p { margin: 0; color: var(--mut); }
.cb-wrap.done .cb-form { display: none; }
.cb-wrap.done .form-ok { display: block; }

.cb-dialog { border: 0; padding: 0; background: transparent; color: var(--text); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.cb-dialog::backdrop { background: var(--backdrop); }
.cb-dialog-in { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 26px 20px 22px; position: relative; }
.cb-dialog h2 { font-size: 22px; margin-bottom: 18px; padding-right: 30px; }
.cb-sub { margin: -8px 0 18px; font-size: 15px; }
.cb-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 0; background: none; color: var(--mut); font-size: 28px; cursor: pointer; line-height: 1; }
.cb-close:hover { color: var(--text); }

/* развилка, тариф, статьи */
.fork-card { display: flex; flex-direction: column; transition: border-color .2s; }
.fork-card:hover { border-color: var(--ac); }
.fork-card h3 { font-size: 21px; }
.fork-card p:not(.lb) { flex: 1; margin-bottom: 14px; }
.cta-row { margin-top: 24px; }
.plan-card { background: var(--card); border: 1px solid var(--ac); border-radius: 14px; padding: 22px; }
.plan-price { font-size: 40px; font-weight: 800; margin: 0; line-height: 1.1; }
.plan-price span { font-size: 16px; font-weight: 600; color: var(--mut); }
.plan-card .mut { margin: 6px 0 18px; }
.article h2 { font-size: 22px; margin: 32px 0 12px; }
.article p, .article li { color: var(--mut); font-size: 17px; line-height: 1.65; }
.article ul { padding-left: 22px; }
.article-meta { color: var(--mut-2) !important; font-size: 14px !important; margin: -6px 0 20px; }
.article-cta { margin-top: 36px; }
.article-cta p { margin-bottom: 16px; }

/* ---------- картинки и анимации ---------- */
.ico { display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center;
  background: var(--ac-soft); color: var(--ac); margin-bottom: 14px; }
.ico svg { width: 24px; height: 24px; }

/* воронка «где утекают клиенты» */
.fv { margin: 0; }
.fv ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fv-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; }
.fv-name { font-size: 13px; color: var(--mut); text-align: right; }
.fv-track { display: flex; justify-content: center; height: 34px; }
.fv-bar { width: 0; height: 100%; border-radius: 8px; background: var(--chart-bar); display: flex; align-items: center; justify-content: center;
  transition: width .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 90ms); min-width: 0; overflow: hidden; }
.fv-row:first-child .fv-bar { background: var(--ac); }
.fv-val { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; padding: 0 8px; }
.fv-row:first-child .fv-val { color: var(--on-ac); }
.fv.in .fv-bar { width: var(--w); }
.fv-row.neck .fv-bar { background: var(--bad); animation: neck 1.6s ease-in-out 1.2s infinite; }
.fv-row.neck .fv-val { color: #fff; }
.fv-row.neck .fv-name { color: var(--bad); font-weight: 600; }
.fv-note { grid-column: 2; text-align: center; font-size: 12px; color: var(--bad); margin-top: -2px; }
.fv figcaption { margin-top: 14px; font-size: 13px; color: var(--mut-2); text-align: center; }
@keyframes neck { 0%, 100% { box-shadow: 0 0 0 0 var(--bad-line); } 50% { box-shadow: 0 0 0 6px transparent; } }
@media (min-width: 720px) {
  .fv-row { grid-template-columns: 150px minmax(0, 1fr) 210px; }
  .fv-note { grid-column: 3; text-align: left; margin: 0; }
  .fv-name { font-size: 14px; }
}

/* «было → стало» в кейсах */
.ba { display: grid; gap: 4px; margin-top: 8px; }
.ba-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 8px; }
.ba-row i { font-style: normal; font-size: 11px; color: var(--mut-2); }
.ba-bar { height: 8px; border-radius: 4px; width: 0; transition: width .9s cubic-bezier(.2, .8, .2, 1); }
.ba-bar.was { background: var(--chart-bar); }
.ba-bar.now { background: var(--ac); transition-delay: .25s; }
.in .ba-bar, .ba.in .ba-bar { width: var(--w); }

/* живой мини-дашборд на первом экране */
.teaser .bars i { transform-origin: bottom; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--d, 0) * 70ms + .2s); }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.teaser .k b.down { color: var(--bad); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--bad-line); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* плавное появление при прокрутке (включается скриптом) */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .fv-bar, .ba-bar { transition: none; }
  .teaser .bars i, .fv-row.neck .fv-bar, .pulse { animation: none; }
}

/* сноска «не является публичной офертой» */
.svc-price::after, .price-big::after, .price-tbl td.n::after { content: "*"; font-size: .6em; vertical-align: super; color: var(--mut-2); margin-left: 1px; }
.plan-price sup { font-size: .4em; color: var(--mut-2); }
.offer-note { font-size: 12px; color: var(--mut-2); margin: 20px 0 0; max-width: 760px; }
.foot .offer-note { margin: 24px 0 0; }

/* закреплённая кнопка звонка на телефоне */
.sticky-cta { display: none; }
@media (max-width: 719px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px max(var(--gutter), env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    background: var(--header-bg); border-top: 1px solid var(--line);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .25s;
  }
  .sticky-cta .btn { width: 100%; }
  .sticky-on .sticky-cta { transform: none; }
  .sticky-on .cookie { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .sticky-on .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* кнопки под демо */
.demo-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 16px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: 14px; }
.foot-grid { display: grid; gap: 28px; }
.foot .logo { margin-bottom: 12px; }
.foot p { margin: 0 0 16px; max-width: 340px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { color: var(--mut); }
.foot ul a:hover { color: var(--text); }
.foot-h { font-weight: 600; color: var(--text); margin-bottom: 12px !important; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--mut-2); font-size: 13px; }
.foot-bottom a:hover { color: var(--text); }

.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--menu); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--mut);
}
.cookie.show { display: flex; }
.cookie { margin-bottom: env(safe-area-inset-bottom); }
.cookie a { text-decoration: underline; }

/* ===== демо-дашборд ===== */
.demo-intro { margin: -6px 0 22px; max-width: 680px; }
.dash { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
/* автопоказ демо */
.auto-bar { display: none; position: relative; align-items: center; gap: 8px; font-size: 12px; color: var(--mut);
  margin: -2px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); overflow: hidden; }
.dash.auto .auto-bar { display: flex; }
.auto-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); animation: pulse-ac 1.6s infinite; }
.auto-txt { color: var(--ac); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.auto-hint { color: var(--mut-2); }
.auto-prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--ac); }
.auto-bar.run .auto-prog { animation: auto-prog var(--auto-ms, 3800ms) linear forwards; }
@keyframes auto-prog { to { width: 100%; } }
@keyframes pulse-ac { 0% { box-shadow: 0 0 0 0 rgba(61, 139, 255, .6); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.dash.auto #dBody { animation: fade-in .45s ease; }
@keyframes fade-in { from { opacity: .35; } to { opacity: 1; } }
.dash-head { display: grid; gap: 10px; margin-bottom: 14px; }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.role { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; text-align: left; cursor: pointer; color: var(--mut); min-height: 44px; }
.role b { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.role span { font-size: 11px; }
.role.on { border-color: var(--ac); background: var(--ac-soft-2); }
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 0 14px 2px; }
.tabs::-webkit-scrollbar { display: none; }
.pill { flex: none; background: none; border: 1px solid var(--line-2); color: var(--mut); border-radius: 8px; padding: 0 12px; min-height: 36px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.pill:hover { color: var(--text); }
.pill.on { border-color: var(--ac); color: var(--text); }
.periods { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.range { display: none; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--mut); }
.range.show { display: flex; }
.range input { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 8px; min-height: 36px; padding: 0 8px; font-size: 14px; }
.dash-sub { font-size: 12px; color: var(--mut-2); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.kpis .k:last-child:nth-child(odd) { grid-column: span 2; }
.k { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; min-width: 0; }
.k-go { font: inherit; color: inherit; text-align: left; width: 100%; cursor: pointer; transition: border-color .2s; position: relative; }
.k-go:hover { border-color: var(--ac); }
.k-go small { padding-right: 16px; }
.k-go::after { content: "→"; position: absolute; right: 10px; top: 9px; font-size: 12px; color: var(--mut-2); }
.tbl tr.st { cursor: pointer; }
.tbl tr.st:hover td, .tbl tr.sel td { background: var(--ac-soft-2); }
.stage-advice { margin-top: 12px; padding: 12px 14px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); }
.stage-advice p { margin: 0; font-size: 14px; color: var(--mut); }
.stage-advice b { color: var(--text); }
.k small { display: block; font-size: 12px; line-height: 1.35; color: var(--mut-2); min-height: 2.7em; }
.k b { display: block; font-size: 22px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.k i { font-style: normal; font-size: 12px; color: var(--mut-2); }
.k i.up { color: var(--ac); }
.k i.down { color: var(--bad); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.panel h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.panel .hint { font-size: 12px; color: var(--mut-2); min-height: 18px; margin-bottom: 6px; }
.chart svg { width: 100%; height: 180px; display: block; touch-action: pan-y; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut-2); margin-top: 6px; flex-wrap: wrap; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; background: var(--chart-bar); }
.legend span.l::before { background: var(--ac); height: 2px; vertical-align: 3px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 400; color: var(--mut-2); padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; white-space: nowrap; padding-right: 0; padding-left: 8px; }
.tbl tr.neck td { color: var(--text); }
.tbl tr.neck td:first-child { box-shadow: inset 2px 0 0 var(--bad); padding-left: 8px; }
.tbl-wrap { overflow-x: auto; }
.share { height: 4px; background: var(--chart-grid); border-radius: 2px; margin-top: 5px; }
.share div { height: 100%; background: var(--ac); border-radius: 2px; }
.share.bad div { background: var(--bad); }
.ai p { margin: 0 0 12px; color: var(--mut); font-size: 15px; }
.ai p b { color: var(--text); }
.ai ol { margin: 0; padding-left: 20px; color: var(--mut); font-size: 15px; }
.ai li { margin-bottom: 8px; }
.alert { border: 1px solid var(--bad-line); background: var(--bad-soft); border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.alert h4 { color: var(--bad); margin: 0 0 6px; font-size: 15px; }
.alert p { margin: 0; color: var(--mut); font-size: 14px; }
.alert p b { color: var(--text); }
.demo-note { font-size: 12px; color: var(--mut-2); margin-top: 10px; }

/* ---------- живые схемы ---------- */
.scene { position: relative; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; min-height: 280px; overflow: hidden; }
.sc-cap { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.scene .s-step { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.scene.play .s-step { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * .6s); }
.scene .up { color: var(--good, #4CC38A); font-style: normal; }

.sc-funnel { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sc-funnel li { display: grid; grid-template-columns: 80px 1fr 44px; gap: 8px; align-items: center; font-size: 13px; color: var(--mut); height: 24px; }
.sc-funnel b { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.sc-funnel b i { display: block; height: 100%; width: 0; background: var(--chart-bar-2); border-radius: 5px; transition: width .2s; }
.scene.play .sc-funnel b i { width: var(--w); transition: width .9s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * .6s + .2s); }
.sc-funnel em { font-style: normal; text-align: right; color: var(--text); font-weight: 700; }
.sc-funnel li.neck span, .sc-funnel li.neck em { color: var(--bad); }
.scene.play .sc-funnel li.neck b i { background: var(--bad); }
.sc-lens { position: absolute; left: 52%; top: 46px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ac-soft); border: 1px solid var(--ac); transition: transform .3s; }
.sc-lens svg { width: 18px; fill: none; stroke: var(--ac); stroke-width: 2; stroke-linecap: round; }
.scene.play .sc-lens { transform: translateY(120px); transition: transform 2.4s ease-in-out 2.2s; }
.sc-verdict { margin-top: 14px; padding: 10px 12px; border: 1px solid var(--bad-line); background: var(--bad-soft); border-radius: 10px; font-size: 14px; }
.sc-verdict span { color: var(--bad); font-weight: 800; }

.sc-tl { display: grid; gap: 8px; position: relative; padding-left: 16px; border-left: 1px dashed var(--line-2); }
.sc-ev { display: grid; grid-template-columns: 64px 1fr; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font-size: 14px; position: relative; }
.sc-ev::before { content: ""; position: absolute; left: -22px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--line-2); }
.sc-ev.ok::before { background: var(--ac); box-shadow: 0 0 0 4px var(--ac-soft); }
.sc-ev time { color: var(--mut-2); font-size: 12px; }
.sc-kpi, .sc-result, .sc-k { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sc-kpi { margin-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.sc-kpi b { font-size: 22px; color: var(--ac); }
.sc-kpi small, .sc-result small, .sc-k small { color: var(--mut); font-size: 12px; }

.sc-flow-in { display: grid; grid-template-columns: 84px 1fr 120px; align-items: stretch; min-height: 220px; }
.sc-chips { display: grid; align-content: space-between; gap: 6px; }
.sc-chip { border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font-size: 13px; text-align: center; background: var(--card); }
.sc-lines { width: 100%; height: 100%; }
.sc-lines path { fill: none; stroke: var(--ac); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 6; opacity: 0; }
.scene.play .sc-lines path { opacity: .9; transition: opacity .4s calc(var(--i) * .6s + .3s); animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
.sc-result { align-self: center; display: grid; gap: 2px; }
.sc-result b { font-size: 22px; }

.sc-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.sc-k b { display: block; font-size: 17px; margin: 2px 0; }
.sc-k i { font-style: normal; font-size: 12px; color: var(--good, #4CC38A); }
.sc-bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; border-bottom: 1px solid var(--line); }
.sc-bars i { flex: 1; background: var(--chart-bar); border-radius: 3px 3px 0 0; transform-origin: bottom; }
.sc-bars i:nth-last-child(-n+3) { background: var(--ac); }
.scene .sc-bars i.s-step { transform: scaleY(0); }
.scene.play .sc-bars i.s-step { transform: scaleY(1); transition: transform .6s cubic-bezier(.2, .8, .2, 1) calc(var(--i) * .6s), opacity .3s calc(var(--i) * .6s); }

.sc-chart { position: relative; height: 150px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sc-chart svg { width: 100%; height: 100%; }
.sc-chart polyline { fill: none; stroke: var(--ac); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 400; stroke-dashoffset: 400; }
.scene.play .sc-chart polyline { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s ease .3s; }
.sc-tag { position: absolute; font-size: 12px; color: var(--mut); background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.sc-tag b { color: var(--text); }
.sc-tag.was { left: 0; top: 2px; }
.sc-tag.now { right: 0; bottom: 8px; border-color: var(--ac); }
.sc-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-li { font-size: 13px; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 10px; color: var(--mut); }

.sc-browser { border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px 14px; background: var(--card); display: grid; gap: 10px; }
.sc-bar { display: flex; gap: 5px; padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0 -14px; padding-left: 12px; }
.sc-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.sc-line { height: 8px; border-radius: 4px; background: var(--line-2); }
.sc-line.h { height: 16px; background: var(--chart-bar-2); }
.w40 { width: 40%; } .w60 { width: 60%; } .w80 { width: 80%; }
.sc-btn { justify-self: start; background: var(--ac); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 8px; }
.scene.play .sc-btn { animation: pulse-ac 1.6s 2.2s infinite; }
.sc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sc-box { height: 46px; border: 1px solid var(--line); border-radius: 8px; }
.sc-toast { position: absolute; right: 14px; bottom: 14px; background: var(--card); border: 1px solid var(--ac); border-radius: 10px;
  padding: 10px 12px; font-size: 13px; color: var(--mut); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.sc-toast b { display: block; color: var(--text); }

.sc-tg { padding: 18px 18px 0; display: flex; justify-content: center; background: radial-gradient(circle at 50% 30%, var(--ac-soft), transparent 70%), var(--surface); }
.sc-phone { width: 100%; max-width: 300px; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 28px 28px 0 0; background: var(--card); padding: 12px 12px 18px; }
.sc-ph-head { display: flex; gap: 10px; align-items: center; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.sc-ph-head .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--ac); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.sc-ph-head b { display: block; font-size: 14px; }
.sc-ph-head small { color: var(--mut-2); font-size: 12px; }
.sc-ph-body { display: grid; gap: 8px; }
.sc-msg { display: grid; grid-template-columns: 10px 1fr; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 9px 11px; }
.sc-msg p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--mut); }
.sc-msg p b { color: var(--text); }
.sc-msg .dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--ac); }
.sc-msg .dot.bad { background: var(--bad); }
.sc-msg .dot.ok { background: var(--good, #4CC38A); }
.tg-row { display: grid; gap: 24px; align-items: center; }
details.more { margin-top: 10px; max-width: 860px; }
details.more summary { cursor: pointer; color: var(--ac); font-weight: 600; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " ↓"; }
details.more[open] summary { margin-bottom: 10px; }
details.more[open] summary::after { content: " ↑"; }
@media (min-width: 720px) { .tg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }
@media (prefers-reduced-motion: reduce) {
  .scene .s-step, .scene .sc-bars i.s-step { opacity: 1; transform: none; transition: none; }
  .sc-lines path { opacity: .9; animation: none; } .sc-chart polyline { stroke-dashoffset: 0; } .sc-funnel b i { width: var(--w); }
}

/* ---------- цифры доверия ---------- */
.trust-band { padding: 0 0 8px; border-top: 0; }
.trust { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust li { display: grid; gap: 2px; }
.trust b { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--ac); }
.trust span { font-size: 13px; color: var(--mut); }

/* ---------- кнопки: подпись про лимит ---------- */
.cta-row .btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.cta-note { display: block; width: 100%; font-size: 13px; color: var(--mut-2); margin-top: 4px; }
.cta-note::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); margin-right: 8px; vertical-align: 1px; }

/* ---------- наши партнёры: стена логотипов без фона ---------- */
.partners { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; align-items: center; }
.partners .pt { flex: 0 0 calc(50% - 11px); min-width: 0; }
.pt { height: 72px; display: flex; align-items: center; justify-content: center; gap: 10px; opacity: .88; transition: opacity .3s, transform .3s; }
.pt:hover { opacity: 1; transform: translateY(-2px); }
.pt img { max-width: 100%; max-height: 46px; width: auto; height: auto; }
.pt.tall img { max-height: 72px; }
.pt.wide img { max-height: 30px; }
.pt .for-dark { display: none; }
:root[data-theme="dark"] .pt .for-dark { display: block; }
:root[data-theme="dark"] .pt .for-light { display: none; }
.pt-word span { font-size: 19px; font-weight: 800; line-height: 1.05; color: var(--pc); letter-spacing: -.01em; }
/* фирменные цвета: светлая тема — насыщенные, тёмная — светлее */
.w-sea    { --pc: #E8641B; } .w-sea span { text-transform: uppercase; letter-spacing: .14em; font-size: 15px; font-weight: 700; }
.w-rost   { --pc: #1F6FE0; }
.w-gold   { --pc: #B88A1E; } .w-gold span { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; font-size: 22px; }
.w-krem   { --pc: #7C3AED; } .w-krem span { letter-spacing: .32em; font-size: 24px; }
.w-forum  { --pc: #C99A00; }
.w-prof   { --pc: #DC2626; } .w-prof span { text-transform: uppercase; letter-spacing: .2em; font-size: 18px; }
.w-primer { --pc: #0E8F86; } .w-primer span { font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 600; }
:root[data-theme="dark"] .w-sea { --pc: #FF8A4C; }
:root[data-theme="dark"] .w-rost { --pc: #5AA2FF; }
:root[data-theme="dark"] .w-gold { --pc: #E8C468; }
:root[data-theme="dark"] .w-krem { --pc: #A98BFF; }
:root[data-theme="dark"] .w-forum { --pc: #FFD23F; }
:root[data-theme="dark"] .w-prof { --pc: #FF5A5A; }
:root[data-theme="dark"] .w-primer { --pc: #3DD6C8; }
/* ---------- калькулятор потерь ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.calc-in { display: grid; gap: 18px; }
.calc-in label { display: grid; gap: 8px; }
.calc-in label span { display: flex; justify-content: space-between; gap: 12px; color: var(--mut); font-size: 15px; }
.calc-in label b { color: var(--text); white-space: nowrap; }
.calc input[type=range] { width: 100%; accent-color: var(--ac); height: 28px; }
.calc-out { background: var(--card); border: 1px solid var(--ac); border-radius: 12px; padding: 18px; display: grid; gap: 6px; align-content: start; }
.calc-out .lb { margin: 0; }
.calc-total { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.calc-total b { font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--bad); }
.calc-total span { color: var(--mut); }
.calc-year { margin: 0 0 6px; color: var(--mut); }
.calc-year b { color: var(--text); }
.calc-parts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.calc-parts li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; color: var(--mut); }
.calc-parts b { color: var(--text); white-space: nowrap; }
.calc-out .btn { width: 100%; white-space: normal; text-align: center; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.calc-note { margin: 4px 0 0; font-size: 12px; color: var(--mut-2); }
.calc-lead { margin-top: -6px; }

/* ---------- план 30 дней ---------- */
.plan30 { list-style: none; margin: 0; padding: 0 0 0 22px; display: grid; gap: 14px; position: relative; }
.plan30::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.plan30::after { content: ""; position: absolute; left: 6px; top: 6px; width: 2px; height: 0; background: var(--ac); transition: height 2.4s ease .2s; }
.plan30.in::after { height: calc(100% - 12px); }
.plan30 li { position: relative; }
.plan30 li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-2); transition: border-color .3s, background .3s; transition-delay: calc(var(--i) * .45s + .2s); }
.plan30.in li::before { border-color: var(--ac); background: var(--ac); }
.p-day { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ac); }
.plan30 h3 { margin: 2px 0 4px; font-size: 18px; }
.plan30 p { margin: 0; color: var(--mut); font-size: 15px; }

/* ---------- планшет и компьютер ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  h1 { font-size: 46px; }
  h2 { font-size: 34px; }
  .hero { padding: 72px 0 80px; }
  .hero h1 { font-size: 54px; }
  .page-hero { padding: 36px 0 64px; }
  section { padding: 76px 0; }
  .grid.c2, .grid.c4, .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .funnel-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .founder { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; }
  .price-box { grid-template-columns: minmax(0, 1fr) auto; padding: 32px; }
  .case { padding: 28px; }
  .case-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .roles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis .k:last-child:nth-child(odd) { grid-column: auto; }
  .dash { padding: 20px; }
  .tabs { margin: 0; padding: 0; }
  .chart svg { height: 220px; }
  .panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .panels .panel { margin-bottom: 0; }
  .panels .panel.wide { grid-column: span 2; }
  .cookie { left: auto; right: 20px; bottom: 20px; max-width: 460px; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .funnel-strip { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .k b { font-size: 24px; }
}
@media (max-width: 719px) {
  .hero .teaser .kpis .k:nth-child(3) { grid-column: span 2; }
  .hero .teaser .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .teaser .bars { height: 64px; }
  .panels .panel { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .portrait::before { animation: none; }
  .plan30::after { transition: none; }
}

/* раскладка новых блоков на широких экранах (в конце файла, чтобы перекрывать базовые правила) */
@media (min-width: 720px) {
  .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .partners .pt { flex-basis: calc(33.333% - 15px); }
  .calc { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); padding: 24px; gap: 28px; }
}
@media (min-width: 1000px) {
  .trust { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .partners .pt { flex-basis: calc(25% - 16px); }
  .plan30 { grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 26px 0 0; gap: 18px; }
  .plan30::before, .plan30::after { left: 0; top: 6px; bottom: auto; height: 2px; width: 100%; }
  .plan30::after { width: 0; transition: width 2.4s ease .2s; }
  .plan30.in::after { width: 100%; height: 2px; }
  .plan30 li::before { left: 0; top: -27px; }
}
