/*
 * RootClick Influence Agency — стили лендинга. Редизайн 08.09.2026 под новую айдентику:
 * знак «//» (две красные диагонали), ROOTCLICK (ROOT белый / CLICK красный), INFLUENCE AGENCY.
 * Характер: dark · fast · sharp · premium · minimal · performance. Ориентир площади: ~75% чёрный/графит,
 * ~18% белый/серый, ~7% красный. Красный — только сигнал: CTA, активные состояния, цифры, стрелки, линии.
 * Типографика: Manrope (заголовки и текст), JetBrains Mono (номера, метрики, лейблы),
 * Sofia Sans Condensed Italic (акцентные слова вместо граффити). Логотип — только ассеты из мастера.
 * Логотип CSS не воспроизводится. Зелёного, граффити, короны и брызг нет.
 */

:root {
  --black: #030303;          /* CORE BLACK — фон страницы */
  --deep: #080808;           /* DEEP BLACK — поля, чередование секций */
  --charcoal: #111111;       /* CHARCOAL — панели */
  --graphite: #181818;       /* GRAPHITE — рамки, тихие поверхности */
  --card: #151515;           /* CARD DARK — карточки */
  --white: #f5f5f5;          /* PRIMARY WHITE — информация */
  --gray: #929292;           /* SECONDARY TEXT */
  --muted: #666666;          /* MUTED TEXT */
  --red: #ff1616;            /* PRIMARY RED — сигнал */
  --red-bright: #ff2a2a;     /* BRIGHT RED — hover, свечение */
  --red-dark: #8e0000;       /* DARK RED — контуры, рамки на hover */
  --red-deep: #450000;       /* DEEP RED — тихие подложки */
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --line-dim: #242424;
  --line-red: rgba(255, 22, 22, .35);
  --red-glow: rgba(255, 22, 22, .2);
  /* семантические токены темы: тёмная — по умолчанию (:root), светлая — .theme-light у секции.
     Компоненты пишутся только через них, поэтому секция «переворачивается» одним классом. */
  --bg: #030303;                   /* фон секции */
  --bg-2: #080808;                 /* поля ввода */
  --bg-panel: #111111;             /* панели */
  --bg-card: #151515;              /* карточки */
  --bg-chip: #0a0a0a;              /* пилюли */
  --fg: #f5f5f5;                   /* основной текст */
  --fg-2: #929292;                 /* вторичный текст */
  --fg-3: #666666;                 /* приглушённый текст */
  --line-2: #262626;               /* рамки карточек и полей */
  --line-3: #333333;               /* рамки кнопок-призраков, иконок */
  --ghost-bg: rgba(17, 17, 17, .6);
  --card-glow: rgba(255, 22, 22, .09);
  --card-clean-bg: linear-gradient(180deg, #141414, #0d0d0d);
  --shadow-hover: 0 20px 50px rgba(0, 0, 0, .45);
  --num-stroke: rgba(255, 22, 22, .17);
  --font-head: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-accent: 'Sofia Sans Condensed', 'Manrope', 'Arial Narrow', sans-serif;
  /* фирменный знак «//» как маска для псевдоэлементов (цвет задаёт background) */
  --slash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 28.3'%3E%3Cpath d='M19.2 0h10L10 24H0zM29.76 4.3h10L20.56 28.3H10.56z'/%3E%3C/svg%3E");
  --radius: 12px;
  --radius-sm: 6px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
button { font: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------- светлые секции ----------------
   Чередование чёрный/белый (решение владельца 08.09): класс .theme-light у секции переопределяет токены,
   компоненты не знают о теме. Тёмные «острова» (CTA-баннер, карточка формы) держат тёмные токены внутри любой секции. */
.theme-light {
  --bg: #f5f5f5; --bg-2: #ececec; --bg-panel: #ffffff; --bg-card: #ffffff; --bg-chip: #ffffff;
  --fg: #0a0a0a; --fg-2: #555555; --fg-3: #8a8a8a;
  --line: rgba(0, 0, 0, .09); --line-strong: rgba(0, 0, 0, .16); --line-dim: #e2e2e2; --line-2: #dedede; --line-3: #cfcfcf;
  --red: #dc0000; --ghost-bg: rgba(0, 0, 0, .03); --card-glow: rgba(255, 22, 22, .06);
  --card-clean-bg: #ffffff; --shadow-hover: 0 18px 40px rgba(0, 0, 0, .1); --num-stroke: rgba(220, 0, 0, .18);
  background: var(--bg); color: var(--fg);
}
.theme-light::before {   /* свои диагонали под углом знака «//» (общий fixed-слой белых линий на белом не виден) */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 168px);
}
.theme-light .bg-slash { opacity: .055; }
.theme-light .about-bg, .theme-light .bg-word { opacity: .06; }
.theme-light .adv-tag { opacity: .22; }
.theme-light .accent, .theme-light .srs-scale, .theme-light .results-list li.is-final b, .theme-light .card[data-mark="06"]::after { text-shadow: none; }
.theme-light .slogan-scale { text-shadow: 0 0 24px rgba(255, 22, 22, .18); }
.theme-light .platform:hover svg { filter: none; }
.theme-light .step-num { box-shadow: 0 0 22px rgba(255, 22, 22, .12); }
.cta-band, .request-card {
  --bg: #111111; --bg-2: #080808; --bg-panel: #111111; --bg-card: #151515; --bg-chip: #0a0a0a;
  --fg: #f5f5f5; --fg-2: #929292; --fg-3: #666666;
  --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .14); --line-dim: #242424; --line-2: #262626; --line-3: #333333;
  --red: #ff1616; --ghost-bg: rgba(17, 17, 17, .6);
  color: var(--fg);
}

/* ---------------- фон страницы: диагональные линии + зерно ---------------- */
/* Layer 1 — зерно (fixed, поверх всего, почти незаметно). Layer 2 — тонкие диагонали под углом знака «//»,
   медленно дрейфуют на пару пикселей. Красные свечения и оверсайз-«//» — по секциям (см. .bg-slash, .glow). */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url('img/grain.png') repeat; opacity: .28; }
.bg-lines {
  position: fixed; inset: -6%; z-index: 0; pointer-events: none;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, .03) 0 1px, transparent 1px 168px);
  animation: lines-drift 46s ease-in-out infinite alternate;
}
@keyframes lines-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(4px, 3px, 0); } }

