/*
 * RootClick Influence Agency — стили лендинга (граффити-редизайн 07.09.2026).
 * База по брендбуку: Core Black + Charcoal, текст Root White, один акцент Root Neon (≤10% площади).
 * Типографика: clean sans (Montserrat / Inter) = информация; brush (Pacifico) = акцентные слова;
 * spray (Rubik Spray Paint) = декоративные слоганы и маркеры. Граффити-лого — только мастер-ассет.
 * Гранж (царапины, брызги, зерно, мазки) — фоновые слои, читаемость не трогают.
 */

:root {
  --black: #050505;
  --charcoal: #121212;
  --graphite: #1d1f20;
  --white: #f5f5f2;
  --neon: #29fa3a;
  --electric: #00f848;
  --lime: #a4fc60;
  --gray: #9aa0a6;
  --line: rgba(245, 245, 242, 0.08);
  --line-strong: rgba(245, 245, 242, 0.16);
  --neon-soft: rgba(41, 250, 58, 0.14);
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-accent: 'Pacifico', 'Marck Script', cursive;
  --font-spray: 'Rubik Spray Paint', 'Montserrat', sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 88px;
}

*, *::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(--neon); color: var(--black); }

.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; }

/* зерно поверх всего — тихая плёнка */
.grain { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: url('img/grain.png') repeat; opacity: .5; }

/* ---------------- кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.btn-primary {
  background: var(--neon); color: var(--black);
  box-shadow: 0 0 0 1px rgba(41, 250, 58, .25), 0 10px 30px rgba(41, 250, 58, .18);
}
.btn-primary:hover { background: var(--electric); box-shadow: 0 0 0 1px rgba(0, 248, 72, .35), 0 12px 38px rgba(0, 248, 72, .3); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ghost { background: rgba(5, 5, 5, .4); color: var(--white); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--neon); color: var(--neon); }
.btn-sm { padding: 11px 16px; font-size: 14px; }
.btn-lg { padding: 17px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------------- шапка ---------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(5, 5, 5, .82);
  border-bottom: 1px solid transparent; transition: background .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { background: rgba(5, 5, 5, .96); border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 68px; width: auto; filter: drop-shadow(0 0 14px rgba(41, 250, 58, .12)); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { font-size: 14px; font-weight: 500; color: var(--gray); transition: color .15s ease; position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--neon); transition: right .2s ease; }
.nav a:hover { color: var(--white); }
.nav a:hover::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.lang-btn { border: 0; background: transparent; color: var(--gray); padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .06em; cursor: pointer; transition: background .15s, color .15s; }
.lang-btn.is-active { background: var(--white); color: var(--black); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); 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(--white); }

/* ---------------- первый экран: branded-композиция ---------------- */
.hero {
  position: relative; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 56px;
  background:
    radial-gradient(760px 480px at 82% 12%, rgba(41, 250, 58, .075), transparent 66%),
    linear-gradient(180deg, #050505 0%, #080908 55%, #050505 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--white); }
.hero-graffiti {
  position: absolute; right: -8%; top: 6%; width: min(1180px, 96vw); opacity: .075;
  transform: translate3d(0, var(--py, 0px), 0) rotate(-7deg); will-change: transform;
}
.hero-splat { position: absolute; will-change: transform; }
.hero-splat-1 { left: -50px; top: 110px; width: 440px; opacity: .55; transform: translate3d(0, var(--py, 0px), 0); }
.hero-splat-2 { right: -20px; bottom: 90px; width: 250px; opacity: .55; transform: translate3d(0, var(--py, 0px), 0) rotate(160deg); }
.hero-scratches { position: absolute; inset: 0; background: url('img/scratches.png') center / cover no-repeat; opacity: .55; }
.hero-rim { position: absolute; top: 0; right: 0; width: 44%; height: 100%; background: linear-gradient(180deg, transparent 0%, rgba(41, 250, 58, .05) 30%, transparent 78%); }
.hero-rim::before { content: ''; position: absolute; right: 0; top: 12%; height: 48%; width: 1px; background: linear-gradient(180deg, transparent, var(--neon), transparent); opacity: .8; box-shadow: 0 0 18px rgba(41, 250, 58, .55); }
.hero-production { position: absolute; right: 3%; top: 15%; width: 560px; height: auto; opacity: .13; transform: translate3d(0, var(--py, 0px), 0); }
.hero-tag { position: absolute; font: 400 22px/1 var(--font-spray); color: var(--neon); opacity: .32; letter-spacing: .04em; white-space: nowrap; }
.hero-tag-1 { left: 55%; top: 15.5%; transform: rotate(-6deg); }
.hero-tag-2 { right: 5%; top: 75%; transform: rotate(4deg); font-size: 16px; opacity: .22; }

.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: 600 12px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--white);
}
.eyebrow i { font-style: normal; color: var(--neon); letter-spacing: 0; }
.eyebrow::before { content: ''; width: 34px; height: 2px; background: var(--neon); }

