/* ==========================================================================
   MaxRunner — design system
   Tokens → base → layout → components → sections → responsive → motion
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* surfaces */
  --bg:            #f3f5f7;
  --bg-2:         #e7ebef;
  --surface:      #ffffff;
  /* Псевдоним поверхности для редакционных карточек. Переменная используется в
     23 правилах, но объявлена не была: фон молча становился прозрачным, и текст
     карточек читался прямо на цвете разделительной сетки (контраст 1.56). */
  --surface-1:    var(--surface);
  --surface-2:    #f7f8fa;
  --surface-3:    #e7ebf0;
  --line:         rgba(8, 24, 39, .15);
  --line-strong:  rgba(8, 24, 39, .28);

  /* text */
  --fg:           #071525;
  --fg-2:         #2a3b4d;
  --fg-3:         #506174;
  /* было #6e7c8b — контраст 4.27, ниже нормы для мелкого текста */
  --fg-4:         #5b6a79;

  /* accents */
  --accent:       #149ce5;
  --accent-2:     #4dcdf4;
  --accent-deep:  #0967b4;
  --glow:         rgba(46, 155, 255, .45);
  /* Цвет мелкого акцентного ТЕКСТА (надзаголовки, подписи, номера шагов).
     --accent-2 на светлом фоне даёт контраст 1.85 при норме 4.5 — читать
     невозможно. Для свечения, иконок и линий по-прежнему берётся --accent-2. */
  --accent-text:  #0b6f9e;

  /* status */
  --ok:           #35d07f;
  --warn:         #ffb43d;
  --err:          #ff5f56;

  /* geometry */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --container: 1240px;
  --gutter: 24px;

  /* spacing scale (8pt) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s5: 48px; --s6: 64px; --s7: 96px; --s8: 128px;

  /* type */
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system,
          "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter Tight", "Segoe UI Variable Display", "Segoe UI", system-ui,
          "Arial Black", Arial, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  /* Compatibility aliases used by the editorial/product-screen layer. Without
     these variables every `font:` shorthand in the knowledge article becomes
     invalid and silently falls back to the browser's small default font. */
  --font-body: var(--font);
  --font-head: var(--font-display);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 72px;
}

[data-theme="dark"] {
  --bg:            #000000;
  --bg-2:         #060708;
  --surface:      #0a0b0d;
  --surface-2:    #101113;
  --surface-3:    #16181b;
  --line:         rgba(255, 255, 255, .10);
  --line-strong:  rgba(255, 255, 255, .18);
  --fg:           #f4f7fb;
  --fg-2:         #b9c3d3;
  --fg-3:         #7c879a;
  /* было #56606f — контраст 3.09, мелкие подписи читались с трудом */
  --fg-4:         #727d8c;
  --accent-text:  var(--accent-2);
}

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ambient background: grid + two soft light sources */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px 460px at 82% -8%, rgba(46, 155, 255, .10), transparent 62%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 25%, transparent 78%);
}

img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }

/* inline icons: fixed box, never stretch */
.ico { width: 20px; height: 20px; flex: 0 0 auto; }
.btn--lg .ico, .tg-cta .ico { width: 22px; height: 22px; }
.btn--sm .ico { width: 17px; height: 17px; }
.link-arrow .ico, .mod__go .ico, .list-check .ico, .plan__list .ico { width: 17px; height: 17px; }
.acc__ico .ico { width: 13px; height: 13px; }
.note > .ico { width: 22px; height: 22px; margin-top: 2px; }
.card__icon .ico { width: 22px; height: 22px; }
.mod__ico .ico, .flow__ico .ico { width: 19px; height: 19px; }
.logo__mark .ico { width: 18px; height: 18px; }
.tg-cta__ico .ico { width: 26px; height: 26px; }
.tg-cta__arr .ico { width: 26px; height: 26px; }
.video__play .ico { width: 26px; height: 26px; margin-left: 4px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* было #087ebd — контраст 4.06 на фоне страницы, ниже нормы для 13–16 px */
.brand-name { color: #0b6f9e !important; }
[data-theme="dark"] .brand-name { color: #65dcff !important; text-shadow: 0 0 14px rgba(101, 220, 255, .18); }

p { margin: 0 0 var(--s2); }
ul, ol { margin: 0 0 var(--s2); padding-left: 1.25em; }
li { margin-bottom: .45em; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 var(--s2);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}

hr { border: 0; border-top: 1px solid var(--line); margin: var(--s5) 0; }

::selection { background: var(--accent); color: #001227; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--accent);
  color: #001126;
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- 3. Layout --------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 860px; }

.section { padding-block: clamp(56px, 8vw, 112px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--line { border-top: 1px solid var(--line); }

/* grid-элементы не должны раздуваться содержимым (таблицы, длинные строки) */
.grid > *, .split > *, .step > *, .plans > *, .mod-grid > *,
.facts > *, .addons > *, .related > *, .footer__grid > * { min-width: 0; }
.mock, .mock__scroll, .panel, .card, .plan { min-width: 0; max-width: 100%; }

.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: var(--s2); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: var(--s5); font-size: clamp(24px, 3vw, 32px); }
.prose h3 { margin-top: var(--s4); font-size: clamp(19px, 2.2vw, 22px); }

.muted { color: var(--fg-3); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--fg-2); line-height: 1.6; }
.center { text-align: center; }

/* ---------- 4. Typography helpers --------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--s2);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .92;
  text-transform: uppercase;
  font-size: clamp(40px, 8.2vw, 96px);
}
.display .accent { color: var(--accent); text-shadow: 0 0 42px var(--glow); }

.h-section {
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .98;
}
.h-card { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.section-head { max-width: 760px; margin-bottom: var(--s5); }

/* ---------- 5. Buttons -------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: #04121f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 16px/1.2 var(--font);
  letter-spacing: -.01em;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease),
              background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, #4bb0ff, var(--accent));
  box-shadow: 0 10px 30px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--primary:hover { box-shadow: 0 16px 40px -12px var(--glow), inset 0 1px 0 rgba(255,255,255,.45); }
/* sheen */
.btn--primary::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg);
  transition: left .65s var(--ease-out);
}
.btn--primary:hover::after { left: 150%; }

.btn--ghost {
  background: rgba(255,255,255,.03);
  color: var(--fg);
  border-color: var(--line-strong);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(110,190,255,.5); }

.btn--outline {
  background: transparent;
  color: var(--fg);
  border-color: var(--line-strong);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent-2); }

.btn--lg { min-height: 58px; padding: 17px 34px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

.btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent-2);
  min-height: 32px;
}
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Header --------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 11, .55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), height .3s var(--ease);
}
.header.is-stuck {
  background: rgba(5, 7, 11, .88);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -.03em;
  color: var(--fg);
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #1b2534, #0a0e15);
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 22px -6px var(--glow);
}
.logo__mark svg { width: 20px; height: 20px; }
.logo em { font-style: normal; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--fg-2);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link:hover { color: var(--fg); background: rgba(255,255,255,.05); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--fg); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.header__cta { margin-left: var(--s2); flex-shrink: 0; }
.header__note {
  font-size: 12px;
  color: var(--fg-4);
  margin-left: 12px;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  position: relative;
  transition: transform .25s var(--ease), background .2s;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: rgba(5, 7, 11, .97);
  backdrop-filter: blur(18px);
  padding: var(--s3) var(--gutter) var(--s6);
  overflow-y: auto;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: none; }
.drawer__group + .drawer__group { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.drawer__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 10px;
}
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 4px;
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.drawer__link:hover { text-decoration: none; color: var(--accent-2); }
.drawer__link span { color: var(--fg-4); font-size: 13px; font-weight: 400; }
.drawer .btn { margin-top: var(--s3); }

/* mega menu (desktop) */
.has-mega { position: relative; }
.mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: min(920px, 88vw);
  padding: var(--s3);
  background: rgba(10, 14, 20, .97);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -30px #000, 0 0 0 1px rgba(255,255,255,.02);
  backdrop-filter: blur(20px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 12px;
  font-weight: 500;
}
.mega__link {
  display: block;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: 8px;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.35;
  min-height: 38px;
  transition: background .18s, color .18s;
}
.mega__link:hover { background: rgba(46,155,255,.1); color: var(--fg); text-decoration: none; }

/* ---------- 7. Hero ----------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(40px, 7vw, 84px) clamp(48px, 7vw, 90px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: var(--s5);
  align-items: center;
}
.hero__title { margin-bottom: var(--s3); }
.hero__sub {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--fg-2);
  max-width: 40ch;
  margin-bottom: var(--s4);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.hero__micro {
  margin-top: var(--s3);
  font-size: 13.5px;
  color: var(--fg-4);
  max-width: 46ch;
}
.hero__micro b { color: var(--fg-3); font-weight: 600; }

.hero__visual { position: relative; }
.hero__robot {
  width: 100%;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.75)) drop-shadow(0 0 60px rgba(46,155,255,.2));
  animation: float 7s ease-in-out infinite;
}
.hero__badge {
  position: absolute;
  padding: 11px 15px;
  background: rgba(12, 17, 25, .9);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.3;
  box-shadow: 0 20px 40px -18px #000;
  animation: float 9s ease-in-out infinite;
}
.hero__badge b { display: block; font-size: 15px; letter-spacing: -.01em; }
.hero__badge--1 { top: 8%; left: -4%; animation-delay: -1.5s; }
.hero__badge--2 { bottom: 14%; right: -2%; animation-delay: -3.5s; }
.hero__badge .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 10px var(--ok); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ---------- 8. Ticker --------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.015);
  overflow: hidden;
  padding-block: 14px;
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-inline: 26px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg-4);
  white-space: nowrap;
}
.ticker__item i { color: var(--accent); font-style: normal; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 9. Cards ---------------------------------------------------- */
.card {
  position: relative;
  padding: var(--s3);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(46,155,255,.55), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,.16); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(46,155,255,.1);
  border: 1px solid rgba(46,155,255,.24);
  color: var(--accent-2);
  margin-bottom: var(--s2);
}
.card__icon svg { width: 22px; height: 22px; }
.card--link { display: block; color: inherit; }
.card--link:hover { text-decoration: none; }
.card__meta {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--fg-4);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* numbered step block */
.steps { display: grid; gap: clamp(48px, 6vw, 88px); }
.step { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: var(--s5); align-items: center; }
.step:nth-child(even) .step__body { order: 2; }
.step__num {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.28);
  margin-bottom: var(--s2);
}
.step__title { font-size: clamp(26px, 3.6vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: -.03em; line-height: 1; margin-bottom: var(--s2); }
.step__title em { font-style: normal; color: var(--accent); display: block; }

/* ---------- 10. UI mock ------------------------------------------------- */
.mock {
  background: linear-gradient(180deg, #0d131c, #080c12);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -40px #000, inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.mock__dots { display: flex; gap: 6px; }
.mock__dots i { width: 9px; height: 9px; border-radius: 50%; background: #262f3c; }
.mock__name { font-size: 12.5px; color: var(--fg-3); font-family: var(--font-mono); letter-spacing: .04em; }
.mock__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(255,180,61,.35);
  background: rgba(255,180,61,.08);
  border-radius: 5px;
  padding: 3px 7px;
}
.mock__body { padding: var(--s2); }
.mock__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
.tbl th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-4);
  font-weight: 500;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,.045);
  color: var(--fg-2);
  white-space: nowrap;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(46,155,255,.05); }
.tbl td:first-child { color: var(--fg); font-weight: 500; }
.tbl tfoot td { font-weight: 700; color: var(--fg); border-top: 1px solid var(--line); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok   { color: var(--ok);   background: rgba(53,208,127,.1);  border-color: rgba(53,208,127,.25); }
.badge--warn { color: var(--warn); background: rgba(255,180,61,.1);  border-color: rgba(255,180,61,.25); }
.badge--err  { color: var(--err);  background: rgba(255,95,86,.1);   border-color: rgba(255,95,86,.25); }
.badge--info { color: var(--accent-2); background: rgba(46,155,255,.1); border-color: rgba(46,155,255,.25); }
.badge--idle { color: var(--fg-4); background: rgba(255,255,255,.04); border-color: var(--line); }

/* scenario panel */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: var(--s3);
}
.panel__head {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(46,155,255,.25);
  background: rgba(46,155,255,.07);
  border-radius: 5px;
  padding: 4px 9px;
  display: inline-block;
  margin-bottom: var(--s3);
}
.kv { display: grid; gap: 14px; }
.kv__row { display: grid; grid-template-columns: minmax(90px, .5fr) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.kv__k {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-4);
}
.kv__v { font-size: 14.5px; color: var(--fg); }

/* checklist with icons */
.flow { display: grid; gap: var(--s3); }
.flow__item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: var(--s2); align-items: start; }
.flow__ico {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--fg-3);
  transition: color .25s, border-color .25s, background .25s;
}
.flow__item.is-active .flow__ico { color: var(--accent); border-color: rgba(46,155,255,.45); background: rgba(46,155,255,.1); box-shadow: 0 0 24px -8px var(--glow); }
.flow__t { font-weight: 700; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 3px; }
.flow__item.is-active .flow__t { color: var(--accent); }
.flow__d { font-size: 14px; color: var(--fg-3); line-height: 1.5; }

/* progress */
.progress { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-2));
  box-shadow: 0 0 16px var(--glow);
  transition: width 1.6s var(--ease-out);
}

/* ---------- 11. Feature / module grid ----------------------------------- */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s2); }
.mod {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255,255,255,.02);
  color: inherit;
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.mod:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(46,155,255,.4); background: rgba(46,155,255,.05); }
.mod__top { display: flex; align-items: center; gap: 12px; }
.mod__ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(46,155,255,.1); color: var(--accent-2); flex-shrink: 0; }
.mod__ico svg { width: 19px; height: 19px; }
.mod__name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.mod__desc { font-size: 14px; color: var(--fg-3); line-height: 1.5; flex: 1; }
.mod__go { font-size: 13px; color: var(--accent-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.mod:hover .mod__go svg { transform: translateX(3px); }
.mod__go svg { transition: transform .25s var(--ease); }
.mod__pill {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-4);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ---------- 12. Facts strip --------------------------------------------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fact { background: var(--bg-2); padding: var(--s3) var(--s2); text-align: center; }
.fact__v { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 900; letter-spacing: -.03em; color: var(--fg); }
.fact__v span { color: var(--accent); }
.fact__l { font-size: 13px; color: var(--fg-3); margin-top: 4px; line-height: 1.4; }

/* ---------- 13. Tabs ---------------------------------------------------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: var(--s3); }
.tab {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--fg-3);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.tab:hover { color: var(--fg); border-color: var(--line-strong); }
.tab[aria-selected="true"] { background: rgba(46,155,255,.13); border-color: rgba(46,155,255,.45); color: var(--accent-2); }
.tabpanel[hidden] { display: none; }

/* ---------- 14. Video / demo -------------------------------------------- */
.video {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, #0e141d, #06090e);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .3s;
}
.video:hover { border-color: rgba(46,155,255,.45); }
.video__play {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(46,155,255,.16);
  border: 1px solid rgba(46,155,255,.5);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: transform .3s var(--ease), background .3s;
}
.video:hover .video__play { transform: scale(1.08); background: rgba(46,155,255,.3); }
.video__play::after {
  content: "";
  position: absolute;
  width: 84px; height: 84px;
  border-radius: 50%;
  border: 1px solid rgba(46,155,255,.5);
  animation: pulse 2.6s var(--ease-out) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.9); opacity: 0; }
}
.video__meta {
  position: absolute;
  left: 18px; bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.timeline { display: grid; gap: 2px; }
.timeline__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: var(--s2);
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background .2s;
}
.timeline__row:hover { background: rgba(255,255,255,.035); }
.timeline__t { font-family: var(--font-mono); font-size: 12px; color: var(--accent-2); letter-spacing: .04em; }
.timeline__d { font-size: 14.5px; color: var(--fg-2); }

/* ---------- 15. Pricing ------------------------------------------------- */
.switch {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  flex-wrap: wrap;
  justify-content: center;
}
.switch button {
  min-height: 40px;
  padding: 9px 18px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--fg-3);
  font: 600 14.5px/1 var(--font);
  cursor: pointer;
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.switch button:hover { color: var(--fg); }
.switch button[aria-pressed="true"] {
  background: linear-gradient(180deg, #4bb0ff, var(--accent));
  color: #04121f;
  box-shadow: 0 8px 20px -10px var(--glow);
}

.plans { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--s3); align-items: stretch; }
.plan {
  display: flex;
  flex-direction: column;
  padding: var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.032), rgba(255,255,255,.008));
}
.plan--hi {
  border-color: rgba(46,155,255,.4);
  background:
    radial-gradient(600px 240px at 80% -10%, rgba(46,155,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.012));
  box-shadow: 0 30px 70px -40px var(--glow);
}
.plan__name { font-family: var(--font-display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-4); margin-bottom: var(--s2); }
.plan--hi .plan__name { color: var(--accent-2); }
.plan__price { font-family: var(--font-display); font-size: clamp(34px, 5vw, 50px); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.plan__price small { font-size: 15px; font-weight: 500; color: var(--fg-3); letter-spacing: 0; margin-left: 8px; }
.plan__sub { font-size: 14px; color: var(--fg-3); margin: 10px 0 var(--s3); min-height: 21px; }
.plan__list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: 12px; }
.plan__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; font-size: 14.5px; color: var(--fg-2); margin: 0; }
.plan__list svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan__save { display: inline-block; margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--ok); background: rgba(53,208,127,.12); border: 1px solid rgba(53,208,127,.3); border-radius: 5px; padding: 2px 8px; letter-spacing: 0; vertical-align: middle; }

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s2); }
.addons--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; }
.addon { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r); background: rgba(255,255,255,.02); }
.addon__p { font-family: var(--font-display); font-size: 24px; font-weight: 900; letter-spacing: -.03em; }
.addon__n { font-size: 14px; color: var(--fg-2); margin-top: 4px; }
.addon__h { font-size: 12.5px; color: var(--fg-4); margin-top: 8px; line-height: 1.45; }

@media (max-width: 680px) {
  .addons--two { grid-template-columns: 1fr; max-width: none; }
}

/* ---------- 16. Accordion ----------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: 22px 4px;
  min-height: 56px;
  background: none;
  border: 0;
  color: var(--fg);
  font: 600 17px/1.4 var(--font);
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.acc__btn:hover { color: var(--accent-2); }
.acc__ico {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform .3s var(--ease), background .25s, border-color .25s;
}
.acc__btn[aria-expanded="true"] .acc__ico { transform: rotate(45deg); background: rgba(46,155,255,.15); border-color: rgba(46,155,255,.5); color: var(--accent-2); }
.acc__panel { overflow: hidden; height: 0; transition: height .32s var(--ease); }
.acc__inner { padding: 0 4px 24px; color: var(--fg-3); max-width: 74ch; font-size: 15.5px; }
.acc__inner p:last-child { margin-bottom: 0; }

/* ---------- 17. Callouts ------------------------------------------------ */
.note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: var(--s3);
  border-radius: var(--r);
  border: 1px solid rgba(255,180,61,.28);
  background: rgba(255,180,61,.06);
  font-size: 14.5px;
  color: var(--fg-2);
  line-height: 1.55;
}
.note svg { width: 22px; height: 22px; color: var(--warn); margin-top: 1px; }
.note--info { border-color: rgba(46,155,255,.28); background: rgba(46,155,255,.06); }
.note--info svg { color: var(--accent-2); }
.note strong { color: var(--fg); }
.note p:last-child { margin-bottom: 0; }

.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.matrix th, .matrix td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-4); font-weight: 500; }
.matrix td:first-child { color: var(--fg); font-weight: 600; }
.matrix tbody tr:hover { background: rgba(255,255,255,.02); }

/* ---------- 18. CTA band ------------------------------------------------ */
.cta-band {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid rgba(46,155,255,.3);
  background:
    radial-gradient(900px 380px at 50% -30%, rgba(46,155,255,.22), transparent 65%),
    linear-gradient(180deg, #0c131d, #070a0f);
  padding: clamp(32px, 5vw, 64px);
  overflow: hidden;
  text-align: center;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 200px;
  background: radial-gradient(closest-side, rgba(46,155,255,.28), transparent);
  filter: blur(24px);
  pointer-events: none;
}
.cta-band > * { position: relative; }

.tg-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: 100%;
  padding: 26px 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(17px, 2.6vw, 28px);
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), border-color .25s, background .3s, box-shadow .3s;
}
.tg-cta:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: rgba(46,155,255,.6);
  background: linear-gradient(180deg, rgba(46,155,255,.16), rgba(46,155,255,.04));
  box-shadow: 0 30px 60px -30px var(--glow);
}
.tg-cta__ico { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(46,155,255,.16); border: 1px solid rgba(46,155,255,.4); color: var(--accent-2); }
.tg-cta__ico svg { width: 26px; height: 26px; }
.tg-cta__arr { margin-left: auto; color: var(--accent); transition: transform .25s var(--ease); }
.tg-cta:hover .tg-cta__arr { transform: translateX(8px); }

/* ---------- 19. Footer -------------------------------------------------- */
.footer { border-top: 1px solid var(--line); background: rgba(0,0,0,.45); padding-block: var(--s6) var(--s4); margin-top: var(--s6); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.footer__about { max-width: 38ch; font-size: 14.5px; color: var(--fg-3); }
.footer h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-4); font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 2px; }
.footer li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--fg-3); font-size: 14.5px; transition: color .2s; }
.footer li a:hover { color: var(--fg); text-decoration: none; }
.footer__bottom {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--fg-4);
}
.footer__disc { max-width: 78ch; font-size: 13px; color: var(--fg-4); margin-top: var(--s3); line-height: 1.6; }

/* ---------- 20. Page header (inner pages) ------------------------------- */
.page-head {
  position: relative;
  padding-block: clamp(40px, 6vw, 76px) clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--fg-4); margin-bottom: var(--s2); }
