/* =========================================================================
   WidgetsAI — landing design system
   -------------------------------------------------------------------------
   Palette is Pantone-referenced and picked for conversion, not for taste:
   deep blue carries competence/trust (Labrecque & Milne, JAMS 2012), the
   orange CTA sits opposite it on the wheel so the button is the single most
   isolated element on every screen. Gold is reserved for stars only, so a
   rating always reads as a rating.

   Contrast (WCAG AA/AAA, verified):
     ink   #101820 on paper #F7F7F4 -> 16.9:1
     muted #53565A on paper #F7F7F4 ->  7.3:1
     ink   #101820 on CTA   #FF9E1B ->  8.7:1
     white #FFFFFF on blue  #0047BB ->  8.5:1
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  /* Brand — Pantone */
  --c-black6:      #101820; /* Pantone Black 6 C   — ink, dark sections   */
  --c-navy:        #141B4D; /* Pantone 2766 C      — cinematic backdrop   */
  --c-navy-deep:   #0A0E24; /* navy shaded         — hero floor           */
  --c-blue:        #0047BB; /* Pantone 2728 C      — primary / trust       */
  --c-blue-soft:   #5C88DA; /* Pantone 2718 C      — glow, gradients       */
  --c-cyan:        #00A9E0; /* Pantone 2995 C      — data / motion accent  */
  --c-cta:         #FF9E1B; /* Pantone 1375 C      — the action colour     */
  --c-cta-hot:     #FFA300; /* Pantone 137 C       — hover                 */
  --c-star:        #FFB81C; /* Pantone 7549 C      — ratings only          */
  --c-ok:          #00B140; /* Pantone 3405 C      — verified / success    */
  --c-danger:      #DA291C; /* Pantone 485 C       — errors                */

  /* Neutrals */
  --c-paper:       #F7F7F4;
  --c-card:        #FFFFFF;
  --c-mist:        #EEF1F7; /* cool band — mirrors the widget viewport */
  --c-line:        #D9D9D6; /* Pantone Cool Gray 1 C */
  --c-line-soft:   #E8E8E4;
  --c-muted:       #53565A; /* Pantone Cool Gray 11 C */
  --c-muted-2:     #6E7175;

  /* On-dark neutrals */
  --c-on-dark:        #FFFFFF;
  --c-on-dark-muted:  #A8B0C4;
  --c-on-dark-line:   rgba(255, 255, 255, .12);
  --c-on-dark-fill:   rgba(255, 255, 255, .05);

  /* Type */
  --f-head: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale — clamp(min, preferred, max) */
  --t-display: clamp(2.05rem, 1.05rem + 2.4vw, 5.25rem);
  --t-h1:      clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem);
  --t-h2:      clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem);
  --t-h3:      clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  --t-lead:    clamp(1.02rem, .96rem + 0.4vw, 1.28rem);
  --t-body:    1rem;
  --t-sm:      .9rem;
  --t-xs:      .8rem;

  /* Space — 4pt rhythm */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(64px, 8vw, 128px);
  --gutter:    clamp(18px, 4vw, 40px);
  --maxw:      1200px;
  --maxw-text: 720px;

  /* Radius */
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  /* Elevation — tuned on a warm-neutral ground, never pure black */
  --e-1: 0 1px 2px rgba(16, 24, 32, .05), 0 1px 3px rgba(16, 24, 32, .04);
  --e-2: 0 4px 12px rgba(16, 24, 32, .06), 0 1px 3px rgba(16, 24, 32, .04);
  --e-3: 0 12px 32px rgba(16, 24, 32, .09), 0 3px 8px rgba(16, 24, 32, .05);
  --e-4: 0 28px 70px rgba(16, 24, 32, .16), 0 8px 20px rgba(16, 24, 32, .07);
  --e-cta: 0 8px 22px rgba(255, 158, 27, .34), 0 2px 6px rgba(255, 158, 27, .2);

  /* Motion — one rhythm across the page */
  --ease-out:   cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --d-fast: .16s; --d-base: .28s; --d-slow: .5s;

  --z-nav: 60; --z-mobile-cta: 55; --z-overlay: 90;
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Anchor links must not land under the sticky header. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--c-black6);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.028em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
img { max-width: 100%; display: block; }
/* Icon SVGs carry only a viewBox, so without this they stretch to fill their
   flex parent. Element-level specificity means every component rule wins. */
svg { display: block; width: 1em; height: 1em; flex-shrink: 0; }

/* MUST stay after any rule that sets `display` on a bare element selector.
   `hidden` is honoured by the UA stylesheet, and ANY author rule beats the UA
   sheet regardless of specificity - so the `svg` rule above was silently
   overriding hidden on every icon, leaving the button spinners permanently
   visible and spinning. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--c-cta);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-cta); color: var(--c-black6); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 200;
  background: var(--c-cta); color: var(--c-black6);
  padding: var(--s-3) var(--s-5); border-radius: var(--r-sm); font-weight: 700;
  transition: top var(--d-base) var(--ease-out);
}
.skip-link:focus { top: var(--s-4); }

/* ---------- 3. Layout primitives ---------------------------------------- */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

.section { padding-block: var(--section-y); position: relative; }
.section--dark { background: var(--c-black6); color: var(--c-on-dark); }
.section--mist { background: var(--c-mist); }

/* Section heading cluster */
.sec-head { max-width: var(--maxw-text); margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: var(--t-h2); margin-bottom: var(--s-4); }
.sec-head p { font-size: var(--t-lead); color: var(--c-muted); }
.section--dark .sec-head p { color: var(--c-on-dark-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-blue);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--c-cta), var(--c-blue));
}
.section--dark .eyebrow { color: var(--c-cta); }
.sec-head--center .eyebrow::before { display: none; }
.sec-head--center .eyebrow {
  padding: var(--s-2) var(--s-4);
  background: rgba(0, 71, 187, .08);
  border-radius: var(--r-pill);
}
.section--dark .sec-head--center .eyebrow {
  background: rgba(255, 158, 27, .12);
  border: 1px solid rgba(255, 158, 27, .24);
}

/* ---------- 4. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px;                       /* touch target */
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-head);
  font-size: .98rem; font-weight: 700; letter-spacing: -.01em;
  text-align: center; white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              color var(--d-base) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.985); }
/* Inline icons inherit no intrinsic size from a bare viewBox — pin them or
   they blow up to the flex container's height. */
.btn > svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--lg > svg { width: 20px; height: 20px; }

/* The one action colour. Dark ink on orange = 8.7:1, and it is the only
   orange fill on the page, so the eye finds it without hunting. */
.btn--cta {
  background: var(--c-cta); color: var(--c-black6); box-shadow: var(--e-cta);
  position: relative; overflow: hidden;
}
.btn--cta:hover { background: var(--c-cta-hot); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(255,158,27,.42); }
/* Sheen sweep — pure transform/opacity, no layout work */
.btn--cta::after {
  content: ''; position: absolute; inset: 0 auto 0 -60%;
  width: 45%; transform: skewX(-20deg) translateX(-140%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: transform .65s var(--ease-out);
}
.btn--cta:hover::after { transform: skewX(-20deg) translateX(430%); }

.btn--solid { background: var(--c-blue); color: #fff; box-shadow: var(--e-2); }
.btn--solid:hover { background: #0039A0; transform: translateY(-2px); box-shadow: var(--e-3); }

.btn--ghost { background: transparent; color: var(--c-black6); border-color: var(--c-line); }
.btn--ghost:hover { background: var(--c-card); border-color: var(--c-black6); transform: translateY(-2px); }

.btn--ghost-dark { background: rgba(255,255,255,.06); color: #fff; border-color: var(--c-on-dark-line); backdrop-filter: blur(8px); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }

.btn--lg { min-height: 56px; padding: 17px 34px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- 5. Header ---------------------------------------------------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background-color var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  min-height: 72px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-head); font-weight: 800; font-size: 1.12rem;
  letter-spacing: -.03em; color: #fff;
  transition: color var(--d-base) var(--ease-out);
}
.nav__logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: var(--s-6); }
.nav__links a {
  font-size: .93rem; font-weight: 500; color: rgba(255,255,255,.78);
  transition: color var(--d-base) var(--ease-out);
  position: relative; padding-block: 4px;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--c-cta); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform var(--d-base) var(--ease-out);
}
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: var(--s-3); }
.nav__actions .btn { min-height: 42px; padding: 10px 20px; font-size: .9rem; }
.nav__login {
  font-size: .93rem; font-weight: 600; color: rgba(255,255,255,.85);
  display: inline-flex; align-items: center; min-height: 42px; padding-inline: 8px;
}
.nav__login:hover { color: #fff; }

/* Scrolled past the dark hero: flip to a light, solid bar. */
.nav.is-solid {
  background: rgba(247, 247, 244, .88);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--c-line);
  box-shadow: var(--e-1);
}
.nav.is-solid .nav__logo { color: var(--c-black6); }
.nav.is-solid .nav__links a { color: var(--c-muted); }
.nav.is-solid .nav__links a:hover { color: var(--c-black6); }
.nav.is-solid .nav__login { color: var(--c-muted); }
.nav.is-solid .nav__login:hover { color: var(--c-black6); }

