/* ============================================================
   Boost! Agency — Landing styles
   Dark enterprise, brand #655BFA
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surface */
  --bg-page:        #0a0a10;
  --bg-section:     rgba(15, 15, 22, 0.72);       /* полупрозрачно — пропускает mesh-gradient */
  --bg-surface:     rgba(23, 23, 32, 0.82);
  --bg-elevated:    #1c1c26;

  /* Text */
  --text-primary:   #f5f5f7;
  --text-secondary: #c9c9d1;
  --text-muted:     #8a8a95;
  --text-faint:     #8a8a95;

  /* Borders */
  --border:         #24242c;
  --border-subtle:  #1a1a20;
  --border-strong:  #32323c;

  /* Brand */
  --accent:         #655BFA;
  --accent-hover:   #7a71ff;
  --accent-light:   #8b7fff;
  --accent-bg:      rgba(101,91,250,0.10);
  --accent-ring:    rgba(101,91,250,0.35);
  --accent-glow:    0 0 0 1px rgba(101,91,250,0.35), 0 12px 32px -8px rgba(101,91,250,0.45);

  /* Secondary accents */
  --accent-warm:       #ff8a5b;        /* коралл — тёплый CTA / highlight */
  --accent-warm-light: #ffad88;
  --accent-warm-bg:    rgba(255,138,91,0.10);
  --accent-success:    #3ecf8e;        /* зелёный — рост метрик / success */
  --accent-success-bg: rgba(62,207,142,0.10);
  --accent-danger:     #e0585b;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display: clamp(48px, 7vw, 96px);
  --fs-h1:      clamp(40px, 5vw, 64px);
  --fs-h2:      clamp(28px, 3.2vw, 40px);
  --fs-h3:      22px;
  --fs-body-lg: 19px;
  --fs-body:    16px;
  --fs-small:   14px;
  --fs-micro:   12px;

  /* Spacing */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;

  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 56px);

  /* Radii / Shadows / Motion */
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-xl: 24px; --radius-pill: 999px;
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 6px var(--accent-ring);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-med: 280ms;
  --dur-slow: 520ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-page);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Mesh-gradient фон — просвечивает сквозь прозрачные секции */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 12% -8%,  rgba(101,91,250,0.22) 0%, transparent 55%),
    radial-gradient(900px 700px at 108% 28%,  rgba(139,127,255,0.14) 0%, transparent 60%),
    radial-gradient(1100px 700px at -10% 72%, rgba(101,91,250,0.16) 0%, transparent 60%),
    radial-gradient(1000px 700px at 115% 105%,rgba(139,127,255,0.10) 0%, transparent 55%),
    linear-gradient(180deg, #0a0a12 0%, #0d0d18 38%, #0b0b14 72%, #0a0a10 100%);
}
body.is-menu-open { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--text-primary); line-height: 1.08; letter-spacing: -0.02em; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.035em; }
h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
p { font-size: inherit; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.section {
  position: relative;
  padding-block: var(--space-10);
  scroll-margin-top: 80px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.section.is-visible { opacity: 1; transform: none; }
/* Hero должен быть виден сразу — fade-in по скроллу применяем только ниже первого экрана */
.section.hero { opacity: 1; transform: none; transition: none; }

/* Stagger-анимация для карточек внутри видимой секции */
.section .channel-card,
.section .algo-card,
.section .process__step,
.section .result {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.section.is-visible .channel-card,
.section.is-visible .algo-card,
.section.is-visible .process__step,
.section.is-visible .result {
  opacity: 1;
  transform: none;
}
.section.is-visible .channel-card:nth-child(1),
.section.is-visible .algo-card:nth-child(1),
.section.is-visible .process__step:nth-child(1),
.section.is-visible .result:nth-child(1)  { transition-delay: .05s; }
.section.is-visible .channel-card:nth-child(2),
.section.is-visible .algo-card:nth-child(2),
.section.is-visible .process__step:nth-child(2),
.section.is-visible .result:nth-child(2)  { transition-delay: .12s; }
.section.is-visible .channel-card:nth-child(3),
.section.is-visible .algo-card:nth-child(3),
.section.is-visible .process__step:nth-child(3),
.section.is-visible .result:nth-child(3)  { transition-delay: .19s; }
.section.is-visible .channel-card:nth-child(4),
.section.is-visible .process__step:nth-child(4),
.section.is-visible .result:nth-child(4)  { transition-delay: .26s; }
.section.is-visible .channel-card:nth-child(5)  { transition-delay: .33s; }
.section.is-visible .channel-card:nth-child(6)  { transition-delay: .40s; }
.section--alt {
  background: linear-gradient(180deg, rgba(18,18,28,0.82) 0%, rgba(24,24,36,0.92) 50%, rgba(18,18,28,0.82) 100%);
  border-top: 1px solid rgba(101,91,250,0.14);
  border-bottom: 1px solid rgba(101,91,250,0.14);
  box-shadow: inset 0 1px 0 rgba(139,127,255,0.06);
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: var(--space-5);
}
.section__head {
  max-width: 820px;
  margin-bottom: var(--space-9);
}
.section__head h2 { font-size: var(--fs-h1); }
.section__head p {
  margin-top: var(--space-5);
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: var(--shadow-glow); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:hover { box-shadow: 0 10px 28px -10px rgba(101,91,250,0.65); transform: translateY(-2px); }
.btn--ghost { color: var(--text-primary); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent-light); background: var(--bg-elevated); box-shadow: 0 0 0 1px rgba(139,127,255,0.35); }
.btn--warm { background: var(--accent-warm); color: #140a05; }
.btn--warm:hover { background: var(--accent-warm-light); box-shadow: 0 10px 28px -10px rgba(255,138,91,0.6); transform: translateY(-2px); }
.btn--large { padding: 18px 32px; font-size: var(--fs-body); min-height: 48px; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,16,0.55);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.header.is-scrolled { border-bottom-color: rgba(101,91,250,0.18); background: rgba(10,10,16,0.80); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.header__logo img { height: 28px; width: auto; }
.header__nav { display: flex; gap: var(--space-7); align-items: center; }
.header__nav > a,
.header__nav-trigger {
  font-size: var(--fs-small);
  color: var(--text-secondary);
  transition: color var(--dur-med) var(--ease-out);
}
.header__nav > a:hover,
.header__nav-trigger:hover { color: var(--text-primary); }

/* Dropdown */
.header__nav-item--dropdown { position: relative; }
.header__nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  font-weight: 400;
  line-height: inherit;
}
.header__nav-caret {
  transition: transform var(--dur-med) var(--ease-out);
  opacity: 0.7;
}
.header__nav-item--dropdown:hover .header__nav-caret,
.header__nav-item--dropdown:focus-within .header__nav-caret,
.header__nav-trigger[aria-expanded="true"] .header__nav-caret {
  transform: rotate(-180deg);
  opacity: 1;
}
.header__dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 320px;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(180deg, rgba(28,28,38,0.98) 0%, rgba(20,20,28,0.96) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  z-index: 110;
}
.header__dropdown::before {
  content: "";
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.header__nav-item--dropdown:hover .header__dropdown,
.header__nav-item--dropdown:focus-within .header__dropdown,
.header__nav-trigger[aria-expanded="true"] + .header__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.header__dropdown a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: background var(--dur-med) var(--ease-out);
}
.header__dropdown a:hover { background: var(--accent-bg); }
.header__dropdown-title { font-size: var(--fs-small); font-weight: 600; }
.header__dropdown-sub  { font-size: var(--fs-micro); color: var(--text-muted); letter-spacing: 0.01em; }

/* Mobile menu section header */
.mobile-menu__group {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: var(--space-3);
}

/* Topup — ровная сетка на 4 колонки */
.platforms__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 1199px) {
  .platforms__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .platforms__grid { grid-template-columns: 1fr; }
}

/* Topup platform card — logo on top */
.platforms__card .platforms__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.platforms__card .platforms__logo img { width: 100%; height: 100%; object-fit: contain; }
.header__cta { display: inline-flex; }
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 40px; height: 40px;
  gap: 5px;
}
.header__burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--text-primary);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-med) var(--ease-out);
  align-self: center;
}
body.is-menu-open .header__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.is-menu-open .header__burger span:nth-child(2) { opacity: 0; }
body.is-menu-open .header__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; inset: 72px 0 0 0;
  background: rgba(10,10,16,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-8) var(--container-pad);
  display: flex; flex-direction: column; gap: var(--space-6);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 32px; color: var(--text-primary); }