.crumbs a { color: var(--fg-3); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs span { opacity: .5; }
.page-head h1 { font-size: clamp(30px, 5vw, 54px); font-weight: 900; letter-spacing: -.035em; line-height: 1.02; max-width: 22ch; }
.page-head .lead { max-width: 62ch; margin-top: var(--s2); }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s3); }
.toc a {
  padding: 7px 14px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--fg-3);
  font-size: 13.5px;
}
.toc a:hover { color: var(--fg); border-color: rgba(46,155,255,.4); text-decoration: none; background: rgba(46,155,255,.07); }

/* ---------- 21. Misc ---------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg-3);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  border-radius: var(--r-pill);
  padding: 6px 12px;
}
.chip--on { color: var(--accent-2); border-color: rgba(46,155,255,.35); background: rgba(46,155,255,.08); }

.list-check { list-style: none; padding: 0; display: grid; gap: 12px; }
.list-check li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; margin: 0; color: var(--fg-2); font-size: 15px; }
.list-check svg { width: 17px; height: 17px; color: var(--accent); margin-top: 4px; flex-shrink: 0; }
.list-x svg { color: var(--err); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }

.flowline {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 2;
  color: var(--fg-2);
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  padding: var(--s3);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.flowline b { color: var(--accent-2); font-weight: 600; }

.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s2); }

/* ---------- 22. Reveal animations --------------------------------------- */
/* Скрываем только если JS доступен — без него контент виден сразу. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }

/* robot eye glow */
.eye-glow { animation: blink 5.5s ease-in-out infinite; transform-origin: center; }
@keyframes blink {
  0%, 92%, 100% { opacity: 1; }
  95%           { opacity: .28; }
}
.scan { animation: scan 4.5s var(--ease) infinite; }
@keyframes scan {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50%      { opacity: .85; transform: translateY(6px); }
}

/* ---------- 23. Responsive ---------------------------------------------- */
@media (max-width: 1180px) {
  .nav__link { padding: 8px 11px; font-size: 14.5px; }
  .header__note { display: none; }
}

@media (max-width: 1024px) {
  :root { --gutter: 20px; }
  .hero__inner { grid-template-columns: 1fr; gap: var(--s4); }
  .hero__visual { max-width: 420px; margin-inline: auto; }
  .hero__sub { max-width: 56ch; }
  .step { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .step:nth-child(even) .step__body { order: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4) var(--s3); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .burger { display: flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  /* 18 px на телефоне читалось как «текст лежит на краю»: для длинных статей
     нужен воздух по бокам, поэтому поля увеличены */
  :root { --gutter: 22px; --header-h: 64px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero__badge { position: static; margin-top: 12px; animation: none; display: inline-flex; gap: 8px; align-items: center; }
  .hero__badge b { display: inline; }
  .hero__badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
  .hero__visual { max-width: 300px; }
  .hero__actions .btn { width: 100%; }
  .tg-cta { flex-direction: column; text-align: center; gap: 12px; padding: 22px; }
  .tg-cta__arr { margin: 0; transform: rotate(90deg); }
  .tg-cta:hover .tg-cta__arr { transform: rotate(90deg) translateX(6px); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .timeline__row { grid-template-columns: 66px minmax(0, 1fr); gap: 12px; padding: 10px 6px; }
  .kv__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .step__num { font-size: 60px; }
  .switch { width: 100%; }
  .switch button { flex: 1 1 auto; padding: 9px 12px; font-size: 14px; }
  .acc__btn { font-size: 16px; padding: 18px 2px; }
  .section { padding-block: 48px; }
}

@media (max-width: 420px) {
  .display { font-size: 34px; }
  .h-section { font-size: 25px; }
  .plan { padding: var(--s3); }
  .card { padding: 20px; }
}

/* ---------- 24. Motion & contrast preferences --------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

@media (prefers-contrast: more) {
  :root { --fg-3: #cfd7e3; --fg-4: #aab4c2; --line: rgba(255,255,255,.22); }
}

@media print {
  body::before, body::after, .header, .drawer, .footer, .video { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ==========================================================================
   25. Reference alignment — шапка с логотипом, hero-карточка, блоки 01/02/03
   ========================================================================== */

/* ---- логотип ---- */
.logo { gap: 12px; }
.logo__picture { display: block; }
.logo__picture--light { display: none; }
[data-theme="light"] .logo__picture--dark { display: none; }
[data-theme="light"] .logo__picture--light { display: block; }
.logo__img {
  display: block;
  width: auto;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(26, 167, 255, .12));
}
.logo__mark { display: none; }
.footer .logo__img { height: 52px; }

@media (max-width: 720px) {
  .logo__img { height: 38px; }
  .footer .logo__img { height: 46px; }
}

/* ---- кнопка-контур как в референсе ---- */
.btn--wire {
  background: rgba(46, 155, 255, .07);
  color: var(--fg);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 0 0 0 var(--glow);
}
.btn--wire:hover {
  background: rgba(46, 155, 255, .16);
  box-shadow: 0 0 28px -6px var(--glow);
}

.header__cta { margin-left: var(--s3); }
.header__note {
  position: absolute;
  top: calc(var(--header-h) - 12px);
  right: var(--gutter);
  margin: 0;
  font-size: 11.5px;
  color: var(--fg-4);
}
.header__inner { position: relative; }

/* ---- HERO как чёрная карточка ---- */
.hero { padding-block: clamp(20px, 3vw, 34px) clamp(8px, 2vw, 18px); }
.hero-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 26px;
  background:
    radial-gradient(900px 520px at 74% 22%, rgba(46, 155, 255, .16), transparent 62%),
    linear-gradient(180deg, #08090b, #000);
  overflow: hidden;
  isolation: isolate;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 155, 255, .5), transparent);
}
.hero-card__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: var(--s3);
  padding: clamp(28px, 4.4vw, 60px);
  min-height: clamp(420px, 46vw, 600px);
}
.hero-card__body { position: relative; z-index: 2; max-width: 620px; }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.045em;
  line-height: .86;
  font-size: clamp(42px, 7.6vw, 104px);
  margin-bottom: clamp(18px, 2.4vw, 30px);
}
.hero-h1 .blue { color: var(--accent); }

.hero-sub {
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--fg-2);
  max-width: 38ch;
  margin-bottom: clamp(22px, 3vw, 36px);
  line-height: 1.55;
}
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-cta__note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--fg-3);
  white-space: nowrap;
}

.hero-card__robot {
  position: absolute;
  right: clamp(-40px, -1vw, 0px);
  bottom: -2%;
  width: clamp(360px, 47%, 720px);
  z-index: 1;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .8)) drop-shadow(0 0 70px rgba(46, 155, 255, .22));
  animation: floatSoft 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floatSoft {
  0%, 100% { transform: translateY(0) }
  50%      { transform: translateY(-12px) }
}

/* ---- тикер как тонкая техполоса ---- */
.techline {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fg-4);
  overflow: hidden;
}
.techline i { color: var(--accent); font-style: normal; }
.techline__end { margin-left: auto; color: var(--accent); letter-spacing: 0; flex: none; }

/* ---- блоки 01 / 02 / 03 ---- */
.stepcard {
  position: relative;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 26px;
  background: linear-gradient(180deg, #07080a, #000);
  padding: clamp(26px, 3.6vw, 52px);
  overflow: hidden;
}
.stepcard + .stepcard { margin-top: var(--s3); }
.stepcard__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: center;
}
.stepcard__head { display: flex; align-items: flex-start; gap: clamp(16px, 2.4vw, 34px); }
.stepcard__n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 7vw, 92px);
  line-height: .8;
  letter-spacing: -.05em;
  color: #fff;
  flex: none;
}
.stepcard__t {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.03em;
  line-height: .95;
  font-size: clamp(24px, 3.2vw, 42px);
  margin: 0 0 12px;
}
.stepcard__t em { font-style: normal; display: block; color: var(--accent); }
.stepcard__d { font-size: 14.5px; color: var(--fg-3); margin: 0; max-width: 42ch; }

.stepcard__robot {
  position: absolute;
  width: clamp(120px, 15%, 210px);
  opacity: .9;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(46, 155, 255, .25));
}
.stepcard__robot--tr { top: 8%; right: 2%; }
.stepcard__robot--bl { bottom: -6%; left: -3%; transform: scaleX(-1); }
.stepcard__robot--br { bottom: -4%; right: -2%; }

/* ---- таблицы в стиле референса ---- */
.tbl--flat td { border-bottom: 1px solid rgba(255, 255, 255, .05); }
.tbl--flat .st { font-weight: 600; letter-spacing: .04em; font-size: 12px; text-transform: uppercase; }
.st--on  { color: #4aa8ff; }
.st--lim { color: #ff9f2e; }
.st--done{ color: var(--fg-2); }
.tbl__ico { color: var(--accent); display: inline-flex; vertical-align: -4px; margin-right: 10px; }
.tbl__ico .ico { width: 16px; height: 16px; }
.tbl__more { color: var(--fg-4); letter-spacing: 2px; text-align: right; }

.mockhead {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.mockhead__t { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.mockhead__s { font-size: 12px; color: var(--fg-4); }
.mockhead__act { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; }
.mockhead__exp { color: var(--ok); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.mockhead__exp .ico { width: 14px; height: 14px; }
.mockhead__x { color: var(--fg-4); }

/* ---- панель «пример сценария» ---- */
.panel--wire {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(255, 255, 255, .015);
}
.panel__head--amber {
  color: var(--warn);
  border-color: rgba(255, 180, 61, .35);
  background: rgba(255, 180, 61, .07);
}

/* ---- крупная финальная кнопка ---- */
.tg-cta { border-radius: 20px; padding: 24px 30px; }

@media (max-width: 1024px) {
  .hero-card__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-bottom: 0; }
  .hero-card__robot {
    position: static;
    width: min(78%, 420px);
    margin: 18px auto -6px;
    animation: none;
  }
  .hero-sub { max-width: 52ch; }
  .stepcard__grid { grid-template-columns: minmax(0, 1fr); }
  .stepcard__robot { display: none; }
}

@media (max-width: 720px) {
  .hero-card { border-radius: 20px; }
  .hero-card__inner { padding: 24px 20px 0; }
  .stepcard { border-radius: 20px; padding: 24px 20px; }
  .stepcard__head { gap: 14px; }
  .hero-cta { gap: 14px; }
  .hero-cta .btn { flex: 1 1 220px; }
  .header__note { display: none; }
  .techline { letter-spacing: .18em; }
}

/* ---- 26. Правки после визуальной проверки ---- */
.flow__t, .flow__d { display: block; }
.flow__t { margin-bottom: 4px; }

/* контент карточки всегда выше декоративного робота */
.stepcard > *:not(.stepcard__robot) { position: relative; z-index: 1; }
.stepcard__robot { z-index: 0; opacity: .55; }
.stepcard__robot--tr { top: 6%; right: 1%; width: clamp(110px, 13%, 180px); opacity: .75; }
.stepcard__robot--bl { bottom: -14%; left: -5%; width: clamp(110px, 13%, 175px); }
.stepcard__robot--br { bottom: -12%; right: -4%; width: clamp(110px, 13%, 175px); }
@media (max-width: 560px) { .facts .fact:last-child { grid-column: 1 / -1; } }

/* ==========================================================================
   27. Точная сборка под референс: full-bleed hero, иерархия заголовка
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: clamp(430px, 45vw, 640px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 620px at 72% 46%, rgba(46,155,255,.16), transparent 64%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__body { max-width: 620px; padding-block: clamp(32px, 5vw, 68px); }

.hero__robot {
  position: absolute;
  right: clamp(-70px, -2vw, 0px);
  bottom: 0;
  width: clamp(380px, 50vw, 860px);
  z-index: 1;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.85)) drop-shadow(0 0 80px rgba(46,155,255,.26));
  animation: floatSoft 9s ease-in-out infinite;
  pointer-events: none;
}

.hero-h1 { line-height: .82; margin-bottom: clamp(16px, 2vw, 26px); }
.hero-h1 .l1 { display: block; font-size: 1.42em; letter-spacing: -.05em; }
.hero-h1 .l2 { display: block; }

/* тонкая техполоса на всю ширину контейнера */
.techline { border-top: 1px solid var(--line); }

@media (max-width: 1024px) {
  .hero { display: block; min-height: 0; }
  .hero__body { max-width: none; padding-bottom: 8px; }
  .hero__robot {
    position: static;
    width: min(80%, 430px);
    margin: 6px auto -4px;
    animation: none;
  }
}
@media (max-width: 720px) {
  .hero__robot { width: min(88%, 330px); }
  .hero-h1 .l1 { font-size: 1.3em; }
}

/* акцентный последний пункт списка «Запустите сценарий» */
.flow__item--go .flow__ico { color: var(--warn); border-color: rgba(255,180,61,.45); background: rgba(255,180,61,.1); }
.flow__item--go .flow__t { color: var(--warn); }
.flow__item.is-active .flow__ico { color: var(--accent); border-color: rgba(46,155,255,.45); background: rgba(46,155,255,.1); }
.flow__item--go.is-active .flow__ico { color: var(--warn); border-color: rgba(255,180,61,.55); background: rgba(255,180,61,.14); }

/* ---- 28. Заголовок героя не переносится, роботы выглядывают заметнее ---- */
.hero-h1 { text-wrap: nowrap; }
.hero-h1 > span { white-space: nowrap; }
.hero__body { max-width: 700px; }

.stepcard__robot--bl {
  top: 50%; bottom: auto; left: -6%;
  transform: translateY(-50%) scaleX(-1);
  width: clamp(150px, 19%, 260px);
  opacity: .8;
}
.stepcard__robot--br {
  top: 52%; bottom: auto; right: -7%;
  transform: translateY(-50%);
  width: clamp(150px, 19%, 260px);
  opacity: .8;
}
@media (max-width: 720px) { .hero-h1 { text-wrap: initial; } }
@media (max-width: 720px) { .hero-h1 > span { white-space: normal; } }

/* ---- 29. «Карман» под робота слева, чтобы он не наезжал на контент ---- */
@media (min-width: 1025px) {
  .stepcard--bl { padding-left: clamp(60px, 10vw, 150px); }
  .stepcard__robot--bl {
    left: -2.5%;
    width: clamp(120px, 13%, 200px);
    opacity: .85;
  }
}
.stepcard__robot--br {
  top: auto; bottom: -10%; right: -3%;
  transform: none;
  width: clamp(130px, 14%, 200px);
  opacity: .7;
}

/* ==========================================================================
   30. Таблицы: карточный режим вместо горизонтального скролла
   ========================================================================== */

/* аккуратный скроллбар там, где скролл всё-таки нужен (планшет) */
.mock__scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
.mock__scroll::-webkit-scrollbar { height: 8px; }
.mock__scroll::-webkit-scrollbar-track { background: transparent; }
.mock__scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.mock__scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); background-clip: content-box; }

/* подсказка «есть ещё справа» — мягкая тень у правого края блока */
.mock { position: relative; }
.mock::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 54px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.9));
  opacity: 0;
  transition: opacity .3s var(--ease);
  z-index: 2;
}
.mock.has-more::after { opacity: 1; }

@media (max-width: 760px) {
  /* таблица превращается в набор карточек-строк */
  .tbl--stack { min-width: 0 !important; width: 100%; border-collapse: separate; border-spacing: 0; }
  .tbl--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .tbl--stack tr {
    display: block;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.022);
  }
  .tbl--stack tbody tr:hover { background: rgba(46,155,255,.06); }
  .tbl--stack tr:last-child { margin-bottom: 0; }
  .tbl--stack td {
    display: grid;
    grid-template-columns: minmax(74px, 34%) minmax(0, 1fr);
    gap: 10px 14px;
    align-items: baseline;
    padding: 7px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
    white-space: normal;
    font-size: 14.5px;
  }
  .tbl--stack td:last-child { border-bottom: 0; }
  .tbl--stack td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--fg-4);
    line-height: 1.5;
  }
  .tbl--stack td:not([data-label]) { display: none; }
  /* иконка стала бы отдельной ячейкой сетки и ломала строку */
  .tbl--stack .tbl__ico { display: none; }
  .tbl--stack td.tbl--hide-stack, .tbl--stack td.tbl__more { display: none; }
  .tbl--stack tfoot tr { background: rgba(46,155,255,.07); border-color: rgba(46,155,255,.28); }

  /* внутри карточек скролл больше не нужен */
  .mock__scroll { overflow-x: visible; }
  .mock__body { padding: 12px; }
  .mock::after { display: none; }
}

/* длинные слова и ссылки не рвут вёрстку */
p, li, dd, .kv__v, .acc__inner, .mod__desc, .card p { overflow-wrap: break-word; }
td, th { overflow-wrap: break-word; }
.flowline, code { overflow-wrap: anywhere; }

/* ==========================================================================
   31. Анимации робота
   ========================================================================== */
.hero__robot {
  transform-origin: 60% 70%;
  will-change: transform, filter;
  transition: filter .45s var(--ease);
}
/* пульсирующее свечение под роботом */
.hero::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 4%;
  width: clamp(240px, 30vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,155,255,.30), transparent 68%);
  filter: blur(28px);
  animation: pulseGlow 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
@keyframes pulseGlow {
  0%, 100% { opacity: .5;  transform: scale(1); }
  50%      { opacity: .95; transform: scale(1.09); }
}

/* реакция на курсор: подсветка + лёгкий наклон задаётся из JS */
.hero:hover .hero__robot { filter: drop-shadow(0 24px 60px rgba(0,0,0,.85)) drop-shadow(0 0 90px rgba(46,155,255,.5)) brightness(1.06); }

/* «сканирующая» полоса поверх робота */
.hero__scan {
  position: absolute;
  right: clamp(-70px, -2vw, 0px);
  bottom: 0;
  width: clamp(380px, 50vw, 860px);
  aspect-ratio: 829 / 714;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
  mask-image: url("/static/img/robot-mask.png");
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-image: url("/static/img/robot-mask.png");
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
}
.hero__scan::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(120,220,255,.20), transparent);
  animation: scanDown 6.5s var(--ease-out) infinite;
}
@keyframes scanDown {
  0%       { top: -30%; opacity: 0; }
  12%      { opacity: 1; }
  75%      { opacity: 1; }
  85%,100% { top: 110%; opacity: 0; }
}

/* роботы в блоках 01-03 реагируют на наведение карточки */
.stepcard__robot { transition: transform .55s var(--ease-out), opacity .45s var(--ease), filter .45s var(--ease); }
.stepcard:hover .stepcard__robot--tr { transform: translate(-8px, -6px) scale(1.06); opacity: 1; }
.stepcard:hover .stepcard__robot--bl { transform: translateY(-50%) scaleX(-1) translateX(-10px); opacity: 1; }
.stepcard:hover .stepcard__robot--br { transform: translate(-10px, -8px) scale(1.05); opacity: .95; }
.stepcard:hover .stepcard__robot { filter: drop-shadow(0 0 46px rgba(46,155,255,.45)); }

@media (max-width: 1024px) {
  .hero::after { right: 50%; transform: translateX(50%); bottom: 2%; }
  .hero__scan { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero__scan::before { animation: none; }
  .hero__scan { display: none; }
}

/* ---- 32. Мелкая адаптивная доводка ---- */
@media (max-width: 600px) {
  .mockhead { flex-wrap: wrap; gap: 10px 12px; padding: 14px 16px; }
  .mockhead__act { margin-left: 0; width: 100%; justify-content: space-between; }
  .mockhead__exp { white-space: nowrap; }
  .mockhead__s { display: block; margin-top: 2px; }
}
@media (max-width: 520px) {
  .switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 16px; }
  .switch button { border-radius: 12px; }
  .plan__price { font-size: clamp(30px, 11vw, 44px); }
  .tg-cta { font-size: 17px; }
  .stepcard__n { font-size: 46px; }
  .page-head h1 { font-size: clamp(26px, 8vw, 34px); }
  /* Заголовок статьи базы знаний длиннее лендингового: на телефоне он занимал
     четыре строки и выталкивал начало текста за экран. */
  .section--article-head .page-head h1,
  body:has(.invite-guide) .page-head h1 { font-size: clamp(25px, 6.6vw, 30px); line-height: 1.1; }
}

/* ---- 33. Индикатор прочитанного ---- */
.progressline {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--glow);
  transition: width .12s linear, opacity .3s;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .progressline { display: none; } }

/* ==========================================================================
   34. Блоки выгод на главной
   ========================================================================== */
.stepcard__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.gain {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(46,155,255,.28);
  background: linear-gradient(120deg, rgba(46,155,255,.14), rgba(46,155,255,.03));
  font-family: var(--font-display);
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: var(--fg);
}
.gain .ico { color: var(--accent-2); margin-top: 2px; }

.statrow { display: flex; flex-wrap: wrap; gap: 10px; }
.statrow__i {
  flex: 1 1 90px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  text-align: center;
}
.statrow__i b {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
}
.statrow__i em { font-style: normal; font-size: 11.5px; color: var(--fg-4); }

.chatlist { display: grid; gap: 8px; }
.chatlist__i {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  font-size: 14px;
}
.chatlist__i .st { font-size: 11px; white-space: nowrap; }

.msg {
  padding: 12px 15px;
  border-radius: 14px 14px 14px 4px;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  margin-bottom: 10px;
  max-width: 92%;
}
.msg--out {
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  background: rgba(46,155,255,.13);
  border-color: rgba(46,155,255,.3);
}
.msg__who { display: block; font-size: 11px; color: var(--fg-4); margin-bottom: 5px; }
.msg__t { display: block; font-size: 14.5px; line-height: 1.45; color: var(--fg-2); }
.msg mark { background: rgba(46,155,255,.28); color: #fff; padding: 1px 3px; border-radius: 3px; }

.mock__foot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 0 0;
  font-size: 12.5px;
  color: var(--fg-4);
}
.mock__foot .ico { width: 15px; height: 15px; color: var(--ok); }

