/* ============================================================
   КЛИЕНТ ЦЕНТР — Landing Page Styles v2
   Page-specific layouts layered on top of design-system.css
   ============================================================ */

/* ── BLOB BACKGROUND VARIABLES ────────────────────────────── */
:root {
  --blur-1-size: clamp(500px, 65vw, 900px);
  --blur-2-size: clamp(350px, 45vw, 650px);
  --blur-3-size: clamp(200px, 22vw, 420px);
  /* меньше blur = цвет концентрированнее и виднее */
  --blur-amount: clamp(30px, 3.5vw, 70px);
}

/* ── KEYFRAMES ────────────────────────────────────────────── */
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 24px rgba(192,232,158,0.35), 0 0 60px rgba(192,232,158,0.12); }
  50%       { box-shadow: 0 0 40px rgba(168,216,245,0.45), 0 0 90px rgba(168,216,245,0.18); }
}
@keyframes typewriterBlink {
  0%, 100% { border-color: rgba(192,232,158,0.9); }
  50%       { border-color: transparent; }
}
@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.6) translateY(6px); }
  70%  { transform: scale(1.06) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes scanLine {
  0%   { transform: translateY(-100%) scaleX(1); opacity: 0.6; }
  100% { transform: translateY(100vh) scaleX(1); opacity: 0; }
}
@keyframes numberFlip {
  0%   { transform: translateY(0);   opacity: 1; }
  45%  { transform: translateY(-60%); opacity: 0; }
  55%  { transform: translateY(60%);  opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0) rotate(var(--rot,0deg)); }
  50%  { transform: translateY(-10px) rotate(var(--rot,0deg)); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.6); opacity: 0.5; }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes borderGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(151,232,91,0.12); border-color: rgba(151,232,91,0.35); }
  50%  { box-shadow: 0 0 35px rgba(101,207,255,0.18); border-color: rgba(101,207,255,0.45); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── PASTEL ACCENT PALETTE (landing only) ────────────────────
   Overrides vivid system tokens with softer, desaturated pastels.
   design-system.css loads first, this file loads after → wins.
   Dashboard/admin inherit unchanged vivid tokens from themes.css.
──────────────────────────────────────────────────────────── */
:root {
  --p-lime:   #a4f06a;   /* bright pastel lime   */
  --p-blue:   #6ec8f8;   /* bright pastel sky    */
  --p-gold:   #f8cc60;   /* bright pastel gold   */
  --p-purple: #b89af8;   /* bright pastel lavender */
}

/* текстовые хелперы — переопределяем design-system.css */
.text-lime   { color: var(--p-lime)   !important; }
.text-blue   { color: var(--p-blue)   !important; }
.text-gold   { color: var(--p-gold)   !important; }
.text-purple { color: var(--p-purple) !important; }

/* большие статы */
.big-stat__value--lime   { color: var(--p-lime);   }
.big-stat__value--blue   { color: var(--p-blue);   }
.big-stat__value--gold   { color: var(--p-gold);   }
.big-stat__value--purple { color: var(--p-purple); }

/* stat-card (секция proof) */
.stat-card__value.text-lime   { color: var(--p-lime)   !important; }
.stat-card__value.text-blue   { color: var(--p-blue)   !important; }
.stat-card__value.text-gold   { color: var(--p-gold)   !important; }
.stat-card__value.text-purple { color: var(--p-purple) !important; }

/* hero proof числа */
.hero__proof-num { color: var(--p-lime); }

/* cashback в тирах лояльности */
.tier-card__cashback.text-gold   { color: var(--p-gold)   !important; }
.tier-card__cashback.text-blue   { color: var(--p-blue)   !important; }
.tier-card__cashback.text-lime   { color: var(--p-lime)   !important; }
.tier-card__cashback.text-purple { color: var(--p-purple) !important; }

/* ── SCROLL REVEAL ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s cubic-bezier(.22,1,.36,1),
              transform 0.75s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--left.is-visible, .reveal--right.is-visible { transform: none; }
.reveal--scale { transform: scale(0.88); }
.reveal--scale.is-visible { transform: scale(1); }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }
.reveal--d5 { transition-delay: 0.40s; }

/* ── CURSOR SPOTLIGHT ────────────────────────────────────── */
.bg-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(700px circle at var(--mx, 50%) var(--my, 50%),
    rgba(168,216,245,0.055) 0%, transparent 60%);
  pointer-events: none;
}