.mobile-menu .btn { align-self: flex-start; margin-top: var(--space-5); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  padding-block: var(--space-10) var(--space-9);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--space-9); align-items: center; }
.hero__inner { max-width: none; }

/* Floating KPI composition справа от заголовка */
.hero__viz {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  justify-self: end;
  width: 100%;
}
.hero__orb {
  position: absolute; inset: 12% 8% auto auto;
  width: 72%; aspect-ratio: 1;
  background: radial-gradient(circle at 35% 30%, rgba(139,127,255,0.55) 0%, rgba(101,91,250,0.35) 35%, transparent 72%);
  filter: blur(22px);
  border-radius: 50%;
  animation: heroPulse 8s var(--ease-out) infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 1; }
}
.hero__card {
  position: absolute;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(28,28,38,0.92) 0%, rgba(20,20,28,0.88) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: var(--space-2);
  min-width: 184px;
}
.hero__card--a { top: 6%; left: 0; animation: heroFloatA 9s var(--ease-out) infinite; }
.hero__card--b { top: 38%; right: -4%; animation: heroFloatB 11s var(--ease-out) infinite; }
.hero__card--c { bottom: 4%; left: 14%; animation: heroFloatA 10s var(--ease-out) infinite reverse; }
@keyframes heroFloatA {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes heroFloatB {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
.hero__card-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.hero__card-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: 28px; line-height: 1; color: var(--text-primary);
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.hero__card-delta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: var(--radius-pill);
  width: fit-content;
}
.hero__card-delta--up { background: var(--accent-success-bg); color: var(--accent-success); }
.hero__card-delta--warm { background: var(--accent-warm-bg); color: var(--accent-warm-light); }
.hero__card-delta--accent { background: var(--accent-bg); color: var(--accent-light); }
.hero__card-spark {
  margin-top: var(--space-1);
  width: 100%; height: 22px;
  display: block;
}
@media (max-width: 1199px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__viz { display: none; }
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}
.hero__bg::before {
  content: "";
  position: absolute; top: -20%; right: -10%;
  width: 760px; height: 760px;
  background: radial-gradient(circle at center, rgba(101,91,250,0.35) 0%, transparent 60%);
  filter: blur(40px);
}
.hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.35; }
.hero .container { position: relative; z-index: 1; }
.hero__inner { max-width: 920px; }
.hero__title {
  font-size: var(--fs-display);
  line-height: 0.98;
  margin-bottom: var(--space-6);
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-light) 0%, #c4bcff 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-light); /* fallback */
}
.hero__subtitle {
  max-width: 640px;
  font-size: var(--fs-body-lg);
  color: var(--text-secondary);
  margin-bottom: var(--space-7);
}
.hero__cta { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-7); }
.section__head .hero__cta { margin-top: var(--space-6); }
.hero__proof {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--text-muted); font-size: var(--fs-small);
}
.hero__proof-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* ============================================================
   LOGOS STRIP
   ============================================================ */