.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: 560px; font-size: 18px; line-height: 1.6; color: var(--gray); }
.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(--gray); }
.pulse, .ui-live i { position: relative; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); }
.pulse::after, .ui-live i::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--neon); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }

/* brush-акцент: «на депозити» кистью, неон, мазок-подчёркивание и подтёки */
.accent-wrap { position: relative; display: inline-block; white-space: nowrap; margin-left: .06em; }
.accent {
  position: relative; z-index: 1; display: inline-block; padding: 0 .08em 0 .04em;
  font: 400 1.14em/1 var(--font-accent); letter-spacing: .005em; color: var(--neon);
  transform: rotate(-2.5deg); transform-origin: left bottom;
  filter: url(#rough); text-shadow: 0 0 26px rgba(41, 250, 58, .45), 0 0 2px rgba(41, 250, 58, .6);
}
.paint-underline {
  position: absolute; left: -3%; right: -4%; bottom: -.34em; height: .62em; z-index: 0;
  background: var(--neon); opacity: .95;
  -webkit-mask: url('img/stroke.png') left top / 100% auto no-repeat; mask: url('img/stroke.png') left top / 100% auto no-repeat;
  transform-origin: left center; transform: scaleX(0); transition: transform .9s cubic-bezier(.2, .8, .2, 1) .45s;
}
.reveal.is-visible .paint-underline { transform: scaleX(1); }
.drip { position: absolute; top: 84%; width: .075em; background: var(--neon); border-radius: 0 0 .06em .06em; transform-origin: top; transform: scaleY(0); transition: transform .6s ease 1.15s; opacity: .9; }
.drip-1 { left: 31%; height: .48em; }
.drip-2 { left: 70%; height: .3em; transition-delay: 1.3s; }
.reveal.is-visible .drip { transform: scaleY(1); }

/* UI layer — сцена аналитики: карточка + фрагменты */
.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(18, 18, 18, .94);
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 1px rgba(41, 250, 58, .06), 0 0 60px rgba(41, 250, 58, .08);
}
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ui-title { font: 800 12px/1 var(--font-head); letter-spacing: .22em; text-transform: uppercase; color: var(--white); }
.ui-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--neon); }
.ui-live i { box-shadow: 0 0 10px var(--neon); }
.ui-period { margin-top: 8px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
/* состояния LIVE-карточки: loading (прочерки) → live (цифры из API) | empty (данных пока нет) */
.ui-card[data-state="loading"] .ui-metrics b { color: var(--gray); }
.ui-empty { display: none; padding: 22px 0 6px; }
.ui-empty p { max-width: 300px; font-size: 14px; line-height: 1.55; color: var(--gray); }
.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-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(5, 5, 5, .55); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; }
.ui-metric small { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.ui-metric b { display: block; margin-top: 6px; font: 600 20px/1 var(--font-body); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ui-metric.is-accent { border-color: rgba(41, 250, 58, .35); }
.ui-metric.is-accent b { color: var(--neon); }
.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: 3px 3px 1px 1px; background: var(--graphite); 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; }
.ui-bars i.is-accent { background: linear-gradient(180deg, var(--lime), var(--neon)); box-shadow: 0 0 14px rgba(41, 250, 58, .35); }
@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(--gray); }
.ui-card.has-roi .ui-foot { padding-left: 120px; }
.ui-caption { margin-top: 8px; font-size: 12px; letter-spacing: .04em; color: var(--gray); text-align: right; }

