/* ЛИФТ — Битрикс24 для экспертных организаций. Чистый минимализм. */
/* Шрифты лежат локально (переменные Inter и Manrope, кириллица + латиница): сайт не обращается к Google Fonts */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../assets/fonts/manrope-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #f4efe7;          /* тёплый белый стола */
  --bg-2: #ede6dc;        /* бежевый */
  --paper: #fbf9f5;
  --ink: #1f2125;         /* графит */
  --ink-2: #5d6168;
  --line: rgba(31, 33, 37, .12);
  --kraft: #c9a97a;
  --accent: #2361e8;      /* синий */
  --accent-2: #f1d95a;    /* жёлтый стикер */
  --radius: 18px;
  --max: 1560px;
  --gutter: clamp(16px, 4vw, 64px);
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* motion tokens: strong ease-out, everything under 300 ms */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur-press: 160ms;     /* нажатие кнопки */
  --dur-tip: 150ms;       /* подсказки */
  --dur-open: 220ms;      /* раскрытие карточек и панелей */
  --lift: -2px;           /* подъём карточки при наведении; 0 при reduced-motion */
  --rise: 6px;            /* смещение при появлении; 0 при reduced-motion */
  /* падение меток на скриншотах: мягкий выбег без отскока (cubic-out) */
  --ease-fade: cubic-bezier(.33, 1, .68, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; } /* отступ под шапку для якорей и scrollIntoView даёт [id] { scroll-margin-top } в scroll-engine.css; scroll-padding здесь удваивал бы его */
a, button, summary, [role="tab"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
main:focus { outline: none; } /* цель skip-link, не элемент управления */
.skip-link { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.skip-link:focus-visible { top: 14px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: clamp(16px, 0.6vw + 10px, 19px); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; padding-bottom: var(--cookie-h, 0px); /* место под баннер cookie, чтобы он не перекрывал низ страницы */ }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
h2 { font-size: clamp(30px, 3.4vw, 64px); }
h3 { font-size: clamp(20px, 1.5vw, 28px); }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 8.5vw, 160px) 0; }
.section--tight { padding: clamp(48px, 6vw, 112px) 0; }
.section--paper { background: var(--paper); }
/* Бумажная зернистость светлых фонов: шумовая SVG-текстура лежит под контентом секции (z-index −1 в своём
   контексте наложения), поэтому текст и карточки её перекрывают, а читаемость не меняется. Тёмные блоки (.cta,
   .midcta, .pack--hot) — дети секций со своим фоном, под ними текстуры не видно. Герой и шапка не затронуты. */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }
.section, .footer, .doc { position: relative; isolation: isolate; }
.section::before, .footer::before, .doc::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--grain) 0 0 / 240px 240px; opacity: .04; mix-blend-mode: multiply; }
.eyebrow { font-size: clamp(13px, 0.75vw, 14px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.lead { font-size: clamp(18px, 1.2vw, 23px); color: var(--ink-2); max-width: 60ch; }
.lead b { font-weight: 600; color: var(--ink); }
.muted { color: var(--ink-2); }
.head { max-width: 880px; margin-bottom: clamp(36px, 4vw, 76px); }
.head .lead { margin-top: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 26px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; border: 1px solid var(--ink); cursor: pointer; font-family: var(--font-body); transition: transform var(--dur-press) var(--ease-out), background 200ms ease, box-shadow 200ms ease; }
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: #000; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(31, 33, 37, .18); }
  .btn:hover:active { transform: scale(0.97); }
  .btn--ghost:hover { background: rgba(31, 33, 37, .06); box-shadow: none; }
  .btn--light:hover { background: #fff; }
  .btn--accent:hover { background: #1a4fc4; }
}

/* Header */
/* Стекло и позиционирование — .glass-header из scroll-engine.css; здесь только раскладка */
.header { padding: 14px 0; }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
/* Логотип — картинка-надпись (180×41): 32px на компьютере, 28px на телефоне */
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo img { height: 32px; width: auto; display: block; }
@media (max-width: 768px) { .logo img { height: 28px; } }
.nav { display: flex; gap: 22px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color 150ms ease; position: relative; }
.nav a.is-active { color: var(--ink); }
.nav a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 1px; background: var(--ink); }
.nav__contacts { display: none; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); } }
.header__cta { display: flex; align-items: center; gap: 14px; }
.header__phone { text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.header .btn { padding: 11px 18px; font-size: 15px; white-space: nowrap; }
/* Кнопка шапки: полный текст с 1400px, на узких экранах короткий «Презентация» */
.btn__short { display: none; }
@media (max-width: 1399.98px) { .header .btn__full { display: none; } .header .btn__short { display: inline; } }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; transition: transform var(--dur-press) var(--ease-out); }
.burger:active { transform: scale(0.97); }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px auto; transition: transform 200ms var(--ease-out), opacity 150ms ease; }
/* До 1480px шапка чуть компактнее (полный текст кнопки + телефон + меню + логотип-надпись); телефон прячем <1280, бургер <1100 */
@media (max-width: 1479.98px) { .header__in { gap: 20px; } .nav { gap: 16px; } .header .btn { padding: 11px 16px; } }
@media (max-width: 1279.98px) { .header__phone { display: none; } }
/* Узкие телефоны: надпись логотипа + кнопка + бургер должны уместиться в одну строку; уже 360px кнопка уходит в меню-контент героя */
@media (max-width: 480px) { .header__in { gap: 12px; } .header__cta { gap: 10px; } .header .btn { padding: 11px 14px; } }
@media (max-width: 359.98px) { .header .btn { display: none; } }
@media (max-width: 1099.98px) {
  .nav { display: none; }
  .burger { display: block; }
  .menu-open .header .nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,.96); padding: 20px var(--gutter) 28px; box-shadow: 0 20px 40px rgba(0,0,0,.08); gap: 18px; font-size: 18px; max-height: calc(100vh - 100%); max-height: calc(100dvh - 100%); overflow-y: auto; overscroll-behavior: contain;
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
  @starting-style { .menu-open .header .nav { opacity: 0; transform: translateY(calc(-1 * var(--rise))); } }
  .menu-open .header .nav a.is-active::after { display: none; }
  .menu-open .header .nav a.is-active { font-weight: 600; }
  .menu-open .nav__contacts { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 16px; font-weight: 600; }
  .menu-open .nav__contacts a { color: var(--ink); }
  .menu-open .header .burger span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-open .header .burger span:nth-child(2) { opacity: 0; }
  .menu-open .header .burger span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* Hero (scrub) */