.logos { padding-block: var(--space-8); border-block: 1px solid var(--border-subtle); }
.logos__label {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  letter-spacing: 0.02em;
}
.logos__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.logos__item {
  display: flex; align-items: center; justify-content: center;
  filter: grayscale(1) brightness(1.6);
  opacity: 0.72;
  transition: opacity var(--dur-med) var(--ease-out), filter var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
  height: 40px;
}
.logos__item:hover { opacity: 1; filter: none; transform: translateY(-1px); }
.logos__item img { max-height: 100%; width: auto; }

/* ============================================================
   APPROACH  (Problem/Solution)
   ============================================================ */
.approach__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-9);
  align-items: start;
}
.approach__heading { position: sticky; top: 112px; }
.approach__heading h2 { font-size: var(--fs-h1); }
.approach__list { display: flex; flex-direction: column; gap: var(--space-7); }
.approach__item {
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  position: relative;
}
.approach__old {
  font-size: var(--fs-small);
  color: var(--text-faint);
  text-decoration: line-through;
  margin-bottom: var(--space-3);
  letter-spacing: 0.01em;
}
.approach__new {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.02em;
}

/* ============================================================
   PLATFORM / ANALYTICS (mockup + text layout)
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-9);
  align-items: center;
}
.split--reverse { grid-template-columns: 7fr 5fr; }
.split--reverse .split__mock { order: -1; }
.split__text h2 { font-size: var(--fs-h1); margin-bottom: var(--space-5); }
.split__text p { font-size: var(--fs-body-lg); color: var(--text-secondary); margin-bottom: var(--space-6); }
.split__list { display: flex; flex-direction: column; gap: var(--space-4); }
.split__list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  font-size: var(--fs-body);
  color: var(--text-primary);
  list-style: none;
}
.split__list li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'><path d='M3 7l3 3 5-6' stroke='%23655BFA' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.split__mock {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.split__mock::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 80%;
  background: radial-gradient(ellipse at top, rgba(101,91,250,0.35) 0%, transparent 70%);
  z-index: -1;
  filter: blur(40px);
}
.split__mock img { display: block; width: 100%; height: auto; }

/* ============================================================
   CHANNELS
   ============================================================ */