/* ── FLOATING PARTICLES ──────────────────────────────────── */
.bg-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

/* ── CTA GLOW ────────────────────────────────────────────── */
.final-card .btn--primary {
  animation: ctaGlow 3.5s ease-in-out infinite;
}

/* ── SCAN LINE (decorative) ──────────────────────────────── */
.scan-line {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168,216,245,0.25), transparent);
  pointer-events: none;
  z-index: 0;
  animation: scanLine 12s linear infinite;
}

/* ── CARD 3D TILT ────────────────────────────────────────── */
.step-card, .tier-card, .stat-card, .pain-card, .result-card {
  transition: transform 0.15s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  transform-style: preserve-3d;
}

/* ── ANIMATED BADGE POP ──────────────────────────────────── */
.hero__badge {
  animation: floatCard 4.2s ease-in-out infinite, popIn 0.6s ease both;
}
.hero__badge--1 { animation-delay: 0.8s,  0.8s; }
.hero__badge--2 { animation-delay: 1.4s,  1.4s; }
.hero__badge--3 { animation-delay: 1.1s,  1.1s; }

/* ── BACKGROUND CANVAS ────────────────────────────────────── */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.bg-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 100%);
}

/* JS-animated blobs — each blob starts at its own corner, JS moves them */
.bg-canvas__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(var(--blur-amount));
  mix-blend-mode: screen;
  will-change: transform;
}
.bg-canvas__orb--1 {
  /* верхний правый */
  top: -15%; right: -15%;
  width: var(--blur-1-size);
  height: var(--blur-1-size);
  background: radial-gradient(circle, rgba(101,207,255,0.80) 0%, rgba(50,130,255,0.40) 40%, transparent 65%);
}
.bg-canvas__orb--2 {
  /* нижний левый */
  bottom: -10%; left: -15%;
  width: var(--blur-2-size);
  height: var(--blur-2-size);
  background: radial-gradient(circle, rgba(151,232,91,0.75) 0%, rgba(80,200,60,0.35) 40%, transparent 65%);
}
.bg-canvas__orb--3 {
  /* центр чуть влево */
  top: 30%; left: 25%;
  width: var(--blur-3-size);
  height: var(--blur-3-size);
  background: radial-gradient(circle, rgba(176,126,255,0.85) 0%, rgba(130,60,255,0.40) 40%, transparent 65%);
}

/* ── NAVIGATION ──────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-block: 16px;
  transition: background var(--dur-slow) var(--ease),
              border-color var(--dur-slow) var(--ease),
              box-shadow var(--dur-slow) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: var(--panel-strong);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-lg);
  font-weight: 700;
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease);
}
.nav__logo:hover { opacity: 0.8; }
.nav__logo-mark { color: var(--lime); font-size: 0.85em; line-height: 1; }
.nav__logo-text strong { color: var(--lime); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
  padding-left: var(--sp-4);
}
.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--muted-strong);
  transition: color var(--dur-fast) var(--ease);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--lime);
  border-radius: 2px;
  transition: width var(--dur-base) var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-left: auto;
}

/* ── BURGER (mobile only) ─────────────────────────────────── */
.nav__burger {
  display: none;            /* показывается в @media ≤960px */
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  padding: 0;
}
.nav__burger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--dur-base) var(--ease),
              opacity var(--dur-fast) var(--ease);
}
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(2) {
  opacity: 0;
}
.nav__burger[aria-expanded="true"] .nav__burger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE MENU (drawer) ─────────────────────────────────── */
.nav-mobile {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(86vw, 340px);
  max-width: 100vw;
  height: 100dvh;
  box-sizing: border-box;          /* padding внутри ширины, не распирает */
  padding: calc(var(--sp-10) + env(safe-area-inset-top)) var(--sp-5)
           calc(var(--sp-8) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  background: var(--panel-strong, var(--bg));
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0,0,0,0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform var(--dur-base, 0.24s) var(--ease);
  overflow-y: auto;
  overflow-x: hidden;
}
.nav-mobile.is-open { transform: translateX(0); }
.nav-mobile__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.nav-mobile__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}
/* Кнопки в drawer обязаны вписываться по ширине: 100%, padding внутри,
   разрешаем перенос текста (у .btn по умолчанию white-space:nowrap, что
   распирало контейнер на узких экранах). */