@media (max-width: 720px) {
  .gain { font-size: 16px; padding: 13px 15px; }
  .statrow__i b { font-size: 19px; }
}

/* компактные таблицы внутри карточек функций не должны требовать скролла */
.stepcard .tbl { min-width: 0; }
.stepcard .mock__scroll { overflow-x: auto; }

/* ==========================================================================
   36. Продающие блоки: микро-выгоды, сегменты, было/стало, калькулятор
   ========================================================================== */
.hero-perks {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-3);
}
.hero-perks .ico { width: 15px; height: 15px; color: var(--accent); }

/* --- сегменты --- */
.segs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.seg {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.seg:hover { transform: translateY(-4px); border-color: rgba(46,155,255,.4); background: rgba(46,155,255,.06); }
.seg__ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(46,155,255,.12);
  border: 1px solid rgba(46,155,255,.26);
  color: var(--accent-2);
}
.seg__ico .ico { width: 22px; height: 22px; }
.seg__t { font-size: 17px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 0; }
.seg__d { font-size: 14.5px; color: var(--fg-3); margin: 0; flex: 1; line-height: 1.5; }
.seg__tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  border: 1px solid rgba(46,155,255,.3);
  background: rgba(46,155,255,.08);
  border-radius: 6px;
  padding: 4px 9px;
}

/* --- было / стало --- */
.ba { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.ba__col {
  padding: 30px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.ba__col--new {
  border-color: rgba(46,155,255,.35);
  background:
    radial-gradient(560px 240px at 70% -20%, rgba(46,155,255,.15), transparent 62%),
    rgba(46,155,255,.04);
}
.ba__t {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 20px;
  color: var(--fg-4);
}
.ba__col--new .ba__t { color: var(--accent-2); }
.ba__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ba__list li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; margin: 0; font-size: 15px; line-height: 1.5; }
.ba__col--old li { color: var(--fg-4); }
.ba__col--old .ico { color: var(--err); opacity: .8; }
.ba__col--new li { color: var(--fg-2); }
.ba__col--new .ico { color: var(--ok); }
.ba__list .ico { width: 17px; height: 17px; margin-top: 3px; }

/* --- калькулятор --- */
.calc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(46,155,255,.28);
  background:
    radial-gradient(700px 340px at 78% 10%, rgba(46,155,255,.16), transparent 62%),
    linear-gradient(180deg, #080a0e, #000);
}
.calc__row { display: block; margin-bottom: 22px; }
.calc__label { display: block; font-size: 14.5px; color: var(--fg-3); margin-bottom: 10px; }
.calc__label b { color: var(--fg); font-size: 17px; margin-left: 6px; }
.calc__range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
  outline: none;
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(180deg, #6fc4ff, var(--accent));
  border: 2px solid #061019;
  box-shadow: 0 4px 16px -4px var(--glow);
  cursor: pointer;
}
.calc__range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #061019;
  cursor: pointer;
}
.calc__note { font-size: 12.5px; color: var(--fg-4); margin: 0; }
.calc__out { text-align: center; }
.calc__big { margin-bottom: 18px; }
.calc__big b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 46px var(--glow);
}
.calc__big em { font-style: normal; font-size: 13.5px; color: var(--fg-3); }
.calc__big--sub b { font-size: clamp(24px, 3.4vw, 34px); color: var(--fg); text-shadow: none; }
.calc__out .btn { margin-top: 8px; }

/* --- сомнения --- */
.doubt {
  padding: 28px 26px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  transition: border-color .3s, background .3s;
}
.doubt:hover { border-color: rgba(46,155,255,.35); background: rgba(46,155,255,.04); }
.doubt__q { font-size: 18px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; color: var(--fg); }
.doubt__a { margin: 0; color: var(--fg-3); font-size: 15px; line-height: 1.6; }

@media (max-width: 1024px) {
  .segs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc__out { text-align: left; }
}
@media (max-width: 720px) {
  .segs { grid-template-columns: minmax(0, 1fr); }
  .ba { grid-template-columns: minmax(0, 1fr); }
  .hero-perks { gap: 8px 16px; }
  .hero-perks li { font-size: 12.5px; }
}
.calc .h-section { font-size: clamp(24px, 3vw, 38px); }

/* --- коммерческий маршрут ключевых модулей --- */
.outcome-card { min-height: 100%; }
.outcome-card__tag,
.commercial-route .card__meta {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.outcome-card .mod__go { margin-top: auto; padding-top: 22px; }
.commercial-route { position: relative; }
.commercial-route__grid { align-items: stretch; }
.commercial-route .card { min-height: 100%; }
.commercial-route .card--accent {
  border-color: rgba(46,155,255,.46);
  background:
    radial-gradient(520px 220px at 50% -20%, rgba(46,155,255,.18), transparent 68%),
    rgba(46,155,255,.045);
}
.route-strip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(46,155,255,.3);
  border-radius: var(--r);
  background: rgba(46,155,255,.045);
}
.route-strip span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  white-space: nowrap;
}
.route-strip b { font-size: 14px; line-height: 1.55; color: var(--fg-2); }

@media (max-width: 720px) {
  .route-strip { grid-template-columns: 1fr; gap: 8px; }
  .commercial-route .section-head { margin-bottom: 26px; }
}

/* ========================================================================
   38. Day / night theme and language controls
   ======================================================================== */
[data-theme="light"] body::after {
  opacity: .5;
  background-image:
    linear-gradient(rgba(18, 72, 116, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 72, 116, .045) 1px, transparent 1px);
}
.preferences {
  display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto;
  padding: 4px; border: 1px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.preference-btn {
  width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center;
  border: 0; border-radius: 7px; color: var(--fg-2); background: transparent;
  font: 800 11px/1 var(--font-mono); letter-spacing: .05em; cursor: pointer;
  transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease);
}
.preference-btn:hover { color: var(--fg); background: var(--surface-3); text-decoration: none; }
.preference-btn:active { transform: scale(.94); }
.preference-btn .ico { width: 17px; height: 17px; }
.theme-icon { display: none; }
[data-theme="light"] .theme-icon--moon,
[data-theme="dark"] .theme-icon--sun { display: inline-flex; }

[data-theme="light"] .header { background: rgba(244, 248, 252, .78); }
[data-theme="light"] .header.is-stuck { background: rgba(250, 252, 255, .94); }
[data-theme="light"] .drawer { background: rgba(248, 251, 255, .98); }
[data-theme="light"] .mega { background: rgba(255,255,255,.98); box-shadow: 0 32px 70px -32px rgba(18,58,92,.35); }
.mega--compact { width: min(620px, 80vw); }
.mega--compact .mega__col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 18px; }
.mega--compact .mega__col h4 { grid-column: 1 / -1; }
[data-theme="light"] .footer { background: rgba(225,237,247,.72); }

[data-theme="light"] .hero-card {
  border-color: rgba(7,28,50,.12);
  background: radial-gradient(900px 520px at 74% 22%, rgba(46,155,255,.22), transparent 62%), linear-gradient(180deg,#fff,#edf5fb);
  box-shadow: 0 30px 80px -55px rgba(7,38,68,.45);
}
[data-theme="light"] .stepcard {
  border-color: rgba(7,28,50,.12); background: linear-gradient(180deg,#fff,#edf5fb);
  box-shadow: 0 24px 70px -58px rgba(7,38,68,.5);
}
[data-theme="light"] .stepcard__n { color: #0b2943; }
[data-theme="light"] .calc {
  background: radial-gradient(700px 340px at 78% 10%, rgba(46,155,255,.18), transparent 62%), linear-gradient(180deg,#fff,#edf5fb);
}
[data-theme="light"] .card,
[data-theme="light"] .mod,
[data-theme="light"] .mock,
[data-theme="light"] .panel,
[data-theme="light"] .addon,
[data-theme="light"] .doubt,
[data-theme="light"] .ba__col,
[data-theme="light"] .cta-band { box-shadow: 0 22px 56px -48px rgba(7,38,68,.48); }
[data-theme="light"] .mock,
[data-theme="light"] .panel--wire { background: rgba(255,255,255,.88); }
[data-theme="light"] .nav__link:hover,
[data-theme="light"] .burger,
[data-theme="light"] .btn--ghost,
[data-theme="light"] .badge--idle { background: rgba(8,52,90,.055); }
[data-theme="light"] .hero {
  background: linear-gradient(90deg, transparent 0 52%, #06111d 52% 100%);
}
[data-theme="light"] .hero::before {
  background: radial-gradient(900px 620px at 72% 46%, rgba(46,155,255,.28), transparent 64%);
}
[data-theme="light"] .hero__robot,
[data-theme="light"] .hero-card__robot {
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.85)) drop-shadow(0 0 80px rgba(46,155,255,.26));
  opacity: 1 !important; visibility: visible !important; z-index: 1;
}
[data-theme="light"] .hero__body { position: relative; z-index: 4; }
[data-theme="light"] .logo {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
[data-theme="light"] .footer .logo { width: max-content; }

@media (max-width: 1180px) {
  .header__note { display: none; }
  .header__cta { margin-left: 4px; }
}
@media (max-width: 900px) {
  .preferences { margin-left: auto; }
  .burger { margin-left: 0; }
  [data-theme="light"] .hero { background: transparent; }
  [data-theme="light"] .hero > picture {
    display: block;
    background: radial-gradient(440px 330px at 50% 35%, rgba(46,155,255,.24), transparent 68%), #06111d;
  }
}
@media (max-width: 420px) {
  .header__inner { gap: 8px; }
  .preferences { gap: 2px; padding: 3px; }
  .preference-btn { width: 31px; height: 31px; }
  .burger { width: 40px; height: 40px; }
}

/* ========================================================================
   39. Homepage sales hierarchy, section dashboard and Telegram CTAs
   ======================================================================== */
.tg-logo {
  width: 1.45em;
  height: 1.45em;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
}
.btn--telegram {
  color: #fff;
  background: #229ed9;
  border-color: #229ed9;
  box-shadow: 0 12px 30px -18px rgba(34,158,217,.9);
}
.btn--telegram:hover {
  color: #fff;
  background: #1b8fc7;
  border-color: #1b8fc7;
  box-shadow: 0 16px 34px -18px rgba(34,158,217,1);
}
.btn--telegram .tg-logo { width: 22px; height: 22px; }
.tg-cta__ico .tg-logo { width: 34px; height: 34px; }

.home-rail-wrap {
  position: sticky;
  top: calc(var(--header-h) + 10px);
  z-index: 88;
  height: 0;
  pointer-events: none;
}
.home-rail {
  position: relative;
  transform: translateY(12px);
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 10px 16px 12px;
  overflow: hidden;
  pointer-events: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 18px 48px -34px rgba(0,0,0,.65);
  backdrop-filter: blur(18px) saturate(130%);
}
.home-rail__current {
  min-width: 110px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  color: var(--fg);
}
.home-rail__links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.home-rail__links::-webkit-scrollbar { display: none; }
.home-rail__links a {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--fg-3);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.home-rail__links a:hover,
.home-rail__links a[aria-current] { color: var(--fg); background: var(--surface-3); }
.home-rail__links a[aria-current] { color: var(--accent-deep); }
.home-rail__progress {
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--line);
}
.home-rail__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-2));
  transition: width .12s linear;
}
[data-home-section] { scroll-margin-top: calc(var(--header-h) + 98px); }

.home-page .eyebrow--strong,
.home-page #how-start .eyebrow {
  font-size: clamp(13px, 1.15vw, 16px);
  letter-spacing: .16em;
  margin-bottom: 15px;
}
.home-page .stepcard__head { align-items: center; }
.home-page .stepcard__kicker {
  margin: 0 0 13px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 29px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .055em;
  color: var(--accent);
}
.home-page .stepcard__n {
  min-width: .72em;
  font-size: clamp(58px, 7.5vw, 102px);
}
.home-step-number {
  margin-bottom: 12px;
  font-size: 38px;
  line-height: .9;
}
.home-page #how-start .card__icon {
  width: 54px;
  height: 54px;
  border-color: rgba(46,155,255,.38);
  background: linear-gradient(145deg, rgba(46,155,255,.18), rgba(46,155,255,.04));
}
.home-page #how-start .card__icon .ico,
.home-page #how-start .card__icon .tg-logo { width: 26px; height: 26px; }

.home-more .mod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-more .mod__ico {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(46,155,255,.28);
  border-radius: 12px;
  background: rgba(46,155,255,.08);
}
.home-more .mod__ico .ico { width: 21px; height: 21px; }

.home-doubts .grid { align-items: stretch; }
.home-doubts .doubt {
  position: relative;
  min-height: 230px;
  padding: 30px 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(46,155,255,.075), rgba(255,255,255,.012) 58%);
}
.doubt__ico {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border: 1px solid rgba(46,155,255,.35);
  border-radius: 13px;
  color: var(--accent);
  background: rgba(46,155,255,.09);
}
.doubt__ico .ico { width: 22px; height: 22px; }
.doubt__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  color: color-mix(in srgb, var(--fg) 8%, transparent);
}
.doubt__q { max-width: 82%; font-size: clamp(20px, 2vw, 25px); line-height: 1.08; }
.doubt__a { max-width: 56ch; font-size: 15.5px; }