.frag {
  position: absolute; z-index: 2; background: rgba(12, 12, 12, .96); border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55), 0 0 24px rgba(41, 250, 58, .06);
  font-variant-numeric: tabular-nums;
}
.frag small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.frag b { display: block; font: 600 20px/1 var(--font-body); letter-spacing: -0.02em; }
/* «+12% 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(3deg); border-color: rgba(41, 250, 58, .35); }
.frag-trend .frag-arrow { grid-row: 1 / span 2; font: 700 22px/1 var(--font-body); color: var(--neon); }
.frag-trend.is-down .frag-arrow, .frag-trend.is-down b { color: var(--gray); }
.frag-trend b { color: var(--neon); }
.frag-trend small { margin-top: 3px; }
.frag-roi { left: -18px; bottom: -4px; padding: 10px 14px; transform: rotate(-3deg); }
.frag-roi b { margin-top: 4px; color: var(--neon); }

/* brush-разделители */
.brush-divider {
  height: 16px; width: 100%; background: rgba(245, 245, 242, .22);
  -webkit-mask: url('img/divider.png') center / 100% 100% no-repeat; mask: url('img/divider.png') center / 100% 100% no-repeat;
}
.brush-divider-neon { background: var(--neon); opacity: .8; margin-top: 64px; }
.divider-row { max-width: 1180px; margin: -8px auto; padding: 0 24px; position: relative; z-index: 2; }

/* формула бренда */
.formula {
  position: relative; z-index: 1; list-style: none; margin: 26px 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: block; font: 800 13px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--white); }
.formula li b::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 12px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px rgba(41, 250, 58, .6); vertical-align: 1px; }
.formula li p { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--gray); }
.formula li:not(:last-child)::after { content: '→'; position: absolute; right: 0; top: -2px; font-size: 16px; color: var(--neon); }

/* ---------------- секции ---------------- */
.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: 600 12px/1 var(--font-body); letter-spacing: .3em; text-transform: uppercase; color: var(--neon); }
.kicker::before { content: ''; width: 26px; height: 2px; background: var(--neon); }
.kicker-crown::after { content: ''; width: 30px; height: 22px; margin-left: 4px; background: url('img/crown.png') center / contain no-repeat; opacity: .9; }
.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(--gray); }

/* оверсайз-номер, фоновая типографика, брызги */
.section-num {
  position: absolute; right: 2%; top: 34px; z-index: 0; pointer-events: none; user-select: none;
  font: 900 clamp(120px, 15vw, 210px)/1 var(--font-head); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(245, 245, 242, .13);
}
.bg-word {
  position: absolute; left: -1%; bottom: 6%; z-index: 0; pointer-events: none; user-select: none;
  font: 400 clamp(54px, 8.6vw, 118px)/1 var(--font-spray); color: var(--white); opacity: .045; white-space: nowrap;
  transform: rotate(-4deg);
}
.bg-word-right { left: auto; right: -2%; bottom: 10%; transform: rotate(3deg); }
.splat { position: absolute; z-index: 0; pointer-events: none; }
.splat-about { right: -10px; top: 40%; width: 190px; opacity: .45; transform: rotate(120deg); }
.splat-services { left: -60px; bottom: -20px; width: 380px; opacity: .35; transform: rotate(-8deg); }
.splat-request { right: -40px; top: -10px; width: 360px; opacity: .3; transform: rotate(190deg); }
.splat-footer { right: -20px; bottom: 30px; width: 180px; opacity: .35; transform: rotate(-150deg); }
.section > .wrap { position: relative; z-index: 1; }

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