/* ---------------- знак «//» как мотив ---------------- */
.slash-ico, .kicker::before, .card::before, .formula li b::before, .rule::before, .ui-title::before,
.niches-title::before, .next-title::before, .footer-col h4::before, .eyebrow::before {
  content: ''; display: inline-block; flex: 0 0 auto; background: var(--red);
  -webkit-mask: var(--slash) no-repeat center / contain; mask: var(--slash) no-repeat center / contain;
}
.bg-slash {
  position: absolute; z-index: 0; color: var(--red); opacity: .04; pointer-events: none; height: auto;
  animation: slash-drift 18s ease-in-out infinite alternate;
}
@keyframes slash-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(8px, -6px, 0); } }

/* ---------------- кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 700; line-height: 1; cursor: pointer; white-space: nowrap; letter-spacing: .01em;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .22s ease, transform .18s ease, filter .18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #ff2020 0%, #e60000 62%, #d60000 100%); color: #fff;
  box-shadow: 0 0 20px rgba(255, 20, 20, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
}
.btn-primary::after { content: '\2192'; font-weight: 600; transition: transform .2s ease; }
.btn-primary:hover {
  transform: translateY(-1px); filter: brightness(1.07);
  box-shadow: 0 0 34px rgba(255, 20, 20, .38), 0 10px 26px rgba(255, 20, 20, .14), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover::after { transform: translateX(3px); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; filter: none; }
.cta-actions .btn-primary::after, .btn-block::after { display: none; }   /* у CTA-баннера стрелка уже в тексте; submit без стрелки */
.btn-ghost { background: var(--ghost-bg); color: var(--fg); border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--red); color: #fff; box-shadow: 0 0 18px rgba(255, 22, 22, .1); }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- шапка: чёрное стекло, на скролле — blur + красная нить снизу ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(3, 3, 3, .62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 22, 22, .6) 25%, rgba(255, 22, 22, .6) 75%, transparent);
  box-shadow: 0 0 12px rgba(255, 22, 22, .35); transition: opacity .3s ease;
}
.site-header.is-scrolled { background: rgba(3, 3, 3, .94); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }

/* логотип: знак «//» + слово ROOTCLICK — ассеты из мастера, подпись INFLUENCE AGENCY текстом под словом */
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
/* max-width: none — иначе слово ROOTCLICK сжималось по ширине подписи под ним (max-width:100% от авто-ширины колонки) */
.brand-mark { height: 36px; width: auto; max-width: none; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; flex: 0 0 auto; }
.brand-word { height: 21px; width: auto; max-width: none; }
.brand-sub { padding-left: 2px; font: 500 9.5px/1 var(--font-body); letter-spacing: .44em; text-transform: uppercase; color: rgba(245, 245, 245, .72); white-space: nowrap; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--fg-2); transition: color .15s ease; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--red); transition: right .2s ease; }
.nav a:hover { color: var(--fg); }
.nav a:hover::after { right: 0; }
.nav a.is-active { color: var(--fg); }            /* текущий раздел (app.js → initScrollSpy) */
.nav a.is-active::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid #333; border-radius: 999px; padding: 3px; transition: border-color .2s; }
.lang:hover { border-color: #4a4a4a; }
.lang-btn { border: 0; background: transparent; color: var(--fg-2); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; cursor: pointer; transition: background .15s, color .15s; }
.lang-btn:hover { color: var(--fg); }
.lang-btn.is-active { background: var(--fg); color: var(--black); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid #333; border-radius: var(--radius-sm); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--fg); }

/* ---------------- первый экран ---------------- */
.hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 64px) 0 56px;
  background:
    radial-gradient(900px 560px at 88% 8%, rgba(255, 22, 22, .085), transparent 66%),
    linear-gradient(180deg, #030303 0%, #060606 58%, #030303 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* слои живого фона: только transform/opacity, медленные циклы, всё выключается при reduced-motion */
.hero-noise { position: absolute; inset: -6%; background: url('img/grain.png') repeat; opacity: .2; animation: noise-drift 24s linear infinite alternate; }
@keyframes noise-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-26px, 18px, 0); } }
.hero-lines {
  position: absolute; inset: -10%;
  background: repeating-linear-gradient(118deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 132px);
  transform: translate3d(calc(var(--mx, 0) * 3px), calc(var(--py, 0px) + var(--my, 0) * 3px), 0);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask: radial-gradient(56% 66% at 76% 40%, #000 0%, transparent 74%); mask: radial-gradient(56% 66% at 76% 40%, #000 0%, transparent 74%);
  transform: translate3d(calc(var(--mx, 0) * 4px), calc(var(--py, 0px) + var(--my, 0) * 4px), 0);
}
.hero-glow {
  position: absolute; right: -8%; top: -6%; width: 840px; height: 740px; border-radius: 50%; opacity: .6;
  background: radial-gradient(closest-side, rgba(255, 22, 22, .2), transparent 70%);
  animation: glow-breathe 9s ease-in-out infinite;
}
@keyframes glow-breathe { 0%, 100% { opacity: .55; } 50% { opacity: .8; } }
.drift { position: absolute; inset: 0; }
.drift-1 { animation: drift-a 16s ease-in-out infinite alternate; }
.drift-2 { animation: drift-b 21s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(9px, -6px, 0); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-8px, 7px, 0); } }
/* оверсайз-знак «//» из мастера — по диагонали справа, за дашбордом; параллакс от мыши ≤6px */
.hero-mark {
  position: absolute; right: 1%; top: -2%; width: min(700px, 52vw); opacity: .1; will-change: transform;
  transform: translate3d(calc(var(--mx, 0) * 6px), calc(var(--py, 0px) + var(--my, 0) * 6px), 0);
}
.hero-slash { position: absolute; left: -4%; bottom: -8%; width: 300px; height: auto; color: var(--red); opacity: .045;
  transform: translate3d(calc(var(--mx, 0) * -4px), calc(var(--py, 0px) + var(--my, 0) * -4px), 0); }
.hero-edge { position: absolute; right: 0; top: 14%; width: 1px; height: 46%; opacity: .75; background: linear-gradient(180deg, transparent, var(--red), transparent); box-shadow: 0 0 18px rgba(255, 22, 22, .5); }

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 48px; align-items: center; }
.hero-copy { max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 22px;
  font: 700 12px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--fg);
}
.eyebrow i { font-style: normal; color: var(--red); letter-spacing: 0; }
.eyebrow::before { width: 20px; height: 14px; margin-right: 2px; }

.hero-title { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
.hero-sub { margin-top: 26px; max-width: 620px; font-size: 18px; line-height: 1.6; color: var(--fg-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--fg-2); }
.pulse, .ui-live i { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px rgba(255, 22, 22, .7); }
.pulse::after, .ui-live i::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--red); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* бренд-заголовок: Root белый, Click красный с лёгким свечением, Influence Agency приглушён.
   Печатается один раз при загрузке (app.js → initHeroTypewriter); ghost держит место и отдаёт текст ботам */