.nav-mobile__btn {
  width: 100%;
  box-sizing: border-box;
  justify-content: center;
  padding-left: var(--sp-4);
  padding-right: var(--sp-4);
  white-space: normal;
  text-align: center;
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity var(--dur-base, 0.24s) var(--ease);
}
.nav-scrim.is-open { opacity: 1; }
body.nav-locked { overflow: hidden; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--sp-20) + 20px);
  padding-bottom: var(--sp-16);
  overflow: visible;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
}
.hero__eyebrow {
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.hero__live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(151,232,91,0.6);
  animation: pulseDot 2.2s ease-in-out infinite;
}
.hero__headline {
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: var(--sp-6);
}
.hero__headline-line1 { display: block; }
.hero__headline-accent {
  display: block;
  background: linear-gradient(135deg, var(--p-lime) 0%, var(--p-blue) 50%, var(--p-purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
}
.hero__headline-line3 {
  display: block;
  color: var(--muted-strong);
  font-size: 0.75em;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-top: var(--sp-2);
}
.hero__sub {
  font-size: var(--text-lg);
  color: var(--muted-strong);
  max-width: 460px;
  margin-bottom: var(--sp-8);
  line-height: 1.7;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-10);
}
.hero__cta .btn--primary {
  position: relative;
  overflow: hidden;
}
.hero__cta .btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,0.22) 50%, transparent 65%);
  background-size: 200% 100%;
  animation: shimmer 2.8s ease-in-out infinite;
}
.hero__proof {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-4) var(--sp-5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  backdrop-filter: blur(8px);
}
.hero__proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero__proof-num {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--p-lime);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero__proof-label {
  font-size: var(--text-xs);
  color: var(--muted);
}
.hero__proof-divider {
  width: 1px;
  height: 36px;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* ── HERO VISUAL ─────────────────────────────────────────── */
.hero__visual { position: relative; }
.hero__visual-glow {
  position: absolute;
  inset: -80px;
  background: radial-gradient(ellipse, rgba(101,207,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero__visual-shell {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}
.hero__visual-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px rgba(0,0,0,0.45),
              0 0 0 1px rgba(255,255,255,0.06);
  display: block;
}

/* floating metric badges */
.hero__badge {
  position: absolute;
  background: var(--panel-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  backdrop-filter: blur(16px);
  white-space: nowrap;
  z-index: 10;
  font-size: var(--text-sm);
  font-weight: 600;
}
.hero__badge--1 {
  top: -18px; right: -18px;
  --rot: 2deg;
  border-color: rgba(151,232,91,0.35);
  animation: floatCard 4.2s ease-in-out infinite;
}
.hero__badge--2 {
  bottom: 80px; left: -28px;
  --rot: -2deg;
  border-color: rgba(101,207,255,0.35);
  animation: floatCard 5.5s ease-in-out infinite 1.5s;
}
.hero__badge--3 {
  bottom: -12px; right: 24px;
  --rot: 1deg;
  border-color: rgba(176,126,255,0.35);
  animation: floatCard 3.8s ease-in-out infinite 0.8s;
}
.hero__badge-val { font-size: var(--text-base); font-weight: 800; }
.hero__badge-val--lime   { color: var(--p-lime); }
.hero__badge-val--blue   { color: var(--p-blue); }
.hero__badge-val--purple { color: var(--p-purple); }

/* ── MARQUEE ─────────────────────────────────────────────── */
.marquee-section {
  padding-block: var(--sp-7);
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.marquee-section::before,
.marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 130px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--panel), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--panel), transparent);
}
.marquee-track {
  display: flex;
  gap: var(--sp-10);
  width: max-content;
  animation: ticker 32s linear infinite;
  will-change: transform;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--muted-strong);
  white-space: nowrap;
}
.marquee-item__sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
  flex-shrink: 0;
}