.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px 28px;
  background: radial-gradient(260px circle at var(--gx, -200px) var(--gy, -200px), rgba(41, 250, 58, .13), transparent 62%), var(--charcoal);
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.card::before { content: ''; position: absolute; left: 28px; top: 0; width: 34px; height: 2px; background: var(--neon); opacity: .9; }
.card:hover { border-color: rgba(41, 250, 58, .35); box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 30px rgba(41, 250, 58, .07); }
/* заголовки карточек — performance-стиль: капс, разрядка, clean sans */
.card h3 { font: 800 15px/1.4 var(--font-head); letter-spacing: .07em; text-transform: uppercase; padding-right: 36px; }
.card p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--gray); }
.card[data-mark]::after { content: attr(data-mark); position: absolute; right: 20px; top: 12px; font: 400 26px/1 var(--font-spray); color: var(--neon); opacity: .5; transform: rotate(-6deg); }
/* лёгкий наклон к курсору + подъём; переменные ставит app.js */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(calc(var(--ty, 0px) + var(--lift, 0px))); }
.tilt:hover { --lift: -4px; }
.grid-offset > :nth-child(even) { --ty: 30px; }
.grid-stagger > :nth-child(2), .grid-stagger > :nth-child(5) { --ty: 24px; }

/* шаги + анимированная неон-линия */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps-line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 60px; overflow: visible; pointer-events: none; }
.steps-path { fill: none; stroke: var(--neon); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1320; stroke-dashoffset: 1320; opacity: .85; filter: url(#rough) drop-shadow(0 0 6px rgba(41, 250, 58, .7)); }
.steps.is-visible .steps-path { animation: draw 1.7s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.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(--black); border: 1px solid var(--neon);
  font: 700 13px/1 var(--font-head); letter-spacing: .08em; color: var(--neon); box-shadow: 0 0 22px rgba(41, 250, 58, .2);
  transform: scale(.6); opacity: 0;
}
.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(--gray); }

/* площадки и направления — чисто и функционально */
.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(--charcoal); border: 1px solid var(--line); border-radius: 14px;
  font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--white);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.platform svg { width: 26px; height: 26px; color: var(--white); transition: color .2s ease, filter .2s ease; }
.platform:hover { border-color: rgba(41, 250, 58, .45); transform: translateY(-3px); }
.platform:hover svg { color: var(--neon); filter: drop-shadow(0 0 10px rgba(41, 250, 58, .5)); }
.niches { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.niches-title { font: 800 13px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; }
.niches-sub { margin-top: 12px; font-size: 15px; color: var(--gray); max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--white); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--neon); color: var(--neon); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font: 600 17px/1.35 var(--font-head); transition: color .15s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--neon); }
.faq-item summary i { position: relative; flex: 0 0 auto; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; transition: border-color .2s, transform .25s ease; }
.faq-item summary i::before, .faq-item summary i::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--white); transform: translate(-50%, -50%); }
.faq-item summary i::before { width: 12px; height: 2px; }
.faq-item summary i::after { width: 2px; height: 12px; transition: opacity .2s; }
.faq-item[open] summary i { border-color: var(--neon); transform: rotate(180deg); }
.faq-item[open] summary i::after { opacity: 0; }
.faq-item[open] summary i::before { background: var(--neon); }
.faq-item p { padding: 0 60px 24px 0; font-size: 15px; line-height: 1.65; color: var(--gray); }

/* заявка */
.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 { margin-top: 44px; font: 800 12px/1 var(--font-head); letter-spacing: .32em; text-transform: uppercase; color: var(--white); }
.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(--gray); 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: 700 12px/1.4 var(--font-head); letter-spacing: .1em; color: var(--neon); }
.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, 242, .2); }
.accent-wrap-sm { margin-left: .1em; }
.accent-sm { font-size: 1.28em; text-transform: none; transform: rotate(-3deg); }
.accent-wrap-sm .paint-underline { bottom: -.3em; height: .58em; opacity: .85; }

