/* Лендинг «Яндекс Директ» — Алексей Комаров. Основа v2.
   Палитра своя, не как у Ледника и DREVA: тёплый светло-серый фон, синий кнопок со старого сайта #3962ff,
   жёлтый акцент #ffc501 (акция и выделения), тёмно-синие первый экран и акцентные блоки. Без голубых градиентов.
   Все блоки страницы строятся только из этих токенов и компонентов. */

:root {
  /* светлая основа */
  --bg: #f8f8f5;
  --bg-2: #efefea;
  --surface: #ffffff;
  --ink: #0e1428;
  --ink-2: #363c4e;
  --muted: #6a6f7d;
  --line: #e3e3dd;
  --line-2: #d4d4cc;
  /* бренд */
  --blue: #3962ff;
  --blue-d: #2a4fe8;
  --sky: #6b8bff;
  --cyan: #3962ff;
  --blue-soft: #e7ecff;
  --blue-soft-2: #d9e1ff;
  /* жёлтый акцент: акция, выделения на тёмном */
  --yellow: #ffc501;
  --yellow-d: #e5ab00;
  --yellow-soft: #fff3c7;
  --yellow-ink: #6b4e00;
  --grad: linear-gradient(92deg, #3962ff 0%, #5a7bff 100%);
  --grad-btn: linear-gradient(180deg, #4a70ff 0%, #3962ff 100%);
  /* статусы */
  --ok: #17a368;
  --ok-soft: #e3f6ec;
  --warn: #e8951f;
  --warn-soft: #fdf1dc;
  --crit: #e5484d;
  --crit-soft: #fde8e9;
  /* тёмные блоки */
  --dk: #0a1229;
  --dk-2: #111b38;
  --dk-3: #182448;
  --dk-line: rgba(255, 255, 255, .1);
  --dk-muted: #a4adc8;
  /* форма */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(13, 21, 48, .04), 0 24px 60px -30px rgba(14, 20, 40, .28);
  --shadow-lg: 0 2px 6px rgba(13, 21, 48, .05), 0 40px 90px -40px rgba(14, 20, 40, .38);
  --shadow-btn: 0 18px 36px -16px rgba(57, 98, 255, .7);
  /* шрифт и сетка */
  --font: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --container: 1520px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(48px, 6vw, 88px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ===== контейнер и секции ===== */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: var(--section); }
.sec + .sec { padding-top: calc(var(--section) * .4); }
/* на стыке светлого и тёмного фона отступ внутри тёмного (или после него) полный */
.sec:not(.is-dark) + .sec.is-dark, .sec.is-dark + .sec:not(.is-dark) { padding-top: var(--section); }
/* светлый фон с мягким светом сверху */
.sec--glow { isolation: isolate; overflow: hidden; }
.sec--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 8% 0%, rgba(255, 255, 255, .75), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(57, 98, 255, .06), transparent 70%);
  /* свет сходит на нет к верхнему и нижнему краю: соседние секции встречаются на чистом --bg, без шва */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
  pointer-events: none;
}

/* тёмный акцентный блок */
.is-dark { background: var(--dk); color: #fff; --muted: var(--dk-muted); --line: var(--dk-line); --ink-2: #c9d0df; color-scheme: dark; }
.is-dark.sec--glow::before {
  background:
    radial-gradient(55% 60% at 85% 20%, rgba(57, 98, 255, .32), transparent 70%),
    radial-gradient(45% 50% at 0% 100%, rgba(255, 197, 1, .06), transparent 70%);
}
.is-dark + .is-dark { padding-top: 0; }

/* ===== заголовок секции ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--line);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-soft); }
.eyebrow:has(.ic)::before { display: none; }
/* значок в плашке — 18 px во всех блоках (одна высота плашки по всей странице) */
.eyebrow .ic { width: 18px; height: 18px; color: var(--blue); }
.is-dark .eyebrow { background: rgba(255, 255, 255, .07); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.is-dark .eyebrow::before { box-shadow: 0 0 0 3px rgba(255, 197, 1, .22); }
.is-dark .eyebrow .ic { color: var(--yellow); }
.h2 {
  margin-top: 18px;
  max-width: 22ch;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.h3 { font-size: clamp(1.25rem, 1rem + .7vw, 1.6rem); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
/* выделение в заголовке: на светлом синий, на тёмном жёлтый */
.grad { color: var(--blue); }
.is-dark .grad { color: var(--yellow); }
.lead { margin-top: 18px; max-width: 58ch; color: var(--muted); font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.sec-head { margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }

/* ===== кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 30px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn .ic { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 22px 44px -16px rgba(57, 98, 255, .85); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.btn--ghost:hover { box-shadow: var(--shadow-lg); }
.is-dark .btn--ghost, .btn--ghost-dark { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.is-dark .btn--ghost:hover, .btn--ghost-dark:hover { background: rgba(255, 255, 255, .1); }
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

/* ===== значки ===== */
.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 15px;
  background: var(--blue-soft);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.ic-tile .ic { width: 26px; height: 26px; }
/* официальный логотип Telegram (цветной, #i-tg в спрайте): без обводки, на синей кнопке — с белым кольцом */
.ic-tg { stroke: none; }
.btn .ic-tg { border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.ic-tile--crit { background: var(--crit-soft); color: var(--crit); }
.ic-tile--ok { background: var(--ok-soft); color: var(--ok); }
.ic-tile--warn { background: var(--warn-soft); color: var(--warn); }
.ic-tile--white { background: var(--surface); box-shadow: var(--shadow); }
.is-dark .ic-tile { background: rgba(57, 98, 255, .16); color: #9fb0ff; box-shadow: inset 0 0 0 1px rgba(120, 146, 255, .22); }

/* ===== карточки ===== */
.card { position: relative; min-width: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.card--pad { padding: clamp(22px, 2.6vw, 34px); }
.card--xl { border-radius: var(--r-xl); }
.card--glass { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .85); }
.is-dark .card { background: var(--dk-2); box-shadow: inset 0 0 0 1px var(--dk-line), 0 30px 70px -40px rgba(0, 0, 0, .8); }
.card--dark { background: var(--dk); color: #fff; }

/* ===== чипы и плашки ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.2;
}
.chip .ic { width: 20px; height: 20px; color: var(--blue); stroke-width: 2.2; }
.is-dark .chip { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.is-dark .chip .ic { color: #8fa2ff; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-d); /* синий на ступень темнее: 5,27:1 на --blue-soft */
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.tag--plain { background: transparent; color: var(--muted); padding-inline: 0; }
.badge { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 9px; font-size: 13px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
/* текст статусов — тот же оттенок, только темнее: контраст не ниже 4,5:1 на своей подложке */
.badge--ok { background: var(--ok-soft); color: color-mix(in srgb, var(--ok) 70%, var(--ink)); }
.badge--warn { background: var(--warn-soft); color: color-mix(in srgb, var(--warn) 60%, var(--ink)); }
.badge--crit { background: var(--crit-soft); color: color-mix(in srgb, var(--crit) 80%, var(--ink)); }
.badge--plain { background: var(--bg-2); color: color-mix(in srgb, var(--muted) 85%, var(--ink)); }
.badge--blue { background: var(--blue-soft); color: var(--blue-d); }

/* ===== цифры ===== */
.stat { display: grid; gap: 6px; align-content: start; }
.stat b { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 800; line-height: 1.02; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.35; }
.stat-card { padding: 22px 24px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.is-dark .stat-card { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* ===== списки с галочкой ===== */
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); line-height: 1.45; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233962ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.is-dark .ticks li::before { background-color: rgba(57, 98, 255, .22); }

/* ===== рамка скриншота ===== */
.shot { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.shot__zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(13, 21, 48, .6); }
.shot__zoom .ic { width: 22px; height: 22px; }
.shot__cap { position: absolute; left: 14px; top: 14px; }

/* ===== поля и ползунки ===== */
.input {
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 0 20px;
  border: 1.5px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  font: 500 17px var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(57, 98, 255, .14); }
.pill-opt {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  transition: background-color .2s, box-shadow .2s, color .2s;
}
.pill-opt:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.pill-opt[aria-pressed="true"] { background: var(--blue); color: #fff; box-shadow: 0 10px 22px -12px rgba(57, 98, 255, .9); }
.progress { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--grad); transform-origin: left; transform: scaleX(.2); transition: transform .4s var(--ease); }

/* ===== подписи ===== */
.note { color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* ===== адаптив базовых вещей ===== */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .btn { min-height: 56px; padding: 0 24px; font-size: 16px; white-space: normal; }
  .chip { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
  .ic-tile { width: 46px; height: 46px; border-radius: 13px; }
  .ic-tile .ic { width: 23px; height: 23px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; } }

/* ===== 01-header ===== */
/* ===== Шапка: сплошная полоса во всю ширину, не «таблетка». На первом экране прозрачная, ниже — белая ===== */
.skip { position: fixed; left: 12px; top: 12px; z-index: 300; padding: 12px 20px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 600; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.hdr {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s;
}
/* сразу после начала прокрутки шапка становится сплошной: над первым экраном тёмно-синей, ниже белой */
.is-stuck .hdr { background: rgba(10, 18, 41, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .6); }
.is-light-hdr .hdr { background: rgba(255, 255, 255, .96); color: var(--ink); border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(14, 20, 40, .5); }
.hdr__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--container);
  min-height: 76px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.is-stuck .hdr__bar { min-height: 66px; }

/* логотип: словесный знак + подпись через вертикальную черту */
.hdr__logo { display: flex; align-items: center; gap: 14px; min-width: 0; flex: none; }
.hdr__wordmark { display: block; width: auto; height: 15px; aspect-ratio: 132 / 12; color: #fff; transition: color .3s; }
.is-light-hdr .hdr__wordmark { color: var(--ink); }
.hdr__role { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: 12px; font-weight: 500; line-height: 1.25; color: rgba(255, 255, 255, .62); white-space: nowrap; }
.is-light-hdr .hdr__role { border-color: var(--line-2); color: var(--muted); }

/* меню: простой текст, при наведении снизу жёлтая черта */
.hdr__nav { display: flex; gap: 22px; margin-inline: auto; }
.hdr__nav a { position: relative; padding: 8px 0; font-size: 15.5px; font-weight: 500; color: rgba(255, 255, 255, .8); transition: color .2s; }
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.hdr__nav a:hover { color: #fff; }
.hdr__nav a:hover::after { transform: scaleX(1); }
.is-light-hdr .hdr__nav a { color: var(--ink-2); }
.is-light-hdr .hdr__nav a:hover { color: var(--ink); }

.hdr__acts { display: flex; align-items: center; gap: 10px; flex: none; }
/* акция в шапке: жёлтая плашка */
.hdr__gift { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 14.5px; font-weight: 700; line-height: 1.1; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s; }
.hdr__gift .ic { width: 20px; height: 20px; stroke-width: 2; }
.hdr__gift:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(229, 171, 0, .9); }
.hdr__contact { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); transition: background-color .2s, box-shadow .2s; }
.hdr__contact:hover { background: rgba(255, 255, 255, .1); }
.hdr__contact .ic { width: 20px; height: 20px; }
.hdr__contact--tg, .is-light-hdr .hdr__contact--tg { box-shadow: none; }
.hdr__contact--tg .ic-tg { width: 100%; height: 100%; transition: transform .2s var(--ease); }
.hdr__contact--tg:hover { background: none; }
.hdr__contact--tg:hover .ic-tg { transform: scale(1.06); }
.is-light-hdr .hdr__contact { box-shadow: inset 0 0 0 1px var(--line-2); }
.is-light-hdr .hdr__contact:hover { background: var(--bg); }
.hdr__tel { font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.hdr__cta { min-height: 44px; }
.hdr__tel, .hdr__burger { display: none; }

/* выпадающее меню на планшете и телефоне */
.hdr__menu { display: grid; gap: 2px; max-width: var(--container); margin: 0 auto; padding: 8px var(--gutter) 18px; background: var(--surface); color: var(--ink); border-top: 1px solid var(--line); box-shadow: 0 30px 50px -30px rgba(14, 20, 40, .5); }
.hdr__menu > a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }
.hdr__menu-gift { display: flex; align-items: center; gap: 10px; color: var(--yellow-ink); }
.hdr__menu-gift .ic { width: 22px; height: 22px; color: var(--yellow-d); }
.hdr__menu .btn { margin-top: 12px; }
.hdr__menu-contacts { display: flex; justify-content: center; gap: 24px; padding-top: 12px; font-weight: 600; }
.hdr__menu-contacts a:last-child { color: var(--blue); }

@media (max-width: 1240px) {
  .hdr__role { display: none; }
}
@media (max-width: 1100px) {
  .hdr__nav { display: none; }
  .hdr__acts { margin-left: auto; }
  .hdr__burger { display: grid; }
}
@media (max-width: 760px) {
  .hdr__bar { min-height: 64px; gap: 10px; }
  .is-stuck .hdr__bar { min-height: 60px; }
  .hdr__wordmark { height: 12.5px; }
  .hdr__cta, .hdr__acts > .hdr__contact:not(.hdr__burger):not(.hdr__contact--tel) { display: none; }
  .hdr__gift { width: 42px; padding: 0; justify-content: center; }
  .hdr__gift span:not([class]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .hdr__acts { gap: 8px; }
}
@media (max-width: 360px) {
  .hdr__wordmark { height: 11px; }
  .hdr__contact, .hdr__gift { width: 38px; height: 38px; min-height: 38px; }
}
/* на широких экранах места хватает и на номер телефона */
@media (min-width: 1600px) {
  .hdr__tel { display: inline-flex; }
  .hdr__contact--tel { display: none; }
}

/* ===== 02-hero ===== */
/* ===== Первый экран: тёмно-синий, справа иллюстрация, автор — в небольшом окне. Всё влезает в один экран ===== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  /* отступ сверху и снизу текстовой колонки — переменными: по ним считается центр иллюстрации на 901–1180 */
  --hero-pt: clamp(88px, 12.5svh, 140px);
  --inner-pb: clamp(14px, 2.4svh, 28px);
  padding-top: var(--hero-pt);
  overflow: hidden;
  --stats-h: clamp(112px, 15svh, 146px);
  --stats-pb: clamp(14px, 3svh, 32px);
  /* отступ правого края контента от края окна: иллюстрация не выходит за край шапки и ряда цифр */
  --edge: max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  background: radial-gradient(70% 90% at 18% 0%, #111d42 0%, #0a1229 60%), #0a1229;
  color: #fff;
}
/* мягкий свет под текстом слева; справа фон ровный #0a1229, как края иллюстрации */
.hero__glow { position: absolute; z-index: 0; left: -12%; bottom: -30%; width: min(70vw, 1000px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(57, 98, 255, .16) 0%, transparent 62%); pointer-events: none; }

/* иллюстрация справа: квадрат, края растворяются в фоне */
.hero__art {
  position: absolute;
  z-index: 1;
  --art-h: min(calc(100svh - var(--stats-h) - var(--stats-pb) - clamp(96px, 13svh, 150px)), 46vw, 860px);
  right: var(--edge);
  bottom: calc(var(--stats-h) + var(--stats-pb) + 4px);
  height: var(--art-h);
  aspect-ratio: 1;
}
.hero__art-img {
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* автор в окне, как на видеозвонке: правый нижний угол иллюстрации */
.me-win {
  position: absolute;
  right: 0;
  bottom: 1%;
  width: clamp(156px, 27%, 214px);
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(165deg, #4a70ff 0%, #2443c4 48%, #13225a 100%);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .2);
  animation: win-in .8s .4s var(--ease) both;
}
.me-win img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 0; }
.me-win__bar { position: absolute; z-index: 1; top: 10px; left: 12px; display: flex; gap: 5px; }
.me-win__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.me-win__bar i:first-child { background: var(--yellow); }
.me-win figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 24px 10px 10px; background: linear-gradient(to bottom, transparent, rgba(7, 13, 32, .92) 55%); }
.me-win b { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.me-win b .ic { width: 14px; height: 14px; color: var(--yellow); }
.me-win span { font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, .72); }
@keyframes win-in { from { opacity: 0; transform: translateY(12px) scale(.96); } }

.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding-bottom: var(--inner-pb);
}
.hero__copy { display: grid; justify-items: start; gap: clamp(14px, 2.2svh, 22px); }
.hero__who { display: none; }
.hero__title {
  max-width: 14ch;
  font-size: clamp(2.2rem, min(4.7vw, 6.9svh), 5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.hero__lead { max-width: 33em; color: #c3cadb; font-size: clamp(1rem, min(1.25vw, 2.3svh), 1.2rem); line-height: 1.55; text-wrap: pretty; }
.hero__chips { gap: 8px; }
.hero__chips .chip { min-height: 40px; font-size: 14.5px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero__nw { white-space: nowrap; }
.hero__visual { align-self: stretch; }

/* ряд цифр внизу первого экрана; акция — жёлтая карточка-ссылка */
.hero__stats-wrap { position: relative; z-index: 4; padding-bottom: var(--stats-pb); }
.hero__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hs { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: clamp(12px, 1.8svh, 18px) 18px; border-radius: 18px; background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.hs > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; line-height: 1.3; color: #a9b1c8; }
.hs b { font-size: clamp(.98rem, .78rem + .5vw, 1.3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: #fff; }
.hs__ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 13px; background: rgba(57, 98, 255, .22); color: #a8b9ff; }
.hs__ic .ic { width: 22px; height: 22px; }
/* «1,2 млрд ₽» без зазора после единицы: табличные цифры здесь не нужны */
.hs b.num { font-variant-numeric: proportional-nums; }
.hs--gift { padding-right: 40px; background: var(--yellow); box-shadow: 0 20px 40px -24px rgba(255, 197, 1, .7); }
.hs--gift > span:nth-child(2) { color: rgba(14, 20, 40, .74); }
.hs--gift b { color: var(--ink); }
.hs--gift .hs__ic { background: rgba(14, 20, 40, .1); color: var(--ink); }
.hs__link { position: absolute; inset: 0; border-radius: inherit; color: var(--ink); }
.hs__link .ic { position: absolute; top: 12px; right: 12px; width: 18px; height: 18px; stroke-width: 2.2; transition: transform .2s var(--ease); }
.hs__link:hover .ic { transform: translate(2px, -2px); }
.hs__link:focus-visible { outline-offset: 2px; }
.stats-strip { display: none; padding-block: 28px 0; background: var(--bg); }
.stats-strip__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hs--light { background: var(--surface); box-shadow: var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.hs--light > span:nth-child(2) { color: var(--muted); }
.hs--light b { color: var(--ink); }
.hs--light .hs__ic { background: var(--blue-soft); color: var(--blue); }
.hs--light.hs--gift { background: var(--yellow); box-shadow: 0 16px 30px -22px rgba(229, 171, 0, .9); }
.hs--light.hs--gift > span:nth-child(2) { color: rgba(14, 20, 40, .74); }
.hs--light.hs--gift .hs__ic { background: rgba(14, 20, 40, .1); color: var(--ink); }

/* ===== высота окна: всё должно влезть ===== */
@media (max-height: 820px) and (min-width: 901px) {
  .hero__chips { display: none; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .hero { --stats-h: 0px; --stats-pb: 0px; }
  .hero__stats-wrap { display: none; }
  .stats-strip { display: block; }
  .stats-strip__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__art { bottom: 12px; --art-h: min(calc(100svh - 100px), 46vw); }
}
/* узкий ноутбук 1181–1480: чипы мельче, чтобы встали в одну строку; там, где и так не встают, — скрыты */
@media (max-width: 1480px) and (min-width: 1181px) {
  .hero__chips { gap: 6px; }
  .hero__chips .chip { padding: 0 12px; gap: 6px; font-size: 14px; }
}
@media (max-width: 1379px) and (min-width: 1181px) {
  .hero__chips { display: none; }
}
/* 1181–1279: ряд цифр в 4 колонки, но карточки плотнее — подпись подарка в 3 строки, высота как при 1280 */
@media (max-width: 1279px) and (min-width: 1181px) {
  .hs { gap: 10px; padding-inline: 14px; }
  .hs__ic { width: 38px; height: 38px; border-radius: 11px; }
  .hs__ic .ic { width: 20px; height: 20px; }
  .hs--gift { padding-right: 32px; }
  .hs__link .ic { top: 10px; right: 10px; }
}
/* невысокий ноутбук (высота окна 641–719): окно автора чуть крупнее и закрывает карточку графика целиком —
   иначе над ним торчит полоска стекла в 8–21 px, похожая на сбой */
@media (min-width: 1181px) and (min-height: 641px) and (max-height: 719px) {
  .me-win { width: clamp(156px, 36.5%, 214px); }
}

/* ===== узкий ноутбук и планшет альбомом: две колонки, иллюстрация меньше ===== */
@media (max-width: 1180px) and (min-width: 901px) {
  /* ряд цифр здесь 2×2 — он выше, чем на широком экране */
  .hero { --stats-h: clamp(136px, 17svh, 160px); }
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
  .hero__title { font-size: clamp(2.1rem, min(5vw, 6.6svh), 3.6rem); }
  .hero__chips { display: none; }
  .hero__ctas { gap: 10px; }
  .hero__ctas .btn { padding-inline: 22px; }
  /* иллюстрация по центру текстовой колонки, а не прижата к низу: 50% — середина .hero, скобка — сдвиг к центру .hero__inner,
     .545 — визуальный центр картинки (строка поиска на 10%, низ окна автора на 99%) */
  .hero__art {
    --art-h: min(calc(100svh - var(--stats-h) - var(--stats-pb) - 110px), 45vw);
    bottom: auto;
    top: calc(50% + (var(--hero-pt) - var(--stats-h) - var(--stats-pb) - var(--inner-pb)) / 2 - var(--art-h) * .545);
  }
  .me-win { right: 0; width: clamp(150px, 30%, 170px); border-radius: 16px; }
  .hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs { padding-block: 10px; }
}
/* планшет портретом шире 900 (iPad Pro 12.9): первый экран не во всё окно, иначе текст и иллюстрация разъезжаются */
@media (max-width: 1180px) and (min-width: 901px) and (min-height: 1100px) {
  .hero { min-height: min(100svh, 940px); }
}
@media (max-width: 1180px) and (min-width: 901px) and (max-height: 800px) {
  .hero { --stats-h: 0px; --stats-pb: 0px; }
  .hero__stats-wrap { display: none; }
  .stats-strip { display: block; }
  /* 2×2, как ряд цифр первого экрана на этих ширинах: в 4 колонки подписи рвутся в 3 строки */
  .stats-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__art { --art-h: min(calc(100svh - 110px), 45vw); }
}
/* 901–1057: окно автора крупнее — закрывает карточку графика целиком, без узкой полоски стекла над ним */
@media (max-width: 1057px) and (min-width: 901px) {
  .me-win { width: clamp(150px, 36.5%, 196px); }
}

/* 901–987: две кнопки в строку не влезают — ставим столбиком одинаковой ширины, а не случайным переносом */
@media (max-width: 987px) and (min-width: 901px) {
  .hero__ctas { display: grid; width: min(100%, 340px); }
  .hero__ctas .btn { width: 100%; }
}

/* ===== телефон и планшет портретом: текст и кнопки, иллюстрация и цифры ниже ===== */
@media (max-width: 900px) {
  .hero { padding-top: 92px; justify-content: center; }
  .hero__inner { flex: 1; grid-template-columns: minmax(0, 1fr); align-content: center; padding-bottom: 28px; }
  .hero__visual, .hero__art, .hero__eyebrow, .hero__stats-wrap { display: none; }
  .stats-strip { display: block; }
  .hero__who { display: flex; align-items: center; gap: 12px; }
  .hero__who img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 197, 1, .7); }
  .hero__who > span { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 15px; line-height: 1.25; }
  .hero__who b { font-weight: 700; }
  .hero__verified { width: 18px; height: 18px; color: var(--yellow); }
  .hero__who-role { flex-basis: 100%; color: #aeb6c8; font-size: 13.5px; }
  .hero__title { font-size: clamp(2rem, 8.4vw, 3.6rem); max-width: 14ch; }
  .hero__lead { font-size: clamp(1rem, 2.6vw, 1.2rem); }
}
/* планшет портретом: первый экран не выше 760, чтобы под ним была видна полоса цифр, а не пустые поля */
@media (max-width: 900px) and (min-width: 561px) {
  .hero { min-height: min(100svh, 760px); }
}
@media (max-width: 760px) {
  .hero__title { font-size: clamp(1.95rem, 9.4vw, 2.7rem); max-width: 13ch; }
  .hero__chips { display: none; }
  .hero__ctas { display: grid; width: 100%; }
  .hero__ctas .btn { width: 100%; }
}
/* планшет портретом 561–760: кнопки друг под другом, но не во всю ширину */
@media (max-width: 760px) and (min-width: 561px) {
  .hero__ctas { width: min(100%, 400px); }
}
@media (max-width: 760px) and (max-height: 700px) {
  .hero { padding-top: 84px; }
  .hero__lead { font-size: 15px; line-height: 1.5; }
  .hero__copy { gap: 12px; }
  .hero__inner { padding-bottom: 18px; }
}
@media (max-width: 760px) and (max-height: 600px) {
  .hero__title { font-size: 1.85rem; }
  .hero__who img { width: 38px; height: 38px; }
  .hero__ctas .btn { min-height: 52px; }
}
/* полоса цифр на телефоне: значок над текстом, иначе в узкой карточке подписи рвутся по слову */
@media (max-width: 560px) {
  .stats-strip__grid { gap: 10px; }
  .stats-strip .hs { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; }
  .stats-strip .hs__ic { width: 36px; height: 36px; border-radius: 11px; }
  .stats-strip .hs__ic .ic { width: 19px; height: 19px; }
  .stats-strip .hs--gift { padding-right: 14px; }
  .stats-strip .hs b.num { white-space: nowrap; }
}
/* узкий телефон: карточки в один столбец строкой — подпись подарка в 2 строки, «Росте» не остаётся одно */
@media (max-width: 420px) {
  .stats-strip__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .stats-strip .hs { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .stats-strip .hs--gift { padding-right: 40px; }
}
/* 320–359: «Получить прогноз за 24 часа» в одну строку */
@media (max-width: 359px) {
  .hero__ctas .btn { padding-inline: 14px; gap: 8px; font-size: 15px; }
}

/* ===== 17-about ===== */
/* ===== Обо мне: тёмный блок основателя в духе DREVA — фото слева, текст и цифры справа ===== */
.ab { background: radial-gradient(110% 80% at 15% 0%, color-mix(in srgb, var(--blue) 22%, var(--dk)) 0%, var(--dk) 60%); }
.ab__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  -webkit-mask-image: radial-gradient(60% 70% at 25% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 70% at 25% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.ab__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: stretch; }

/* фото */
.ab-photo {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--dk-2);
  box-shadow: inset 0 0 0 1px var(--dk-line), 0 50px 100px -50px rgba(57, 98, 255, .55);
  isolation: isolate;
}
.ab-photo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% 40%; filter: contrast(1.05) brightness(.92); }
.ab-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 18, 41, .94) 0%, rgba(10, 18, 41, .55) 30%, transparent 58%),
    radial-gradient(70% 55% at 85% 10%, rgba(57, 98, 255, .45), transparent 70%),
    linear-gradient(160deg, rgba(57, 98, 255, .12), rgba(10, 18, 41, .1));
  mix-blend-mode: normal;
}
.ab-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }
.ab-photo__since {
  position: absolute;
  z-index: 2;
  left: 20px;
  top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(17, 27, 56, .55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.ab-photo__since .ic { width: 18px; height: 18px; color: #9fb0ff; }
.ab-photo__quote {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: rgba(17, 27, 56, .5);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
}
.ab-photo__mark { font-size: 44px; font-weight: 800; line-height: .6; height: 22px; color: var(--yellow); }
.ab-photo__quote p { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-wrap: balance; }
.ab-photo__sign { color: var(--dk-muted); font-size: 14px; }

/* текст */
.ab-copy { display: grid; align-content: center; gap: 26px; min-width: 0; }
.ab-head { margin-bottom: 0; }
.ab-head .h2 { max-width: 17ch; }
.ab-name { display: grid; gap: 4px; }
.ab-name b { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ab-name b .ic { width: 24px; height: 24px; color: var(--sky); }
.ab-name span { color: var(--dk-muted); font-size: 15.5px; }
.ab-text { display: grid; gap: 14px; max-width: 60ch; color: var(--ink-2); line-height: 1.6; }
.ab-text p { text-wrap: pretty; }
.ab-nw { white-space: nowrap; }
.ab-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ab-stats .stat-card { padding: 20px 20px 18px; }
.ab-stats b { font-size: clamp(1.35rem, 1.05rem + 1vw, 1.85rem); white-space: nowrap; font-variant-numeric: proportional-nums; }
.ab-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.ab-link:hover { text-decoration-color: #fff; }
.ab-tools { display: grid; gap: 10px; }
.ab-tools .note { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 600; }
.ab-tools .chip .ab-ya { color: inherit; }
.ab-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 4px; }
.ab-tel { display: inline-flex; align-items: center; gap: 14px; border-radius: 18px; }
.ab-tel .ic-tile { transition: background-color .2s; }
.ab-tel:hover .ic-tile { background: rgba(57, 98, 255, .3); }
.ab-tel__txt { display: grid; gap: 2px; line-height: 1.2; }
.ab-tel__txt small { color: var(--dk-muted); font-size: 13.5px; }
.ab-tel__txt b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }

/* ===== адаптив ===== */
@media (max-width: 1180px) {
  .ab__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .ab-stats b { font-size: clamp(1.25rem, 1rem + .9vw, 1.6rem); }
}
@media (max-width: 1024px) {
  .ab-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ab-stats li:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* одна колонка: заголовок → фото → имя, текст, цифры */
  .ab__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .ab-copy { display: contents; }
  .ab-head { order: -2; }
  .ab-photo { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .ab-photo__img { object-position: 70% 35%; }
  .ab-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab-stats li:first-child { grid-column: auto; }
}
@media (max-width: 760px) {
  .ab__grid { gap: 22px; }
  .ab-photo { aspect-ratio: 4 / 4.2; border-radius: var(--r-lg); }
  .ab-photo__img { object-position: 76% 30%; }
  .ab-photo__since { left: 14px; top: 14px; font-size: 13px; padding: 8px 12px; }
  .ab-photo__quote { left: 12px; right: 12px; bottom: 12px; padding: 16px 18px; }
  .ab-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .ab-stats li:first-child { grid-column: 1 / -1; }
  .ab-stats .stat-card { padding: 16px; }
  .ab-ctas { display: grid; gap: 14px; }
  .ab-ctas .btn { width: 100%; }
  .ab-tel { justify-self: start; }
}
/* узкий телефон: фото выше — лицо целиком над цитатой, а не под ней */
@media (max-width: 420px) {
  .ab-photo { aspect-ratio: 4 / 5; }
}

/* ===== 18-reviews ===== */
/* ===== Видеоотзывы: две крупные карточки, три поменьше, текстовый отзыв ===== */
.rv-head > div { flex: 1 1 560px; }
.rv-lead { flex: 0 1 400px; margin-top: 0; max-width: 40ch; }
.rv-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.rv-card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.rv-card--big { grid-column: span 3; }
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.rv-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dk-2); }
.rv-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.rv-card:hover .rv-media img { transform: scale(1.03); }
.rv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 41, .45), transparent 45%); pointer-events: none; }
.rv-play {
  position: absolute;
  z-index: 1;
  left: 20px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: var(--blue);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .18), 0 18px 34px -14px rgba(0, 0, 0, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rv-play .ic { width: 26px; height: 26px; margin-left: 3px; }
.rv-card:hover .rv-play { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(255, 255, 255, .22), 0 18px 34px -14px rgba(0, 0, 0, .6); }
.rv-yt {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(10, 18, 41, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}
.rv-yt .ic { width: 15px; height: 15px; }
.rv-card:not(.rv-card--big) .rv-play { width: 52px; height: 52px; left: 16px; bottom: 14px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .18), 0 14px 28px -12px rgba(0, 0, 0, .6); }
.rv-card:not(.rv-card--big) .rv-play .ic { width: 22px; height: 22px; }

.rv-body { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 16px; padding: 22px 24px 24px; }
.rv-card--big .rv-body { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto; align-items: center; gap: 12px 20px; padding: 24px 28px 26px; }
.rv-name { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.2; }
.rv-card--big .rv-name { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
.rv-role { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.rv-res { justify-self: start; gap: 6px; padding: 8px 12px; border-radius: 11px; font-size: 14px; }
.rv-card--big .rv-res { font-size: 15px; padding: 10px 14px; }
.rv-res .ic { width: 16px; height: 16px; stroke-width: 2.2; }

/* текстовый отзыв */
.rv-quote { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: 20px; padding: clamp(24px, 3vw, 40px); overflow: hidden; }
.rv-quote::before { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(57, 98, 255, .12), transparent 70%); pointer-events: none; }
.rv-quote__main { position: relative; display: grid; gap: 20px; }
.rv-quote__mark { display: block; height: 40px; font-size: 96px; font-weight: 800; line-height: .9; color: var(--blue); opacity: .9; }
.rv-quote__text { margin: 0; }
.rv-nw { white-space: nowrap; }
.rv-quote__text p { font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); font-weight: 600; line-height: 1.4; letter-spacing: -.015em; text-wrap: pretty; }
.rv-quote__who { display: flex; align-items: center; gap: 12px 14px; }
.rv-quote__who > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; line-height: 1.25; }
.rv-quote__who b { font-size: 16px; }
.rv-quote__who small { color: var(--muted); font-size: 14px; }
.rv-quote__ava { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--grad-btn); color: #fff; font-size: 15px; font-weight: 700; }
.rv-quote__src { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--blue); font-size: 14.5px; font-weight: 600; }
.rv-quote__src .ic { width: 16px; height: 16px; }
.rv-quote__src:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-quote__kpi { position: relative; display: grid; gap: 12px; }
.rv-quote__kpi li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); }
.rv-quote__kpi li > span:last-child { display: grid; gap: 2px; color: var(--muted); font-size: 14px; line-height: 1.3; text-wrap: balance; }
.rv-quote__kpi b { color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

/* ===== адаптив ===== */
/* кнопка воспроизведения меньше, чтобы не закрывать имя, впечатанное в превью */
@media (max-width: 1180px) {
  .rv-card:not(.rv-card--big) .rv-play { width: 40px; height: 40px; left: 12px; bottom: 10px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(0, 0, 0, .6); }
  .rv-card:not(.rv-card--big) .rv-play .ic { width: 18px; height: 18px; margin-left: 2px; }
}
@media (max-width: 1024px) {
  .rv-card--big .rv-play { width: 44px; height: 44px; left: 14px; bottom: 12px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .18), 0 12px 24px -10px rgba(0, 0, 0, .6); }
  .rv-card--big .rv-play .ic { width: 20px; height: 20px; }
  .rv-grid { gap: 16px; }
  .rv-card--big .rv-body { grid-template-columns: minmax(0, 1fr); padding: 22px 24px 24px; }
  .rv-body { padding: 18px 18px 20px; }
  .rv-quote { grid-template-columns: minmax(0, 1fr); }
  .rv-quote__kpi { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .rv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rv-card, .rv-card--big { grid-column: auto; }
  .rv-card:last-child { grid-column: 1 / -1; flex-direction: row; }
  .rv-card:last-child .rv-media { flex: 0 0 56%; }
  .rv-card:last-child .rv-body { grid-template-rows: auto auto; align-content: center; }
}
@media (max-width: 760px) {
  /* на телефоне — лента с прокруткой пальцем */
  .rv-grid {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    /* снизу запас под тень карточек (иначе она обрезается ровной линией); отрицательный margin возвращает прежний зазор до цитаты */
    padding: 4px var(--gutter) 56px;
    margin-bottom: -32px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .rv-grid::-webkit-scrollbar { display: none; }
  .rv-card, .rv-card--big, .rv-card:last-child { flex: 0 0 84%; flex-direction: column; scroll-snap-align: start; }
  .rv-card:last-child .rv-media { flex: none; }
  .rv-card:last-child .rv-body { grid-template-rows: 1fr auto; align-content: normal; }
  .rv-card .rv-play, .rv-card:not(.rv-card--big) .rv-play { width: 40px; height: 40px; left: 12px; bottom: 8px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18), 0 10px 22px -10px rgba(0, 0, 0, .6); }
  .rv-yt { right: 10px; bottom: 10px; }
  .rv-quote__ava { width: 40px; height: 40px; font-size: 14px; }
  .rv-card:hover { transform: none; }
  .rv-name, .rv-card--big .rv-name { font-size: 17px; }
  .rv-role { font-size: 14px; }
  .rv-quote { margin-top: 4px; }
  .rv-quote__mark { height: 30px; font-size: 72px; }
  .rv-quote__kpi { grid-template-columns: minmax(0, 1fr); }
  .rv-quote__src { margin-left: 0; width: 100%; }
}

/* ===== 21-faq ===== */
/* ===== Вопросы: заголовок и карточка «спросите лично» слева, аккордеон справа ===== */
/* clip вместо hidden у .sec--glow: секция не становится контейнером прокрутки, и левая колонка прилипает к окну */
.sec.faq { overflow: clip; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
/* 1025–1054: левая колонка чуть шире — «Что спрашивают / перед стартом» в 2 строки, без одинокого «Что» */
@media (min-width: 1025px) and (max-width: 1054px) {
  .faq__grid { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
}
.faq-side { position: sticky; top: 110px; display: grid; gap: 28px; }
.faq-head { margin-bottom: 0; }
.faq-head .h2 { max-width: 100%; }

/* карточка «не нашли вопрос» с макетом переписки */
.faq-ask { display: grid; gap: 20px; }
.faq-chat { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--bg); }
.faq-chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.4; }
.faq-chat__msg--in { justify-self: start; border-bottom-left-radius: 6px; background: var(--surface); color: var(--ink-2); box-shadow: 0 1px 2px rgba(13, 21, 48, .06); }
.faq-chat__msg--out { justify-self: end; border-bottom-right-radius: 6px; background: var(--grad-btn); color: #fff; }
.faq-ask__who { display: flex; align-items: center; gap: 14px; }
.faq-ask__ava { position: relative; flex: none; width: 52px; height: 52px; }
.faq-ask__ava img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.faq-ask__ava::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--surface); }
.faq-ask__who > span:last-child { display: grid; gap: 2px; line-height: 1.25; }
.faq-ask__who b { font-size: 17px; letter-spacing: -.01em; }
.faq-ask__who small { color: var(--muted); font-size: 14px; }
.faq-ask__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-ask__btns .btn { flex: 1 1 auto; }
.faq-ask__btns .btn .ic { width: 18px; height: 18px; }
.faq-ask__btns .btn:hover .ic { transform: none; }
/* вторичная кнопка на белой карточке — тональная, как в тарифах */
.faq-ask .btn--ghost { background: var(--blue-soft); color: var(--blue-d); box-shadow: none; }
.faq-ask .btn--ghost:hover { box-shadow: none; }

/* аккордеон */
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow); transition: box-shadow .25s var(--ease), background-color .25s; }
.faq-item[open] { background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--blue-soft) 55%, var(--surface)) 100%); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px color-mix(in srgb, var(--blue) 40%, transparent); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 22px 22px 26px; cursor: pointer; list-style: none; border-radius: inherit; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline-offset: -2px; }
.faq-q { font-size: clamp(1.02rem, .95rem + .3vw, 1.18rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.faq-pm { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bg); color: var(--ink); transition: transform .3s var(--ease), background-color .2s, color .2s; }
.faq-pm .ic { width: 20px; height: 20px; stroke-width: 2; }
.faq-item summary:hover .faq-pm { background: var(--blue-soft); color: var(--blue); }
.faq-item[open] .faq-pm { transform: rotate(45deg); background: var(--blue); color: #fff; box-shadow: var(--shadow-btn); }
.faq-a { padding: 0 86px 24px 26px; color: var(--ink-2); line-height: 1.6; }
.faq-a p { max-width: 60ch; }
/* без одного слова в последней строке вопроса и ответа; слова с дефисом не рвутся */
.faq-q, .faq-a p { text-wrap: pretty; }
.faq-nw { white-space: nowrap; }
.faq-item[open] .faq-a { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ===== адаптив ===== */
/* невысокий ноутбук: колонка выше окна — не прилипает, стоит вровень со списком */
@media (min-width: 1025px) and (max-height: 759px) {
  .faq-side { position: static; }
}
/* 1025–1259: колонка выше (до 832 px) — не прилипает и при высоте окна до 849 */
@media (min-width: 1025px) and (max-width: 1259px) and (max-height: 849px) {
  .faq-side { position: static; }
}
@media (max-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-side { position: static; display: contents; }
  .faq-head { order: 0; }
  .faq-list { order: 1; }
  .faq-ask { order: 2; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .faq-ask .faq-chat { grid-row: span 2; }
}
@media (max-width: 760px) {
  .faq__grid { gap: 24px; }
  .faq-ask { grid-template-columns: minmax(0, 1fr); }
  .faq-ask .faq-chat { grid-row: auto; }
  .faq-ask__btns { display: grid; }
  .faq-ask__btns .btn { width: 100%; }
  .faq-list { gap: 10px; }
  .faq-item summary { gap: 14px; padding: 18px 16px 18px 18px; }
  .faq-pm { width: 38px; height: 38px; }
  .faq-a { padding: 0 18px 20px; font-size: 15.5px; }
}

/* ===== 22-forecast ===== */
/* ===== Прогноз за 24 часа: тёмная карточка слева, белый квиз в тёмной рамке справа (как у DREVA) ===== */
.qz__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(16px, 2vw, 24px); align-items: stretch; }

/* левая тёмная карточка */
.qz-side {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: clamp(26px, 3.2vw, 44px);
  overflow: hidden;
  border-radius: var(--r-xl);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(57, 98, 255, .55), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(255, 197, 1, .08), transparent 70%),
    linear-gradient(160deg, color-mix(in srgb, var(--blue) 26%, var(--dk)) 0%, var(--dk) 70%);
  box-shadow: var(--shadow-lg);
}
.qz-side__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: none;
  -webkit-mask-image: radial-gradient(80% 60% at 90% 10%, #000 0%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 90% 10%, #000 0%, transparent 75%);
}
.qz-title { margin-top: -4px; max-width: 13ch; font-size: clamp(2rem, 1.2rem + 2.2vw, 3.2rem); }
.qz-lead { max-width: 44ch; color: #c3cadb; font-size: clamp(1rem, .95rem + .25vw, 1.15rem); line-height: 1.55; text-wrap: pretty; }
.qz-points { display: grid; gap: 10px; width: 100%; }
/* на десктопе пункты прижаты к низу карточки — вровень с кнопкой квиза, без пустой полосы под ними */
@media (min-width: 1025px) {
  .qz-points { margin-top: auto; }
}
.qz-points li { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.qz-points li > span:last-child { display: grid; gap: 2px; color: var(--dk-muted); font-size: 14.5px; line-height: 1.35; text-wrap: balance; }
.qz-points b { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.qz-guar { display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px; border-radius: var(--r-md); background: linear-gradient(100deg, rgba(23, 163, 104, .16), rgba(23, 163, 104, .04)); box-shadow: inset 0 0 0 1px rgba(23, 163, 104, .3); }
.qz-side .qz-guar .ic-tile { background: rgba(23, 163, 104, .2); color: #5ee0a6; box-shadow: inset 0 0 0 1px rgba(94, 224, 166, .3); }
.qz-guar p { color: #d3dae8; font-size: 15px; line-height: 1.5; }
.qz-guar b { color: #fff; }

/* правая карточка квиза в толстой тёмной рамке */
.qz-frame { display: flex; padding: 10px; border-radius: calc(var(--r-xl) + 4px); background: var(--dk); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(13, 21, 48, .08); }
.qz-card { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 clamp(20px, 3vw, 40px) clamp(22px, 2.6vw, 34px); border-radius: var(--r-xl); background: var(--surface); overflow: hidden; }
.qz-progress { margin-inline: calc(clamp(20px, 3vw, 40px) * -1); height: 6px; border-radius: 0; }
.qz-progress i { border-radius: 0 99px 99px 0; }
.qz-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding-top: clamp(18px, 2.2vw, 26px); }
.qz-by { display: flex; align-items: center; gap: 10px; }
.qz-by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--blue-soft-2); }
.qz-by > span { display: grid; color: var(--muted); font-size: 13px; line-height: 1.3; }
.qz-by b { color: var(--ink); font-size: 14.5px; font-weight: 700; }

/* переключатель «Просто оставлю номер» */
.qz-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; font-weight: 600; cursor: pointer; user-select: none; }
.qz-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qz-switch__track { position: relative; width: 44px; height: 26px; flex: none; border-radius: 99px; background: var(--line-2); transition: background-color .2s; }
.qz-switch__track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 6px rgba(13, 21, 48, .25); transition: transform .25s var(--ease); }
.qz-switch input:checked + .qz-switch__track { background: var(--blue); }
.qz-switch input:checked + .qz-switch__track::after { transform: translateX(18px); }
.qz-switch input:focus-visible + .qz-switch__track { outline: 2.5px solid var(--blue); outline-offset: 3px; }
/* после отправки переключатель выключен — не показываем, чтобы не казался рабочим */
.qz-switch:has(input:disabled) { display: none; }

.qz-tariff { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.qz-tariff .ic { width: 20px; height: 20px; }
/* «Ответьте на 5 вопросов» не к месту над короткой формой и над «Спасибо» */
.qz-card:has(> .qz-phone:not([hidden])) .qz-tariff, .qz-card:has(> .qz-done:not([hidden])) .qz-tariff { display: none; }

/* шаги */
.qz-form { display: flex; flex-direction: column; flex: 1; }
.qz-steps { flex: 1; min-height: 500px; padding-top: 22px; }
.qz-steps--phone { min-height: 0; }
/* шаг 5 (имя и телефон) вдвое короче — без пустой полосы до навигации, как в окне */
.qz-steps:has(> .qz-step[data-step="5"]:not([hidden])) { min-height: 0; }
.qz-step { min-width: 0; margin: 0; padding: 0; border: 0; animation: qz-in .35s var(--ease); }
@keyframes qz-in { from { opacity: 0; transform: translateX(12px); } }
.qz-q { display: block; float: left; width: 100%; margin-bottom: 20px; padding: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 1.85rem); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
.qz-q + * { clear: both; }
.qz-sub { margin-top: -8px; margin-bottom: 18px; color: var(--muted); }
.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qz-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qz-opt { position: relative; display: block; cursor: pointer; }
.qz-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qz-opt > span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 138px;
  height: 100%;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.25;
  transition: box-shadow .2s, background-color .2s, color .2s, transform .2s var(--ease);
}
/* кружок радио — в правом верхнем углу карточки */
.qz-opt > span::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-2);
  background: var(--surface);
  transition: box-shadow .2s, background-color .2s;
}
.qz-opt__t { padding-right: 4px; text-wrap: balance; }
.qz-opt__ic { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--blue-soft); color: var(--blue); transition: background-color .2s, color .2s; }
.qz-opt__ic .ic { width: 24px; height: 24px; }
.qz-meter { display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 13px; }
.qz-meter i { width: 5px; border-radius: 2px; background: color-mix(in srgb, var(--blue) 22%, transparent); }
.qz-meter i:nth-child(1) { height: 7px; }
.qz-meter i:nth-child(2) { height: 11px; }
.qz-meter i:nth-child(3) { height: 15px; }
.qz-meter i:nth-child(4) { height: 19px; }
.qz-meter i.on { background: var(--blue); }
.qz-opt:hover > span { box-shadow: inset 0 0 0 1.5px var(--blue); transform: translateY(-1px); }
.qz-opt input:checked + span { background: var(--blue-soft); box-shadow: inset 0 0 0 2px var(--blue), 0 14px 28px -18px rgba(57, 98, 255, .7); color: var(--ink); }
.qz-opt input:checked + span::before { background: var(--blue); box-shadow: inset 0 0 0 5px var(--surface), 0 0 0 2px var(--blue); }
.qz-opt input:checked + span .qz-opt__ic { background: var(--blue); color: #fff; }
.qz-opt input:checked + span .qz-meter i { background: rgba(255, 255, 255, .35); }
.qz-opt input:checked + span .qz-meter i.on { background: #fff; }
.qz-opt input:focus-visible + span { outline: 2.5px solid var(--blue); outline-offset: 2px; }
.qz-opt--sm > span { flex-direction: row; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 12px; }
.qz-opt--sm > span::before { display: none; }
.qz-opt--sm .ic { width: 20px; height: 20px; color: var(--blue); }
.qz-field { display: grid; gap: 8px; margin-top: 16px; }
.qz-field > span { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.qz-field em { font-style: normal; font-weight: 500; color: var(--muted); }
.qz-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 4px; }
.qz-field .input:user-invalid { border-color: var(--crit); }

/* красный текст — тот же тон, что у .badge--crit: 5,43:1 на белом, 4,63:1 на --crit-soft */
.qz-hint { min-height: 0; color: color-mix(in srgb, var(--crit) 80%, var(--ink)); font-size: 14px; font-weight: 500; }
.qz-hint:not(:empty) { margin-top: 12px; }
.qz-nav { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.qz-count { margin-right: auto; color: var(--muted); font-size: 15px; font-weight: 600; }
.qz-back { display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); transition: box-shadow .2s, opacity .2s; }
.qz-back:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.qz-back:disabled { opacity: .35; cursor: default; }
.qz-back .ic { width: 22px; height: 22px; }
.qz-next, .qz-send { min-height: 56px; }
.qz-consent { margin-top: 14px; max-width: 64ch; text-wrap: balance; }
/* две обязательные галочки согласия (6.10.2026) */
.qz-agree { display: grid; gap: 8px; margin-block: 14px 4px; }
.qz-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; text-wrap: pretty; }
.qz-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); cursor: pointer; }
.qz-check a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.qz-check a:hover { text-decoration-color: currentColor; }
.qz-check.is-bad { color: var(--crit); }
.qz-check.is-bad input { outline: 2px solid var(--crit); outline-offset: 2px; border-radius: 3px; }
.qz-agree__err { padding: 8px 12px; border-radius: 10px; background: var(--crit-soft); color: color-mix(in srgb, var(--crit) 80%, var(--ink)); font-size: 13.5px; line-height: 1.4; }
.qz-agree__note { margin: 2px 0 0; }
.qz-err { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--crit-soft); color: color-mix(in srgb, var(--crit) 80%, var(--ink)); font-size: 14px; line-height: 1.45; }
.qz-err a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* готово */
.qz-done { flex: 1; display: grid; align-content: center; justify-items: start; gap: 14px; padding-block: 28px 8px; animation: qz-in .35s var(--ease); }
.qz-done:focus { outline: 0; }
.qz-done__ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--ok-soft); color: var(--ok); }
.qz-done__ic .ic { width: 32px; height: 32px; stroke-width: 2.4; }
.qz-done__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.qz-done__text { max-width: 46ch; color: var(--ink-2); }
.qz-done__text a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.qz-done__next { display: grid; gap: 8px; width: 100%; margin-top: 8px; }
.qz-done__next li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--ink-2); font-size: 15px; line-height: 1.35; text-wrap: pretty; }
.qz-done__next b { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px; background: var(--surface); color: var(--blue); font-size: 14px; box-shadow: var(--shadow); }