/* ── SCROLL PREVIEW SECTION ──────────────────────────────── */
.scroll-preview-section {
  min-height: 130vh;
  position: relative;
  padding-top: var(--sp-24);
}
.scroll-preview-sticky {
  position: sticky;
  top: 8vh;
  padding-bottom: var(--sp-16);
}
.scroll-preview-header {
  text-align: center;
  margin-bottom: var(--sp-12);
}
.scroll-preview-card {
  max-width: 1080px;
  margin: 0 auto;
  transform-origin: 50% 0;
  transform: perspective(1200px) rotateX(20deg) scale(0.88) translateY(20px);
  transition: transform 0.08s linear;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.07),
    0 40px 80px rgba(0,0,0,0.55),
    0 0 0 4px rgba(255,255,255,0.04);
}
.scroll-preview-card img {
  width: 100%;
  display: block;
}
.scroll-preview-card--flat {
  transform: perspective(1200px) rotateX(0deg) scale(1) translateY(0px) !important;
}

/* ── SECTION INTRO ───────────────────────────────────────── */
.section-intro { margin-bottom: var(--sp-12); }
.section-intro--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── PAIN SECTION ────────────────────────────────────────── */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-4);
}
.pain-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-xl);
  transition: border-color 0.25s var(--ease),
              transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.pain-card:hover {
  border-color: rgba(255,120,80,0.35);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.pain-card__icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-dim);
  border-radius: var(--r-md);
  color: var(--p-gold);
  flex-shrink: 0;
}
.pain-card__text {
  font-size: var(--text-sm);
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── CONTRAST SECTION ────────────────────────────────────── */
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-md);
  color: var(--text-soft);
  padding: var(--sp-3) var(--sp-4);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.check-list li:hover {
  border-color: rgba(151,232,91,0.35);
  transform: translateX(6px);
}
.check-list li::before {
  content: "✓";
  color: var(--p-lime);
  font-weight: 800;
  font-size: var(--text-xs);
  flex-shrink: 0;
  width: 20px; height: 20px;
  background: var(--lime-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.contrast-visual { position: relative; }
.contrast-visual__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse, rgba(151,232,91,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.contrast-visual__img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

/* ── STEPS GRID ──────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  position: relative;
}
.steps-connector {
  position: absolute;
  top: 38px;
  left: calc(33.33% - 10px);
  right: calc(33.33% - 10px);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line-strong) 20%, var(--line-strong) 80%, transparent 100%);
  pointer-events: none;
}
.step-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-xl);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.step-card:hover {
  border-color: rgba(101,207,255,0.35);
  transform: translateY(-6px);
}
.step-card__num {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--line-strong);
  font-variant-numeric: tabular-nums;
}
.step-card__title { color: var(--text); }
.step-card__text {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--muted-strong);
}

/* ── RESULTS SECTION ─────────────────────────────────────── */
.results-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255,178,63,0.03) 100%);
}
.results-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--sp-16);
  align-items: start;
}
.results-copy { position: sticky; top: 100px; }
.results-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.result-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-xl);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.result-card:hover {
  border-color: rgba(255,178,63,0.3);
  transform: translateX(6px);
}
.result-card__num {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--gold-dim);
  border: 1.5px solid rgba(255,178,63,0.3);
  color: var(--p-gold);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result-card__text {
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-soft);
  padding-top: 3px;
}

