/*
 * Лендинги малых продуктов New Solutions.
 * Раздел 1 — токены и компоненты, скопированные из index.html главной без изменений значений.
 * Раздел 2 — продуктовые цвета (только для .product-tag, ТЗ 4.2).
 * Раздел 3 — блоки лендинга, собранные из тех же токенов.
 */

/* =========================================================
   1. Токены и компоненты главной
   ========================================================= */
:root {
  --ink: #0A0A0A;
  --ink-2: #1B1B1B;
  --mute: #6B6B6B;
  --rule: #E7E7E7;
  --bg: #FFFFFF;
  --bg-soft: #F4F4F2;
  --bg-dark: #0A0A0A;
  --accent: #0C75DF;
  --accent-press: #0859A8;
  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Type scale ---------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--mute);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; vertical-align: 2px;
}
h1, h2, h3, h4 { font-family: 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
h1 { font-size: 42px; line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 5vw, 76px); line-height: 1.0; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; color: var(--ink-2); max-width: 64ch; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: "tnum" 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 26px; border-radius: 999px; font-weight: 700;
  font-size: 16px; letter-spacing: -0.01em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { display: inline-block; transition: transform .2s ease; }
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.scrolled { border-color: var(--rule); }
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 72px;
}
.nav-links { display: flex; gap: 30px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
  background: var(--accent); transition: right .25s ease;
}
.nav-links a:hover::after { right: 0; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
  transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); }