#hero { --scrub-length: 460vh; --scrub-length-mobile: 360vh; }
/* Биты: заголовки над объектом (beat--above-safe), подзаголовки и кнопки под ним (beat--below-safe) — позиции считает движок */
#hero .scrub__shade { background: linear-gradient(180deg, rgba(226,218,210,.9) 0%, rgba(226,218,210,.5) 16%, rgba(226,218,210,0) 30%, rgba(226,218,210,0) 78%, rgba(244,239,231,.9) 100%); }
#hero .beat { width: min(1240px, 100% - 32px); max-width: none; }
#hero .beat h1, #hero .beat h2 { font-size: clamp(26px, 2.2vw + 1.4vh, 64px); line-height: 1.08; }

/* Сцена начинается под шапкой: движок вписывает кадр в видимую часть экрана, шапка ничего не перекрывает. */
#hero .scrub__stage { top: var(--header-h, 76px); height: calc(100vh - var(--header-h, 76px)); height: calc(100lvh - var(--header-h, 76px)); }
/* data-safe="0.29,0.15,0.71,0.93" — зона кадра, которую движок никогда не обрезает: ноутбук (0.25…0.84 по высоте)
   плюс запас над и под ним для текста. На низких экранах движок поэтому уменьшает сцену, а не прячет место под заголовок.
   Настоящие края ноутбука восстанавливаем из переменных движка:
   высота кадра = (H − safe-top − safe-bottom) / 0.78, верх ноутбука = safe-top + 0.10 × кадр, низ = safe-bottom + 0.09 × кадр.
   Числа связаны с data-safe в index.html — менять вместе. */
#hero {
  --hero-fh: calc((100% - var(--safe-top, 18%) - var(--safe-bottom, 12%)) / 0.78);
  --hero-top: calc(var(--safe-top, 18%) + 0.10 * var(--hero-fh));
  --hero-bottom: calc(var(--safe-bottom, 12%) + 0.09 * var(--hero-fh));
  --hero-gap: clamp(10px, 1.8vh, 24px);
  --hero-h1-fluid: 2.2vw + 1.4vh; --hero-h1-max: 64px; --hero-h1-fit: 44cqh;
}
/* Заголовок живёт в полосе между шапкой и ноутбуком: прижат к ноутбуку, а если полоса узкая — уменьшается
   (единицы cqh от высоты полосы) и в крайнем случае выравнивается по верху полосы, но под шапку не уходит. */