/* ── BIG STATS ────────────────────────────────────────────── */
.big-stats-section {
  padding-block: var(--sp-20);
  position: relative;
  overflow: hidden;
}
.big-stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, rgba(151,232,91,0.04) 0%, transparent 70%);
  pointer-events: none;
}
.big-stats-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}
.big-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
}
.big-stat {
  background: var(--panel);
  padding: var(--sp-10) var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: background 0.2s var(--ease);
}
.big-stat:hover { background: var(--bg-raised); }
.big-stat__label {
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.big-stat__value {
  font-size: clamp(2.4rem, 3.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.big-stat__value--lime   { color: var(--p-lime); }
.big-stat__value--blue   { color: var(--p-blue); }
.big-stat__value--gold   { color: var(--p-gold); }
.big-stat__value--purple { color: var(--p-purple); }
.big-stat__sub {
  font-size: var(--text-sm);
  color: var(--muted-strong);
  margin-top: var(--sp-1);
}

/* ── MASCOT / PLATFORM ───────────────────────────────────── */
.mascot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-16);
}
.mascot-visual { position: relative; }
.mascot-visual__glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(ellipse, rgba(176,126,255,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.mascot-visual__img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.role-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.role-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-xl);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.role-card:hover {
  border-color: rgba(176,126,255,0.35);
  transform: translateX(6px);
}
.role-card__icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.role-card__title { margin-bottom: var(--sp-1); }

/* ── LOYALTY TIERS ───────────────────────────────────────── */
.loyalty-section {
  background: linear-gradient(180deg, transparent 0%, rgba(255,178,63,0.03) 50%, transparent 100%);
  position: relative;
  overflow: hidden;
}
.loyalty-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.tier-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-6);
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-xl);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
.card--glow-lime {
  animation: borderGlow 4.5s ease-in-out infinite;
}
.tier-card__top-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
}
.tier-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.tier-card__icon { font-size: 1.4rem; }
.tier-card__cashback {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: var(--sp-2);
}
.tier-card__label { font-size: var(--text-sm); line-height: 1.4; }
.tier-card__threshold { padding-top: var(--sp-1); border-top: 1px solid var(--line); }
.tier-card__perk { font-size: var(--text-sm); }

/* ── PROOF METRICS ───────────────────────────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--sp-16);
  align-items: center;
}
.proof-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
.stat-card {
  padding: var(--sp-6);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.stat-card:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
.stat-card__label {
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--sp-2);
  font-weight: 600;
}
.stat-card__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--sp-2);
}
.stat-card__delta { font-size: var(--text-xs); color: var(--muted-strong); }
.stat-card__delta--up { color: var(--p-lime); }

/* ── OBJECTIONS ──────────────────────────────────────────── */
.objections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}
.objection-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-xl);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.objection-card:hover {
  border-color: rgba(151,232,91,0.35);
  transform: translateY(-5px);
}
.objection-card__check {
  width: 28px; height: 28px;
  border-radius: var(--r-full);
  background: var(--lime-dim);
  border: 1.5px solid rgba(151,232,91,0.3);
  color: var(--p-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.objection-card__text {
  font-size: var(--text-md);
  color: var(--text-soft);
  line-height: 1.65;
}

/* ── FINAL CTA ───────────────────────────────────────────── */
.final-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
}
.final-card__glow {
  display: none;
}
.final-card__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-16);
  align-items: center;
}
.final-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 280px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding-block: var(--sp-16) var(--sp-8);
  border-top: 1px solid var(--line);
  margin-top: var(--sp-8);
}
.footer__inner {
  display: flex;
  gap: var(--sp-16);
  margin-bottom: var(--sp-12);
}
.footer__brand { flex: 1; }
.footer__nav { display: flex; gap: var(--sp-12); }
.footer__nav-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  min-width: 140px;
}
.footer__nav-heading {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-1);
  font-size: var(--text-xs);
}
.footer__nav-link {
  font-size: var(--text-sm);
  color: var(--muted-strong);
  transition: color var(--dur-fast) var(--ease);
}
.footer__nav-link:hover { color: var(--text); }
.footer__bottom { padding-top: var(--sp-6); border-top: 1px solid var(--line); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .loyalty-tiers { grid-template-columns: repeat(2, 1fr); }
  .big-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero__grid,
  .contrast-grid,
  .mascot-grid { grid-template-columns: 1fr; gap: var(--sp-10); }
  .hero { padding-top: var(--sp-12); }
  .hero__sub { max-width: 100%; }
  .hero__visual-glow { display: none; }
  .hero__badge--2 { left: -10px; }
  .results-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .results-copy { position: static; }
  .proof-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-connector { display: none; }
  .final-card__inner { grid-template-columns: 1fr; gap: var(--sp-10); }
  .final-card__actions { min-width: unset; width: 100%; max-width: 400px; }
  .footer__inner { flex-direction: column; gap: var(--sp-10); }
  .scroll-preview-section { min-height: 90vh; }
}
@media (max-width: 768px) {
  .pain-grid { grid-template-columns: 1fr 1fr; }
  .objections-grid { grid-template-columns: 1fr; }
  .proof-metrics { grid-template-columns: 1fr 1fr; }
  .big-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .hero__proof { gap: var(--sp-4); padding: var(--sp-4); flex-wrap: wrap; }
  .hero__proof-divider { display: none; }
  .footer__nav { flex-direction: column; gap: var(--sp-8); }
  .hero__badge--2 { display: none; }
  .hero__badge--1 { right: -8px; }
}
@media (max-width: 480px) {
  .pain-grid { grid-template-columns: 1fr; }
  .loyalty-tiers { grid-template-columns: 1fr; }
  .proof-metrics { grid-template-columns: 1fr; }
  .big-stats-grid { grid-template-columns: 1fr; }
}