@media (max-width: 820px){ .nav-links { display: none; } }
@media (max-width: 420px){
  .nav-row { gap: 12px; }
  .nav .logo { font-size: 19px; }
  .nav-cta { padding: 9px 14px; font-size: 13px; }
  .nav-cta svg { display: none; }
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 4px;
  font-weight: 800; font-size: 22px; letter-spacing: -0.04em;
  line-height: 1; white-space: nowrap;
}
.logo .arrow {
  color: var(--accent); margin-left: 2px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- HERO ---------- */
.hero {
  padding: clamp(28px, 4vw, 56px) 0 clamp(36px, 5vw, 72px);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: 12%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(12,117,223,0.07), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 .blue { color: var(--accent); }
.hero-sub { margin-top: 32px; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

.hero-proof {
  display: flex; gap: 48px; flex-wrap: wrap;
  margin-top: clamp(48px, 5vw, 72px); padding-top: 32px;
  border-top: 1px dashed var(--rule);
  justify-content: center; text-align: center;
}
.hero-proof .stat { flex: 1 1 200px; max-width: 280px; }
.hero-proof .stat .lab { margin-left: auto; margin-right: auto; }
.hero-proof .stat .num {
  font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1;
}
.hero-proof .stat .num .cur { color: var(--accent); }
.hero-proof .stat .lab {
  margin-top: 8px; font-size: 14px; color: var(--mute); max-width: 24ch;
}
@media (max-width: 760px){
  .hero-sub { margin-top: 20px; }
  .hero-cta-row { margin-top: 24px; flex-direction: column; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  .hero-proof { flex-direction: column; align-items: center; gap: 28px; margin-top: clamp(32px, 4vw, 48px); padding-top: 24px; }
  .hero-proof .stat { flex: 0 0 auto; }
  .hero-proof .stat .num { font-size: clamp(28px, 8vw, 40px); }
}

/* ---------- Section base ---------- */
section { scroll-margin-top: 80px; }
.section { padding: clamp(48px, 7vw, 100px) 0; border-top: 1px solid var(--rule); }
.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: end;
  margin-bottom: clamp(32px, 4vw, 64px);
}
@media (max-width: 880px){ .section-head { grid-template-columns: 1fr; gap: 24px; align-items: start; } }
.section-head h2 { max-width: 18ch; }

/* ---------- Person (команда главной) ---------- */
.person {
  padding: 40px 32px;
  display: grid; grid-template-columns: 100px 1fr; gap: 24px;
  min-width: 0;
}
.avatar {
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--ink); color: #fff;
  position: relative; overflow: visible;
}
.avatar img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 18%; border-radius: 50%;
}
.avatar::after {
  content: ""; position: absolute; right: -2px; bottom: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  z-index: 2;
}
.person .who h3 { font-size: 22px; line-height: 1.1; }
.person .who h3 .name-line { display: block; }
.person .role { font-size: 14px; color: var(--accent); font-weight: 600; margin-top: 6px; }
.person ul {
  margin: 18px 0 0; padding: 0; list-style: none; font-size: 14.5px;
  color: var(--ink-2); line-height: 1.55;
}
.person ul li { padding: 6px 0; border-bottom: 1px dashed var(--rule); }
.person ul li:last-child { border-bottom: 0; }
@media (max-width: 480px){
  .person { grid-template-columns: 1fr; padding: 32px 0; }
}

/* ---------- CTA ---------- */
.cta-section {
  background: var(--ink); color: #fff;
  border-top: 0;
}
.cta-section .eyebrow { color: rgba(255,255,255,0.55); }
.cta-section .eyebrow .dot { background: var(--accent); }
.cta-grid {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 980px){ .cta-grid { grid-template-columns: 1fr; gap: 48px; } }
.cta-section h2 { color: #fff; max-width: 14ch; }
.cta-section h2 .blue { color: var(--accent); }
.cta-section .lead { color: rgba(255,255,255,0.7); margin-top: 24px; max-width: 50ch; }

.steps {
  margin-top: 48px; display: flex; flex-direction: column;
}
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 20px; align-items: center;
  padding: 22px 0; border-top: 1px solid rgba(255,255,255,0.12);
}
.step:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.step .n {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.3); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 15px;
  transition: background .2s, border-color .2s, color .2s;
}
.step:hover .n { background: var(--accent); border-color: var(--accent); }
.step .t { font-size: 17px; line-height: 1.4; max-width: 50ch; color: rgba(255,255,255,0.9); }
.step .t strong { color: #fff; }

.contact-card {
  background: #fff; color: var(--ink);
  border-radius: 20px; padding: 36px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative; overflow: hidden;
}
.contact-card::before {
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: rgba(12,117,223,0.08);
}
.contact-row { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--rule); }
.contact-row a {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; transition: color .15s;
  padding: 6px 0;
}
.contact-row a:hover { color: var(--accent); }
.contact-row .ico {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--bg-soft); display: flex; align-items: center; justify-content: center;
  color: var(--ink);
}
.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; position: relative; z-index: 1; }
.contact-actions .btn { justify-content: center; width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.contact-actions .btn-primary { background: var(--ink); }
.contact-actions .btn-primary:hover { background: var(--accent); }
.contact-actions .btn:disabled { opacity: .7; cursor: default; }
@media (max-width: 480px){ .contact-card { padding: 28px 20px; } }

/* ---------- Contact form ---------- */
.contact-form {
  display: flex; flex-direction: column; gap: 14px; margin-top: 4px;
  padding-top: 18px; border-top: 1px solid var(--rule);
  position: relative; z-index: 1;
}
.contact-form .field { display: flex; flex-direction: column; gap: 6px; }
.contact-form .f-lab {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute); font-weight: 600;
}
/* 16px вместо 14px главной: iOS не увеличивает страницу при фокусе (ТЗ, раздел 14) */
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--rule);
  background: transparent; padding: 6px 0 8px;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .15s;
  border-radius: 0;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-bottom-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 56px; line-height: 1.4; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #b5b5b5; }