.hero-brand { position: relative; font-size: clamp(36px, 5.2vw, 62px); letter-spacing: -.03em; }
.hero-brand b { position: relative; font-weight: 800; color: var(--red); text-shadow: 0 0 26px rgba(255, 22, 22, .32); }
.hero-brand em { font-style: normal; color: rgba(245, 245, 245, .5); }
.tw-ghost { visibility: hidden; }
.tw-live { position: absolute; inset: 0; }
html:not(.js) .hero-brand .tw-ghost { visibility: visible; }
html:not(.js) .hero-brand .tw-live { display: none; }
.tw-cursor {
  display: inline-block; width: .075em; height: .88em; margin-left: .07em; vertical-align: -.06em;
  background: var(--red); box-shadow: 0 0 12px rgba(255, 22, 22, .65); opacity: 1;
}
.tw-cursor.is-blink { animation: cursor-blink .95s steps(1) infinite; }
.tw-cursor.is-hidden { display: none; }
@keyframes cursor-blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

/* акцентные слова (бывшие graffiti): чистый condensed italic, красный */
.accent-wrap { position: relative; display: inline-block; white-space: nowrap; margin-left: .04em; }
.accent {
  position: relative; z-index: 1; display: inline-block; padding: 0 .06em 0 .02em;
  font: italic 700 1.06em/1 var(--font-accent); letter-spacing: .012em; color: var(--red);
  text-shadow: 0 0 24px rgba(255, 22, 22, .22);
}