.request-card { position: relative; background: var(--charcoal); border: 1px solid var(--line-strong); border-radius: 20px; 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: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--black); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  color: var(--white); 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(--gray) 50%), linear-gradient(135deg, var(--gray) 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(--charcoal); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: rgba(154, 160, 166, .6); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--neon); box-shadow: 0 0 0 3px rgba(41, 250, 58, .15); }
.field-error { display: none; font-size: 12px; font-style: normal; color: #ff5c5c; }
.field.is-invalid input { border-color: #ff5c5c; }
.field.is-invalid .field-error { display: block; }
.form-note { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--gray); 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: var(--neon-soft); border: 1px solid rgba(41, 250, 58, .4); color: var(--neon); }
.form-status.is-err { display: block; background: rgba(255, 92, 92, .1); border: 1px solid rgba(255, 92, 92, .4); color: #ff8080; }

/* ---------------- подвал ---------------- */
.site-footer { position: relative; overflow: hidden; 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 1fr; gap: 32px; }
.footer-logo { width: 200px; height: auto; filter: drop-shadow(0 0 18px rgba(41, 250, 58, .12)); }
.footer-brand p { margin-top: 18px; max-width: 360px; font-size: 14px; color: var(--gray); }
.footer-formula { font: 800 11px/1 var(--font-head) !important; letter-spacing: .32em; text-transform: uppercase; color: var(--white) !important; }
.footer-formula i { font-style: normal; color: var(--neon); }
.footer-col h4 { font: 600 12px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--gray); transition: color .15s; }
.footer-col a:hover { color: var(--neon); }
.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(--gray); }
.footer-line { font-weight: 600; letter-spacing: .26em; text-transform: uppercase; }
.footer-line i { font-style: normal; color: var(--neon); }

/* ---------------- B2B-блоки: демо-метка, «Для рекламодавців», «Результат», CTA, success ---------------- */
.demo-pill { display: inline-flex; align-items: center; padding: 4px 8px; border: 1px solid rgba(41, 250, 58, .5); border-radius: 6px; font: 700 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--neon); }

/* «Для рекламодавців»: чище и деловее, без spray-маркеров */
.card-clean { background: linear-gradient(180deg, rgba(20, 20, 20, .98), rgba(12, 12, 12, .98)); border-color: var(--line-strong); padding-top: 26px; }
.card-clean::before { left: 0; width: 100%; height: 1px; background: linear-gradient(90deg, var(--neon), rgba(41, 250, 58, 0) 60%); opacity: .7; }
.card-index { display: inline-block; margin-bottom: 14px; font: 600 11px/1 var(--font-body); letter-spacing: .26em; color: var(--neon); }
.card-clean h3 { padding-right: 0; }

/* «Результат»: список без карточек + слоган 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: 700 12px/1 var(--font-head); letter-spacing: .22em; color: var(--neon); }
.results-list li.is-final span { font-weight: 600; color: var(--white); }
.results-list li.is-final b { text-shadow: 0 0 12px rgba(41, 250, 58, .6); }
.splat-results { right: -30px; top: 28%; width: 200px; opacity: .35; transform: rotate(40deg); }
.slogan-big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; margin: 64px 0 0; font: 400 clamp(36px, 5.1vw, 74px)/1.05 var(--font-spray); text-transform: uppercase; letter-spacing: .02em; color: var(--white); }
.slogan-big > i { font: 900 .5em/1 var(--font-head); font-style: normal; color: var(--neon); }
.slogan-big > span { display: inline-block; opacity: 0; transform: translateY(26px) skewX(-6deg); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.slogan-big > span:nth-of-type(2) { transition-delay: .22s; }
.slogan-big > span:nth-of-type(3) { transition-delay: .44s; }
.slogan-big.is-visible > span { opacity: 1; transform: none; }
.slogan-scale { position: relative; z-index: 1; color: var(--neon); text-shadow: 0 0 26px rgba(41, 250, 58, .4); }
.slogan-big .paint-underline { bottom: -.12em; height: .42em; transition-delay: .95s; }

/* шаги: 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-strong); border-radius: 6px; font: 700 10px/1 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }
.step-tags span.is-scale { border-color: rgba(41, 250, 58, .55); color: var(--neon); box-shadow: 0 0 16px rgba(41, 250, 58, .15); }

/* CTA-баннер перед FAQ */
.section-cta { padding: 32px 0 96px; }
.cta-band { position: relative; overflow: hidden; background: var(--charcoal); border: 1px solid var(--line-strong); border-radius: 24px; padding: 64px 60px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.cta-band::before { content: ''; position: absolute; left: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(41, 250, 58, .1), transparent 70%); pointer-events: none; }
.cta-bg-word { position: absolute; right: -3%; bottom: -10%; font: 400 clamp(56px, 8.5vw, 120px)/1 var(--font-spray); color: var(--white); opacity: .04; white-space: nowrap; transform: rotate(-4deg); pointer-events: none; }
.splat-cta { right: 6%; top: -40px; width: 260px; opacity: .3; transform: rotate(170deg); }
.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(--gray); }