/* Scroll progress rail */
.nav__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform: scaleX(var(--progress, 0)); transform-origin: left;
  background: linear-gradient(90deg, var(--c-blue), var(--c-cyan), var(--c-cta));
}

@media (max-width: 900px) {
  .nav__links { display: none; }
}
@media (max-width: 520px) {
  .nav__login { display: none; }
}

/* ---------- 6. Hero + funnel -------------------------------------------- */

.hero {
  position: relative;
  /* Fills the viewport so the next section never peeks in on a tall monitor.
     svh, not vh: mobile browser chrome would otherwise cause a jump. */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: center;
  padding-top: clamp(92px, 6.5vw, 100px);
  padding-bottom: clamp(40px, 3.5vw, 52px);
  background: var(--c-navy-deep);
  color: var(--c-on-dark);
  overflow: hidden;
  isolation: isolate;
}

/* Aurora field — two slow-drifting radial washes. Transform/opacity only. */
.hero__aurora { position: absolute; inset: -25% -10%; z-index: -2; pointer-events: none; }
.hero__aurora span {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  will-change: transform;
}
.hero__aurora span:nth-child(1) {
  width: 58vw; height: 58vw; left: -12%; top: -18%;
  background: radial-gradient(circle, var(--c-blue) 0%, transparent 68%);
  animation: drift-a 22s var(--ease-out) infinite alternate;
}
.hero__aurora span:nth-child(2) {
  width: 46vw; height: 46vw; right: -8%; top: 4%;
  background: radial-gradient(circle, var(--c-cyan) 0%, transparent 66%);
  opacity: .32; animation: drift-b 27s var(--ease-out) infinite alternate;
}
.hero__aurora span:nth-child(3) {
  width: 34vw; height: 34vw; left: 38%; bottom: -22%;
  background: radial-gradient(circle, var(--c-cta) 0%, transparent 70%);
  opacity: .22; animation: drift-a 19s var(--ease-out) infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(6%, 8%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(-8%, 5%, 0) scale(1.08); } }

/* Grid floor — depth without an image request */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 65% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 40%, #000 20%, transparent 75%);
}

/* One centred column, form first.
   The funnel is the job of this screen, so it sits directly under the
   headline instead of beside it - a side-car card reads as an afterthought,
   and on wide monitors the eye lands on the copy, not on the field. */
.hero__inner {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 0;
  max-width: 1120px;
}
/* Lets the copy block's children take part in the hero's own ordering. */
.hero__copy { display: contents; }
/* Порядок совпадает с DOM - order здесь только фиксирует намерение и не
   расходится с тем, что читает экранный диктор. */
.hero__lead { order: 1; margin-inline: auto; }
.hero h1    { order: 2; }
.funnel     { order: 3; width: 100%; max-width: 560px; }
.hero__hint { order: 4; }


.hero h1 { font-size: var(--t-display); margin-bottom: 20px; }
.hero h1 .grad {
  background: linear-gradient(105deg, var(--c-cta) 8%, var(--c-star) 45%, var(--c-cyan) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead {
  /* Мельче общего --t-lead: рядом с крупным заголовком это подводка, а не
     второй заголовок, и в такой ширине она ложится в две строки. */
  font-size: 1rem; line-height: 1.65; color: var(--c-on-dark-muted);
  max-width: 62em; margin-bottom: clamp(24px, 2.6vw, 38px);
}

/* Short laptops (1440x900 and friends): the hero is now viewport-tall, so on
   a low screen the trust strip fell below the fold. Tighten the soft spacing
   rather than shrink the funnel, which must stay fully visible. */
@media (min-width: 941px) and (max-height: 950px) {
  .hero { padding-top: 84px; padding-bottom: 32px; }
  .hero h1 { margin-bottom: 16px; }
  .hero__lead { margin-bottom: 18px; }
  .funnel--card { padding: 26px; }
  .funnel__head { margin-bottom: 18px; }
  .funnel__rail { margin-bottom: 18px; }
}



/* --- Витающие карточки виджета по краям -------------------------------
   Показывают продукт до того, как посетитель решит, вводить ли почту.
   Привязаны к центру, а не к краям окна: карточка всегда стоит за пределами
   текстовой колонки (её половина - 560px), а на узких экранах сама уезжает
   за край и обрезается overflow героя - отдельного медиазапроса не нужно. */
.hero__cards {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;   /* декорация не должна перехватывать клики */
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }

.hero__card {
  position: absolute; width: 268px;
  display: flex; flex-direction: column; gap: 9px;
  padding: 16px 18px;
  background: var(--c-card); color: var(--c-black6);
  border-radius: 16px;
  /* Фон, а не герой сцены: карточка должна намекать на продукт, а не спорить
     с заголовком и кнопкой. Отсюда приглушённая непрозрачность, рассеянная
     тень вместо резкой и лёгкая десатурация - цветные бейджи площадок иначе
     перетягивают взгляд сильнее оранжевого CTA. */
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  /* 0.9, а не «на глаз»: при 0.5 белая карточка по яркости обходила
     оранжевую кнопку и перетягивала взгляд с целевого действия. Здесь CTA
     остаётся самым ярким пятном в герое. */
  opacity: .9;
  filter: saturate(.65);
  transform: rotate(var(--rot));
  animation: card-float 11s var(--ease-out) infinite;
  will-change: transform;
}
.hero__card--l { right: calc(50% + 572px); }
.hero__card--r { left:  calc(50% + 572px); }

.hero__card .rcard__text {
  font-size: .82rem; line-height: 1.5; color: #4A4F56;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__card .rcard__foot { padding-top: 10px; }
.hero__card .rcard__ava { width: 30px; height: 30px; font-size: .74rem; }
.hero__card .rcard__who strong { font-size: .8rem; }
.hero__card .rcard__who small { font-size: .7rem; }
.hero__card .rcard__stars { font-size: .85rem; opacity: .8; }
.hero__card .rcard__badge svg { width: 19px; height: 19px; }

@keyframes card-float {
  0%, 100% { transform: rotate(var(--rot)) translate3d(0, 0, 0); }
  50%      { transform: rotate(var(--rot)) translate3d(0, -9px, 0); }
}

/* --- Подсказка прокрутить --------------------------------------------- */
.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 8px 12px;
  font-size: var(--t-xs); letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  transition: color var(--d-base) var(--ease-out);
}
.hero__scroll:hover { color: #fff; }
.hero__scroll-rail {
  position: relative; display: block;
  width: 1px; height: 34px;
  background: linear-gradient(rgba(255, 255, 255, .28), transparent);
}
.hero__scroll-rail i {
  position: absolute; left: -1.5px; top: 0;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--c-cta);
  animation: scroll-dot 2.1s var(--ease-out) infinite;
}
@keyframes scroll-dot {
  0%       { transform: translateY(0);    opacity: 0; }
  25%      { opacity: 1; }
  75%      { opacity: 1; }
  100%     { transform: translateY(30px); opacity: 0; }
}

/* Подсказка под формой со стрелкой на неё. */
.hero__hint {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--s-5);
  font-size: var(--t-sm); color: var(--c-on-dark-muted);
}
.hero__hint label { cursor: pointer; }
.hero__hint label:hover { color: #fff; }
.hero__hint > svg {
  width: 76px; height: 38px; color: rgba(255, 255, 255, .5);
  animation: hint-nudge 2.6s var(--ease-out) infinite;
}
/* Рисуется штрихом при появлении, потом мягко «подталкивает» к форме. */
.hero__hint path { stroke-dasharray: 130; stroke-dashoffset: 130; animation: hint-draw 1s var(--ease-out) .45s forwards; }
.hero__hint .hero__hint-head { animation-delay: 1.15s; }
@keyframes hint-draw { to { stroke-dashoffset: 0; } }
@keyframes hint-nudge {
  0%, 100% { transform: none; }
  50%      { transform: translate3d(5px, -4px, 0); }
}

/* --- The funnel card --- */
/* На первом шаге карточки нет: одно поле на тёмном фоне - меньше рамок,
   меньше решений, выше шанс, что его заполнят. Белая подложка возвращается
   на шагах 2-3 (.funnel--card, ставит JS), где живут пароль, согласие и
   тёмный по цвету текст - на тёмном фоне он был бы нечитаем. */
.funnel {
  position: relative;
  color: var(--c-black6);
  border-radius: var(--r-xl);
}
.funnel--card {
  background: var(--c-card);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--e-4);
  overflow: hidden;
}
/* Gradient hairline frame */
.funnel--card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, rgba(255,158,27,.9), rgba(0,169,224,.55) 45%, transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.funnel__head { margin-bottom: var(--s-5); }
.funnel__head h2 { font-size: 1.42rem; margin-bottom: 6px; }
.funnel__head p { font-size: var(--t-sm); color: var(--c-muted); }

/* Step rail */
.funnel__rail { display: flex; align-items: center; gap: 6px; margin-bottom: var(--s-5); }
.funnel__rail li { flex: 1; display: flex; align-items: center; gap: 6px; }
.funnel__rail i {
  flex: 1; height: 4px; border-radius: 2px; background: var(--c-line);
  transition: background-color var(--d-slow) var(--ease-out);
}
.funnel__rail li.is-done i, .funnel__rail li.is-active i { background: var(--c-cta); }
.funnel__rail b {
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-muted-2); transition: color var(--d-base) var(--ease-out);
}
.funnel__rail li.is-active b { color: var(--c-black6); }