/* ---------------- LIVE PERFORMANCE: стеклянная панель аналитики ---------------- */
.hero-side { justify-self: end; width: 100%; max-width: 440px; }
.ui-stage { position: relative; padding: 26px 0 30px 22px; }
.ui-card {
  position: relative; z-index: 1;
  background: rgba(8, 8, 8, .8);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid #262626; border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 22, 22, .05), 0 0 60px rgba(255, 22, 22, .07);
}
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-title { display: inline-flex; align-items: center; gap: 8px; font: 800 12px/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--fg); }
.ui-title::before { width: 14px; height: 10px; }
.ui-live { display: inline-flex; align-items: center; gap: 8px; font: 700 11px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.ui-period { margin-top: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-2); }
/* состояния: loading (прочерки) → live (цифры из API) | empty (данных пока нет) */
.ui-card[data-state="loading"] .ui-metrics b { color: var(--fg-2); }
.ui-empty { display: none; padding: 22px 0 6px; }
.ui-empty p { max-width: 300px; font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.ui-card[data-state="empty"] { display: flex; flex-direction: column; }
.ui-card[data-state="empty"] .ui-metrics, .ui-card[data-state="empty"] .ui-foot, .ui-card[data-state="empty"] .ui-live { display: none; }
.ui-card[data-state="empty"] .ui-bars { order: 2; opacity: .22; margin-top: 14px; }
.ui-card[data-state="empty"] .ui-bars i:last-child { background: #2a2a2a; }
.ui-card[data-state="empty"] .ui-empty { display: block; order: 1; }
.frag[hidden] { display: none !important; }
.ui-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.ui-metric { background: rgba(3, 3, 3, .6); border: 1px solid var(--line); border-radius: 10px; padding: 12px 10px; }
.ui-metric small { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.ui-metric b { display: block; margin-top: 6px; font: 600 19px/1 var(--font-mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--fg); }
.ui-metric.is-accent { border-color: rgba(255, 22, 22, .4); }
.ui-metric.is-accent b { color: var(--red); }
/* график: серые столбики, последний и пиковый — красные */
.ui-bars { display: flex; align-items: flex-end; gap: 3px; height: 92px; margin-top: 20px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ui-bars i {
  flex: 1; height: var(--h, 4%); min-height: 2px; border-radius: 2px 2px 1px 1px; background: #2a2a2a; transform-origin: bottom;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
  transition: height .8s cubic-bezier(.2, .8, .2, 1), background .4s ease, opacity .6s ease, filter .6s ease;
}
.ui-bars i:last-child { background: linear-gradient(180deg, var(--red-bright), var(--red-dark)); }
.ui-bars i.is-accent { background: linear-gradient(180deg, var(--red-bright), var(--red)); box-shadow: 0 0 14px rgba(255, 22, 22, .4); }
.ui-bars i.is-blip { filter: brightness(1.5); opacity: .95; }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.ui-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--fg-2); }
.ui-card.has-roi .ui-foot { padding-left: 120px; }
.ui-caption { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: var(--fg-2); text-align: right; }

.frag {
  position: absolute; z-index: 2; background: rgba(10, 10, 10, .96); border: 1px solid #2a2a2a; border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 22, 22, .06);
  font-variant-numeric: tabular-nums;
}
.frag small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.frag b { display: block; font: 600 20px/1 var(--font-mono); letter-spacing: -0.02em; }
/* «+N% FTD» — только если API вернул ftd_change; ROI — только если API вернул реальный roi */
.frag-trend { right: -18px; top: -32px; display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center; padding: 10px 14px; transform: rotate(2deg); border-color: rgba(255, 22, 22, .4); }
.frag-trend .frag-arrow { grid-row: 1 / span 2; font: 700 22px/1 var(--font-body); color: var(--red); }
.frag-trend.is-down .frag-arrow, .frag-trend.is-down b { color: var(--fg-2); }
.frag-trend b { color: var(--red); }
.frag-trend small { margin-top: 3px; }
.frag-roi { left: -18px; bottom: -4px; padding: 10px 14px; transform: rotate(-2deg); }
.frag-roi b { margin-top: 4px; color: var(--red); }

/* панель аналитики въезжает справа */
.reveal-x { transform: translateX(22px); }
.reveal-x.is-visible { transform: none; }

/* живые метрики: пульс значения (белый → лёгкое красное свечение → белый) со stagger, цикл 7 с */
.ui-card[data-state="live"] .ui-metric b { transform-origin: left center; animation: metric-pulse 7s ease-in-out infinite; }
.ui-card[data-state="live"] .ui-metric:nth-child(2) b { animation-delay: .4s; }
.ui-card[data-state="live"] .ui-metric:nth-child(3) b { animation-delay: .8s; }
.ui-card[data-state="live"] .ui-metric:nth-child(4) b { animation-delay: 1.2s; }
@keyframes metric-pulse {
  0%, 23%, 100% { transform: scale(1); text-shadow: none; }
  11% { transform: scale(1.03); text-shadow: 0 0 14px rgba(255, 22, 22, .5), 0 0 2px rgba(245, 245, 245, .3); }
}
/* карточка «+N% FTD»: раз в 5,5 с стрелка приподнимается и появляется свечение */
.frag-trend:not([hidden]) { animation: trend-glow 5.5s ease-in-out infinite; }
.frag-trend .frag-arrow { display: inline-block; animation: trend-arrow 5.5s ease-in-out infinite; }
@keyframes trend-glow {
  0%, 22%, 100% { box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 24px rgba(255, 22, 22, .06); }
  9% { box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 22, 22, .32); }
}
@keyframes trend-arrow { 0%, 22%, 100% { transform: translateY(0); } 9% { transform: translateY(-3px); } }
.ui-bars i.is-accent { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both, bar-breathe 3.4s ease-in-out 1s infinite; }
@keyframes bar-breathe { 0%, 100% { box-shadow: 0 0 10px rgba(255, 22, 22, .22); } 50% { box-shadow: 0 0 22px rgba(255, 22, 22, .55); } }

/* ---------------- разделители: тонкая линия с «//» в начале ---------------- */
.rule {
  position: relative; height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent 0 30px, rgba(255, 22, 22, .55) 30px, rgba(255, 255, 255, .1) 28%, rgba(255, 255, 255, .05) 70%, transparent);
}
.rule::before { position: absolute; left: 0; top: -7px; width: 20px; height: 14px; }
.rule-red { margin-top: 64px; }
.divider-row { position: relative; z-index: 2; height: 0; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.divider-row .rule { position: absolute; left: 24px; right: 24px; top: -1px; width: auto; }

/* формула бренда */
.formula {
  position: relative; z-index: 1; list-style: none; margin: 30px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.formula li { position: relative; padding-right: 24px; }
.formula li b { display: flex; align-items: center; gap: 12px; font: 800 13px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--fg); }
.formula li b::before { width: 16px; height: 11px; }
.formula li p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.formula li:not(:last-child)::after { content: '\2192'; position: absolute; right: 0; top: -2px; font-size: 16px; color: var(--red); }

/* ---------------- секции ---------------- */
.section { position: relative; padding: 112px 0; overflow: hidden; }
.section-head { position: relative; max-width: 720px; margin-bottom: 48px; }
.kicker { display: inline-flex; align-items: center; gap: 12px; font: 700 12px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
.kicker::before { width: 18px; height: 13px; }
.section-title { margin-top: 18px; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.section-lead { margin-top: 18px; font-size: 17px; line-height: 1.65; color: var(--fg-2); }

/* оверсайз-номер секции (тёмно-красный контур) и фоновая типографика */
.section-num {
  position: absolute; right: 2%; top: 34px; z-index: 0; pointer-events: none; user-select: none;
  font: 800 clamp(120px, 15vw, 210px)/1 var(--font-head); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--num-stroke);
}
.bg-word {
  position: absolute; z-index: 0; pointer-events: none; user-select: none; white-space: nowrap;
  font: 800 clamp(64px, 11vw, 190px)/1 var(--font-head); letter-spacing: -0.05em; text-transform: uppercase; color: var(--fg); opacity: .025;
}
.bg-word-adv { right: -2%; bottom: 3%; }
.section > .wrap { position: relative; z-index: 1; }
.bg-slash-about { left: -7%; top: 34%; width: 520px; }
.bg-slash-services { right: -9%; bottom: -12%; width: 640px; opacity: .035; }
.bg-slash-request { left: -11%; top: 6%; width: 540px; opacity: .03; }
.bg-slash-footer { right: -3%; bottom: -34%; width: 340px; opacity: .05; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* карточки: тёмная поверхность, «//» сверху, номер контуром, на hover — подъём, красная рамка, тихое свечение */
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px 28px;
  background: radial-gradient(280px circle at var(--gx, -200px) var(--gy, -200px), var(--card-glow), transparent 62%), var(--bg-card);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.card::before { width: 22px; height: 15px; margin-bottom: 22px; transition: transform .3s ease; }
.card:hover { border-color: rgba(255, 22, 22, .55); box-shadow: var(--shadow-hover), 0 0 26px rgba(255, 22, 22, .08), inset 0 0 40px rgba(255, 22, 22, .04); }
.card:hover::before { transform: translateX(5px); }
.card h3 { font: 800 15px/1.4 var(--font-head); letter-spacing: .07em; text-transform: uppercase; padding-right: 44px; }
.card p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.card[data-mark]::after {
  content: attr(data-mark); position: absolute; right: 22px; top: 18px;
  font: 800 30px/1 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 22, 22, .55);
  transition: -webkit-text-stroke-color .25s ease;
}
.card[data-mark]:hover::after { -webkit-text-stroke-color: rgba(255, 22, 22, .9); }
.card[data-mark="06"] { border-color: rgba(255, 22, 22, .28); }
.card[data-mark="06"]::after { -webkit-text-stroke-color: rgba(255, 22, 22, .85); text-shadow: 0 0 18px rgba(255, 22, 22, .35); }
/* подъём на hover без 3D-наклона; переменные --gx/--gy (свечение за курсором) ставит app.js */
.tilt { transform: translateY(calc(var(--ty, 0px) + var(--lift, 0px))); }
.tilt:hover { --lift: -4px; }
.grid-stagger > :nth-child(2), .grid-stagger > :nth-child(5) { --ty: 20px; }

/* шаги + красная техничная линия: заполняется слева направо. Анимируется div-обёртка (clip-path),
   svg внутри статичен — любая анимация на самом svg (dashoffset, clip-path) в Chrome не отрисовывалась */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-line-wrap { position: absolute; left: 0; right: 0; top: -14px; height: 88px; overflow: hidden; pointer-events: none; clip-path: inset(0 100% 0 0); }
/* заливку слева направо запускает app.js → revealStepsLine (Web Animations API): CSS-анимация clip-path здесь
   завершалась, но Chrome линию не отрисовывал. Без JS и при reduced-motion линия просто видна целиком. */
html:not(.js) .steps-line-wrap { clip-path: none; }
.steps-line { position: absolute; left: 0; top: 14px; width: 100%; height: 60px; overflow: visible; filter: drop-shadow(0 0 6px rgba(255, 22, 22, .55)); }
.steps-path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.step { position: relative; padding: 0 20px 0 0; }
.step-num {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--red);
  font: 600 13px/1 var(--font-mono); letter-spacing: .08em; color: var(--red); box-shadow: 0 0 22px rgba(255, 22, 22, .18);
  transform: scale(.6); opacity: 0;
  animation: pop .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(3.2s + var(--i, 0) * .38s);   /* страховка */
}
.steps.is-visible .step-num { animation: pop .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(.35s + var(--i, 0) * .38s); }
@keyframes pop { to { transform: scale(1); opacity: 1; } }
.step h3 { margin-top: 22px; font-size: 20px; }
.step p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
/* STOP / REPEAT / SCALE: серый / белый / красный */
.step-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.step-tags span { padding: 6px 10px; border: 1px solid var(--line-2); border-radius: 4px; font: 600 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.step-tags span:nth-child(2) { color: var(--fg); border-color: var(--line-3); }
.step-tags span.is-scale { border-color: rgba(255, 22, 22, .6); color: var(--red); box-shadow: 0 0 16px rgba(255, 22, 22, .15); }

/* площадки и направления: одна brand-система, без фирменных цветов соцсетей */
.platform-list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.platform {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 112px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  font: 700 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--fg);
  transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.platform svg { width: 26px; height: 26px; color: var(--fg); transition: color .2s ease, filter .2s ease; }
.platform:hover { border-color: var(--red-dark); transform: translateY(-3px); box-shadow: 0 0 24px rgba(255, 22, 22, .1); }
.platform:hover svg { color: var(--red); filter: drop-shadow(0 0 10px rgba(255, 22, 22, .5)); }
.niches { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.niches-title { display: inline-flex; align-items: center; gap: 10px; font: 800 13px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; }
.niches-title::before { width: 16px; height: 11px; }
.niches-sub { margin-top: 12px; font-size: 15px; color: var(--fg-2); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; padding: 10px 16px; background: var(--bg-chip); border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--red); color: var(--fg); }

/* FAQ: чисто. Белый вопрос, красный «+», при открытии — поворот в «×» */
.faq { border-top: 1px solid var(--line-dim); }
.faq-item { border-bottom: 1px solid var(--line-dim); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font: 700 17px/1.35 var(--font-head); color: var(--fg); transition: color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--line-3); border-radius: 50%; transition: border-color .2s, transform .3s ease, box-shadow .2s; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--red); transform: translate(-50%, -50%); }
.faq-item summary i::before { width: 12px; height: 2px; }
.faq-item summary i::after { width: 2px; height: 12px; }
.faq-item summary:hover i { border-color: var(--red-dark); }
.faq-item[open] summary i { border-color: var(--red); transform: rotate(45deg); box-shadow: 0 0 14px rgba(255, 22, 22, .25); }
.faq-item p { padding: 0 60px 24px 0; font-size: 15px; line-height: 1.65; color: var(--fg-2); }