.trial-accent { color: var(--accent); }
.plan__price--trial small {
  display: inline-flex;
  padding: 7px 11px;
  margin-left: 8px;
  border: 1px solid rgba(255,180,61,.46);
  border-radius: 999px;
  color: #9c5700;
  background: rgba(255,180,61,.14);
  font-size: 13px;
  font-weight: 850;
  vertical-align: middle;
}
[data-theme="dark"] .plan__price--trial small { color: #ffd085; }

/* Light mode: maintain contrast for tiny labels and dark mock dashboards. */
[data-theme="light"] .home-page .stepcard__kicker,
[data-theme="light"] .home-page .eyebrow,
[data-theme="light"] .outcome-card__tag,
[data-theme="light"] .seg__tag,
[data-theme="light"] .mod__go { color: #0757ad; }
[data-theme="light"] .home-rail { background: rgba(255,255,255,.94); box-shadow: 0 18px 42px -28px rgba(7,38,68,.42); }
[data-theme="light"] .home-doubts .doubt { background: linear-gradient(145deg, rgba(46,155,255,.11), #fff 64%); }
[data-theme="light"] .mock__bar { background: #e8f2fb; }
[data-theme="light"] .mock__name { color: #071525; }
[data-theme="light"] .mock__tag { color: #184d7d; }
[data-theme="light"] .statrow__i { background: #edf5fb; text-shadow: none; }
[data-theme="light"] .msg { background: #edf5fb; }
[data-theme="light"] .msg--out { background: #e4f4ff; }
[data-theme="light"] .tbl--flat td { border-bottom-color: rgba(7,28,50,.09); }
[data-theme="light"] .plan--hi .plan__name { color: #0757ad; }

@media (max-width: 1024px) {
  .home-more .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-rail__current { min-width: 90px; }
}
@media (max-width: 720px) {
  .home-rail-wrap { top: calc(var(--header-h) + 6px); padding-inline: 8px; }
  .home-rail { min-height: 49px; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 7px 9px 10px; border-radius: 11px; }
  .home-rail__current { min-width: 0; max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .home-rail__links a { padding: 7px 8px; font-size: 11px; }
  .home-page .stepcard__head { align-items: flex-start; }
  .home-page .stepcard__kicker { font-size: clamp(18px, 6.4vw, 24px); letter-spacing: .035em; }
  .home-page .stepcard__n { font-size: clamp(48px, 16vw, 66px); }
  .home-more .mod-grid { grid-template-columns: minmax(0, 1fr); }
  .home-doubts .doubt { min-height: 0; padding: 24px 22px; }
  .doubt__num { top: 18px; right: 20px; font-size: 44px; }
  .plan__price--trial small { display: flex; width: max-content; margin: 10px 0 0; }
}
@media (max-width: 390px) {
  .home-rail__current { display: none; }
  .home-rail { grid-template-columns: minmax(0, 1fr); }
  .home-page .stepcard__head { gap: 10px; }
  .home-page .stepcard__n { font-size: 46px; }
  .home-page .stepcard__kicker { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-rail__progress i { transition: none; }
}

/* ========================================================================
   40. Light-theme reconstruction — contrast, composition and controls
   ======================================================================== */
[data-theme="light"] body::before {
  background:
    radial-gradient(760px 520px at 82% -8%, rgba(20,156,229,.13), transparent 64%),
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 100%);
}
[data-theme="light"] body::after {
  opacity: .72;
  background-image:
    linear-gradient(rgba(12, 42, 66, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 42, 66, .055) 1px, transparent 1px);
}

/* One continuous scene: the mascot remains a transparent asset, not a dark tile. */
[data-theme="light"] .hero {
  isolation: isolate;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 42% 94% at 80% 54%, rgba(22,145,209,.24) 0%, rgba(44,174,231,.10) 46%, transparent 74%),
    linear-gradient(108deg, #f8f9fb 0%, #f1f4f6 51%, #e5edf2 100%);
}
[data-theme="light"] .hero::before {
  z-index: -1;
  opacity: 1;
  background: radial-gradient(560px 420px at 80% 48%, rgba(12,80,118,.19), transparent 68%);
}
[data-theme="light"] .hero__robot {
  right: clamp(26px, 4.2vw, 86px);
  bottom: -2%;
  width: clamp(390px, 42vw, 720px);
  max-height: 96%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 30px 40px rgba(5,27,43,.24))
    drop-shadow(0 0 32px rgba(16,160,226,.26));
}
[data-theme="light"] .hero__scan { opacity: .24; }
[data-theme="light"] .hero-h1 .blue { color: #078ed4; }
[data-theme="light"] .hero-perks li { color: #3f5264; }

/* A proper labelled segmented control instead of two tiny detached squares. */
.preferences {
  min-height: 44px;
  gap: 0;
  padding: 4px;
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 10px 28px -24px rgba(0,0,0,.72);
}
.preferences__divider {
  width: 1px;
  height: 22px;
  background: var(--line-strong);
}
.preference-btn {
  width: auto;
  min-width: 76px;
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  font-size: 11px;
  letter-spacing: .035em;
}
.preference-btn .ico { width: 18px; height: 18px; }
.preference-btn__label,
.preference-btn__current { font-weight: 850; }
.preference-btn__swap { color: var(--accent); font-size: 13px; }
.preference-btn--language { min-width: 84px; }
[data-theme="light"] .preferences {
  border-color: rgba(8,24,39,.2);
  background: rgba(255,255,255,.92);
  box-shadow: 0 12px 28px -22px rgba(8,24,39,.48);
}
[data-theme="light"] .preference-btn:hover { background: #e7edf2; }

/* Home dashboard navigation is deliberately readable at a glance. */
.home-rail {
  min-height: 64px;
  gap: 22px;
  padding: 12px 18px 15px;
}
.home-rail__current {
  min-width: 126px;
  font-size: 15px;
  letter-spacing: .065em;
}
.home-rail__links { gap: 6px; }
.home-rail__links a {
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1;
  font-weight: 800;
}
[data-theme="light"] .home-rail {
  border-color: rgba(8,24,39,.24);
  background: rgba(255,255,255,.97);
  box-shadow: 0 20px 44px -30px rgba(8,24,39,.48);
}
[data-theme="light"] .home-rail__links a[aria-current] {
  color: #075da3;
  background: #e2edf5;
}

/* Strong micro-headings: readable in Cyrillic and on narrow screens. */
.home-page .eyebrow,
.home-page .eyebrow--strong,
.home-page #how-start .eyebrow {
  margin-bottom: 17px;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.35;
  letter-spacing: .105em;
  font-weight: 850;
}

/* Coherent product-glyph system: larger source icons, solid contrast and depth. */
.home-page .card__icon,
.home-page .seg__ico,
.home-page .mod__ico,
.home-page .doubt__ico {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(49,190,244,.52);
  color: #83e4ff;
  background:
    radial-gradient(circle at 72% 20%, rgba(103,224,255,.38), transparent 34%),
    linear-gradient(145deg, #123a57, #071a2a 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 16px 28px -22px rgba(4,83,127,.9);
}
.home-page .card__icon::after,
.home-page .seg__ico::after,
.home-page .mod__ico::after,
.home-page .doubt__ico::after {
  content: "";
  position: absolute;
  inset: auto -14% -42% 24%;
  height: 70%;
  z-index: -1;
  border-radius: 50%;
  background: rgba(31,178,239,.22);
  filter: blur(8px);
}
.home-page .outcome-card .card__icon,
.home-page .seg__ico {
  width: 58px;
  height: 58px;
  border-radius: 17px;
}
.home-page .outcome-card .card__icon .ico,
.home-page .seg__ico .ico { width: 29px; height: 29px; stroke-width: 1.9; }
.home-page .home-more .mod__ico {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}
.home-page .home-more .mod__ico .ico { width: 25px; height: 25px; stroke-width: 1.9; }
[data-theme="light"] .home-page .card,
[data-theme="light"] .home-page .seg,
[data-theme="light"] .home-page .mod,
[data-theme="light"] .home-page .doubt {
  border-color: rgba(8,24,39,.16);
  background: linear-gradient(150deg, #fff, #f2f4f6 78%);
  box-shadow: 0 20px 48px -40px rgba(8,24,39,.46);
}
[data-theme="light"] .home-page .card:hover,
[data-theme="light"] .home-page .seg:hover,
[data-theme="light"] .home-page .mod:hover {
  border-color: rgba(9,103,180,.46);
  background: #fff;
}

/* Day mode keeps the final CTA in the same light visual system as the page. */
[data-theme="light"] .cta-band {
  border-color: rgba(8,98,156,.24);
  background:
    radial-gradient(680px 260px at 50% -32%, rgba(31,169,224,.18), transparent 68%),
    linear-gradient(145deg, #ffffff, #f1f4f6 72%, #edf1f4);
  box-shadow:
    0 30px 68px -46px rgba(7,43,66,.38),
    inset 0 1px 0 rgba(255,255,255,.96);
}
[data-theme="light"] .cta-band::after {
  background: radial-gradient(closest-side, rgba(25,162,220,.14), transparent);
  filter: blur(30px);
}
[data-theme="light"] .cta-band .h-section { color: #071624; }
[data-theme="light"] .cta-band .lead { color: #435668; }
[data-theme="light"] .cta-band .btn--outline {
  color: #0a2b42;
  border-color: rgba(7,49,78,.28);
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 28px -24px rgba(7,49,78,.48);
}
[data-theme="light"] .cta-band .btn--outline:hover {
  border-color: rgba(5,117,180,.62);
  color: #075f98;
  background: #fff;
  box-shadow: 0 16px 30px -24px rgba(7,95,152,.58);
}

@media (max-width: 1024px) {
  [data-theme="light"] .hero {
    background:
      radial-gradient(ellipse 62% 42% at 50% 92%, rgba(22,145,209,.23), transparent 72%),
      linear-gradient(180deg, #f8f9fb, #e8eef2);
  }
  [data-theme="light"] .hero::before { background: none; }
  [data-theme="light"] .hero > picture { background: transparent; }
  [data-theme="light"] .hero__robot {
    width: min(72%, 440px);
    max-height: none;
    margin: 14px auto -5px;
    object-position: center;
  }
}

@media (max-width: 720px) {
  .home-rail-wrap { padding-inline: 10px; }
  .home-rail {
    min-height: 56px;
    gap: 10px;
    padding: 8px 10px 12px;
  }
  .home-rail__current { max-width: 96px; font-size: 12px; }
  .home-rail__links a { padding: 9px 10px; font-size: 12.5px; }
  .home-page .eyebrow,
  .home-page .eyebrow--strong,
  .home-page #how-start .eyebrow {
    font-size: 13.5px;
    letter-spacing: .085em;
    line-height: 1.4;
  }
  [data-theme="light"] .hero__robot {
    width: min(86%, 350px);
    margin: 18px auto -2px;
  }
  [data-theme="light"] .cta-band { padding: 30px 20px; }
  [data-theme="light"] .cta-band .cluster { display: grid; }
  [data-theme="light"] .cta-band .btn { width: 100%; }
}

@media (max-width: 480px) {
  .preferences { min-height: 40px; padding: 3px; }
  .preference-btn { min-width: 62px; height: 34px; padding-inline: 8px; gap: 5px; font-size: 10.5px; }
  .preference-btn--language { min-width: 68px; }
  .preference-btn .ico { width: 16px; height: 16px; }
  .home-rail__current { display: none; }
  .home-rail { grid-template-columns: minmax(0, 1fr); }
  [data-theme="light"] .hero__robot { width: min(92%, 340px); }
}

/* ========================================================================
   41. Numbered-card hover states
   ======================================================================== */
.home-page #how-start .card,
.home-page .home-doubts .doubt {
  transition:
    transform .3s var(--ease-out),
    border-color .3s var(--ease),
    background .3s var(--ease),
    box-shadow .3s var(--ease);
}
.home-page #how-start .home-step-number,
.home-page .home-doubts .doubt__num {
  transition:
    color .28s var(--ease),
    -webkit-text-stroke-color .28s var(--ease),
    text-shadow .28s var(--ease),
    transform .3s var(--ease-out);
}
[data-theme="light"] .home-page #how-start .home-step-number {
  -webkit-text-stroke-color: rgba(7,36,59,.3);
}
[data-theme="light"] .home-page .home-doubts .doubt__num {
  color: rgba(7,36,59,.13);
}

@media (hover: hover) and (pointer: fine) {
  .home-page #how-start .card:hover,
  .home-page .home-doubts .doubt:hover {
    transform: translateY(-7px);
    border-color: rgba(76,211,255,.68);
    background:
      radial-gradient(460px 220px at 14% 0%, rgba(43,184,242,.16), transparent 62%),
      linear-gradient(150deg, rgba(17,52,76,.72), rgba(5,13,22,.96) 70%);
    box-shadow:
      0 30px 60px -38px rgba(19,163,224,.78),
      inset 0 1px 0 rgba(125,229,255,.11);
  }
  .home-page #how-start .card:hover .home-step-number,
  .home-page .home-doubts .doubt:hover .doubt__num {
    color: #65dcff;
    -webkit-text-stroke-color: #65dcff;
    text-shadow: 0 0 12px rgba(71,207,255,.72), 0 0 32px rgba(24,161,221,.48);
    transform: translateY(-2px) scale(1.04);
  }
  .home-page #how-start .card:hover .card__icon,
  .home-page .home-doubts .doubt:hover .doubt__ico {
    border-color: rgba(112,226,255,.82);
    color: #b5f1ff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 24px -8px rgba(38,190,247,.85);
  }

  [data-theme="light"] .home-page #how-start .card:hover,
  [data-theme="light"] .home-page .home-doubts .doubt:hover {
    border-color: rgba(8,124,190,.56);
    background:
      radial-gradient(460px 220px at 14% 0%, rgba(34,174,230,.18), transparent 62%),
      linear-gradient(150deg, #ffffff, #e9f1f5 76%);
    box-shadow:
      0 28px 56px -36px rgba(3,81,126,.52),
      inset 0 1px 0 #fff;
  }
  [data-theme="light"] .home-page #how-start .card:hover .home-step-number,
  [data-theme="light"] .home-page .home-doubts .doubt:hover .doubt__num {
    color: #087ebd;
    -webkit-text-stroke-color: #087ebd;
    text-shadow: 0 0 14px rgba(40,186,238,.34), 0 0 30px rgba(40,186,238,.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page #how-start .card,
  .home-page .home-doubts .doubt,
  .home-page #how-start .home-step-number,
  .home-page .home-doubts .doubt__num { transition: none; }
  .home-page #how-start .card:hover,
  .home-page .home-doubts .doubt:hover { transform: none; }
}

/* ========================================================================
   42. Render-style line icons and consistent step-number placement
   ======================================================================== */
.home-page .card__icon,
.home-page .seg__ico,
.home-page .mod__ico,
.home-page .doubt__ico,
.home-page .outcome-card .card__icon,
.home-page .home-more .mod__ico,
.home-page #how-start .card__icon {
  width: 58px;
  height: 58px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #f4fbff;
  background: transparent;
  box-shadow: none;
  filter: none;
  transition: color .28s var(--ease), filter .28s var(--ease), transform .28s var(--ease-out);
}
.home-page .card__icon::after,
.home-page .seg__ico::after,
.home-page .mod__ico::after,
.home-page .doubt__ico::after { content: none; }
.home-page .card__icon .ico,
.home-page .seg__ico .ico,
.home-page .mod__ico .ico,
.home-page .doubt__ico .ico,
.home-page .outcome-card .card__icon .ico,
.home-page .home-more .mod__ico .ico,
.home-page #how-start .card__icon .ico {
  width: 42px;
  height: 42px;
  stroke-width: 1.75;
}
.home-page #how-start .card__icon .tg-logo {
  width: 38px;
  height: 38px;
}
[data-theme="light"] .home-page .card__icon,
[data-theme="light"] .home-page .seg__ico,
[data-theme="light"] .home-page .mod__ico,
[data-theme="light"] .home-page .doubt__ico { color: #07121f; }

.home-page #how-start .card { position: relative; }
.home-page #how-start .home-step-number {
  position: absolute;
  top: 22px;
  right: 24px;
  margin: 0;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .card:hover .card__icon,
  .home-page .seg:hover .seg__ico,
  .home-page .mod:hover .mod__ico,
  .home-page .doubt:hover .doubt__ico {
    color: #65dcff;
    border: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 0 7px rgba(71,207,255,.72)) drop-shadow(0 0 18px rgba(24,161,221,.42));
    transform: translateY(-2px) scale(1.04);
  }
  [data-theme="light"] .home-page .card:hover .card__icon,
  [data-theme="light"] .home-page .seg:hover .seg__ico,
  [data-theme="light"] .home-page .mod:hover .mod__ico,
  [data-theme="light"] .home-page .doubt:hover .doubt__ico {
    color: #087ebd;
    filter: drop-shadow(0 0 8px rgba(40,186,238,.38)) drop-shadow(0 0 18px rgba(40,186,238,.2));
  }
}

@media (max-width: 720px) {
  .home-page #how-start .home-step-number {
    top: 20px;
    right: 22px;
    font-size: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .card__icon,
  .home-page .seg__ico,
  .home-page .mod__ico,
  .home-page .doubt__ico { transition: none; }
  .home-page .card:hover .card__icon,
  .home-page .seg:hover .seg__ico,
  .home-page .mod:hover .mod__ico,
  .home-page .doubt:hover .doubt__ico { transform: none; }
}

/* ========================================================================
   43. Precision polish: preferences, step glyphs and home rail
   ======================================================================== */
/* Theme and language are lightweight icon actions, not one bulky pill. */
.preferences {
  min-height: 44px;
  gap: 14px;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.preferences__divider { display: none; }
.preference-btn {
  position: relative;
  min-width: 0;
  height: 42px;
  padding: 0 4px;
  gap: 8px;
  border-radius: 0;
  color: var(--fg-2);
  background: transparent;
  box-shadow: none;
  transition: color .24s var(--ease), filter .24s var(--ease), transform .24s var(--ease-out);
}
.preference-btn--language { min-width: 0; }
.preference-btn::after {
  content: "";
  position: absolute;
  right: 4px;
  bottom: 1px;
  left: 4px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform .24s var(--ease-out), opacity .24s var(--ease);
}
.preference-btn .ico,
.preference-btn__icon .ico {
  width: 23px;
  height: 23px;
  stroke-width: 1.75;
  transition: color .24s var(--ease), filter .24s var(--ease), transform .24s var(--ease-out);
}
.preference-btn__icon { display: inline-flex; }
.preference-btn__label,
.preference-btn__current { font-weight: 900; }
.preference-btn__swap { color: currentColor; opacity: .62; }
[data-theme="light"] .preferences,
[data-theme="light"] .preference-btn,
[data-theme="light"] .preference-btn:hover { background: transparent; box-shadow: none; }

/* Keep every step glyph on one baseline and remove all legacy tile styling. */
.home-page #how-start .card__icon,
.home-page #how-start .card:hover .card__icon,
[data-theme="light"] .home-page #how-start .card__icon,
[data-theme="light"] .home-page #how-start .card:hover .card__icon {
  width: 50px;
  height: 50px;
  margin: 0 0 26px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.home-page #how-start .card__icon::before,
.home-page #how-start .card__icon::after { content: none; }
.home-page #how-start .card__icon .ico {
  width: 36px;
  height: 36px;
  stroke-width: 1.75;
}
.home-page #how-start .card__icon .tg-logo {
  width: 34px;
  height: 34px;
}
[data-theme="light"] .home-page #how-start .card__icon,
[data-theme="light"] .home-page #how-start .card:hover .card__icon {
  color: #07121f;
  filter: none;
}

/* Navigation uses the same blue illumination language as numbered cards. */
.home-rail__links a {
  position: relative;
  border: 1px solid transparent;
  transition: color .24s var(--ease), border-color .24s var(--ease), background .24s var(--ease), box-shadow .24s var(--ease), transform .24s var(--ease-out);
}
.home-rail__links a:hover,
.home-rail__links a[aria-current] {
  color: #65dcff;
  border-color: rgba(101,220,255,.36);
  background: rgba(44,176,232,.1);
  box-shadow: 0 0 18px -8px rgba(71,207,255,.82), inset 0 1px 0 rgba(152,233,255,.08);
  text-shadow: 0 0 12px rgba(71,207,255,.48);
  transform: translateY(-1px);
}
[data-theme="light"] .home-rail__links a:hover,
[data-theme="light"] .home-rail__links a[aria-current] {
  color: #087ebd;
  border-color: rgba(8,126,189,.28);
  background: rgba(8,126,189,.08);
  box-shadow: 0 0 18px -9px rgba(8,126,189,.62), inset 0 1px 0 rgba(255,255,255,.8);
  text-shadow: 0 0 12px rgba(40,186,238,.2);
}

@media (hover: hover) and (pointer: fine) {
  .preference-btn:hover,
  .preference-btn:focus-visible {
    color: #65dcff;
    background: transparent;
    filter: drop-shadow(0 0 8px rgba(71,207,255,.4));
    text-decoration: none;
  }
  .preference-btn:hover::after,
  .preference-btn:focus-visible::after { transform: scaleX(1); opacity: .9; }
  .preference-btn:hover .ico,
  .preference-btn:focus-visible .ico { transform: translateY(-1px) scale(1.06); }
  [data-theme="light"] .preference-btn:hover,
  [data-theme="light"] .preference-btn:focus-visible {
    color: #087ebd;
    filter: drop-shadow(0 0 8px rgba(8,126,189,.26));
  }
  [data-theme="light"] .home-page #how-start .card:hover .card__icon {
    color: #087ebd;
    filter: drop-shadow(0 0 8px rgba(40,186,238,.38)) drop-shadow(0 0 18px rgba(40,186,238,.2));
  }
}

@media (max-width: 480px) {
  .preferences { min-height: 38px; gap: 10px; padding: 0; }
  .preference-btn { min-width: 0; height: 38px; padding-inline: 2px; gap: 6px; font-size: 10.5px; }
  .preference-btn--language { min-width: 0; }
  .preference-btn .ico,
  .preference-btn__icon .ico { width: 20px; height: 20px; }
  .home-page #how-start .card__icon,
  .home-page #how-start .card:hover .card__icon { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .preference-btn,
  .preference-btn::after,
  .preference-btn .ico,
  .home-rail__links a { transition: none; }
  .preference-btn:hover .ico,
  .home-rail__links a:hover { transform: none; }
}

/* ========================================================================
   44. One underline language for every navigation surface
   ======================================================================== */
.nav__link,
.mega__link,
.drawer__link,
.home-rail__links a {
  position: relative;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  transition: color .24s var(--ease), text-shadow .24s var(--ease);
}
.preference-btn,
.nav__link,
.mega__link,
.drawer__link,
.home-rail__links a { border: 0; }
.preference-btn:focus-visible,
.nav__link:focus-visible,
.mega__link:focus-visible,
.drawer__link:focus-visible,
.home-rail__links a:focus-visible { outline: none; }

.nav__link::after,
.mega__link::after,
.drawer__link::after,
.home-rail__links a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 1px;
  left: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s var(--ease-out), opacity .24s var(--ease);
}
.nav__link::after { right: 14px; left: 14px; }
.mega__link::after { right: 10px; left: 10px; }
.drawer__link::after { right: 0; left: 0; }
.home-rail__links a::after { right: 8px; left: 8px; }

.nav__link:hover,
.nav__link:focus-visible,
.nav__link[aria-current="page"],
.has-mega:hover > .nav__link,
.mega__link:hover,
.mega__link:focus-visible,
.drawer__link:hover,
.drawer__link:focus-visible,
.home-rail__links a:hover,
.home-rail__links a:focus-visible,
.home-rail__links a[aria-current] {
  color: #65dcff;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(71,207,255,.48);
  transform: none;
  text-decoration: none;
}

.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="page"]::after,
.has-mega:hover > .nav__link::after,
.mega__link:hover::after,
.mega__link:focus-visible::after,
.drawer__link:hover::after,
.drawer__link:focus-visible::after,
.home-rail__links a:hover::after,
.home-rail__links a:focus-visible::after,
.home-rail__links a[aria-current]::after {
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  opacity: .92;
  transform: scaleX(1);
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link:focus-visible,
[data-theme="light"] .nav__link[aria-current="page"],
[data-theme="light"] .has-mega:hover > .nav__link,
[data-theme="light"] .mega__link:hover,
[data-theme="light"] .mega__link:focus-visible,
[data-theme="light"] .drawer__link:hover,
[data-theme="light"] .drawer__link:focus-visible,
[data-theme="light"] .home-rail__links a:hover,
[data-theme="light"] .home-rail__links a:focus-visible,
[data-theme="light"] .home-rail__links a[aria-current] {
  color: #087ebd;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(8,126,189,.22);
}

@media (prefers-reduced-motion: reduce) {
  .nav__link,
  .nav__link::after,
  .mega__link,
  .mega__link::after,
  .drawer__link,
  .drawer__link::after,
  .home-rail__links a,
  .home-rail__links a::after { transition: none; }
}

/* ========================================================================
   45. Pricing underline, reliable mega bridge and smooth rendering
   ======================================================================== */
.has-mega::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 100%;
  right: -18px;
  left: -18px;
  height: 18px;
}
.mega {
  z-index: 2;
  top: calc(100% + 9px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .14s;
}
.has-mega:hover .mega,
.has-mega:focus-within .mega { transition-delay: 0s; }

.switch {
  padding: 0 10px;
  gap: 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}
.switch button {
  position: relative;
  min-height: 50px;
  padding: 10px 18px;
  border-radius: 0;
  color: var(--fg-3);
  background: transparent;
  box-shadow: none;
  transition: color .24s var(--ease), text-shadow .24s var(--ease);
}
.switch button::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 3px;
  left: 12px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .24s var(--ease-out), opacity .24s var(--ease);
}
.switch button:hover,
.switch button:focus-visible,
.switch button[aria-pressed="true"] {
  color: #65dcff;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 0 12px rgba(71,207,255,.48);
}
.switch button:focus-visible { outline: none; }
.switch button:hover::after,
.switch button:focus-visible::after,
.switch button[aria-pressed="true"]::after {
  opacity: .92;
  transform: scaleX(1);
}
[data-theme="light"] .switch { background: rgba(8,24,39,.025); }
[data-theme="light"] .switch button:hover,
[data-theme="light"] .switch button:focus-visible,
[data-theme="light"] .switch button[aria-pressed="true"] {
  color: #087ebd;
  text-shadow: 0 0 12px rgba(8,126,189,.22);
}

.tg-cta {
  min-height: 76px;
  justify-content: flex-start;
  gap: 16px;
  padding: 15px 20px;
  border-radius: 10px;
  border-color: rgba(101,220,255,.38);
  background: rgba(8,17,25,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  font-size: clamp(16px, 2vw, 21px);
  letter-spacing: .01em;
}
.tg-cta:hover {
  transform: translateY(-2px);
  border-color: #65dcff;
  background: rgba(20,156,229,.1);
  box-shadow: 0 18px 42px -28px rgba(71,207,255,.78), inset 0 1px 0 rgba(255,255,255,.055);
}
.tg-cta__ico {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: rgba(34,158,217,.1);
  border-color: rgba(101,220,255,.34);
}
.tg-cta__arr { color: #65dcff; }

.btn--telegram {
  color: var(--fg);
  background: rgba(8,17,25,.72);
  border-color: rgba(101,220,255,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.btn--telegram:hover {
  color: #65dcff;
  background: rgba(20,156,229,.1);
  border-color: #65dcff;
  box-shadow: 0 16px 34px -24px rgba(71,207,255,.76), inset 0 1px 0 rgba(255,255,255,.05);
}
[data-theme="light"] .tg-cta,
[data-theme="light"] .btn--telegram {
  color: #071624;
  background: rgba(255,255,255,.82);
  border-color: rgba(8,126,189,.4);
  box-shadow: inset 0 1px 0 #fff, 0 12px 32px -28px rgba(8,52,90,.6);
}
[data-theme="light"] .tg-cta:hover,
[data-theme="light"] .btn--telegram:hover {
  color: #087ebd;
  background: rgba(8,126,189,.07);
  border-color: #087ebd;
}

.header {
  background: rgba(5,7,11,.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateZ(0);
}
.header.is-stuck { background: rgba(5,7,11,.985); }
.home-rail {
  background: rgba(8,12,18,.97);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: translateY(12px) translateZ(0);
}
[data-theme="light"] .header,
[data-theme="light"] .header.is-stuck { background: rgba(247,250,253,.985); }
[data-theme="light"] .home-rail { background: rgba(255,255,255,.98); }
.hero__robot { will-change: auto; }

@media (max-width: 640px) {
  .switch { width: 100%; gap: 2px; padding-inline: 4px; }
  .switch button { flex: 1 1 22%; min-width: 0; padding-inline: 6px; font-size: 13px; }
  .tg-cta { min-height: 68px; flex-direction: row; padding: 13px 15px; text-align: left; }
  .tg-cta__arr { margin-left: auto; transform: none; }
  .tg-cta:hover .tg-cta__arr { transform: translateX(5px); }
}

@media (prefers-reduced-motion: reduce) {
  .switch button,
  .switch button::after,
  .tg-cta,
  .tg-cta__arr,
  .btn--telegram { transition: none; }
}

/* ========================================================================
   46. Site-wide line icons and illuminated underline language
   ======================================================================== */
/* Internal pages inherit the approved icon language from the home screen. */
body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico) {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 54px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  color: #f4fbff;
  background: transparent;
  box-shadow: none;
  filter: none;
  transition: color .26s var(--ease), filter .26s var(--ease), transform .26s var(--ease-out);
}
body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico)::before,
body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico)::after { content: none; }
body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico) .ico {
  width: 38px;
  height: 38px;
  stroke-width: 1.75;
}
body:not(.home-page) .flow__item { grid-template-columns: 54px minmax(0, 1fr); }
body:not(.home-page) .flow__item.is-active .flow__ico {
  color: #65dcff;
  border: 0;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 0 7px rgba(71,207,255,.68)) drop-shadow(0 0 18px rgba(24,161,221,.38));
}
[data-theme="light"] body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico) { color: #07121f; }
[data-theme="light"] body:not(.home-page) .flow__item.is-active .flow__ico {
  color: #087ebd;
  filter: drop-shadow(0 0 8px rgba(40,186,238,.34)) drop-shadow(0 0 18px rgba(40,186,238,.18));
}

body:not(.home-page) :is(.card--link, .mod) { outline: none; }
@media (hover: hover) and (pointer: fine) {
  body:not(.home-page) :is(.card, .mod, .seg, .doubt, .flow__item):hover :is(.card__icon, .mod__ico, .seg__ico, .doubt__ico, .flow__ico),
  body:not(.home-page) :is(.card--link, .mod):focus-visible :is(.card__icon, .mod__ico) {
    color: #65dcff;
    filter: drop-shadow(0 0 7px rgba(71,207,255,.72)) drop-shadow(0 0 18px rgba(24,161,221,.42));
    transform: translateY(-2px) scale(1.04);
  }
  [data-theme="light"] body:not(.home-page) :is(.card, .mod, .seg, .doubt, .flow__item):hover :is(.card__icon, .mod__ico, .seg__ico, .doubt__ico, .flow__ico),
  [data-theme="light"] body:not(.home-page) :is(.card--link, .mod):focus-visible :is(.card__icon, .mod__ico) {
    color: #087ebd;
    filter: drop-shadow(0 0 8px rgba(40,186,238,.38)) drop-shadow(0 0 18px rgba(40,186,238,.2));
  }
}

/* Text navigation uses one short illuminated underline instead of local pills. */
body:not(.home-page) :is(.link-arrow, .mod__go, .toc a, .tab, .crumbs a) {
  position: relative;
  text-decoration: none;
}
body:not(.home-page) .mod__go { align-self: flex-start; }
body:not(.home-page) :is(.link-arrow, .mod__go, .toc a, .tab, .crumbs a)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity .24s var(--ease), transform .24s var(--ease-out);
}
body:not(.home-page) :is(.link-arrow, .mod__go, .toc a, .tab, .crumbs a):is(:hover, :focus-visible),
body:not(.home-page) .tab[aria-selected="true"] {
  color: #65dcff;
  outline: none;
  text-shadow: 0 0 12px rgba(71,207,255,.44);
}
body:not(.home-page) :is(.link-arrow, .mod__go, .toc a, .tab, .crumbs a):is(:hover, :focus-visible)::after,
body:not(.home-page) .tab[aria-selected="true"]::after,
body:not(.home-page) :is(.card, .card--link):is(:hover, :focus-visible) .link-arrow::after,
body:not(.home-page) :is(.card, .card--link, .mod):is(:hover, :focus-visible) .mod__go::after {
  opacity: 1;
  transform: scaleX(1);
}
body:not(.home-page) :is(.card, .card--link):is(:hover, :focus-visible) .link-arrow,
body:not(.home-page) :is(.card, .card--link, .mod):is(:hover, :focus-visible) .mod__go {
  color: #65dcff;
  text-shadow: 0 0 12px rgba(71,207,255,.44);
}
[data-theme="light"] body:not(.home-page) :is(.link-arrow, .mod__go, .toc a, .tab, .crumbs a):is(:hover, :focus-visible),
[data-theme="light"] body:not(.home-page) .tab[aria-selected="true"] {
  color: #087ebd;
  text-shadow: 0 0 12px rgba(40,186,238,.24);
}
[data-theme="light"] body:not(.home-page) :is(.card, .card--link):is(:hover, :focus-visible) .link-arrow,
[data-theme="light"] body:not(.home-page) :is(.card, .card--link, .mod):is(:hover, :focus-visible) .mod__go {
  color: #087ebd;
  text-shadow: 0 0 12px rgba(40,186,238,.24);
}
body:not(.home-page) .tab,
body:not(.home-page) .tab:hover,
body:not(.home-page) .tab[aria-selected="true"],
body:not(.home-page) .toc a,
body:not(.home-page) .toc a:hover {
  border-color: transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body:not(.home-page) .tab::after,
body:not(.home-page) .toc a::after {
  right: 10px;
  bottom: 2px;
  left: 10px;
}

@media (max-width: 720px) {
  body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico) {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico) .ico {
    width: 34px;
    height: 34px;
  }
  body:not(.home-page) .flow__item { grid-template-columns: 48px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.home-page) :is(.card__icon, .mod__ico, .seg__ico, .flow__ico, .doubt__ico),
  body:not(.home-page) :is(.link-arrow, .mod__go, .toc a, .tab, .crumbs a)::after { transition: none; }
  body:not(.home-page) :is(.card, .mod, .seg, .doubt, .flow__item):hover :is(.card__icon, .mod__ico, .seg__ico, .doubt__ico, .flow__ico) { transform: none; }
}


/* ==========================================================================
   47. Юридические документы: пометка «проект» и незаполненные реквизиты
   ========================================================================== */

.legal-draft {
  border: 1px solid #e0a23c;
  border-left-width: 4px;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 28px;
  font-size: 15px;
  line-height: 1.6;
  color: #6b4a12;
  background: #fdf6e8;
}
.legal-draft b { color: #4a3208; }

[data-theme="dark"] .legal-draft {
  color: #f0d9a8;
  background: rgba(224, 162, 60, .09);
  border-color: rgba(224, 162, 60, .55);
}
[data-theme="dark"] .legal-draft b { color: #ffe6b0; }

.legal-gap {
  padding: 1px 8px;
  border-radius: 6px;
  border: 1px dashed currentColor;
  font-size: .92em;
  opacity: .85;
  white-space: nowrap;
}

/* 48. Подтверждённый масштаб продукта */
.section--proof { padding-block: clamp(28px, 4vw, 58px); }
.invite-proof {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(470px, 1.25fr) minmax(260px, .75fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  overflow: hidden;
  padding: clamp(26px, 4vw, 58px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 43%), var(--surface-1);
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}
.invite-proof::after {
  content: none;
  display: none;
}
.invite-proof__copy { grid-column: 2; max-width: 430px; }
.invite-proof__copy .eyebrow { margin-bottom: 14px; }
.invite-proof__title {
  margin: 0;
  max-width: 17ch;
  color: var(--fg);
  font-family: var(--font-display);
  font-size: clamp(28px, 2.65vw, 42px);
  font-weight: 760;
  line-height: .98;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.invite-proof__title span { color: var(--accent); }
.invite-proof__number {
  grid-column: 1;
  grid-row: 1;
  display: block;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: clamp(66px, 7.4vw, 112px);
  font-weight: 820;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
  transition: color .24s ease, filter .24s ease, transform .24s ease;
}
.invite-proof__number.is-odometer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: .015em;
  color: var(--accent);
  -webkit-text-stroke: 0;
}
.odometer-digit {
  position: relative;
  display: inline-block;
  overflow: hidden;
  width: .56em;
  height: 1em;
  contain: layout paint;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.odometer-digit__track {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform var(--odometer-duration, 2400ms) cubic-bezier(.12, .82, .18, 1);
}
.odometer-digit__track > span {
  display: grid;
  flex: 0 0 1em;
  height: 1em;
  place-items: center;
  color: inherit;
  -webkit-text-stroke: inherit;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-shadow: none;
}
.odometer-separator {
  display: inline-grid;
  width: .24em;
  height: 1em;
  place-items: center;
  color: color-mix(in srgb, var(--fg) 52%, transparent);
  font-size: .72em;
  line-height: 1;
  -webkit-text-stroke: 0;
}
.invite-proof:hover,
.invite-proof:focus-within {
  border-color: color-mix(in srgb, var(--accent) 72%, var(--line-strong));
  box-shadow: 0 20px 70px color-mix(in srgb, var(--accent) 13%, transparent);
  transform: translateY(-2px);
}
.invite-proof:hover::after,
.invite-proof:focus-within::after { transform: none; }
.invite-proof:hover .invite-proof__number,
.invite-proof:focus-within .invite-proof__number {
  color: color-mix(in srgb, var(--accent) 88%, white);
  text-shadow: none;
  filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 44%, transparent));
  transform: translateY(-2px);
}
.invite-proof:hover .odometer-separator,
.invite-proof:focus-within .odometer-separator { color: color-mix(in srgb, var(--accent) 72%, var(--fg)); }
[data-theme="light"] .invite-proof {
  background: linear-gradient(115deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 46%), #fff;
  box-shadow: 0 18px 50px rgba(16, 50, 79, .08);
}
[data-theme="light"] .invite-proof__title span { color: #078ed4; }
[data-theme="light"] .invite-proof__number {
  color: #078ed4;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}
[data-theme="light"] .odometer-digit { border: 0; background: transparent; box-shadow: none; }
[data-theme="light"] .invite-proof:hover .invite-proof__number,
[data-theme="light"] .invite-proof:focus-within .invite-proof__number {
  color: #00a8ef;
  text-shadow: none;
  filter: drop-shadow(0 0 10px rgba(7, 142, 212, .34));
}
@media (max-width: 900px) {
  .invite-proof { grid-template-columns: 1fr; align-items: start; }
  .invite-proof__number,
  .invite-proof__number.is-odometer {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    justify-content: flex-start;
    justify-self: stretch;
    text-align: left;
  }
  .invite-proof__copy {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    max-width: 620px;
  }
  .invite-proof__title { max-width: 27ch; }
}
@media (max-width: 520px) {
  .section--proof { padding-block: 24px 34px; }
  .invite-proof { gap: 22px; padding: 24px 20px 26px; border-radius: 18px; }
  .invite-proof__number {
    font-size: clamp(43px, 14.4vw, 62px);
    letter-spacing: -.06em;
  }
  .invite-proof__title { font-size: clamp(25px, 8.2vw, 34px); line-height: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .invite-proof,
  .invite-proof::after,
  .invite-proof__number { transition: none; }
  .odometer-digit__track { transition: none; }
}

/* 50. Ролевые сценарии модулей и публичный журнал обновлений */
.section--fit { padding-top: clamp(54px, 7vw, 94px); }
.fit-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}
.fit-card {
  position: relative;
  grid-column: span 2;
  min-height: 230px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-1);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.fit-card:nth-child(4) { grid-column: 2 / span 2; }
.fit-card::after,
.update-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.fit-card__icon {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  place-items: center;
  color: var(--fg-2);
  transition: color .22s ease, filter .22s ease, transform .22s ease;
}
.fit-card__icon svg { width: 34px; height: 34px; }
.fit-card h3 { margin: 0 0 12px; font-size: clamp(20px, 1.55vw, 25px); }
.fit-card p { margin: 0; color: var(--fg-2); line-height: 1.65; }
.fit-card:hover,
.fit-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 66%, var(--line-strong));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-3px);
}
.fit-card:hover::after,
.fit-card:focus-within::after,
.update-card:hover::after,
.update-card:focus-within::after { transform: scaleX(1); }
.fit-card:hover .fit-card__icon,
.fit-card:focus-within .fit-card__icon {
  color: var(--accent);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 52%, transparent));
  transform: translateY(-2px);
}

.purchase-faq .section-head { margin-inline: auto; }
.updates-list { display: grid; gap: 18px; }
.update-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(250px, .8fr) minmax(320px, 1.25fr);
  gap: clamp(22px, 4vw, 58px);
  align-items: start;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-1);
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}
.update-card__meta { display: grid; gap: 10px; }
.update-card__meta time,
.update-card__meta span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.update-card__copy { display: grid; gap: 14px; min-width: 0; }
.update-card h2 { margin: 0; font-size: clamp(24px, 2vw, 34px); line-height: 1.05; }
.update-card__copy > p { margin: 0; color: var(--fg-2); font-size: 17px; line-height: 1.65; white-space: pre-line; }
.update-card__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.update-card__facts span {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 999px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 760;
}
.update-card__source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.update-card__source .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.update-card__source:hover .ico,
.update-card__source:focus-visible .ico { transform: translateX(4px); }
.update-card__open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}
.update-card__open .ico { width: 18px; height: 18px; transition: transform .2s ease; }
.update-card:hover .update-card__open .ico,
.update-card:focus-visible .update-card__open .ico { transform: translateX(4px); }
.update-card__result {
  display: grid;
  gap: 9px;
  padding-left: 22px;
  border-left: 1px solid color-mix(in srgb, var(--accent) 44%, var(--line));
}
.update-card__result b { color: var(--fg); font-size: 14px; }
.update-card__result span { color: var(--fg-2); line-height: 1.6; }
.update-card__media {
  display: grid;
  place-items: center;
  grid-column: 2 / -1;
  width: min(420px, 100%);
  margin: 2px 0 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--line));
  border-radius: 18px;
  background: #050b12;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}
.update-card__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: filter .22s ease, transform .32s ease;
}
.update-card:hover .update-card__media img,
.update-card:focus-within .update-card__media img {
  filter: brightness(1.06) saturate(1.04);
  transform: scale(1.008);
}
.update-card:hover,
.update-card:focus-within {
  border-color: color-mix(in srgb, var(--accent) 66%, var(--line-strong));
  box-shadow: 0 18px 48px color-mix(in srgb, var(--accent) 10%, transparent);
  transform: translateY(-2px);
}
[data-theme="light"] .fit-card,
[data-theme="light"] .update-card { background: rgba(255,255,255,.82); }

.update-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.update-article {
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 72px);
  align-items: start;
}
.update-article__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 52%, var(--line));
  border-radius: 20px;
  background: #050b12;
  box-shadow: 0 24px 64px color-mix(in srgb, var(--accent) 11%, transparent);
}
.update-article__media img { display: block; width: 100%; height: auto; }
.update-article__body { display: grid; gap: 26px; min-width: 0; }
.update-article__lead { margin: 0; color: var(--fg-2); font-size: clamp(18px, 2vw, 23px); line-height: 1.7; }
.update-article__changes { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.update-article__changes li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 740;
  line-height: 1.45;
}
.update-article__changes li:first-child { border-top: 1px solid var(--line); }
.update-article__changes .ico { width: 25px; height: 25px; color: var(--accent); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 45%, transparent)); }
.update-article__body .update-card__facts { margin-top: 0; }
.update-article__body .update-card__result { padding: 22px; border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: 14px; }
.update-article__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: clamp(38px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.update-article__back { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-weight: 800; }
.update-article__back .ico { width: 18px; height: 18px; transform: rotate(180deg); }

@media (max-width: 980px) {
  .fit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit-card,
  .fit-card:nth-child(4) { grid-column: auto; }
  .fit-card:last-child { grid-column: 1 / -1; }
  .update-card { grid-template-columns: 150px 1fr; }
  .update-card__result { grid-column: 2; }
  .update-card__media { grid-column: 2; }
  .update-article { grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 620px) {
  .fit-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
  .fit-card,
  .fit-card:last-child { grid-column: auto; min-height: 0; padding: 22px 20px; }
  .fit-card__icon { width: 42px; height: 42px; margin-bottom: 22px; }
  .fit-card__icon svg { width: 30px; height: 30px; }
  .update-card { grid-template-columns: 1fr; gap: 18px; padding: 24px 20px; }
  .update-card__result { grid-column: 1; padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .update-card__media { grid-column: 1; width: min(100%, 360px); }
  .update-article { grid-template-columns: 1fr; gap: 26px; }
  .update-article__media { width: min(100%, 360px); }
  .update-article__changes li { grid-template-columns: 30px 1fr; padding: 17px 0; font-size: 18px; }
  .update-article__footer { display: grid; }
  .update-article__footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fit-card,
  .fit-card::after,
  .fit-card__icon,
  .update-card,
  .update-card::after { transition: none; }
}

/* 49. Одинаковая геометрия hero-маскота в светлой и тёмной темах. */
[data-theme="light"] .hero__robot {
  right: clamp(-70px, -2vw, 0px);
  bottom: 0;
  width: clamp(380px, 50vw, 860px);
  max-height: none;
  object-fit: initial;
  object-position: initial;
}
@media (max-width: 1024px) {
  [data-theme="light"] .hero__robot {
    width: min(80%, 430px);
    margin: 6px auto -4px;
    object-position: initial;
  }
}
@media (max-width: 720px) {
  [data-theme="light"] .hero__robot { width: min(88%, 330px); margin: 6px auto -4px; }
}
@media (max-width: 480px) {
  [data-theme="light"] .hero__robot { width: min(88%, 330px); }
}

/* 50. База знаний: каталог черновиков и редакторский каркас статей. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.draft-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 760px;
  margin-top: 24px;
  padding: 15px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface-1));
  color: var(--fg-2);
  font-size: 14px;
}
.draft-notice .ico { flex: 0 0 22px; color: var(--accent-2); }
.draft-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  border-radius: 999px;
  color: var(--accent-2);
  font: 700 10px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section--knowledge { padding-top: clamp(32px, 5vw, 68px); }
.knowledge-tools {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
}
.knowledge-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--fg-3);
}
.knowledge-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-2);
}
.knowledge-search .ico { flex: 0 0 21px; }
.knowledge-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: 600 14px/1.4 var(--font-body);
}
.knowledge-search input::placeholder { color: var(--fg-4); }
.knowledge-filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: thin; padding: 2px; }
.knowledge-filter {
  position: relative;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 12px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--fg-3);
  font: 700 12px/1.2 var(--font-body);
  cursor: pointer;
}
.knowledge-filter::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 4px;
  left: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 58%, transparent);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.knowledge-filter:hover,
.knowledge-filter:focus-visible,
.knowledge-filter.is-active { color: var(--accent-2); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.knowledge-filter:hover::after,
.knowledge-filter:focus-visible::after,
.knowledge-filter.is-active::after { transform: scaleX(1); }
.knowledge-count { margin: 0; color: var(--fg-4); font: 700 11px/1 var(--font-mono); white-space: nowrap; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.knowledge-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 4%, transparent), transparent 42%), var(--surface-1);
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}
.knowledge-card[hidden] { display: none; }
.knowledge-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 62%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.knowledge-card:hover,
.knowledge-card:focus-within { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 55%, transparent); }
.knowledge-card:hover::after,
.knowledge-card:focus-within::after { transform: scaleX(1); }
.knowledge-card__top { display: flex; align-items: center; justify-content: space-between; }
.knowledge-card__icon { display: inline-flex; color: var(--fg-2); transition: color .2s, filter .2s; }
.knowledge-card__icon .ico { width: 34px; height: 34px; stroke-width: 1.45; }
.knowledge-card:hover .knowledge-card__icon { color: var(--accent-2); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 48%, transparent)); }
.knowledge-card__number {
  color: color-mix(in srgb, var(--fg) 10%, transparent);
  font: 800 42px/.9 var(--font-head);
  font-variant-numeric: tabular-nums;
  transition: color .2s ease, filter .2s ease;
}
.knowledge-card:hover .knowledge-card__number,
.knowledge-card:focus-within .knowledge-card__number {
  color: var(--accent-2);
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent));
}
.knowledge-card__category { margin: 28px 0 8px; color: var(--accent-2); font: 700 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.knowledge-card h2 { margin: 0; font: 750 clamp(24px, 2vw, 31px)/1 var(--font-head); letter-spacing: -.025em; }
.knowledge-card h2 a { color: var(--fg); text-decoration: none; }
.knowledge-card h2 a::after { content: ""; position: absolute; inset: 0; }
.knowledge-card > p:not(.knowledge-card__category) { margin: 16px 0 24px; color: var(--fg-3); font-size: 14.5px; }
.knowledge-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.knowledge-card__footer .link-arrow { position: relative; z-index: 1; font-size: 12px; }
.knowledge-empty { display: grid; place-items: center; min-height: 220px; text-align: center; color: var(--fg-3); }
.knowledge-empty .ico { width: 38px; height: 38px; color: var(--accent-2); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 24px; color: var(--fg-3); font: 700 11px/1 var(--font-mono); }
.article-layout { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 800px); justify-content: center; align-items: start; gap: clamp(34px, 6vw, 84px); }
.article-layout--wide { grid-template-columns: minmax(0, 1120px); gap: 0; padding-top: 54px; }
.article-layout--wide .article-body--published { width: 100%; }
.article-rail-wrap { z-index: 89; }
.article-rail .home-rail__current { min-width: 142px; font-size: 15px; }
.article-rail .home-rail__links { justify-content: space-between; }
.article-rail .home-rail__links a { padding-inline: 13px; font-size: 14px; }
.article-aside { position: sticky; top: 110px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-1); }
.article-aside__title { margin: 0 0 14px; color: var(--fg-4); font: 700 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.article-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-aside li { counter-increment: toc; }
.article-aside li + li { border-top: 1px solid var(--line); }
.article-aside li a { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 11px 0; color: var(--fg-3); font-size: 13px; text-decoration: none; }
.article-aside li a::before { content: counter(toc); color: var(--accent-text); font: 750 13px/1.4 var(--font-head); font-variant-numeric: tabular-nums; }
.article-aside li a:hover { color: var(--fg); }
.article-related { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; }
.article-related span { grid-column: 1; color: var(--fg-4); font: 700 9px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.article-related b { grid-column: 1; font-size: 13px; }
.article-related .ico { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent-2); }
.article-body > .draft-notice { max-width: none; margin: 0 0 24px; }
.article-section { position: relative; padding: 38px 0 42px; scroll-margin-top: 110px; border-top: 1px solid var(--line); }
.article-section__number { position: absolute; top: 38px; right: 0; color: color-mix(in srgb, var(--fg) 10%, transparent); font: 800 48px/.8 var(--font-head); }
.article-section h2 { max-width: 17ch; margin: 0 70px 22px 0; font: 760 clamp(29px, 4vw, 44px)/1 var(--font-head); letter-spacing: -.025em; }
.article-placeholder { display: flex; gap: 14px; min-height: 110px; padding: 22px; border: 1px dashed color-mix(in srgb, var(--accent) 30%, var(--line-strong)); border-radius: 14px; background: color-mix(in srgb, var(--accent) 4%, var(--surface-1)); color: var(--fg-3); }
.article-placeholder .ico { flex: 0 0 22px; color: var(--accent-2); }
.article-placeholder p { margin: 0; max-width: 62ch; }
.article-ready { color: var(--accent-text); }
.article-body--published { min-width: 0; }
.article-intro { margin: 0 0 32px; padding: clamp(24px, 4vw, 38px); border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 5%, var(--surface-1)); }
.article-intro__lead { margin: 0; color: var(--fg); font: 650 clamp(21px, 2.5vw, 29px)/1.25 var(--font-body); letter-spacing: -.018em; }
.article-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.article-facts div { position: relative; min-width: 0; padding: 15px 17px; overflow: hidden; background: var(--surface-1); transition: background-color .2s ease; }
.article-facts div:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface-1)); }
.article-facts div::after { content: ""; position: absolute; right: 17px; bottom: 0; left: 17px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.article-facts div:hover::after { transform: scaleX(1); }
.article-facts span { display: block; margin-bottom: 6px; color: var(--fg-4); font: 700 9px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; transition: color .2s ease; }
.article-facts div:hover span { color: var(--accent-text); }
.article-facts b { color: var(--fg-2); font-size: 13px; transition: color .2s ease; }
.article-facts div:hover b { color: var(--fg); }
.article-copy { max-width: 66ch; color: var(--fg-3); font-size: clamp(16px, 1.7vw, 18px); line-height: 1.72; }
.article-copy p { margin: 0; }
.article-copy p + p { margin-top: 18px; }
/* Ссылка внутри текста статьи: цвет обязан читаться, а не только «светиться».
   Вертикальные поля дают пальцу область нажатия в 44 px без разрыва строки. */
.article-body a:not(.btn):not(.link-arrow) { color: var(--accent-text); padding-block: 6px; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; }
.article-body a:not(.btn):not(.link-arrow):hover { text-decoration-color: currentColor; }
.article-compare { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.article-compare > div { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-1); transition: border-color .2s ease, transform .2s ease; }
.article-compare > div:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); }
.article-compare .ico { width: 30px; height: 30px; margin-bottom: 24px; color: var(--fg-2); transition: color .2s ease, filter .2s ease; }
.article-compare > div:hover .ico { color: var(--accent-2); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 45%, transparent)); }
.article-compare h3 { margin: 0 0 8px; color: var(--fg); font: 750 18px/1.1 var(--font-head); }
.article-compare p { margin: 0; color: var(--fg-3); font-size: 13px; line-height: 1.55; }
.article-requirements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.article-requirements > div { position: relative; min-height: 150px; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-1); transition: border-color .2s ease, transform .2s ease; }
.article-requirements > div:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 58%, var(--line)); }
.article-requirements > div::after { content: ""; position: absolute; right: 22px; bottom: 0; left: 22px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.article-requirements > div:hover::after { transform: scaleX(1); }
.article-requirements span { position: absolute; top: 18px; right: 18px; color: color-mix(in srgb, var(--fg) 13%, transparent); font: 800 34px/.9 var(--font-head); font-variant-numeric: tabular-nums; transition: color .2s ease, filter .2s ease; }
.article-requirements > div:hover span { color: var(--accent-2); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.article-requirements h3 { margin: 30px 0 9px; color: var(--fg); font: 750 21px/1 var(--font-head); }
.article-requirements p { margin: 0; color: var(--fg-3); font-size: 13.5px; line-height: 1.55; }
.article-note { display: grid; grid-template-columns: 110px 1fr; gap: 22px; margin-top: 24px; padding: 20px 22px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface-1)); }
.article-note b { color: var(--accent-text); font: 750 11px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.article-note p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.6; }
.article-note--plain { border-left-color: var(--fg-4); background: var(--surface-1); }
.article-note--plain b { color: var(--fg-2); }
.article-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: article-step; }
.article-steps li { position: relative; display: grid; grid-template-columns: 190px 1fr; gap: 28px; min-height: 88px; padding: 24px 0 24px 66px; counter-increment: article-step; border-top: 1px solid var(--line); }
/* Нумерация в проекте всегда без ведущего нуля: 1, 2, 3 — никаких 01, 02, 03. */
.article-steps li::before { content: counter(article-step); position: absolute; top: 20px; left: 0; color: var(--accent-text); font: 800 38px/1 var(--font-head); font-variant-numeric: tabular-nums; transition: filter .2s ease; }
.article-steps li:hover::before { color: var(--accent-2); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent)); }
.article-steps li::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 66px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.article-steps li:hover::after { transform: scaleX(1); }
.article-steps li:last-child { border-bottom: 1px solid var(--line); }
.article-steps b { color: var(--fg); font: 750 19px/1.2 var(--font-head); }
.article-steps span { color: var(--fg-3); font-size: 14px; line-height: 1.6; }
.article-statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 30px; border-block: 1px solid var(--line); }
.article-statuses > div { position: relative; min-height: 128px; padding: 24px 26px 24px 22px; overflow: hidden; border-bottom: 1px solid var(--line); }
.article-statuses > div:nth-child(odd) { border-right: 1px solid var(--line); }
.article-statuses > div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.article-statuses > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.article-statuses > div::before { content: ""; position: absolute; top: 28px; left: 0; width: 3px; height: 17px; background: var(--accent); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent); transition: height .22s ease; }
.article-statuses > div:hover::before { height: 30px; }
.article-statuses > div::after { content: ""; position: absolute; right: 26px; bottom: 0; left: 22px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.article-statuses > div:hover::after { transform: scaleX(1); }
.article-statuses b { display: block; color: var(--fg); font: 750 21px/1.12 var(--font-head); letter-spacing: -.01em; }
.article-statuses p { margin: 10px 0 0; max-width: 54ch; color: var(--fg-3); font-size: 14.5px; line-height: 1.6; }
/* Безопасный темп: цифры лимитов из одного источника в build.py */
.article-limits { margin-top: 30px; padding: 26px 0 4px; border-block: 1px solid var(--line); }
.article-limits__head { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 28px; margin-bottom: 22px; }
.article-limits__head > span { color: var(--accent-text); font: 740 10px/1.5 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.article-limits__head p { margin: 0; max-width: 62ch; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.article-limits ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.article-limits li { position: relative; padding: 22px 22px 24px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.article-limits li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.article-limits li::after { content: ""; position: absolute; right: 22px; bottom: 0; left: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.article-limits li + li::after { left: 26px; }
.article-limits li:hover::after { transform: scaleX(1); }
.article-limits b { display: block; color: var(--accent-text); font: 800 clamp(40px, 4vw, 54px)/.95 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.03em; transition: filter .2s ease; }
.article-limits li:hover b { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 62%, transparent)); }
/* только прямые подписи пункта: внутрь текста JS подставляет свой span бренда */
.article-limits li > span { display: block; margin-top: 9px; color: var(--fg); font: 750 15px/1.25 var(--font-head); }
.article-limits li > i { display: block; margin-top: 3px; color: var(--fg-3); font-size: 13.5px; font-style: normal; }
.article-limits small { display: block; margin-top: 11px; color: var(--fg-4); font-size: 12.5px; line-height: 1.45; }
.article-limits__note { margin: 16px 0 0; max-width: 74ch; color: var(--fg-4); font-size: 12.5px; line-height: 1.5; }
/* Оглавление статьи. На телефоне это единственный способ увидеть структуру
   сразу: боковая колонка там не помещается, а горизонтальная лента прокрутки
   показывает только ближайшие пункты. Каждая строка — цель для пальца в 48 px. */
.article-toc { margin: 30px 0 6px; padding: 20px 22px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-1); }
.article-toc__title { margin: 0 0 6px; color: var(--fg-4); font: 700 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.article-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.article-toc li + li { border-top: 1px solid var(--line); }
.article-toc a { display: flex; gap: 14px; align-items: center; min-height: 48px; padding: 6px 0; color: var(--fg-2); font-size: 16px; font-weight: 600; text-decoration: none; }
.article-toc a span { min-width: 20px; color: var(--accent-text); font: 800 13px/1 var(--font-mono); }
.article-toc a:hover { color: var(--accent-text); }
@media (max-width: 760px) {
  .article-toc { margin-top: 24px; padding: 18px 18px 6px; }
  .article-toc a { font-size: 16.5px; }
}
/* Частые ошибки: слева — как делают и чем это кончается, справа — как надо. */
.article-mistakes { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-mistakes__title { margin: 0 0 18px; color: var(--fg-4); font: 700 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.article-mistakes ul { margin: 0; padding: 0; list-style: none; }
.article-mistakes li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 26px; padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.article-mistakes li:first-child { border-top: 1px solid var(--line); }
.article-mistakes__wrong,
.article-mistakes__right { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px 12px; align-content: start; }
.article-mistakes__wrong .ico { grid-row: 1 / 3; width: 20px; height: 20px; margin-top: 3px; color: #e2674f; }
.article-mistakes__right .ico { width: 20px; height: 20px; margin-top: 3px; color: #1f9d63; }
.article-mistakes b { color: var(--fg); font: 750 18px/1.25 var(--font-head); }
.article-mistakes p { margin: 0; color: var(--fg-3); font-size: 15px; line-height: 1.6; }
.article-mistakes__right p { color: var(--fg-2); }

/* Короткий итог: то, что человек унесёт, даже если читал по диагонали. */
.article-takeaway { margin-top: 32px; padding: 26px 28px; border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line)); border-radius: 18px; background: color-mix(in srgb, var(--accent) 6%, var(--surface-1)); }
.article-takeaway__title { margin: 0 0 16px; color: var(--accent-text); font: 740 10px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; }
.article-takeaway ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.article-takeaway li { position: relative; padding-left: 26px; color: var(--fg-2); font-size: 16.5px; line-height: 1.55; }
.article-takeaway li::before { content: ""; position: absolute; top: .62em; left: 0; width: 12px; height: 2px; background: var(--accent); }

/* Словарь: раскрывается по желанию и не мешает тем, кто термины уже знает. */
.article-glossary { margin-top: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-1); }
.article-glossary summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 22px; color: var(--fg); font: 750 17px/1.3 var(--font-head); cursor: pointer; list-style: none; }
.article-glossary summary::-webkit-details-marker { display: none; }
.article-glossary summary span { display: grid; place-items: center; min-width: 26px; height: 26px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); font: 700 12px/1 var(--font-mono); }
.article-glossary summary:hover { color: var(--accent-text); }
.article-glossary dl { margin: 0; padding: 0 22px 8px; }
.article-glossary dl > div { padding: 16px 0; border-top: 1px solid var(--line); }
.article-glossary dt { margin-bottom: 6px; color: var(--fg); font: 750 16px/1.3 var(--font-head); }
.article-glossary dd { margin: 0; color: var(--fg-3); font-size: 15.5px; line-height: 1.6; }

/* Текстовая кнопка внутри абзаца — выглядит как ссылка, но не ведёт никуда */
.linklike { padding: 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linklike:hover { color: var(--accent-deep); }
/* Согласие на аналитику: появляется только когда счётчик реально подключён */
.consent { position: fixed; right: 16px; bottom: 16px; left: 16px; z-index: 95; display: grid; gap: 14px; max-width: 520px; margin-inline: auto; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px); box-shadow: 0 24px 60px -28px rgba(8, 24, 39, .45); opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.consent.is-in { opacity: 1; transform: translateY(0); }
.consent p { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.55; }
.consent a { color: var(--accent-text); text-underline-offset: 3px; }
.consent > div { display: flex; gap: 10px; }
.consent button { min-height: 44px; padding-inline: 20px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font: 700 15px/1 var(--font); cursor: pointer; }
.consent button:hover { background: var(--accent-deep); }
.consent .consent__no { border: 1px solid var(--line-strong); background: transparent; color: var(--fg-2); font-weight: 600; }
.consent .consent__no:hover { border-color: var(--fg-3); background: transparent; color: var(--fg); }
/* Баннер не должен садиться на липкую навигацию: панель разделов перехватывала
   нажатие, и кнопка «Принять» физически не нажималась. */
body:has(.home-rail-wrap) .consent,
body:has(.article-sticky-cta) .consent { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (max-width: 480px) {
  .consent { right: 10px; bottom: 10px; left: 10px; padding: 16px; }
  .consent > div { flex-direction: column-reverse; }
  .consent button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* Липкая кнопка на телефоне: появляется, когда человек уже читает статью,
   и прячется у финального блока действия, чтобы не дублировать его. */
.article-sticky-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 60; display: none; gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .24s var(--ease-out); }
.article-sticky-cta.is-visible { transform: translateY(0); }
.article-sticky-cta p { flex: 1; min-width: 0; margin: 0; color: var(--fg-2); font-size: 13.5px; line-height: 1.35; }
.article-sticky-cta a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding-inline: 20px; border-radius: 14px; background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.article-sticky-cta a:hover { background: var(--accent-deep); }
@media (max-width: 760px) {
  .article-mistakes li { grid-template-columns: 1fr; gap: 16px; }
  .article-mistakes b { font-size: 18px; }
  .article-mistakes p { font-size: 16px; }
  .article-takeaway { padding: 22px 20px; }
  .article-takeaway li { font-size: 16.5px; }
  .article-glossary summary { padding: 0 18px; font-size: 16.5px; }
  .article-glossary dl { padding: 0 18px 8px; }
  .article-sticky-cta { display: flex; }
  body:has(.article-sticky-cta) { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-sticky-cta { transition: none; }
}
.article-warning { display: grid; grid-template-columns: 34px 1fr; gap: 18px; margin-top: 26px; padding: 24px; border: 1px solid color-mix(in srgb, #f0a43b 55%, var(--line)); border-radius: 14px; background: color-mix(in srgb, #f0a43b 7%, var(--surface-1)); }
.article-warning > .ico { width: 30px; height: 30px; color: #f0a43b; }
.article-warning b { color: var(--fg); font: 750 17px/1.1 var(--font-head); }
.article-warning p { margin: 8px 0 0; color: var(--fg-2); font-size: 14px; line-height: 1.65; }
.article-sources { margin-top: 26px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-1); }
.article-sources h3 { margin: 0 0 16px; color: var(--fg); font: 750 21px/1.1 var(--font-head); }
.article-sources ul { margin: 0; padding-left: 20px; }
.article-sources li + li { margin-top: 9px; }
.article-sources a { color: var(--fg-2); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-underline-offset: 4px; }
.article-sources a:hover { color: var(--accent-2); }
.article-sources > p { margin: 18px 0 0; color: var(--fg-4); font-size: 12px; }
.invite-story { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(300px, 1.22fr); gap: clamp(22px, 4vw, 42px); align-items: center; margin: 34px 0 0; padding: clamp(22px, 4vw, 34px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--line)); border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, var(--surface-1)), var(--surface-1) 52%); }
.invite-story::after { content: ""; position: absolute; right: 0; bottom: 0; width: 74px; height: 2px; background: var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 62%, transparent); }
.invite-story__copy { min-width: 0; }
.invite-story__step { color: var(--accent-2); font: 750 10px/1 var(--font-mono); letter-spacing: .14em; }
.invite-story h3 { max-width: 13ch; margin: 13px 0 11px; color: var(--fg); font: 760 clamp(27px, 3vw, 38px)/.98 var(--font-head); letter-spacing: -.025em; }
.invite-story__copy p { margin: 0; color: var(--fg-3); font-size: 14px; line-height: 1.6; }
.invite-story__media { display: grid; min-height: 250px; place-items: center; overflow: hidden; border: 1px solid rgba(98, 210, 255, .22); border-radius: 14px; background: #101014; box-shadow: 0 18px 36px rgba(0, 0, 0, .18); }
.invite-story__media img { display: block; width: min(100%, 430px); height: auto; image-rendering: auto; }
.invite-story figcaption { grid-column: 1 / -1; margin: -8px 0 0; color: var(--fg-4); font-size: 11px; line-height: 1.45; }
.invite-story--dashboard { grid-template-columns: minmax(0, .68fr) minmax(360px, 1.32fr); }
.invite-dashboard { position: relative; min-width: 0; padding: 23px; overflow: hidden; border: 1px solid rgba(94, 217, 255, .3); border-radius: 16px; background: linear-gradient(160deg, #1d2717, #0f1b13 74%); color: #f7f8f3; box-shadow: 0 20px 45px rgba(0, 0, 0, .25); font: 500 14px/1.45 var(--font-body); }
.invite-dashboard__title { display: flex; align-items: center; gap: 9px; font-size: 24px; }
.invite-dashboard__title .ico { width: 27px; height: 27px; }
.invite-dashboard__status { display: flex; align-items: center; gap: 10px; margin: 22px 0 18px; font-size: 18px; }
.invite-dashboard__status > span:first-child { color: #6ad4ff; font-size: 28px; }
.invite-dashboard__accounts { padding: 13px 14px; border-left: 3px solid #32c6f2; border-radius: 9px; background: rgba(82, 181, 147, .13); }
.invite-dashboard__accounts p { margin: 0 0 8px; }
.invite-dashboard__accounts ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.invite-dashboard__accounts li { display: flex; justify-content: space-between; gap: 15px; }
.invite-dashboard__accounts li span { color: #73e393; }
.invite-dashboard__grid { display: grid; grid-template-columns: 1fr .8fr; gap: 24px; margin-top: 19px; }
.invite-dashboard h4 { margin: 0 0 10px; font-size: 17px; }
.invite-dashboard__grid p { margin: 3px 0; }
.invite-dashboard__time { position: absolute; right: 18px; bottom: 13px; color: rgba(255,255,255,.5); font-size: 11px; }
.article-visuals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.article-visual { display: grid; min-height: 180px; place-items: center; margin: 0; padding: 24px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--fg-4); text-align: center; }
.article-visual span { color: var(--accent-text); }
.article-visual .ico { width: 34px; height: 34px; }
.article-visual figcaption { font-size: 13px; }
.article-next { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-top: 30px; border-top: 1px solid var(--line); }
[data-theme="light"] .knowledge-card,
[data-theme="light"] .article-aside { box-shadow: 0 14px 38px rgba(18, 54, 84, .055); }
[data-theme="light"] .knowledge-card__number,
[data-theme="light"] .article-section__number { color: rgba(9, 39, 64, .12); }
[data-theme="light"] .invite-story__media { border-color: rgba(24, 136, 194, .23); box-shadow: 0 17px 35px rgba(24, 79, 117, .14); }
[data-theme="light"] .invite-dashboard { box-shadow: 0 18px 38px rgba(24, 79, 117, .18); }
@media (max-width: 1320px) {
  .knowledge-tools { grid-template-columns: 1fr auto; }
  .knowledge-filters { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1050px) {
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .knowledge-tools { grid-template-columns: 1fr; }
  .knowledge-filters { grid-column: 1; grid-row: auto; }
  .knowledge-count { justify-self: start; }
  .knowledge-grid { grid-template-columns: 1fr; }
  .knowledge-card { min-height: 0; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-visuals { grid-template-columns: 1fr; }
  .article-compare { grid-template-columns: 1fr; }
  .article-requirements { grid-template-columns: 1fr; }
  .article-steps li { grid-template-columns: 1fr; gap: 8px; }
  /* Телефон: подписи блоков были 12–13.5 px — для длинного чтения мелко.
     Поднимаем кегль до 15–16 px и добавляем воздух. */
  .article-requirements > div { min-height: 0; padding: 22px 20px 24px; }
  .article-requirements h3 { margin: 26px 0 10px; font-size: 22px; }
  .article-requirements p { font-size: 16px; line-height: 1.6; }
  .article-compare > div { padding: 22px 20px; }
  .article-compare h3 { font-size: 21px; }
  .article-compare p { font-size: 16px; line-height: 1.6; }
  .article-facts div { padding: 16px 18px; }
  .article-facts span { margin-bottom: 8px; font-size: 11px; letter-spacing: .1em; }
  /* Мелкие моношрифтовые подписи: ниже 11 px на телефоне читаются как шум */
  .article-toc__title,
  .article-takeaway__title,
  .article-mistakes__title { font-size: 11px; }
  .invite-guide__kicker { font-size: 12px; letter-spacing: .14em; }
  .invite-dashboard__grid span { font-size: 11px; }
  .article-facts b { font-size: 15px; line-height: 1.45; }
  .article-note { padding: 20px 18px; }
  .article-note b { font-size: 12px; }
  .article-note p { font-size: 16px; line-height: 1.62; }
  .article-warning { padding: 22px 20px; }
  .article-warning p { font-size: 16px; }
  .article-sources { padding: 22px 20px; }
  .article-sources li + li { margin-top: 4px; }
  .article-sources a { display: inline-block; padding-block: 9px; font-size: 16px; }
  .article-sources > p { font-size: 13.5px; }
  .article-limits li { padding: 22px 0 24px; }
  .article-limits li > i { font-size: 15px; }
  .article-limits small { margin-top: 12px; font-size: 14px; line-height: 1.5; }
  .article-limits__note { font-size: 13.5px; line-height: 1.55; }
  .invite-mechanism p { font-size: 16px; line-height: 1.6; }
  .invite-capabilities p { font-size: 16px; line-height: 1.6; }
  .invite-contrast p { font-size: 16px; line-height: 1.6; }
  .invite-contrast span { font-size: 11px; }
  .invite-statusboard p { font-size: 15.5px; line-height: 1.55; }
  .article-steps span { font-size: 16px; line-height: 1.62; }
  .article-steps b { font-size: 20px; }
  .invite-story,
  .invite-story--dashboard { grid-template-columns: 1fr; }
  .invite-story__copy { order: 1; }
  .invite-story__media,
  .invite-dashboard { order: 2; }
  .invite-story figcaption { order: 3; }
}
@media (max-width: 480px) {
  .draft-notice { padding: 14px; }
  .knowledge-tools { padding: 10px; }
  .knowledge-card { padding: 21px 19px; }
  .knowledge-card__number { font-size: 35px; }
  .knowledge-card__footer { align-items: flex-start; flex-direction: column; }
  .article-section { padding-block: 32px 36px; }
  .article-section__number { top: 34px; font-size: 38px; }
  .article-section h2 { margin-right: 52px; font-size: 31px; }
  .article-placeholder { padding: 18px; }
  .article-intro { padding: 20px; }
  .article-facts { grid-template-columns: 1fr; }
  .article-note { grid-template-columns: 1fr; gap: 8px; }
  .article-limits__head { grid-template-columns: 1fr; gap: 9px; }
  .article-limits ul { grid-template-columns: 1fr; }
  .article-limits li + li { padding-left: 0; border-left: 0; }
  .article-limits li + li::after { left: 0; }
  .article-limits li:last-child { border-bottom: 0; }
  .article-statuses { grid-template-columns: 1fr; }
  /* на телефоне вертикальная метка съедала ширину строки: она становится
     короткой чертой над заголовком, а текст получает всю ширину экрана */
  .article-statuses > div { min-height: 0; padding: 22px 0 24px; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .article-statuses > div:last-child { grid-column: auto; border-bottom: 0 !important; }
  .article-statuses > div::before { position: static; display: block; width: 26px; height: 3px; margin-bottom: 14px; }
  .article-statuses > div:hover::before { height: 3px; }
  .article-statuses > div::after { right: 0; left: 0; }
  .article-statuses b { font-size: 21px; }
  .article-statuses p { max-width: none; margin-top: 8px; font-size: 16px; line-height: 1.62; }
  .invite-story { padding: 19px; }
  .invite-story__media { min-height: 190px; }
  .invite-dashboard { padding: 17px; font-size: 12px; }
  .invite-dashboard__title { font-size: 21px; }
  .invite-dashboard__status { flex-wrap: wrap; margin-block: 17px 14px; font-size: 15px; }
  .invite-dashboard__accounts li { align-items: flex-start; flex-direction: column; gap: 1px; }
  .invite-dashboard__grid { grid-template-columns: 1fr; gap: 16px; }
  .article-next .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .knowledge-card,
  .knowledge-card::after,
  .knowledge-filter::after { transition: none; }
}

/* Published guide: inviting. Product screens are rebuilt as responsive HTML,
   never embedded from Telegram screenshots. */
.invite-guide { --guide-cyan: #22c8ff; --guide-cyan-soft: #8be5ff; }
.invite-guide .article-section__title { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 30px; }
.invite-guide .article-section__title .article-section__number { position: static; display: grid; place-items: center; width: 72px; min-height: 62px; color: color-mix(in srgb, var(--fg) 22%, transparent); font: 820 clamp(48px, 4.5vw, 64px)/.96 var(--font-head); font-variant-numeric: tabular-nums; text-align: center; transition: color .2s ease, filter .2s ease; }
.invite-guide .article-section__title h2 { max-width: 22ch; margin: 0; color: var(--fg); font: 800 clamp(48px, 4.5vw, 64px)/.96 var(--font-head); letter-spacing: -.03em; }
.invite-guide .article-section:hover .article-section__title .article-section__number { color: var(--accent-2); filter: drop-shadow(0 0 12px color-mix(in srgb, var(--accent) 72%, transparent)); }
.invite-guide .article-copy { max-width: 72ch; font: 500 clamp(19px, 1.5vw, 21px)/1.62 var(--font-body); }
.invite-guide__hero { position: relative; margin: 0 0 24px; padding: clamp(38px, 4.5vw, 54px); overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--line)); border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, var(--surface-1)), var(--surface-1) 62%); }
.invite-guide__hero::after { content: "MAX"; position: absolute; right: -12px; bottom: -30px; color: color-mix(in srgb, var(--fg) 4%, transparent); font: 820 clamp(100px, 16vw, 190px)/.7 var(--font-head); pointer-events: none; }
.invite-guide__kicker { display: block; margin-bottom: 22px; color: var(--accent-text); font: 760 13px/1.3 var(--font-mono); letter-spacing: .17em; }
.invite-guide__hero h2 { position: relative; z-index: 1; max-width: none; margin: 0; color: var(--fg); font: 800 clamp(56px, 5.2vw, 72px)/.92 var(--font-head); letter-spacing: -.04em; }
.invite-guide__hero > p { position: relative; z-index: 1; max-width: 56ch; margin: 30px 0 0; color: var(--fg-2); font: 500 clamp(20px, 1.6vw, 22px)/1.55 var(--font-body); }
.invite-guide__facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 35px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.invite-guide__facts span { padding: 18px; background: color-mix(in srgb, var(--surface-1) 94%, transparent); color: var(--fg-3); font-size: 13px; line-height: 1.45; }
.invite-guide__facts b { display: block; margin-bottom: 5px; color: var(--fg); font-size: 15px; }
.article-copy--lead { max-width: 70ch; font-size: clamp(18px, 2vw, 20px); }
.article-copy--lead b { color: var(--fg); }
.article-aside--invite li a::before { content: counter(toc); font-size: 12px; }
.invite-mechanism { margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.invite-mechanism li { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 20px; min-height: 156px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.invite-mechanism li::after { content: ""; position: absolute; right: 0; bottom: -1px; left: 92px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-mechanism li:hover::after { transform: scaleX(1); }
.invite-mechanism li > span { color: color-mix(in srgb, var(--fg) 18%, transparent); font: 800 50px/.9 var(--font-head); transition: color .2s ease; }
.invite-mechanism li > div { display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; gap: 7px 18px; align-content: center; }
.invite-mechanism .ico { grid-row: 1 / 3; align-self: center; width: 42px; height: 42px; color: var(--fg-2); transition: color .2s ease, filter .2s ease; }
.invite-mechanism li:hover > span,
.invite-mechanism li:hover .ico { color: var(--accent-2); }
.invite-mechanism li:hover .ico { filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 58%, transparent)); }
.invite-mechanism h3 { margin: 0; color: var(--fg); font: 770 27px/1 var(--font-head); }
.invite-mechanism p { margin: 0; color: var(--fg-3); font-size: 15px; line-height: 1.55; }
.invite-contrast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.invite-contrast > div { position: relative; min-height: 230px; padding: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-1); }
.invite-contrast > div::after { content: ""; position: absolute; right: 24px; bottom: 0; left: 24px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-contrast > div:hover::after { transform: scaleX(1); }
.invite-contrast .ico { width: 40px; height: 40px; margin-bottom: 42px; color: var(--fg-2); transition: color .2s ease, filter .2s ease; }
.invite-contrast > div:hover .ico { color: var(--accent-2); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 58%, transparent)); }
.invite-contrast span { display: block; margin-bottom: 10px; color: var(--accent-text); font: 730 10px/1 var(--font-mono); letter-spacing: .14em; }
.invite-contrast h3 { margin: 0 0 10px; color: var(--fg); font: 760 23px/1 var(--font-head); }
.invite-contrast p { margin: 0; color: var(--fg-3); font-size: 14px; line-height: 1.6; }
.invite-launchline { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 32px; border-block: 1px solid var(--line); }
.invite-launchline div { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; padding: 18px 12px; overflow: hidden; border-right: 1px solid var(--line); transition: background-color .2s ease; }
.invite-launchline div::after { content: ""; position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 68%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-launchline div:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.invite-launchline div:hover::after { transform: scaleX(1); }
.invite-launchline div:last-child { border-right: 0; }
.invite-launchline b { color: var(--fg-3); font: 780 20px/1 var(--font-head); transition: color .2s ease, filter .2s ease; }
.invite-launchline div:hover b { color: var(--accent-2); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 58%, transparent)); }
.invite-launchline span { color: var(--fg-2); font-size: 14px; }

.invite-control { margin-top: 42px; padding-block: 32px 6px; border-block: 1px solid var(--line); }
.invite-control__intro { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(300px, 1.3fr); gap: 12px 42px; align-items: end; padding-bottom: 28px; }
.invite-control__intro > span { grid-column: 1; color: var(--accent-text); font: 750 12px/1.35 var(--font-mono); letter-spacing: .16em; }
.invite-control__intro h3 { grid-column: 1; margin: 0; color: var(--fg); font: 800 clamp(30px, 3.1vw, 42px)/.96 var(--font-head); letter-spacing: -.025em; }
.invite-control__intro p { grid-column: 2; grid-row: 1 / 3; align-self: end; max-width: 42ch; margin: 0; color: var(--fg-3); font-size: 18px; line-height: 1.55; }
.invite-capabilities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.invite-capabilities article { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 18px; min-height: 142px; padding: 26px 24px 25px 0; overflow: hidden; border-bottom: 1px solid var(--line); }
.invite-capabilities article:nth-child(odd) { padding-right: 28px; border-right: 1px solid var(--line); }
.invite-capabilities article:nth-child(even) { padding-left: 28px; }
.invite-capabilities article::after { content: ""; position: absolute; right: 24px; bottom: 0; left: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 68%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-capabilities article:nth-child(even)::after { left: 28px; }
.invite-capabilities article:hover::after { transform: scaleX(1); }
.invite-capabilities .ico { width: 38px; height: 38px; color: var(--fg-2); transition: color .2s ease, filter .2s ease; }
.invite-capabilities article:hover .ico { color: var(--accent-2); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 58%, transparent)); }
.invite-capabilities h3 { margin: 0 0 8px; color: var(--fg); font: 790 25px/1 var(--font-head); }
.invite-capabilities p { margin: 0; color: var(--fg-3); font-size: 15.5px; line-height: 1.5; }
.invite-control__note { margin: 0; padding: 24px 0; color: var(--fg-2); font-size: 17px; line-height: 1.55; }
.invite-control__note b { color: var(--fg); }

.invite-stage { position: relative; margin: 42px 0 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 62%, var(--line)); border-radius: 22px; background: #05080c; box-shadow: 0 25px 65px rgba(0, 0, 0, .18); color: #f6fbff; }
.invite-stage__head { display: flex; align-items: center; padding: 22px 26px; border-bottom: 1px solid rgba(104, 205, 255, .18); background: #070c12; }
.invite-stage__head > div { min-width: 0; }
.invite-stage__head b { display: block; color: #fff; font: 760 23px/1 var(--font-head); }
.invite-stage__head p { margin: 6px 0 0; color: #8190a3; font-size: 13px; }
.invite-stage__screen { min-height: 540px; }
.invite-stage figcaption { display: block; margin: 0; padding: 20px 26px 23px; border-top: 1px solid rgba(104, 205, 255, .18); color: #8d9bad; font-size: 15px; line-height: 1.55; }
.invite-stage figcaption b { color: #eaf8ff; }

.invite-community { position: relative; display: grid; align-content: center; justify-items: center; padding: 54px 24px; overflow: hidden; text-align: center; background: radial-gradient(circle at 50% 45%, rgba(14, 137, 196, .22), transparent 28%), linear-gradient(155deg, #0b1119, #05070b 64%); }
.invite-community::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(72, 198, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(72, 198, 255, .16) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 75%, transparent); }
.invite-community__signal { position: absolute; top: 25px; left: 26px; display: flex; gap: 6px; }
.invite-community__signal i { width: 7px; height: 7px; border-radius: 50%; background: rgba(139, 229, 255, .35); }
.invite-community__signal i:first-child { background: var(--guide-cyan); box-shadow: 0 0 15px var(--guide-cyan); }
.invite-community img { position: relative; z-index: 1; width: 148px; height: 148px; border: 1px solid rgba(81, 209, 255, .45); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px rgba(34, 200, 255, .05), 0 22px 60px rgba(0, 0, 0, .5); }
.invite-community__eyebrow { position: relative; z-index: 1; margin: 28px 0 12px; color: var(--guide-cyan); font: 740 11px/1 var(--font-mono); letter-spacing: .18em; }
.invite-community h3 { position: relative; z-index: 1; margin: 0; color: #fff; font: 790 clamp(42px, 7vw, 72px)/.9 var(--font-head); letter-spacing: -.03em; }
.invite-community__sub { position: relative; z-index: 1; margin: 16px 0 0; color: #91a0b1; font-size: 17px; }
.invite-community--result { background: radial-gradient(circle at 50% 36%, rgba(19, 164, 224, .25), transparent 29%), linear-gradient(150deg, #08141d, #05070b 70%); }
.invite-community--result img { width: 126px; height: 126px; }
.invite-community__count { position: relative; z-index: 1; display: grid; justify-items: center; gap: 13px; width: 100%; margin-top: 24px; text-align: center; }
.invite-community__count strong { display: block; color: var(--guide-cyan); font: 820 clamp(76px, 12vw, 132px)/.78 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.04em; text-align: center; text-shadow: 0 0 28px rgba(34, 200, 255, .28); }
.invite-community__count span { color: #dce7ef; font: 720 20px/1 var(--font-head); }

.invite-dashboard { position: relative; min-width: 0; min-height: 600px; padding: clamp(27px, 5vw, 50px); overflow: hidden; border: 0; border-radius: 0; background: radial-gradient(circle at 88% 8%, rgba(34, 200, 255, .12), transparent 31%), linear-gradient(145deg, #071019, #05080c 68%); box-shadow: none; color: #f5fbff; font: 500 16px/1.45 var(--font-body); }
.invite-dashboard::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(78, 188, 235, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(78, 188, 235, .22) 1px, transparent 1px); background-size: 48px 48px; }
.invite-dashboard > * { position: relative; z-index: 1; }
.invite-dashboard__top { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.invite-dashboard__title { display: flex; gap: 12px; align-items: center; font: 780 32px/1 var(--font-head); }
.invite-dashboard__title .ico { width: 31px; height: 31px; color: var(--guide-cyan-soft); }
.invite-dashboard__live { display: inline-flex; gap: 9px; align-items: center; color: #8edfa9; font: 730 11px/1 var(--font-mono); letter-spacing: .12em; }
.invite-dashboard__live i, .invite-dashboard__accounts li i { width: 8px; height: 8px; border-radius: 50%; background: #58db8b; box-shadow: 0 0 13px rgba(88, 219, 139, .8); }
.invite-dashboard__timer { display: flex; align-items: baseline; gap: 13px; margin: 30px 0; }
.invite-dashboard__timer b { color: #fff; font: 800 clamp(44px, 8vw, 78px)/.8 var(--font-head); letter-spacing: -.03em; }
.invite-dashboard__timer span { color: #77879a; font-size: 13px; }
.invite-dashboard__accounts { padding: 22px; border: 1px solid rgba(91, 211, 255, .28); border-left: 3px solid var(--guide-cyan); border-radius: 14px; background: rgba(16, 40, 47, .72); }
.invite-dashboard__accounts-title { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 15px; }
.invite-dashboard__accounts-title b { color: #fff; font-size: 18px; }
.invite-dashboard__accounts-title span { color: #74da9a; font-size: 13px; }
.invite-dashboard__accounts ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.invite-dashboard__accounts li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border-radius: 9px; background: rgba(255,255,255,.04); }
.invite-dashboard__accounts li span { display: inline-flex; gap: 8px; align-items: center; color: #ddedf5; }
.invite-dashboard__accounts li b { color: #8da0b2; font-size: 12px; }
.invite-dashboard__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 24px; overflow: hidden; border: 1px solid rgba(91, 211, 255, .18); border-radius: 14px; background: rgba(91, 211, 255, .16); }
.invite-dashboard__grid > div { min-width: 0; padding: 21px 18px; background: #091018; text-align: center; }
.invite-dashboard__grid span { display: block; color: #728398; font: 700 9px/1 var(--font-mono); letter-spacing: .12em; }
.invite-dashboard__grid strong { display: block; margin: 12px 0 8px; color: #fff; font: 800 38px/.8 var(--font-head); font-variant-numeric: tabular-nums; text-align: center; }
.invite-dashboard__grid > div:first-child strong { color: #6ee49a; }
.invite-dashboard__grid small { display: block; min-height: 2.8em; color: #78889a; font-size: 11px; line-height: 1.4; }
.invite-dashboard__queue { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; margin-top: 25px; color: #8b9caf; font-size: 13px; }
.invite-dashboard__queue b { color: #eef9ff; }
.invite-dashboard__queue > i { grid-column: 1 / -1; height: 5px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.08); }
.invite-dashboard__queue em { display: block; height: 100%; min-width: 9px; background: var(--guide-cyan); box-shadow: 0 0 12px var(--guide-cyan); }

.invite-statusboard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 30px; overflow: hidden; border-block: 1px solid var(--line); }
.invite-statusboard > div { position: relative; display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-content: center; min-height: 132px; padding: 23px 22px; overflow: hidden; border-bottom: 1px solid var(--line); background: transparent; }
.invite-statusboard > div:nth-child(odd) { border-right: 1px solid var(--line); }
.invite-statusboard > div:nth-last-child(-n+2) { border-bottom: 0; }
.invite-statusboard > div::after { content: ""; position: absolute; right: 22px; bottom: 0; left: 22px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-statusboard > div:hover::after { transform: scaleX(1); }
.invite-statusboard strong { grid-row: 1 / 3; align-self: center; color: var(--fg-3); font: 800 38px/1 var(--font-head); transition: color .2s ease, filter .2s ease; }
.invite-statusboard > div:hover strong { color: var(--accent-2); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 58%, transparent)); }
.invite-statusboard h3 { margin: 0 0 7px; color: var(--fg); font: 770 23px/1 var(--font-head); }
.invite-statusboard p { margin: 0; color: var(--fg-3); font-size: 14px; line-height: 1.5; }
.invite-guide__rule { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 28px; margin-top: 28px; padding: 26px 0; overflow: hidden; border-block: 1px solid var(--line); }
.invite-guide__rule::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-guide__rule:hover::after { transform: scaleX(1); }
.invite-guide__rule span { color: var(--accent-text); font: 740 10px/1.5 var(--font-mono); letter-spacing: .14em; transition: filter .2s ease; }
.invite-guide__rule:hover span { filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 60%, transparent)); }
.invite-guide__rule p { margin: 0; color: var(--fg-2); font-size: 17px; line-height: 1.6; }
.invite-guide__rule b { color: var(--fg); }
.invite-faq { display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden; border-block: 1px solid var(--line); }
.invite-faq > div { position: relative; min-height: 0; padding: 24px 26px; overflow: hidden; border-bottom: 1px solid var(--line); background: transparent; }
.invite-faq > div:nth-child(odd) { border-right: 1px solid var(--line); }
.invite-faq > div:nth-last-child(-n+2) { border-bottom: 0; }
.invite-faq > div::after { content: ""; position: absolute; right: 26px; bottom: 0; left: 26px; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 68%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.invite-faq > div:hover::after { transform: scaleX(1); }
.invite-faq h3 { margin: 0 0 9px; color: var(--fg); font: 800 24px/1.08 var(--font-head); }
.invite-faq p { margin: 0; color: var(--fg-3); font-size: 16px; line-height: 1.52; }
.invite-conversion { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(34px, 5vw, 68px); align-items: center; margin: 58px 0 34px; padding: clamp(34px, 5vw, 58px); scroll-margin-top: 120px; border: 1px solid color-mix(in srgb, var(--accent) 58%, var(--line)); border-radius: 22px; background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, var(--surface-1)), var(--surface-1) 66%); }
.invite-conversion__copy > span { color: var(--accent-text); font: 760 12.5px/1.35 var(--font-mono); letter-spacing: .17em; }
.invite-conversion__copy h2 { max-width: 13ch; margin: 18px 0 22px; color: var(--fg); font: 800 clamp(42px, 4.3vw, 60px)/.94 var(--font-head); letter-spacing: -.035em; }
.invite-conversion__copy p { max-width: 50ch; margin: 0; color: var(--fg-2); font: 500 19px/1.58 var(--font-body); }
.invite-conversion__action { min-width: 0; }
.invite-conversion__action .tg-cta { min-height: 92px; }
/* высота 44 px: ссылка рядом с кнопкой должна попадать пальцем */
.invite-conversion__action > a:not(.tg-cta) { position: relative; display: inline-flex; gap: 9px; align-items: center; min-height: 44px; margin-top: 18px; padding-bottom: 5px; color: var(--fg-2); font-weight: 750; }
.invite-conversion__action > a:not(.tg-cta)::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.invite-conversion__action > a:not(.tg-cta):hover { color: var(--accent-2); text-decoration: none; }
.invite-conversion__action > a:not(.tg-cta):hover::after { transform: scaleX(1); }
.invite-conversion__action > a .ico { width: 18px; height: 18px; }
.invite-conversion__action small { display: block; max-width: 48ch; margin-top: 18px; color: var(--fg-3); font-size: 13px; line-height: 1.5; }

[data-theme="light"] .invite-stage { border-color: color-mix(in srgb, var(--accent) 72%, #c7d5e0); background: #f7fbff; box-shadow: 0 24px 54px rgba(31, 92, 132, .12); color: #071725; }
[data-theme="light"] .invite-stage__head { border-bottom-color: rgba(18, 132, 190, .2); background: #f2f8fc; }
[data-theme="light"] .invite-stage__head b { color: #071725; }
[data-theme="light"] .invite-stage__head p { color: #607487; }
[data-theme="light"] .invite-stage figcaption { border-top-color: rgba(18, 132, 190, .2); background: #f7fbff; color: #5a6f82; }
[data-theme="light"] .invite-stage figcaption b { color: #0a1d2d; }
[data-theme="light"] .invite-community { background: radial-gradient(circle at 50% 45%, rgba(41, 179, 235, .18), transparent 30%), linear-gradient(150deg, #fafdff, #edf7fd 70%); }
[data-theme="light"] .invite-community::before { opacity: .3; background-image: linear-gradient(rgba(16, 136, 192, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 136, 192, .15) 1px, transparent 1px); }
[data-theme="light"] .invite-community h3 { color: #071725; }
[data-theme="light"] .invite-community__sub { color: #607487; }
[data-theme="light"] .invite-community--result { background: radial-gradient(circle at 50% 36%, rgba(41, 179, 235, .19), transparent 31%), linear-gradient(150deg, #fafdff, #eef8fd 72%); }
[data-theme="light"] .invite-community__count span { color: #21394c; }
[data-theme="light"] .invite-dashboard { background: radial-gradient(circle at 88% 8%, rgba(34, 183, 238, .13), transparent 32%), linear-gradient(145deg, #fbfdff, #edf7fc 72%); color: #071725; }
[data-theme="light"] .invite-dashboard::before { opacity: .22; background-image: linear-gradient(rgba(24, 144, 196, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 144, 196, .15) 1px, transparent 1px); }
[data-theme="light"] .invite-dashboard__title { color: #071725; }
[data-theme="light"] .invite-dashboard__timer b { color: #071725; }
[data-theme="light"] .invite-dashboard__timer span { color: #55697c; }
[data-theme="light"] .invite-dashboard__accounts { border-color: rgba(25, 151, 205, .27); background: rgba(255, 255, 255, .73); box-shadow: 0 13px 30px rgba(25, 93, 132, .08); }
[data-theme="light"] .invite-dashboard__accounts-title b { color: #071725; }
[data-theme="light"] .invite-dashboard__accounts li { background: rgba(21, 141, 193, .055); }
[data-theme="light"] .invite-dashboard__accounts li span { color: #1e3b4f; }
[data-theme="light"] .invite-dashboard__accounts li b { color: #3d5468; }
[data-theme="light"] .invite-dashboard__grid { border-color: rgba(25, 151, 205, .2); background: rgba(25, 151, 205, .18); }
[data-theme="light"] .invite-dashboard__grid > div { background: rgba(255, 255, 255, .82); }
[data-theme="light"] .invite-dashboard__grid span { color: #55697c; }
[data-theme="light"] .invite-dashboard__grid strong { color: #071725; }
[data-theme="light"] .invite-dashboard__grid > div:first-child strong { color: #168d58; }
[data-theme="light"] .invite-dashboard__grid small { color: #55697c; }
[data-theme="light"] .invite-dashboard__queue { color: #617589; }
[data-theme="light"] .invite-dashboard__queue b { color: #071725; }
[data-theme="light"] .invite-dashboard__queue > i { background: rgba(11, 61, 91, .1); }
/* Светлая тема: подписи внутри макета интерфейса раньше брали «ночные» цвета
   (голубой и зелёный) и на светлом фоне давали контраст 1.7–1.9. */
[data-theme="light"] .invite-community__eyebrow { color: #0b6f9e; }
[data-theme="light"] .invite-dashboard__accounts-title span { color: #14804f; }
[data-theme="light"] .invite-dashboard__live { color: #0d6b45; }


@media (max-width: 1080px) {
  .invite-dashboard__accounts ul { grid-template-columns: 1fr; }
  .invite-dashboard__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .article-aside--invite { display: none; }
  .article-layout--wide { padding-top: 76px; }
  .article-rail .home-rail__current { min-width: auto; font-size: 13px; }
  .article-rail .home-rail__links { justify-content: flex-start; }
  .article-rail .home-rail__links a { padding-inline: 10px; font-size: 12px; }
  /* Телефон: заголовок раздела — навигационный маркер, а не баннер. Крупный
     кегль занимал по три строки и выталкивал текст за сгиб, поэтому номер
     переехал строкой выше, а заголовок получил всю ширину экрана. */
  /* На телефоне липкая лента разделов наезжала на текст и дублировала
     оглавление в начале статьи — оставляем только оглавление. */
  .article-rail-wrap { display: none; }
  .article-layout--wide { padding-top: 0; }
  .invite-guide .article-section__title { grid-template-columns: 1fr; gap: 7px; margin-bottom: 16px; }
  .invite-guide .article-section__title .article-section__number { justify-self: start; width: auto; min-height: 0; color: var(--accent-text); font: 800 15px/1 var(--font-mono); letter-spacing: .08em; }
  .invite-guide .article-section:hover .article-section__title .article-section__number { color: var(--accent-text); filter: none; }
  .invite-guide .article-section__title h2 { max-width: none; font-size: clamp(26px, 7.2vw, 32px); line-height: 1.08; }
  .invite-guide .article-copy { font-size: 17px; line-height: 1.62; }
  .invite-guide .article-copy--lead { font-size: 18px; line-height: 1.6; }
  .invite-guide .article-copy p + p { margin-top: 16px; }
  .invite-guide__hero { margin-inline: -2px; padding: 26px 20px 24px; }
  .invite-guide__hero h2 { max-width: none; font-size: clamp(28px, 7.8vw, 36px); line-height: 1.06; letter-spacing: -.022em; text-transform: none; }
  .invite-guide__hero > p { font-size: 17px; line-height: 1.6; }
  .invite-guide__facts { grid-template-columns: 1fr; }
  .invite-mechanism li { grid-template-columns: 42px 1fr; gap: 12px; min-height: 132px; padding: 22px 0; }
  .invite-mechanism li::after { left: 54px; }
  .invite-mechanism li > span { padding-top: 3px; font-size: 36px; }
  .invite-mechanism li > div { grid-template-columns: 38px 1fr; gap: 7px 12px; }
  .invite-mechanism .ico { width: 32px; height: 32px; }
  .invite-mechanism h3 { font-size: 23px; }
  .invite-mechanism p { font-size: 15px; }
  .invite-contrast { grid-template-columns: 1fr; }
  .invite-contrast > div { min-height: 0; }
  .invite-contrast .ico { margin-bottom: 25px; }
  .invite-launchline { grid-template-columns: repeat(2, 1fr); }
  .invite-launchline div:nth-child(2) { border-right: 0; }
  .invite-launchline div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .invite-control { margin-top: 32px; padding-top: 26px; }
  .invite-control__intro { grid-template-columns: 1fr; gap: 10px; padding-bottom: 22px; }
  .invite-control__intro > span,
  .invite-control__intro h3,
  .invite-control__intro p { grid-column: 1; grid-row: auto; }
  .invite-control__intro h3 { font-size: 32px; }
  .invite-control__intro p { font-size: 16px; }
  .invite-capabilities { grid-template-columns: 1fr; }
  .invite-capabilities article,
  .invite-capabilities article:nth-child(odd),
  .invite-capabilities article:nth-child(even) { grid-template-columns: 40px 1fr; gap: 15px; min-height: 0; padding: 21px 0; border-right: 0; }
  .invite-capabilities article:nth-child(even)::after { left: 0; }
  .invite-capabilities h3 { font-size: 22px; }
  .invite-capabilities p { font-size: 15px; }
  .invite-control__note { padding-block: 20px; font-size: 16px; }
  .invite-stage { margin-inline: -4px; border-radius: 18px; }
  .invite-stage__head { padding: 19px; }
  .invite-stage__head b { font-size: 21px; }
  .invite-stage__screen { min-height: 0; }
  .invite-community { min-height: 430px; padding: 34px 18px; }
  .invite-community img { width: 112px; height: 112px; }
  .invite-community__eyebrow { margin: 20px 0 10px; }
  .invite-community h3 { font-size: clamp(34px, 10.5vw, 46px); }
  .invite-community__sub { margin-top: 12px; font-size: 16px; }
  .invite-stage figcaption { padding: 18px 20px 20px; font-size: 16px; line-height: 1.48; }
  .invite-dashboard { min-height: 0; padding: 22px 18px 25px; font-size: 16px; }
  .invite-dashboard__top { align-items: flex-start; }
  .invite-dashboard__title { font-size: 27px; }
  .invite-dashboard__timer { display: block; }
  .invite-dashboard__timer { margin: 24px 0; }
  .invite-dashboard__timer b { display: block; margin-bottom: 9px; font-size: 54px; }
  .invite-dashboard__timer span { font-size: 14px; }
  .invite-dashboard__accounts { padding: 17px; }
  .invite-dashboard__accounts-title { align-items: flex-start; flex-direction: column; gap: 5px; }
  .invite-dashboard__accounts li { padding: 12px; }
  .invite-dashboard__accounts li b { font-size: 13px; }
  .invite-dashboard__grid { grid-template-columns: 1fr 1fr; }
  .invite-dashboard__grid > div { padding: 17px 14px; }
  .invite-dashboard__grid span { font-size: 10px; }
  .invite-dashboard__grid strong { font-size: 34px; }
  .invite-dashboard__grid small { font-size: 12px; }
  .invite-dashboard__queue { font-size: 14px; }
  .invite-statusboard, .invite-faq { grid-template-columns: 1fr; }
  .invite-statusboard > div { min-height: 108px; padding: 22px 0; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .invite-statusboard > div:last-child { border-bottom: 0 !important; }
  .invite-statusboard strong { font-size: 34px; }
  .invite-statusboard h3 { font-size: 21px; }
  .invite-guide__rule { grid-template-columns: 1fr; gap: 9px; }
  .invite-faq > div { padding: 24px 0; border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .invite-faq > div:last-child { border-bottom: 0 !important; }
  .invite-faq > div::after { right: 0; left: 0; }
  .invite-faq h3 { margin-bottom: 7px; font-size: 22px; }
  .invite-faq p { font-size: 16px; line-height: 1.5; }
  .invite-conversion { grid-template-columns: 1fr; gap: 28px; margin-top: 38px; padding: 28px 20px; }
  .invite-conversion__copy h2 { max-width: none; font-size: clamp(34px, 10vw, 44px); }
  .invite-conversion__copy p { font-size: 17px; }
  .invite-conversion__action .tg-cta { min-height: 74px; }
}
@media (max-width: 390px) {
  .invite-launchline { grid-template-columns: 1fr; }
  .invite-launchline div { border-right: 0; border-bottom: 1px solid var(--line); }
  .invite-launchline div:last-child { border-bottom: 0; }
  .invite-stage__head p { display: none; }
  .invite-dashboard__live { font-size: 9px; }
  .invite-dashboard__grid { grid-template-columns: 1fr; }
  .invite-community img { width: 126px; height: 126px; }
  .invite-community__count { display: grid; justify-items: center; gap: 8px; }
  .invite-community__count strong { font-size: 94px; }
}
@media (prefers-reduced-motion: reduce) {
  .invite-contrast > div::after,
  .invite-contrast .ico,
  .invite-statusboard > div::after,
  .invite-statusboard strong { transition: none; }
  /* блоки статей базы знаний: подсветка остаётся, движение выключается */
  .article-statuses > div::before,
  .article-statuses > div::after,
  .article-requirements > div,
  .article-requirements > div::after,
  .article-requirements span,
  .article-steps li::before,
  .article-steps li::after,
  .article-facts div,
  .article-facts div::after,
  .article-facts span,
  .article-facts b,
  .invite-guide__rule::after,
  .invite-guide__rule span,
  .article-limits li::after,
  .article-limits b { transition: none; }
  .article-requirements > div:hover { transform: none; }
}

/* 51. Editorial update pages: one MaxRunner visual contract for feed and article. */
.updates-list { display: grid; gap: clamp(22px, 3vw, 34px); }
.update-card {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: 0;
  align-items: stretch;
  min-height: 430px;
  padding: 0;
  border-radius: 24px;
}
.update-card--without-media { grid-template-columns: minmax(0, 1fr); min-height: 340px; }
.update-card__content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(34px, 4vw, 56px);
}
.update-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  margin-bottom: clamp(30px, 4vw, 54px);
}
.update-card__meta time,
.update-card__meta span { position: relative; font-size: 13px; letter-spacing: .12em; }
.update-card__meta span::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  margin: 0 12px 4px 0;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 55%, transparent);
}
.update-card__copy { gap: 20px; max-width: 760px; }
.update-card h2 {
  max-width: 15ch;
  font-size: clamp(34px, 4vw, 58px);
  line-height: .98;
  letter-spacing: -.035em;
}
.update-card__copy > p.update-card__excerpt {
  max-width: 64ch;
  color: var(--fg-2);
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.62;
  white-space: normal;
}
.update-card__facts { gap: 10px; margin-top: 4px; }
.update-card__facts span { padding: 8px 12px; border-radius: 4px; font-size: 12px; letter-spacing: .045em; }
.update-card__result {
  max-width: 680px;
  margin-top: 26px;
  padding: 20px 0 0 22px;
  border-top: 1px solid var(--line);
  border-left: 2px solid var(--accent);
}
.update-card__result b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.update-card__result span { max-width: 62ch; font-size: 16px; }
.update-card__open { position: relative; margin-top: auto; padding-top: 34px; font-size: 15px; }
.update-card__open::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 64%, transparent);
  transform: scaleX(.18);
  transform-origin: left;
  transition: transform .22s ease;
}
.update-card:hover .update-card__open::after,
.update-card:focus-visible .update-card__open::after { transform: scaleX(1); }
.update-card__media {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 430px;
  margin: 0;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
  border-radius: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 10%, #03070c), #03070c 58%);
  box-shadow: none;
}
.update-card__media img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: center; }
[data-theme="light"] .update-card__media { background: color-mix(in srgb, var(--accent) 7%, #f8fbff); }

.update-detail-section { padding-top: clamp(48px, 6vw, 86px); }
.update-article {
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: clamp(36px, 6vw, 82px);
  align-items: start;
}
.update-article--without-media { grid-template-columns: minmax(0, 920px); justify-content: center; }
.update-article__body {
  gap: 30px;
  min-width: 0;
  padding: clamp(34px, 4.5vw, 62px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-1);
  box-shadow: 0 24px 74px rgba(0, 0, 0, .12);
}
.update-article__body::after {
  content: "";
  display: block;
  width: 84px;
  height: 2px;
  margin-top: 4px;
  background: var(--accent);
  box-shadow: 0 0 13px color-mix(in srgb, var(--accent) 58%, transparent);
}
.update-article__body > .eyebrow { margin: 0; }
.update-article__media { position: sticky; top: 104px; width: 100%; margin: 0; border-radius: 24px; background: #03070c; }
.update-article__media img { width: 100%; height: auto; }
.update-story { display: grid; gap: 0; }
.update-story__lead {
  margin: 0 0 30px;
  color: var(--fg);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 720;
  line-height: 1.24;
  letter-spacing: -.02em;
}
.update-story__heading {
  position: relative;
  margin: 40px 0 14px;
  padding-bottom: 13px;
  color: var(--fg);
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.12;
}
.update-story__heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 54px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 11px color-mix(in srgb, var(--accent) 62%, transparent);
}
.update-story__paragraph {
  margin: 12px 0 0;
  color: var(--fg-2);
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.72;
}
.update-story__list {
  display: grid;
  gap: 0;
  margin: 10px 0 18px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.update-story__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  font-size: clamp(18px, 1.55vw, 21px);
  font-weight: 700;
  line-height: 1.48;
}
.update-story__list .ico {
  width: 26px;
  height: 26px;
  color: var(--fg-2);
  transition: color .2s ease, filter .2s ease, transform .2s ease;
}
.update-story__list li:hover .ico {
  color: var(--accent);
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--accent) 58%, transparent));
  transform: translateX(2px);
}
.update-story__note {
  margin: 32px 0 0;
  padding: 22px 24px;
  border-left: 2px solid var(--accent);
  color: var(--fg);
  background: color-mix(in srgb, var(--accent) 6%, transparent);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 730;
  line-height: 1.55;
}
.update-inline-link {
  position: relative;
  display: inline-flex;
  padding-bottom: 2px;
  color: var(--accent);
  font-weight: 780;
  text-decoration: none;
}
.update-inline-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 65%, transparent);
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .2s ease;
}
.update-inline-link:hover::after,
.update-inline-link:focus-visible::after { transform: scaleX(1); }
.update-story__contacts {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.update-story__contacts > .eyebrow { margin: 0 0 18px; }
.update-story__contacts > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.update-story__contacts a {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 22px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 16px 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--fg);
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.update-story__contacts a::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 60px;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 62%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.update-story__contacts a:hover,
.update-story__contacts a:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.update-story__contacts a:hover::after,
.update-story__contacts a:focus-visible::after { transform: scaleX(1); }
.update-story__contacts .ico { width: 26px; height: 26px; color: var(--fg-2); transition: color .2s ease, filter .2s ease; }
.update-story__contacts a:hover .ico,
.update-story__contacts a:focus-visible .ico { color: var(--accent); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 62%, transparent)); }
.update-story__contacts span { min-width: 0; }
.update-story__contacts b { display: block; font-size: 16px; line-height: 1.2; }
.update-story__contacts small { display: block; margin-top: 5px; color: var(--fg-3); font-size: 12px; }
.update-article__body .update-card__facts { margin-top: 4px; }
.update-article__body .update-card__result {
  max-width: none;
  margin-top: 4px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 8px;
}
[data-theme="light"] .update-article__body { background: rgba(255, 255, 255, .88); box-shadow: 0 26px 70px rgba(19, 43, 67, .09); }
.update-article__footer { margin-top: clamp(42px, 6vw, 76px); padding-top: 30px; }

@media (max-width: 980px) {
  .update-card { grid-template-columns: minmax(0, 1fr) minmax(250px, 310px); }
  .update-card--without-media { grid-template-columns: minmax(0, 1fr); }
  .update-card__media { grid-column: 2; }
  .update-card h2 { font-size: clamp(32px, 5vw, 48px); }
  .update-article { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 30px; }
}
@media (max-width: 760px) {
  .update-card,
  .update-card--without-media { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .update-card__content { padding: 28px 22px 30px; }
  .update-card__meta { margin-bottom: 28px; }
  .update-card h2 { max-width: 18ch; font-size: clamp(30px, 9vw, 42px); }
  .update-card__copy > p.update-card__excerpt { font-size: 18px; }
  .update-card__media {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    border-top: 1px solid color-mix(in srgb, var(--accent) 42%, var(--line));
    border-left: 0;
  }
  .update-card__media img { height: auto; min-height: 0; object-fit: contain; }
  .update-article,
  .update-article--without-media { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .update-article__body { padding: 28px 22px 32px; border-radius: 20px; }
  .update-article__media { position: static; width: 100%; border-radius: 20px; }
  .update-story__lead { font-size: clamp(25px, 7.5vw, 34px); }
  .update-story__heading { margin-top: 34px; font-size: 26px; }
  .update-story__paragraph,
  .update-story__list li { font-size: 18px; }
  .update-story__contacts > div { grid-template-columns: 1fr; }
  .update-story__contacts a { min-height: 76px; }
  .update-article__footer { display: grid; }
  .update-article__footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .update-card__open::after,
  .update-story__list .ico { transition: none; }
  .update-inline-link::after,
  .update-story__contacts a,
  .update-story__contacts a::after,
  .update-story__contacts .ico { transition: none; }
}

/* --------------------------------------------------------------------------
   Статьи базы знаний на телефоне: типографический ритм
   --------------------------------------------------------------------------
   Замер справок Stripe, Intercom, Notion, Яндекса и прямого конкурента показал
   один и тот же приём: на узком экране заголовки НЕ кричат кеглем, они держатся
   на весе и воздухе, а разница между разделами задаётся отступом в 2–3 раза
   больше межабзацного. У нас заголовки разделов были 32–40px и ломались на три
   строки — страница читалась как афиша, а не как инструкция.
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  body:has(.invite-guide) .page-head h1 { font-size: 26px; line-height: 1.14; letter-spacing: -.02em; }
  body:has(.invite-guide) .page-head .lead { font-size: 17px; line-height: 1.58; }

  .invite-guide__hero { margin-inline: 0; padding: 22px 20px 21px; }
  .invite-guide__hero h2 { font-size: 27px; line-height: 1.14; letter-spacing: -.02em; }
  .invite-guide__hero > p { font-size: 17px; line-height: 1.6; }
  .invite-guide__kicker { font-size: 11px; letter-spacing: .16em; }

  /* воздух между разделами — 40px против 16px между абзацами */
  .invite-guide .article-section { padding-block: 0; margin-top: 40px; }
  .invite-guide .article-section__title { grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: baseline; margin-bottom: 16px; }
  .invite-guide .article-section__title .article-section__number { width: 28px; min-height: 0; font-size: 21px; line-height: 1.2; text-align: left; }
  .invite-guide .article-section__title h2 { font-size: 21px; line-height: 1.22; letter-spacing: -.015em; }

  .invite-guide .article-copy { max-width: none; font-size: 17px; line-height: 1.6; }
  .invite-guide .article-copy p + p { margin-top: 16px; }
  .invite-guide .article-copy--lead { font-size: 17.5px; }

  /* подзаголовки внутри блоков перестают мельчить текст: вес вместо кегля */
  .invite-mechanism h3,
  .invite-capabilities h3,
  .invite-contrast h3,
  .invite-statusboard h3,
  .invite-faq h3,
  .article-compare h3,
  .article-requirements h3,
  .article-mistakes b,
  .article-glossary dt,
  .article-statuses b { font-size: 17px; font-weight: 750; line-height: 1.3; }
  .invite-control__intro h3,
  .article-glossary summary { font-size: 19px; }

  .invite-mechanism p,
  .invite-capabilities p,
  .invite-contrast p,
  .invite-statusboard p,
  .invite-faq p,
  .article-compare p,
  .article-requirements p,
  .article-mistakes p,
  .article-glossary dd,
  .article-steps span,
  .article-limits li > i { font-size: 16px; line-height: 1.58; }
  .article-takeaway li { font-size: 16.5px; line-height: 1.55; }

  .invite-mechanism li { min-height: 0; }
  .invite-statusboard > div { min-height: 0; }
  .invite-guide__rule p { font-size: 17px; line-height: 1.6; }
  .article-note p { font-size: 16px; line-height: 1.58; }
  .article-warning b { font-size: 17px; }
  .article-warning p { font-size: 16px; line-height: 1.6; }

  /* цифры лимитов остаются крупными — это и есть их смысл */
  .article-limits b { font-size: 40px; }
  .article-limits li > span { font-size: 16px; }

  /* кнопки: 52px — общий стандарт удобного нажатия */
  .invite-conversion__action .btn,
  .article-next .btn { min-height: 52px; font-size: 16px; }
  .invite-conversion__action > a { min-height: 48px; display: inline-flex; align-items: center; }
  .article-sources li a { display: inline-block; padding-block: 6px; }
  /* мелкие моно-подписи: 9–10px нечитаемы на телефоне, поднимаем до 11 */
  .article-facts span,
  .invite-contrast span,
  .invite-control__intro > span,
  .article-mistakes__title,
  .article-limits__head > span,
  .invite-guide__rule span { font-size: 11px; letter-spacing: .12em; }
  .article-facts b { font-size: 15px; }
  .article-limits small { font-size: 13.5px; line-height: 1.5; }
  .article-limits__note { font-size: 13.5px; line-height: 1.55; }
}