/* Bento: 12-колоночная сетка с асимметрией */
.channels__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-4);
}
/* раскладка: 5 / 4 / 3   |   3 / 4 / 5 — зеркальный ритм */
.channels__grid > .channel-card:nth-child(1) { grid-column: span 5; }
.channels__grid > .channel-card:nth-child(2) { grid-column: span 4; }
.channels__grid > .channel-card:nth-child(3) { grid-column: span 3; }
.channels__grid > .channel-card:nth-child(4) { grid-column: span 3; }
.channels__grid > .channel-card:nth-child(5) { grid-column: span 4; }
.channels__grid > .channel-card:nth-child(6) { grid-column: span 5; }

.channel-card {
  position: relative;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(101,91,250,0.08) 0%, transparent 55%),
    var(--bg-surface);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out),
              background var(--dur-med) var(--ease-out);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.channel-card::after {
  content: "";
  position: absolute; inset: auto -40% -60% auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle at center, rgba(101,91,250,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-med) var(--ease-out);
  pointer-events: none;
}
.channel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(101,91,250,0.45);
  box-shadow: var(--accent-glow);
}
.channel-card:hover::after { opacity: 1; }
.channel-card:hover .channel-card__icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.05);
}
.channel-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  color: var(--accent-light);
  margin-bottom: var(--space-5);
  transition: background var(--dur-med) var(--ease-out),
              color var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}
.channel-card__icon svg { width: 22px; height: 22px; }
.channel-card h3 { font-size: 20px; margin-bottom: var(--space-3); color: var(--text-primary); position: relative; }
.channel-card p { font-size: var(--fs-small); color: var(--text-muted); position: relative; }

/* Warm-вариант для одного из каналов (по классу .channel-card--warm) */
.channel-card--warm .channel-card__icon { background: var(--accent-warm-bg); color: var(--accent-warm-light); }
.channel-card--warm:hover { border-color: rgba(255,138,91,0.45); box-shadow: 0 0 0 1px rgba(255,138,91,0.35), 0 12px 32px -8px rgba(255,138,91,0.35); }
.channel-card--warm:hover .channel-card__icon { background: var(--accent-warm); color: #140a05; }

/* ============================================================
   ALGO
   ============================================================ */
/* Асимметрия: первая карточка шире и выше */
.algo__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}
.algo__grid > .algo-card:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.algo__grid > .algo-card:nth-child(2) { grid-column: span 6; }
.algo__grid > .algo-card:nth-child(3) { grid-column: span 6; }
.algo-card {
  padding: var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
.algo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(101,91,250,0.45);
  box-shadow: var(--accent-glow);
}
.algo-card::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle at center, rgba(101,91,250,0.18) 0%, transparent 60%);
}
.algo-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  color: var(--text-primary);
  position: relative;
}
.algo-card p { color: var(--text-secondary); font-size: var(--fs-body); position: relative; }

/* ============================================================
   RESULTS
   ============================================================ */
.results .container { text-align: center; }
.results__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding-block: var(--space-8);
}
.result {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
}
.result__value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 6vw, 88px);
  letter-spacing: -0.04em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result__value--success { color: var(--accent-success); }
.result__value--warm    { color: var(--accent-warm-light); }
.result__value--accent  { color: var(--accent-light); }
.result__label { font-size: var(--fs-small); color: var(--text-muted); max-width: 200px; }

/* ============================================================
   CASE
   ============================================================ */
.case__card {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--space-8);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at bottom right, rgba(101,91,250,0.08) 0%, transparent 55%),
    var(--bg-surface);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.case__card:hover { transform: translateY(-4px); border-color: rgba(101,91,250,0.45); box-shadow: var(--accent-glow); }