/* Steps are swapped with [hidden]; each keeps its own labels + errors. */
.funnel__step { display: grid; gap: var(--s-4); }
.funnel__step[hidden] { display: none; }

.field { display: grid; gap: 7px; }
.field label { font-size: var(--t-sm); font-weight: 600; }
.field__hint { font-size: var(--t-xs); color: var(--c-muted); }
/* NOT [type=email],[type=password]: the show-password toggle switches the
   field to type="text", and a type-scoped selector would drop every style at
   that moment - padding, border, radius, font size.
   The exclusions sit inside :where() so this stays at (0,1,1) and does not
   outrank `.field__pw input`, which adds the right padding for the eye
   button. A bare :not() would raise it to (0,3,1) and swallow that padding. */
.field input:where(:not([type="checkbox"]):not([type="radio"])) {
  width: 100%; min-height: 52px; padding: 14px 16px;
  font-family: var(--f-body); font-size: 1rem;   /* 16px — no iOS auto-zoom */
  color: var(--c-black6); background: var(--c-paper);
  border: 1.5px solid var(--c-line); border-radius: var(--r-md);
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out);
}
.field input::placeholder { color: #9A9CA0; }
.field input:hover { border-color: #BFC0BD; }
.field input:focus {
  outline: none; background: var(--c-card);
  border-color: var(--c-blue); box-shadow: 0 0 0 4px rgba(0, 71, 187, .13);
}
.field.has-error input { border-color: var(--c-danger); }
.field.has-error input:focus { box-shadow: 0 0 0 4px rgba(218, 41, 28, .14); }

/* Инпут и кнопка одной таблеткой: одно действие - один элемент, меньше
   решений на экране. Специфичность (0,2,1) перебивает базовое правило поля,
   поэтому !important не нужен. */
.field--inline {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 5px 5px 6px;
  background: var(--c-card);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  transition: border-color var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out);
}
.field--inline:hover { border-color: #BFC0BD; }
.field--inline:focus-within {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(0, 71, 187, .13);
}
.field--inline input {
  flex: 1; min-width: 0;
  min-height: 48px; padding: 12px 16px;
  background: transparent; border: 0; border-radius: 0;
}
.field--inline input:hover,
.field--inline input:focus { background: transparent; border: 0; box-shadow: none; }
.field--inline .btn { flex-shrink: 0; min-height: 48px; padding: 13px 24px; }
.field.has-error .field--inline { border-color: var(--c-danger); }
.field.has-error .field--inline:focus-within { box-shadow: 0 0 0 4px rgba(218, 41, 28, .14); }

/* Ниже ~440px на кнопку рядом с полем не остаётся места без того, чтобы
   инпут стал непригодным - складываем в колонку. */
@media (max-width: 440px) {
  .field--inline { flex-direction: column; align-items: stretch; gap: 8px;
                   padding: 8px; border-radius: var(--r-lg); }
  .field--inline input { min-height: 46px; padding: 12px 12px; }
  .field--inline .btn { width: 100%; }
}

.field__pw { position: relative; }
.field__pw input { padding-right: 52px; }
.field__pw button {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--r-sm); color: var(--c-muted);
  transition: color var(--d-fast) var(--ease-out), background-color var(--d-fast) var(--ease-out);
}
.field__pw button:hover { color: var(--c-black6); background: var(--c-paper); }
.field__pw svg { width: 20px; height: 20px; }

/* Password strength — colour is backed by a text label, never colour alone */
.pw-meter { display: grid; gap: 6px; }
.pw-meter__bars { display: flex; gap: 4px; }
.pw-meter__bars i {
  flex: 1; height: 4px; border-radius: 2px; background: var(--c-line);
  transition: background-color var(--d-base) var(--ease-out);
}
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: var(--c-danger); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--c-cta); }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: var(--c-star); }
.pw-meter[data-level="4"] i { background: var(--c-ok); }
.pw-meter small { font-size: var(--t-xs); color: var(--c-muted); }

.consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: var(--t-xs); line-height: 1.5; color: var(--c-muted); cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-blue); flex-shrink: 0; cursor: pointer; }
.consent a { color: var(--c-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--c-cta-hot); }