#hero .beat--above-safe {
  top: 12px; bottom: calc(100% - var(--hero-top) + var(--hero-gap));
  display: flex; flex-direction: column; align-items: center; justify-content: safe flex-end;
  container-type: size;
}
#hero .scrub__beats .beat--above-safe h1, #hero .scrub__beats .beat--above-safe h2 { font-size: clamp(20px, min(calc(var(--hero-h1-fluid)), var(--hero-h1-fit)), var(--hero-h1-max)); }
@container (max-height: 96px) { #hero .hero__eyebrow { display: none; } }
#hero .beat--below-safe { top: calc(100% - var(--hero-bottom) + var(--hero-gap)); }
#hero .scrub__beats, #hero .scroll-cue { z-index: 2; }
/* Широкий низкий экран: движок уменьшил сцену и оставил по бокам поля цвета --scrub-bg.
   Край кадра растушёвываем; положение края тоже считаем из переменных движка (ноутбук 0.29…0.71 по ширине). */
@media (min-width: 769px) {
  #hero {
    --hero-fw: calc((100% - var(--safe-left, 0px) - var(--safe-right, 0px)) / 0.42);
    --hero-x: calc(var(--safe-left, 0px) - 0.29 * var(--hero-fw));
  }
  #hero .scrub__stage::before, #hero .scrub__stage::after {
    content: ""; position: absolute; top: 0; bottom: 0; z-index: 1; pointer-events: none;
    width: clamp(0px, var(--hero-x) * 1000, 120px); /* 0, пока кадр шире экрана */
  }
  #hero .scrub__stage::before { left: calc(var(--hero-x) - 1px); background: linear-gradient(90deg, var(--scrub-bg), transparent); }
  #hero .scrub__stage::after { right: calc(var(--hero-x) - 1px); background: linear-gradient(270deg, var(--scrub-bg), transparent); }
}
/* «Листайте»: если наезжает на подпись под ноутбуком, main.js сначала делает его компактнее (cue-compact), затем прячет (cue-off) */
#hero.cue-compact .scroll-cue { bottom: 10px; gap: 5px; }
#hero.cue-compact .scroll-cue::after { height: 22px; }
#hero.cue-off .scroll-cue { visibility: hidden; }
#hero .beat p { font-size: clamp(15px, 0.9vw + .5vh, 22px); color: var(--ink); opacity: .8; max-width: 40ch; margin-inline: auto; }
.hero__eyebrow { font-size: clamp(12px, 0.75vw, 14px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: clamp(8px, 1.2vh, 14px); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
@media (min-width: 1100px) { #hero .beat h1, #hero .beat h2, #hero .beat p { white-space: nowrap; } #hero .beat p { max-width: none; } }
/* Первый экран (11.11.2026): заголовок длиннее остальных (~50 знаков). На широком экране держим его в одну строку —
   кегль не больше ширины колонки / 28; на телефоне он переносится на три строки, полоса над ноутбуком это вмещает.
   Подпись стоит под заголовком, кнопка на демо (main.js считает нажатие целью cta_click) — под ноутбуком.
   На телефоне под ноутбуком места нет (плашка cookie, нижняя панель браузера), поэтому кнопка тоже над ноутбуком,
   а верхняя строка прячется: она повторяет заголовок. На низком горизонтальном телефоне подпись — под ноутбуком, без кнопки. */
#hero .scrub__beats .beat--above-safe h1.hero__h1 { font-size: clamp(20px, min(calc(var(--hero-h1-fluid)), var(--hero-h1-fit)), var(--hero-h1-max)); text-wrap: balance; }
@media (min-width: 769px) { #hero .scrub__beats .beat--above-safe h1.hero__h1 { font-size: clamp(20px, min(calc(var(--hero-h1-fluid)), var(--hero-h1-fit), (min(1240px, 100vw - 32px)) / 28), var(--hero-h1-max)); } }
#hero .hero__sub-top { margin-top: clamp(8px, 1.2vh, 14px); }
#hero .beat--below-safe p[data-slot="hero.sub"], #hero .hero__actions--top { display: none; }
@media (max-width: 768px) {
  #hero .beat--above-safe .hero__eyebrow, #hero .hero__actions--first { display: none; }
  #hero .hero__actions--top { display: flex; margin-top: 14px; }
}
/* Версии под боль (?angle=…): подзаголовок длиннее строки переносится на две ровные строки, а не уезжает за край;
   короткий остаётся в одну строку, как раньше. Страница без метки не меняется. */
@media (min-width: 1100px) { html[data-angle] #hero .beat p[data-slot="hero.sub"] { white-space: normal; text-wrap: balance; } }
/* «Листайте»: по центру экрана на всех ширинах, линия-индикатор под текстом тоже по центру */
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; transition: opacity .3s; }
@media (min-width: 769px) { .scroll-cue { bottom: 24px; } }
.scroll-cue::after { content: ""; width: 1px; height: 36px; background: var(--ink-2); animation: cue 1.6s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }
.scrub[style*="--p"] .scroll-cue { opacity: 1; }
#hero.is-scrolled .scroll-cue { opacity: 0; }
/* Телефон: движок вписывает объект из data-safe целиком, полосы — цвет --scrub-bg.
   Стыки полос и кадра растушёвываем по --media-top / --media-bottom, которые выставляет движок. */
@media (max-width: 768px) {
  #hero .scrub__stage { background: var(--scrub-bg); }
  #hero .beat h1, #hero .beat h2 { font-size: clamp(24px, 7.6vw, 36px); }
  #hero { --hero-h1-fluid: 7.6vw; --hero-h1-max: 36px; --hero-h1-fit: 21cqh; } /* на телефоне заголовок в две строки */
  #hero .beat p { font-size: clamp(15px, 4.2vw, 17px); max-width: 32ch; }
  .hero__actions .btn { padding: 12px 18px; font-size: 15px; }
  #hero .scrub__shade { background: linear-gradient(180deg, rgba(226,218,210,.6) 0%, rgba(226,218,210,0) 20%, rgba(226,218,210,0) 80%, rgba(244,239,231,.9) 100%); }
  #hero.is-letterboxed .scrub__shade { background:
    linear-gradient(180deg, var(--scrub-bg) calc(var(--media-top, 0px) - 1px), transparent calc(var(--media-top, 0px) + 48px)),
    linear-gradient(0deg, var(--scrub-bg) calc(var(--media-bottom, 0px) - 1px), transparent calc(var(--media-bottom, 0px) + 48px)),
    linear-gradient(180deg, rgba(226,218,210,.6) 0%, rgba(226,218,210,0) 20%, rgba(226,218,210,0) 80%, rgba(244,239,231,.9) 100%); }
}
/* Телефон в горизонтальной ориентации: под ноутбуком ~45px — подпись в одну строку, кнопки компактнее */
@media (max-height: 480px) and (orientation: landscape) {
  #hero { --hero-gap: 6px; }
  #hero .beat p { font-size: 13px; white-space: nowrap; max-width: none; }
  #hero .hero__actions .btn { padding: 7px 14px; font-size: 13px; }
  html[data-angle] #hero .beat p[data-slot="hero.sub"] { white-space: normal; text-wrap: balance; }
  #hero .hero__actions--first, #hero .hero__sub-top { display: none; } /* под ноутбуком ~45px: только подпись, кнопка есть в шапке */
  #hero .beat--below-safe p[data-slot="hero.sub"] { display: block; }
}
@media (max-width: 380px) {
  .header .btn { padding: 9px 13px; font-size: 14px; white-space: nowrap; }
  .header .header__in { gap: 12px; }
  .header .header__cta { gap: 10px; }
}

/* Split (problem) */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__sticky { position: sticky; top: 96px; }
.split__sticky .lead { margin-top: 18px; }
.pains { display: grid; gap: 0; }
.pain { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.pain:last-child { border-bottom: 1px solid var(--line); }
.pain__n { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--kraft); letter-spacing: .1em; padding-top: 4px; }
.pain h3 { margin-bottom: 8px; }
.pain p { color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split__sticky { position: static; } .pain { grid-template-columns: 44px 1fr; } }

/* Three directions */
.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dir { background: #fff; border-radius: var(--radius); padding: 28px 26px 26px; box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column; gap: 12px; transition: transform var(--dur-open) var(--ease-out), box-shadow var(--dur-open) var(--ease-out); }
.dir__n { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--kraft); letter-spacing: .1em; }
.dir h3 { font-size: clamp(20px, 1.6vw, 26px); }
.dir p { color: var(--ink-2); font-size: 16px; }
.dir__link { margin-top: auto; padding-top: 8px; align-self: flex-start; text-decoration: none; font-weight: 600; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; }
.dir__link span { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .dir:hover { transform: translateY(var(--lift)); box-shadow: 0 16px 40px rgba(31,33,37,.08); }
  .dir__link:hover span { transform: translateX(3px); }
}
@media (max-width: 900px) { .dirs { grid-template-columns: 1fr; } }

/* Process: tabs + step line + detail panel */
/* При смене вкладки main.js на время перехода задаёт блоку высоту и плавно ведёт её к новой. align-content: start —
   лишнее место не растягивает ряды; grid-auto-rows: max-content — нехватка места не сжимает их (иначе ряд вкладок,
   прокручиваемый по горизонтали и потому с минимальной высотой 0, на время перехода сплющивался в полосу) */
.process { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; align-content: start; }
/* width:auto + justify-self:start = fit-content; width:max-content расширяло бы колонку сетки и ломало телефон */
.tabs { display: flex; gap: 4px; padding: 5px; background: #fff; border-radius: 999px; width: auto; justify-self: start; max-width: 100%; box-shadow: 0 1px 0 var(--line); overflow-x: auto; scrollbar-width: none; position: relative; }
/* Активная подложка вкладок — один ползунок (.tabs::before), который переезжает к выбранной вкладке за 300 мс; его
   место и размер (--ind-*) измеряет main.js (has-ind), переход включается после загрузки шрифтов (is-live).
   Без измерений и при reduced motion работает прежняя статичная подложка на самой вкладке. */
.tabs.has-ind::before { content: ""; position: absolute; left: 0; top: 0; width: var(--ind-w, 0px); height: var(--ind-h, 0px); transform: translate(var(--ind-x, 0px), var(--ind-y, 0px)); border-radius: 999px; background: var(--ink); }
.tabs.has-ind.is-live::before { transition: transform 300ms var(--ease-out), width 300ms var(--ease-out), height 300ms var(--ease-out); }
.tabs.has-ind .tab { position: relative; z-index: 1; }
.tabs.has-ind .tab[aria-selected="true"] { background: transparent; }
@media (max-width: 640px) {
  .tabs { flex-wrap: wrap; border-radius: 20px; justify-self: stretch; overflow: visible; }
  .tab { flex: 1 1 auto; text-align: center; }
}
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: transparent; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background 150ms ease, color 250ms ease, transform var(--dur-press) var(--ease-out); }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.tab:active { transform: scale(0.97); }
.tab:focus-visible { outline-offset: -3px; outline-color: var(--accent-2); }
.tab[aria-selected="false"]:focus-visible { outline-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { color: var(--ink); background: var(--bg); } }
.tabpanel[hidden] { display: none; }
.tabpanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; min-width: 0; }
.stepline, .stepx { min-width: 0; }
.tabpanel:focus-visible { outline-offset: 8px; }
.stepline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.stepx { position: relative; }
.stepx:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 48px; bottom: -10px; width: 1.5px; background: var(--line); }
/* Смена активного этапа: подложка и круг с номером перекрашиваются за 240 мс, номер слегка «подрастает» .96 → 1 */
.stepx__head { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; align-items: start; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 14px; border-radius: 16px; font: inherit; color: inherit; cursor: pointer; transition: background 240ms ease, box-shadow 240ms ease; }
.stepx__n { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 13px; background: var(--bg); position: relative; z-index: 1; transition: background 240ms ease, color 240ms ease; }
.stepx__t { display: grid; gap: 2px; padding-top: 4px; }
.stepx__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.2vw, 20px); letter-spacing: -.01em; line-height: 1.2; }
.stepx__sum { color: var(--ink-2); font-size: 15px; }
.stepx.is-open .stepx__head { background: #fff; box-shadow: 0 1px 0 var(--line); }
.stepx.is-open .stepx__n { background: var(--ink); color: #fff; }
.js .stepx.is-open .stepx__n { animation: stepn-pop 260ms var(--ease-out); }
@keyframes stepn-pop { from { transform: scale(.96); } to { transform: none; } }
/* На компьютере наведение на этап ничего не меняет — только курсор-рука; панель справа переключается по клику */
/* Раскрытие: высота через grid-template-rows + прозрачность; закрытое содержимое скрыто и от AT */
.stepx__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-open) var(--ease-out); }
.stepx__in { overflow: hidden; min-height: 0; opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 0s linear var(--dur-open); padding: 0 14px 0 60px; color: var(--ink-2); font-size: 15px; display: grid; gap: 10px; }
.stepx__in > p:last-child { padding-bottom: 16px; }
.stepx__in b { color: var(--ink); font-weight: 600; }
.stepx.is-open .stepx__body { grid-template-rows: 1fr; }
.stepx.is-open .stepx__in { opacity: 1; visibility: visible; transition: opacity var(--dur-open) ease 40ms, visibility 0s; }
.stepx__in > p { padding-top: 12px; }
.ppanel { display: none; }
@media (min-width: 960px) {
  .tabpanel { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
  /* На компьютере подробности показывает панель справа, встроенные тела остаются только для скринридера */
  .stepx__body { position: absolute; left: 0; width: 100%; height: 1px; overflow: hidden; clip: rect(0 0 0 0); display: block; transition: none; }
  .stepx__in { transition: none; }
  .ppanel { display: block; position: sticky; top: calc(var(--header-h, 72px) + 24px); background: #fff; border-radius: 24px; padding: clamp(24px, 2.4vw, 36px); box-shadow: 0 1px 0 var(--line), 0 24px 60px rgba(31,33,37,.05); min-height: 260px; }
  .ppanel__in { display: grid; gap: 14px; }
  .ppanel__n { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--kraft); }
  .ppanel h3 { font-size: clamp(22px, 1.8vw, 30px); }
  .ppanel__sum { color: var(--ink-2); font-size: 16px; }
  .ppanel__block { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 6px; }
  .ppanel__block h4 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-family: var(--font-body); }
  .ppanel__block p { font-size: 16px; }
  .ppanel__mode { font-size: 13px; color: var(--ink-2); }
}