/* ── MOBILE NAV: бургер вместо десктоп-навигации (≤960px) ──── */
@media (max-width: 960px) {
  .nav__burger { display: flex; }
  /* десктоп-кнопки в шапке прячем — они доступны внутри drawer.
     hide-sm в разметке оставлен как доп. страховка для очень узких. */
  .nav__actions .btn { display: none; }
  .nav__inner { gap: var(--sp-4); }
}
@media (min-width: 961px) {
  /* drawer/scrim не нужны на десктопе — полностью убираем из потока */
  .nav-mobile, .nav-scrim { display: none !important; }
}

/* На мобиле гасим тяжёлые декоративные эффекты (экономим GPU/батарею,
   убираем лаги): ВСЕ бесконечные анимации off, blur снят, частицы прочь.
   Reveal-анимации появления (transform/opacity) остаются — они лёгкие
   и одноразовые. */
@media (max-width: 768px) {
  .bg-canvas__orb,
  .hero__badge,
  .hero__visual-shell,            /* floatCard */
  .marquee-track,                  /* ticker — бегущая строка */
  [class*="scan"],
  [class*="glow"],
  [class*="shimmer"],
  [class*="pulse"] {
    animation: none !important;
  }
  .orbit-dot,
  .float-emoji { display: none !important; }

  /* backdrop-filter: blur — самый дорогой эффект на мобильных GPU.
     Заменяем на сплошную панель. */
  .nav--scrolled,
  .nav-mobile {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: var(--panel-strong, var(--bg)) !important;
  }

  /* отключаем mousemove-spotlight (на тач он не нужен и зря считает) */
  .card-spotlight::after { display: none !important; }
}

/* Уважение системной настройки «уменьшить движение» (a11y). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-canvas__orb,
  .orbit-dot,
  .float-emoji { animation: none !important; }
}

/* ── CARD INNER SPOTLIGHT ───────────────────────────────────
   Each card gets a soft radial glow that tracks the mouse.
   JS sets --cx / --cy on mousemove inside the card.
─────────────────────────────────────────────────────────── */
.card-spotlight {
  position: relative;
}
.card-spotlight::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(255,255,255,0.065) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
  border-radius: inherit;
  z-index: 2;
}
.card-spotlight:hover::after { opacity: 1; }

/* ── BUTTON RIPPLE ─────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  transform: scale(0);
  animation: rippleAnim 0.65s linear forwards;
  pointer-events: none;
  z-index: 3;
}
@keyframes rippleAnim {
  to { transform: scale(5); opacity: 0; }
}

/* ── FLOATING EMOJI PARTICLES ──────────────────────────────── */
.float-emoji {
  position: absolute;
  pointer-events: none;
  font-size: 1.3rem;
  line-height: 1;
  z-index: 10;
  user-select: none;
  animation: floatEmoji 2.4s ease-out forwards;
}
@keyframes floatEmoji {
  0%   { transform: translateY(0)      scale(1)    rotate(0deg);  opacity: 0.9; }
  50%  { opacity: 0.7; }
  100% { transform: translateY(-120px) scale(0.55) rotate(18deg); opacity: 0; }
}