/* заявка: premium dark form */
.request-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.request-copy .section-title { max-width: 440px; }
.next-title { display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; font: 800 12px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--fg); }
.next-title::before { width: 16px; height: 11px; }
.next { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: next; }
.next li { position: relative; padding: 12px 0 12px 44px; font-size: 15px; color: var(--fg-2); border-top: 1px solid var(--line); counter-increment: next; }
.next li:last-child { border-bottom: 1px solid var(--line); }
.next li::before { content: counter(next, decimal-leading-zero); position: absolute; left: 0; top: 13px; font: 600 12px/1.4 var(--font-mono); letter-spacing: .1em; color: var(--red); }
.request-tagline { margin-top: 52px; font: 800 clamp(30px, 3.2vw, 40px)/1.08 var(--font-head); letter-spacing: -0.02em; text-transform: uppercase; color: rgba(245, 245, 245, .16); color: color-mix(in srgb, var(--fg) 16%, transparent); }
.accent-wrap-sm { margin-left: .1em; }
.accent-sm { font-size: 1.22em; text-transform: uppercase; }

.request-card { position: relative; background: var(--bg-panel); border: 1px solid #262626; border-radius: 16px; padding: 32px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid #333; border-radius: var(--radius-sm);
  color: var(--fg); font: 400 15px/1.4 var(--font-body); padding: 13px 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--fg-2) 50%), linear-gradient(135deg, var(--fg-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field select option { background: var(--bg-panel); color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: rgba(146, 146, 146, .6); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 22, 22, .14), 0 0 18px rgba(255, 22, 22, .12); }
.field-error { display: none; font-size: 12px; font-style: normal; color: var(--red-bright); }
.field.is-invalid input { border-color: var(--red-bright); border-style: dashed; }
.field.is-invalid .field-error { display: block; }
.form-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--fg-2); text-align: center; }
.form-status { display: none; margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; text-align: center; }
.form-status.is-ok { display: block; background: rgba(255, 22, 22, .08); border: 1px solid rgba(255, 22, 22, .4); color: var(--fg); }
.form-status.is-err { display: block; background: rgba(255, 42, 42, .08); border: 1px solid rgba(255, 42, 42, .45); color: #ff8080; }

/* success-state формы */
.form-success { text-align: center; padding: 26px 12px 10px; }
.form-success.is-shown { animation: success-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes success-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.success-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; margin-bottom: 20px; border-radius: 50%; border: 1px solid rgba(255, 22, 22, .55); color: var(--red); box-shadow: 0 0 30px rgba(255, 22, 22, .22), inset 0 0 18px rgba(255, 22, 22, .07); }
.success-icon svg { width: 30px; height: 30px; }
.form-success h3 { font-size: 24px; letter-spacing: -0.01em; }
.form-success p { margin-top: 10px; font-size: 15px; color: var(--fg-2); }
.form-success .btn { margin-top: 22px; }

/* ---------------- подвал ---------------- */
.site-footer { position: relative; overflow: hidden; background: var(--black); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.site-footer > .wrap { position: relative; z-index: 1; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; }
.brand-footer { gap: 14px; }
.brand-footer .brand-mark { height: 46px; }
.brand-footer .brand-word { height: 26px; }
.brand-footer .brand-text { gap: 6px; }
.brand-footer .brand-sub { font-size: 11px; letter-spacing: .5em; }
.footer-brand p { margin-top: 18px; max-width: 360px; font-size: 14px; color: var(--fg-2); }
.footer-col h4 { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--fg); margin-bottom: 16px; }
.footer-col h4::before { width: 14px; height: 10px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--fg-2); transition: color .15s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--fg-2); }
.footer-line { font-weight: 700; letter-spacing: .26em; text-transform: uppercase; }
.footer-line i { font-style: normal; color: var(--red); }

/* ---------------- «Для рекламодавців»: самый деловой блок ---------------- */
.card-clean { background: var(--card-clean-bg); border-color: var(--line-2); padding-top: 26px; }
.card-clean::before { display: none; }
.card-clean::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--red), rgba(255, 22, 22, 0) 55%); opacity: .8; border-radius: var(--radius) var(--radius) 0 0; }
.card-clean:hover { transform: none; }
.card-index { display: inline-block; margin-bottom: 14px; font: 600 11px/1 var(--font-mono); letter-spacing: .26em; color: var(--red); }
.card-clean h3 { padding-right: 0; }
.adv-tag { position: absolute; right: 8%; top: 27%; z-index: 0; font: italic 700 clamp(22px, 2.2vw, 30px)/1 var(--font-accent); letter-spacing: .02em; text-transform: uppercase; color: var(--fg); opacity: .16; white-space: nowrap; pointer-events: none; }