.contact-form .hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
  opacity: 0; pointer-events: none;
}
.contact-form .consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2);
  cursor: pointer; padding-top: 2px;
}
.contact-form .consent input[type=checkbox] {
  width: 16px; height: 16px; flex-shrink: 0; margin: 1px 0 0;
  accent-color: var(--accent); cursor: pointer;
}
.contact-form .consent a { text-decoration: underline; text-underline-offset: 2px; }
.contact-form .consent a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink); color: rgba(255,255,255,0.55);
  padding: 60px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-row {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
@media (max-width: 700px){ .footer-row { grid-template-columns: 1fr; } }
footer .logo { color: #fff; font-size: 20px; }
.foot-meta { font-size: 13px; color: rgba(255,255,255,0.45); }
.foot-meta span + span { margin-left: 24px; }

/* ---------- Cookie notice ---------- */
.cookie-note {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 16px 16px 16px 24px; border-radius: 20px;
  background: var(--ink); color: rgba(255,255,255,0.75);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  font-size: 14px; line-height: 1.45;
}
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; }
.cookie-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.cookie-note a:hover { color: var(--accent); }
.cookie-note .btn { flex: none; padding: 12px 22px; font-size: 14px; background: #fff; color: var(--ink); }
.cookie-note .btn:hover { background: var(--accent); color: #fff; }
@media (max-width: 560px){
  .cookie-note { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .cookie-note .btn { justify-content: center; }
}
@media print { .cookie-note { display: none !important; } }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* =========================================================
   2. Продуктовая метка (ТЗ 4.2): цвет продукта только здесь
   ========================================================= */
body[data-product="tri-formy"]      { --product:#1A7F55; --product-on-dark:#4CC48E; }
body[data-product="cfo"]            { --product:#6A4BD6; --product-on-dark:#A08CF2; }
body[data-product="vzglyad"]        { --product:#9A6F1C; --product-on-dark:#D4AE62; }
body[data-product="gotovnost"]      { --product:#C2471F; --product-on-dark:#F0805A; }
body[data-product="yunit"]          { --product:#0B7C80; --product-on-dark:#3FC4C9; }

.product-tag {
  display:inline-flex; align-items:center; gap:10px;
  padding:8px 14px 8px 12px; border-radius:999px;
  border:1.5px solid var(--product);
  font-size:12px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--product);
  line-height: 1.3; max-width: 100%;
}
.product-tag::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--product); flex-shrink: 0; }
.cta-section .product-tag { border-color:var(--product-on-dark); color:var(--product-on-dark); }
.cta-section .product-tag::before { background:var(--product-on-dark); }
/* Карточка формы белая и внутри тёмного блока: метка в светлом варианте */
.cta-section .contact-card .product-tag { border-color:var(--product); color:var(--product); position: relative; z-index: 1; align-self: flex-start; }
.cta-section .contact-card .product-tag::before { background:var(--product); }

/* =========================================================
   3. Блоки лендинга
   ========================================================= */
.landing h2 { font-size: clamp(34px, 4.6vw, 64px); }
.landing .section-head { align-items: end; }
.landing .section-head > h2:only-child { grid-column: 1 / -1; max-width: 24ch; }
.landing .section-head .lead { padding-bottom: 6px; }
.landing .section-head .eyebrow + h2 { margin-top: 18px; }

/* Б2. Хлебные крошки и первый экран */
.crumbs { font-size: 13px; color: var(--mute); margin-bottom: clamp(28px, 4vw, 48px); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.crumbs li + li::before { content: "/"; margin: 0 10px; color: var(--rule); }
.crumbs a { transition: color .15s; }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); }

.hero .product-tag { margin-bottom: clamp(24px, 3vw, 36px); }
.landing .hero h1 { font-size: clamp(36px, 6.4vw, 80px); line-height: 1.0; max-width: 17ch; }
.hero-subtitle {
  margin-top: 20px; font-size: clamp(20px, 2vw, 28px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--ink-2);
}
.hero-params {
  display: flex; flex-wrap: wrap; gap: 8px 0; margin: 28px 0 0; padding: 0; list-style: none;
  font-size: 14px; color: var(--ink-2);
}
.hero-params li + li::before { content: "·"; margin: 0 12px; color: var(--mute); }

/* Б4. Для кого */
.cards {
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 24px;
}
.cards[data-count="4"] { --cols: 4; }
.cards[data-count="2"] { --cols: 2; }
@media (max-width: 1100px){ .cards[data-count="4"] { --cols: 2; } }
@media (max-width: 880px){ .cards { --cols: 1 !important; } }
.card {
  background: var(--bg-soft); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 14px; min-height: 180px;
}
.card .num { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--mute); letter-spacing: 0.04em; }
.card .card-title { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.card .card-text { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.card.quote .card-text { font-size: clamp(18px, 1.5vw, 21px); font-weight: 600; line-height: 1.35; letter-spacing: -0.012em; color: var(--ink); margin-top: auto; }
.cards-note { margin-top: 28px; font-size: 15px; color: var(--mute); max-width: 70ch; }

/* Блок «Что считаем» */
.calc {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px;
  margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink);
}
.calc li {
  padding: 18px 0 18px 26px; position: relative; border-bottom: 1px solid var(--rule);
  font-size: 17px; font-weight: 500;
}
.calc li::before {
  content: ""; position: absolute; left: 0; top: 30px; width: 12px; height: 1.5px; background: var(--accent);
}
.calc-note { margin-top: 24px; font-size: 15px; color: var(--mute); max-width: 70ch; }
.calc-tool { margin-top: 16px; font-size: 16px; color: var(--ink-2); max-width: 70ch; }
.calc-tool a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.calc-tool a:hover { color: var(--accent-press); }
@media (max-width: 760px){ .calc { grid-template-columns: 1fr; } }

/* Б5. Что вы получите */
.deliv-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.deliv {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.deliv .d-num { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--mute); letter-spacing: 0.04em; }
.deliv .d-title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.deliv .d-text { font-size: 16px; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
@media (max-width: 880px){
  .deliv { grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding: 22px 0; }
  .deliv .d-text { grid-column: 2; }
}

/* Б6. Пример результата / самопроверка */
.sample {
  background: var(--bg-soft); border-radius: 20px; padding: clamp(28px, 4vw, 56px);
  display: flex; flex-direction: column; gap: 22px; max-width: 980px;
}
.sample p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.sample p strong { color: var(--ink); }
.check-list { margin: 0; padding: 0; list-style: none; counter-reset: q; }
.check-list li {
  counter-increment: q; display: grid; grid-template-columns: 48px 1fr; gap: 12px;
  padding: 16px 0; border-bottom: 1px dashed #d9d9d6; font-size: 17px; font-weight: 500;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: counter(q, decimal-leading-zero); font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--mute); padding-top: 3px; }
.sample .sample-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.sample .sample-foot p { flex: 1 1 320px; }

/* Б7. Как проходит работа: горизонтальные шаги */
.hsteps {
  display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 0;
  margin: 0; padding: 0; list-style: none; position: relative;
}
.hsteps li { padding: 0 24px 0 0; position: relative; }
.hsteps li::before {
  content: ""; position: absolute; left: 44px; right: 0; top: 22px; height: 1px; background: var(--rule);
}
.hsteps li:last-child::before { display: none; }
.hsteps .n {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 15px;
  position: relative; z-index: 1; transition: background .2s, border-color .2s, color .2s;
}
.hsteps li:hover .n { background: var(--accent); border-color: var(--accent); color: #fff; }
.hsteps .s-title { margin-top: 22px; font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.hsteps .s-text { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 980px){
  .hsteps { grid-template-columns: 1fr; }
  .hsteps li { display: grid; grid-template-columns: 64px 1fr; padding: 0 0 28px; }
  .hsteps li::before { left: 22px; right: auto; top: 44px; bottom: 0; width: 1px; height: auto; }
  .hsteps .s-title { margin-top: 10px; }
  .hsteps .s-body { grid-column: 2; }
}

/* Б8. Что нужно от вас / что не входит */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ink); }
.cols2 > div { padding: 32px 40px 8px 0; }
.cols2 > div + div { padding: 32px 0 8px 40px; border-left: 1px solid var(--rule); }
.landing .cols2 .col-title { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.025em; }
.cols2.single { grid-template-columns: minmax(0, 1fr); }
.cols2.single > div { max-width: 760px; }
.dash-list { margin: 20px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.dash-list li { padding: 12px 0 12px 24px; position: relative; border-bottom: 1px dashed var(--rule); }
.dash-list li:last-child { border-bottom: 0; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 1.5px; background: var(--accent); }
.dash-list.muted li::before { background: var(--mute); }
@media (max-width: 760px){
  .cols2 { grid-template-columns: 1fr; }
  .cols2 > div, .cols2 > div + div { padding: 28px 0 8px; border-left: 0; }
  .cols2 > div + div { border-top: 1px solid var(--rule); }
}

/* Б9. Стоимость */
.price-grid { display: grid; grid-template-columns: repeat(var(--n, 1), minmax(0, 1fr)); gap: 24px; }
.price-grid[data-count="1"] { max-width: 760px; }
@media (max-width: 880px){ .price-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg-soft); border-radius: 20px; padding: clamp(28px, 3.5vw, 44px);
  display: flex; flex-direction: column; gap: 24px;
}
.price-card .product-tag { align-self: flex-start; }
.price-card .p-label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.price-card .p-num { font-size: clamp(44px, 5.4vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.price-card .p-num .cur { color: var(--accent); }
.price-card .p-num.p-text { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.1; }
.price-card .p-note { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.5; }
.price-card .p-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.price-card .p-rows li { padding: 12px 0 12px 24px; position: relative; border-bottom: 1px dashed #d9d9d6; font-size: 16px; color: var(--ink-2); }
.price-card .p-rows li::before { content: ""; position: absolute; left: 0; top: 23px; width: 10px; height: 1.5px; background: var(--accent); }
.price-card .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px){ .price-card .btn { align-self: stretch; justify-content: center; } }

/* Б10. Кто делает */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.partners .person + .person { border-left: 1px solid var(--rule); }
.partners[data-count="1"] .person { max-width: 660px; padding-left: 0; }
@media (max-width: 880px){
  .partners { grid-template-columns: 1fr; }
  .partners .person { padding-left: 0; padding-right: 0; }
  .partners .person + .person { border-left: 0; border-top: 1px solid var(--rule); }
}

/* Б11. Вопросы */
.faq { border-top: 1px solid var(--ink); max-width: 1040px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 20px; align-items: center;
  padding: 24px 0; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--rule);
  display: flex; align-items: center; justify-content: center; transition: transform .2s, border-color .2s, color .2s;
}
.faq summary:hover .pm { border-color: var(--accent); color: var(--accent); }
.faq details[open] summary .pm { transform: rotate(45deg); }
.faq .a { padding: 0 52px 26px 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-2); max-width: 72ch; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* Б12. Следующие шаги */
.next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px){ .next-grid { grid-template-columns: 1fr; } }
.next-card {
  background: var(--bg-soft); border-radius: 16px; padding: 32px;
  display: flex; flex-direction: column; gap: 16px; min-height: 230px;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.next-card .eyebrow { line-height: 1.5; }
.next-card .n-title { font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.next-card .n-params { font-size: 13px; color: var(--mute); margin-top: auto; }
.next-card .arrow-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; transition: gap .2s; }
.next-card:hover { background: var(--ink); color: #fff; transform: translateY(-3px); }
.next-card:hover .eyebrow, .next-card:hover .n-params { color: rgba(255,255,255,0.6); }
.next-card:hover .arrow-link { gap: 10px; color: #fff; }

/* Б13. Заявка */
.cta-section .steps .step { grid-template-columns: 64px 1fr; }
.form-status { margin: 0; font-size: 14px; line-height: 1.45; position: relative; z-index: 1; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--ink); padding: 14px 16px; background: rgba(12,117,223,0.08); border-radius: 12px; }
.form-status.err { color: #B3261E; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.radio-row input { accent-color: var(--accent); margin: 0; }
.radio-row label:has(input:checked) { border-color: var(--ink); }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact-form legend { padding: 0; margin-bottom: 8px; }
.field[hidden] { display: none !important; }

/* Б14. Подвал */
.foot-legal {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; flex-wrap: wrap; gap: 8px 0; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 1.6;
}
.foot-legal > * + *::before { content: "·"; margin: 0 10px; }
.foot-legal a { color: rgba(255,255,255,0.7); transition: color .15s; }
.foot-legal a:hover { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; }
.foot-links a { color: rgba(255,255,255,0.75); transition: color .15s; }
.foot-links a:hover { color: #fff; }

/* Бриф и юридические страницы */
.doc-hero { padding: clamp(28px, 4vw, 56px) 0 clamp(28px, 4vw, 48px); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.02; max-width: 20ch; }
.doc-hero .product-tag { margin-bottom: 28px; }
.doc-hero .lead { margin-top: 24px; }
.doc { padding: 0 0 clamp(56px, 8vw, 120px); }
.doc-body { max-width: 780px; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.doc-body h2 { font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 16px; color: var(--ink); }
.doc-body p { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.doc-body th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.doc-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.doc-body blockquote { margin: 0; padding: 24px 28px; background: var(--bg-soft); border-radius: 16px; }
mark.todo { background: #FFF1B8; color: var(--ink); padding: 0 3px; border-radius: 3px; }
.draft-note { margin: 0 0 28px; padding: 14px 18px; background: #FFF1B8; border-radius: 12px; font-size: 14px; color: var(--ink); }

.brief-form { max-width: 820px; border-top: 1px solid var(--ink); }
.brief-form .contact-form { border-top: 0; padding-top: 0; gap: 0; }
.brief-form .q { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.brief-form .q .qn { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--mute); padding-top: 2px; }
.brief-form .q label { font-size: 17px; font-weight: 600; line-height: 1.4; display: block; margin-bottom: 10px; }
.brief-form .q textarea { min-height: 72px; }
.brief-form .brief-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.brief-form .brief-foot { display: flex; flex-direction: column; gap: 18px; padding-top: 28px; }
.brief-form .brief-foot .btn { align-self: flex-start; }
.brief-files { padding: 20px 24px; background: var(--bg-soft); border-radius: 14px; font-size: 15px; color: var(--ink-2); }
@media (max-width: 600px){
  .brief-form .q { grid-template-columns: 1fr; gap: 6px; }
  .brief-form .brief-contact { grid-template-columns: 1fr; }
  .brief-form .brief-foot .btn { align-self: stretch; justify-content: center; }
}

/* Каталог /produkty/ */
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px){ .catalog { grid-template-columns: 1fr; } }

/* Калькулятор юнит-экономики /kalkulyator-yunit-ekonomiki/ */
.calc-hero { padding-bottom: clamp(28px, 3vw, 40px); }
.calc-hero h1 { max-width: 16ch; }
.calc-section { padding: 0 0 clamp(48px, 7vw, 100px); }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.calc-intro { margin: 0 0 8px; font-size: 15px; color: var(--mute); max-width: 60ch; }
.calc-group { border: 0; margin: 0; padding: 28px 0 8px; border-top: 1px solid var(--ink); min-width: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
.calc-group + .calc-group { margin-top: 20px; }
.calc-group legend { float: left; width: 100%; grid-column: 1 / -1; padding: 0; margin-bottom: 14px; }
.calc-field { padding: 0 0 18px; min-width: 0; }
.calc-field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.calc-input { position: relative; }
.calc-input input {
  width: 100%; font: inherit; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 17px;
  padding: 12px 52px 12px 14px; border: 1px solid #d9d9d6; border-radius: 12px; background: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.calc-input input:hover { border-color: var(--mute); }
.calc-input input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12,117,223,0.15); }
.calc-input input[aria-invalid="true"] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179,38,30,0.12); }
.calc-unit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--mute); pointer-events: none; }
.calc-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--mute); }
.calc-taxbase { margin-top: 12px; }
.calc-taxbase label { font-size: 13px; padding: 8px 12px; }
.calc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding-top: 20px; border-top: 1px solid var(--rule); }
.btn.calc-small { padding: 11px 18px; font-size: 14px; border-width: 1px; }
.calc-copied { font-size: 14px; color: var(--accent); }

.calc-result {
  position: sticky; top: 92px;
  background: var(--bg-soft); border-radius: 20px; padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 18px;
}
.calc-result .eyebrow { margin: 0; font-size: 12px; letter-spacing: 0.16em; }
.calc-hero-num { font-size: clamp(44px, 5vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; margin-top: -6px; }
.calc-result.is-loss .eyebrow .dot { background: #B3261E; }
.calc-stats, .calc-limits { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.calc-stats > div, .calc-limits > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.calc-stats dt, .calc-limits dt { color: var(--ink-2); }
.calc-stats dd, .calc-limits dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.calc-sub { font-size: 17px; letter-spacing: -0.01em; margin-top: 6px; }
.calc-split { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: -8px; }
.calc-split th, .calc-split td { padding: 8px 0; text-align: left; font-weight: 500; vertical-align: top; }
.calc-split tbody th { color: var(--ink-2); padding-right: 12px; width: 100%; }
.calc-split td { text-align: right; white-space: nowrap; padding-left: 12px; color: var(--ink-2); }
.calc-split .calc-total th, .calc-split .calc-total td { font-weight: 700; color: var(--ink); border-top: 1px solid var(--ink); padding-top: 10px; }
.calc-bar { display: block; height: 8px; margin-top: 6px; border-radius: 4px; background: #e2e2de; overflow: hidden; }
.calc-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.calc-total .calc-bar > span { background: var(--ink); }
.calc-warn { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(179,38,30,0.08); color: #8C1D18; font-size: 14px; line-height: 1.45; }
.calc-warn[hidden] { display: none; }
.calc-cta { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid var(--rule); }
.calc-cta p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.calc-cta .btn { align-self: flex-start; }
.calc-method ul { margin-bottom: 18px; }
.calc-method li { margin-bottom: 10px; }
.calc-mini { display: none; }
@media (max-width: 980px){
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .calc-mini {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .calc-mini.show { transform: none; }
  .calc-mini span { color: rgba(255,255,255,0.7); }
  .calc-mini strong { font-size: 16px; white-space: nowrap; }
}
@media (max-width: 600px){
  .calc-group { grid-template-columns: 1fr; }
  .calc-cta .btn { align-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .calc-mini { transition: none; } }

/* ---------- Статьи ---------- */
.doc-hero h1 .blue { color: var(--accent); }
.article-meta { margin-top: 20px; font-size: 14px; color: var(--mute); }
.toc { max-width: 780px; margin-bottom: 40px; padding: 24px 28px; background: var(--bg-soft); border-radius: 16px; }
.toc ol { margin: 12px 0 0; padding-left: 22px; columns: 2; column-gap: 40px; font-size: 15px; line-height: 1.45; }
.toc li { margin-bottom: 8px; break-inside: avoid; }
.toc a:hover { color: var(--accent); }
@media (max-width: 640px){ .toc { padding: 20px; } .toc ol { columns: 1; } }
.article-body h2 { scroll-margin-top: 96px; }
.article-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: clamp(18px, 1.6vw, 21px); letter-spacing: -0.015em; line-height: 1.25; margin: 32px 0 12px; color: var(--ink); }
.doc-body .formula {
  margin: 8px 0 18px; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--bg-soft);
  border-radius: 0 12px 12px 0; font-family: 'JetBrains Mono', monospace; font-size: 15px; line-height: 1.5; color: var(--ink);
}
.doc-body .table-scroll { overflow-x: auto; margin: 8px 0 18px; }
.doc-body .table-scroll table { margin: 0; }
@media (max-width: 480px){
  .article-body th { letter-spacing: 0.03em; font-size: 11px; }
  .article-body th, .article-body td { padding-right: 10px; }
}
.doc-body .num { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-body .unit-table { max-width: 520px; }
.doc-body .unit-table tr.total td { border-top: 1px solid var(--ink); border-bottom: 0; font-weight: 700; color: var(--ink); }
.doc-body ol li::marker { font-weight: 700; }
.doc-body .article-tool { margin: 20px 0 8px; padding: 20px 24px; background: var(--bg-soft); border-radius: 16px; }
.doc-body .article-tool a { font-weight: 600; }
.next-card .n-lead { font-size: 15px; line-height: 1.5; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