.case__label {
  font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent-light); margin-bottom: var(--space-4);
}
.case__logo {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}
.case__headline {
  font-size: clamp(32px, 3.5vw, 48px);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}
.case__desc { font-size: var(--fs-body-lg); color: var(--text-secondary); margin-bottom: var(--space-6); }
.case__link {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--accent-light); font-weight: 600; font-size: var(--fs-small);
}
.case__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
  align-content: center;
}
.case__stat {
  padding: var(--space-5);
  border-left: 2px solid var(--accent);
  background: rgba(255,255,255,0.02);
}
.case__stat-label { font-size: var(--fs-micro); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--space-2); }
.case__stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.case__stat-sub { font-size: var(--fs-micro); color: var(--text-faint); margin-top: var(--space-1); }

/* ============================================================
   PROCESS
   ============================================================ */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
  position: relative;
}
.process__grid::before {
  content: "";
  position: absolute;
  top: 36px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(101,91,250,0.5) 12%,
    rgba(139,127,255,0.6) 50%,
    rgba(101,91,250,0.5) 88%,
    transparent 100%);
  border-radius: 2px;
}
.process__step {
  position: relative;
  padding: var(--space-6) var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  transition: transform var(--dur-med) var(--ease-out),
              border-color var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}
.process__step:hover {
  transform: translateY(-4px);
  border-color: rgba(101,91,250,0.45);
  box-shadow: var(--accent-glow);
}
.process__num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(101,91,250,0.18) 0%, rgba(101,91,250,0.04) 100%);
  position: relative;
  box-shadow: 0 0 0 4px rgba(101,91,250,0.08);
}
.process__step:hover .process__num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 6px rgba(101,91,250,0.18);
}
.process__step h3 { font-size: 20px; margin-bottom: var(--space-3); color: var(--text-primary); }
.process__step p { color: var(--text-muted); font-size: var(--fs-small); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-9);
  align-items: start;
}
.contact__text h2 { font-size: var(--fs-h1); margin-bottom: var(--space-5); }
.contact__text p { font-size: var(--fs-body-lg); color: var(--text-secondary); margin-bottom: var(--space-7); }
.contact__benefits { list-style: none; display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-7); }
.contact__benefits li { color: var(--text-secondary); font-size: var(--fs-body); display: flex; align-items: flex-start; gap: var(--space-3); }
.contact__benefits li::before {
  content: "→"; color: var(--accent-light); font-weight: 600;
}
.contact__channels { display: flex; flex-direction: column; gap: var(--space-3); font-size: var(--fs-small); color: var(--text-muted); }
.contact__channels a { color: var(--text-primary); }
.contact__channels a:hover { color: var(--accent-light); }

.form {
  padding: var(--space-7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.form__row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4);
}
.form__field { display: flex; flex-direction: column; gap: var(--space-2); }
.form__field label {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}
.form__field input,
.form__field select,
.form__field textarea {
  padding: 14px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--fs-body);
  transition: border-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
  width: 100%;
}
.form__field textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
.form__field input:invalid:not(:placeholder-shown) { border-color: #e0585b; }

/* Chrome / Edge / Safari — убираем белый фон автозаполнения.
   background-color у :-webkit-autofill переопределить нельзя напрямую —
   используем inset box-shadow как фон + -webkit-text-fill-color для текста. */
.form__field input:-webkit-autofill,
.form__field input:-webkit-autofill:hover,
.form__field input:-webkit-autofill:focus,
.form__field input:-webkit-autofill:active,
.form__field select:-webkit-autofill,
.form__field textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
          box-shadow: 0 0 0 1000px var(--bg-elevated) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary);
  border-color: var(--border) !important;
  transition: background-color 9999s ease-in-out 0s, color 9999s ease-in-out 0s;
}
.form__field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-elevated) inset, 0 0 0 3px var(--accent-ring) !important;
          box-shadow: 0 0 0 1000px var(--bg-elevated) inset, 0 0 0 3px var(--accent-ring) !important;
  border-color: var(--accent) !important;
}
/* Firefox — у него свой механизм, фон просто через !important */
.form__field input:autofill,
.form__field select:autofill,
.form__field textarea:autofill {
  background: var(--bg-elevated) !important;
  color: var(--text-primary) !important;
}
.form__checkbox { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-small); color: var(--text-muted); }
.form__checkbox input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.form__checkbox a { color: var(--accent-light); text-decoration: underline; }
.form__submit { align-self: flex-start; }