.form-msg {
  display: flex; align-items: flex-start; gap: var(--s-2);
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: var(--t-sm); line-height: 1.45;
}
.form-msg[hidden] { display: none; }
.form-msg svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.form-msg--error { background: rgba(218,41,28,.08); color: #A61F16; border: 1px solid rgba(218,41,28,.22); }
.form-msg--ok    { background: rgba(0,177,64,.09);  color: #06773A; border: 1px solid rgba(0,177,64,.25); }

.field__error { font-size: var(--t-xs); color: var(--c-danger); font-weight: 600; }
.field__error[hidden] { display: none; }

.funnel__note {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-size: var(--t-xs); color: var(--c-muted); text-align: center;
}
.funnel__note svg { width: 14px; height: 14px; color: var(--c-ok); flex-shrink: 0; }

.funnel__back {
  background: none; border: 0; padding: 0; align-self: start;
  font-size: var(--t-sm); font-weight: 600; color: var(--c-muted);
  display: inline-flex; align-items: center; gap: 5px;
  transition: color var(--d-fast) var(--ease-out);
}
.funnel__back:hover { color: var(--c-black6); }
.funnel__back svg { width: 15px; height: 15px; }

/* Spinner inside a submitting button */
.btn.is-busy { pointer-events: none; }
.btn__spin { width: 18px; height: 18px; }
.btn.is-busy .btn__spin { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.funnel__done { text-align: center; display: grid; gap: var(--s-4); justify-items: center; }
.funnel__done-mark {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(0,177,64,.1); color: var(--c-ok);
  animation: pop .45s var(--ease-spring) both;
}
.funnel__done-mark svg { width: 34px; height: 34px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.funnel__done h3 { font-size: 1.32rem; }
.funnel__done p { font-size: var(--t-sm); color: var(--c-muted); max-width: 34ch; }

/* ---------- 7. Scroll-craft (pinned) ------------------------------------ */

/* .craft is the shared skeleton of BOTH pinned scroll sections (#craft and
   #craft-ai): the pin box, the cross-fading captions and the frame ticks.
   Everything scene-specific lives under .browser*/.demo-widget* for the first
   and .aistage*/.aisheet* for the second. */
.craft {
  background: var(--c-black6); color: var(--c-on-dark);
  position: relative; overflow: clip;
}
/* Второй пин идёт сразу за первым, поэтому лёгкий уход в синь — единственное,
   что разделяет две тёмные полосы. */
.craft--ai {
  background: linear-gradient(180deg, var(--c-black6), #0D1330 46%, var(--c-black6));
}
/* Seam with the hero above. Only the first pinned section sits under the
   hero, so the gradient is bound to its id, not to the shared base class. */
#craft::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 220px;
  background: linear-gradient(180deg, var(--c-navy-deep), transparent);
  pointer-events: none;
}

.craft__pin { padding-block: var(--s-8); position: relative; }
.craft--live .craft__pin {
  min-height: 100svh;
  display: grid; align-content: center;
}

.craft__layout {
  display: grid; gap: clamp(32px, 4vw, 64px);
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: center;
}
@media (max-width: 980px) { .craft__layout { grid-template-columns: 1fr; } }

/* Left: the frame captions.
   Default (no JS, no GSAP, reduced motion) is a plain readable stack — all
   five frames are content, and content must never depend on a CDN. The
   cross-fading overlay only switches on once the scroll timeline is live
   (.craft--live is set by landing.js after ScrollTrigger initialises). */
.craft__captions { display: grid; gap: var(--s-6); }
.craft__cap { display: grid; align-content: center; gap: var(--s-4); }
.craft__ticks { display: none; }

.craft--live .craft__captions { display: block; position: relative; min-height: 260px; }
/* Подписи ИИ-сцены длиннее, чем в первой: иначе центрированный абсолютный
   кадр вылезает на надзаголовок и на тики. В одну колонку запас не нужен —
   там он только выталкивает сцену за экран. */
@media (min-width: 981px) {
  .craft--live.craft--ai .craft__captions { min-height: 330px; }
}
.craft--live .craft__cap {
  position: absolute; inset: 0;
  display: grid; align-content: center; gap: var(--s-4);
  opacity: 0; transform: translateY(26px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
  pointer-events: none;
}
.craft--live .craft__cap.is-on { opacity: 1; transform: none; pointer-events: auto; }
.craft--live .craft__ticks { display: flex; }
.craft__cap-num {
  font-family: var(--f-head); font-size: .78rem; font-weight: 800;
  letter-spacing: .18em; color: var(--c-cta);
}
.craft__cap h3 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.85rem); }
.craft__cap p { color: var(--c-on-dark-muted); font-size: var(--t-lead); max-width: 34ch; }

/* Frame ticks */
.craft--live .craft__ticks { gap: 8px; margin-top: var(--s-5); }
/* Reads as a 4px rail, but the button itself is 28px tall so the tap target
   clears WCAG 2.2. A pseudo-element hit area would be clipped by overflow. */
.craft__ticks button {
  width: 38px; height: 28px; padding: 12px 0; border: 0; background: none;
}
.craft__ticks button::before {
  content: ''; display: block; height: 4px; border-radius: 2px;
  background: rgba(255, 255, 255, .18);
  transition: background-color var(--d-base) var(--ease-out);
}
.craft__ticks button:hover::before { background: rgba(255, 255, 255, .38); }
.craft__ticks button.is-on::before { background: var(--c-cta); }

/* Right: the stage — a browser chrome holding the assembling widget */
.craft__stage { position: relative; perspective: 1400px; }

.browser {
  border-radius: var(--r-lg); overflow: hidden;
  background: #F3F4F6;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 6px 20px rgba(0,0,0,.4);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #E4E6EA; border-bottom: 1px solid #D3D6DB;
}
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #C4C8CE; }
.browser__dots i:nth-child(1) { background: #FF6058; }
.browser__dots i:nth-child(2) { background: #FFBD2E; }
.browser__dots i:nth-child(3) { background: #28CA42; }
.browser__url {
  flex: 1; height: 26px; border-radius: var(--r-pill); background: #F7F8FA;
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
  font-size: .72rem; color: #6E7175; font-family: var(--f-body);
  overflow: hidden; white-space: nowrap;
}
.browser__url svg { width: 11px; height: 11px; color: var(--c-ok); flex-shrink: 0; }
.browser__body { padding: clamp(16px, 2.2vw, 26px); background: #F3F4F6; min-height: 300px; }

/* Skeleton of the "customer's site" behind the widget */
.mocksite { display: grid; gap: 12px; margin-bottom: 18px; }
.mocksite i { display: block; height: 9px; border-radius: 5px; background: #DEE1E6; }
.mocksite i:nth-child(1) { width: 42%; height: 15px; background: #CDD1D8; }
.mocksite i:nth-child(2) { width: 88%; }
.mocksite i:nth-child(3) { width: 66%; }

/* Floating source pills that fly into the widget */
.craft__sources { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.craft__src {
  position: absolute; display: flex; align-items: center; gap: 7px;
  padding: 7px 13px 7px 8px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.97); box-shadow: 0 10px 26px rgba(0,0,0,.32);
  font-size: .76rem; font-weight: 700; color: var(--c-black6); white-space: nowrap;
  opacity: 0; transform: scale(.8);
  will-change: transform, opacity;
}
.craft__src svg { width: 19px; height: 19px; border-radius: 4px; flex-shrink: 0; }
.craft__src b { color: var(--c-star); letter-spacing: .5px; font-size: .74rem; }

/* The widget being assembled */
.demo-widget {
  background: var(--c-mist); border-radius: var(--r-lg);
  padding: clamp(14px, 2vw, 22px);
}
.demo-widget__top {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); margin-bottom: 16px;
}
.demo-widget__title { font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; color: var(--c-black6); letter-spacing: -.02em; }
.demo-widget__title small { display: block; font-family: var(--f-body); font-weight: 400; font-size: .74rem; color: var(--c-muted); letter-spacing: 0; margin-top: 2px; }
.demo-widget__score { text-align: right; flex-shrink: 0; }
.demo-widget__score b { font-family: var(--f-head); font-size: 1.9rem; line-height: 1; color: var(--c-black6); font-variant-numeric: tabular-nums; }
.demo-widget__score span { display: block; color: var(--c-star); font-size: .82rem; letter-spacing: 2px; }
.demo-widget__score small { display: block; font-size: .7rem; color: var(--c-muted); }

.demo-widget__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .demo-widget__grid { grid-template-columns: 1fr; } .demo-widget__grid > *:nth-child(n+2) { display: none; } }

/* Демонстрационная плашка под тиками: цифры в отчёте на макете выдуманы.
   Тёмный аналог .showcase__disclaimer. */
.craft__note {
  display: flex; align-items: flex-start; gap: var(--s-2);
  margin-top: var(--s-5); max-width: 46ch;
  padding: 9px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid var(--c-on-dark-line);
  font-size: var(--t-xs); line-height: 1.5; color: var(--c-on-dark-muted);
}
.craft__note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; }
@media (max-width: 980px) { .craft__note { margin-top: var(--s-4); max-width: none; } }

/* ---------- 7b. AI scroll-craft scene ----------------------------------- */

/* Поток «сырых» отзывов. По умолчанию (без JS, без GSAP, reduced motion) —
   обычная читаемая строка пилюль над отчётом; в разлёт по сцене их переводит
   только .craft--live, как и подписи слева. */
.aistage__flow {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4);
}
.aistage__line {
  display: flex; align-items: center; gap: 8px;
  max-width: 100%; padding: 7px 13px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(0,0,0,.32);
  font-size: .74rem; font-weight: 600; color: var(--c-black6);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.aistage__line i {
  font-style: normal; color: var(--c-star); letter-spacing: 1px; flex-shrink: 0;
}
.craft--live .aistage__flow {
  display: block; position: absolute; inset: 0; z-index: 3;
  margin: 0; pointer-events: none;
}
.craft--live .aistage__line {
  position: absolute; max-width: 46%;
  opacity: 0; transform: scale(.86);
  will-change: transform, opacity;
}

/* Вызовы инструментов агента. Та же логика: статикой — список, поверх сцены —
   только когда таймлайн живой. */
.aistage__tools {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 var(--s-4); padding: 0;
}
.aistage__tools li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: var(--r-pill);
  background: rgb(255, 255, 255); border: 1px solid rgba(0,169,224,.4);
  color: var(--c-black6); font-size: .74rem; font-weight: 600;
  font-family: var(--f-body); white-space: nowrap;
}
.aistage__tools svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--c-cyan); }
.craft--live .aistage__tools {
  position: absolute; left: 0; right: 0; bottom: -14px; z-index: 4;
  display: grid; justify-items: start; gap: 7px; margin: 0; pointer-events: none;
}
.craft--live .aistage__tools li { opacity: 0; transform: translateX(-14px); will-change: transform, opacity; }
@media (max-width: 620px) { .aistage__tools li { white-space: normal; } }

/* Лист отчёта. Наклон и масштаб — теми же переменными, что у .browser. */
.aisheet {
  border-radius: var(--r-lg); overflow: hidden; background: var(--c-paper);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 6px 20px rgba(0,0,0,.4);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transform-style: preserve-3d;
  transition: transform .9s var(--ease-out);
  will-change: transform;
}
.aisheet__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #E4E6EA; border-bottom: 1px solid #D3D6DB;
}
.aisheet__ttl {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-size: .7rem; font-weight: 700; color: #6E7175;
}
.aisheet__ttl svg { width: 12px; height: 12px; }
.aisheet__body {
  padding: clamp(14px, 2vw, 22px);
  display: grid; gap: var(--s-4);
  color: var(--c-black6);
}
.aisheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.aisheet__head strong { font-family: var(--f-head); font-size: 1.02rem; letter-spacing: -.02em; }
.aisheet__head small { display: block; font-size: .72rem; color: var(--c-muted); margin-top: 2px; }
/* Штамп «Демо» на самом макете — чтобы скриншот секции не разошёлся
   по сети как настоящая аналитика. */
.aisheet__stamp {
  flex-shrink: 0; padding: 3px 10px; border-radius: var(--r-pill);
  background: rgba(16,24,32,.07); border: 1px solid rgba(16,24,32,.12);
  font-size: .66rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-muted);
}

.aisheet__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.aikpi {
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md); padding: 10px 12px;
}
.aikpi b {
  display: block; font-family: var(--f-head); font-size: 1.34rem; line-height: 1.1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.aikpi span { display: block; font-size: .68rem; color: var(--c-muted); margin-top: 2px; }
/* На узком экране три колонки KPI ещё помещаются, но только на уменьшенном
   кегле — иначе подпись рвётся на два слова. */
@media (max-width: 620px) {
  .aikpi { padding: 8px 9px; }
  .aikpi b { font-size: 1.1rem; }
  .aikpi span { font-size: .6rem; }
}

.aisheet__cols { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: var(--s-4); }
@media (max-width: 620px) { .aisheet__cols { grid-template-columns: 1fr; } }

.aidonut {
  margin: 0; display: grid; gap: 10px; align-content: start;
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md); padding: 12px;
}
.aidonut svg { width: 100%; height: auto; aspect-ratio: 1; max-width: 128px; margin-inline: auto; display: block; }
.aidonut__n { font-family: var(--f-head); font-size: 20px; font-weight: 800; fill: var(--c-black6); }
.aidonut__l { font-size: 8.5px; fill: #53565A; letter-spacing: .04em; }
.ailegend { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.ailegend li { display: flex; align-items: center; gap: 7px; font-size: .68rem; line-height: 1.35; }
.ailegend__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ailegend__nm { font-weight: 700; }
.ailegend__v { margin-left: auto; color: var(--c-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.aithemes {
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md); padding: 12px; display: grid; gap: 11px; align-content: start;
}
.aithemes__ttl {
  font-size: .66rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-muted); margin: 0;
}
.aitheme { display: grid; gap: 5px; }
.aitheme__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.aitheme__nm { font-size: .8rem; font-weight: 700; }
.aitheme__pc { font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--c-muted); }
.aitheme__track { display: block; height: 7px; border-radius: 4px; background: var(--c-mist); overflow: hidden; }
.aitheme__track i { display: block; height: 100%; border-radius: 4px; transform-origin: left center; }
.aitheme--good .aitheme__track i { background: var(--c-ok); }
.aitheme--bad  .aitheme__track i { background: var(--c-danger); }
.aitheme__q {
  font-size: .72rem; line-height: 1.45; color: var(--c-muted);
  border-left: 2px solid var(--c-line); padding-left: 8px;
}

.aitrend {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-4); align-items: center;
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md); padding: 10px 12px;
}
@media (max-width: 620px) { .aitrend { grid-template-columns: 1fr; } }
.aitrend__spark { width: 100%; height: 46px; display: block; }
.aitrend__deltas { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.aitrend__deltas small { font-size: .66rem; color: var(--c-muted); width: 100%; }
.aidelta {
  padding: 3px 9px; border-radius: var(--r-pill);
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.aidelta--up   { background: rgba(0,177,64,.12); color: #007A2C; }
.aidelta--down { background: rgba(0,71,187,.1);  color: var(--c-blue); }

/* ---------- 8. Review card (mirrors embed.js .yr-card on purpose) ------- */

.rcard {
  background: #fff; border-radius: 16px; padding: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.rcard:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.06); }
.rcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.rcard__stars { color: var(--c-star); font-size: .95rem; letter-spacing: 2px; line-height: 1; }
.rcard__badge svg { width: 22px; height: 22px; border-radius: 5px; }
.rcard__text { font-size: .9rem; line-height: 1.6; color: #26292E; flex: 1; }
.rcard__foot {
  display: flex; align-items: center; gap: 10px;
  padding-top: 12px; margin-top: auto;
  border-top: 1px solid rgba(16,24,32,.08);
}
.rcard__ava {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--f-head); font-weight: 800; font-size: .86rem; color: #fff;
}
.rcard__who { min-width: 0; }
.rcard__who strong { display: block; font-size: .84rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard__who small { display: block; font-size: .74rem; color: var(--c-muted); }

/* ---------- 9. Steps ----------------------------------------------------- */

.steps__grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: repeat(3, 1fr);
  counter-reset: step;
  position: relative;
}
@media (max-width: 880px) { .steps__grid { grid-template-columns: 1fr; } }

.step {
  position: relative; background: var(--c-card);
  border: 1px solid var(--c-line-soft); border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--e-1);
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
  overflow: hidden;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--e-3); border-color: rgba(0,71,187,.3); }
/* Big ghost numeral */
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; right: 14px; top: 2px;
  font-family: var(--f-head); font-size: 5.4rem; font-weight: 800;
  color: rgba(0,71,187,.07); line-height: 1; letter-spacing: -.05em;
  transition: color var(--d-slow) var(--ease-out);
}
.step:hover::before { color: rgba(255,158,27,.18); }
.step__ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--s-4);
  background: linear-gradient(145deg, rgba(0,71,187,.11), rgba(0,169,224,.09));
  color: var(--c-blue);
}
.step__ico svg { width: 26px; height: 26px; }
.step h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.step p { font-size: var(--t-sm); color: var(--c-muted); }
.step__time {
  display: inline-flex; align-items: center; gap: 5px; margin-top: var(--s-4);
  padding: 5px 11px; border-radius: var(--r-pill);
  background: rgba(0,177,64,.1); color: #06773A;
  font-size: var(--t-xs); font-weight: 700;
}
.step__time svg { width: 13px; height: 13px; }