/* ── ORBIT DOTS (big-stats decorators) ─────────────────────── */
.orbit-dot {
  position: absolute;
  border-radius: 50%;
  width: 5px; height: 5px;
  top: 50%; left: 50%;
  margin: -2.5px 0 0 -2.5px;
  opacity: 0.55;
  pointer-events: none;
  animation: orbit var(--orbit-dur, 7s) linear infinite;
}
@keyframes orbit {
  from { transform: rotate(0deg)   translateX(var(--orbit-r, 40px)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r, 40px)) rotate(-360deg); }
}

/* ── LOYALTY PROGRESS BARS ─────────────────────────────────── */
.tier-progress {
  height: 3px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-top: var(--sp-3);
}
.tier-progress__bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width 1.8s cubic-bezier(.22,1,.36,1) 0.3s;
}
.tier-progress__bar--gold   { background: linear-gradient(90deg, var(--p-gold),   var(--p-lime));   }
.tier-progress__bar--blue   { background: linear-gradient(90deg, var(--p-blue),   var(--p-purple)); }
.tier-progress__bar--lime   { background: linear-gradient(90deg, var(--p-lime),   var(--p-blue));   }
.tier-progress__bar--purple { background: linear-gradient(90deg, var(--p-purple), var(--p-blue));   }

/* ── LOGO GLITCH ───────────────────────────────────────────── */
@keyframes glitchText {
  0%,100% { clip-path: none; transform: none; }
  20% { clip-path: polygon(0 15%, 100% 15%, 100% 35%, 0 35%);
        transform: translateX(-4px) skewX(-2deg); color: var(--p-blue); }
  40% { clip-path: polygon(0 55%, 100% 55%, 100% 72%, 0 72%);
        transform: translateX(4px);  color: var(--p-purple); }
  60% { clip-path: polygon(0 30%, 100% 30%, 100% 52%, 0 52%);
        transform: translateX(-2px); color: var(--p-lime); }
  80% { clip-path: none; transform: translateX(1px); }
}

/* ── COUNTER PARTICLE BURST ────────────────────────────────── */
.burst-particle {
  position: fixed;
  width: 5px; height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particleBurst 0.9s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes particleBurst {
  0%   { transform: translate(0,0)                             scale(1);   opacity: 1; }
  100% { transform: translate(var(--pbx,0px),var(--pby,-50px)) scale(0.2); opacity: 0; }
}

/* ── HERO LINE3 WORD-CYCLE TRANSITION ──────────────────────── */
.hero__headline-line3 { will-change: opacity, transform; }

/* ── STAGGER ENTRANCE FOR PAIN/RESULT CARDS ────────────────── */
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
.pain-card.animate-entrance {
  animation: cardEntrance 0.55s cubic-bezier(.22,1,.36,1) both;
}

/* ── HOVER LIFT WITH GLOW ON RESULT CARDS ──────────────────── */
.result-card:hover {
  box-shadow: 0 0 0 1px rgba(248,204,96,0.25), 0 20px 50px rgba(0,0,0,0.28);
}

/* ── SUBTLE TEXT SHIMMER ON SECTION HEADINGS ──────────────── */
@keyframes textSweep {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.display-3.is-revealed {
  background: linear-gradient(
    90deg,
    var(--text) 30%,
    rgba(255,255,255,0.75) 50%,
    var(--text) 70%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textSweep 2.5s linear 0.3s 1 forwards;
}

/* ── HOVER TILT ON BIG STATS ───────────────────────────────── */
.big-stat { transition: background 0.2s var(--ease), transform 0.15s ease; }
.big-stat:hover { transform: scale(1.04); }

/* ── MARQUEE PAUSE ON HOVER ─────────────────────────────────── */
.marquee-section:hover .marquee-track {
  animation-play-state: paused;
}

/* ── ACTIVE LINK UNDERLINE SLIDE ─────────────────────────────── */
.nav__link.active { color: var(--text); }
.nav__link.active::after { width: 100%; }