.form__success {
  padding: var(--space-8);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--accent-bg);
  text-align: center;
  display: none;
}
.form__success.is-visible { display: block; }
.form__success-icon {
  width: 56px; height: 56px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.form__success h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; margin-bottom: var(--space-3); }
.form__success p { color: var(--text-secondary); }

/* ============================================================
   FAQ
   ============================================================ */
.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-9);
  align-items: start;
}
.faq__heading { position: sticky; top: 112px; }
.faq__heading h2 { font-size: var(--fs-h1); }
.faq__list { display: flex; flex-direction: column; }
.faq__item {
  border-top: 1px solid var(--border);
  padding-block: var(--space-5);
}
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-5);
  padding: 0;
  text-align: left;
  font-size: var(--fs-body-lg);
  color: var(--text-primary);
  font-weight: 500;
}
.faq__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color var(--dur-med) var(--ease-out), background var(--dur-med) var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--text-primary);
  transition: transform var(--dur-med) var(--ease-out);
}
.faq__icon::before { width: 12px; height: 1.5px; }
.faq__icon::after  { width: 1.5px; height: 12px; }
.faq__item.is-open .faq__icon { background: var(--accent); border-color: var(--accent); }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); }
.faq__lead {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-small);
  max-width: 58ch;
  transition: opacity var(--dur-med) var(--ease-out), max-height var(--dur-med) var(--ease-out);
  overflow: hidden;
}
.faq__item.is-open .faq__lead { opacity: 0; max-height: 0; margin: 0; }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.faq__a-inner {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--fs-body);
}
.faq__a-inner > * { padding-top: var(--space-4); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  background: #040406;
  padding-block: var(--space-9) var(--space-6);
  border-top: 1px solid rgba(101,91,250,0.18);
}
.footer::before {
  content: "";
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(139,127,255,0.55) 20%, rgba(255,138,91,0.4) 50%, rgba(139,127,255,0.55) 80%, transparent);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: var(--space-7);
  margin-bottom: var(--space-8);
}
.footer__brand img { height: 28px; margin-bottom: var(--space-5); }
.footer__tagline { color: var(--text-muted); font-size: var(--fs-small); max-width: 280px; margin-bottom: var(--space-5); }
.footer__social { display: flex; gap: var(--space-3); }
.footer__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: border-color var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent-light); }
.footer__col h4 {
  font-size: var(--fs-micro);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-5);
  font-weight: 500;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col a { color: var(--text-secondary); font-size: var(--fs-small); }
.footer__col a:hover { color: var(--text-primary); }
.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--space-5);
  display: flex; justify-content: space-between; gap: var(--space-5);
  font-size: var(--fs-micro);
  color: var(--text-faint);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .section { padding-block: var(--space-9); }
  .approach__grid, .split, .split--reverse,
  .contact__grid, .faq__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .approach__heading, .faq__heading { position: static; }
  .split--reverse .split__mock { order: 0; }
  .channels__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
  .channels__grid > .channel-card { grid-column: span 1 !important; }
  .algo__grid { grid-template-columns: repeat(2, 1fr); }
  .algo__grid > .algo-card { grid-column: span 1 !important; grid-row: auto !important; }
  .results__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
  .case__card { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-7); }
  .process__grid::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .logos__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
  .section { padding-block: var(--space-8); }
  .header__nav, .header__cta { display: none; }
  .header__burger { display: flex; }
  .hero { min-height: 82vh; padding-block: var(--space-8) var(--space-7); }
  .hero__title { font-size: clamp(40px, 11vw, 64px); }
  .channels__grid { grid-template-columns: 1fr; }
  .algo__grid { grid-template-columns: 1fr; }
  .results__grid { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .case__stats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; gap: var(--space-3); }
  .logos__grid { grid-template-columns: repeat(2, 1fr); }

  /* Touch-таргеты ≥ 48px */
  .btn { padding: 16px 26px; min-height: 48px; }
  .btn--large { padding: 18px 30px; min-height: 52px; }
  .header__burger { width: 48px; height: 48px; }
  .faq__q { min-height: 48px; padding-block: 8px; }
  .form__field input,
  .form__field select,
  .form__field textarea { min-height: 48px; padding: 14px 16px; }
  .footer__social a { width: 44px; height: 44px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .section { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