.steps__after {
  margin-top: var(--s-7); text-align: center;
  font-size: var(--t-lead); color: var(--c-muted);
}

/* Embed snippet */
.snippet {
  margin-top: var(--s-6);
  background: var(--c-black6); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--e-3);
}
.snippet__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.09);
}
.snippet__bar span { font-size: var(--t-xs); color: var(--c-on-dark-muted); font-weight: 600; }
.snippet__copy {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border: 1px solid var(--c-on-dark-line); border-radius: var(--r-sm);
  background: rgba(255,255,255,.05); color: #fff; font-size: var(--t-xs); font-weight: 600;
  transition: background-color var(--d-fast) var(--ease-out);
}
.snippet__copy:hover { background: rgba(255,255,255,.13); }
.snippet__copy svg { width: 14px; height: 14px; }
.snippet pre {
  margin: 0; padding: 18px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
  font-size: .82rem; line-height: 1.7; color: #C8D2E0;
}
.snippet .tok-tag  { color: #7FB2FF; }
.snippet .tok-attr { color: var(--c-cta); }
.snippet .tok-str  { color: #7FE0A8; }

/* ---------- 9b. No-code panel -------------------------------------------
   A dark inset on the light ground rather than a full dark section: this is
   a reassurance callout attached to the launch story, not a new chapter, so
   it must not read as another band in the page rhythm.
   ------------------------------------------------------------------------ */

.nocode { padding-top: 0; }

.nocode__panel {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(155deg, var(--c-navy) 0%, var(--c-black6) 62%);
  color: var(--c-on-dark);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 56px);
  box-shadow: var(--e-4);
}
/* Warm glow behind the click chain, so the eye lands there after the copy. */
.nocode__panel::before {
  content: ''; position: absolute; z-index: -1;
  width: 70%; aspect-ratio: 2 / 1; right: -12%; bottom: -34%;
  background: radial-gradient(ellipse at center, rgba(255, 158, 27, .3), transparent 64%);
  filter: blur(56px);
}
.nocode__panel::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 75% 80% at 15% 20%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 15% 20%, #000, transparent 70%);
}

.nocode__head { max-width: 44ch; margin-bottom: clamp(32px, 4vw, 48px); }
.nocode__head h2 { font-size: var(--t-h2); margin-bottom: var(--s-4); }
.nocode__head p { font-size: var(--t-lead); color: var(--c-on-dark-muted); }

/* --- the click chain --- */
.nocode__flow {
  display: grid; align-items: stretch; gap: var(--s-3);
  grid-template-columns: 1fr auto 1fr auto 1fr;
}
@media (max-width: 820px) {
  .nocode__flow { grid-template-columns: 1fr; }
  .nocode__arrow { transform: rotate(90deg); justify-self: center; }
}

.nocode__step {
  position: relative;
  display: grid; gap: 10px; align-content: start;
  padding: clamp(18px, 2vw, 24px);
  background: rgba(255, 255, 255, .055);
  border: 1px solid var(--c-on-dark-line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(8px);
  transition: transform var(--d-base) var(--ease-out),
              background-color var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.nocode__step:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 158, 27, .42);
}
.nocode__step-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.nocode__step-ico {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: rgba(255, 158, 27, .14); color: var(--c-cta);
}
.nocode__step-ico > svg { width: 21px; height: 21px; }
.nocode__step-n {
  font-family: var(--f-head); font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; color: rgba(255, 255, 255, .56);
}
.nocode__step b { font-family: var(--f-head); font-size: 1.06rem; font-weight: 800; letter-spacing: -.02em; }
/* Explicit class, not `.nocode__step span`: that descendant selector outranks
   the single-class rules on the number badge and the cursor next to it. */
.nocode__step-d { font-size: var(--t-sm); color: var(--c-on-dark-muted); }

/* The "one click" tell: a pointer that taps once, then rests. */
.nocode__click {
  position: absolute; right: 14px; bottom: 14px;
  width: 20px; height: 20px; color: var(--c-cta);
  opacity: .0;
}
.nocode__step:hover .nocode__click { opacity: 1; animation: tap 1.1s var(--ease-out) infinite; }
.nocode__click > svg { width: 100%; height: 100%; fill: currentColor; stroke: var(--c-black6); stroke-width: 1.2; }
@keyframes tap {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  40%      { transform: translate3d(-3px, -3px, 0) scale(.86); }
}

.nocode__arrow { display: grid; place-items: center; color: rgba(255, 255, 255, .38); }
.nocode__arrow > svg { width: 22px; height: 22px; }

/* --- what you do NOT need --- */
.nocode__no {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  margin-top: clamp(28px, 3.5vw, 44px); padding-top: var(--s-5);
  border-top: 1px solid var(--c-on-dark-line);
}
.nocode__no li {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--t-sm); color: var(--c-on-dark-muted);
}
.nocode__no > li > svg { width: 16px; height: 16px; color: rgba(255, 255, 255, .42); }

.nocode__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-6); }
.nocode__cta p { font-size: var(--t-xs); color: rgba(255, 255, 255, .5); }

/* ---------- 10. Why / benefits ------------------------------------------ */