/* ---------------- «Результат»: список + DATA → DECISION → SCALE ---------------- */
.results-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--line-strong); }
.results-list li { display: flex; align-items: baseline; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.45; }
.results-list li b { flex: 0 0 auto; font: 600 12px/1 var(--font-mono); letter-spacing: .22em; color: var(--red); }
.results-list li.is-final span { font-weight: 700; color: var(--fg); }
.results-list li.is-final b { text-shadow: 0 0 12px rgba(255, 22, 22, .6); }
.slogan-big {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 64px 0 0;
  font: italic 800 clamp(44px, 6.4vw, 92px)/1.02 var(--font-accent); text-transform: uppercase; letter-spacing: .01em; color: var(--fg);
}
.slogan-big > i { font: 800 .5em/1 var(--font-head); font-style: normal; color: var(--red); opacity: 0; transform: translateX(-8px); transition: opacity .5s ease, transform .5s ease; }
.slogan-big > span { display: inline-block; opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.slogan-big > span:nth-of-type(1) { color: var(--fg-2); }
.slogan-big > span:nth-of-type(2) { color: var(--fg); transition-delay: .35s; }
.slogan-big > i:nth-of-type(1) { transition-delay: .2s; }
.slogan-big > i:nth-of-type(2) { transition-delay: .55s; }
.slogan-big > span:nth-of-type(3) { transition-delay: .72s; }
.slogan-big.is-visible > span, .slogan-big.is-visible > i { opacity: 1; transform: none; }
.slogan-scale { position: relative; z-index: 1; color: var(--red); text-shadow: 0 0 30px rgba(255, 22, 22, .45); }
.scale-line {
  position: absolute; left: 3%; right: -2%; bottom: -.06em; height: .075em; background: var(--red); box-shadow: 0 0 16px rgba(255, 22, 22, .6);
  transform: skewX(-24deg) scaleX(0); transform-origin: left center; transition: transform .6s cubic-bezier(.2, .8, .2, 1) 1.15s;
}
.slogan-big.is-visible .scale-line { transform: skewX(-24deg) scaleX(1); }

/* ---------------- CTA-баннер перед FAQ ---------------- */
.section-cta { padding: 32px 0 96px; }
.cta-band { position: relative; overflow: hidden; background: linear-gradient(180deg, #121212, #0b0b0b); border: 1px solid #262626; border-radius: 20px; padding: 64px 60px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.cta-glow { position: absolute; right: -12%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(255, 22, 22, .16), transparent 70%); pointer-events: none; animation: glow-breathe 10s ease-in-out infinite; }
.bg-slash-cta { right: -5%; top: -34%; width: 580px; opacity: .085; }
.cta-bg-word { position: absolute; left: 4%; bottom: -8%; font: 800 clamp(56px, 8.5vw, 120px)/1 var(--font-head); letter-spacing: -.05em; text-transform: uppercase; color: var(--fg); opacity: .03; white-space: nowrap; pointer-events: none; }
.cta-inner { position: relative; z-index: 1; max-width: 720px; }
.cta-band .section-title { font-size: clamp(30px, 3.4vw, 42px); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-note { margin-top: 16px; font-size: 13px; color: var(--fg-2); }

/* ---------------- «Про нас»: editorial / premium corporate ---------------- */
.section-about { padding: 150px 0 120px; }
.section-about .section-num { top: auto; bottom: 2%; right: 1%; }
.about-bg {
  position: absolute; right: -1%; top: 4%; z-index: 0; pointer-events: none; user-select: none;
  font: 800 clamp(90px, 14vw, 240px)/1 var(--font-head); letter-spacing: -.06em; text-transform: uppercase; color: var(--fg); opacity: .028;
}
.about-lead { max-width: 920px; }
.about-lead .manifesto { margin-top: 26px; }
.manifesto { font: 800 clamp(30px, 4.4vw, 58px)/1.1 var(--font-head); letter-spacing: -.025em; }
.about-lead .manifesto .accent-md { font-size: .82em; }
.about-text { margin-top: 30px; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--fg-2); }
.about-text + .about-text { margin-top: 16px; }

.chain {
  list-style: none; margin: 72px 0 0; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px;
  font: 800 13px/1.3 var(--font-head); letter-spacing: .24em; text-transform: uppercase; color: var(--fg);
}
.chain li { display: inline-flex; align-items: center; gap: 24px; opacity: 0; transform: translateX(-12px); transition: opacity .5s ease, transform .5s ease; animation: reveal-fallback .6s ease 3s forwards; }
.chain li:not(:last-child)::after { content: "\2192"; font: 600 20px/1 var(--font-body); letter-spacing: 0; color: var(--red); }
.chain li.is-scale { color: var(--red); }
.chain.is-visible li { opacity: 1; transform: none; }
.chain.is-visible li:nth-child(2) { transition-delay: .2s; }
.chain.is-visible li:nth-child(3) { transition-delay: .4s; }
.chain.is-visible li:nth-child(4) { transition-delay: .6s; }

.about-not { margin-top: 128px; max-width: 920px; }
.came { font: 800 clamp(32px, 4.8vw, 62px)/1.06 var(--font-head); letter-spacing: -.03em; opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; animation: reveal-fallback .6s ease 3s forwards; }
.came-accent { margin-top: 14px; font: 800 clamp(30px, 4.2vw, 56px)/1.1 var(--font-head); opacity: 0; transform: translateY(14px); transition: opacity .6s ease .25s, transform .6s ease .25s; animation: reveal-fallback .6s ease 3.2s forwards; }
.came-accent .accent-md { font-size: 1em; }
.came-text { margin-top: 32px; max-width: 760px; font-size: 17px; line-height: 1.7; color: var(--fg-2); opacity: 0; transform: translateY(12px); transition: opacity .6s ease .45s, transform .6s ease .45s; animation: reveal-fallback .6s ease 3.4s forwards; }
.about-not.is-visible .came, .about-not.is-visible .came-accent, .about-not.is-visible .came-text { opacity: 1; transform: none; }

.about-key { margin-top: 104px; padding-top: 44px; max-width: 920px; border-top: 1px solid rgba(255, 22, 22, .38); }
.key-1 { font: 600 clamp(18px, 2vw, 24px)/1.4 var(--font-head); color: var(--fg-2); opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s ease; animation: reveal-fallback .6s ease 3s forwards; }
.key-2 { margin-top: 12px; font: 800 clamp(26px, 3.4vw, 44px)/1.15 var(--font-head); letter-spacing: -.02em; opacity: 0; transform: translateY(12px); transition: opacity .6s ease .2s, transform .6s ease .2s; animation: reveal-fallback .6s ease 3s forwards; }
.about-key.is-visible .key-1, .about-key.is-visible .key-2 { opacity: 1; transform: none; }
.srs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; font: 800 clamp(16px, 1.8vw, 23px)/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; }
.srs i { font-style: normal; font-weight: 300; color: rgba(255, 22, 22, .45); }
.srs > span { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; animation: reveal-fallback .6s ease 3.4s forwards; }
.srs-stop, .srs-repeat { color: var(--fg); }
.srs-scale { position: relative; color: var(--red); text-shadow: 0 0 22px rgba(255, 22, 22, .3); }
.srs-scale::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.3em; height: 2px; background: var(--red); transform: skewX(-24deg); opacity: .9; }
.about-key.is-visible .srs > span { opacity: 1; transform: none; }
.about-key.is-visible .srs-stop { transition-delay: .5s; }
.about-key.is-visible .srs-repeat { transition-delay: .7s; }
.about-key.is-visible .srs-scale { transition-delay: .9s; }

/* четыре premium-колонки преимуществ */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 120px; padding-top: 48px; border-top: 1px solid var(--line); }
.adv { position: relative; padding-left: 18px; border-left: 1px solid var(--line); opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease, border-color .3s ease; animation: reveal-fallback .6s ease 3s forwards; }
.adv:hover { border-left-color: var(--red); }
.adv-grid.is-visible .adv { opacity: 1; transform: none; }
.adv-grid.is-visible .adv:nth-child(2) { transition-delay: .12s; }
.adv-grid.is-visible .adv:nth-child(3) { transition-delay: .24s; }
.adv-grid.is-visible .adv:nth-child(4) { transition-delay: .36s; }
.adv-num { display: block; font: 800 46px/1 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(255, 22, 22, .6); }
.adv h3 { margin-top: 18px; font: 800 12px/1.45 var(--font-head); letter-spacing: .22em; text-transform: none; }   /* регистр как в тексте (iGAMING) */
.adv p { margin-top: 12px; font-size: 14px; line-height: 1.65; color: var(--fg-2); }