/* 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(41, 250, 58, .55); color: var(--neon); box-shadow: 0 0 30px rgba(41, 250, 58, .25), inset 0 0 18px rgba(41, 250, 58, .08); }
.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(--gray); }
.form-success .btn { margin-top: 22px; }

/* контакты в подвале */
.footer-contact { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.footer-contact small { flex: 0 0 64px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }
.footer-col .footer-contact a { margin-bottom: 0; }

/* ---------------- появление при скролле ---------------- */
/* страховка: если наблюдатель не сработал — блок всё равно появится через 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; } }
/* та же страховка для вложенных эффектов, которые ждут .is-visible: слова слогана, мазки, подтёки */
.slogan-big > span { animation: reveal-fallback .6s ease 3s forwards; }
.paint-underline { animation: underline-fallback .9s cubic-bezier(.2, .8, .2, 1) 3.2s forwards; }
.drip { animation: drip-fallback .6s ease 3.6s forwards; }
@keyframes underline-fallback { to { transform: scaleX(1); } }
@keyframes drip-fallback { to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; animation: none; }
  .pulse::after, .ui-live i::after, .ui-bars i { animation: none; }
  .paint-underline, .drip { transform: none; transition: none; animation: none; }
  .slogan-big > span { opacity: 1; transform: none; transition: none; animation: none; }
  .steps-path { stroke-dashoffset: 0; animation: none; }
  .step-num { transform: none; opacity: 1; }
  .steps.is-visible .step-num { animation: none; }
  .tilt { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- адаптив ---------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .hero-side { justify-self: start; max-width: 470px; }
  .hero-graffiti { right: -30%; top: 2%; width: 130vw; opacity: .06; }
  .hero-production { display: none; }
  .hero-tag { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-offset > :nth-child(even), .grid-stagger > :nth-child(2), .grid-stagger > :nth-child(5) { --ty: 0px; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .steps-line { 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; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .brand-logo { height: 56px; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    background: rgba(5, 5, 5, .97); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--white); }
  .nav a::after { display: none; }
  .header-cta { display: none; }
  .burger { display: inline-flex; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .eyebrow { flex-wrap: wrap; row-gap: 8px; gap: 8px; font-size: 11px; letter-spacing: .2em; }
  .eyebrow::before { width: 18px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); }
  .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; }
  .hero-splat-1 { width: 300px; top: 70px; }
  .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; }
  .brush-divider-neon { margin-top: 48px; }
  .section { padding: 72px 0; }
  /* на мобильном декор сильно приглушён: номера едва видны, фоновые слоганы скрыты, брызги тише */
  .section-num { font-size: 88px; top: 18px; right: 4%; -webkit-text-stroke-color: rgba(245, 245, 242, .07); }
  .bg-word, .cta-bg-word { display: none; }
  .section .splat, .site-footer .splat { opacity: .16; }
  .card h3 { font-size: 14px; }
  .results-list { grid-template-columns: 1fr; gap: 0; }
  .results-list li { font-size: 16px; }
  .slogan-big { font-size: 34px; gap: 4px 12px; margin-top: 44px; }
  .section-cta { padding: 16px 0 64px; }
  .cta-band { padding: 36px 20px; border-radius: 18px; }
  .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; }
  .splat-services, .splat-request { width: 220px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-logo { width: 160px; }
  .faq-item p { padding-right: 0; }
}
