/* ============================================================
   Поток — дизайн-система (по hi-fi хэндоффу valmax-стиль)
   ============================================================ */

:root {
  --bg: #ffffff;
  --surface: #f4f5ef;
  --canvas: #ecede7;
  --ink: #13140f;
  --ink-soft: #3a3c33;
  --muted: #76786c;
  --line: #e6e7e0;
  --accent: #c4f23a;
  --accent-hover: #b6e62b;
  --accent-ink: #13140f;
  --dark: #13140f;
  --dark-2: #1c1e16;
  --dark-line: #2c2f25;
  --on-dark: #a9ac9f;
  --on-dark-muted: #9ea193;

  --r-sm: 10px;
  --r-md: 13px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 28px;
  --r-pill: 100px;

  --container: 1280px;
  --pad: 40px;

  --shadow-card: 0 34px 60px -28px rgba(19, 20, 15, 0.35);
  --shadow-badge: 0 8px 20px -6px rgba(0, 0, 0, 0.3);

  --ease: 180ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html { overflow-x: clip; }

/* ---------- Hero load-in animation ---------- */
@keyframes potokHeroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
[data-anim] { animation: potokHeroIn .7s cubic-bezier(.22,.61,.36,1) both; }
[data-anim].d1 { animation-delay: .08s; }
[data-anim].d2 { animation-delay: .16s; }
[data-anim].d3 { animation-delay: .24s; }
[data-anim].d4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) { [data-anim] { animation: none !important; } }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--ink); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 90px 0 0; }
.section--soft { background: var(--surface); padding-bottom: 72px; }
.section--dark { background: var(--dark); color: #fff; padding: 84px 0; }
/* Цветные полноширотные плашки (светлые/тёмные) отделяем от предыдущей секции — единообразно */
.section + .section--soft, .section + .section--dark { margin-top: 56px; }

.center { text-align: center; }
.muted { color: var(--muted); }
.flow > * + * { margin-top: 16px; }

/* ---------- Typography ---------- */
h1, .h1 {
  font-size: clamp(40px, 9vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
}
h2, .h2 {
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.section--dark h2 { font-size: clamp(30px, 5.5vw, 48px); line-height: 1.06; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; font-weight: 800; }
h4 { font-size: 15px; font-weight: 700; }
p { font-size: 18px; line-height: 1.55; }

.lead { font-size: clamp(18px, 2.4vw, 21px); line-height: 1.5; color: var(--ink-soft); font-weight: 500; }
h1 + .lead, h2 + .lead, h3 + .lead { margin-top: 20px; }
.section--dark .lead { color: var(--on-dark); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.section--dark .eyebrow { color: var(--on-dark-muted); }

.section__head { max-width: 720px; margin-bottom: 54px; }
.section__head .lead { margin-top: 18px; }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 32px;
}
.section__head--row h2 { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 17px; line-height: 1;
  padding: 17px 28px; border-radius: var(--r-md);
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2c22; }
/* Компактная кнопка только в шапке (под высоту «пилюли») */
.site-header .btn--dark { padding: 13px 22px; font-size: 15px; }
.btn--dark svg path { stroke: var(--accent); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { padding: 11px 18px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn[disabled] { background: #ebece5; color: #a6a89c; cursor: not-allowed; }
.btn[disabled] svg path { stroke: #a6a89c; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 700; color: var(--ink);
  border-bottom: 2px solid var(--accent); padding-bottom: 4px; white-space: nowrap;
  transition: gap var(--ease);
}
.link-arrow:hover { gap: 13px; }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 14px; z-index: 50; margin-top: 14px;
  background: transparent; border: none;
  padding: 0 20px;
}
.site-header .container {
  height: 68px; display: flex; align-items: center;
  justify-content: space-between; gap: 32px;
  max-width: 1300px; padding: 0 14px 0 30px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 12px 34px -20px rgba(19, 20, 15, 0.22);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled .container { background: rgba(255, 255, 255, 0.95); box-shadow: 0 16px 40px -18px rgba(19, 20, 15, 0.30); }
.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo__img { height: 28px; width: auto; display: block; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo__text { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a, .nav .dropbtn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 15.5px; font-weight: 600; color: var(--ink-soft);
  background: none; border: none; transition: color var(--ease);
}
.nav a:hover, .nav .dropbtn:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }

.has-drop { position: relative; }
.dropmenu {
  position: absolute; top: calc(100% + 14px); left: -16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 10px; min-width: 280px; list-style: none;
  box-shadow: var(--shadow-card); opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: var(--ease);
}
.has-drop:hover .dropmenu, .has-drop:focus-within .dropmenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropmenu a {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--r-sm); color: var(--ink); font-weight: 700;
}
.dropmenu a small { font-size: 13px; font-weight: 500; color: var(--muted); }
.dropmenu a:hover { background: var(--surface); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.burger {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  border-radius: var(--r-md); background: #fff; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%);
  transition: var(--ease);
}
.burger span::before { transform: translate(-50%, -8px); }
.burger span::after { transform: translate(-50%, 6px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 64px; }
.hero h1 { max-width: 1060px; }
.hero .lead { margin-top: 30px; max-width: 680px; }
.hero__cta { margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero__note { margin-top: 22px; font-size: 15px; color: var(--muted); }

.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 15px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 34px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- Metric plates ---------- */
.metric-plates { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plate {
  border-radius: 20px; padding: 30px 30px 26px; min-height: 172px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface);
}
.plate--accent { background: var(--accent); }
.plate--dark { background: var(--ink); color: #fff; }
.plate__num { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plate__num--sm { font-size: 28px; line-height: 1.05; letter-spacing: -0.02em; }
.plate__label { margin-top: 8px; font-size: 15.5px; font-weight: 600; color: var(--muted); }

/* Компактные метрики внутри двухколоночного блока (.split) — без кривых переносов */
.split .metric-plates { grid-template-columns: 1fr; gap: 12px; align-self: center; }
.split .metric-plates .plate { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 18px; padding: 22px 26px; }
.split .metric-plates .plate > svg { flex-shrink: 0; }
.split .metric-plates .plate__num { font-size: 30px; white-space: nowrap; }
.split .metric-plates .plate__num--sm { font-size: 21px; white-space: normal; }
.split .metric-plates .plate__label { margin-top: 4px; }
.plate--accent .plate__label { color: var(--ink-soft); }
.plate--dark .plate__label { color: var(--on-dark-muted); }

/* ---------- Markers band ---------- */
.markers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 40px; }
.marker { display: flex; gap: 16px; }
.icon-plate {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 13px; background: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.icon-plate svg [stroke]:not([stroke="none"]) { stroke: var(--ink); }
.icon-plate svg [fill]:not([fill="none"]) { fill: var(--ink); }
.icon-plate--lg { width: 54px; height: 54px; border-radius: 15px; }
.marker h3 { font-size: 18px; font-weight: 700; }
.marker p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Service cards grid ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scard {
  border-radius: var(--r-xl); padding: 32px; min-height: 230px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #fff; border: 1px solid var(--line);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.scard:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -22px rgba(19, 20, 15, 0.22); border-color: #d7d9cf; }
.scard__top { display: flex; justify-content: space-between; align-items: flex-start; }
.scard__top .icon-plate { background: var(--accent); }
/* на лаймовых карточках плашка не должна сливаться — делаем тёмной с лайм-иконкой */
.scard--accent .icon-plate { background: var(--ink); }
.scard--accent .icon-plate svg [stroke]:not([stroke="none"]) { stroke: var(--accent); }
.scard--accent .icon-plate svg [fill]:not([fill="none"]) { fill: var(--accent); }
.scard__top svg:last-child { transition: transform var(--ease); }
.scard:hover .scard__top svg:last-child { transform: translate(3px, -3px); }
.scard h3 { font-size: 22px; }
.scard p { margin-top: 9px; font-size: 15px; color: var(--muted); }
.scard--feature {
  grid-column: span 2; background: var(--ink); color: #fff; padding: 36px; min-height: 280px;
  border-color: transparent;
}
.scard--accent { border-color: transparent; }
.scard--feature:hover { background: var(--dark-2); }
.scard--feature h3 { font-size: clamp(26px, 4vw, 34px); }
.scard--feature p { font-size: 17px; color: var(--on-dark); max-width: 560px; }
.scard--accent { background: var(--accent); color: var(--ink); }
.scard--accent:hover { background: var(--accent-hover); }
.scard--accent p { color: var(--ink-soft); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  padding: 7px 13px; border-radius: var(--r-pill); background: var(--accent); color: var(--ink);
}
.badge--dark { background: var(--ink); color: #fff; }

/* ---------- Dark metrics grid ---------- */
.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.metrics-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dmetric { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 18px; padding: 28px; }
.dmetric__num { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.dmetric p { margin-top: 10px; font-size: 15.5px; color: var(--on-dark); }
.dmetric--accent { background: var(--accent); color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.dmetric--accent strong { margin-top: 18px; font-size: 16px; line-height: 1.45; font-weight: 700; }

/* ---------- Cases ---------- */
.case-feature {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid var(--line); border-radius: var(--r-2xl); overflow: hidden; margin-bottom: 16px;
}
.case-feature--rev { grid-template-columns: 1.1fr 0.9fr; }
@media (max-width: 900px) { .case-feature__visual { order: -1; min-height: 220px; } }
.case-feature__story { background: var(--ink); color: #fff; padding: 44px; display: flex; flex-direction: column; }
.case-feature__story h3 { margin-top: 28px; font-size: 30px; }
.case-feature__story p { margin-top: 14px; font-size: 16px; color: var(--on-dark); max-width: 380px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); background: var(--surface); padding: 6px 11px; border-radius: var(--r-pill); }
.tag--dark { color: #c7c9bd; background: transparent; border: 1px solid var(--dark-line); }
.tag--accent { color: var(--ink); background: var(--accent); }

.case-metrics { margin-top: auto; padding-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cmetric { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 14px; padding: 18px; }
.cmetric__label { font-size: 12px; font-weight: 700; color: #8b8e81; text-transform: uppercase; letter-spacing: 0.05em; }
.cmetric__val { margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.cmetric__delta { margin-top: 10px; display: flex; align-items: baseline; gap: 7px; }
.cmetric__delta .from { font-size: 22px; font-weight: 700; color: #6e7165; }
.cmetric__delta .to { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }

.case-feature__visual { background: var(--surface); padding: 44px; display: flex; align-items: center; justify-content: center; }
.browser { width: 100%; max-width: 560px; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.browser__bar { height: 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.browser__dots { display: flex; gap: 7px; }
.browser__dots span { width: 11px; height: 11px; border-radius: 50%; background: #e2e3dc; }
.browser__url { flex: 1; height: 22px; background: var(--surface); border-radius: 7px; display: flex; align-items: center; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); }
.browser__shot { display: block; width: 100%; height: 312px; object-fit: cover; background: var(--surface); }

.cases-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.case-card { border: 1px solid var(--line); border-radius: 24px; padding: 18px 18px 26px; transition: border-color var(--ease); }
.case-card:hover { border-color: var(--ink); }
.case-card__media { display: block; position: relative; border-radius: var(--r-lg); overflow: hidden; }
.case-card__media img { display: block; width: 100%; height: 220px; object-fit: cover; background: var(--surface); transition: transform .5s var(--ease); }
a.case-card__media:hover img { transform: scale(1.04); }
.case-card__badge { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 800; padding: 9px 14px; border-radius: var(--r-pill); box-shadow: var(--shadow-badge); }
.case-card__badge--dark { background: var(--ink); color: #fff; }
.case-card__body { padding: 0 8px; }
.case-card__body .tags { margin-top: 20px; }
.case-card h3 { margin-top: 14px; font-size: 21px; }
.case-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.case-card .link-arrow { margin-top: 16px; border-bottom: none; padding-bottom: 0; }

/* ---------- CTA + form ---------- */
.cta-block { background: var(--dark); border-radius: var(--r-2xl); padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; color: #fff; }
.cta-block h2 { color: #fff; }
.cta-block--center { grid-template-columns: 1fr; text-align: center; justify-items: center; max-width: 860px; margin-left: auto; margin-right: auto; }
.cta-block--center h2 { max-width: 620px; }
.cta-block--center .lead { max-width: 560px; }
.cta-block .lead { color: var(--on-dark); margin-top: 20px; max-width: 420px; }
.checklist { margin-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.checklist li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; color: #d6d8ce; list-style: none; }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Killer offer ---------- */
.killer { background: var(--accent); border-radius: var(--r-2xl); padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; overflow: hidden; }
.killer__decor { position: absolute; top: -40px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(19, 20, 15, 0.06); }
.killer__main { position: relative; }
.killer__badge { display: inline-flex; align-items: center; gap: 9px; background: var(--ink); color: var(--accent); font-size: 13px; font-weight: 700; padding: 9px 16px; border-radius: var(--r-pill); margin-bottom: 24px; }
.killer__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.killer__title { font-size: clamp(34px, 5vw, 54px); line-height: 1; letter-spacing: -0.035em; font-weight: 800; color: var(--ink); }
.killer__lead { margin-top: 20px; font-size: 19px; line-height: 1.5; color: #2a2c22; font-weight: 600; max-width: 460px; }
.killer__cta { margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.killer__note { font-size: 15px; font-weight: 700; color: #2a2c22; }
.killer__timeline { position: relative; display: flex; flex-direction: column; gap: 14px; }
.tl-step { background: #fff; border-radius: 18px; padding: 24px 26px; display: flex; align-items: center; gap: 20px; }
.tl-step--dark { background: var(--ink); color: #fff; }
.tl-step__icon { flex-shrink: 0; width: 58px; height: 58px; border-radius: 15px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.tl-step__when { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.tl-step__when--accent { color: var(--accent); }
.tl-step__title { margin-top: 3px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tl-step__desc { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.tl-step__desc--on-dark { color: var(--on-dark); }
.tl-arrow { display: flex; justify-content: center; }

/* ---------- Forms ---------- */
.form { background: #fff; border-radius: var(--r-xl); padding: 34px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 8px; }
.field label .opt { color: var(--muted); font-weight: 600; }
.input, .textarea, select.input {
  width: 100%; height: 54px; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 0 18px; font-size: 16px; font-family: inherit; font-weight: 500; color: var(--ink);
  background: #fff; outline: none; transition: border-color var(--ease);
}
.textarea { height: 108px; padding: 16px 18px; resize: none; }
.input:focus, .textarea:focus, select.input:focus { border: 2px solid var(--ink); padding: 0 17px; }
.textarea:focus { padding: 15px 17px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2376786c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px; }
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); font-weight: 500; cursor: pointer; margin-top: 2px; }
.consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--ink); flex-shrink: 0; }
.consent a { color: var(--ink-soft); text-decoration: underline; }
.form .btn { margin-top: 6px; height: 56px; padding: 0; }
.field-error { display: none; margin-top: 6px; font-size: 13px; color: #c0392b; font-weight: 600; }
.field.invalid .input, .field.invalid .textarea { border-color: #c0392b; }
.field.invalid .field-error { display: block; }
.form__success { display: none; text-align: center; padding: 12px 0; }
.form.is-sent .form__success { display: block; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: var(--r-xl); padding: 30px; }
.step__n { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 18px; }
.step h3 { margin-top: 20px; font-size: 20px; }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---------- Bullets / ticks ---------- */
.ticks { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5; }
.ticks svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.ticks.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.section--dark .ticks li { color: #e7e8e0; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; background: #fff; }
.plan--hit { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan__tag { position: absolute; top: 24px; right: 24px; }
.plan__name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.plan--hit .plan__name { color: var(--on-dark-muted); }
.plan__lead { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--ink); }
.plan--hit .plan__lead { color: #fff; }
.plan__price { margin-top: 6px; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.plan__price small { font-size: 16px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.plan--hit .plan__price small { color: var(--on-dark-muted); }
.plan__desc { margin-top: 10px; font-size: 15px; color: var(--muted); }
.plan--hit .plan__desc { color: var(--on-dark); }
.plan .ticks { margin: 24px 0; flex-grow: 1; }
.plan .ticks li { font-size: 15px; }
.plan .btn--block { margin-top: auto; }
.plan--hit .ticks svg path { stroke: var(--accent); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; cursor: pointer; list-style: none; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%2313140f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0; padding-top: 14px; font-size: 16px; color: var(--ink-soft); max-width: 760px; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs li { display: flex; align-items: center; gap: 8px; }
.crumbs li + li::before { content: "/"; color: var(--line); }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink-soft); }

/* ---------- Page hero (inner) ---------- */
.page-hero { padding: 28px 0 12px; }
.page-hero h1 { max-width: 1000px; font-size: clamp(34px, 5.6vw, 60px); margin-top: 18px; text-wrap: balance; }
.page-hero .lead { margin-top: 24px; max-width: 680px; }
.page-hero .hero__cta { margin-top: 32px; }

/* ---------- Prose (blog / legal) ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 20px; }
.prose h2 { font-size: clamp(26px, 4vw, 34px); margin-top: 44px; }
.prose h3 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 700; }

/* ---------- Article (blog detail) ---------- */
.art-head { max-width: 820px; margin: 0 auto; padding: 40px var(--pad) 0; }
.art-head .crumbs { padding-top: 0; margin-bottom: 30px; }
.art-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 700; padding: 7px 14px; border-radius: var(--r-pill); margin-bottom: 20px; }
.art-head h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; letter-spacing: -0.03em; max-width: 740px; }
.art-meta { margin-top: 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.art-meta__author { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--ink-soft); }
.art-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--ink); }
.art-meta__dot { width: 5px; height: 5px; border-radius: 50%; background: #c9cabf; }
.art-meta__item { font-size: 15px; font-weight: 600; color: var(--muted); }
.art-cover { max-width: 1080px; margin: 36px auto 0; padding: 0 var(--pad); }
.art-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: var(--r-2xl); background: var(--surface); display: block; }

.article-prose { max-width: 760px; margin: 0 auto; padding: 48px var(--pad) 0; }
.article-prose > * + * { margin-top: 18px; }
.article-prose .art-lead { font-size: 21px; line-height: 1.65; color: var(--ink); font-weight: 600; }
.article-prose p { font-size: 18px; line-height: 1.75; color: #2a2c22; font-weight: 500; }
.article-prose h2 { font-size: clamp(26px, 3.4vw, 30px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; margin-top: 46px; }
.article-prose h3 { font-size: 22px; font-weight: 800; margin-top: 32px; }
.article-prose ul, .article-prose ol { margin-top: 18px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.article-prose li { position: relative; padding-left: 32px; font-size: 17px; line-height: 1.6; color: #2a2c22; font-weight: 500; }
.article-prose li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 4px; background: var(--accent); }
.article-prose a { color: var(--ink); font-weight: 700; border-bottom: 2px solid var(--accent); }
.article-prose blockquote { margin: 40px 0; padding: 28px 32px; background: var(--surface); border-radius: 20px; border-left: 4px solid var(--accent); }
.article-prose blockquote p { font-size: 23px; line-height: 1.45; font-weight: 700; color: var(--ink); margin: 0; }

.art-cta { max-width: 760px; margin: 48px auto 0; padding: 0 var(--pad); }
.art-cta__inner { background: var(--accent); border-radius: var(--r-2xl); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.art-cta h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.art-cta p { margin-top: 8px; font-size: 15.5px; line-height: 1.5; color: #2a2c22; font-weight: 600; }

.related-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rpost { display: flex; flex-direction: column; gap: 16px; }
.rpost__media { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.rpost__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpost__tag { position: absolute; top: 14px; left: 14px; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; padding: 7px 13px; border-radius: var(--r-pill); }
.rpost__meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.rpost h3 { margin-top: 8px; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.18; }

.cta-band { background: var(--dark); border-radius: var(--r-2xl); padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; color: #fff; }
.cta-band h2 { color: #fff; font-size: clamp(30px, 4vw, 42px); line-height: 1.07; }
.cta-band p { margin-top: 16px; font-size: 18px; line-height: 1.5; color: var(--on-dark); font-weight: 500; max-width: 560px; }

/* ---------- Blog cards ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; transition: border-color var(--ease); }
.post:hover { border-color: var(--ink); }
.post__meta { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.post h3 { margin-top: 14px; font-size: 22px; }
.post p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.post .link-arrow { margin-top: 20px; border-bottom: none; padding-bottom: 0; }

/* ---------- Related services ---------- */
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 84px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-grid p { font-size: 15px; color: var(--muted); max-width: 280px; margin-top: 18px; }
.footer-col__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 18px; }
.footer-col__links { display: flex; flex-direction: column; gap: 12px; font-size: 15.5px; font-weight: 600; color: var(--ink-soft); }
.footer-col__links a:hover { color: var(--ink); }
.footer-phone { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.footer-bottom { padding-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ============================================================
   Responsive — mobile-first collapse
   ============================================================ */
/* Шапка: сворачиваем навигацию в бургер раньше, чтобы не вылезала из «пилюли» */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  /* backdrop-filter создаёт containing-block для position:fixed → пока меню открыто, убираем его,
     чтобы выпадающая панель считалась от вьюпорта, а не от «пилюли» шапки */
  .site-header.menu-open .container { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open .nav {
    display: flex; position: fixed; inset: 92px 0 0; flex-direction: column;
    align-items: flex-start; gap: 4px; background: #fff; padding: 24px var(--pad);
    overflow-y: auto; z-index: 49;
  }
  .site-header.menu-open .nav a, .site-header.menu-open .nav .dropbtn { font-size: 20px; padding: 12px 0; }
  /* Подменю «Услуги» — аккордеон: свёрнуто по умолчанию, чтобы меню влезало без скролла */
  .site-header.menu-open .dropmenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; min-width: 0;
    max-height: 0; overflow: hidden; padding: 0 0 0 12px;
    transition: max-height .32s ease;
  }
  .site-header.menu-open .has-drop.open .dropmenu { max-height: 560px; padding: 2px 0 8px 12px; }
  .site-header.menu-open .dropbtn svg { transition: transform .3s ease; }
  .site-header.menu-open .has-drop.open .dropbtn svg { transform: rotate(180deg); }
}
/* На телефонах в шапке — лого слева + бургер справа; дублирующую CTA-кнопку прячем */
@media (max-width: 700px) {
  .site-header .header-actions .btn--dark { display: none; }
}

@media (max-width: 900px) {
  :root { --pad: 20px; }
  .section { padding-top: 56px; }
  .section--soft { padding-bottom: 56px; }
  .section--dark { padding: 64px 0; }
  .section + .section--soft, .section + .section--dark { margin-top: 40px; }

  .metric-plates, .markers, .cards-3, .steps, .pricing, .posts, .metrics-2,
  .cases-2, .related, .ticks.cols, .related-posts { grid-template-columns: 1fr; }
  /* На лендингах у гридов инлайновый grid-template-columns (repeat 2/3) — перебиваем его на мобильных */
  .markers[style], .metrics-2[style], .cards-3[style], .steps[style], .pricing[style] { grid-template-columns: 1fr !important; }

  .cta-band { padding: 36px 28px; }
  .art-cta__inner { padding: 28px 24px; }
  .scard--feature { grid-column: span 1; }

  .split, .case-feature, .cta-block, .killer { grid-template-columns: 1fr; gap: 32px; }
  .killer { padding: 32px 24px; }
  /* колонки не должны раздуваться шире контентной зоны (иначе карточки съезжают в паддинг) */
  .killer__main, .killer__timeline { min-width: 0; }
  .case-feature__story { padding: 32px; }
  .case-feature__visual { padding: 24px; }
  .case-metrics { gap: 10px; }

  .section__head--row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .cta-block { padding: 36px 28px; }
  .hero { padding: 20px 0 40px; }
  .form { padding: 24px; }
}

@media (max-width: 560px) {
  .case-metrics { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cmetric__val, .dmetric__num { font-size: 34px; }
  .plate__num { font-size: 40px; }
}

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.review { background: var(--surface); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.review__stars { color: var(--accent); font-size: 16px; letter-spacing: 3px; }
.review__text { font-size: 16px; line-height: 1.55; color: var(--ink-soft); font-weight: 500; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--ink); flex-shrink: 0; }
.review__name { font-weight: 700; font-size: 15px; }
.review__role { font-size: 13.5px; color: var(--muted); }

/* ---------- Promo strip ---------- */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; background: var(--accent); color: var(--ink); border-radius: var(--r-xl); padding: 22px 30px; }
.promo__main { display: flex; align-items: center; gap: 14px; }
.promo__badge { flex-shrink: 0; width: 44px; height: 44px; border-radius: 13px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.promo__text { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.promo__text span { display: block; font-size: 14px; font-weight: 600; color: #2a2c22; margin-top: 3px; letter-spacing: 0; }

/* ---------- Plan price range ---------- */
.plan__range { font-size: 13.5px; color: var(--muted); margin-top: 6px; font-weight: 600; }
.plan--hit .plan__range { color: var(--on-dark-muted); }

/* ---------- Hero with orb (homepage) ---------- */
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero__grid h1 { max-width: none; font-size: clamp(27px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.hero__visual { position: relative; min-height: 520px; }
.hero__orb-mask { position: absolute; inset: 0; -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 50%, #000 46%, transparent 100%); mask-image: radial-gradient(ellipse 72% 66% at 50% 50%, #000 46%, transparent 100%); }
.hero__orb-mask potok-orb { display: block; width: 100%; height: 520px; }
.hero__chip { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 15px 20px; box-shadow: 0 20px 44px -22px rgba(19,20,15,0.28); }
.hero__chip--top { top: 58px; left: 14px; animation: potokFloat 5s ease-in-out infinite; }
.hero__chip--bottom { bottom: 56px; right: 14px; background: var(--ink); color: #fff; animation: potokFloat 5.6s ease-in-out infinite .8s; }
.hero__chip__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.hero__chip--bottom .hero__chip__eyebrow { color: var(--on-dark-muted); }
.hero__chip__eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero__chip__num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
@keyframes potokFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Blog hub cards with live covers ---------- */
.post--cover { padding: 0; overflow: hidden; }
.post__cover { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.post__cover potok-cover { position: absolute; inset: 0; display: block; }
.post__tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; padding: 7px 13px; border-radius: var(--r-pill); }
.post__body { padding: 26px; display: flex; flex-direction: column; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 0; }
  .hero__visual { display: none; }

  /* Отзывы — горизонтальный слайдер на мобильном */
  .reviews {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 14px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .reviews .review { scroll-snap-align: start; }
}

/* ---------- Нишевые лендинги ---------- */
.lp-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; margin-top: 22px; }
.lp-hero h1 { margin-top: 0; }
.lp-hero .lead { margin-top: 18px; }
.lp-hero .hero__cta { margin-top: 28px; }
.lp-viz { position: relative; height: 300px; margin-bottom: 18px; }
.lp-viz potok-med, .lp-viz potok-tooth { display: block; width: 100%; height: 300px; -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 52%, transparent 100%); }
.lp-viz .hero__chip--top { top: 6px; left: 0; }
.lp-viz .hero__chip--bottom { bottom: 6px; right: 0; }
.lp-viz .hero__chip__num { font-size: 24px; }
.lp-viz--lg { height: 500px; margin-bottom: 0; align-self: center; }
.lp-viz--lg potok-med, .lp-viz--lg potok-tooth { height: 500px; -webkit-mask-image: none; mask-image: none; }
@media (max-width: 900px) { .lp-viz { display: none; } }
.lp-hero:has(.lp-viz--lg) { align-items: center; }
/* Картинка-3D в герое (напр. зуб) вместо three.js-сцены */
.lp-viz--img { display: flex; align-items: center; justify-content: center; perspective: 1100px; }
.lp-viz--img::before { content: ""; position: absolute; inset: 0; margin: auto; width: 78%; height: 78%; border-radius: 50%; background: radial-gradient(closest-side, rgba(196,242,58,.22), rgba(196,242,58,.06) 55%, transparent 72%); filter: blur(6px); z-index: 0; }
.lp-viz--img img { position: relative; z-index: 1; display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 26px 46px rgba(0,0,0,.55)); transform-origin: 50% 50%; will-change: transform; animation: lpFloat 6s ease-in-out infinite; }
/* Фото в скруглённой рамке (для фуд-фото и т.п.) */
.lp-viz--photo { display: block; }
.lp-viz--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; display: block; box-shadow: 0 30px 60px -28px rgba(19,20,15,.5); }
@keyframes lpFloat { 0%,100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
/* когда работает интерактивный поворот — отключаем keyframe-парение (его заменяет JS) */
.lp-viz--img.is-live img { animation: none; }
@media (prefers-reduced-motion: reduce) { .lp-viz--img img { animation: none; } }
.lp-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.lp-form h2 { font-size: 20px; }
.lp-form .form { margin-top: 16px; padding: 0; background: transparent; }
.lp-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.lp-benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; gap: 13px; align-items: flex-start; }
.lp-benefit .icon-plate { flex-shrink: 0; }
.lp-benefit h3 { font-size: 15.5px; line-height: 1.2; }
.lp-benefit p { font-size: 13px; color: var(--muted); margin-top: 3px; }
.lp-cmp-wrap { overflow-x: auto; }
.lp-cmp { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 600px; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lp-cmp th, .lp-cmp td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.lp-cmp thead th { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.lp-cmp .lp-cmp__row-h { font-weight: 700; color: var(--ink); }
.lp-cmp .col-potok { background: var(--surface); color: var(--ink); font-weight: 700; }
.lp-cmp thead .col-potok { color: var(--ink); }
.lp-cmp tr:last-child td { border-bottom: none; }
.cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; align-items: stretch; }
.cmp-list { margin-top: 18px; display: flex; flex-direction: column; }
.cmp-list li { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.cmp-list li:first-child { border-top: none; padding-top: 4px; }
.cmp-list__k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cmp-list__v { font-size: 16px; font-weight: 700; color: var(--ink); }
.plan--hit .cmp-list li { border-top-color: var(--dark-line); }
.plan--hit .cmp-list__k { color: var(--on-dark-muted); }
.plan--hit .cmp-list__v { color: #fff; }
@media (max-width: 560px) { .cmp-cards { grid-template-columns: 1fr; } }
/* Killer-оффер на узких экранах: кнопка на всю ширину, чтобы не раздувала колонку */
@media (max-width: 560px) {
  .killer__cta { width: 100%; }
  .killer__cta .btn { width: 100%; justify-content: center; padding: 16px 20px; }
}
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: 1fr; gap: 28px; }
  .lp-benefits { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .lp-benefits { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .hero__chip { animation: none !important; }
}

/* ── Дизайн-акценты: редакционный стиль (нумерация секций, служебные подписи, вотермарк) ── */
.sec-num { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.sec-num b { color: var(--ink); }
.section--dark .sec-num { color: var(--on-dark-muted); }
.section--dark .sec-num b { color: #fff; }

.sec-meta { display: flex; gap: 16px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 34px; }
.sec-meta span { flex: 1; }
.sec-meta span:nth-child(2) { text-align: center; }
.sec-meta span:last-child { text-align: right; }
@media (max-width: 640px) { .sec-meta { flex-direction: column; gap: 6px; } .sec-meta span, .sec-meta span:nth-child(2), .sec-meta span:last-child { text-align: left; } }

.wm-wrap { position: relative; overflow: hidden; }
.wm-wrap > .container { position: relative; z-index: 1; }
.watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-weight: 800; font-size: clamp(140px, 26vw, 360px); letter-spacing: -.04em; line-height: 1; white-space: nowrap; pointer-events: none; user-select: none; z-index: 0; color: rgba(255,255,255,.05); }


/* ======= RIOTTERS STYLE — HERO ======= */
.hero { padding: 34px 0 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero__eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.rt-hero__head { display: grid; grid-template-columns: 1fr 1.9fr; align-items: end; gap: 28px; border-top: 1px solid var(--line); padding-top: 26px; min-height: 300px; }
.rt-hero__head .hero__eyebrow { grid-column: 1; align-self: start; }
.rt-hero__head h1 { grid-column: 2; margin: 0; font-size: clamp(40px, 8.2vw, 108px); line-height: .95; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }

.rt-hero__grid { display: grid; grid-template-columns: 1fr 1.9fr; gap: 28px; margin-top: 40px; align-items: stretch; }
.rt-hero__aside { display: flex; flex-direction: column; }
.rt-hero__aside .lead { font-size: 18px; max-width: none; }
.rt-hero__aside .hero__cta { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.rt-hero__aside .btn { justify-content: center; }
.rt-hero__aside .hero__note { margin-top: 6px; margin-bottom: 0; }

.rt-hero__show { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; transition: transform var(--ease); }
.rt-hero__show img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rt-hero__show:hover { transform: translateY(-4px); }
.rt-hero__tag { position: absolute; left: 16px; bottom: 16px; background: rgba(19,20,15,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 15px; border-radius: 100px; }

@media (max-width: 860px) {
  .rt-hero__head { grid-template-columns: 1fr; min-height: 0; gap: 16px; }
  .rt-hero__head h1, .rt-hero__head .hero__eyebrow { grid-column: 1; }
  .rt-hero__grid { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .rt-hero__aside .hero__cta { margin-top: 22px; padding-top: 0; }
}

/* ============================================================
   RIOTTERS EDITORIAL SYSTEM — главная
   ============================================================ */
.rt-sec { padding: 88px 0; }
.rt-sec--tight { padding: 40px 0 72px; }
.rt-rule { border-top: 1px solid var(--line); }

.rt-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 34px; }
.rt-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---- Big stat band ---- */
.rt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rt-stat { padding: 30px 28px 4px 0; border-right: 1px solid var(--line); }
.rt-stat:last-child { border-right: none; }
.rt-stat__num { font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.rt-stat__cap { margin-top: 12px; font-size: 15px; color: var(--muted); max-width: 22ch; }

/* ---- Editorial section head (label left / body right) ---- */
.rt-head { display: grid; grid-template-columns: 1fr 1.9fr; gap: 28px; align-items: start; }
.rt-head--row { grid-template-columns: 1fr 1.9fr auto; }
.rt-head__label { display: flex; align-items: baseline; gap: 12px; font-size: 15px; font-weight: 700; color: var(--ink); padding-top: 6px; }
.rt-num { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-head__body h2 { margin: 0; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; text-wrap: balance; }
.rt-lead { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; font-weight: 500; }
.rt-head__cta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rt-note { font-size: 14px; color: var(--muted); }
.rt-all { align-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; transition: gap var(--ease); }
.rt-all:hover { gap: 12px; }
.rt-all svg { width: 16px; height: 16px; }

/* ---- Cases: big media + tiny labels ---- */
.rt-cases { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 24px; }
.rt-case { display: block; }
.rt-case__media { border-radius: var(--r-xl); overflow: hidden; background: var(--ink); aspect-ratio: 16 / 10; }
.rt-case__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.rt-case:hover .rt-case__media img { transform: scale(1.03); }
.rt-case__meta { padding-top: 18px; }
.rt-case__top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.rt-case__name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.rt-case__cat { font-size: 13px; font-weight: 600; color: var(--muted); }
.rt-case__tags { margin-top: 6px; font-size: 14px; color: var(--muted); }
.rt-case__metrics { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.rt-case__metrics span { font-size: 13px; font-weight: 700; color: var(--ink); background: var(--surface); border-radius: 100px; padding: 6px 12px; }

/* ---- Hairline row list (services / guarantees) ---- */
.rt-list { margin-top: 48px; border-top: 1px solid var(--line); }
.rt-row { display: grid; grid-template-columns: 56px minmax(220px, 1.1fr) 2fr 24px; align-items: center; gap: 24px; padding: 28px 8px 28px 0; border-bottom: 1px solid var(--line); transition: padding-left var(--ease), background var(--ease); }
.rt-row:hover { padding-left: 16px; }
.rt-row__num { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-row__title { font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; }
.rt-row__desc { font-size: 16px; color: var(--muted); line-height: 1.45; }
.rt-row__arr { width: 22px; height: 22px; color: var(--ink); transition: transform var(--ease); }
.rt-row:hover .rt-row__arr { transform: translate(3px, -3px); }
.rt-row--static { cursor: default; }
.rt-row--static:hover { padding-left: 0; }
.rt-list--plain .rt-row { grid-template-columns: 56px minmax(200px, 1fr) 2fr; }

/* ---- Process steps ---- */
.rt-steps { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); }
.rt-step { padding: 28px 22px 0 0; border-right: 1px solid var(--line); min-height: 210px; }
.rt-step:last-child { border-right: none; }
.rt-step__num { font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent); width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.rt-step h3 { margin-top: 22px; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.rt-step p { margin-top: 10px; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* ---- Dark statement ---- */
.rt-sec--dark { background: var(--dark); color: #fff; border-top: none; }
.rt-sec--dark .rt-head__label { color: #fff; }
.rt-sec--dark .rt-num { color: var(--on-dark-muted); }
.rt-sec--dark .rt-lead { color: var(--on-dark); }

/* ---- Reviews as editorial quotes ---- */
.rt-quotes { margin-top: 48px; border-top: 1px solid var(--line); }
.rt-quote { display: grid; grid-template-columns: 1fr 1.9fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); margin: 0; }
.rt-quote figcaption { display: flex; flex-direction: column; gap: 3px; }
.rt-quote__name { font-size: 16px; font-weight: 800; }
.rt-quote__role { font-size: 14px; color: var(--muted); }
.rt-quote blockquote { margin: 0; font-size: clamp(19px, 2.2vw, 27px); line-height: 1.32; letter-spacing: -0.015em; font-weight: 600; text-wrap: pretty; }

/* ---- Big CTA band ---- */
.rt-cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.rt-cta h2 { margin: 0; font-size: clamp(30px, 5vw, 66px); line-height: 0.98; letter-spacing: -0.045em; font-weight: 800; text-wrap: balance; max-width: 18ch; }
.rt-cta__link { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(17px, 2vw, 22px); font-weight: 700; color: var(--ink); white-space: nowrap; transition: gap var(--ease); border-bottom: 2px solid var(--accent); padding-bottom: 6px; }
.rt-cta:hover .rt-cta__link { gap: 16px; }
.rt-cta__link svg { width: 22px; height: 22px; }

/* ---- Form ---- */
.rt-form { display: grid; grid-template-columns: 1fr 1.9fr; gap: 48px; align-items: start; }
.rt-form__aside .rt-head__label { margin-bottom: 20px; }
.rt-form__aside h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 800; }
.rt-form .form { max-width: 640px; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .rt-sec { padding: 60px 0; }
  .rt-stats { grid-template-columns: repeat(2, 1fr); }
  .rt-stat:nth-child(2) { border-right: none; }
  .rt-stat { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .rt-head, .rt-head--row, .rt-quote, .rt-form { grid-template-columns: 1fr; gap: 16px; }
  .rt-head--row { gap: 20px; }
  .rt-head__label { padding-top: 0; }
  .rt-cases { grid-template-columns: 1fr; margin-top: 36px; }
  .rt-steps { grid-template-columns: 1fr 1fr; }
  .rt-step { border-right: none; border-bottom: 1px solid var(--line); min-height: 0; padding: 24px 0; }
  .rt-form { gap: 32px; }
}
@media (max-width: 560px) {
  .rt-stats { grid-template-columns: 1fr; }
  .rt-stat, .rt-stat:nth-child(2) { border-right: none; }
  .rt-row { grid-template-columns: 40px 1fr; gap: 6px 16px; padding: 22px 0; }
  .rt-row__desc { grid-column: 2; }
  .rt-row__arr { display: none; }
  .rt-list--plain .rt-row { grid-template-columns: 40px 1fr; }
  .rt-steps { grid-template-columns: 1fr; }
  .rt-head__cta .btn { width: 100%; justify-content: center; }
}
.rt-quote figcaption { grid-column: 1; grid-row: 1; }
.rt-quote blockquote { grid-column: 2; grid-row: 1; }
.rt-sec--tight { border-top: none; }
@media (max-width: 920px) { .rt-quote figcaption, .rt-quote blockquote { grid-column: 1; grid-row: auto; } .rt-quote figcaption { order: 2; } }

/* ============================================================
   MOTION — плавный скролл, живые кейсы, бегущая строка
   ============================================================ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---- Живые кейсы ---- */
.rt-case__media, .rt-hero__show { position: relative; isolation: isolate; clip-path: inset(0 round var(--r-xl)); transition: clip-path .6s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.rt-case__media img, .rt-hero__show img { scale: 1.14; transition: scale .9s cubic-bezier(.22,.61,.36,1), filter .6s ease; will-change: translate, scale; }
.rt-case:hover .rt-case__media img { transform: none; }
.rt-case__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(19,20,15,.55)); opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.rt-case:hover .rt-case__media { clip-path: inset(10px round 18px); }
.rt-case:hover .rt-case__media img { scale: 1.22; filter: saturate(1.12) contrast(1.04); }
.rt-case:hover .rt-case__media::after { opacity: 1; }
.rt-hero__show:hover { transform: none; }
.rt-hero__show:hover img { scale: 1.2; }

.rt-case__name { position: relative; display: inline-flex; align-items: center; gap: 8px; }
.rt-case__name::before { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.rt-case__name::after { content: "↗"; font-size: .85em; opacity: 0; transform: translate(-6px, 4px); transition: opacity .3s ease, transform .4s cubic-bezier(.22,.61,.36,1); }
.rt-case:hover .rt-case__name::before { transform: scaleX(1); }
.rt-case:hover .rt-case__name::after { opacity: 1; transform: none; }
.rt-case__metrics span { transition: background .35s ease, transform .35s cubic-bezier(.22,.61,.36,1); }
.rt-case:hover .rt-case__metrics span { background: var(--accent); transform: translateY(-2px); }
.rt-case:hover .rt-case__metrics span:nth-child(2) { transition-delay: .06s; }
.rt-case:hover .rt-case__metrics span:nth-child(3) { transition-delay: .12s; }
/* соседние кейсы чуть гаснут — фокус на выбранном */
@media (hover: hover) {
  .rt-cases .rt-case { transition: filter .45s ease, opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1) !important; }
  .rt-cases:hover .rt-case { filter: opacity(.5) grayscale(.5); }
  .rt-cases .rt-case:hover { filter: none; }
}

/* ---- Курсор «Смотреть» ---- */
.rt-cursor { position: fixed; left: 0; top: 0; z-index: 9990; pointer-events: none; }
.rt-cursor > * { pointer-events: none; }
.rt-cursor::before { content: ""; position: absolute; left: -54px; top: -54px; width: 108px; height: 108px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.rt-cursor span, .rt-cursor svg { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); opacity: 0; transition: opacity .25s ease, transform .35s cubic-bezier(.22,.61,.36,1); color: var(--ink); }
.rt-cursor span { margin-top: -8px; font-size: 13px; font-weight: 800; white-space: nowrap; letter-spacing: -.01em; }
.rt-cursor svg { width: 18px; height: 18px; margin-top: 12px; }
.rt-cursor.is-on::before { transform: scale(1); }
.rt-cursor.is-on span, .rt-cursor.is-on svg { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: hover) and (pointer: fine) { .has-motion .rt-case__media, .has-motion .rt-hero__show { cursor: none; } }

.rt-cursor svg { max-width: none; min-width: 18px; }

/* ---- FAQ ---- */
.rt-faqs { margin-top: 48px; border-top: 1px solid var(--line); }
.rt-faq { border-bottom: 1px solid var(--line); }
.rt-faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 28px; align-items: center; gap: 24px; padding: 26px 0; }
.rt-faq summary::-webkit-details-marker { display: none; }
.rt-faq__q { margin: 0; font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.rt-faq__icon { width: 24px; height: 24px; transition: transform .35s cubic-bezier(.22,.61,.36,1), color .2s ease; }
.rt-faq summary:hover .rt-faq__icon { color: var(--ink); }
.rt-faq[open] .rt-faq__icon { transform: rotate(45deg); }
.rt-faq[open] summary .rt-row__num { color: var(--ink); }
.rt-faq__a { margin: -6px 0 0 80px; padding-bottom: 28px; max-width: 70ch; font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
@media (max-width: 560px) {
  .rt-faq summary { grid-template-columns: 34px 1fr 22px; gap: 12px; padding: 20px 0; }
  .rt-faq__a { margin-left: 46px; font-size: 16px; }
}

/* ---- Оживающие кейсы: видео поверх фото ---- */
.rt-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; scale: 1.14; transition: opacity .45s ease, scale .9s cubic-bezier(.22,.61,.36,1); pointer-events: none; will-change: translate, scale; }
.is-live > .rt-vid { opacity: 1; }
.rt-case:hover .rt-vid, .rt-hero__show:hover .rt-vid { scale: 1.2; }
@media (prefers-reduced-motion: reduce) { .rt-vid { display: none; } }

/* ---- Строки услуг: плавный hover, заголовок в одну строку ---- */
.rt-row { grid-template-columns: 56px max-content minmax(0, 1fr) 24px; column-gap: 40px; position: relative; isolation: isolate; }
.rt-list--plain .rt-row { grid-template-columns: 56px max-content minmax(0, 1fr); }
.rt-row__title { white-space: nowrap; }
.rt-row:hover, .rt-row--static:hover { padding-left: 0; }
a.rt-row::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; background: var(--surface); border-radius: 14px; transform: scaleX(0); transform-origin: left center; opacity: 0; transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .5s ease; }
a.rt-row .rt-row__num, a.rt-row .rt-row__title, a.rt-row .rt-row__desc { transition: transform .7s cubic-bezier(.22,.61,.36,1), color .5s ease; }
a.rt-row .rt-row__arr { transition: transform .7s cubic-bezier(.22,.61,.36,1), color .5s ease; }
a.rt-row:hover::before { transform: scaleX(1); opacity: 1; }
a.rt-row:hover .rt-row__num { transform: translateX(10px); color: var(--ink); }
a.rt-row:hover .rt-row__title { transform: translateX(14px); }
a.rt-row:hover .rt-row__desc { transform: translateX(8px); color: var(--ink-soft); }
a.rt-row:hover .rt-row__arr { transform: rotate(45deg); }
@media (max-width: 920px) { .rt-row { column-gap: 24px; } }
@media (max-width: 560px) {
  .rt-row, .rt-list--plain .rt-row { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  .rt-row__title { font-size: clamp(16px, 5vw, 20px); }
  a.rt-row::before { inset: 0 -10px; }
}
/* общая сетка: колонки описаний выровнены по самой длинной строке */
@supports (grid-template-columns: subgrid) {
  .rt-list { display: grid; grid-template-columns: 56px max-content minmax(0, 1fr) 24px; column-gap: 40px; }
  .rt-list--plain { grid-template-columns: 56px max-content minmax(0, 1fr); }
  .rt-list > .rt-row { grid-column: 1 / -1; grid-template-columns: subgrid; }
  @media (max-width: 920px) { .rt-list { column-gap: 24px; } }
  @media (max-width: 560px) { .rt-list, .rt-list--plain { grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; } }
}

/* ---- Кейсы: при наведении просто оживает фото — без зума, затемнений и размытия ---- */
.rt-case__media img, .rt-hero__show img, .rt-vid { scale: 1.07 !important; filter: none !important; }
.rt-case:hover .rt-case__media img, .rt-hero__show:hover img,
.rt-case:hover .rt-vid, .rt-hero__show:hover .rt-vid { scale: 1.07 !important; filter: none !important; }
.rt-case:hover .rt-case__media { clip-path: inset(0 round var(--r-xl)); }
.rt-case__media::after { display: none; }
@media (hover: hover) { .rt-cases:hover .rt-case, .rt-cases .rt-case:hover { filter: none; } }
.rt-vid { transition: opacity .35s ease; }

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — та же редакторская система, что и на главной
   ============================================================ */
:root { --ease: 380ms cubic-bezier(.22,.61,.36,1); --rt-col: calc((100% - 28px) / 2.9 + 28px); }
.btn { transition: background-color var(--ease), border-color var(--ease), color var(--ease), transform var(--ease), gap var(--ease); }
.btn:active { transform: scale(.98); }
.link-arrow, .crumbs a, .footer-col__links a, .nav a, .dropbtn { transition: color var(--ease), gap var(--ease), opacity var(--ease); }

/* ---- Шапка страницы: подпись/крошки слева, крупный заголовок справа ---- */
.page-hero { padding: 34px 0 80px; }
.page-hero > .container:not(:has(.lp-hero)) { display: grid; grid-template-columns: 1fr 1.9fr; column-gap: 28px; align-items: start; }
.page-hero > .container:not(:has(.lp-hero))::before { content: ""; grid-column: 1 / -1; grid-row: 1; height: 1px; background: var(--line); margin-bottom: 26px; }
.page-hero > .container:not(:has(.lp-hero)) > * { grid-column: 2; }
.page-hero > .container:not(:has(.lp-hero)) > .crumbs { grid-column: 1; grid-row: 2; padding-top: 10px; }
.page-hero > .container:not(:has(.lp-hero)) > h1 { grid-row: 2; }
.page-hero h1 { margin-top: 0; max-width: none; font-size: clamp(36px, 5.6vw, 76px); line-height: .98; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
.page-hero .lead { margin-top: 26px; max-width: 58ch; font-size: clamp(16px, 1.5vw, 19px); }
.page-hero .hero__cta { margin-top: 34px; }
.crumbs { padding-top: 0; font-size: 13.5px; font-weight: 600; }
.crumbs ol { gap: 6px; }
.crumbs li + li::before { color: #c9cabf; }
.page-hero:has(.lp-hero) > .container::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 26px; }
.page-hero:has(.lp-hero) .crumbs { margin-bottom: 8px; }

/* ---- Секции: белые, разделены тонкой линией ---- */
.section { padding: 88px 0; border-top: 1px solid var(--line); }
.section--soft { background: transparent; padding-bottom: 88px; }
.section--dark { border-top: none; padding: 96px 0; }
.page-hero + .section { border-top: none; padding-top: 24px; }

/* ---- Заголовок секции: номер слева, заголовок справа ---- */
main { counter-reset: psec; }
.section__head, .section__head--row { max-width: none; display: grid; grid-template-columns: 1fr 1.9fr; column-gap: 28px; align-items: start; margin-bottom: 56px; counter-increment: psec; }
.section__head::before, .section__head--row::before { content: counter(psec, decimal-leading-zero); grid-column: 1; grid-row: 1 / span 3; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.section__head > *, .section__head--row > * { grid-column: 2; }
.section__head--row { grid-template-columns: 1fr 1.9fr auto; }
.section__head--row > .link-arrow { grid-column: 3; grid-row: 1; align-self: start; margin-top: 12px; white-space: nowrap; }
.section__head h2, .section__head--row h2 { max-width: none; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -.04em; text-wrap: balance; }
.section__head .lead { margin-top: 22px; max-width: 56ch; }
.section > .container > .lead, .section > .container > .prose { margin-left: var(--rt-col); max-width: 62ch; }

/* ---- Плашки-преимущества: колонки с тонкой линией сверху ---- */
.markers { gap: 0 28px; border-top: none; padding-top: 0; }
.marker { flex-direction: column; gap: 18px; padding: 26px 0 8px; border-top: 1px solid var(--line); }
.marker h3 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.marker p { font-size: 15px; line-height: 1.5; }
.marker .icon-plate { width: 40px; height: 40px; border-radius: 11px; }

/* ---- Шаги: номер в лаймовом круге, линии вместо карточек ---- */
.steps { gap: 0 28px; }
.step { background: none; border-radius: 0; padding: 26px 0 0; border-top: 1px solid var(--line); }
.step__n { width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 800; }
.step h3 { margin-top: 22px; font-size: 19px; font-weight: 800; }
.section--dark .step { border-top-color: var(--dark-line); }

/* ---- Списки с галочками ---- */
.ticks.cols { gap: 0 28px; }
.ticks.cols li { border-top: 1px solid var(--line); padding: 18px 0; font-size: 16.5px; }
.section--dark .ticks.cols li { border-top-color: var(--dark-line); }

/* ---- Карточки услуг → номерные строки, как на главной ---- */
.cards-3, .related { display: grid; grid-template-columns: 48px max-content minmax(0, 1fr) 24px; column-gap: 40px; gap: 0 40px; border-top: 1px solid var(--line); counter-reset: srow; }
.cards-3 > .scard, .related > .scard { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-height: 0; padding: 26px 0; background: none; color: var(--ink); border: none; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; position: relative; isolation: isolate; counter-increment: srow; transform: none; }
.cards-3 > .scard .scard__top, .related > .scard .scard__top, .cards-3 > .scard > div:not(.scard__top), .related > .scard > div:not(.scard__top) { display: contents; }
.cards-3 > .scard::after, .related > .scard::after { content: counter(srow, decimal-leading-zero); grid-column: 1; grid-row: 1; font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; transition: transform .7s cubic-bezier(.22,.61,.36,1), color .5s ease; }
.cards-3 > .scard .icon-plate, .related > .scard .icon-plate, .cards-3 > .scard .badge { display: none; }
.cards-3 > .scard h3, .related > .scard h3 { grid-column: 2; grid-row: 1; margin: 0; font-size: clamp(20px, 2.2vw, 28px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; color: var(--ink); transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.cards-3 > .scard p, .related > .scard p { grid-column: 3; grid-row: 1; margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); max-width: none; font-weight: 500; transition: transform .7s cubic-bezier(.22,.61,.36,1), color .5s ease; }
.cards-3 > .scard svg, .related > .scard svg { grid-column: 4; grid-row: 1; width: 22px; height: 22px; justify-self: end; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.cards-3 > .scard svg path, .related > .scard svg path { stroke: var(--ink); }
.cards-3 > .scard::before, .related > .scard::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; background: var(--surface); border-radius: 14px; transform: scaleX(0); transform-origin: left center; opacity: 0; transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .5s ease; }
.cards-3 > .scard:hover, .related > .scard:hover { transform: none; box-shadow: none; background: none; }
.cards-3 > .scard:hover::before, .related > .scard:hover::before { transform: scaleX(1); opacity: 1; }
.cards-3 > .scard:hover::after, .related > .scard:hover::after { transform: translateX(10px); color: var(--ink); }
.cards-3 > .scard:hover h3, .related > .scard:hover h3 { transform: translateX(14px); }
.cards-3 > .scard:hover p, .related > .scard:hover p { transform: translateX(8px); color: var(--ink-soft); }
.cards-3 > .scard:hover svg, .related > .scard:hover svg { transform: rotate(45deg); }
.cards-3 > .scard--accent p { color: var(--ink); font-weight: 700; }
.cards-3 > .scard--accent::before { background: var(--accent); transform: scaleX(1); opacity: .55; }
.cards-3 > .scard--accent:hover::before { opacity: 1; }

/* ---- FAQ внутренних страниц — как на главной ---- */
.faq { max-width: none; border-top: 1px solid var(--line); counter-reset: faq; }
.faq details { padding: 0; counter-increment: faq; }
.faq summary { display: grid; grid-template-columns: 56px 1fr 24px; gap: 24px; align-items: center; padding: 26px 0; font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.faq summary::before { content: counter(faq, decimal-leading-zero); font-size: 14px; font-weight: 700; color: var(--muted); letter-spacing: 0; transition: color .4s ease; }
.faq details[open] summary::before { color: var(--ink); }
.faq summary::after { width: 24px; height: 24px; transition: transform .5s cubic-bezier(.22,.61,.36,1); }
.faq details.is-closing summary::after, .rt-faq.is-closing .rt-faq__icon { transform: none; }
.faq p { padding: 0 0 28px 80px; font-size: 17px; line-height: 1.55; max-width: calc(70ch + 80px); }

/* ---- Форма заявки: белая, текст слева, форма справа ---- */
.cta-block { background: none; color: var(--ink); border-radius: 0; padding: 0; grid-template-columns: 1fr 1.9fr; gap: 48px; align-items: start; }
.cta-block h2 { color: var(--ink); font-size: clamp(28px, 3.6vw, 46px); line-height: 1.0; letter-spacing: -.04em; }
.cta-block .lead { color: var(--ink-soft); max-width: 46ch; }
.cta-block .checklist li { color: var(--ink-soft); }
.cta-block .checklist svg path { stroke: var(--ink); }
.cta-block .form { max-width: 640px; padding: 0; }
.cta-block--center { grid-template-columns: 1fr; }

/* ---- CTA-полоса: крупный заголовок на белом ---- */
.cta-band { background: none; color: var(--ink); border-radius: 0; padding: 0; }
.cta-band h2 { color: var(--ink); font-size: clamp(30px, 5vw, 64px); line-height: .98; letter-spacing: -.045em; max-width: 18ch; }
.cta-band p { color: var(--ink-soft); }

/* ---- Блог: обложка + подписи, без рамок карточек ---- */
.posts { gap: 44px 24px; }
.post { border: none; border-radius: 0; padding: 0; transition: none; }
.post:hover { border-color: transparent; }
.post--cover { overflow: visible; }
.post__cover { border-radius: var(--r-xl); overflow: hidden; }
.post__cover > *, .rpost__media img { transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.post:hover .post__cover > *, .rpost:hover .rpost__media img { transform: scale(1.03); }
.post__body { padding: 18px 0 0 !important; }
.post h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; transition: color .4s ease; }
.post h3 a, .rpost h3 a { background: linear-gradient(var(--accent), var(--accent)) left 100% / 0 3px no-repeat; transition: background-size .6s cubic-bezier(.22,.61,.36,1); }
.post:hover h3 a, .rpost:hover h3 a { background-size: 100% 3px; }
.related-posts { gap: 24px; }

/* ---- Тарифы, промо, метрики, кейсы — единые радиусы и мягкие ховеры ---- */
.plan { border-radius: var(--r-xl); transition: border-color var(--ease), transform var(--ease); }
.plan:not(.plan--hit):hover { border-color: var(--ink); }
.promo { border-radius: var(--r-xl); }
.case-feature { border-radius: var(--r-xl); }
.case-feature__visual img { transition: transform .9s cubic-bezier(.22,.61,.36,1); }
.case-feature:hover .case-feature__visual img { transform: scale(1.03); }
.lp-benefits { gap: 0 28px; }
.lp-benefit { background: none; border: none; border-top: 1px solid var(--line); border-radius: 0; padding: 22px 0 4px; }

/* ---- Статьи ---- */
.art-head { max-width: 1280px; padding: 34px var(--pad) 0; display: grid; grid-template-columns: 1fr 1.9fr; column-gap: 28px; }
.art-head::before { content: ""; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: 26px; }
.art-head > * { grid-column: 2; }
.art-head > .crumbs { grid-column: 1; grid-row: 2; margin: 0; padding-top: 10px; }
.art-head > :nth-child(2) { grid-row: 2; }
.art-head h1 { max-width: none; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.0; letter-spacing: -.04em; }
.art-cover { max-width: 1280px; }
.art-cover img { border-radius: var(--r-xl); }

@media (max-width: 920px) {
  .page-hero > .container:not(:has(.lp-hero)), .art-head { grid-template-columns: 1fr; }
  .page-hero > .container:not(:has(.lp-hero)) > *, .page-hero > .container:not(:has(.lp-hero)) > .crumbs, .page-hero > .container:not(:has(.lp-hero)) > h1,
  .art-head > *, .art-head > .crumbs, .art-head > :nth-child(2) { grid-column: 1; grid-row: auto; }
  .page-hero > .container:not(:has(.lp-hero)) > .crumbs, .art-head > .crumbs { padding-top: 0; margin-bottom: 16px; }
  .section { padding: 60px 0; }
  .section__head, .section__head--row { grid-template-columns: 1fr; margin-bottom: 40px; }
  .section__head::before, .section__head--row::before { grid-row: auto; padding-top: 0; margin-bottom: 12px; }
  .section__head > *, .section__head--row > *, .section__head--row > .link-arrow { grid-column: 1; grid-row: auto; }
  .section__head--row > .link-arrow { margin-top: 18px; }
  .section > .container > .lead, .section > .container > .prose { margin-left: 0; }
  .cta-block { grid-template-columns: 1fr; gap: 32px; }
  .cards-3, .related { column-gap: 24px; }
}
@media (max-width: 560px) {
  .cards-3, .related { grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; }
  .cards-3 > .scard h3, .related > .scard h3 { font-size: clamp(16px, 5vw, 20px); }
  .cards-3 > .scard p, .related > .scard p { grid-column: 2; grid-row: 2; margin-top: 6px; font-size: 15px; }
  .cards-3 > .scard svg, .related > .scard svg { display: none; }
  .faq summary { grid-template-columns: 34px 1fr 22px; gap: 12px; padding: 20px 0; }
  .faq p { padding-left: 46px; font-size: 16px; }
}
/* статья: текст по правой колонке сетки, ширина строки — для чтения */
.art-head > .art-tag { justify-self: start; }
.article-prose, .art-cta { max-width: 1280px; padding-left: calc(var(--pad) + (min(100vw, 1280px) - 2 * var(--pad) - 28px) / 2.9 + 28px); padding-right: var(--pad); }
.article-prose > *, .art-cta__inner { max-width: 720px; }
@media (max-width: 920px) { .article-prose, .art-cta { padding-left: var(--pad); } }

/* ---- Кейсы на внутренних страницах — светлые, как на главной ---- */
.case-feature { border: none; border-radius: 0; overflow: visible; gap: 48px; align-items: center; margin-bottom: 88px; grid-template-columns: 1fr 1.35fr; }
.case-feature--rev { grid-template-columns: 1.35fr 1fr; }
.case-feature:last-child { margin-bottom: 0; }
.case-feature__story { background: none; color: var(--ink); padding: 0; }
.case-feature__story h3 { margin-top: 22px; font-size: clamp(24px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.case-feature__story p { color: var(--muted); max-width: 46ch; }
.case-feature__visual { position: relative; isolation: isolate; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); }
.case-feature__visual img { display: block; }
.case-feature:hover .case-feature__visual img { transform: none; }
.case-feature__visual .rt-vid { scale: 1 !important; }
.tag--dark { color: var(--ink-soft); border-color: var(--line); }
.case-metrics { padding-top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cmetric { background: var(--surface); border: none; padding: 16px 18px; }
.cmetric__label { color: var(--muted); }
.cmetric__val, .cmetric__delta .to { color: var(--ink); }
.cmetric__delta .from { color: #a3a597; }
.case-feature__story .link-arrow svg path { stroke: var(--ink); }
@media (max-width: 900px) { .case-feature, .case-feature--rev { grid-template-columns: 1fr; gap: 24px; margin-bottom: 64px; } }
@media (hover: hover) and (pointer: fine) { .has-motion a.case-feature__visual { cursor: none; } }
/* длинные слова в крупных заголовках не распирают страницу на телефоне */
.page-hero h1, .art-head h1, .section__head h2, .section__head--row h2, .rt-head__body h2, .rt-hero__head h1 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; min-width: 0; }
.page-hero > .container > *, .art-head > * { min-width: 0; }
@media (max-width: 560px) { .page-hero h1 { font-size: clamp(28px, 8.4vw, 40px); } }

/* ---- Лендинги ниш: фото в скруглённой рамке, как кейс на главной ---- */
.lp-viz--photo { height: 520px; border-radius: var(--r-xl); overflow: hidden; background: var(--surface); isolation: isolate; }
.lp-viz--photo::before { display: none; }
.lp-viz--photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; animation: none; filter: none; scale: 1.06; will-change: translate; }
@media (max-width: 900px) { .lp-viz.lp-viz--photo { display: block; height: auto; aspect-ratio: 4 / 3; margin: 28px 0 0; } }
.page-hero h1, .art-head h1, .section__head h2, .section__head--row h2, .rt-head__body h2, .rt-hero__head h1 { hyphens: manual; -webkit-hyphens: manual; }

/* ============================================================
   ДЕТАЛЬНАЯ СТРАНИЦА КЕЙСА /keysy/<slug>/
   ============================================================ */
.cd-cover-sec { padding: 0 0 8px; }
.cd-cover { position: relative; isolation: isolate; display: block; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface); }
.cd-cover img, .cd-cover .rt-vid { width: 100%; height: 100%; object-fit: cover; display: block; scale: 1 !important; }
@media (hover: hover) and (pointer: fine) { .has-motion a.cd-cover { cursor: none; } }
.cd-intro { border-top: none; }
.cd-meta { display: grid; grid-template-columns: 1fr 1.9fr; gap: 28px; align-items: start; }
.cd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cd-fact__t { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.cd-fact ul { list-style: none; display: flex; flex-direction: column; gap: 7px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.cd-fact p { font-size: 15.5px; font-weight: 600; }
.cd-fact .link-arrow { font-size: 15.5px; }
.cd-summary { font-size: clamp(22px, 2.6vw, 34px); line-height: 1.24; letter-spacing: -.02em; font-weight: 700; text-wrap: pretty; }
.cd-stats { margin-top: 72px; grid-template-columns: repeat(3, 1fr); }
.cd-block { display: grid; grid-template-columns: 1fr 1.9fr; gap: 28px; padding: 44px 0; border-top: 1px solid var(--line); }
.cd-block:first-child { border-top: none; padding-top: 0; }
.cd-block__t { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.cd-block__c p { font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 64ch; }
.cd-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.cd-block__c p + .cd-list { margin-top: 26px; }
.cd-list li { position: relative; padding: 15px 0 15px 26px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; line-height: 1.4; }
.cd-list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.cd-list--res li { font-size: 18px; font-weight: 700; }
.cd-review { margin: 0; }
.cd-review blockquote { margin: 0; font-size: clamp(20px, 2.2vw, 27px); line-height: 1.35; font-weight: 600; letter-spacing: -.015em; }
.cd-review figcaption { margin-top: 20px; display: flex; flex-direction: column; gap: 3px; font-size: 15px; color: var(--muted); }
.cd-review figcaption b { color: var(--ink); font-size: 16px; }
.cd-next { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: 44px; border-radius: var(--r-xl); overflow: hidden; color: #fff; }
.cd-next img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cd-next::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19,20,15,.05) 20%, rgba(19,20,15,.78)); }
.cd-next__label { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.75); }
.cd-next__name { margin-top: 10px; display: inline-flex; align-items: center; gap: 18px; font-size: clamp(34px, 6vw, 84px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.cd-next__name svg { width: .55em; height: .55em; flex-shrink: 0; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.cd-next:hover .cd-next__name svg { transform: rotate(45deg); }
.cd-next__sub { margin-top: 14px; font-size: 16px; color: rgba(255,255,255,.8); max-width: 60ch; }
@media (max-width: 920px) {
  .cd-meta, .cd-block { grid-template-columns: 1fr; gap: 18px; }
  .cd-stats { grid-template-columns: 1fr 1fr; }
  .cd-next { min-height: 300px; padding: 28px; }
}
@media (max-width: 560px) {
  .cd-facts, .cd-list { grid-template-columns: 1fr; }
  .cd-stats { grid-template-columns: 1fr; }
  .cd-cover { aspect-ratio: 4 / 3; }
}
.case-feature__story .link-arrow + .link-arrow { margin-top: 12px !important; }