/* Screenshot with numbered pins (.shot): tooltip on hover / keyboard focus on desktop (click does nothing), list under the image on phones */
.shot { margin: 0; position: relative; }
.shot__eyebrow { margin-bottom: 14px; text-align: center; }
.shot__frame { position: relative; max-width: 1400px; margin-inline: auto; }
.shot__frame img { width: 100%; height: auto; display: block; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(31,33,37,.10); }
/* --dx/--dy: раздвиг перекрывающихся меток на телефоне (JS), на компьютере 0 */
.shot__pin { position: absolute; left: var(--x); top: var(--y); transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))); width: 28px; height: 28px; border-radius: 50%; border: 0; padding: 0; margin: 0; background: var(--accent); color: #fff; font: 700 13px/1 var(--font-display); display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(31,33,37,.28); transition: background 150ms ease; }
.shot__pin:active { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.97); }
.shot__pin:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.shot__pin.is-active { background: var(--ink); }
@media (hover: hover) and (pointer: fine) { .shot__pin:hover { background: #1a4fc4; } }
/* Падение меток. Когда верх кадра доходит до ~70 % окна, main.js ставит .is-seen и каждой метке задаёт --drop
   (путь от нижнего края шапки до её места: нижние метки летят дальше) и --delay (очередь сверху вниз). Метка
   стартует целиком под шапкой, быстро выходит из-под неё, замедляется к своему месту, проходит его на --land (3px,
   на телефоне 0) и садится; в момент посадки — прежняя пульсация тенью. Анимируются только translate и opacity:
   transform с центровкой метки и :active не трогаем, поэтому финальное место — ровно прежнее. Один раз за загрузку. */
.js .shot__pin { opacity: 0; translate: 0 var(--drop, -40px); }
.js .shot.is-seen .shot__pin { animation: pin-drop var(--pin-dur, 700ms) var(--ease-fade) var(--delay, 0ms) both,
  pin-pulse 600ms var(--ease-out) calc(var(--delay, 0ms) + var(--pin-dur, 700ms) * .78) 1; }
@keyframes pin-drop {
  0% { translate: 0 var(--drop, -40px); opacity: 0; }
  14% { opacity: 1; }
  78% { translate: 0 var(--land, 3px); }
  100% { translate: 0 0; opacity: 1; }
}
@keyframes pin-pulse {
  0% { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(31,33,37,.28), 0 0 0 0 rgba(35,97,232,.55); }
  100% { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(31,33,37,.28), 0 0 0 18px rgba(35,97,232,0); }
}
.shot__tip { position: absolute; z-index: 3; max-width: 280px; background: var(--ink); color: #fff; font-size: 15px; line-height: 1.4; padding: 12px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(31,33,37,.22); opacity: 0; transform: translateY(4px); visibility: hidden; pointer-events: none; transition: opacity var(--dur-tip) var(--ease-out), transform var(--dur-tip) var(--ease-out), visibility 0s linear var(--dur-tip); }
.shot__tip.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.shot__tip.is-instant { transition-duration: 0ms; }
.shot__tip::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--ink); transform: rotate(45deg); }
.shot__tip[data-side="top"]::after { bottom: -5px; left: calc(var(--ax, 50%) - 5px); }
.shot__tip[data-side="bottom"]::after { top: -5px; left: calc(var(--ax, 50%) - 5px); }
.shot__tip[data-side="left"]::after { right: -5px; top: calc(var(--ay, 50%) - 5px); }
.shot__tip[data-side="right"]::after { left: -5px; top: calc(var(--ay, 50%) - 5px); }
.shot__list { margin: 18px auto 0; padding: 0; list-style: none; max-width: 1400px; display: grid; gap: 8px; counter-reset: pin; }
.shot__list li { position: relative; padding: 10px 14px 10px 46px; border-radius: 12px; background: #fff; box-shadow: 0 1px 0 var(--line); font-size: 15px; color: var(--ink-2); scroll-margin-block: 24px; transition: background 200ms ease, color 200ms ease; }
.shot__list li::before { counter-increment: pin; content: counter(pin); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font: 700 12px/22px var(--font-display); text-align: center; }
.shot__list li.is-active { background: var(--accent-2); color: var(--ink); }
.shot__list li.is-active::before { background: var(--ink); }
.shot figcaption { margin-top: 14px; font-size: 14px; color: var(--ink-2); text-align: center; }
#process .shot { margin-bottom: clamp(36px, 4vw, 64px); }
@media (max-width: 768px) { .shot__pin { width: 22px; height: 22px; font-size: 12px; } .shot__frame img { border-radius: 12px; } }
/* На компьютере список остаётся только для скринридера (без nowrap: строки не должны вылезать за экран) */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .shot__list { position: absolute; left: 0; width: 100%; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Features grid / generic cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 1px 0 var(--line); transition: transform var(--dur-open) var(--ease-out), box-shadow var(--dur-open) var(--ease-out); }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; margin-bottom: 20px; color: var(--ink); }
.card__icon svg { width: 22px; height: 22px; }
.card__n { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--kraft); letter-spacing: .1em; margin-bottom: 16px; }
.card h3 { font-size: 20px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
@media (hover: hover) and (pointer: fine) { .card:hover { transform: translateY(var(--lift)); box-shadow: 0 16px 40px rgba(31,33,37,.08); } }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
/* Возможности: «подробнее» всегда видно вторым абзацем; при наведении только лёгкая тень, без движения */
.feat p + p { margin-top: 12px; }
/* Предметная картинка вместо иконки: одного размера во всех карточках и на всех ширинах (312×174, на телефоне —
   по ширине карточки). Прозрачный фон; поля внутри кадра прозрачные, поэтому картинка чуть поднята к краю карточки. */
.feat__img { display: block; width: 312px; max-width: 100%; height: auto; margin: -10px 0 6px; }
.feat a { font-weight: 600; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .feat:hover { transform: none; box-shadow: 0 10px 28px rgba(31,33,37,.07); } }

/* Documents: three columns, accordion on phones */
.docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.doccol { background: #fff; border-radius: var(--radius); padding: 8px 26px 12px; box-shadow: 0 1px 0 var(--line); }
.doccol__h { font-size: 20px; }
.doccol__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; background: transparent; padding: 18px 0; font: inherit; color: inherit; text-align: left; cursor: default; border-radius: 8px; }
.doccol__btn:disabled { color: inherit; opacity: 1; cursor: default; } /* на широких экранах колонки всегда раскрыты */
.doccol__chev { display: none; width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out); flex: 0 0 auto; }
.doccol__btn[aria-expanded="true"] .doccol__chev { transform: translateY(2px) rotate(225deg); }
.doccol__list { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.doccol__list li { display: flex; gap: 10px; align-items: flex-start; }
.doccol__list li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--kraft); margin-top: 8px; }
.docs--accordion .doccol__btn { cursor: pointer; }
.docs--accordion .doccol__chev { display: block; }
.docs--accordion .doccol__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-open) var(--ease-out); }
.docs--accordion .doccol__list { overflow: hidden; min-height: 0; opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 0s linear var(--dur-open); }
.docs--accordion .doccol.is-open .doccol__body { grid-template-rows: 1fr; }
.docs--accordion .doccol.is-open .doccol__list { opacity: 1; visibility: visible; transition: opacity var(--dur-open) ease 40ms, visibility 0s; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.factplate { background: var(--bg-2); border-radius: var(--radius); padding: 24px 26px; display: grid; gap: 8px; }
.factplate h3 { font-size: 19px; }
.factplate p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 720px) { .docs { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } .doccol { padding: 0 20px 4px; } }