/* Before -> after pairs */
.flip-list { display: grid; gap: var(--s-4); margin-bottom: clamp(48px, 6vw, 80px); }
.flip {
  display: grid; align-items: center; gap: var(--s-4);
  grid-template-columns: 1fr auto 1fr;
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg); padding: clamp(16px, 2vw, 24px);
  box-shadow: var(--e-1);
}
@media (max-width: 860px) { .flip { grid-template-columns: 1fr; text-align: center; } }
.flip__bad, .flip__good { display: flex; align-items: center; gap: 12px; }
@media (max-width: 860px) { .flip__bad, .flip__good { justify-content: center; } }
.flip__bad  { color: var(--c-muted); }
.flip__good { font-weight: 700; }
.flip__mark {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
}
.flip__bad  .flip__mark { background: rgba(218,41,28,.1); color: var(--c-danger); }
.flip__good .flip__mark { background: rgba(0,177,64,.12); color: var(--c-ok); }
.flip__mark svg { width: 16px; height: 16px; }
.flip__arrow { color: var(--c-cta); display: grid; place-items: center; }
.flip__arrow svg { width: 24px; height: 24px; }
@media (max-width: 860px) { .flip__arrow { transform: rotate(90deg); } }

.bento { display: grid; gap: var(--s-4); grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } }
/* Нечётный хвост сетки (3+3+1): последняя карточка в две колонки, на
   планшете во всю ширину ряда, на телефоне обычно. Класс ставит PHP и
   только когда в ряду правда остаётся одна карточка. */
.bcard--span3 { grid-column: span 3; }
@media (max-width: 620px) { .bcard--span3 { grid-column: auto; } }

.bcard {
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-xl); padding: clamp(22px, 2.6vw, 30px);
  box-shadow: var(--e-1); position: relative; overflow: hidden;
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.bcard:hover { transform: translateY(-5px); box-shadow: var(--e-3); border-color: rgba(0,71,187,.28); }
/* Cursor-tracked highlight, set from JS as --mx/--my */
.bcard::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(0,71,187,.07), transparent 65%);
  transition: opacity var(--d-base) var(--ease-out);
}
.bcard:hover::after { opacity: 1; }
.bcard__ico {
  width: 46px; height: 46px; border-radius: var(--r-md); margin-bottom: var(--s-4);
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(0,71,187,.1), rgba(0,169,224,.08));
  color: var(--c-blue);
}
.bcard__ico svg { width: 24px; height: 24px; }
.bcard h3 { font-size: 1.12rem; margin-bottom: var(--s-2); }
.bcard p { font-size: var(--t-sm); color: var(--c-muted); }

/* Counters */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: clamp(48px, 6vw, 72px); }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr; } }
.stat {
  text-align: center; padding: var(--s-5);
  border-radius: var(--r-lg); background: var(--c-card); border: 1px solid var(--c-line-soft);
}
.stat b {
  display: block; font-family: var(--f-head); font-weight: 800;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); line-height: 1;
  color: var(--c-blue); font-variant-numeric: tabular-nums; letter-spacing: -.04em;
}
.stat p { font-size: var(--t-sm); color: var(--c-muted); margin-top: var(--s-2); }
.stat cite {
  display: block; font-style: normal; font-size: .7rem;
  color: var(--c-muted-2); margin-top: var(--s-3);
}

/* Honest objection block */
.objection {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; gap: var(--s-4); grid-template-columns: auto 1fr;
  background: linear-gradient(135deg, rgba(0,71,187,.05), rgba(0,169,224,.04));
  border: 1px solid rgba(0,71,187,.14); border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 34px);
}
@media (max-width: 620px) { .objection { grid-template-columns: 1fr; } }
.objection__ico { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--c-card); color: var(--c-blue); box-shadow: var(--e-1); }
.objection__ico svg { width: 24px; height: 24px; }
.objection h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.objection p { font-size: var(--t-sm); color: var(--c-muted); }
.objection p + p { margin-top: var(--s-3); }

/* ---------- 11. CMS compatibility matrix --------------------------------
   A static grid, not a marquee: this block exists so a visitor can FIND
   their own engine, and moving targets make scanning harder, not easier.
   Marks are desaturated so a set mixing full-colour and monochrome logos
   reads as one system; colour returns on hover/focus.
   ------------------------------------------------------------------------ */

.cms__grid {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
}
@media (max-width: 560px) { .cms__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.cms__cell {
  display: grid; place-items: center; gap: 12px;
  min-height: 116px; padding: 20px 12px;
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md); text-align: center;
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}
.cms__cell:hover, .cms__cell:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--e-2);
  border-color: rgba(0, 71, 187, .26);
}

.cms__mark { display: grid; place-items: center; height: 36px; }
/* Logos are separate lazy-loaded files, not inlined: at ~17 marks that is
   ~48KB the HTML no longer carries, and each one is cached on its own. */
.cms__mark > img {
  width: auto; height: 36px; max-width: 112px; object-fit: contain;
  filter: grayscale(1); opacity: .58;
  transition: filter var(--d-base) var(--ease-out), opacity var(--d-base) var(--ease-out);
}
.cms__cell:hover .cms__mark > img,
.cms__cell:focus-within .cms__mark > img { filter: none; opacity: 1; }

.cms__cell span {
  font-family: var(--f-head); font-size: .84rem; font-weight: 700;
  letter-spacing: -.01em; color: var(--c-black6); line-height: 1.25;
}

/* Long tail: platforms we support but have no official vector for. A named
   chip list beats a wall of letter tiles when the job is "find my engine". */
.cms__more {
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
}
.cms__more > p {
  text-align: center; font-size: var(--t-sm); color: var(--c-muted);
  margin-bottom: var(--s-4);
}
.cms__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cms__chips li {
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  font-family: var(--f-head); font-size: .82rem; font-weight: 700;
  letter-spacing: -.01em; color: var(--c-muted);
  transition: color var(--d-fast) var(--ease-out), border-color var(--d-fast) var(--ease-out);
}
.cms__chips li:hover { color: var(--c-black6); border-color: var(--c-muted-2); }

.cms__note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--s-3);
  margin-top: clamp(28px, 3.5vw, 44px); text-align: center;
  font-size: var(--t-sm); color: var(--c-muted);
}
.cms__note b { color: var(--c-black6); }
.cms__note > svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--c-blue); }
.cms__note span { max-width: 62ch; }

/* ---------- 12. Pricing -------------------------------------------------- */

/* Полоса тарифов во всю ширину экрана.
   Раньше карточки были грид-колонками внутри .wrap: при четырёх тарифах на
   каждую оставалось ~260px, и значения вроде "фильтры по оценкам и периоду"
   вылезали за край карточки. Теперь это горизонтальная лента со scroll-snap:
   карточка имеет собственную ширину и не сжимается, а лишнее уезжает в
   прокрутку. Прокрутка нативная — без JS лента листается пальцем, колесом,
   Shift+колесом и клавиатурой; стрелки и точки только добавляют управление. */
/* 100vw считается вместе с вертикальным полосом прокрутки, поэтому лента
   шире содержимого документа на его ширину и тянет за собой горизонтальный
   скролл всей страницы. Режем этот излишек на секции: clip, а не hidden —
   hidden сделал бы секцию скролл-контейнером и сломал бы position:sticky. */
#tariffs { overflow-x: clip; }
.plans-rail {
  position: relative;
  /* вырываемся из .wrap на всю ширину вьюпорта */
  width: 100vw; margin-inline: calc(50% - 50vw);
}
.plans {
  display: flex; gap: var(--s-5); align-items: stretch;
  /* safe center: пока карточки помещаются, лента стоит по центру экрана и
     прокручивать нечего; как только перестают — safe не даёт центрированию
     срезать первую карточку за левым краем скролл-бокса. */
  justify-content: safe center;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  /* Вертикальные поля обязательны: overflow-x режет и "шильдик" популярного
     тарифа (top:-13px), и подъём карточки на hover. */
  padding: 20px var(--gutter) 12px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.plans::-webkit-scrollbar { display: none; }
.plans:focus-visible { outline: 3px solid var(--c-cta); outline-offset: -3px; border-radius: var(--r-md); }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--s-4);
  /* Фиксированная ширина: карточка не должна сжиматься под число тарифов. */
  flex: 0 0 clamp(268px, 24vw, 320px); scroll-snap-align: center;
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--e-1);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), border-color var(--d-base) var(--ease-out);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--e-3); border-color: rgba(0,71,187,.3); }