/* ===== адаптив ===== */
@media (max-width: 1024px) {
  .qz__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .qz-title { max-width: 16ch; }
  .qz-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qz-points li { flex-direction: column; align-items: flex-start; gap: 12px; }
  .qz-steps { min-height: 450px; }
  .qz-opt > span { min-height: 120px; }
  /* каналы «Telegram / Позвоните мне» остаются низкими, вровень с полями */
  .qz-opt--sm > span { min-height: 56px; }
}
@media (max-width: 760px) {
  .qz-side { gap: 18px; padding: 24px 20px; border-radius: var(--r-lg); }
  .qz-points { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .qz-points li { flex-direction: row; align-items: center; gap: 14px; padding: 10px 12px; }
  .qz-points li > span:last-child { font-size: 13.5px; }
  .qz-points b { font-size: 16px; }
  .qz-guar { padding: 16px; gap: 14px; }
  .qz-frame { padding: 6px; border-radius: calc(var(--r-lg) + 6px); }
  .qz-card { padding: 0 16px 18px; border-radius: var(--r-lg); }
  .qz-progress { margin-inline: -16px; }
  .qz-top { padding-top: 16px; }
  .qz-steps { min-height: 0; padding-top: 16px; }
  .qz-q { margin-bottom: 16px; font-size: 1.35rem; }
  .qz-opts { gap: 8px; }
  .qz-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .qz-opt > span { gap: 10px; min-height: 100px; padding: 12px; border-radius: 16px; font-size: 14px; }
  .qz-opt > span::before { right: 10px; top: 10px; width: 20px; height: 20px; }
  .qz-opt__ic { width: 36px; height: 36px; border-radius: 11px; }
  .qz-opt__ic .ic { width: 19px; height: 19px; }
  .qz-meter { padding-bottom: 9px; }
  .qz-opt--sm > span { flex-direction: column; gap: 4px; min-height: 60px; padding: 10px 6px; font-size: 13px; text-align: center; }
  .qz-fields { grid-template-columns: minmax(0, 1fr); }
  .qz-nav { flex-wrap: wrap; gap: 10px; padding-top: 16px; margin-top: 18px; }
  .qz-count { flex: 1 0 auto; }
  .qz-next, .qz-send { flex: 1 1 100%; order: 3; }
  .qz-back { width: 50px; height: 50px; }
}
/* узкий телефон: в блоке варианты в один столбец строкой — «Интернет-магазин» не рвётся по дефису, подписи не в 3 строки (в окне то же с 380 px — 99-popups.css) */
@media (max-width: 420px) {
  .qz-frame .qz-opts:not(:has(.qz-opt--sm)) { grid-template-columns: minmax(0, 1fr); }
  .qz-frame .qz-opt:not(.qz-opt--sm) > span { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 60px; padding: 10px 44px 10px 12px; }
  .qz-frame .qz-opt:not(.qz-opt--sm) > span::before { top: 50%; margin-top: -10px; }
}

/* ===== 90-footer ===== */
/* ===== Подвал: тёмный, логотип как в шапке, таблетки контактов, часы Москвы ===== */
.ft { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(56px, 7vw, 96px) clamp(24px, 3vw, 36px); background: var(--dk); }
.ft__glow { position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1100px, 100%); height: 520px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(57, 98, 255, .32), rgba(57, 98, 255, .08) 60%, transparent); pointer-events: none; }
.ft__inner { display: grid; gap: clamp(32px, 4vw, 48px); }