/* Integrations */
.integr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .integr { grid-template-columns: 1fr; } }

/* Mid CTA */
#audit-mid { padding-top: 0; }
.midcta { background: var(--ink); color: #fff; border-radius: 24px; padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 48px); display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.midcta__h { font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.midcta p { margin-top: 8px; color: rgba(255,255,255,.72); max-width: 62ch; font-size: 16px; }

/* Packages */
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.pack { background: #fff; border-radius: 24px; padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 var(--line); position: relative; }
.pack--hot { background: var(--ink); color: #fff; }
.pack--hot .muted { color: rgba(255,255,255,.7); }
.pack__badge { position: absolute; top: 18px; right: 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: var(--accent-2); color: var(--ink); padding: 6px 10px; border-radius: 999px; font-weight: 700; }
.pack h3 { font-size: 22px; }
.pack__price { font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.pack__price small { font-size: 15px; font-weight: 500; letter-spacing: 0; color: inherit; opacity: .7; }
.pack ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.pack li { display: flex; gap: 10px; align-items: flex-start; }
.pack li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--kraft); margin-top: 8px; }
.pack .btn { margin-top: auto; justify-content: center; }
/* Плашка-стикер: чуть повёрнута, лёгкий градиент и зерно бумаги, мягкая тень — как жёлтый стикер в герое */
.offer { margin-top: 28px; background: linear-gradient(160deg, #f4de69 0%, var(--accent-2) 55%, #ecd24c 100%); border-radius: 24px; padding: clamp(28px, 4vw, 44px); display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; position: relative; isolation: isolate; rotate: -.6deg; box-shadow: 0 1px 1px rgba(31,33,37,.06), 0 18px 34px -16px rgba(105,80,10,.38); }
.offer::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; background: var(--grain) 0 0 / 240px 240px; opacity: .08; mix-blend-mode: multiply; }
.offer h3 { font-size: clamp(22px, 2.6vw, 30px); }
.offer p { margin-top: 8px; color: rgba(31,33,37,.75); max-width: 56ch; }
@media (max-width: 960px) { .packs { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px 0 0; border-top: 2px solid var(--ink); position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 800; font-size: 14px; letter-spacing: .1em; color: var(--kraft); display: block; margin-bottom: 14px; }
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* About: слева текст и бейдж партнёра, справа факты строками, как таблица характеристик (на телефоне — друг под другом) */
.about { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; }
.about .lead { margin-top: 18px; }
.about__badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 10px 18px 10px 14px; border: 1px solid rgba(31, 33, 37, .3); border-radius: 999px; font-size: 15px; font-weight: 600; line-height: 1.2; }
.about__badge svg { width: 20px; height: 20px; flex: none; }
.about__facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.fact { grid-column: 1 / -1; display: grid; gap: 4px 28px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.fact b { display: block; font-family: var(--font-display); font-size: clamp(40px, 3.4vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fact span { color: var(--ink-2); font-size: 16px; line-height: 1.4; }
@media (min-width: 641px) {
  /* значение и пояснение в одной строке; колонка значений общая для всех строк (subgrid), иначе — своя в каждой строке */
  .about__facts { grid-template-columns: max-content minmax(0, 1fr); }
  .fact { grid-template-columns: max-content minmax(0, 1fr); grid-template-columns: subgrid; padding: 22px 0; }
}
@media (min-width: 961px) { .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); } }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 1.6vw, 20px); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; font-size: 20px; transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details.is-closing summary::after { transform: translateY(-50%) rotate(0deg); } /* плюс возвращается сразу, пока ответ сворачивается (main.js) */
@media (hover: hover) and (pointer: fine) { .faq summary:hover::after { border-color: var(--ink); } .dir__link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* CTA / form */
.cta { background: var(--ink); color: #fff; border-radius: 32px; padding: clamp(32px, 5vw, 72px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.cta h2 { color: #fff; }
.cta .lead { color: rgba(255,255,255,.7); margin-top: 14px; }
.contacts { margin-top: 28px; display: grid; gap: 12px; font-size: 16px; }
.contacts a { color: #fff; text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .contacts a:hover { text-decoration: underline; } }
.contacts .ph { color: rgba(255,255,255,.6); }
.form { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(22px, 3vw, 32px); }
.form h3 { font-size: 20px; margin-bottom: 6px; }
.form p.muted { font-size: 14px; margin-bottom: 18px; }
.form p.form__after { margin: 14px 0 0; text-align: center; }
.form label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.form .btn { width: 100%; justify-content: center; margin-top: 18px; }
/* Согласие на обработку данных: чекбокс 24×24, кнопка неактивна без галочки */
.consent { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 18px; }
.consent input { width: 24px; height: 24px; margin: 0; accent-color: var(--ink); cursor: pointer; }
.form .consent label { display: block; margin: 2px 0 0; font-size: 15px; font-weight: 500; line-height: 1.4; cursor: pointer; }
.consent a, .consent__more a { color: var(--accent); text-underline-offset: 3px; }
.consent__more { margin: 8px 0 0 34px; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.consent__hint { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: var(--ink-2); transition: opacity 150ms ease; }
.consent__hint.is-off { visibility: hidden; opacity: 0; } /* строка остаётся в потоке: высота формы не меняется после отметки */
.form__note { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; display: none; }
.form__note.is-on { display: block; }
.form__note a { color: var(--accent); font-weight: 600; white-space: nowrap; }
.form__note:focus { outline: none; } /* фокус нужен только чтобы скринридер прочитал сообщение */
.form input[aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
.form [aria-busy="true"] .btn:disabled { opacity: .75; cursor: progress; } /* «Отправляем…» читается, а не выглядит выключенной */
/* Ловушка для ботов: поле вне экрана, люди его не видят и не заполняют */
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* «Спасибо» вместо формы: карточка сохраняет высоту формы, текст по центру */
.form.is-done { display: grid; align-content: center; text-align: center; }
.form__done { display: grid; gap: 10px; }
.form__ok { width: 52px; height: 52px; color: var(--accent); justify-self: center; margin-bottom: 8px; }
.form__done h3 { font-size: 24px; margin: 0; }
.form__done h3:focus { outline: none; }
.form__done p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* Footer: логотип слева, реквизиты и ссылки на документы справа (на телефоне — друг под другом) */
.footer { padding: 40px 0 48px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.footer__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; }
.footer .logo { margin-top: 1px; }
.footer__text { display: grid; gap: 6px; }
.footer a, .footer .linkbtn { color: var(--ink-2); text-underline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .footer a:hover, .footer .linkbtn:hover { color: var(--ink); } }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.footer__links > * + *::before { content: "·"; display: inline-block; margin: 0 8px; text-decoration: none; }
.linkbtn { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 640px) { .footer__in { grid-template-columns: minmax(0, 1fr); gap: 18px; } .footer__links { flex-direction: column; gap: 8px; align-items: flex-start; } .footer__links > * + *::before { content: none; } }

/* Cookie banner (consent.js): внизу экрана, без затемнения, страница остаётся рабочей */
.cookie { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translate(-50%, 12px); width: min(720px, 100% - 24px); z-index: 60; background: #fff; color: var(--ink); border-radius: 20px; padding: 18px 20px; box-shadow: 0 1px 0 var(--line), 0 24px 60px rgba(31,33,37,.18); display: none; opacity: 0; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.cookie.is-on { display: block; opacity: 1; transform: translate(-50%, 0); }
@starting-style { .cookie.is-on { opacity: 0; transform: translate(-50%, 12px); } }
.cookie__text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.cookie__text a { color: var(--ink); text-underline-offset: 3px; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cookie .btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 480px) { .cookie { bottom: max(8px, env(safe-area-inset-bottom)); width: calc(100% - 16px); padding: 12px 14px; border-radius: 14px; } .cookie__text { font-size: 13px; line-height: 1.4; } .cookie__actions { margin-top: 10px; gap: 8px; } .cookie__actions .btn { flex: 1; justify-content: center; padding: 8px 12px; font-size: 14px; } } /* телефон: плашка ниже и тоньше */
/* Компьютер: плашка в левом нижнем углу, а не по центру — не закрывает кнопку на демо под ноутбуком */
@media (min-width: 769px) {
  .cookie { left: 16px; width: min(380px, 100% - 32px); transform: translate(0, 12px); padding: 16px 18px; }
  .cookie.is-on { transform: translate(0, 0); }
  @starting-style { .cookie.is-on { transform: translate(0, 12px); } }
  .cookie__text { font-size: 14px; line-height: 1.45; }
  .cookie__actions { margin-top: 12px; }
  .cookie .btn { padding: 9px 18px; font-size: 14px; }
}

/* Document pages (privacy.html, consent.html): колонка до 760px, кегль 17–18px, межстрочный 1.6 */
.doc { padding: calc(var(--header-h, 76px) + clamp(40px, 6vw, 80px)) 0 clamp(64px, 8vw, 120px); }
.doc__in { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 3.6vw, 48px); }
.doc__edition { margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.doc__body { margin-top: clamp(28px, 4vw, 48px); font-size: clamp(17px, 0.3vw + 16px, 18px); line-height: 1.6; }
.doc__body h2 { font-size: clamp(22px, 2vw, 28px); margin: clamp(36px, 4vw, 48px) 0 16px; scroll-margin-top: calc(var(--header-h, 76px) + 16px); }
.doc__body h3 { font-size: 19px; margin: 24px 0 10px; }
.doc__body h3 .doc__note { font-family: var(--font-body); font-weight: 400; letter-spacing: 0; color: var(--ink-2); font-size: 16px; }
.doc__body p { margin: 0 0 14px; }
.doc__body ul { margin: 0 0 16px; padding-left: 22px; }
.doc__body li { margin: 6px 0; }
.doc__body li::marker { color: var(--ink-2); }
.doc__body a { color: var(--accent); text-underline-offset: 3px; }
.doc__body b { font-weight: 600; }
.doc__back { display: inline-block; margin-top: clamp(28px, 4vw, 40px); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .doc__back:hover { text-decoration: underline; text-underline-offset: 3px; } }

/* v4.5 — версии под боль из рекламы (?angle=…, js/angles.js). Пока тексты не подставлены, слоты скрыты: текст по
   умолчанию не мигает. Строка-связка под лидом, подсветка карточки про эту боль, «маркер» на словах про боль, пульс
   нужной метки на скриншотах. Без метки ничего из этого на странице нет. */
html.angle-pending [data-slot] { visibility: hidden; }
/* строка-связка — цветом основного текста блока (как лид), выделяет её только маркер */
.angle-note { position: relative; margin-top: 16px; padding-left: 1.5em; max-width: 62ch; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.angle-note::before { content: "→"; position: absolute; left: 0; top: 0; }
.head h2 + .angle-note { margin-top: 18px; }
/* карточка про эту боль (класс is-angle от angles.js) внешне не выделяется: владелец решил оставить карточки как в
   исходной вёрстке (02.10.2026). Класс остаётся в разметке — на случай, если подсветку решат вернуть */
/* маркер: яркий непрозрачный жёлтый, как текстовыделитель (решение владельца — пусть выделяется), закрашивает нижние
   ~60 % строки, на переносе — каждую строку. Текст под ним — цветом основного текста блока (серый на жёлтом 4,9:1).
   Рисуется слева направо один раз, с небольшой задержкой после того, как фрагмент показался (angles.js снимает
   .hl--wait); меняется только фон, текст виден всегда и не сдвигается. В тёмном блоке заявки светлые буквы на жёлтом
   не читались бы, поэтому там тот же жёлтый — полосой под строкой (буквы остаются на тёмном), выделенные слова белые */
:root { --hl: #ffe45e; --hl-top: 40%; }
.cta { --hl: #ffe45e; --hl-top: 76%; }
mark.hl { color: inherit; background: linear-gradient(transparent var(--hl-top), var(--hl) var(--hl-top)) no-repeat 0 0 / 100% 100%; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .1em; margin: 0 -.1em; border-radius: 2px; transition: background-size 450ms var(--ease-out) 400ms; }
mark.hl.hl--wait { background-size: 0% 100%; }
.cta mark.hl { color: #fff; }
/* скриншоты: пульсирует только метка про эту боль — трижды после посадки; остальные садятся без пульса */
html.js[data-angle] .shot.is-seen .shot__pin { animation: pin-drop var(--pin-dur, 700ms) var(--ease-fade) var(--delay, 0ms) both; }
html.js[data-angle] .shot.is-seen .shot__pin.is-pulse { animation: pin-drop var(--pin-dur, 700ms) var(--ease-fade) var(--delay, 0ms) both,
  pin-pulse-angle 1100ms var(--ease-out) calc(var(--delay, 0ms) + var(--pin-dur, 700ms)) 3; }
@keyframes pin-pulse-angle {
  0% { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(31,33,37,.28), 0 0 0 0 rgba(35,97,232,.6); }
  100% { box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(31,33,37,.28), 0 0 0 22px rgba(35,97,232,0); }
}

/* Wide screens (≥1600): one more column, bigger gaps */
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .grid > :nth-last-child(-n+2) { grid-column: span 2; }
  .packs, .steps, .dirs, .docs, .integr, .facts { gap: 24px; }
  .card, .dir { padding: 32px 30px; }
  .pack { padding: 36px 32px; }
  .split { grid-template-columns: 1fr 1.4fr; }
}
/* Utilities */
/* Блоки страницы при прокрутке не анимируются: data-reveal в вёрстке нет, поэтому reveal движка из
   scroll-engine.css ни к чему не применяется. Движение осталось в трёх местах: герой (движок), падение меток
   на скриншотах и переключение вкладок и этапов в «Как работает». */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Reduced motion: убираем движение, оставляем смену прозрачности и цвета. Работает, только если на <html> нет
   data-motion="always": с ним анимации сайта идут при любом системном флаге (Windows ставит его вместе с выключенными
   «Эффектами анимации», часто заодно с настройками быстродействия) — так же, как data-smooth="always" для якорей. */
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="always"]) { --lift: 0px; --rise: 0px; }
  :root:not([data-motion="always"]) :is(.btn, .tab, .burger) { transition-property: background, color, box-shadow, border-color; }
  :root:not([data-motion="always"]) :is(.btn:active, .tab:active, .burger:active) { transform: none; }
  :root:not([data-motion="always"]) .shot__pin:active { transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))); }
  /* метки не падают: мягко проявляются на своих местах в том же порядке */
  .js:not([data-motion="always"]) .shot__pin { translate: none; transition: opacity 300ms ease var(--delay, 0ms); }
  .js:not([data-motion="always"]) .shot.is-seen .shot__pin { animation: none; opacity: 1; }
  .js:not([data-motion="always"]) .stepx.is-open .stepx__n { animation: none; }
  :root:not([data-motion="always"]) :is(.stepx__head, .stepx__n) { transition-duration: 120ms; }
  :root:not([data-motion="always"]) .tabs.has-ind.is-live::before { transition: none; }
  :root:not([data-motion="always"]) .btn:hover { transform: none; }
  :root:not([data-motion="always"]) .shot__tip { transform: none; transition: opacity var(--dur-tip) ease, visibility 0s linear var(--dur-tip); }
  :root:not([data-motion="always"]) :is(.stepx__body, .docs--accordion .doccol__body) { transition: none; }
  :root:not([data-motion="always"]) :is(.dir__link span, .doccol__chev, .burger span) { transition: none; }
  :root:not([data-motion="always"]) .faq summary::after { transition: none; } /* :is() не принимает псевдоэлементы */
  :root:not([data-motion="always"]) .scroll-cue::after { animation: none; transform: none; }
  :root:not([data-motion="always"]).menu-open .header .nav { transition: opacity 200ms ease; }
  html.js[data-angle]:not([data-motion="always"]) .shot.is-seen .shot__pin { animation: none; opacity: 1; }
  :root:not([data-motion="always"]) mark.hl { transition: none; }
}