/* ---------------- контакти: LET’S CONNECT // + три карточки ---------------- */
.section-contacts { padding-top: 96px; }
.contacts-display { display: flex; align-items: center; gap: .28em; margin-bottom: 30px; font: italic 800 clamp(40px, 6vw, 80px)/1 var(--font-accent); text-transform: uppercase; letter-spacing: .01em; color: var(--fg); }
.contacts-display .accent-wrap { margin: 0; }
.contacts-display .accent { padding: 0; font: inherit; color: var(--fg); text-shadow: none; }
.contacts-display .slash-inline { width: .78em; height: auto; color: var(--red); filter: drop-shadow(0 0 14px rgba(255, 22, 22, .45)); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s ease, transform .25s ease, box-shadow .25s ease; }
.contact-card:hover { border-color: var(--red); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 26px rgba(255, 22, 22, .08); }
.contact-label { display: flex; align-items: center; gap: 10px; font: 700 11px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--fg-2); }
.contact-label svg { width: 18px; height: 18px; color: var(--fg); transition: color .2s ease; }
.contact-card:hover .contact-label svg { color: var(--red); }
.contact-value { font: 700 18px/1.3 var(--font-head); color: var(--fg); word-break: break-word; }
.contact-text { font-size: 14px; line-height: 1.55; color: var(--fg-2); }
.contact-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font: 700 14px/1 var(--font-body); color: var(--fg); }
.contact-link::before { content: '\2192'; color: var(--red); transition: transform .2s ease; }
.contact-card:hover .contact-link::before { transform: translateX(4px); }
.contact-link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }   /* кликабельна вся карточка */