/* верх и середина подвала — на сетке плашек контактов: правая колонка на одной вертикали с третьей плашкой */
.ft-top, .ft-mid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; }
.ft-top { align-items: center; row-gap: 20px; }
.ft-logo, .ft-mid > .ft-col:first-child { grid-column: span 2; }
.ft-logo { display: flex; align-items: center; justify-self: start; gap: 16px; }
.ft-logo__mark { display: block; width: auto; height: 19px; aspect-ratio: 132 / 12; color: #fff; }
.ft-logo__role { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .62); font-size: 12.5px; font-weight: 500; line-height: 1.25; white-space: nowrap; }
.ft-title { max-width: 46ch; color: var(--dk-muted); font-size: 15.5px; line-height: 1.5; }

.ft-pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ft-pill { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 18px 14px 14px; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .2s, box-shadow .2s; }
.ft-pill:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(124, 146, 255, .4); }
.ft-pill__txt { display: grid; gap: 2px; min-width: 0; line-height: 1.2; }
.ft-pill__txt small { color: var(--dk-muted); font-size: 13px; }
.ft-pill__txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(1rem, .9rem + .35vw, 1.2rem); font-weight: 700; letter-spacing: -.01em; }
/* телефон без табличных цифр: «256-19-91» без зазора после единицы */
.ft-pill__txt b.num { font-variant-numeric: normal; }
.ft-pill__go { width: 20px; height: 20px; margin-left: auto; color: var(--dk-muted); transition: transform .2s var(--ease), color .2s; }
.ft-pill:hover .ft-pill__go { color: #fff; transform: translate(2px, -2px); }

.ft-mid { row-gap: 28px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--dk-line); }
.ft-col { display: grid; align-content: start; gap: 14px; }
.ft-label { color: var(--dk-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ft-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ft-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 15px; font-weight: 500; transition: background-color .2s; }
.ft-links a:hover { background: rgba(255, 255, 255, .1); }
.ft-links .ic { width: 18px; height: 18px; color: var(--yellow); }
.ft-vk { display: grid; place-items: center; width: 22px; height: 18px; border-radius: 5px; background: rgba(255, 197, 1, .16); color: var(--yellow); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
.ft-links--plain { gap: 4px 18px; }
.ft-links--plain a { min-height: 32px; padding: 0; background: none; box-shadow: none; color: #c9d0df; }
.ft-links--plain a:hover { background: none; color: #fff; }
.ft-clock { display: flex; align-items: center; gap: 10px; }
/* часы тоже без табличных цифр: «19:03», а не «1 9:03»; справа в строке ничего нет, смена минут ничего не сдвигает */
.ft-clock b { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: normal; }
.ft-clock__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(23, 163, 104, .2); }
.ft-hours { color: var(--dk-muted); font-size: 14px; }

.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 22px; border-top: 1px solid var(--dk-line); color: var(--dk-muted); font-size: 13.5px; line-height: 1.45; }
.ft-policy { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ft-policy a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 3px; }
.ft-policy a:hover { color: #fff; }

/* ===== адаптив ===== */
/* до 1180 плашки 2+1: в три колонки почта и телефон обрезаются многоточием */
@media (max-width: 1180px) {
  .ft-pills { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ft-pills li:last-child { grid-column: 1 / -1; }
  .ft-top, .ft-mid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-logo, .ft-mid > .ft-col:first-child { grid-column: auto; }

}
@media (max-width: 760px) {
  /* место под нижнюю панель быстрых действий */
  .ft { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ft-pills { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ft-pills li:last-child { grid-column: auto; }
  .ft-pill { padding: 12px 16px 12px 12px; border-radius: 18px; }
  .ft-top, .ft-mid { grid-template-columns: minmax(0, 1fr); }
  .ft-mid { row-gap: 24px; }
  .ft-time { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ft-bottom { flex-direction: column; }
  .ft-policy { flex-direction: column; }
}
/* узкий телефон: без стрелки почта помещается целиком */
@media (max-width: 380px) {
  .ft-pill__go { display: none; }
}

/* ===== 91-tabbar ===== */
/* ===== Нижняя панель быстрых действий: только на телефоне ===== */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar {
    position: fixed;
    z-index: 90;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 6px;
    padding: 6px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 18px 40px -16px rgba(14, 20, 40, .45);
    transition: transform .3s var(--ease), opacity .3s, visibility 0s;
  }
  /* пока видны кнопки первого экрана или квиз (класс ставит 91-tabbar.js) — панель уезжает вниз */
  .tabbar.is-away { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s var(--ease), opacity .3s, visibility 0s .3s; }
  .tabbar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 52px;
    padding: 0 8px;
    border-radius: 16px;
    color: var(--ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.1;
    white-space: nowrap;
    transition: background-color .2s;
  }
  .tabbar__item:active { background: var(--bg-2); }
  .tabbar__item .ic { width: 20px; height: 20px; color: var(--blue); }
  .tabbar__item--main { background: var(--grad-btn); color: #fff; box-shadow: var(--shadow-btn); }
  .tabbar__item--main .ic { color: #fff; }
  .tabbar__item--main:active { background: var(--blue-d); }
}
/* узкий телефон: значок над подписью, иначе «Прогноз» уходит за край панели */
@media (max-width: 420px) {
  .tabbar__item { flex-direction: column; gap: 3px; padding: 0 4px; font-size: 12.5px; }
  .tabbar__item .ic { width: 20px; height: 20px; }
}

/* ===== 95-buttons ===== */
/* ===== Кнопки как на alekseykomarov.pro: круг заливки поднимается снизу при наведении и уходит вверх,
   кнопка и надпись с разной силой тянутся за курсором и пружинят назад. Обёртку .btn__in и слой .btn__fill
   добавляет parts/95-buttons.js. ===== */
.btn, .hdr__gift { position: relative; overflow: hidden; isolation: isolate; }
.btn { transition: transform .9s cubic-bezier(.34, 1.5, .64, 1), box-shadow .2s var(--ease), color .35s var(--ease); }
.btn__in { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: inherit; transition: transform .9s cubic-bezier(.34, 1.5, .64, 1); }
.btn__fill { position: absolute; z-index: -1; top: -50%; left: -25%; width: 150%; height: 200%; border-radius: 50%; background: var(--ink); transform: translate3d(0, 76%, 0); transition: transform .6s var(--ease); pointer-events: none; }
.is-magnet, .is-magnet > .btn__in { transition-duration: .25s; transition-timing-function: cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) {
  .btn:hover > .btn__fill, .hdr__gift:hover > .btn__fill { transform: translate3d(0, 0, 0); }
  .btn.is-leaving > .btn__fill, .hdr__gift.is-leaving > .btn__fill { transform: translate3d(0, -76%, 0); }
  .btn--primary:hover { transform: none; }
}
.btn:focus-visible > .btn__fill { transform: translate3d(0, 0, 0); }

/* цвета заливки (просьба заказчика): на тёмном фоне — белая, на светлом — тёмно-синяя.
   Тёмный ли фон под кнопкой, определяет parts/95-buttons.js (класс .on-dark); шапка — по её состоянию. */
.btn > .btn__fill, .hdr__gift > .btn__fill { background: var(--ink); }
.btn.on-dark > .btn__fill { background: #fff; }
.hdr .btn > .btn__fill, .hdr__gift > .btn__fill { background: #fff; }
.is-light-hdr .hdr .btn > .btn__fill, .is-light-hdr .hdr__gift > .btn__fill { background: var(--ink); }
@media (hover: hover) {
  .btn:hover, .hdr__gift:hover { color: #fff; }
  .btn.on-dark:hover, .hdr .btn:hover, .hdr__gift:hover { color: var(--ink); }
  .btn--primary.on-dark:hover, .hdr .btn--primary:hover { color: var(--blue); }
  .is-light-hdr .hdr .btn:hover, .is-light-hdr .hdr__gift:hover { color: #fff; }
}

/* ===== 96-motion ===== */
/* ===== 96 Движение: появление при прокрутке, заполнение графиков, наведение, параллакс первого экрана =====
   Все скрытые состояния — только под html.motion-on. Класс ставит parts/96-motion.js и только без prefers-reduced-motion,
   поэтому без JS и при «уменьшить движение» страница сразу в конечном виде. Первый экран скрипт не прячет.
   Двигаем отдельными свойствами translate / scale / rotate: они складываются с transform блоков и не ломают его.
   Анимируются только transform, opacity и filter; линии графиков прорисовываются через stroke-dashoffset.
   Служебные классы: .mw-rise / .mw-pop / .mw-blur / .mw-split / .mw-num / .mw-fill — скрытое состояние до .mw-in;
   после анимации скрипт их снимает, и у элемента снова его собственные transition. */
html.motion-on {
  --mw-ease: cubic-bezier(.16, 1, .3, 1);
  --mw-soft: cubic-bezier(.25, .6, .3, 1);
  --mw-dur: .9s;
  --mw-dist: 26px;
}
@media (max-width: 760px) {
  html.motion-on { --mw-dur: .6s; --mw-dist: 14px; }
}

/* --- подъём снизу: плашки, лиды, карточки, элементы сеток (задержку --mw-d ставит скрипт) --- */
html.motion-on .mw-rise:not(.mw-in) { opacity: 0; translate: 0 var(--mw-dist); }
html.motion-on .mw-rise.mw-in {
  transition: opacity var(--mw-dur) var(--mw-ease) var(--mw-d, 0ms), translate calc(var(--mw-dur) * 1.2) var(--mw-ease) var(--mw-d, 0ms);
}

/* --- всплывающие плашки и уведомления в макетах --- */
html.motion-on .mw-pop:not(.mw-in) { opacity: 0; translate: 0 14px; scale: .92; }
html.motion-on .mw-pop.mw-in {
  transition: opacity .6s var(--mw-ease) var(--mw-d, 0ms), translate .9s var(--mw-ease) var(--mw-d, 0ms), scale .9s var(--mw-ease) var(--mw-d, 0ms);
}

/* --- крупная подпись целиком из размытия (сумма в блоке «Деньги от Яндекса») --- */
html.motion-on .mw-blur:not(.mw-in) { opacity: 0; filter: blur(14px); translate: 0 .2em; }
html.motion-on .mw-blur.mw-in {
  transition: opacity .9s var(--mw-ease) var(--mw-d, 0ms), filter 1.1s var(--mw-ease) var(--mw-d, 0ms), translate 1.1s var(--mw-ease) var(--mw-d, 0ms);
}

/* --- заголовки: слова собираются из размытия, построчно (задержку слова --wd ставит скрипт) --- */
html.motion-on .mw-split .mw-w { display: inline-block; }
html.motion-on .mw-split:not(.mw-in) .mw-w { opacity: 0; filter: blur(12px); translate: 0 .32em; }
/* резкость возвращается мягче, чем у подъёма: так заметно, что слово «собирается» */
html.motion-on .mw-split.mw-in .mw-w {
  transition: opacity .9s var(--mw-soft) var(--wd, 0ms), filter 1.2s var(--mw-soft) var(--wd, 0ms), translate 1.1s var(--mw-ease) var(--wd, 0ms);
}
@media (max-width: 760px) {
  html.motion-on .mw-split:not(.mw-in) .mw-w { filter: blur(8px); translate: 0 .22em; }
  html.motion-on .mw-split.mw-in .mw-w { transition-duration: .6s, .8s, .8s; }
}

/* --- крупные числа: проявляются, пока скрипт досчитывает до значения --- */
html.motion-on .mw-num:not(.mw-in) { opacity: 0; }
html.motion-on .mw-num.mw-in { transition: opacity .5s var(--mw-ease) var(--mw-d, 0ms); }

/* ===== графики: контейнер .mw-fill, шаг элемента --mw-i ставит скрипт ===== */
/* линии, которые прорисовывает скрипт (stroke-dashoffset), до старта не видны */
html.motion-on .mw-fill:not(.mw-in) .mw-draw { opacity: 0; }

/* 04 аудит: полосы «Сейчас» и «После» растут слева, строка за строкой */
html.motion-on .pains-audit.mw-fill .pains-audit__row dd i::before { transform-origin: 0 50%; }
html.motion-on .pains-audit.mw-fill:not(.mw-in) .pains-audit__row dd i::before { scale: 0 1; }
html.motion-on .pains-audit.mw-fill.mw-in .pains-audit__row dd i::before { transition: scale 1.2s var(--mw-ease) calc(var(--mw-d, 0ms) + 250ms + var(--mw-i, 0) * 120ms); }
html.motion-on .pains-audit.mw-fill.mw-in .pains-audit__row dd.is-after i::before { transition-delay: calc(var(--mw-d, 0ms) + 600ms + var(--mw-i, 0) * 120ms); }

/* 05 таймлайн запуска: синяя линия до 3-го дня прорисовывается слева */
html.motion-on .launch-steps.mw-fill::after { transform-origin: 0 50%; }
html.motion-on .launch-steps.mw-fill:not(.mw-in)::after { scale: 0 1; }
html.motion-on .launch-steps.mw-fill.mw-in::after { transition: scale 1.6s var(--mw-ease) calc(var(--mw-d, 0ms) + 350ms); }
/* 05 макет выдачи: строки-заглушки под объявлением */
html.motion-on .launch-serp.mw-fill .launch-serp__ghost i { transform-origin: 0 50%; }
html.motion-on .launch-serp.mw-fill:not(.mw-in) .launch-serp__ghost i { scale: 0 1; }
html.motion-on .launch-serp.mw-fill.mw-in .launch-serp__ghost i { transition: scale 1s var(--mw-ease) calc(var(--mw-d, 0ms) + 500ms + var(--mw-i, 0) * 70ms); }

/* 06 итог кейсов: волна графика поднимается снизу */
html.motion-on .cs-total.mw-fill .cs-total__chart { transform-origin: 50% 100%; }
html.motion-on .cs-total.mw-fill:not(.mw-in) .cs-total__chart { opacity: 0; scale: 1 .25; }
html.motion-on .cs-total.mw-fill.mw-in .cs-total__chart { transition: opacity 1s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms), scale 1.6s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms); }

/* 07 кольцо самопроверки: доворачивается на место */
html.motion-on .chk-ring.mw-fill:not(.mw-in) svg { opacity: 0; rotate: -90deg; scale: .9; }
html.motion-on .chk-ring.mw-fill.mw-in svg { transition: opacity .8s var(--mw-ease) var(--mw-d, 0ms), rotate 1.4s var(--mw-ease) var(--mw-d, 0ms), scale 1.4s var(--mw-ease) var(--mw-d, 0ms); }

/* 08 воронка калькулятора: полосы слева направо (ширину по-прежнему считает 08-analytics.js) */
html.motion-on .an-funnel.mw-fill .an-bar__t i { transform-origin: 0 50%; }
html.motion-on .an-funnel.mw-fill:not(.mw-in) .an-bar__t i { scale: 0 1; }
html.motion-on .an-funnel.mw-fill.mw-in .an-bar__t i { transition: scale 1.2s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms + var(--mw-i, 0) * 160ms); }

/* 09 онлайн-панель: остаток бюджета и полосы теста объявлений */
html.motion-on .pn-budget.mw-fill:not(.mw-in) .pn-budget__bar i { scale: 0 1; }
html.motion-on .pn-budget.mw-fill.mw-in .pn-budget__bar i { transition: scale 1.4s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms); }
html.motion-on .pn-ai__viz--ab.mw-fill s::before { transform-origin: 0 50%; }
html.motion-on .pn-ai__viz--ab.mw-fill:not(.mw-in) s::before { scale: 0 1; }
html.motion-on .pn-ai__viz--ab.mw-fill.mw-in s::before { transition: scale 1.2s var(--mw-ease) calc(var(--mw-d, 0ms) + 250ms + var(--mw-i, 0) * 180ms); }

/* 10 отчёт за месяц: столбики снизу вверх, подписи следом */
html.motion-on .rp-bars.mw-fill i { transform-origin: 50% 100%; }
html.motion-on .rp-bars.mw-fill:not(.mw-in) i { scale: 1 0; }
html.motion-on .rp-bars.mw-fill:not(.mw-in) b { opacity: 0; translate: 0 6px; }
html.motion-on .rp-bars.mw-fill.mw-in i { transition: scale 1s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms + var(--mw-i, 0) * 110ms); }
html.motion-on .rp-bars.mw-fill.mw-in b {
  transition: opacity .5s var(--mw-ease) calc(var(--mw-d, 0ms) + 550ms + var(--mw-i, 0) * 110ms), translate .7s var(--mw-ease) calc(var(--mw-d, 0ms) + 550ms + var(--mw-i, 0) * 110ms);
}

/* 11 что входит: связки между шагами, переключатели целей, мини-график */
html.motion-on .sc-chain.mw-fill:not(.mw-in) .sc-link { opacity: 0; translate: -8px 0; }
html.motion-on .sc-chain.mw-fill.mw-in .sc-link {
  transition: opacity .6s var(--mw-ease) calc(var(--mw-d, 0ms) + 400ms + var(--mw-i, 0) * 120ms), translate .8s var(--mw-ease) calc(var(--mw-d, 0ms) + 400ms + var(--mw-i, 0) * 120ms);
}
html.motion-on .sc-goals.mw-fill:not(.mw-in) .sc-sw::after { translate: -11px 0; }
html.motion-on .sc-goals.mw-fill.mw-in .sc-sw::after { transition: translate .6s var(--mw-ease) calc(var(--mw-d, 0ms) + 300ms + var(--mw-i, 0) * 160ms); }
html.motion-on .sc-ui--opt.mw-fill:not(.mw-in) .sc-opt__area { opacity: 0; }
html.motion-on .sc-ui--opt.mw-fill.mw-in .sc-opt__area { transition: opacity 1.2s var(--mw-ease) calc(var(--mw-d, 0ms) + 700ms); }

/* 13 график квартала: линии прорисовывает скрипт, остальное появляется по ходу */
html.motion-on .q9-chart.mw-fill:not(.mw-in) :is(.q9-leads-area, .q9-plan, .q9-note, .q9-plan-lbl) { opacity: 0; }
html.motion-on .q9-chart.mw-fill.mw-in :is(.q9-leads-area, .q9-note, .q9-plan-lbl) { transition: opacity 1.2s var(--mw-ease) calc(var(--mw-d, 0ms) + 900ms); }
html.motion-on .q9-chart.mw-fill.mw-in .q9-plan { transition: opacity .8s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms); }
html.motion-on .q9-chart.mw-fill:not(.mw-in) .q9-dot { scale: 0; }
html.motion-on .q9-chart.mw-fill.mw-in .q9-dot { transition: scale .6s var(--mw-ease) calc(var(--mw-d, 0ms) + 300ms); }
html.motion-on .q9-chart.mw-fill.mw-in .q9-dot--end { transition-delay: calc(var(--mw-d, 0ms) + 1700ms); }
html.motion-on .q9-chart.mw-fill:not(.mw-in) .q9-flag { opacity: 0; translate: 0 -10px; }
html.motion-on .q9-chart.mw-fill.mw-in .q9-flag {
  transition: opacity .6s var(--mw-ease) calc(var(--mw-d, 0ms) + 600ms + var(--mw-i, 0) * 200ms), translate .9s var(--mw-ease) calc(var(--mw-d, 0ms) + 600ms + var(--mw-i, 0) * 200ms);
}
html.motion-on .q9-chart.mw-fill:not(.mw-in) .q9-end { opacity: 0; translate: 10px 0; }
html.motion-on .q9-chart.mw-fill.mw-in .q9-end {
  transition: opacity .6s var(--mw-ease) calc(var(--mw-d, 0ms) + 1800ms), translate .9s var(--mw-ease) calc(var(--mw-d, 0ms) + 1800ms);
}
/* 13 карточки месяцев: сегменты прогресса */
html.motion-on .q9-seg.mw-fill i.is-on { transform-origin: 0 50%; }
html.motion-on .q9-seg.mw-fill:not(.mw-in) i.is-on { scale: 0 1; }
html.motion-on .q9-seg.mw-fill.mw-in i.is-on { transition: scale .7s var(--mw-ease) calc(var(--mw-d, 0ms) + 250ms + var(--mw-i, 0) * 140ms); }

/* 16 условия: строки-заглушки документа */
html.motion-on .ct-paper.mw-fill .ct-bars i { transform-origin: 0 50%; }
html.motion-on .ct-paper.mw-fill:not(.mw-in) .ct-bars i { scale: 0 1; }
html.motion-on .ct-paper.mw-fill.mw-in .ct-bars i { transition: scale 1s var(--mw-ease) calc(var(--mw-d, 0ms) + 200ms + var(--mw-i, 0) * 90ms); }

/* 20 ещё могу: полоса просмотра ролика */
html.motion-on .mr-vid.mw-fill .mr-vid__bar i { transform-origin: 0 50%; }
html.motion-on .mr-vid.mw-fill:not(.mw-in) .mr-vid__bar i { scale: 0 1; }
html.motion-on .mr-vid.mw-fill.mw-in .mr-vid__bar i { transition: scale 1.6s var(--mw-ease) calc(var(--mw-d, 0ms) + 300ms); }

/* ===== наведение: только мышь ===== */
@media (hover: hover) and (pointer: fine) {
  /* карточки с графиками и цифрами: лёгкий подъём и подсветка (класс ставится, только если у карточки нет своих transition) */
  html.motion-on .mw-lift { transition: translate .45s var(--mw-ease), box-shadow .45s var(--mw-ease); }
  html.motion-on .mw-lift:hover { translate: 0 -4px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(57, 98, 255, .16); }
  html.motion-on .is-dark .mw-lift:hover { box-shadow: inset 0 0 0 1px rgba(124, 146, 255, .42), 0 34px 70px -38px rgba(0, 0, 0, .85); }
  html.motion-on .pn-dash .mw-lift:hover { box-shadow: 0 16px 28px -20px rgba(14, 20, 40, .5), inset 0 0 0 1px rgba(57, 98, 255, .22); }
  html.motion-on .an-tile--accent.mw-lift:hover { box-shadow: 0 26px 46px -16px rgba(57, 98, 255, .9); }
  /* большой график: только подсветка, без подъёма */
  html.motion-on .mw-glow { transition: box-shadow .5s var(--mw-ease); }
  html.motion-on .mw-glow:hover { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(57, 98, 255, .14); }

  /* строки и столбики графиков: то, что под курсором, ярче, остальное приглушено */
  .pains-audit__rows:hover .pains-audit__row:not(:hover) { opacity: .5; }
  .pains-audit__row:hover dd i { filter: saturate(1.3) brightness(1.06); }
  .rp-bars:hover li:not(:hover) { opacity: .45; }
  .rp-bars li:hover i { filter: saturate(1.4) brightness(1.05); }
  .an-funnel:hover .an-bar:not(:hover) { opacity: .55; }
  .an-bar:hover .an-bar__t { filter: saturate(1.25) brightness(1.06); }
  .pn-ai__viz--ab:hover > span:not(:hover) { opacity: .5; }
  .sc-tree:hover li:not(:hover) { opacity: .5; }
  .pn-tbl tbody tr:hover td { background: var(--bg); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pains-audit__row, .rp-bars li, .an-bar, .pn-ai__viz--ab > span, .sc-tree li { transition: opacity .3s var(--ease); }
  .pains-audit__row dd i, .rp-bars i, .an-bar__t { transition: filter .3s var(--ease); }
}
/* картинки в рамке: лёгкий зум и сдвиг за курсором внутри рамки; наклон делает скрипт — только шире 900 px */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  html.motion-on .mw-zoom__img { transition: scale 1s var(--mw-ease), translate 1.2s var(--mw-ease); }
  html.motion-on .mw-zoom:hover .mw-zoom__img { scale: 1.045; translate: calc(var(--mw-mx, 0) * -1.6%) calc(var(--mw-my, 0) * -1.6%); }
}

/* печать: всё в конечном виде */
@media print {
  html.motion-on :is(.mw-rise, .mw-pop, .mw-blur, .mw-num, .mw-w, .mw-draw) { opacity: 1 !important; filter: none !important; translate: none !important; scale: none !important; }
}

/* ===== 97-video ===== */
/* ===== Всплывающий плеер видеоотзывов ===== */
.vd { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; color: #fff; }
.vd[open] { display: grid; place-items: center; }
.vd::backdrop { background: rgba(7, 13, 32, .84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vd__box { position: relative; width: min(100%, calc(80vh * 16 / 9), 1200px); }
.vd--vertical .vd__box { width: min(100%, calc(80vh * 9 / 16), 460px); }
.vd__video { display: block; width: 100%; height: auto; max-height: 80vh; border-radius: 20px; background: #000; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .85); }
.vd__close { position: absolute; top: -56px; right: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; transition: background-color .2s; }
.vd__close:hover { background: rgba(255, 255, 255, .26); }
.vd__close .ic { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .vd[open] .vd__box { animation: vd-in .35s var(--ease) both; }
}
@keyframes vd-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ===== 99-popups ===== */
/* ===== 99 Всплывающие окна с формами: квиз (копия карточки из блока «Прогноз») и простая заявка.
   На компьютере — белая карточка по центру (простая форма ~560 px, квиз ~720 px), на телефоне — лист снизу почти
   во весь экран с прокруткой внутри. Поля, плитки выбора, ошибка и «спасибо» — те же классы, что в квизе
   (parts/22-forecast.css), чтобы формы выглядели одинаково. Страницу под окном держит html.pp-lock. ===== */
html.pp-lock { overflow: hidden; scrollbar-gutter: stable; }

.pp {
  --pp-pad: clamp(22px, 2.6vw, 36px);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--ink);
}
.pp--quiz { --pp-pad: clamp(22px, 3vw, 40px); }
.pp[open] { display: grid; place-items: center; }
.pp::backdrop { background: rgba(7, 13, 32, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.pp__box {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.pp--quiz .pp__box { width: min(100%, 720px); }
.pp__box:focus { outline: 0; }
.pp__box > * { flex-shrink: 0; }

/* шапка окна: заголовок и крестик, при прокрутке внутри окна остаётся сверху */
.pp__head {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: calc(var(--pp-pad) - 4px) calc(var(--pp-pad) - 12px) 18px var(--pp-pad);
  background: var(--surface);
}
.pp__titles { min-width: 0; }
.pp__title { font-size: clamp(1.4rem, 1.15rem + .7vw, 1.8rem); font-weight: 800; line-height: 1.12; letter-spacing: -.03em; text-wrap: balance; }
.pp__sub { margin-top: 8px; max-width: 42ch; color: var(--muted); font-size: 16px; line-height: 1.45; text-wrap: pretty; }
.pp__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--bg-2); color: var(--ink); transition: background-color .2s, color .2s; }
.pp__close:hover { background: var(--ink); color: #fff; }
.pp__close .ic { width: 22px; height: 22px; }

/* квиз в окне: карточка без своей рамки, полоска прогресса — под шапкой во всю ширину */
.pp .qz-card { flex: 1 0 auto; padding: 0 var(--pp-pad) var(--pp-pad); border-radius: 0; }
.pp .qz-progress { margin-inline: calc(var(--pp-pad) * -1); }
.pp__quiz { display: flex; flex-direction: column; flex: 1 0 auto; }
@media (min-width: 761px) {
  /* компактнее, чем в блоке, чтобы окно влезало в экран ноутбука; высота шагов одна — окно не прыгает */
  .pp .qz-steps { min-height: 420px; }
  .pp .qz-opt:not(.qz-opt--sm) > span { min-height: 112px; }
  /* верх окна квиза закреплён, а не по центру: заголовок и крестик не прыгают при смене шагов */
  .pp--quiz[open] { align-items: start; }
  .pp--quiz { padding-top: max(24px, calc((100dvh - 820px) / 2)); }
}
/* невысокий экран ноутбука (1366×768 и ниже): варианты в строку, отступы плотнее — «Далее» видно без прокрутки окна */
@media (min-width: 761px) and (max-height: 860px) {
  .pp { padding-block: 16px; }
  .pp__head { padding-top: 18px; padding-bottom: 12px; }
  .pp .qz-top { padding-top: 12px; }
  .pp .qz-tariff { margin-top: 10px; padding-block: 8px; }
  .pp .qz-steps { min-height: 320px; padding-top: 16px; }
  .pp .qz-q { margin-bottom: 14px; }
  .pp .qz-opt:not(.qz-opt--sm) > span { flex-direction: row; align-items: center; justify-content: flex-start; min-height: 72px; padding: 12px 46px 12px 14px; }
  .pp .qz-opt:not(.qz-opt--sm) > span::before { top: 50%; margin-top: -11px; }
  .pp .qz-opt__ic { width: 42px; height: 42px; border-radius: 12px; }
  .pp .qz-nav { margin-top: 14px; padding-top: 14px; }
  .pp .qz-card { padding-bottom: 20px; }
  .pp--quiz { padding-top: max(16px, calc((100dvh - 620px) / 2)); }
  .pp__sub { margin-top: 4px; }
}
/* «Просто оставлю номер» и шаг 5 (поля): без запаса высоты под плитки — нет пустой полосы над кнопкой */
.pp .qz-steps--phone { min-height: 0; }
.pp .qz-steps:has(> .qz-step[data-step="5"]:not([hidden])) { min-height: 0; }
/* согласие — две ровные строки, без «данных.» одного на строке */
.pp .qz-consent { text-wrap: balance; }

/* простая форма */
.pp-form { display: grid; gap: 16px; padding: 4px var(--pp-pad) var(--pp-pad); }
.pp-form .qz-field { margin-top: 0; }
.pp-form .qz-fields { margin-top: 0; gap: 16px 12px; }
.pp-form__ch { min-width: 0; margin: 0; padding: 0; border: 0; }
.pp-form__l { float: left; width: 100%; margin-bottom: 8px; padding: 0; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.pp-form__l + * { clear: both; }
.pp-form__area { display: block; min-height: 104px; padding: 15px 20px; line-height: 1.45; resize: vertical; }
.pp-form__send { margin-top: 4px; }
.pp-form .qz-err, .pp-form .qz-consent { margin-top: 0; }
.pp-done { padding: 4px var(--pp-pad) var(--pp-pad); }
/* на «Спасибо» призыв «Расскажите коротко о задаче» уже не нужен */
.pp--form:has(.pp-done:not([hidden])) .pp__sub { display: none; }
/* невысокий экран ноутбука: простая форма плотнее — согласие и сообщение об ошибке помещаются в окно без прокрутки
   (отдельным блоком после базовых правил .pp-form, иначе они перебивают gap и padding) */
@media (min-width: 761px) and (max-height: 860px) {
  .pp-form { gap: 12px; padding-bottom: 20px; }
  .pp-form .input { min-height: 52px; } /* перебивает и min-height: 104px у textarea — нужно вместе с height ниже */
  .pp-form__area { height: 80px; padding-block: 12px; }
  .pp-form .qz-opt--sm > span { min-height: 48px; }
}
.pp-done__close.btn--ghost { margin-top: 8px; box-shadow: inset 0 0 0 1.5px var(--line-2); }

/* появление: на компьютере — из лёгкого уменьшения, на телефоне — лист выезжает снизу */
@media (prefers-reduced-motion: no-preference) {
  .pp[open] .pp__box { animation: pp-in .35s var(--ease) both; }
  .pp[open]::backdrop { animation: pp-fade .3s ease both; }
}
@keyframes pp-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes pp-up { from { transform: translateY(100%); } }
@keyframes pp-fade { from { opacity: 0; } }

@media (max-width: 760px) {
  .pp { --pp-pad: 20px; padding: 16px 0 0; }
  .pp[open] { place-items: end stretch; }
  .pp__box, .pp--quiz .pp__box { width: 100%; max-height: 100%; padding-bottom: env(safe-area-inset-bottom, 0px); border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .pp--quiz .pp__box { height: 100%; }
  .pp__head { padding: 18px 12px 14px var(--pp-pad); }
  .pp__title { font-size: 1.35rem; }
  .pp__sub { margin-top: 6px; font-size: 15px; }
  .pp .qz-card { padding-bottom: 20px; }
  .pp-form { gap: 14px; }
  .pp-form .qz-fields { gap: 14px; }
  .pp-done__close { width: 100%; }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .pp[open] .pp__box { animation: pp-up .4s var(--ease) both; }
}
/* узкий телефон: варианты квиза в окне в один столбец строкой, как в блоке «Прогноз», — подписи не рвутся по дефису и тире */
@media (max-width: 380px) {
  .pp .qz-opts:not(:has(.qz-opt--sm)) { grid-template-columns: minmax(0, 1fr); }
  .pp .qz-opt:not(.qz-opt--sm) > span { flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; min-height: 56px; padding: 10px 44px 10px 12px; }
  .pp .qz-opt:not(.qz-opt--sm) > span::before { top: 50%; margin-top: -10px; }
}

/* ===================================================================================================
   Сайт услуг Алексея Комарова — блоки поверх дизайна лендинга Директа (design2/css/base.css + части).
   Только токены base.css: фон --bg, карточки --surface, синий --blue, жёлтый --yellow, тёмные --dk*.
   =================================================================================================== */

/* ===== шапка: текущий раздел ===== */
.hdr--site .hdr__nav { gap: 20px; }
.hdr__nav a[aria-current="page"] { color: #fff; }
.hdr__nav a[aria-current="page"]::after { transform: scaleX(1); }
.is-light-hdr .hdr__nav a[aria-current="page"] { color: var(--ink); }
.hdr__menu a[aria-current="page"] { color: var(--blue); }

/* ===== общие мелочи ===== */
.sec .lead a, .faq-a a, .fw__list a, .feat__text a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.is-dark .sec .lead a, .is-dark .feat__text a { color: var(--yellow); }

/* ===== боли ===== */
.pn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pn-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: clamp(20px, 2.2vw, 28px); }
.pn-card__t { font-size: 1.12rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.pn-card p { margin-top: 8px; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.pn-out { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 16px; padding: clamp(24px, 3vw, 40px); }
.pn-out__copy { max-width: 62ch; }
.pn-out__t { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.pn-out__p { margin-top: 10px; color: var(--muted); }
.pn-out__btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 1100px) { .pn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pn-grid { grid-template-columns: 1fr; } .pn-out__btns, .pn-out__btns .btn { width: 100%; } }

/* ===== подход по этапам ===== */
.stg { display: grid; gap: 14px; counter-reset: stg; }
.stg__item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 28px; align-items: start; padding: clamp(22px, 2.6vw, 36px); }
.stg__item--pic { grid-template-columns: 96px minmax(0, 1.1fr) minmax(0, .9fr); }
.stg__n { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); font-weight: 800; line-height: .9; letter-spacing: -.04em; color: var(--blue); }
.is-dark .stg__n { color: var(--yellow); }
.stg__p { margin-top: 10px; color: var(--ink-2); max-width: 62ch; }
.stg__ticks { margin-top: 16px; }
.stg__pic { align-self: center; overflow: hidden; border-radius: var(--r-md); background: var(--bg-2); }
.stg__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (max-width: 1000px) { .stg__item--pic { grid-template-columns: 72px minmax(0, 1fr); } .stg__pic { grid-column: 2; margin-top: 12px; } }
@media (max-width: 640px) {
  .stg__item, .stg__item--pic { grid-template-columns: 1fr; }
  .stg__pic { grid-column: auto; }
  .stg__n { font-size: 2.2rem; }
}

/* ===== что входит ===== */
.inc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.inc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inc-card { display: grid; align-content: start; gap: 12px; padding: clamp(22px, 2.4vw, 30px); }
.inc-card__t { margin-top: 6px; font-size: 1.12rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.inc-card p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 1100px) { .inc-grid, .inc-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .inc-grid, .inc-grid--3 { grid-template-columns: 1fr; } }

/* ===== виды сайтов ===== */
.types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.types__card { display: flex; flex-direction: column; overflow: hidden; }
.types__pic { background: #f2f2ef; }
.types__pic img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; transition: transform .6s var(--ease); }
.types__card:hover .types__pic img { transform: scale(1.03); }
.types__body { display: grid; gap: 12px; padding: clamp(22px, 2.4vw, 30px); align-content: start; }
.types__body > p { color: var(--muted); }
.types__ex { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--blue); font-weight: 600; }
.types__ex .ic { width: 18px; height: 18px; }
@media (max-width: 1100px) { .types { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .types { grid-template-columns: 1fr; } }

/* ===== кейсы ===== */
.csg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.csc { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.csc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.csc__media { overflow: hidden; background: var(--bg-2); }
.csc__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.csc:hover .csc__media img { transform: scale(1.04); }
.csc__body { display: grid; gap: 10px; padding: 22px 24px 24px; align-content: start; flex: 1; }
.csc__niche { color: var(--muted); font-size: 14px; font-weight: 500; }
.csc__title { font-size: 1.25rem; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.csc__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.csc__link:focus-visible { outline: 0; }
.csc__link:focus-visible::after { outline: 2.5px solid var(--blue); outline-offset: 3px; }
.csc__res { display: grid; gap: 2px; }
.csc__res b { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--blue); }
.csc__res span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.csc--big .csc__res + .csc__res b { color: var(--ink); }
.csc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.csc__tags .tag { font-size: 13px; padding: 5px 10px; }
.csc__go { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 10px 24px -12px rgba(13, 21, 48, .5); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.csc:hover .csc__go { background: var(--blue); color: #fff; transform: rotate(45deg); }
.csc__go .ic { width: 20px; height: 20px; }
.csg-more { display: flex; justify-content: center; margin-top: 28px; }
.csf { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.csf button { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font-size: 15px; font-weight: 600; transition: background-color .2s, color .2s, box-shadow .2s; }
.csf button:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.csf button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.csf button span { margin-left: 6px; color: var(--muted); font-weight: 500; }
.csf button[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }
@media (max-width: 1100px) { .csg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .csg { grid-template-columns: 1fr; } }

/* ===== кому подойдёт ===== */
.fw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fw__t { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.fw__t .ic { width: 28px; height: 28px; }
.fw__col--yes .fw__t .ic { color: var(--ok); }
.fw__col--no .fw__t .ic { color: var(--crit); }
.fw__list { display: grid; gap: 14px; margin-top: 20px; }
.fw__list li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.45; }
.fw__list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px; background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317a368' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.fw__col--no .fw__list li::before { background: var(--crit-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5484d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 12px no-repeat; }
.fw__col--no { background: color-mix(in srgb, var(--surface) 70%, var(--bg-2)); }
@media (max-width: 800px) { .fw { grid-template-columns: 1fr; } }

/* ===== пакеты ===== */
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.pk { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.6vw, 34px); }
.pk--hot { box-shadow: 0 0 0 2px var(--blue), var(--shadow-lg); }
.pk__badge { position: absolute; top: -13px; left: 28px; padding: 6px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 13px; font-weight: 700; }
.pk__name { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pk__for { color: var(--muted); min-height: 2.9em; }
.pk__list { padding-block: 6px 4px; }
.pk__meta { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.pk__meta div { display: flex; justify-content: space-between; gap: 12px; }
.pk__meta dt { color: var(--muted); }
.pk__meta dd { font-weight: 700; text-align: right; }
.pk .btn { margin-top: 6px; }
.pk-note { display: flex; align-items: center; gap: 12px; margin-top: 20px; color: var(--muted); }
.pk-note .ic { color: var(--blue); }
@media (max-width: 1000px) { .pk-grid { grid-template-columns: 1fr; max-width: 640px; } .pk__for { min-height: 0; } }

/* ===== шаги ===== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(22px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.is-dark .step { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.step__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; }
.is-dark .step__n { background: var(--yellow); color: var(--ink); }
.step__t { margin-top: 6px; font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }

/* ===== связанные услуги ===== */
.xs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.xs-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.xs-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.xs-card__pic { background: #f2f2ef; overflow: hidden; }
.xs-card__pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .7s var(--ease); }
.xs-card:hover .xs-card__pic img { transform: scale(1.04); }
.xs-card__body { display: grid; gap: 8px; padding: 22px 24px 26px; }
.xs-card__t { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.xs-card__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.xs-card__body p { color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.xs-card__go { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); transition: background-color .2s, color .2s, transform .3s var(--ease); }
.xs-card:hover .xs-card__go { background: var(--blue); color: #fff; transform: rotate(45deg); }
.xs-card__go .ic { width: 20px; height: 20px; }
@media (max-width: 1000px) { .xs-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .xs-grid { grid-template-columns: 1fr; } }

/* ===== тёмная плашка с призывом ===== */
.ctab { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 32px; overflow: hidden; padding: clamp(28px, 4vw, 56px); isolation: isolate; }
.ctab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 90% 30%, rgba(57, 98, 255, .35), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(255, 197, 1, .08), transparent 70%); }
.ctab__t { max-width: 20ch; }
.ctab__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ctab__pic { border-radius: var(--r-lg); overflow: hidden; background: #f2f2ef; }
.ctab__pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) { .ctab { grid-template-columns: 1fr; } }

/* ===== цифры ===== */
.mt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1000px) { .mt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== текст + картинка ===== */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 72px); }
.feat--rev .feat__copy { order: 2; }
.feat__t { max-width: 18ch; }
.feat__text { display: grid; gap: 14px; margin-top: 18px; color: var(--ink-2); max-width: 60ch; }
.feat .ticks { margin-top: 20px; }
.feat__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.feat__media { min-width: 0; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } .feat--rev .feat__copy { order: 0; } }

/* ===== окно браузера с длинным снимком сайта: при наведении страница прокручивается ===== */
.bframe { --vp: clamp(340px, 62vh, 620px); position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.bframe__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #eceff4; border-bottom: 1px solid var(--line); }
.bframe__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d7df; }
.bframe__bar i:nth-child(1) { background: #ff6159; } .bframe__bar i:nth-child(2) { background: #ffbd2e; } .bframe__bar i:nth-child(3) { background: #28c941; }
.bframe__bar span { margin-left: 12px; padding: 4px 12px; border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12.5px; }
.bframe__bar span:empty { display: none; }
.bframe__vp { height: var(--vp); overflow: hidden; }
.bframe__vp img { width: 100%; transform: translateY(0); transition: transform 1.2s var(--ease); }
.bframe__vp:hover img, .bframe__vp:focus img { transform: translateY(calc(-100% + var(--vp))); transition: transform 9s linear; }
@media (hover: none) { .bframe__vp { overflow-y: auto; -webkit-overflow-scrolling: touch; } .bframe__vp img { transform: none !important; } }
.bframe figcaption { padding: 12px 16px; border-top: 1px solid var(--line); }

/* ===== цитата ===== */
.qt { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr); gap: 32px; align-items: center; padding: clamp(28px, 3.5vw, 48px); }
.qt__mark { display: block; width: 44px; height: 34px; margin-bottom: 22px; fill: var(--blue); stroke: none; }
.qt__text { display: grid; gap: 12px; margin: 0; font-size: clamp(1.05rem, .98rem + .3vw, 1.25rem); line-height: 1.55; }
.qt__who { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.qt__ava { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-d); font-weight: 800; }
.qt__who b { display: block; }
.qt__who small { color: var(--muted); font-size: 14px; }
.qt__kpi { display: grid; gap: 14px; }
.qt__kpi li { display: flex; align-items: center; gap: 14px; }
.qt__kpi b { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.qt__kpi span span, .qt__kpi li > span:last-child { color: var(--muted); }
.qt__kpi li > span:last-child b { color: var(--ink); }
@media (max-width: 900px) { .qt { grid-template-columns: 1fr; } }

/* ===== картинка крупно ===== */
.lbx { width: min(1200px, 100vw - 32px); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.lbx::backdrop { background: rgba(10, 18, 41, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lbx__box { max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
.lbx__img { width: 100%; }
.lbx__close { position: sticky; float: right; top: 12px; right: 12px; z-index: 2; margin: 12px 12px -56px 0; }

/* ===== страница кейса ===== */
.kh { padding-top: calc(var(--section) + 72px); }
.kh__crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14.5px; }
.kh__crumbs a:hover { color: var(--blue); }
.kh__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: end; margin-top: 22px; }
.kh__title { font-size: clamp(2.2rem, 1.3rem + 3vw, 4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.kh__niche { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.kh__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kh__res { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kh__res .stat b { color: var(--blue); }
.kh__cover { margin-top: clamp(28px, 4vw, 48px); overflow: hidden; border-radius: var(--r-xl); background: var(--bg-2); box-shadow: var(--shadow); }
.kh__cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.kf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kf__item { padding: clamp(22px, 2.4vw, 30px); }
.kf__label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.kf__label .ic { width: 20px; height: 20px; color: var(--blue); }
.kf__item p { margin-top: 12px; color: var(--ink-2); }
.kgal { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 16px; }
.kgal .shot img { width: 100%; }
@media (max-width: 1000px) { .kh__grid { grid-template-columns: 1fr; align-items: start; } .kf { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .kgal { grid-template-columns: 1fr; } .kh__res { grid-template-columns: 1fr 1fr; } .kh__cover img { aspect-ratio: 16 / 10; } }

/* тёмная карточка на светлом фоне: .card задаёт белый фон позже .is-dark в base.css — возвращаем тёмный */
.card.is-dark { background: var(--dk); color: #fff; box-shadow: 0 30px 70px -40px rgba(10, 18, 41, .7); }
.card.is-dark .lead, .card.is-dark .pn-out__p { color: var(--dk-muted); }

/* ===== главная: услуги (3 + 2) ===== */
.svc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.svc-card { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-card__pic { overflow: hidden; background: #f2f2ef; }
.svc-card__pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-card__pic img { transform: scale(1.04); }
.svc-card__body { display: grid; gap: 12px; padding: clamp(22px, 2.4vw, 30px); align-content: start; flex: 1; }
.svc-card__t { font-size: 1.5rem; font-weight: 800; letter-spacing: -.025em; }
.svc-card__t a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-card__body > p { color: var(--muted); }
.svc-card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; color: var(--blue); font-weight: 700; }
.svc-card__more .ic { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.svc-card:hover .svc-card__more .ic { transform: translateX(4px); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-card { grid-column: auto; } }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

/* ===== список кейсов ===== */
.kix__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin: 22px 0 32px; }
.kix__head .lead { margin-top: 14px; }
.kix__stats { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: 12px; }
.kix__stats .stat b { color: var(--blue); }
/* значок вместо числа: «Видеоотзывы клиентов» без цифры (6.10.2026) */
.stat b .ic { width: 1em; height: 1em; }
.kix__stats .stat a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(10, 18, 41, .3); text-underline-offset: 3px; }
@media (max-width: 700px) { .kix__stats { grid-template-columns: 1fr 1fr; } }

/* ===== глава кейса без картинки, отзыв в кейсе ===== */
.kst__solo { padding: clamp(28px, 4vw, 56px); }
.kst__t { max-width: 26ch; }
.kst__solo .feat__text { max-width: 72ch; }
.rv-grid--solo { display: grid; grid-template-columns: minmax(0, 760px); }
.rv-card--solo .rv-media img { aspect-ratio: 16 / 9; }

/* список кейсов: широкая первая карточка и карточка-призыв */
@media (min-width: 1101px) {
  .csc--wide { grid-column: span 2; flex-direction: row; }
  .csc--wide .csc__media { flex: 1.25 1 0; }
  .csc--wide .csc__media img { height: 100%; aspect-ratio: auto; min-height: 100%; }
  .csc--wide .csc__body { flex: 1 1 0; align-content: center; padding: 32px; }
  .csc--wide .csc__title { font-size: 1.6rem; }
}
.csc--cta { justify-content: center; background: var(--dk); }
.csc--cta .csc__body { align-content: center; gap: 14px; padding: 32px 28px; }
.csc--cta .csc__title { font-size: 1.6rem; font-weight: 800; letter-spacing: -.025em; }
.csc--cta .csc__cta-p { color: var(--dk-muted); }
.csc--cta:hover { transform: none; }

/* картинки услуг на карточках (главная и «что ещё сделаю»): тёмные квадратные иллюстрации целиком, без обрезки —
   вписаны в тёмную подложку со свечением, края картинки растворяются в фоне, как на первом экране */
.svc-card__pic, .xs-card__pic { position: relative; overflow: hidden; background: radial-gradient(70% 90% at 50% 45%, #13245e 0%, var(--dk) 70%); }
.svc-card__pic img, .xs-card__pic img {
  position: absolute; inset: 0; margin: auto; width: auto; max-width: 100%; height: 100%; aspect-ratio: 1; object-fit: contain;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}
.svc-card__pic { aspect-ratio: 16 / 10; }
.xs-card__pic { aspect-ratio: 16 / 10; }
.svc-card:hover .svc-card__pic img, .xs-card:hover .xs-card__pic img { transform: scale(1.05); }

/* пакеты: вторичная кнопка на белой карточке — светло-синяя, а не белая (иначе не видно) */
.pk .btn--ghost { background: var(--blue-soft); color: var(--blue-d); box-shadow: inset 0 0 0 1.5px var(--blue-soft-2); }
.pk .btn--ghost:hover { background: var(--blue-soft-2); box-shadow: inset 0 0 0 1.5px var(--blue); }

/* ===== логотип как графический элемент (тест на главной, 6.10) ===== */
.bm { position: absolute; z-index: 0; pointer-events: none; }
/* первый экран: огромный словесный знак за содержимым, едва заметный */
.bm--hero { left: -3%; right: -3%; top: 47%; height: calc(106vw * 12 / 132); transform: translateY(-50%);
  background: url("../img/brand/logo-ak-white.svg") center / contain no-repeat; opacity: .05; }
/* «Как работаю»: узор из логотипов кирпичиком, края растворяются */
.steps-sec { overflow: hidden; }
.bm--rows { inset: 0; background: url("../img/brand/logo-ak-pattern.svg") 0 0 / 900px auto repeat; opacity: .05;
  -webkit-mask-image: radial-gradient(70% 80% at 60% 50%, #000 30%, transparent 85%); mask-image: radial-gradient(70% 80% at 60% 50%, #000 30%, transparent 85%); }
.steps-sec .wrap > *:not(.bm) { position: relative; z-index: 1; }
/* подвал: знак во всю ширину экрана, на всех страницах (просьбы Алексея 6.10.2026) */
.ft-brand { margin-top: clamp(32px, 4vw, 56px); padding-inline: clamp(8px, 1.1vw, 20px); color: rgba(255, 255, 255, .07); }
.ft-brand svg { display: block; width: 100%; height: auto; }

/* галерея кейса: страницы сайта и фишки (6.10.2026) */
.kg { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: clamp(22px, 2.6vw, 40px) clamp(18px, 2.2vw, 32px); }
.kg__item { min-width: 0; }
.bframe--sm { --vp: clamp(300px, 30vw, 440px); }
.kg__shot { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.kg__shot img { width: 100%; height: auto; }
.kg__t { margin-top: 16px; font-size: 1.15rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.kg__p { margin-top: 6px; max-width: 62ch; color: var(--muted); }
@media (max-width: 760px) { .kg { grid-template-columns: 1fr; } }
.shot--narrow { max-width: 600px; margin-inline: auto; }
.kg__shot--phone { width: min(250px, 100%); margin-inline: auto; border-radius: 30px; border: 8px solid #0b1530; }

/* шоурил и работы на странице AI-видео (6.10.2026) */
.reel-sec .reel { position: relative; display: block; overflow: hidden; border-radius: var(--r-xl); background: #000; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.reel__v { width: 100%; height: 100%; object-fit: cover; display: block; }
.reel__play { position: absolute; left: clamp(16px, 3vw, 32px); bottom: clamp(16px, 3vw, 32px); display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: rgba(10, 18, 41, .72); backdrop-filter: blur(10px); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .25s var(--ease); }
.reel__btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--yellow); color: var(--ink); }
.reel__btn .ic { width: 20px; height: 20px; }
.reel:hover .reel__play { transform: translateY(-2px); }
.reel__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.reel__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.reel__m { background: #0a1229; }
.reel__m img, .reel__m video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1; }
.reel__b { display: grid; align-content: center; gap: 8px; padding: clamp(18px, 2.4vw, 28px); }
.reel__tag { justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-d); font-size: 13px; font-weight: 600; }
.reel__t { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; }
.reel__b p { color: var(--muted); }
/* широкая карточка работы: петля 16:9, по клику — ролик со звуком (6.10.2026) */
.reel__card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.reel__card--wide .reel__m img, .reel__card--wide .reel__m video { aspect-ratio: 16 / 9; }
.reel__open { position: relative; display: block; height: 100%; }
.reel__btn--card { position: absolute; left: clamp(12px, 2vw, 20px); bottom: clamp(12px, 2vw, 20px); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s; }
.reel__open:hover .reel__btn--card { transform: scale(1.06); }
@media (max-width: 900px) { .reel__cards { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .reel__card { grid-template-columns: 1fr; } .reel__m img, .reel__m video { aspect-ratio: 16 / 10; } }
.nw { white-space: nowrap; }
/* на телефоне в шапке видна кнопка Telegram (просьба Алексея 6.10.2026); в общем модуле шапки она там скрыта */
@media (max-width: 760px) { .hdr .hdr__acts > .hdr__contact.hdr__contact--tg:not(.hdr__burger) { display: grid; } }

/* юридические документы: политика и согласие (6.10.2026) */
.lg__wrap { max-width: 860px; }
.lg__title { margin-top: 18px; font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.lg__date { margin-top: 12px; color: var(--muted); font-size: 14px; }
.lg__sec { margin-top: clamp(26px, 3vw, 36px); }
.lg__h { margin-bottom: 10px; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.25; letter-spacing: -.01em; }
.lg__sec p, .lg__sec li { color: var(--ink-2); font-size: 16px; line-height: 1.6; max-width: 72ch; }
.lg__sec p + p, .lg__sec p + ul, .lg__sec ul + p { margin-top: 10px; }
.lg__sec ul { display: grid; gap: 6px; padding-left: 1.2em; list-style: disc; }
.lg__sec a { color: var(--blue-d); text-decoration: underline; text-underline-offset: 3px; }