/* The anchor card: dark, so the eye prices everything else against it. */
.plan--hot {
  background: linear-gradient(165deg, var(--c-navy) 0%, var(--c-black6) 100%);
  color: var(--c-on-dark); border-color: transparent;
  box-shadow: var(--e-4);
}
.plan--hot:hover { border-color: rgba(255,158,27,.4); }
.plan--hot .plan__desc, .plan--hot .plan__feats li { color: var(--c-on-dark-muted); }
.plan--hot .plan__feats strong { color: #fff; }
.plan--hot .plan__price b { color: #fff; }
.plan--hot .plan__period { color: var(--c-on-dark-muted); }
.plan--hot .plan__feats svg { color: var(--c-cta); }
.plan--hot .plan__feats li { border-color: rgba(255,255,255,.09); }

.plan__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 6px 16px; border-radius: var(--r-pill);
  background: var(--c-cta); color: var(--c-black6);
  font-family: var(--f-head); font-size: .72rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  box-shadow: var(--e-cta);
}
.plan__name { font-family: var(--f-head); font-size: 1.22rem; font-weight: 800; letter-spacing: -.02em; }
.plan__desc { font-size: var(--t-sm); color: var(--c-muted); min-height: 2.6em; }
.plan__price { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.plan__price b {
  font-family: var(--f-head); font-size: clamp(2.1rem, 1.7rem + 1.6vw, 2.9rem);
  font-weight: 800; line-height: 1; letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
}
.plan__price sup { font-size: .95rem; font-weight: 700; align-self: flex-start; margin-top: .35em; }
.plan__period { font-size: var(--t-sm); color: var(--c-muted); }

.plan__feats { display: grid; gap: 0; }
.plan__feats li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; font-size: var(--t-sm); color: var(--c-muted);
  border-bottom: 1px solid var(--c-line-soft);
}
/* min-width:0 снимает авто-минимум flex-элемента - без него длинная строка
   не сжимается и распирает карточку наружу. */
.plan__feats li > span { min-width: 0; overflow-wrap: anywhere; }
.plan__feats li:last-child { border-bottom: 0; }
.plan__feats svg { width: 17px; height: 17px; color: var(--c-ok); flex-shrink: 0; margin-top: 2px; }
/* Без white-space:nowrap: длинное значение ("фильтры по оценкам и периоду")
   неразрывной строкой распирало карточку. Числа склеены неразрывным пробелом
   в landing.php, поэтому "1 000" и так не рвётся. */
.plan__feats strong { color: var(--c-black6); font-weight: 700; font-variant-numeric: tabular-nums; }
.plan__cta { margin-top: auto; padding-top: var(--s-3); }

.plans__legal {
  margin-top: var(--s-6); text-align: center;
  font-size: var(--t-sm); color: var(--c-muted);
  max-width: 68ch; margin-inline: auto;
}
.plans__legal a { color: var(--c-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.plans__empty {
  flex: 1 1 100%; text-align: center; padding: var(--s-8) var(--s-5);
  background: var(--c-card); border: 1px dashed var(--c-line);
  border-radius: var(--r-xl); color: var(--c-muted); font-size: var(--t-sm);
}

/* Стрелки и точки — надстройка над нативной прокруткой: показываем их только
   при живом JS и только когда ленте действительно есть куда ехать. */
.plans-rail__arrow, .plans-rail__dots { display: none; }
.js-on .plans-rail.is-scrollable .plans-rail__arrow { display: grid; }
.js-on .plans-rail.is-scrollable .plans-rail__dots { display: flex; }

.plans-rail__arrow {
  position: absolute; top: calc(50% - 10px); z-index: 2;
  width: 46px; height: 46px; place-items: center;
  border: 1px solid var(--c-line); border-radius: 50%;
  background: var(--c-card); color: var(--c-black6);
  box-shadow: var(--e-2); cursor: pointer;
  transition: transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              opacity var(--d-base) var(--ease-out);
}
.plans-rail__arrow svg { width: 22px; height: 22px; }
.plans-rail__arrow:hover { transform: scale(1.08); box-shadow: var(--e-3); }
.plans-rail__arrow[disabled] { opacity: 0; pointer-events: none; }
.plans-rail__arrow--prev { left: 10px; }
.plans-rail__arrow--next { right: 10px; }
.plans-rail__arrow--prev svg { transform: rotate(90deg); }
.plans-rail__arrow--next svg { transform: rotate(-90deg); }
/* На узком экране стрелкам негде встать сбоку — там остаются свайп и точки. */
@media (max-width: 900px) { .js-on .plans-rail.is-scrollable .plans-rail__arrow { display: none; } }

.plans-rail__dots { justify-content: center; gap: 8px; margin-top: var(--s-4); }
/* Читается как полоска 4px, но кнопка 28px высотой — тап-цель по WCAG 2.2. */
.plans-rail__dots button {
  width: 34px; height: 28px; padding: 12px 0; border: 0; background: none; cursor: pointer;
}
.plans-rail__dots button::before {
  content: ''; display: block; height: 4px; border-radius: 2px;
  background: rgba(16, 24, 32, .16);
  transition: background-color var(--d-base) var(--ease-out);
}
.plans-rail__dots button:hover::before { background: rgba(16, 24, 32, .32); }
.plans-rail__dots button.is-on::before { background: var(--c-blue); }

/* ---------- 13. Showcase (demo widget) ---------------------------------- */

.showcase__disclaimer {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 8px 15px; margin-bottom: var(--s-5);
  background: rgba(16,24,32,.055); border: 1px solid rgba(16,24,32,.1);
  border-radius: var(--r-pill); font-size: var(--t-xs); color: var(--c-muted);
}
.showcase__disclaimer svg { width: 15px; height: 15px; flex-shrink: 0; }

.showcase__frame {
  background: var(--c-card); border-radius: var(--r-xl);
  padding: clamp(18px, 2.6vw, 34px);
  box-shadow: var(--e-2); border: 1px solid var(--c-line-soft);
}
.showcase__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-5);
}
.showcase__head h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.showcase__head p { font-size: var(--t-sm); color: var(--c-muted); margin-top: 4px; }
.showcase__score { text-align: right; }
.showcase__score b { font-family: var(--f-head); font-size: 2.3rem; line-height: 1; font-variant-numeric: tabular-nums; }
.showcase__score span { display: block; color: var(--c-star); letter-spacing: 3px; font-size: 1rem; }
.showcase__score small { display: block; font-size: var(--t-xs); color: var(--c-muted); }

.showcase__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
@media (max-width: 980px) { .showcase__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .showcase__grid { grid-template-columns: 1fr; } }
.showcase__grid .rcard { padding: 22px; }
.showcase__grid .rcard__text { font-size: .93rem; }

/* Reasons row */
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 980px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }
.reason { padding: var(--s-5); background: var(--c-card); border: 1px solid var(--c-line-soft); border-radius: var(--r-lg); }
.reason__ico { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; margin-bottom: var(--s-3); background: rgba(0,71,187,.09); color: var(--c-blue); }
.reason__ico svg { width: 21px; height: 21px; }
.reason h3 { font-size: 1.02rem; margin-bottom: 6px; }
.reason p { font-size: var(--t-sm); color: var(--c-muted); }

/* ---------- 13b. Interactive widget playground ---------------------------
   The demo doubles as the settings tour: the same five views, rating filter
   and sort order that exist in the widget editor, driving real markup. The
   embed attributes update underneath, so "настройте и заберите код" is shown
   rather than claimed.
   ------------------------------------------------------------------------ */

.wshow {
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-xl); box-shadow: var(--e-2); overflow: hidden;
}

.wshow__bar {
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
  padding: var(--s-4) clamp(16px, 2.4vw, 26px);
  border-bottom: 1px solid var(--c-line-soft);
  background: linear-gradient(180deg, rgba(0, 71, 187, .035), transparent);
}

.wshow__tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.wshow__tabs button {
  min-height: 38px; padding: 8px 15px;
  border: 1px solid var(--c-line); border-radius: var(--r-pill);
  background: var(--c-card); color: var(--c-muted);
  font-family: var(--f-head); font-size: .84rem; font-weight: 700; letter-spacing: -.01em;
  transition: background-color var(--d-fast) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              border-color var(--d-fast) var(--ease-out);
}
.wshow__tabs button:hover { color: var(--c-black6); border-color: var(--c-muted-2); }
.wshow__tabs button[aria-selected="true"] {
  background: var(--c-black6); border-color: var(--c-black6); color: #fff;
}

.wshow__ctl { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.wshow__ctl label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-xs); font-weight: 600; color: var(--c-muted);
}
.wshow__ctl select {
  min-height: 38px; padding: 7px 30px 7px 11px;
  font-family: var(--f-body); font-size: .84rem; font-weight: 600; color: var(--c-black6);
  background: var(--c-paper) no-repeat right 9px center / 13px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2353565A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  border: 1px solid var(--c-line); border-radius: var(--r-sm);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.wshow__ctl select:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(0, 71, 187, .13); }

/* The stage mimics the widget's own viewport tint so the demo reads as the
   real component, not as landing-page furniture. */
.wshow__stage { padding: clamp(16px, 2.4vw, 26px); background: var(--c-mist); }
.wshow__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4);
}
.wshow__head h3 { font-size: 1.2rem; }
.wshow__head p { font-size: var(--t-xs); color: var(--c-muted); margin-top: 3px; }
.wshow__score { text-align: right; }
.wshow__score b { font-family: var(--f-head); font-size: 1.9rem; line-height: 1; font-variant-numeric: tabular-nums; }
.wshow__score i { display: block; font-style: normal; color: var(--c-star); letter-spacing: 2px; font-size: .9rem; }
.wshow__score small { display: block; font-size: .7rem; color: var(--c-muted); }

/* --- per-view layouts --- */
.wshow__list { display: grid; gap: 12px; }
[data-view="table"]   .wshow__list { grid-template-columns: repeat(3, 1fr); }
[data-view="list"]    .wshow__list { grid-template-columns: 1fr; }
[data-view="compact"] .wshow__list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 900px) { [data-view="table"] .wshow__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { [data-view="table"] .wshow__list,
                            [data-view="compact"] .wshow__list { grid-template-columns: 1fr; } }

/* Carousel: a real horizontal scroller with snap, not a fake one. */
[data-view="carousel"] .wshow__list {
  grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr);
  grid-template-columns: none;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 10px; scrollbar-width: thin;
}
[data-view="carousel"] .wshow__list > * { scroll-snap-align: start; }