/* ---------------- cookie-банер ---------------- */
.cookie { position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 80; display: flex; justify-content: center; pointer-events: none; }
.cookie[hidden] { display: none; }
.cookie-inner {
  pointer-events: auto; display: flex; align-items: center; gap: 18px; width: 100%; max-width: 780px; padding: 14px 18px 14px 20px;
  background: rgba(8, 8, 8, .97); border: 1px solid #262626; border-radius: 12px; color: var(--white);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 22, 22, .08), 0 0 40px rgba(255, 22, 22, .06);
  animation: cookie-in .5s cubic-bezier(.2, .8, .2, 1) both;
}
.cookie-inner::before { content: ''; flex: 0 0 auto; width: 22px; height: 15px; background: var(--red); -webkit-mask: var(--slash) no-repeat center / contain; mask: var(--slash) no-repeat center / contain; }
.cookie-text { flex: 1; font-size: 13px; line-height: 1.5; color: var(--gray); }
.cookie-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.btn-noarrow::after { display: none; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.footer-cookies { color: var(--gray); text-decoration: underline; text-underline-offset: 3px; }
.footer-cookies:hover { color: var(--red); }
@media (max-width: 640px) {
  .cookie { left: 10px; right: 10px; bottom: 10px; }
  .cookie-inner { flex-wrap: wrap; gap: 12px; padding: 14px; }
  .cookie-inner::before { display: none; }
  .cookie-text { flex-basis: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .cookie-inner { animation: none; } }

/* ---------------- появление при скролле ---------------- */
/* страховка: если наблюдатель не сработал — блок всё равно появится через 2,4 с */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; animation: reveal-fallback .6s ease 2.4s forwards; }
.reveal.is-visible { opacity: 1; transform: none; }
@keyframes reveal-fallback { to { opacity: 1; transform: none; } }
.slogan-big > span, .slogan-big > i { animation: reveal-fallback .6s ease 3s forwards; }
.scale-line { animation: line-fallback .6s ease 3.4s forwards; }
@keyframes line-fallback { to { transform: skewX(-24deg) scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-x { opacity: 1; transform: none; transition: none; animation: none; }
  .pulse::after, .ui-live i::after, .ui-bars i, .ui-bars i.is-accent { animation: none; }
  .slogan-big > span, .slogan-big > i { opacity: 1; transform: none; transition: none; animation: none; }
  .scale-line { transform: skewX(-24deg) scaleX(1); transition: none; animation: none; }
  .steps-line-wrap { clip-path: none; }
  .step-num { transform: none; opacity: 1; animation: none; }
  .steps.is-visible .step-num { animation: none; }
  .tilt { transform: none; }
  .bg-lines, .bg-slash, .hero-noise, .drift-1, .drift-2, .hero-glow, .cta-glow { animation: none; }
  .ui-card[data-state="live"] .ui-metric b, .frag-trend:not([hidden]), .frag-trend .frag-arrow { animation: none; }
  .hero-brand .tw-live { display: none; }
  .hero-brand .tw-ghost { visibility: visible; }
  .tw-cursor { display: none; }
  .chain li, .came, .came-accent, .came-text, .key-1, .key-2, .srs > span, .adv { opacity: 1; transform: none; transition: none; animation: none; }
}

/* ---------------- адаптив ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-side { justify-self: start; max-width: 470px; }
  .hero-mark { right: -22%; top: -2%; width: 88vw; opacity: .07; }
  .hero-glow { width: 640px; height: 560px; right: -30%; }
  .hero-slash { display: none; }
  .hero-grid, .hero-noise { display: none; }   /* на планшете/мобильном меньше слоёв */
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-stagger > :nth-child(2), .grid-stagger > :nth-child(5) { --ty: 0px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps-line-wrap { display: none; }
  .platform-list { grid-template-columns: repeat(3, 1fr); }
  .request-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .section-num { font-size: clamp(96px, 14vw, 150px); top: 24px; }
  .cta-band { padding: 48px 40px; }
  .bg-slash { opacity: .025; width: 380px; }
  .bg-slash-cta { opacity: .06; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .about-bg { opacity: .022; font-size: clamp(70px, 12vw, 130px); }
  .adv-tag { top: 30%; right: 3%; font-size: 22px; opacity: .12; }
  .contact-grid { grid-template-columns: 1fr; }
}

.nav a { white-space: nowrap; }
@media (max-width: 1360px) {
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .header-inner { gap: 18px; }
}
@media (max-width: 1200px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    background: #030303; border-bottom: 1px solid var(--line-red); padding: 8px 24px 16px;   /* сплошной: rgba(.97) внутри шапки с backdrop-filter просвечивал */
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--fg); }
  .nav a::after { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand-mark { height: 30px; }
  .brand-word { height: 18px; }
  .brand-sub { font-size: 8.5px; letter-spacing: .4em; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .header-cta { display: none; }
  .header-inner { gap: 10px; }
  .header-actions { gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { height: 26px; }
  .brand-word { height: 15px; }
  .brand-text { gap: 4px; }
  .brand-sub { font-size: 7.5px; letter-spacing: .36em; }
  .lang-btn { padding: 5px 8px; }
  .hero { padding-top: calc(var(--header-h) + 40px); background: radial-gradient(520px 360px at 90% 0%, rgba(255, 22, 22, .07), transparent 66%), var(--black); }
  .hero-mark { opacity: .05; width: 120vw; right: -40%; }
  .hero-glow { opacity: .35; width: 420px; height: 380px; right: -40%; top: -4%; }
  .hero-edge { display: none; }
  .drift-1, .drift-2 { animation: none; }
  .eyebrow { flex-wrap: wrap; row-gap: 8px; gap: 8px; font-size: 11px; letter-spacing: .2em; }
  .eyebrow::before { width: 16px; height: 11px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .hero-brand { font-size: clamp(32px, 9.2vw, 42px); }
  .hero-sub { font-size: 16px; }
  .hero-cta .btn { width: 100%; }
  .hero-side { max-width: none; }
  .ui-stage { padding: 22px 0 26px 0; }
  .ui-metrics { grid-template-columns: repeat(2, 1fr); }
  .frag-trend { right: -6px; top: -30px; }
  .frag-roi { left: -4px; bottom: -4px; }
  .ui-card { padding-bottom: 50px; }
  .ui-foot { flex-direction: column; gap: 4px; margin-top: 16px; }
  .formula { grid-template-columns: 1fr; gap: 22px; }
  .formula li { padding-right: 0; }
  .formula li:not(:last-child)::after { display: none; }
  .rule-red { margin-top: 48px; }
  .divider-row .rule { left: 18px; right: 18px; }
  .section { padding: 72px 0; }
  /* на мобильном декор сильно приглушён: номера едва видны, фоновые слова скрыты, «//» почти невидимы */
  .section-num { font-size: 88px; top: 18px; right: 4%; -webkit-text-stroke-color: rgba(255, 22, 22, .1); }
  .bg-word, .cta-bg-word, .about-bg, .adv-tag { display: none; }
  .bg-slash { opacity: .02; width: 240px; }
  .bg-slash-cta { opacity: .05; width: 300px; }
  .bg-lines { background-size: auto; opacity: .7; }
  .card h3 { font-size: 14px; }
  .card { padding: 22px 20px 24px; }
  .results-list { grid-template-columns: 1fr; gap: 0; }
  .results-list li { font-size: 16px; }
  .slogan-big { font-size: clamp(38px, 12vw, 48px); gap: 4px 12px; margin-top: 44px; }
  .section-cta { padding: 16px 0 64px; }
  .cta-band { padding: 36px 20px; border-radius: 16px; }
  .cta-actions .btn { width: 100%; white-space: normal; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .platform-list { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .request-card { padding: 22px 18px; }
  .request-tagline { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .brand-footer .brand-mark { height: 38px; }
  .brand-footer .brand-word { height: 22px; }
  .faq-item p { padding-right: 0; }
  .section-about { padding: 96px 0 80px; }
  .manifesto { font-size: clamp(26px, 7.4vw, 34px); }
  .about-lead .manifesto .accent-md { font-size: .9em; }
  .about-text { font-size: 15px; margin-top: 22px; }
  .chain { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 52px; padding: 22px 0; font-size: 12px; letter-spacing: .2em; }
  .chain li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .chain li:not(:last-child)::after { content: "\2193"; }
  .about-not { margin-top: 80px; }
  .came { font-size: clamp(28px, 7.6vw, 36px); }
  .came-accent { font-size: clamp(26px, 6.8vw, 32px); }
  .came-text { font-size: 15px; margin-top: 24px; }
  .about-key { margin-top: 72px; padding-top: 32px; }
  .key-1 { font-size: 17px; }
  .key-2 { font-size: clamp(22px, 6.6vw, 28px); }
  .srs { font-size: 15px; gap: 10px 12px; margin-top: 28px; }
  .adv-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 72px; padding-top: 36px; }
  .adv-num { font-size: 38px; }
  .section-contacts { padding-top: 64px; }
  .contacts-display { font-size: clamp(36px, 11vw, 44px); margin-bottom: 20px; }
  .contact-card { padding: 22px 18px; }
}

@media (max-width: 375px) {   /* узкие телефоны: логотип без подписи, чтобы шапка не переполнялась */
  .brand { gap: 8px; }
  .brand-mark { height: 22px; }
  .brand-word { height: 13px; }
  .brand-sub { display: none; }
}
@media (max-width: 340px) {
  .brand-mark { height: 19px; }
  .brand-word { height: 11px; }
  .burger { width: 36px; height: 36px; }
  .lang-btn { padding: 4px 7px; }
}
