/* =========================================================
   Flow Agency — лендинг «Перезапуск маркетинга»
   Мобильная версия по макету 375, десктоп по макету 1440.
   ========================================================= */

:root {
  /* Цвета */
  --ink: #0b0b0d;
  --ink-2: #151519;      /* карточки на тёмном */
  --ink-3: #1c1c21;      /* плашки на тёмном */
  --line-dark: #2a2a31;
  --bar: #34343c;
  --graphite: #2e2e32;
  --lime: #d4f36b;
  --lime-press: #bfdd52;
  --muted: #9a99a0;
  --muted-2: #6e6d75;
  --muted-3: #8e8c93;
  --paper: #f6f6f6;      /* светлый фон секций */
  --cream: #f2f5e6;      /* плашки на светлом */
  --line-light: #d8dec4;
  --white: #ffffff;

  /* Шрифты */
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;

  /* Сетка */
  --container: 1280px;
  --gutter: 16px;

  /* Движение */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 80px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: 2px; border-radius: 10px; }
.on-light :focus-visible { outline-color: rgba(11,11,13,.35); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.is-locked { overflow: hidden; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { position: relative; overflow: hidden; }
.section--dark { background: var(--ink); color: var(--white); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; min-height: 52px;
  border-radius: 10px; border: 1.5px solid transparent;
  font-weight: 500; font-size: 16px; line-height: 1.25; white-space: nowrap;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn--block { width: 100%; }

/* на тёмном */
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: transparent; border-color: var(--lime); color: var(--lime); }
.btn--lime:active { background: rgba(212,243,107,.12); border-color: var(--lime); color: var(--lime); }

.btn--outline-dark { border: 1px solid rgba(255,255,255,.32); color: var(--white); }
.btn--outline-dark:hover { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.btn--outline-dark:active { background: var(--lime-press); border-color: var(--lime-press); color: var(--ink); }

/* на светлом */
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--lime); color: var(--ink); }
.btn--ink:active { background: var(--lime-press); color: var(--ink); }

.btn--outline-light { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline-light:hover { background: var(--ink); color: var(--white); }
.btn--outline-light:active { background: var(--line-dark); border-color: var(--line-dark); color: var(--white); }

.btn--lime-light { background: var(--lime); color: var(--ink); }
.btn--lime-light:hover { background: var(--graphite); color: var(--white); }

.btn[disabled] { background: var(--line-dark); color: var(--muted-2); border-color: transparent; cursor: not-allowed; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label { opacity: .0; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Пометки от руки ---------- */
.hand {
  font-family: var(--hand); font-weight: 700; line-height: .95; white-space: nowrap;
  pointer-events: none; user-select: none;
}

/* =========================================================
   Шапка
   ========================================================= */
.header {
  position: fixed; z-index: 50; top: 12px; left: 0; right: 0;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: 40px;
  height: 60px; padding: 6px 6px 6px 18px;
  background: rgba(21,21,25,.85);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line-dark); border-radius: 16px;
  color: var(--white);
}
.header__logo { flex: none; display: block; width: 40px; }
.header__logo img { width: 100%; height: auto; }
.header__nav { display: none; }
.header__cta { display: none; }

.burger {
  margin-left: auto; position: relative;
  width: 46px; height: 46px; border-radius: 10px; background: var(--lime);
}
.burger span {
  position: absolute; right: 14px; height: 2px; border-radius: 1px; background: var(--ink);
  transition: width .2s var(--ease), transform .25s var(--ease), top .25s var(--ease);
}
.burger span:nth-child(1) { top: 19px; width: 18px; }
.burger span:nth-child(2) { top: 25px; width: 11px; }
.burger:hover span:nth-child(2) { width: 18px; }
.burger[aria-expanded="true"] span { width: 18px; top: 22px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: rotate(-45deg); }

@media (min-width: 1024px) {
  .header { top: 16px; }
  .header__bar { height: 74px; padding: 10px 10px 10px 28px; border-radius: 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .header__logo { width: 56px; }
  .header__nav { display: flex; flex: 1; justify-content: center; gap: 32px; }
  .header__cta { display: inline-flex; }
  .burger { display: none; }
}

/* Ссылка меню с рукописным подчёркиванием */
.nav-link {
  position: relative; display: inline-block; padding: 4px 0 9px;
  font-size: 15px; line-height: 1.5; color: var(--muted); transition: color .2s var(--ease);
}
.nav-link svg { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 8px; overflow: visible; }
.nav-link path {
  fill: none; stroke: var(--lime); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 120; stroke-dashoffset: 120; transition: stroke-dashoffset .35s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--white); }
.nav-link:hover path, .nav-link.is-active path { stroke-dashoffset: 0; }

/* Мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column;
  padding: 12px var(--gutter) 28px;
  background: var(--ink); color: var(--white);
  overflow: hidden auto;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility 0s .25s;
}
.menu.is-open { opacity: 1; visibility: visible; transition: opacity .25s var(--ease); }
.menu::before {
  content: ""; position: absolute; left: -22px; top: 576px; width: 420px; height: 360px; border-radius: 50%;
  background: rgba(212,243,107,.12); filter: blur(140px); pointer-events: none;
}
.menu .header__bar { position: relative; }
.menu__list { position: relative; margin-top: 24px; }
.menu__link {
  display: flex; align-items: center; gap: 14px; padding: 20px 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 26px; font-weight: 500; line-height: 36px; letter-spacing: -.02em;
}
.menu__num { font-size: 12px; font-weight: 500; color: var(--lime); line-height: 1; padding-top: 6px; width: 16px; }
.menu__arrow { margin-left: auto; width: 20px; height: 20px; color: var(--muted); transition: transform .2s var(--ease), color .2s; }
.menu__link:hover .menu__arrow { color: var(--lime); transform: translate(2px,-2px); }
.menu__cta { position: relative; margin-top: auto; padding-top: 32px; }
@media (min-width: 1024px) { .menu { display: none; } }

/* =========================================================
   Hero
   ========================================================= */
.hero { padding: 119px 0 40px; }
.hero__glow {
  position: absolute; left: -20px; top: 560px; width: 420px; height: 360px; border-radius: 50%;
  background: rgba(212,243,107,.12); filter: blur(140px); pointer-events: none;
}
.hero__body { position: relative; display: flex; flex-direction: column; gap: 24px; }
.hero__left { display: contents; }
.hero__title {
  font-size: 38px; line-height: 1; font-weight: 600; letter-spacing: -.03em; color: var(--white);
}
.hero__title span { display: block; }
.hero__lead { font-size: 17px; line-height: 1.5; color: var(--muted); }
.hero__actions { display: flex; flex-direction: column; gap: 10px; }
.hero__actions .btn { width: 100%; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__trust-item {
  padding: 8px 12px; border-radius: 999px; background: var(--ink-3);
  font-size: 13px; font-weight: 500; color: var(--white);
}
.hero__trust-item b { font-weight: 500; }
.hero__trust-item small { display: none; }

.dash {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: 22px;
  background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--white);
}
.dash__head { display: flex; align-items: center; justify-content: space-between; }
.dash__title { font-size: 14px; font-weight: 500; }
.dash__month { display: none; }
.dash__stats { display: flex; gap: 8px; }
.dash__stat {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: 14px; background: var(--ink-3);
}
.dash__stat:nth-child(3) { display: none; }
.dash__label { font-size: 12px; color: var(--muted-2); }
.dash__value { font-size: 24px; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; }
.dash__delta { font-size: 12px; font-weight: 500; color: var(--lime); }
.dash__chart { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.dash__chart i { flex: 1; border-radius: 4px; background: var(--bar); height: var(--hm, 0); }
.dash__chart i:last-child { background: var(--lime); }
.dash__chart i.d-only { display: none; }
.dash__rows { display: none; }

.sticker {
  position: absolute; z-index: 2; width: 78px; height: 78px;
  top: -27px; right: 13px; transform: rotate(10deg);
}
.sticker__disc {
  position: absolute; inset: 0; border-radius: 50%; background: var(--white);
  box-shadow: 0 6px 14px rgba(0,0,0,.28), 0 2px 4px rgba(0,0,0,.18);
}
.sticker__ring { position: absolute; inset: 6%; width: 88%; height: 88%; }
.sticker__badge { position: absolute; inset: 19%; width: 62%; height: 62%; object-fit: contain; }
.sticker__seal {
  position: absolute; top: 2%; right: -1.5%; width: 26.8%; height: 26.8%; border-radius: 50%;
  background: var(--lime); display: grid; place-items: center;
}
.sticker__seal svg { width: 55%; height: 55%; }

.hero__note, .hero__note-arrow { display: none; }

@media (min-width: 768px) {
  .hero__actions { flex-direction: row; }
  .hero__actions .btn { width: auto; }
}

@media (min-width: 1024px) {
  .hero { padding: 214px 0 64px; }
  .hero__glow {
    left: calc(50% + 380px - 380px); top: 180px; width: 760px; height: 520px;
    background: radial-gradient(closest-side, rgba(212,243,107,.16), rgba(212,243,107,0));
    filter: blur(40px);
  }
  .hero__body { flex-direction: row; align-items: center; gap: 64px; }
  .hero__left { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 32px; }
  .hero__title { font-size: clamp(56px, 5.28vw, 76px); line-height: .98; letter-spacing: -.035em; }
  .hero__title span:last-child { line-height: .95; }
  .hero__lead { font-size: 16px; max-width: 560px; }
  .hero__actions { gap: 12px; }
  .hero__trust { gap: 32px; padding-top: 16px; }
  .hero__trust-item { padding: 0; background: none; display: flex; flex-direction: column; gap: 4px; }
  .hero__trust-item b { font-size: 18px; font-weight: 600; line-height: 1.5; }
  .hero__trust-item small { display: block; font-size: 13px; color: var(--muted-2); line-height: 1.5; }
  .hero__trust-item .m-only { display: none; }

  .dash { flex: none; width: min(540px, 42vw); gap: 20px; padding: 28px; border-radius: 28px; }
  .dash__title { font-size: 15px; }
  .dash__month { display: block; padding: 6px 12px; border-radius: 999px; background: var(--ink-3); font-size: 12px; font-weight: 500; color: var(--muted); }
  .dash__stats { gap: 10px; }
  .dash__stat { gap: 6px; padding: 14px 16px; border-radius: 16px; }
  .dash__stat:nth-child(3) { display: flex; }
  .dash__value { font-size: 26px; line-height: 1.15; }
  .dash__chart { gap: 8px; height: 164px; padding-top: 8px; }
  .dash__chart i { border-radius: 6px; height: var(--hd); }
  .dash__chart i.d-only { display: block; }
  .dash__rows { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
  .dash__row { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--ink-3); }
  .dash__row span:first-child { font-weight: 500; }
  .dash__row span:last-child { color: var(--muted); }

  .sticker { width: 126px; height: 126px; top: 221px; left: -66px; right: auto; transform: none; }
  .sticker__disc { box-shadow: 0 10px 22px rgba(0,0,0,.3), 0 3px 6px rgba(0,0,0,.2); }

  .hero__note {
    display: block; position: absolute; left: -336px; top: -90px; z-index: 2;
    width: 218px; height: 90px;
  }
  .hero__note .hand { position: absolute; left: 6px; top: 4px; font-size: 38px; color: var(--lime); transform: rotate(-5deg); transform-origin: left top; }
  .hero__note-arrow { display: block; position: absolute; left: -86px; top: -66px; width: 92px; height: 76px; z-index: 2; }
}

/* =========================================================
   01b · Платформы (бегущая строка)
   ========================================================= */
.d-br { display: none; }
@media (min-width: 1024px) { .d-br { display: inline; } }

.platforms { padding: 32px 0; border-bottom: .5px solid #b3b3b3; }
.platforms__caption { font-size: 13px; font-weight: 500; color: #6b6a70; text-align: center; line-height: 1.3; }
.marquee {
  --tile-w: 117px; --tile-h: 56px; --gap: 12px; --fade: 48px;
  position: relative; overflow: hidden; margin-top: 16px; height: var(--tile-h);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.marquee__track { display: flex; gap: var(--gap); width: max-content; animation: marquee 40s linear infinite; }
.marquee__track li { flex: none; width: var(--tile-w); height: var(--tile-h); }
.marquee__track img { width: 100%; height: 100%; object-fit: contain; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }

@media (min-width: 1024px) {
  .platforms { padding: 48px 0; }
  .platforms__caption { font-size: 15px; }
  .marquee { --tile-w: 150.5px; --tile-h: 72px; --gap: 16px; --fade: 160px; margin-top: 24px; }
}

/* =========================================================
   01c · Хаос подрядчиков
   ========================================================= */
.chaos { padding: 48px 0 24px; text-align: center; }
.chaos__title { font-size: 30px; line-height: 1.06; font-weight: 500; letter-spacing: -.025em; }
.chaos__lead { margin-top: 16px; font-size: 17px; line-height: 1.4; color: #6b6a70; }
.chaos__collage { display: block; margin: 28px auto 0; width: calc(100% - var(--gutter) * 2); max-width: 343px; }
.chaos__collage img { width: 100%; height: auto; }

@media (min-width: 768px) {
  .chaos__collage { max-width: 1440px; width: 100%; }
}
@media (min-width: 1024px) {
  .chaos { padding: 56px 0 0; }
  .chaos__title { font-size: clamp(40px, 3.5vw, 50px); line-height: 1.04; }
  .chaos__lead { margin: 44px auto 0; max-width: 1010px; font-size: 20px; }
  .chaos__collage { margin-top: 0; }
}

/* =========================================================
   Общие элементы секций
   ========================================================= */
.m-only { display: block; }
.d-only { display: none; }
@media (min-width: 1024px) { .m-only { display: none !important; } .d-only { display: block; } }

.sec-head { display: flex; flex-direction: column; gap: 12px; }
.sec-title { font-size: 30px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; }
.sec-lead { font-size: 17px; line-height: 1.45; color: #6b6a70; }
.section--dark .sec-lead { color: var(--muted); }
@media (min-width: 1024px) {
  .sec-head { gap: 16px; }
  .sec-title { font-size: clamp(44px, 3.9vw, 56px); line-height: 1.02; }
  .sec-lead { font-size: 22px; line-height: 1.4; }
}

/* Блок, который масштабирует макетную «картинку» фиксированного размера под ширину */
.scale-box { position: relative; width: 100%; aspect-ratio: var(--w) / var(--h); }
.scale-box__inner {
  position: absolute; left: 0; top: 0;
  width: calc(var(--w) * 1px); height: calc(var(--h) * 1px);
  transform: scale(var(--k, 1)); transform-origin: 0 0;
}

/* Горизонтальная карусель со свайпом (мобилка), на десктопе — сетка */
.carousel { margin-inline: calc(var(--gutter) * -1); }
.carousel__track {
  display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: none; }
.carousel__nav { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; padding-inline: var(--gutter); }
.carousel__dots { display: flex; gap: 6px; align-items: center; }
.carousel__dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line-light); transition: width .25s var(--ease), background-color .25s; }
.carousel__dots i.is-active { width: 22px; background: var(--ink); }
.section--dark .carousel__dots i { background: var(--line-dark); }
.section--dark .carousel__dots i.is-active { background: var(--lime); }
.carousel__hint { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: #6b6a70; }
@media (min-width: 1024px) {
  .carousel { margin-inline: 0; }
  .carousel__track { overflow: visible; padding: 0; scroll-snap-type: none; }
  .carousel__track > * { flex: 1 1 0; min-width: 0; }
  .carousel__nav { display: none; }
}

/* =========================================================
   02 · Когда каждый канал живёт сам по себе
   ========================================================= */
.split { background: var(--cream); padding: 56px 0; }
.split__grid { display: flex; flex-direction: column; gap: 28px; margin-top: 28px; }
.split__col { display: flex; flex-direction: column-reverse; gap: 16px; }
.split__text h3 { font-size: 19px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.split__text p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: #6b6a70; }
.split__card { border-radius: 22px; overflow: hidden; }
.split__card--old { background: #e7ecd3; padding: 16px; }
.split__card--flow { background: var(--ink); }
.split .carousel { margin-top: 28px; }

/* Схема «как обычно» */
.broken__lines { position: absolute; left: 0; top: 0; }
.broken__q { position: absolute; font-size: 28px; font-weight: 600; color: #5a523e; line-height: 1.2; }
.broken__node {
  position: absolute; width: 140px; padding: 10px 16px; border-radius: 14px; background: var(--white);
  display: flex; flex-direction: column; gap: 2px; line-height: 1.45; white-space: nowrap;
}
.broken__node b { font-size: 14px; font-weight: 500; color: #1d1c20; }
.broken__node small { font-size: 11px; color: var(--muted-3); }
.broken__node i {
  position: absolute; padding: 3px 8px; border-radius: 999px; background: #d3d0c8;
  font-style: normal; font-size: 12px; font-weight: 600; line-height: 1.45; color: #5a523e;
}
.broken--m .broken__q { font-size: 22px; color: #a9a59c; }
.broken--m .broken__node { width: 118px; padding: 8px 12px; border-radius: 12px; gap: 1px; }
.broken--m .broken__node b { font-size: 13px; color: #6b6a70; }
.broken--m .broken__node small { font-size: 10px; }

/* Схема «с Flow» — десктоп */
.flowd__svg { position: absolute; left: 0; top: 0; overflow: visible; }
.flowd__curve { stroke: var(--lime); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.flowd__joint { fill: var(--lime); opacity: 0; transition: opacity .3s .4s; }
.flowd__pill {
  position: absolute; left: 0; width: 150px; padding: 10px 16px; border-radius: 14px; background: var(--ink-3);
  font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--white); white-space: nowrap;
  opacity: 0; transform: translateX(-24px);
  transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 70ms);
}
.flowd__hub, .flowm__hub {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 2px; line-height: 1.45; white-space: nowrap;
  background: #24242a; color: var(--white); opacity: .5;
  transition: background-color .35s var(--ease), color .35s var(--ease), opacity .35s var(--ease);
}
.flowd__hub { left: 238px; top: 124px; width: 154px; padding: 14px 18px; border-radius: 16px; }
.flowd__hub b, .flowm__hub b { font-size: 18px; font-weight: 600; }
.flowd__hub small, .flowm__hub small { font-size: 11px; color: var(--muted); transition: color .35s; }
.flowd__result, .flowm__result {
  position: absolute; background: var(--white); line-height: 1.45; white-space: nowrap;
  opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.flowd__result { left: 426px; top: 126.5px; width: 146px; padding: 12px 14px; border-radius: 16px; display: flex; flex-direction: column; gap: 4px; transform: translateX(-14px); }
.flowd__result b, .flowm__result b { font-size: 16px; font-weight: 600; color: var(--ink); }
.flowd__result small, .flowm__result small { font-size: 11px; color: #6b6a70; }
.flowd__dot {
  position: absolute; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  offset-rotate: 0deg; offset-distance: 0%; opacity: 0;
}

/* Схема «с Flow» — мобилка */
.flowm__pill {
  position: absolute; width: 151px; padding: 10px 12px; border-radius: 12px; background: var(--ink-3);
  font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--white); text-align: center; white-space: nowrap;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: calc(var(--i) * 70ms);
}
.flowm__line { position: absolute; left: 170.5px; width: 2px; height: 26px; background: var(--lime); transform: scaleY(0); transform-origin: top; transition: transform .5s var(--ease); }
.flowm__hub { left: 16px; top: 128px; width: 311px; padding: 12px 16px; border-radius: 14px; background: var(--lime); color: var(--ink); }
.flowm__hub b { font-size: 17px; }
.flowm__hub small { color: var(--ink); }
.flowm__result { left: 16px; top: 221px; width: 311px; padding: 12px 16px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; transform: translateY(10px); }
.flowm__result small { font-size: 12px; }

/* Шаги анимации */
[data-diagram].step-1 .flowd__pill, [data-diagram].step-1 .flowm__pill { opacity: 1; transform: none; }
[data-diagram].step-2 .flowd__curve:not(.flowd__curve--out) { stroke-dashoffset: 0; }
[data-diagram].step-2 .flowd__joint:not(.flowd__joint--out) { opacity: 1; }
[data-diagram].step-2 .flowd__hub { background: var(--lime); color: var(--ink); opacity: 1; }
[data-diagram].step-2 .flowd__hub small { color: var(--ink); }
[data-diagram].step-2 .flowm__hub { opacity: 1; }
[data-diagram].step-2 .flowm__line:not(.flowm__line--2) { transform: scaleY(1); }
[data-diagram].step-3 .flowd__curve--out { stroke-dashoffset: 0; }
[data-diagram].step-3 .flowd__joint--out { opacity: 1; }
[data-diagram].step-3 .flowm__line--2 { transform: scaleY(1); }
[data-diagram].step-3 .flowd__result, [data-diagram].step-3 .flowm__result { opacity: 1; transform: none; }
[data-diagram].loop .flowd__dot { animation: dot-run 2.4s var(--ease) infinite; }
[data-diagram].loop .flowd__dot--out { animation-name: dot-run-out; }
@keyframes dot-run {
  0%   { offset-distance: 0%; opacity: 0; }
  8%   { opacity: 1; }
  45%  { offset-distance: 100%; opacity: 1; }
  52%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes dot-run-out {
  0%, 44% { offset-distance: 0%; opacity: 0; }
  50%  { opacity: 1; }
  80%  { offset-distance: 100%; opacity: 1; }
  88%, 100% { offset-distance: 100%; opacity: 0; }
}

/* Пары «было → стало» */
.pairs__item {
  width: 296px; min-height: 105px; padding: 16px 18px; border-radius: 18px; background: var(--white);
  display: flex; flex-direction: column; gap: 8px; line-height: 1.45;
}
.pairs__item s { font-size: 13px; color: var(--muted-3); }
.pairs__item p { font-size: 16px; font-weight: 500; }

@media (min-width: 1024px) {
  .split { padding: 90px 0; }
  .split__grid { flex-direction: row; gap: 16px; margin-top: 48px; }
  .split__col { flex: 1; min-width: 0; flex-direction: column; gap: 24px; }
  .split__card { border-radius: 28px; padding: 30px; }
  .split__card--old { border: 1px solid #d3d3d3; }
  .split__text { padding-left: 4px; }
  .split__text h3 { font-size: 24px; line-height: 1.18; }
  .split__text p { margin-top: 8px; font-size: 16px; }
  .split .carousel { margin-top: 48px; }
  .carousel__track.pairs { gap: 16px; }
  .pairs__item { width: auto; min-height: 120px; padding: 20px 22px; border-radius: 20px; gap: 10px; }
  .pairs__item s { font-size: 14px; }
  .pairs__item p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  [data-diagram] .flowd__dot { display: none; }
}
.split__card--flow { padding: 0; }
@media (min-width: 1024px) { .split__card--flow { padding: 30px; } }

/* =========================================================
   03 · Решение (два формата)
   ========================================================= */
.sec-head--center { text-align: center; align-items: center; }
.sec-cta { display: flex; justify-content: center; margin-top: 28px; }
.sec-cta .btn { width: 100%; }
@media (min-width: 768px) { .sec-cta .btn { width: auto; } }

.solution { padding: 56px 0; background: linear-gradient(180deg, #17181c, #2a2d34); }
.solution__glow {
  position: absolute; left: 50%; top: 420px; width: 360px; height: 300px; transform: translateX(-50%);
  border-radius: 50%; background: rgba(201,210,255,.12); filter: blur(120px); pointer-events: none;
}
.solution .sec-head { gap: 16px; }
.solution .sec-lead { line-height: 1.5; }
.solution__carousel { margin-top: 28px; }
.solution .carousel__dots i { background: #5a5a63; }
.solution .carousel__hint { color: var(--muted); }

.format {
  width: 296px; min-height: 705px; padding: 20px 20px 24px; border-radius: 18px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; color: var(--ink);
}
.format--blue { background: linear-gradient(180deg, #dce4ff, #eee7fb); }
.format--lime { background: var(--lime); }
.format__head { display: flex; flex-direction: column; gap: 14px; }
.format__num { font-size: 13px; font-weight: 500; color: #55545c; line-height: 1.5; }
.format__title { font-size: 28px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; }
.format__text { font-size: 15px; line-height: 1.5; color: #55545c; }
.format__scheme--tree { display: flex; flex-direction: column; align-items: center; }
.format__stem { width: 2px; height: 22px; background: var(--ink); }
.format__scheme--duo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.format__plus {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-size: 18px; font-weight: 600; line-height: 1;
}
.format__fit {
  position: relative; padding: 10px 16px 10px 33px; border-radius: 14px; background: var(--ink);
  font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--white);
}
.format__fit::before { content: ""; position: absolute; left: 16px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--lime); }

.team { width: 100%; padding: 14px 16px 16px; border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.team--dark { background: var(--ink); }
.team--light { background: rgba(255,255,255,.6); }
.team__label { font-size: 12px; font-weight: 500; line-height: 1.5; color: #55545c; }
.team__label--lime { color: var(--lime); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li, .chip {
  padding: 8px 12px; border-radius: 999px; background: #26262c; color: var(--white);
  font-size: 13px; font-weight: 500; line-height: 1.5; white-space: nowrap;
}
.chips--light li { background: var(--white); color: var(--ink); }
.chip--ink { background: var(--ink); }

@media (min-width: 1024px) {
  .solution { padding: 90px 0; }
  .solution__glow { display: none; }
  .solution .sec-lead { font-size: 20px; line-height: 1.22; max-width: 750px; }
  .solution__carousel { margin-top: 56px; padding: 12px; border: 1px solid var(--line-dark); border-radius: 32px; }
  .carousel__track.formats { gap: 12px; }
  .format { width: auto; min-height: 486px; padding: 36px; border-radius: 22px; }
  .format__title { font-size: 36px; }
  .format__text { font-size: 16px; }
  .format__scheme--duo { flex-direction: row; }
  .format__scheme--duo .team { flex: 1; min-width: 0; }
  .sec-cta { margin-top: 56px; }
}

/* =========================================================
   04 · Доверие и кейсы
   ========================================================= */
.trust { padding: 56px 0 32px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 40px; }
.stats li { display: flex; flex-direction: column; gap: 10px; padding: 24px 12px 24px 0; border-top: 1px solid var(--line-light); }
.stats li:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line-light); }
.stats b { font-size: 30px; line-height: 1.02; font-weight: 600; letter-spacing: -.03em; }
.stats span { font-size: 13px; line-height: 1.5; color: #6b6a70; }

.cases__head { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 40px; }
.cases__title { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.cases__arrows { display: none; gap: 16px; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: var(--white); border: 1px solid var(--line-light); color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.icon-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.icon-btn:disabled { opacity: .4; pointer-events: none; }
.cases { margin-top: 16px; }
.cases__track { padding-top: 4px; padding-bottom: 4px; }

.case-card {
  width: 296px; height: 316px; padding: 20px 14px 14px; border-radius: 22px; background: var(--white);
  border: 1.5px solid transparent; text-align: left;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.case-card:hover { border-color: var(--graphite); }
.case-card__head { display: flex; flex-direction: column; gap: 6px; padding-left: 8px; }
.case-card__ind { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted-3); }
.case-card__logo { font-size: 22px; font-weight: 600; line-height: 1.22; letter-spacing: -.01em; }
.case-card__metrics { display: flex; gap: 10px; }
.case-card__metric { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--cream); }
.case-card__metric b { font-size: 28px; line-height: 1.02; font-weight: 600; letter-spacing: -.03em; }
.case-card__metric span { font-size: 12px; line-height: 1.5; color: #6b6a70; }
.case-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line-light); font-size: 15px; font-weight: 500; }
.case-card__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-light); font-size: 18px; transition: background-color .2s, color .2s; }
.case-card:hover .case-card__arrow { background: var(--ink); color: var(--white); border-color: var(--ink); }

.advantages { display: flex; flex-direction: column; gap: 24px; margin-top: 40px; }
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv img { flex: none; width: 44px; height: 44px; }
.adv h4 { font-size: 19px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em; }
.adv p { margin-top: 4px; font-size: 15px; line-height: 1.5; color: #6b6a70; }

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stats li:nth-child(n) { padding: 24px 28px; border-left: 1px solid var(--line-light); }
  .stats li:first-child { padding-left: 0; border-left: 0; }
  .advantages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}
@media (min-width: 1024px) {
  .trust { padding: 90px 0; }
  .trust .sec-lead { font-size: 20px; line-height: 1.22; }
  .stats { margin-top: 72px; }
  .stats b { font-size: clamp(40px, 3.6vw, 52px); }
  .stats span { font-size: 15px; }
  .cases__head { margin-top: 72px; }
  .cases__title { font-size: 28px; line-height: 1.02; }
  .cases__arrows { display: flex; }
  .cases { margin: 72px 0 0; }
  .carousel.cases .carousel__track { overflow-x: auto; gap: 24px; padding: 4px 0 24px; scroll-snap-type: x mandatory; scroll-behavior: smooth; }
  .carousel.cases .carousel__track > * { flex: none; }
  .carousel.cases .carousel__nav { display: flex; justify-content: center; margin-top: 12px; padding: 0; }
  .carousel.cases .carousel__dots { gap: 8px; }
  .carousel.cases .carousel__dots i.is-active { width: 28px; }
  .carousel.cases .carousel__hint { display: none; }
  .case-card { width: 380px; height: 348px; padding: 24px 16px 16px; }
  .case-card__logo { font-size: 26px; }
  .case-card__metric { padding: 16px; }
  .case-card__metric b { font-size: 34px; }
  .case-card__metric span { font-size: 13px; }
  .advantages { grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 72px; }
}
/* «Кейсы» и стрелки: заголовок над каруселью на десктопе стоит выше, чем на мобилке */
@media (min-width: 1024px) { .cases__head + .cases { margin-top: 68px; } }

/* =========================================================
   Модальные окна (общая часть)
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(11,11,13,.72); opacity: 0; transition: opacity .25s var(--ease); }
.modal__panel { position: relative; opacity: 0; transform: translateY(16px); transition: opacity .25s var(--ease), transform .3s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  border: 1px solid var(--line-light); background: var(--white); color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.modal__close:hover { background: var(--graphite); border-color: var(--graphite); color: var(--white); }

/* Окно кейса (вариант A: тёмная обложка + шаги) */
.case-modal {
  width: 100%; margin-top: 48px; height: calc(100% - 48px); background: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
}
.case-modal .modal__close { top: 24px; right: 24px; background: transparent; border-color: rgba(255,255,255,.25); color: var(--white); }
.case-modal .modal__close:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.case-modal__body { padding: 8px 8px 0; }
.case { display: flex; flex-direction: column; color: var(--ink); }
.case[hidden] { display: none; }
.case__cover { display: flex; flex-direction: column; gap: 20px; padding: 16px 16px 24px; border-radius: 20px; background: var(--ink); color: var(--white); }
.case__tags { display: flex; flex-wrap: wrap; gap: 8px; padding-right: 56px; min-height: 44px; align-items: center; }
.case__tags li { padding: 7px 14px; border-radius: 999px; background: #1d1d22; font-size: 13px; font-weight: 500; }
.case__logo { align-self: flex-start; padding: 12px 18px; border-radius: 12px; background: #1d1d22; font-size: 14px; font-weight: 500; color: var(--muted); }
.case__title { font-size: 26px; line-height: 1.12; font-weight: 600; letter-spacing: -.02em; }
.case__stats { display: grid; grid-template-columns: repeat(3, 1fr); padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }
.case__stat { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 0 12px; border-left: 1px solid rgba(255,255,255,.12); }
.case__stat:first-child { padding-left: 0; border-left: 0; }
.case__stat:last-child { padding-right: 0; }
.case__stat b { font-size: clamp(22px, 7.5vw, 28px); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--lime); }
.case__stat span { font-size: 12px; line-height: 1.4; color: var(--muted); }
.case__main { display: flex; flex-direction: column; gap: 36px; padding: 32px 8px 32px; }
.case__label { margin-bottom: 14px; font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.case__task { font-size: 17px; font-weight: 500; line-height: 1.45; }
.case__steps { display: flex; flex-direction: column; gap: 20px; counter-reset: none; }
.case__steps li { display: flex; align-items: flex-start; gap: 16px; }
.case__num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); font-size: 13px; font-weight: 600; }
.case__steps p { padding-top: 4px; font-size: 15px; font-weight: 500; line-height: 1.5; }
.case__channels { display: flex; flex-wrap: wrap; gap: 8px; }
.case__channels li { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(11,11,13,.15); font-size: 13px; font-weight: 500; }
.case__quote { margin: 0; padding: 22px 20px; border-radius: 20px; background: linear-gradient(180deg, #dce4ff, #eee7fb); display: flex; flex-direction: column; gap: 16px; }
.case__quote::before { content: "“"; font-size: 56px; font-weight: 600; line-height: .6; height: 26px; }
.case__quote p { font-size: 18px; font-weight: 500; line-height: 1.35; }
.case__quote footer { display: flex; align-items: center; gap: 12px; }
.case__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(11,11,13,.12); }
.case__quote b { display: block; font-size: 15px; font-weight: 600; }
.case__quote small { display: block; font-size: 13px; color: #6b6a70; }
.case .btn--ink { width: 100%; }

@media (min-width: 768px) {
  .modal--case { align-items: center; padding: 48px 24px; }
  .case-modal { width: 760px; max-width: 100%; margin: 0; height: auto; max-height: calc(100vh - 96px); }
  .case-modal .modal__close { top: 52px; right: 52px; }
  .case-modal__body { padding: 12px 12px 0; }
  .case__cover { gap: 28px; padding: 40px 40px 44px; border-radius: 24px; }
  .case__title { font-size: 38px; letter-spacing: -.02em; }
  .case__stats { padding-top: 24px; }
  .case__stat { padding: 0 24px; }
  .case__stat b { font-size: 48px; }
  .case__stat span { font-size: 14px; }
  .case__main { gap: 44px; padding: 40px 40px 40px; }
  .case__task { font-size: 20px; }
  .case__steps p { font-size: 16px; }
  .case__quote { padding: 28px 32px; }
  .case__quote p { font-size: 22px; }
  .case .btn--ink { width: auto; }
}

/* =========================================================
   05 · Направления
   ========================================================= */
.services { background: var(--cream); padding: 56px 0; }
.services__carousel { margin-top: 28px; }
.service { width: 296px; display: flex; flex-direction: column; }
.service__media { border-radius: 18px; overflow: hidden; }
.service__media--dark { background: #16161a; }
.service__media--blue { background: linear-gradient(180deg, #dce4ff, #eee7fb); }
.service__media--olive { background: #e7ecd3; }
.service h3 { margin-top: 16px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.service p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: #6b6a70; }

/* стратегия */
.strat__svg { position: absolute; inset: 0; }
.strat__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s var(--ease); }
.strat__main { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s .8s var(--ease); }
.strat__pill {
  position: absolute; left: 28px; width: 122px; padding: 8px 14px; border-radius: 999px;
  background: #24242a; border: 1px solid transparent; color: var(--white);
  font-size: 14px; font-weight: 500; line-height: 1.45; white-space: nowrap;
  transition: border-color .3s, background-color .3s;
}
.strat__pill.is-hot { border-color: var(--lime); background: #2b2f1e; }
.strat__plan {
  position: absolute; left: 440px; top: 133px; padding: 10px 16px; border-radius: 14px; background: var(--lime);
  display: flex; flex-direction: column; gap: 2px; line-height: 1.45; white-space: nowrap;
  opacity: 0; transform: translateY(8px); transition: opacity .4s 1.1s, transform .4s 1.1s var(--ease);
}
.strat__plan b { font-size: 14px; font-weight: 600; color: var(--ink); }
.strat__plan small { font-size: 12px; color: #3e4a1c; }
.strat__dot { position: absolute; left: 0; top: 0; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--lime); offset-rotate: 0deg; offset-distance: 0%; opacity: 0; }
.strat__dot.is-run { animation: strat-dot 1.1s var(--ease) forwards; }
@keyframes strat-dot { 0% { offset-distance: 0%; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.strat.is-on .strat__line, .strat.is-on .strat__main { stroke-dashoffset: 0; }
.strat.is-on .strat__plan { opacity: 1; transform: none; }
.strat__dot { margin: 0; transform: translate(-50%, -50%); }

/* реклама */
.ads__card { position: absolute; margin: 0; width: 152px; padding: 12px 12px 14px; border-radius: 18px; background: var(--white); display: flex; flex-direction: column; gap: 10px; }
.ads__card img { width: 128px; height: 160px; border-radius: 12px; object-fit: cover; }
.ads__card figcaption { display: flex; justify-content: space-between; font-size: 12px; line-height: 1.45; white-space: nowrap; }
.ads__card figcaption span { font-weight: 500; color: var(--muted-3); }
.ads__card figcaption b { font-weight: 600; color: #6b6a70; }
.ads__card--win { width: 172px; border: 3px solid var(--lime); padding: 9px 9px 11px; }
.ads__card--win img { width: 148px; height: 185px; }
.ads__card--win figcaption b { color: var(--ink); }
.ads__badge { position: absolute; left: 261.5px; top: 105px; padding: 8px 14px; border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 600; line-height: 1.45; }
.ads__note { position: absolute; left: 56px; top: 34px; font-size: 30px; color: var(--ink); transform: rotate(-8deg); transform-origin: left top; }
.ads__arrow { position: absolute; left: 270px; top: 38px; width: 50px; height: 43px; }

/* SEO */
.serp__card { position: absolute; left: 64px; top: 64px; width: 500px; padding: 26px 28px; border-radius: 20px; background: var(--white); display: flex; flex-direction: column; gap: 16px; }
.serp__search { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 999px; background: #f2f1ed; font-size: 15px; line-height: 1.45; white-space: nowrap; }
.serp__res { display: flex; flex-direction: column; gap: 4px; line-height: 1.45; white-space: nowrap; }
.serp__res small { font-size: 13px; color: var(--muted-3); }
.serp__res b { font-size: 19px; font-weight: 600; }
.serp__res span { font-size: 14px; color: #6b6a70; }
.serp__card hr { margin: 0; border: 0; height: 1px; background: #e6e4de; }
.serp__ghost { display: flex; flex-direction: column; gap: 6px; opacity: .5; }
.serp__ghost i { display: block; border-radius: 6px; background: #e7ecd3; }
.serp__top { position: absolute; left: 470px; top: 46px; padding: 8px 14px; border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 600; line-height: 1.45; }
.serp__conv { position: absolute; left: 330px; top: 300px; padding: 16px 22px; border-radius: 16px; background: var(--ink); display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.serp__conv small { font-size: 13px; line-height: 1.45; color: var(--muted); }
.serp__conv b { font-size: 22px; line-height: 1.3; font-weight: 600; color: var(--white); letter-spacing: -.01em; }

/* аналитика */
.funnel__row { position: absolute; height: 58px; padding: 0 20px; border-radius: 14px; background: #24242a; display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.funnel__row span { font-size: 15px; font-weight: 500; color: #b5b4ba; }
.funnel__row b { font-size: 20px; font-weight: 600; color: var(--white); letter-spacing: -.01em; }
.funnel__row--lime { background: var(--lime); }
.funnel__row--lime span, .funnel__row--lime b { color: var(--ink); }
.funnel__note { position: absolute; left: 169.5px; top: 355px; padding: 8px 14px; border-radius: 999px; border: 1px solid #3a3a42; font-size: 13px; font-weight: 500; line-height: 1.45; color: #b5b4ba; white-space: nowrap; }

@media (min-width: 1024px) {
  .services { padding: 90px 0; }
  .services .sec-lead { font-size: 20px; line-height: 1.3; }
  .services__carousel { margin-top: 56px; }
  .carousel__track.services__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
  .service { width: auto; }
  .service__media { border-radius: 24px; }
  .service h3 { margin-top: 18px; font-size: 24px; }
  .service p { font-size: 18px; }
}

/* =========================================================
   06 · Как мы работаем
   ========================================================= */
.process { background: var(--cream); padding: 32px 0 56px; }
.process__cycle { position: relative; margin-top: 24px; }
.process__note, .process__arrow { display: none; }
.steps { display: flex; flex-direction: column; }
.step { position: relative; display: flex; gap: 14px; padding-bottom: 12px; }
.step::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line-light); }
.step--last::before { display: none; }
.step__num {
  flex: none; position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
}
.step--last .step__num { background: var(--lime); color: var(--ink); }
.step__card { flex: 1; min-width: 0; padding: 16px 18px; border-radius: 18px; background: var(--white); display: flex; flex-direction: column; gap: 6px; }
.step__card h3 { font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.step__card p { font-size: 14px; line-height: 1.5; color: #6b6a70; }
.step--last .step__card { background: var(--ink); }
.step--last .step__card h3 { color: var(--white); }
.step--last .step__card p { color: #b5b4ba; }
.process__loop-line, .process__loop-head { display: none; }
.process__pill {
  display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 18px 10px 16px;
  border: 1px solid var(--line-light); border-radius: 999px; background: var(--white);
  font-size: 14px; font-weight: 500; line-height: 1.5;
}
.process__pill svg { flex: none; }

.partner { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; }
.partner__text h3 { font-size: 26px; line-height: 1.06; font-weight: 600; letter-spacing: -.02em; }
.partner__text p { margin-top: 16px; font-size: 16px; line-height: 1.4; color: #6b6a70; }
.partner__duo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.partner__card { width: 100%; padding: 22px; border-radius: 20px; display: flex; flex-direction: column; gap: 20px; }
.partner__card h4 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.partner__card ul { display: flex; flex-direction: column; gap: 14px; }
.partner__card li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.37; }
.partner__card li svg { flex: none; }
.partner__card--we { background: var(--ink); color: #e7e7ea; }
.partner__card--we h4 { color: var(--white); }
.partner__card--we li svg { color: var(--lime); --c: var(--ink); }
.partner__hand, .partner__hand-arrow { display: none; }
.partner__card--you { position: relative; }
.partner__hand-m { position: absolute; left: calc(50% + 46px); top: -62px; font-size: 32px; color: var(--ink); transform: rotate(8deg); transform-origin: left top; }
.partner__hand-m-arrow { position: absolute; left: calc(50% + 7px); top: -35px; width: 40px; height: 37px; color: var(--ink); }
.partner__card--you { background: var(--white); border: 1px solid var(--line-light); color: var(--ink); }
.partner__card--you li svg { color: var(--cream); --c: var(--ink); }
.partner__plus { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); font-size: 22px; font-weight: 500; line-height: 1; }

@media (min-width: 1024px) {
  .process { padding: 64px 0 96px; }
  .process .sec-lead { font-size: 20px; line-height: 1.25; max-width: 720px; }
  .process__cycle { margin-top: 56px; }
  .process__note { display: block; position: absolute; right: 77px; top: -121px; font-size: 36px; transform: none; }
  .process__arrow { display: block; position: absolute; right: 42px; top: -72px; width: 48px; height: 64px; }
  .steps { flex-direction: row; gap: 32px; }
  .step { flex: 1; min-width: 0; padding: 22px 18px; min-height: 246px; border-radius: 20px; background: var(--white); flex-direction: column; gap: 14px; }
  .step::before { display: none; }
  .step:not(.step--last)::after {
    content: ""; position: absolute; right: -26px; top: 94px; width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none'%3E%3Cpath d='M4 10h12m-4-4 4 4-4 4' stroke='%230b0b0d' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
  }
  .step__num { width: 32px; height: 32px; }
  .step__card { padding: 0; background: none; gap: 14px; }
  .step--last { background: var(--ink); }
  .step--last .step__card { background: none; }
  .process__loop { position: relative; height: 64px; margin-top: 16px; }
  .process__loop-line { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
  .process__loop-head { display: block; position: absolute; left: calc(67 / 1280 * 100% - 7px); top: 0; }
  .process__pill { position: absolute; left: 50%; top: 20px; transform: translateX(-50%); margin: 0; white-space: nowrap; }
  .partner { margin-top: 56px; flex-direction: row; align-items: center; gap: 64px; }
  .partner__text { flex: 1; min-width: 0; }
  .partner__text h3 { font-size: 36px; position: relative; }
  .partner__hand { display: block; position: absolute; left: 393px; top: -38px; font-size: 40px; color: var(--ink); transform: rotate(8deg); transform-origin: left top; }
  .partner__hand-arrow { display: block; position: absolute; left: 367px; top: 17px; width: 50px; height: 38px; color: var(--ink); }
  .partner__hand-m, .partner__hand-m-arrow { display: none; }
  .partner__text p { font-size: 18px; }
  .partner__duo { flex-direction: row; gap: 12px; flex: none; }
  .partner__card { width: 330px; min-height: 260px; padding: 28px; }
}

/* =========================================================
   07 · Форматы и цена
   ========================================================= */
.m-inline { display: inline; } .d-inline { display: none; }
@media (min-width: 1024px) { .m-inline { display: none; } .d-inline { display: inline; } }

.pricing { padding: 56px 0; background: linear-gradient(180deg, #17181c, #2a2d34); }
.pricing__glow {
  position: absolute; left: 50%; top: 380px; width: 820px; height: 520px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(212,243,107,.10), transparent); filter: blur(40px); pointer-events: none;
}
.pricing .sec-lead { line-height: 1.5; }
.pricing__carousel { margin-top: 28px; }
.pricing .carousel__dots i { background: #5a5a63; }
.pricing .carousel__hint { color: var(--muted); }
.tier {
  width: 296px; min-height: 620px; padding: 28px 22px 24px; border-radius: 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.tier--glass { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); color: var(--white); --c: var(--ink); }
.tier--lime { background: var(--lime); color: var(--ink); --c: var(--lime); }
.tier__body { display: flex; flex-direction: column; gap: 22px; }
.tier__top { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.tier__level { font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted-2); }
.tier--lime .tier__level { color: #5b6b2a; }
.tier__badge { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--lime); font-size: 12px; font-weight: 500; line-height: 1.5; }
.tier__name h3 { font-size: 24px; line-height: 1.04; font-weight: 600; letter-spacing: -.02em; }
.tier__name p { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.tier--lime .tier__name p { color: #3e4a1c; }
.tier hr { margin: 0; border: 0; height: 1px; background: var(--line-dark); }
.tier--lime hr { background: #b9d35a; }
.tier__list { display: flex; flex-direction: column; gap: 16px; }
.tier__list li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.5; }
.tier__list svg { flex: none; color: var(--lime); }
.tier--lime .tier__list svg { color: var(--ink); }
.tier__who { padding: 10px 14px; border-radius: 14px; background: var(--ink-3); font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.tier--lime .tier__who { background: #c5e35e; color: #3e4a1c; }

.price {
  margin-top: 24px; padding: 22px; border-radius: 20px; background: #000; border: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 10px;
}
.price__value { font-size: 26px; line-height: 1.04; font-weight: 600; letter-spacing: -.02em; color: var(--white); }
.price__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.price .btn { margin-top: 8px; width: 100%; }

@media (min-width: 1024px) {
  .pricing { padding: 96px 0; }
  .pricing .sec-lead { font-size: 20px; line-height: 1.25; max-width: 715px; }
  .pricing__carousel { margin-top: 56px; }
  .carousel__track.tiers { gap: 20px; }
  .tier { width: auto; min-height: 651px; padding: 40px 40px 36px; border-radius: 24px; }
  .tier__body { gap: 28px; padding-bottom: 32px; }
  .tier__name h3 { font-size: 28px; }
  .tier__name p { font-size: 16px; }
  .tier__list { gap: 18px; }
  .price { margin-top: 56px; flex-direction: row; align-items: center; gap: 24px; padding: 12px 12px 12px 32px; border-radius: 22px; }
  .price__value { font-size: 30px; white-space: nowrap; }
  .price__text { flex: 1; font-size: 15px; }
  .price .btn { margin: 0; width: auto; }
}

/* =========================================================
   08 · Отзывы и вопросы
   ========================================================= */
.reviews { background: var(--cream); padding: 56px 0; }
.reviews__carousel { margin-top: 28px; }
.rev { width: 296px; min-height: 300px; padding: 26px 22px 22px; border-radius: 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.rev blockquote { margin: 0; }
.rev blockquote p { font-size: 20px; line-height: 1.28; font-weight: 500; letter-spacing: -.01em; }
.rev--blue { background: linear-gradient(180deg, #dce4ff, #eee7fb); }
.rev--dark { background: var(--ink); color: var(--white); }
.rev--white { background: var(--white); }
.rev__who { display: flex; align-items: center; gap: 12px; line-height: 1.5; }
.rev__ava { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e7ecd3; }
.rev--dark .rev__ava { background: #2a2a31; }
.rev__who b { display: block; font-size: 14px; font-weight: 600; }
.rev__who small { font-size: 13px; color: #6b6a70; }
.rev--dark .rev__who small { color: var(--muted); }

.faq { margin-top: 56px; display: flex; flex-direction: column; gap: 28px; }
.faq__intro { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq__intro p { font-size: 17px; line-height: 1.5; color: #6b6a70; }
.faq__intro .btn { width: 100%; margin-top: 4px; }
.faq__list { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border-radius: 18px; background: var(--white); }
.faq__item h3 { font: inherit; }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 16px 18px 20px; text-align: left;
  font-size: 17px; line-height: 1.5; font-weight: 600; letter-spacing: -.01em;
}
.faq__icon { position: relative; flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 50%; background: var(--cream); transition: background-color .25s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; margin: -.8px 0 0 -6px; border-radius: 1px; background: var(--ink); transition: transform .25s var(--ease), background-color .25s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--ink); }
.faq__item.is-open .faq__icon::before { background: var(--lime); }
.faq__item.is-open .faq__icon::after { transform: rotate(0); background: var(--lime); }
.faq__q:hover .faq__icon { background: var(--lime); }
.faq__item.is-open .faq__q:hover .faq__icon { background: var(--ink); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 20px; font-size: 15px; line-height: 1.5; color: #6b6a70; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

@media (min-width: 768px) { .faq__intro .btn { width: auto; } }
@media (min-width: 1024px) {
  .reviews { padding: 96px 0; }
  .reviews__carousel { margin-top: 48px; }
  .carousel__track.revs { gap: 16px; }
  .rev { width: auto; min-height: 340px; padding: 32px 32px 28px; border-radius: 24px; }
  .rev blockquote p { font-size: 24px; }
  .faq { margin-top: 88px; flex-direction: row; gap: 80px; align-items: flex-start; }
  .faq__intro { width: 400px; flex: none; gap: 20px; }
  .faq__intro p { font-size: 18px; }
  .faq__list { flex: 1; min-width: 0; }
  .faq__item { border-radius: 20px; }
  .faq__q { padding: 22px 24px 22px 28px; font-size: 19px; }
  .faq__a p { padding: 0 72px 22px 28px; font-size: 16px; }
  .faq__item.is-open .faq__q { padding-bottom: 12px; }
}

/* =========================================================
   09 · Финал + форма
   ========================================================= */
.final { padding: 56px 0; background: linear-gradient(180deg, #17181c, #2a2d34); }
.final__glow { position: absolute; left: 50%; top: 520px; width: 420px; height: 360px; transform: translateX(-50%); border-radius: 50%; background: rgba(212,243,107,.12); filter: blur(140px); pointer-events: none; }
.final__grid { position: relative; display: flex; flex-direction: column; gap: 32px; }
.final__left { display: flex; flex-direction: column; gap: 24px; }
.final__title { font-size: 34px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; color: var(--white); }
.final__lead { font-size: 17px; line-height: 1.4; color: var(--muted); }
.expert { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.expert img { flex: none; width: 56px; height: 56px; border-radius: 50%; }
.expert__photo { position: relative; flex: none; width: 56px; height: 56px; }
/* «Всегда онлайн»: зелёная точка с мягкой пульсацией */
.expert__online { position: absolute; left: 41px; top: 41px; width: 13px; height: 13px; border-radius: 50%; background: #33d161; box-shadow: 0 0 0 3px #2e2e33; }
.expert__online::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #33d161; animation: expert-pulse 2.2s ease-out infinite; }
@keyframes expert-pulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .expert__online::after { animation: none; display: none; } }
.expert b { display: block; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--white); }
.expert span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.final__facts { display: flex; flex-direction: column; gap: 8px; }
.final__facts li { position: relative; padding-left: 14px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--muted); }
.final__facts li::before { content: "•"; position: absolute; left: 0; }
.final__form { padding: 24px 20px; border-radius: 22px; background: var(--cream); color: var(--ink); }
.final__form-title { font-size: 22px; line-height: 1.28; font-weight: 600; letter-spacing: -.01em; margin-bottom: 22px; }

/* Форма заявки */
.lead-form { display: flex; flex-direction: column; gap: 22px; }
.lead-form__group { margin: 0; padding: 0; border: 0; min-width: 0; }
.lead-form__group legend { padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 500; line-height: 1.5; color: #6b6a70; }
.form-modal .lead-form__group legend { color: var(--ink); }
.lead-form__hint { color: inherit; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-check span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-light); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip-check:hover span { background: #e7ecd3; border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.chip-check:hover input:checked + span { background: var(--ink); box-shadow: none; }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip-check input:checked + span::before {
  content: ""; width: 14px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none'%3E%3Cpath d='m2.5 7.3 2.8 2.7 6.2-6' stroke='%23d4f36b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.chip-check input:focus-visible + span { outline: 3px solid rgba(11,11,13,.35); outline-offset: 2px; }

.lead-form__fields { display: grid; grid-template-columns: 1fr; gap: 10px; }
.field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.field__input {
  width: 100%; height: 57px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-light); background: var(--white);
  font: inherit; font-size: 15px; line-height: 23px; color: var(--ink); outline: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field__input:focus { border: 1.5px solid var(--ink); box-shadow: 0 0 0 3px var(--lime); padding: 15.5px 17.5px; }
.field__ph { position: absolute; left: 19px; top: 17px; font-size: 15px; line-height: 23px; color: var(--muted-3); pointer-events: none; transition: opacity .1s; }
.field__ph i { font-style: normal; color: #e5484d; margin-left: 2px; }
.field__input:not(:placeholder-shown) + .field__ph { opacity: 0; }
.field__err { display: none; font-size: 12px; line-height: 1.4; color: #e5484d; padding-left: 4px; }
.field.is-error .field__input { border: 1.5px solid #e5484d; background: #fff7f6; padding: 15.5px 17.5px; }
.field.is-error .field__err { display: block; }
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead-form .btn--block { margin-top: 0; }
.lead-form__note { margin-top: -10px; font-size: 12px; line-height: 1.5; color: var(--muted-3); }
.lead-form__note a { text-decoration: underline; text-underline-offset: 2px; }
.lead-form__error { margin-top: -10px; font-size: 13px; color: #e5484d; }

@media (min-width: 560px) {
  .lead-form__fields { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .final { padding: 96px 0; }
  .final__glow { left: calc(50% + 420px); top: 120px; width: 760px; height: 560px; background: radial-gradient(closest-side, rgba(212,243,107,.12), transparent); filter: blur(40px); }
  .final__grid { flex-direction: row; gap: 64px; align-items: flex-start; }
  .final__left { flex: 1; min-width: 0; gap: 32px; }
  .final__title { font-size: clamp(44px, 4.2vw, 60px); }
  .final__lead { font-size: 20px; line-height: 1.28; }
  .expert { align-self: flex-start; padding: 16px 24px 16px 16px; }
  .final__facts { flex-direction: row; flex-wrap: wrap; gap: 8px 24px; }
  .final__form { flex: none; width: min(580px, 46%); padding: 36px; border-radius: 28px; }
  .final__form-title { font-size: 26px; }
}

/* =========================================================
   Подвал
   ========================================================= */
.footer { background: var(--ink); color: var(--white); border-top: 1px solid rgba(255,255,255,.08); padding: 48px 0 32px; }
.footer__top { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--line-dark); }
.footer__logo img { width: 67px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.footer__nav a:hover, .footer__list a:hover { color: var(--lime); }
.footer__top .btn { width: 100%; }
.footer__bottom { display: flex; flex-direction: column; gap: 28px; padding-top: 28px; }
.footer__cols { display: flex; flex-direction: column; gap: 28px; }
.footer__label { font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.footer__list { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; font-size: 16px; line-height: 1.5; }
.footer__list a { transition: color .2s var(--ease); }
.footer__list--social { flex-direction: row; flex-wrap: wrap; gap: 6px 24px; }
.footer__copy { font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.footer__copy a:hover { color: var(--white); }
@media (min-width: 1024px) {
  .footer { padding: 72px 0 40px; }
  .footer__top { flex-direction: row; align-items: center; justify-content: space-between; padding-bottom: 48px; }
  .footer__nav { gap: 10px 32px; }
  .footer__top .btn { width: auto; }
  .footer__bottom { flex-direction: row; justify-content: space-between; align-items: flex-end; padding-top: 48px; }
  .footer__cols { flex-direction: row; gap: 96px; }
  .footer__list--social { flex-direction: column; }
}

/* =========================================================
   Попапы формы и «Спасибо»
   ========================================================= */
.modal--form { align-items: flex-end; }
.form-modal {
  width: 100%; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px 16px 24px; border-radius: 24px 24px 0 0; background: var(--cream); color: var(--ink);
}
.modal__close--round { top: 20px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #e3e8cf; }
.form-modal__title { padding-right: 52px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.form-modal__lead { margin: 8px 0 22px; font-size: 15px; line-height: 1.5; color: #6b6a70; }
.success__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--lime); margin-bottom: 20px; }
.success .form-modal__title { padding-right: 0; }
.success__steps { margin-bottom: 24px; border-radius: 16px; background: var(--white); overflow: hidden; }
.success__steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.success__steps li + li { border-top: 1px solid #eef0e6; }
.success__steps span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 13px; font-weight: 600; }
.success__steps b { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; }
.success__steps small { font-size: 13px; color: #6b6a70; }
.modal--form .modal__panel { transform: translateY(40px); }
.modal--form.is-open .modal__panel { transform: none; }
@media (min-width: 768px) {
  .modal--form { align-items: center; padding: 24px; }
  .form-modal { width: 620px; max-height: calc(100vh - 48px); padding: 40px; border-radius: 28px; }
  .modal__close--round { top: 40px; right: 40px; }
  .form-modal__title { font-size: 30px; }
  .success { width: 560px; }
  .success__steps li { padding: 14px 18px; }
}
/* Невысокие экраны ноутбуков: ужимаем отступы, чтобы форма влезала без прокрутки */
@media (min-width: 768px) and (max-height: 820px) {
  .form-modal { padding: 28px 40px; }
  .modal__close--round { top: 28px; }
  .form-modal__title { font-size: 26px; }
  .form-modal__lead { margin: 6px 0 16px; }
  .form-modal .lead-form { gap: 14px; }
}
@media (min-width: 1280px) { .final__title { white-space: nowrap; } }

/* Служебные страницы */
.page-404 { min-height: 100vh; min-height: 100svh; padding: 150px 0 64px; }
.page-404__glow { position: absolute; left: -22px; top: 560px; width: 420px; height: 360px; border-radius: 50%; background: rgba(212,243,107,.12); filter: blur(140px); pointer-events: none; }
.page-404 .container { position: relative; }
.page-404__hero { position: relative; }
.page-404__code { font-size: 140px; line-height: .9; font-weight: 600; letter-spacing: -.05em; color: var(--lime); }
.page-404__note { position: absolute; right: 0; top: 140px; font-size: 26px; color: var(--lime); transform: rotate(-5deg); }
.page-404__arrow { display: none; }
.page-404__title { margin-top: 90px; font-size: 30px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; color: var(--white); }
.page-404__lead { margin-top: 16px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.page-404__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.page-404__actions .btn { width: 100%; }
a.burger { display: block; }
@media (min-width: 768px) {
  .page-404__actions { flex-direction: row; gap: 12px; }
  .page-404__actions .btn { width: auto; }
}
@media (min-width: 1024px) {
  .page-404 { padding: 210px 0 96px; }
  .page-404__glow { left: calc(50% - 20px); top: 380px; width: 820px; height: 520px; background: radial-gradient(closest-side, rgba(212,243,107,.14), transparent); filter: blur(40px); }
  .page-404__code { font-size: 260px; }
  .page-404__note { left: 560px; right: auto; top: 40px; font-size: 38px; }
  .page-404__arrow { display: block; position: absolute; left: 545px; top: 135px; width: 92px; height: 76px; transform: rotate(-144deg); }
  .page-404__title { margin-top: 56px; font-size: 56px; line-height: 1.02; }
  .page-404__lead { font-size: 20px; line-height: 1.4; }
  .page-404__actions { margin-top: 36px; }
  a.burger { display: none; }
}
.page-text { padding: 140px 0 96px; }
/* Политика конфиденциальности */
.policy { padding: 112px 0 64px; overflow: visible; }
.policy__grid { display: flex; flex-direction: column; gap: 28px; }
.policy__title { font-size: clamp(24px, 8.4vw, 30px); font-weight: 600; line-height: 1.04; letter-spacing: -.03em; }
.policy__date { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted-3); }
.policy__toc { display: none; }
.policy__body { display: flex; flex-direction: column; gap: 28px; min-width: 0; color: #3a3a40; font-size: 15px; line-height: 1.6; }
.policy__intro { font-size: 16px; }
.policy__sec { scroll-margin-top: 100px; }
.policy__sec h2 { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.policy__sec p, .policy__sec ul { margin-top: 12px; }
.policy__sec ul { display: flex; flex-direction: column; gap: 8px; }
.policy__sec li { position: relative; padding-left: 18px; }
.policy__sec li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.policy__body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy__body a:hover { text-decoration-color: var(--lime); }
.policy .policy__back { align-self: stretch; padding: 18px 20px; border-radius: 16px; background: var(--cream); font-weight: 500; text-decoration: none; transition: background .2s var(--ease); }
.policy .policy__back:hover { background: #e7ecd3; }
@media (min-width: 1024px) {
  .policy { padding: 170px 0 120px; }
  .policy__grid { flex-direction: row; align-items: flex-start; gap: 80px; }
  .policy__aside { position: sticky; top: 120px; flex: 0 0 380px; }
  .policy__title { font-size: 36px; }
  .policy__date { font-size: 15px; }
  .policy__toc { display: block; margin-top: 40px; }
  .policy__toc ol { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
  .policy__toc a { color: #6b6a70; transition: color .2s var(--ease); }
  .policy__toc a:hover, .policy__toc a.is-active { color: var(--ink); }
  .policy__toc a.is-active { font-weight: 500; }
  .policy__body { flex: 1; gap: 36px; font-size: 16px; }
  .policy__intro { font-size: 18px; }
  .policy__sec h2 { font-size: 24px; }
}

.page-text p { margin-top: 20px; }
.page-text a { text-decoration: underline; }

/* Схема «С Flow» — десктоп, по артефакту «Flow · анимация системы» */
.sysd { display: block; width: 100%; height: auto; overflow: visible; }
.sysd__pill rect { fill: var(--ink-3); }
.sysd__pill text { fill: var(--white); font: 500 14px var(--font); }
.sysd__link { fill: none; stroke: var(--lime); stroke-width: 1.6; }
.sysd__hub rect { fill: #24242a; transition: fill .4s ease-out; }
.sysd__hub .h1t { font: 600 18px var(--font); fill: var(--white); transition: fill .4s; }
.sysd__hub .h2t { font: 400 11px var(--font); fill: var(--muted); transition: fill .4s; }
.sysd__hub.lit rect { fill: var(--lime); }
.sysd__hub.lit .h1t { fill: var(--ink); }
.sysd__hub.lit .h2t { fill: #3e4a1c; }
.sysd__res rect { fill: var(--white); }
.sysd__res .r1 { font: 600 16px var(--font); fill: var(--ink); font-variant-numeric: tabular-nums; }
.sysd__res .r2 { font: 400 11px var(--font); fill: #6e6d75; }
.sysd__halo { fill: var(--lime); opacity: 0; }
.sysd__pill, .sysd__hub, .sysd__res, .sysd__halo { transform-box: fill-box; transform-origin: center; }
.sysd.is-wait .sysd__pill, .sysd.is-wait .sysd__res { opacity: 0; }
.sysd.is-wait .sysd__link { stroke-dashoffset: var(--len); }
.sysd.play .sysd__pill { animation: sys-pill .45s cubic-bezier(.2,.8,.2,1) both; }
.sysd.play .sysd__pill:nth-of-type(1) { animation-delay: .05s; }
.sysd.play .sysd__pill:nth-of-type(2) { animation-delay: .15s; }
.sysd.play .sysd__pill:nth-of-type(3) { animation-delay: .25s; }
.sysd.play .sysd__pill:nth-of-type(4) { animation-delay: .35s; }
.sysd.play .sysd__link { animation: sys-draw .7s cubic-bezier(.6,0,.2,1) both; }
.sysd.play .l1 { animation-delay: .55s; } .sysd.play .l2 { animation-delay: .65s; }
.sysd.play .l3 { animation-delay: .75s; } .sysd.play .l4 { animation-delay: .85s; }
.sysd.play .out { animation-delay: 1.75s; animation-duration: .4s; }
.sysd.play .sysd__hub { animation: sys-hub .5s cubic-bezier(.2,.8,.2,1) 1.25s both; }
.sysd.play .sysd__halo { animation: sys-halo 2.4s ease-in-out 1.8s infinite; }
.sysd.play .sysd__res { animation: sys-res .45s cubic-bezier(.2,.8,.2,1) 2s both; }
@keyframes sys-pill { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes sys-draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes sys-hub { from { opacity: .4; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes sys-res { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes sys-halo { 0%, 100% { opacity: 0; transform: scale(.96); } 50% { opacity: .22; transform: scale(1.08); } }
/* мобильная схема: точки бегут непрерывно и вразнобой */
[data-diagram].loop .flowm .flowd__dot, .flowm[data-diagram].loop .flowd__dot { animation: dot-flow 1.7s linear infinite; }
.flowm[data-diagram].loop .flowd__dot:nth-of-type(2) { animation-delay: -.4s; }
.flowm[data-diagram].loop .flowd__dot:nth-of-type(3) { animation-delay: -.8s; }
.flowm[data-diagram].loop .flowd__dot:nth-of-type(4) { animation-delay: -1.2s; }
.flowm[data-diagram].loop .flowd__dot--out { animation: dot-flow .9s linear infinite; }
@keyframes dot-flow { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }

/* Кнопка на салатовой карточке тарифа: ховер графитовый, чтобы не сливался с фоном */
.tier--lime .btn--ink:hover { background: var(--graphite); color: var(--white); }
.tier--lime .btn--ink:active { background: #3a3a40; color: var(--white); }

/* =========================================================
   Правки мобильной версии
   ========================================================= */
/* Переносы: заголовки балансируем, в абзацах избегаем висячих слов */
h1, h2, h3, h4, .sec-title, .hero__title, .final__title, .case__title { text-wrap: balance; }
p, li, .sec-lead, blockquote p { text-wrap: pretty; }

/* Шапка внутри открытого меню — на всю ширину */
.menu .header__bar { width: 100%; flex: none; }
.menu__list, .menu__cta { width: 100%; }

/* Плашки доверия в первом экране: в одну строку */
.hero__trust-item .m-only { display: inline; }
.hero__trust-item { white-space: nowrap; }
@media (min-width: 1024px) { .hero__trust-item .m-only { display: none; } }
.nw { white-space: nowrap; }
@media (max-width: 1023px) { .format__title { font-size: 26px; } }

/* =========================================================
   Фирменный скролл: лаймовая капсула с тонкой обводкой.
   Своя дорожка сбоку — полоса не заходит на контент.
   ========================================================= */
/* Firefox: только стандартные свойства (Chrome/Safari рисуют по ::-webkit-scrollbar ниже) */
@supports not selector(::-webkit-scrollbar) {
  html, .case-modal, .form-modal, .menu { scrollbar-width: thin; scrollbar-color: var(--lime) rgba(11,11,13,.06); }
  html, .menu { scrollbar-color: var(--lime) var(--ink); }
}
html::-webkit-scrollbar, .case-modal::-webkit-scrollbar, .form-modal::-webkit-scrollbar, .menu::-webkit-scrollbar { width: 12px; }
html::-webkit-scrollbar-track, .case-modal::-webkit-scrollbar-track, .form-modal::-webkit-scrollbar-track, .menu::-webkit-scrollbar-track {
  background: rgba(11,11,13,.05); background-clip: padding-box; border: 3px solid transparent; border-radius: 12px;
}
html::-webkit-scrollbar-thumb, .case-modal::-webkit-scrollbar-thumb, .form-modal::-webkit-scrollbar-thumb, .menu::-webkit-scrollbar-thumb {
  background: var(--lime); background-clip: padding-box; border: 3px solid transparent; border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(11,11,13,.35);
}
html::-webkit-scrollbar-thumb:hover, .case-modal::-webkit-scrollbar-thumb:hover, .form-modal::-webkit-scrollbar-thumb:hover, .menu::-webkit-scrollbar-thumb:hover {
  border-width: 2px; box-shadow: inset 0 0 0 1px rgba(11,11,13,.6);
}
/* дорожка не заходит в скруглённые углы */
.case-modal::-webkit-scrollbar-track { margin: 12px 0; }
.form-modal::-webkit-scrollbar-track { margin: 24px 0; }
/* на тёмном: страница и меню */
html::-webkit-scrollbar { background: var(--ink); }
html::-webkit-scrollbar-track, .menu::-webkit-scrollbar-track { background: rgba(255,255,255,.08); background-clip: padding-box; }