[data-view="compact"] .rcard { padding: 14px; gap: 7px; }
[data-view="compact"] .rcard__text {
  font-size: .82rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
[data-view="compact"] .rcard__foot { padding-top: 9px; }
[data-view="compact"] .rcard__ava { width: 30px; height: 30px; font-size: .74rem; }
[data-view="list"] .rcard { flex-direction: row; align-items: flex-start; gap: var(--s-4); }
@media (max-width: 640px) { [data-view="list"] .rcard { flex-direction: column; } }
[data-view="list"] .rcard__foot { border: 0; padding: 0; margin: 0; flex-direction: column; align-items: flex-start; min-width: 168px; }

/* Rating view: aggregate score + star distribution */
.wshow__rating {
  display: grid; gap: clamp(20px, 3vw, 40px); align-items: center;
  grid-template-columns: auto 1fr;
  background: var(--c-card); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px);
}
@media (max-width: 620px) { .wshow__rating { grid-template-columns: 1fr; } }
.wshow__big { text-align: center; }
.wshow__big b {
  display: block; font-family: var(--f-head); font-size: clamp(2.8rem, 2rem + 3vw, 4rem);
  line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.04em;
}
.wshow__big i { font-style: normal; color: var(--c-star); letter-spacing: 3px; font-size: 1.05rem; }
.wshow__big small { display: block; font-size: var(--t-xs); color: var(--c-muted); margin-top: 6px; }
.wshow__bars { display: grid; gap: 8px; }
.wshow__bars div { display: grid; grid-template-columns: 42px 1fr 34px; gap: 10px; align-items: center; font-size: var(--t-xs); color: var(--c-muted); }
.wshow__bars span:first-child { font-variant-numeric: tabular-nums; }
.wshow__bars u { display: block; height: 7px; border-radius: 4px; background: var(--c-line); overflow: hidden; }
.wshow__bars u i { display: block; height: 100%; border-radius: 4px; background: var(--c-star); }
.wshow__bars span:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.wshow__empty { padding: var(--s-8) var(--s-4); text-align: center; color: var(--c-muted); font-size: var(--t-sm); }

/* ---------- 14. FAQ ------------------------------------------------------ */

.faq { display: grid; gap: var(--s-3); max-width: 860px; margin-inline: auto; }
/* Divider label between the product questions and the payment ones. */
.faq__group {
  margin: var(--s-4) 0 0; padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
  font-family: var(--f-head); font-size: .78rem; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase; color: var(--c-muted);
  scroll-margin-top: 96px;
}
.faq details {
  background: var(--c-card); border: 1px solid var(--c-line-soft);
  border-radius: var(--r-lg); overflow: hidden;
  transition: border-color var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}
.faq details[open] { border-color: rgba(0,71,187,.28); box-shadow: var(--e-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.2vw, 26px);
  font-family: var(--f-head); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.015em; cursor: pointer; list-style: none;
  transition: color var(--d-fast) var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-blue); }
.faq summary .chev {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--c-paper); color: var(--c-blue);
  transition: transform var(--d-base) var(--ease-out), background-color var(--d-base) var(--ease-out);
}
.faq summary .chev svg { width: 15px; height: 15px; }
.faq details[open] summary .chev { transform: rotate(180deg); background: rgba(0,71,187,.12); }
.faq__a {
  padding: 0 clamp(18px, 2.2vw, 26px) clamp(18px, 2.2vw, 24px);
  font-size: var(--t-sm); line-height: 1.68; color: var(--c-muted);
}
.faq__a p + p { margin-top: var(--s-3); }
.faq__a strong { color: var(--c-black6); }

/* ---------- 15. Final CTA ----------------------------------------------- */

.final {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--c-black6); color: var(--c-on-dark); text-align: center;
}
.final::before {
  content: ''; position: absolute; z-index: -1;
  width: 120%; aspect-ratio: 2/1; left: -10%; bottom: -60%;
  background: radial-gradient(ellipse at center, rgba(255,158,27,.28), transparent 62%);
  filter: blur(60px);
}
.final::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000, transparent 72%);
}
.final h2 { font-size: var(--t-h1); margin-bottom: var(--s-5); max-width: 18ch; margin-inline: auto; }
.final p { font-size: var(--t-lead); color: var(--c-on-dark-muted); max-width: 52ch; margin: 0 auto var(--s-7); }
.final .btn-row { justify-content: center; }
.final__note { margin-top: var(--s-5); font-size: var(--t-xs); color: rgba(255,255,255,.5); }

/* ---------- 16. Footer --------------------------------------------------- */

.footer { background: #0B0F16; color: var(--c-on-dark-muted); padding-block: clamp(48px, 6vw, 76px) var(--s-6); font-size: var(--t-sm); }
.footer__top { display: grid; gap: clamp(32px, 4vw, 56px); grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -.03em; margin-bottom: var(--s-3); }
.footer__brand svg { width: 30px; height: 30px; }
.footer__tag { max-width: 34ch; margin-bottom: var(--s-4); }
.footer h4 { font-family: var(--f-head); font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); }
.footer nav { display: grid; gap: 11px; }
.footer nav a {
  color: var(--c-on-dark-muted); transition: color var(--d-fast) var(--ease-out);
  width: fit-content; min-height: 26px; display: inline-flex; align-items: center;
}
.footer nav a:hover { color: var(--c-cta); }

.footer__legal {
  margin-top: clamp(40px, 5vw, 60px); padding-top: var(--s-5);
  border-top: 1px solid rgba(255,255,255,.09);
  font-size: var(--t-xs); line-height: 1.75; color: #7B8394;
}
.footer__legal p + p { margin-top: 6px; }
.footer__legal strong { color: var(--c-on-dark-muted); font-weight: 600; }
.footer__copy {
  margin-top: var(--s-5); padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); justify-content: space-between;
  font-size: var(--t-xs); color: #7B8394;
}

/* ---------- 17. Sticky mobile CTA --------------------------------------- */

.mcta {
  position: fixed; inset: auto 0 0 0; z-index: var(--z-mobile-cta);
  display: none; align-items: center; gap: var(--s-3);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(247,247,244,.94);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--c-line);
  transform: translateY(110%);
  transition: transform var(--d-base) var(--ease-out);
}
.mcta.is-on { transform: none; }
.mcta__txt { flex: 1; min-width: 0; }
.mcta__txt b { display: block; font-family: var(--f-head); font-size: .92rem; font-weight: 800; letter-spacing: -.02em; }
.mcta__txt small { display: block; font-size: .72rem; color: var(--c-muted); }
.mcta .btn { flex-shrink: 0; }
@media (max-width: 780px) {
  .mcta { display: flex; }
  body { padding-bottom: 72px; }
}

/* ---------- 18. Scroll reveal ------------------------------------------- */
/* Gated behind .js-on so a JS-less (or crawler) render shows everything.
   This is the SEO guard rail: never hide content that must be indexed. */

.js-on [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  will-change: opacity, transform;
}
.js-on [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .62s var(--ease-out), transform .62s var(--ease-out);
  transition-delay: var(--rd, 0s);
}

/* ---------- 19. Reduced motion ------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js-on [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__aurora span { animation: none; }
  /* Без этого путь остался бы с полным dashoffset, т.е. стрелки просто нет. */
  .hero__hint path { stroke-dasharray: none; stroke-dashoffset: 0; }
  /* Карточки остаются на местах со своим наклоном, точка просто видна. */
  .hero__card { animation: none; }
  .hero__scroll-rail i { animation: none; opacity: 1; }
  .browser, .aisheet { transform: none; }
  .craft__src, .aistage__line, .aistage__tools li { opacity: 1; transform: none; }
}

/* ---------- 20. Print ---------------------------------------------------- */

@media print {
  .nav, .mcta, .hero__aurora, .hero__grid,
  .plans-rail__arrow, .plans-rail__dots { display: none !important; }
  /* Лента тарифов на бумаге — обычная сетка: в прокрутке видно одну карточку. */
  .plans-rail { width: auto !important; margin-inline: 0 !important; }
  .plans {
    overflow: visible !important; flex-wrap: wrap !important;
    padding-inline: 0 !important;
  }
  .plan { flex: 0 0 48% !important; box-shadow: none !important; }
  /* Обе закреплённые секции печатаются как обычный текст: сцены справа —
     декорация (и она вся в inline-стилях от GSAP), а подписи всех пяти
     кадров должны лечь стопкой, а не одна поверх другой. */
  .craft__pin { min-height: 0 !important; display: block !important; }
  .craft__stage, .craft__ticks { display: none !important; }
  .craft--live .craft__captions { display: grid !important; min-height: 0 !important; }
  .craft--live .craft__cap {
    position: static !important; opacity: 1 !important; transform: none !important;
  }
  body { background: #fff; color: #000; }
  .section { padding-block: 24px; }
}
