/* ============================================
   AdPlacer — Light theme (white background)
   Airbnb-level · Rhythm · Accessibility
   ============================================ */

:root {
  /* 8px spacing scale */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --space-16: 128px;
  /* White / light base */
  --bg: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --surface: #f1f5f9;
  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.12);
  /* Blue · Cyan (for light bg) */
  --blue-deep: #0e3a52;
  --blue: #0e7490;
  --blue-mid: #0891b2;
  --cyan: #06b6d4;
  --cyan-light: #22d3ee;
  --accent: #38bdf8;
  /* Text on white */
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  /* Shadows on light (soft, clear depth) */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 28px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.08), 0 24px 56px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 16px 48px rgba(0, 0, 0, 0.04);
  --glow-btn: 0 0 0 1px rgba(6, 182, 212, 0.3), 0 8px 24px rgba(6, 182, 212, 0.2);
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  --text-4xl: 2.5rem;
  --text-hero: clamp(3rem, 7vw, 4.5rem);
  --text-hero-big: clamp(3.5rem, 9vw, 5.5rem);
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --leading-tight: 1.2;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  /* Layout — сбалансированные отступы, без «белых дыр» */
  --container: min(1200px, 100vw - 48px);
  --col-gap: var(--space-3);
  --section-py: clamp(64px, 8vw, 88px);
  --radius: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.2s var(--ease-out);
  --transition-slow: 0.35s var(--ease-out);
  /* Focus on light */
  --focus-ring: 0 0 0 3px #fff, 0 0 0 5px var(--cyan);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; scroll-padding-top: 100px; }

[id] { scroll-margin-top: 88px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-number { animation: none; filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.35)); }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
  padding-top: 80px; /* высота шапки, т.к. header position: fixed */
}

/* Все контентные изображения по умолчанию адаптивны */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Свечение картинок при наведении по всей странице */
main img {
  transition: filter var(--transition);
}
main img:hover {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}

/* Картинки с pointer-events: none светятся при наведении на родителя */
/* Робот в hero: смена картинки и свечение при наведении на кнопку — в .hero-cta-robot-hover */
.benefits-content:hover .benefits-character,
.pain-content:hover .pain-character,
.hero-bg-stat:hover img {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}
/* Very subtle noise on white */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- Container & 12-col grid ----- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--col-gap);
}

.grid-12 > * { grid-column: var(--col, 1 / -1); }

/* ===== Header ----- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--text);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  padding: var(--space-1) 0;
  border-radius: var(--radius);
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.9; }

.logo:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.logo-icon { width: 40px; height: 40px; flex-shrink: 0; object-fit: contain; }
.logo-img { height: 36px; width: auto; flex-shrink: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-2) 0;
  border-radius: var(--radius);
  transition: color var(--transition);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover { color: var(--text); }

.nav a:focus-visible { outline: none; color: var(--cyan); box-shadow: var(--focus-ring); }

/* Buttons: pill primary, clear states */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
}

.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--cyan) 100%);
  color: #fff;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-btn);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.06);
}

.btn-nav { padding: var(--space-2) var(--space-4); }

.btn-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(6, 182, 212, 0.3), 0 0 20px rgba(56, 189, 248, 0.2);
  animation: cta-pulse 2.4s ease-in-out infinite;
}

/* мощный блик по кнопке (до наведения) — манит нажать */
.btn-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 0%,
    transparent 32%,
    rgba(255, 255, 255, 0.5) 42%,
    rgba(200, 240, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.5) 58%,
    transparent 68%,
    transparent 100%
  );
  background-size: 220% 100%;
  background-position: 160% 0;
  animation: btn-hero-shimmer 2.6s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .btn-hero { animation: none; }
  .btn-hero::before { animation: none; }
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: var(--shadow-md), 0 0 0 1px rgba(6, 182, 212, 0.3), 0 0 24px rgba(56, 189, 248, 0.25); }
  50% { box-shadow: 0 12px 40px rgba(6, 182, 212, 0.45), 0 0 0 1px rgba(6, 182, 212, 0.5), 0 0 40px rgba(56, 189, 248, 0.5), 0 0 60px rgba(56, 189, 248, 0.25); }
}

@keyframes btn-hero-shimmer {
  0% { background-position: 160% 0; opacity: 1; }
  100% { background-position: -60% 0; opacity: 1; }
}

.btn-glow:hover { box-shadow: var(--glow-btn); }

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.burger:hover { background: var(--surface); }

.burger:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

@media (max-width: 768px) {
  .nav { display: none; }
  .btn-nav { display: none; }
  .burger { display: flex; }
  .header-inner { height: 72px; }
  body { padding-top: 72px; }
  .nav.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: var(--space-4);
    gap: var(--space-2);
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav.nav-open a { min-height: 48px; padding: var(--space-2) 0; }
  .burger-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .burger-open span:nth-child(2) { opacity: 0; }
  .burger-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  body.menu-open { overflow: hidden; }
}

/* ===== Hero — первый экран, чёткая иерархия и баланс колонок ----- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 80px) 0 clamp(56px, 8vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 100%);
}

/* Два больших glow-пятна */
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18) 0%, transparent 60%);
  top: -150px;
  right: -150px;
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.12) 0%, transparent 60%);
  bottom: -150px;
  left: -150px;
  filter: blur(40px);
  pointer-events: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  isolation: isolate;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Декоративные элементы фона hero — всё в правой колонке (right 0–25%) */
.hero-bg-pill {
  position: absolute;
  z-index: 0;
  height: 62%;
  width: 52%;
  max-height: 420px;
  max-width: 500px;
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  background: url("assets/pill.png") no-repeat center / contain;
  filter: blur(54px);
  opacity: 0.35;
}
.hero-bg-stat-wrap {
  position: absolute;
  z-index: 1;
  top: calc(5% - 70px);
  right: calc(-2% - 70px);
  width: 76%;
  min-width: 648px;
  max-width: 1260px;
  opacity: 0.7;
  transition: transform 1.4s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease-in-out;
  transform-origin: center center;
}
.hero-bg-stat {
  transform: rotate(-5deg);
  filter: none;
  transition: filter var(--transition);
  border-radius: 12px;
  overflow: hidden;
}
.hero-bg-stat img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter var(--transition);
}
.hero-bg-elem {
  position: absolute;
  z-index: 2;
  height: clamp(7%, 8vh, 52px);
  max-height: 52px;
  width: auto;
  object-fit: contain;
  opacity: 0.82;
  animation: hero-bg-elem-float 6s var(--ease-in-out) infinite;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05));
  transition: filter var(--transition);
}
.hero-bg-elem-1 { top: 6%; right: 12%; animation-delay: 0s; }
.hero-bg-elem-2 { top: 24%; right: 22%; animation-delay: -1.2s; }
.hero-bg-elem-3 { bottom: 24%; right: 10%; animation-delay: -2.8s; }
.hero-bg-elem-4 { top: 40%; right: 6%; animation-delay: -4s; }
@keyframes hero-bg-elem-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Только при наведении именно на кнопку: фоновые картинки светятся и двигаются быстрее */
.hero:has(.btn-hero:hover) .hero-bg-elem {
  animation-duration: 2s;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.05)) drop-shadow(0 0 20px rgba(56, 189, 248, 0.6));
}
/* Плавное увеличение, сдвиг вправо и уход прозрачности при наведении на кнопку */
.hero:has(.btn-hero:hover) .hero-bg-stat-wrap {
  transform: scale(1.22) translateX(32px);
  opacity: 1;
}
.hero:has(.btn-hero:hover) .hero-bg-stat {
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.4));
  animation: hero-bg-stat-float 2.5s ease-in-out infinite;
}
.hero:has(.btn-hero:hover) .hero-bg-stat img {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}
/* Только лёгкое покачивание по вертикали; масштаб и сдвиг у обёртки */
@keyframes hero-bg-stat-float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-6px); }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.hero-glow-1 {
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(56, 189, 248, 0.04) 45%, transparent 70%);
  top: -120px;
  right: -120px;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 70%);
  bottom: -80px;
  left: -40px;
}

.hero-glow-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  top: 50%;
  left: 28%;
}

.hero-glow-4 {
  width: 50%;
  height: 78%;
  max-width: 420px;
  max-height: 440px;
  top: 50%;
  right: -4%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse 70% 100% at 60% 50%, rgba(6, 182, 212, 0.09) 0%, rgba(56, 189, 248, 0.05) 50%, transparent 75%);
  border-radius: 50%;
  filter: blur(65px);
  opacity: 0.92;
}

.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-8), 8vw, var(--space-12));
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}

/* Левая колонка: текст */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-top: var(--space-2);
  max-width: 520px;
}

.hero-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.hero-title {
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

.hero-number {
  display: block;
  font-size: var(--text-hero-big);
  font-weight: var(--weight-extrabold);
  color: var(--text);
  background: linear-gradient(110deg, var(--text) 0%, var(--blue-mid) 32%, var(--cyan) 42%, var(--cyan) 58%, var(--blue-mid) 68%, var(--text) 100%);
  background-size: 220% 100%;
  background-position: 0% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: filter 0.35s ease-out, background-position 0.35s ease-out;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.3));
}

.hero-number-digit {
  font-family: var(--font);
  font-size: 1em;
  vertical-align: baseline;
  letter-spacing: 0.02em;
}

/* Блик по числу только при наведении на кнопку */
.hero:has(.btn-hero:hover) .hero-number {
  animation: hero-number-shine 1.8s ease-in-out infinite;
}

/* Блик по цифрам в блоке «Возможности» при наведении на кнопку этой секции */
.benefits:has(.benefits-cta .btn:hover) .benefit-num,
.benefits:has(.benefits-cta .btn:hover) .benefit-num-prefix {
  background: linear-gradient(
    110deg,
    var(--cyan) 0%,
    var(--cyan-light) 35%,
    var(--accent) 55%,
    var(--cyan-light) 75%,
    var(--cyan) 100%
  );
  background-size: 220% 100%;
  background-position: 0% center;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.25));
  animation: hero-number-shine 1.8s ease-in-out infinite;
}

/* Тот же блик для \"3 подарка\" в финальном блоке при ховере на кнопке */
.final-section:has(.final-cta-btn:hover) .final-header .hero-number {
  animation: hero-number-shine 1.8s ease-in-out infinite;
}

@keyframes hero-number-shine {
  0%, 100% {
    background-position: 0% center;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.3));
  }
  50% {
    background-position: 100% center;
    filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.5));
  }
}

.hero-title-rest {
  display: block;
  font-size: var(--text-hero);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-top: var(--space-1);
}

.hero-title-context {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  margin-top: var(--space-2);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 100%;
  margin-bottom: 0;
  margin-top: auto;
  line-height: var(--leading-relaxed);
}

.hero-subtitle strong { color: var(--cyan); }

.final-section .hero-title-context strong {
  color: var(--cyan);
}

.hero-trust {
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-weight: var(--weight-medium);
}

/* Правая колонка: картинка + CTA */
.hero-parallax-wrap {
  position: relative;
  will-change: transform;
}

.hero-visual {
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 320px;
}

.hero-cta-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 420px;
  min-height: 200px;
  margin-top: auto;
  transform: translateX(-48px); /* робот, кнопка и подпись левее; фон (стата, элементы) не двигаем */
}

.hero-cta-robot-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(calc(-72% + 50px)) scale(1.2);
  bottom: 113px;
  margin-bottom: -14px;
  width: 128%;
  max-width: 280px;
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 10;
}

.hero-cta-robot-wrap .hero-cta-robot,
.hero-cta-robot-wrap .hero-cta-robot-hover {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  transition: opacity 0.85s cubic-bezier(0.33, 1, 0.68, 1);
}

.hero-cta-robot-wrap .hero-cta-robot {
  opacity: 1;
}

.hero-cta-robot-wrap .hero-cta-robot-hover {
  opacity: 0;
}

.hero:has(.btn-hero:hover) .hero-cta-robot-wrap .hero-cta-robot {
  opacity: 0;
}

.hero:has(.btn-hero:hover) .hero-cta-robot-wrap .hero-cta-robot-hover {
  opacity: 1;
  filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.5));
}

@keyframes hero-cta-robot-float {
  0%, 100% { transform: translateX(calc(-72% + 50px)) translateY(0) scale(1.2); }
  50% { transform: translateX(calc(-72% + 50px)) translateY(-6px) scale(1.2); }
}

.hero-cta-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.hero-cta-wrap .btn-hero {
  width: 100%;
}

@keyframes hero-btn-text-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.95; }
}

.btn-hero .btn-hero-text {
  display: inline-block;
  transition: transform 0.2s ease-out;
}

/* кнопка в hero: при наведении — свечение + пульсация текста; перелив отключаем */
.hero-cta-wrap .btn-hero:hover::before {
  opacity: 0;
  animation: none;
}
.hero-cta-wrap .btn-hero:hover {
  animation: none;
  transform: none;
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.4),
    0 0 32px rgba(56, 189, 248, 0.8),
    0 0 48px rgba(56, 189, 248, 0.4);
}
.hero-cta-wrap .btn-hero:hover .btn-hero-text {
  animation: hero-btn-text-pulse 1.1s ease-in-out infinite;
}

.hero-cta-wrap .hero-trust {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Product mockup (when used) */
.hero-mockup {
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: mockup-float 6s var(--ease-in-out) infinite;
}

@media (prefers-reduced-motion: reduce) { .hero-mockup { animation: none; } }

@keyframes mockup-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.mockup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
}

.mockup-dot:nth-child(1) { background: #64748b; }
.mockup-dot:nth-child(2) { background: #475569; }
.mockup-dot:nth-child(3) { background: #334155; }

.mockup-title {
  margin-left: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-muted);
}

.mockup-body { padding: var(--space-4); }

.mockup-stat { margin-bottom: var(--space-3); }

.mockup-stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: var(--weight-extrabold);
  color: var(--cyan);
  line-height: var(--leading-tight);
}

.mockup-stat-label {
  font-size: var(--text-sm);
  color: var(--text-dim);
}

.mockup-chart {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  height: 52px;
  margin-bottom: var(--space-3);
}

.mockup-bar {
  flex: 1;
  height: var(--h, 50%);
  background: linear-gradient(180deg, var(--cyan) 0%, var(--blue-mid) 100%);
  border-radius: 6px 6px 0 0;
  opacity: 0.9;
  transition: height 0.5s var(--ease-out);
}

.mockup-leads { display: flex; flex-direction: column; gap: var(--space-2); }

.mockup-lead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.mockup-time { color: var(--cyan); font-weight: var(--weight-semibold); }

.hero-robot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero-robot {
  width: 100px;
  height: 100px;
  filter: drop-shadow(0 8px 24px rgba(34, 211, 238, 0.2));
  animation: robot-float 4s var(--ease-in-out) infinite;
}

@media (prefers-reduced-motion: reduce) { .hero-robot { animation: none; } }

@keyframes robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-robot-caption {
  font-size: var(--text-xs);
  color: var(--text-dim);
  font-weight: var(--weight-medium);
}

.hero-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ===== Sections — единый ритм, логичная иерархия ----- */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section-head { margin-bottom: var(--space-6); }

.section-character {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: var(--space-2);
  display: block;
}

.benefits-section-head { display: flex; flex-direction: column; align-items: flex-start; }

/* Робот на фоне справа за плашками */
.benefits-container {
  position: relative;
}

.benefits-bg {
  position: absolute;
  right: 8%;
  top: calc(-22% + 20px);
  transform: translateY(60px) translateX(20px); /* правее +10px, выше +10px */
  transform-origin: center center; /* масштаб от центра — без смещения в бок */
  z-index: 0;
  pointer-events: none;
  width: 56%;
  max-width: 580px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  transition: transform 1.35s ease-in-out;
}

.benefits-bg .benefits-character {
  width: 100%;
  max-width: 460px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  animation: benefits-levitate 4.5s ease-in-out infinite;
  transition: filter 1.4s ease-in-out;
}

@keyframes benefits-levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes benefits-levitate-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.benefits-content {
  position: relative;
  z-index: 1;
}

.benefits-cta {
  margin-top: var(--space-6);
  margin-bottom: 0;
  text-align: left;
}

.benefits-cta .btn {
  margin-top: 0;
  min-height: 48px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-base);
}

.how-character-wrap {
  text-align: center;
  margin-top: var(--space-4);
}

.how-character-caption {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--cyan);
  margin-top: var(--space-2);
}

.section-head-center { text-align: center; }

.section-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-2);
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: var(--leading-tight);
}

.section-desc {
  margin-top: var(--space-2);
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section-head-center .section-desc { margin-left: auto; margin-right: auto; }
.benefits-section-head .section-desc { margin-left: 0; margin-right: auto; }

.section-cta {
  text-align: center;
  margin-top: var(--space-6);
}

.section-cta .btn {
  min-height: 48px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-base);
}

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
  flex-shrink: 0;
}

/* Cards */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-card-hover);
}

.benefit-card:hover .benefit-num,
.price-card:hover .price-value {
  color: var(--cyan);
}

.section-character-float {
  animation: section-robot-float 4s var(--ease-in-out) infinite;
}

@keyframes section-robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.how-character-float {
  animation: mockup-float 5s var(--ease-in-out) infinite;
}

.flow-step-interactive:hover {
  transform: translateY(-6px) scale(1.02);
}

.price-card-interactive:hover {
  transform: translateY(-6px);
}

.price-card-interactive:hover .price-value {
  color: var(--cyan);
}

/* Блок тарифов: смена картинки менеджера при наведении на блок (как hero-cta-robot) */
.pricing-character-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.pricing-character-wrap .pricing-character,
.pricing-character-wrap .pricing-character-hover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.6s cubic-bezier(0.33, 1, 0.68, 1);
}

.pricing-character-wrap .pricing-character {
  opacity: 1;
}

.pricing-character-wrap .pricing-character-hover {
  opacity: 0;
}

.pricing-foot-interactive:hover .pricing-character-wrap .pricing-character {
  opacity: 0;
}

.pricing-foot-interactive:hover .pricing-character-wrap .pricing-character-hover {
  opacity: 1;
}

.card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.04) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover .card-glow { opacity: 1; }

/* ===== Benefits ----- */
.benefits-grid { align-items: stretch; }

.benefit-card {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

/* При наведении на кнопку «Внедрить бесплатно» — свечение, плавное увеличение; одна анимация левитации, только быстрее при ховере (без скачка при снятии) */
.benefits:has(.benefits-cta .btn:hover) .benefits-bg {
  transform: translateY(60px) translateX(20px) scale(1.08);
}
.benefits:has(.benefits-cta .btn:hover) .benefits-character {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
  animation: benefits-levitate 3s ease-in-out infinite;
}
.benefits-cta .btn:hover {
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.4),
    0 0 32px rgba(56, 189, 248, 0.8),
    0 0 48px rgba(56, 189, 248, 0.4);
}

/* Эффекты при наведении на карточку — такие же, как у первых трёх карточек в блоке «боли» (.pain-card) */
.benefit-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
  transform: none;
}
.benefit-card:hover .card-glow {
  opacity: 0;
}
.benefit-card:hover .benefit-num {
  color: var(--cyan);
}

@keyframes flow-illustration-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.benefit-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-1);
  line-height: var(--leading-snug);
}

.benefit-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.benefit-num-wrap {
  display: block;
  margin-bottom: var(--space-2);
}
.benefit-num-wrap-div {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.benefit-num-prefix {
  font-size: 2.5rem;
  font-weight: var(--weight-extrabold);
  color: var(--cyan);
  line-height: var(--leading-tight);
}
.benefit-num {
  font-size: 2.5rem;
  font-weight: var(--weight-extrabold);
  color: var(--cyan);
  line-height: var(--leading-tight);
  margin-bottom: 0;
}
.benefit-num-wrap .benefit-num { margin-bottom: 0; }
.benefit-num-wrap-div { font-size: 2.5rem; }
.benefit-num-wrap-div .benefit-num-prefix,
.benefit-num-wrap-div .benefit-num { font-size: 1em; }

/* ===== Pain block (фон как у hero: градиент + два glow + шум) ----- */
.pain {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 100%);
}
.pain::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18) 0%, transparent 60%);
  top: -150px;
  right: -150px;
  filter: blur(40px);
  pointer-events: none;
}
.pain::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.12) 0%, transparent 60%);
  bottom: -150px;
  left: -150px;
  filter: blur(40px);
  pointer-events: none;
}

.pain-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pain-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.pain-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}

/* Pain: иерархия как у SaaS — заголовок якорь, подзаголовок и интро ведут к контенту */
.pain-section-head {
  margin-bottom: var(--space-8);
}

.pain-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}

.pain-subtitle {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-top: var(--space-2);
  max-width: 560px;
  margin-left: 0;
  margin-right: auto;
}

.pain-container {
  position: relative;
  z-index: 1;
}

.pain-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: start;
  margin: 0 auto;
}

.pain-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pain-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.8fr;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.pain-card:hover {
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
}

.pain.in-view .pain-card {
  opacity: 1;
  transform: translateY(0);
}

.pain.in-view .pain-card:nth-child(1) { transition-delay: 0.1s; }
.pain.in-view .pain-card:nth-child(2) { transition-delay: 0.2s; }
.pain.in-view .pain-card:nth-child(3) { transition-delay: 0.3s; }

.pain-cta-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow var(--transition);
}

.pain.in-view .pain-cta-card {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.4s;
}

.pain-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-2);
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius);
}

.pain-card-icon svg,
.pain-card-icon img {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pain-card-num {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--cyan);
  line-height: 1.25;
  margin-bottom: var(--space-1);
}

.pain-card-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* CTA-карточка: 4-я в ряду, в одной сетке с pain-card */
.pain-cta-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-4);
  position: relative;
  overflow: visible;
  /* при уходе курсора свечение плавно гаснет (длинный переход) */
  transition: box-shadow 0.75s var(--ease-out), border-color 0.4s var(--ease-out);
  border-left: 4px solid var(--cyan);
}

.pain-cta-sticker {
  position: absolute;
  bottom: calc(100% - 28px);
  left: 50%;
  transform: translateX(calc(-50% - 80px));
  pointer-events: none;
  width: 216px;
  height: auto;
  z-index: 3;
}

.pain-cta-sticker-img {
  display: block;
  width: 100%;
  height: auto;
}

.pain-cta-sticker-default {
  opacity: 1;
  transform-origin: bottom center;
  transform: translate(9px, 5px) scale(1.10);
  /* более плавный переход туда и обратно */
  transition: opacity 1.5s var(--ease-in-out), transform 1.5s var(--ease-in-out);
}

.pain-cta-sticker-active {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: bottom center;
  transform: translate(30px, 45px) scale(1.3);
  filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0.0));
  transition: opacity 1.5s var(--ease-in-out),
              transform 1.5s var(--ease-in-out),
              filter 0.75s var(--ease-out);
}

.pain-cta-card:hover .pain-cta-sticker-default {
  opacity: 0;
}

.pain-cta-card:hover .pain-cta-sticker-active {
  opacity: 1;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.9));
}

/* на ховере — чуть быстрее, чем откат, но не мгновенно */
.pain-cta-card:hover .pain-cta-sticker-default,
.pain-cta-card:hover .pain-cta-sticker-active {
  transition-duration: 1s;
}

.pain-cta-card::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -40%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.pain-cta-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14) 0%, transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s var(--ease-out);
}

.pain-cta-card:hover {
  box-shadow: 0 22px 60px rgba(6, 182, 212, 0.26);
  border-color: rgba(6, 182, 212, 0.4);
  /* полоска слева всегда одного цвета; при наведении свечение появляется быстрее */
  border-left-color: var(--cyan);
  transition: box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

.pain-cta-card:hover::after {
  opacity: 1;
  transition: opacity 0.25s var(--ease-out);
}

.pain-cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pain-cta-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text);
  margin: 0 0 var(--space-2);
  line-height: var(--leading-tight);
}

.pain-cta-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-3);
  flex: 1;
}

.pain-cta-highlight {
  color: var(--cyan);
  font-weight: var(--weight-semibold);
}

.pain-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* лёгкое «зазывающее» покачивание кнопки, когда наведён курсор на карточку */
@keyframes pain-cta-btn-tease {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.pain-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

/* при ховере на карточку — кнопка слегка шевелится, зазывая нажать */
.pain-cta-card:hover .pain-cta-btn {
  animation: pain-cta-btn-tease 2s ease-in-out infinite;
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.35),
    0 0 28px rgba(56, 189, 248, 0.7);
}

/* при ховере на саму кнопку — анимация выключается, остаётся обычный эффект кнопки */
.pain-cta-card:hover .pain-cta-btn:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.35),
    0 0 28px rgba(56, 189, 248, 0.7);
}

.pain-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.35),
    0 0 28px rgba(56, 189, 248, 0.7);
}

.pain-cta-btn svg {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.pain-cta-btn:hover svg {
  transform: translateY(2px);
}

.pain-cta-microcopy {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-dim);
  margin-top: var(--space-1);
}

.pain-viz {
  position: absolute;
  left: 10%;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  max-height: 100%;
  overflow: hidden;
  opacity: 0;
}

.pain-character {
  width: auto;
  max-width: 560px;
  max-height: min(400px, 55vh);
  height: auto;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 8px 24px rgba(6, 182, 212, 0.18));
  vertical-align: bottom;
}

.flow-character,
.how-character {
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

/* ----- Cases: тот же фон, что у hero (градиент + два glow + шум) ----- */
.section.cases {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 100%);
}
.section.cases::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18) 0%, transparent 60%);
  top: -150px;
  right: -150px;
  filter: blur(40px);
  pointer-events: none;
}
.section.cases::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.12) 0%, transparent 60%);
  bottom: -150px;
  left: -150px;
  filter: blur(40px);
  pointer-events: none;
}
.cases-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cases-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ----- Cases: блок с роботом, слайдером и CTA; робот внизу по уровню кнопки ----- */
.cases-block {
  position: relative;
  margin-top: var(--space-6);
}

.cases-character-wrap {
  position: absolute;
  left: -255px; /* ещё правее на 30px */
  bottom: -150px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
}

.cases-character-wrap .cases-character {
  width: auto;
  max-width: 570px;
  max-height: 330px;
  object-fit: contain;
  object-position: bottom left;
}

.cases-character-default {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out, filter 0.35s ease-out;
  filter: drop-shadow(0 8px 24px rgba(6, 182, 212, 0.18));
}

.cases-character-active,
.cases-character-active-next {
  position: absolute;
  left: 0;
  bottom: 0;
  opacity: 0;
  transform: translateX(0) scale(0.97);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out, filter 0.35s ease-out;
  filter: drop-shadow(0 0 0 rgba(56, 189, 248, 0));
  pointer-events: none;
}

/* При клике на левую стрелку — cases_active */
.cases-character-wrap.is-flipping .cases-character-default {
  opacity: 0;
}
.cases-character-wrap.is-flipping .cases-character-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}

/* При клике на правую стрелку — cases_active_right_btn */
.cases-character-wrap.is-flipping-next .cases-character-default {
  opacity: 0;
}
.cases-character-wrap.is-flipping-next .cases-character-active-next {
  opacity: 1;
  transform: translateX(0) scale(1);
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}

/* Свечение при наведении на блок кейсов (как в hero/боли) */
.cases-block:hover .cases-character-default {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}
.cases-block:hover .cases-character-active,
.cases-block:hover .cases-character-active-next {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}

/* Кнопки слева и справа, кейсы строго между ними ----- */
.cases-slider-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cases-slider {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible; /* чтобы приподнятая при hover карточка не обрезалась */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cases-slider::-webkit-scrollbar { display: none; }

.cases-track {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-3) 0;
  padding-top: calc(var(--space-3) + 14px); /* место для подъёма карточек при hover */
  width: max-content;
  min-width: 100%;
}

/* ----- Case card: fixed size, image area = height of image, hover как pain-card ----- */
.case-card {
  flex: 0 0 min(320px, 90vw);
  width: min(320px, 90vw);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}

/* Один эффект на всю карточку: подъём + свечение (перебиваем .card:hover) */
.card.case-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
}

.case-card-img {
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  flex-shrink: 0;
  line-height: 0;
}

.case-card-img img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  vertical-align: middle;
  pointer-events: none; /* скрин не перехватывает hover — эффект только у карточки целиком */
}

.case-card .case-result,
.case-card .case-desc {
  padding: 0 var(--space-4);
}
.case-result {
  margin-bottom: 4px;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--cyan);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.case-meta {
  display: inline;
  margin-right: 6px;
  font-size: 1em;
  font-weight: inherit;
  color: inherit;
}
.case-result strong {
  color: inherit;
  font-weight: inherit;
}
.case-desc {
  padding-bottom: var(--space-4);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--text-muted);
}

/* CTA-карточка внутри кейсового слайдера — те же размеры, сетка, радиус, тень что и кейсы */
.case-card-cta {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.case-card-cta-top {
  width: 100%;
  height: 160px;
  flex-shrink: 0;
  margin: 0;
  padding: var(--space-4);
  background: var(--blue-mid);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.case-card-cta-top::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='36' viewBox='0 0 60 36' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 28 L8 24 L16 26 L24 20 L32 22 L40 16 L48 18 L60 12' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") repeat-x bottom center;
  pointer-events: none;
  opacity: 0.07;
}

.case-card-cta-headline {
  position: relative;
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  text-align: center;
  transition: text-shadow var(--transition);
}

.case-card-cta:hover .case-card-cta-headline {
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.case-card-cta-body {
  padding: var(--space-3) var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.case-card-cta-body .btn {
  width: 100%;
  min-height: 44px;
  animation: case-cta-btn-pulse 2.5s ease-in-out infinite;
}

.case-card-cta-body .btn:hover {
  animation: none;
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.4),
    0 0 32px rgba(56, 189, 248, 0.8),
    0 0 48px rgba(56, 189, 248, 0.4);
}

@keyframes case-cta-btn-pulse {
  0%, 100% { box-shadow: var(--shadow-sm), 0 0 0 1px rgba(6, 182, 212, 0.2), 0 0 16px rgba(56, 189, 248, 0.2); }
  50% { box-shadow: 0 6px 20px rgba(6, 182, 212, 0.3), 0 0 0 1px rgba(6, 182, 212, 0.35), 0 0 28px rgba(56, 189, 248, 0.45); }
}

.cases-slider-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cases-slider-btn:hover {
  background: var(--bg-elevated);
  color: var(--cyan);
  box-shadow: var(--shadow-lg);
}

.cases-slider-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: var(--text-dim);
}
.cases-slider-btn:disabled:hover {
  background: var(--bg);
  color: var(--text-dim);
  box-shadow: var(--shadow-md);
}

.cases-section-cta {
  margin-top: var(--space-6);
}

.pricing-character-wrap .pricing-character,
.pricing-character-wrap .pricing-character-hover {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.pain-robot svg {
  width: 80px;
  height: 80px;
  opacity: 0.9;
}

/* ===== How it works ----- */
.how {
  position: relative;
  overflow: hidden;
}

.how-container {
  position: relative;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: var(--space-5);
  max-width: 960px;
  margin: 0 auto;
}

.flow-step {
  min-width: 0;
  text-align: center;
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Синее свечение у карточек шагов, как у pain-card */
.flow-step.card:hover {
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
  border-color: rgba(6, 182, 212, 0.25);
  transform: none; /* отменяем общее смещение .card:hover, как у pain-card */
}

.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--blue-mid), var(--cyan));
  color: var(--bg);
  font-weight: var(--weight-extrabold);
  font-size: var(--text-xl);
  border-radius: 50%;
  margin-bottom: 0;
}

.flow-top {
  position: relative;
  width: 100%;
  margin-bottom: 4px;
}

.flow-top .flow-num {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-20%, -20%);
  z-index: 1;
}

.flow-illustration {
  width: 100%;
  max-width: 260px;
  height: 140px; /* одинаковая высота под самую большую картинку */
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.flow-illustration img {
  display: block;
  width: auto;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 28px rgba(15, 23, 42, 0.22));
  transition: filter var(--transition), transform var(--transition);
}

/* Синее свечение у картинок внутри шагов при ховере карточки */
.flow-step.card:hover .flow-illustration img {
  filter:
    drop-shadow(0 10px 28px rgba(6, 182, 212, 0.2))
    drop-shadow(0 0 26px rgba(56, 189, 248, 0.7));
  animation: flow-illustration-float 1.8s ease-in-out infinite;
}

.flow-step h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-1);
  line-height: var(--leading-snug);
}

.flow-step p { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-normal); }


.flow-step-accent {
  border-color: rgba(6, 182, 212, 0.25);
}

/* Под тремя шагами: подпись + CTA */
.how-cta {
  margin-top: var(--space-8);
  padding-top: var(--space-2);
  text-align: center;
  position: relative;
  z-index: 1;
}

.how-cta-caption {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--cyan);
  margin: 0 0 var(--space-4);
  line-height: var(--leading-snug);
}

.how-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-5);
  min-height: 44px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
}

@keyframes flow-cta-tease {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Кнопка внутри третьего шага */
.flow-step .how-cta-btn {
  margin-top: var(--space-2);
}

/* у третьего шага при наведении карточки кнопка только светится (без шевеления) */
.flow-step.card:nth-child(3):hover .how-cta-btn {
  box-shadow:
    0 12px 32px rgba(6, 182, 212, 0.35),
    0 0 28px rgba(56, 189, 248, 0.7);
}

/* при ховере именно на кнопку — фиксированное состояние без покачивания */
.flow-step.card:nth-child(3):hover .how-cta-btn:hover {
  animation: none;
}

.flow-robot {
  margin-top: 20px;
}

.flow-robot svg {
  width: 56px;
  height: 56px;
  opacity: 0.9;
}

/* Case meta/result are in main Cases block above */

/* ===== Why — композиция как «Что вы получаете»: двухколоночный верх, grid-12, те же карточки ----- */
.section.why {
  position: relative;
  overflow: hidden;
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 100%);
}

.section.why::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.16) 0%, transparent 60%);
  top: -150px;
  right: -150px;
  filter: blur(40px);
  pointer-events: none;
}

.section.why::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.10) 0%, transparent 60%);
  bottom: -150px;
  left: -150px;
  filter: blur(40px);
  pointer-events: none;
}

.why-container {
  position: relative;
}

.why-container::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 0;
}

.why-bg {
  position: absolute;
  right: calc(8% - 80px);
  top: calc(-22% + 60px);
  transform: translateY(0) translateX(0);
  z-index: 0;
  pointer-events: none;
  width: 56%;
  max-width: 580px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.why-ui {
  position: absolute;
  right: 8%;
  top: 20%;
  width: 120px;
  height: 80px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, transparent 60%);
  border-radius: var(--radius);
  border: 1px solid rgba(6, 182, 212, 0.12);
  pointer-events: none;
}

.why-ui::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -20px;
  width: 80px;
  height: 50px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
  border-radius: var(--radius);
  border: 1px solid rgba(6, 182, 212, 0.08);
}

.why-bg .why-character {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  filter: drop-shadow(0 8px 24px rgba(6, 182, 212, 0.18));
  animation: why-levitate 4.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes why-levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.why-content {
  position: relative;
  z-index: 1;
}

.why-section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.why-section-head .section-desc {
  margin-left: 0;
  margin-right: auto;
}

.why-grid {
  align-items: stretch;
}

.why-card {
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.33, 1, 0.68, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.why-card:hover {
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.12);
  transform: none;
}

.why-card:hover .card-glow {
  opacity: 0;
}

.why-card:hover .why-num {
  color: var(--cyan);
}

.why-num {
  font-size: 2.5rem;
  font-weight: var(--weight-extrabold);
  color: var(--cyan);
  line-height: var(--leading-tight);
  margin-top: var(--space-2);
  margin-bottom: var(--space-3);
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.25));
}

.why-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--text);
  margin-bottom: var(--space-1);
  line-height: var(--leading-snug);
}

.why-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

/* Плашка «Экосистема» — тёмный акцент + перелив + кнопка с эффектами ----- */
.why-ecosystem {
  width: 100%;
  margin-top: var(--space-6);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Перелив: диагональный блик по плашке, чаще и крупнее */
.why-ecosystem::before {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 420px;
  height: 200%;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 22%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 78%,
    transparent 100%
  );
  transform: translateX(-120%) skewX(-12deg);
  pointer-events: none;
  animation: why-ecosystem-shimmer 2.3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes why-ecosystem-shimmer {
  0% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
  2% { opacity: 0.95; }
  25% { transform: translateX(140%) skewX(-12deg); opacity: 0.95; }
  27% { opacity: 0; }
  73%, 100% { transform: translateX(-120%) skewX(-12deg); opacity: 0; }
}

/* При наведении на кнопку — пауза блика и биения */
.why-ecosystem:has(.why-ecosystem-cta:hover)::before {
  animation-play-state: paused;
}
.why-ecosystem-cta:hover {
  animation-play-state: paused;
}

/* При снятии курсора перезапуск анимаций задаётся из JS (класс .why-ecosystem-anim-off) */
.why-ecosystem-anim-off::before {
  animation: none !important;
}
.why-ecosystem-anim-off .why-ecosystem-cta {
  animation: none !important;
}

@media (max-width: 1024px), (prefers-reduced-motion: reduce) {
  .why-ecosystem::before { animation: none; opacity: 0; }
  .why-ecosystem-cta { animation: none; }
}

.why-ecosystem-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #0e3a52 0%, #0e7490 35%, #0891b2 70%, #06b6d4 100%);
  border-radius: inherit;
  box-shadow:
    0 8px 32px rgba(6, 182, 212, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Рисунок фона: лёгкие соты (шестиугольники), только обводка */
.why-ecosystem-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='28' height='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 6l-1.75 3.03-3.5 0-1.75-3.03 1.75-3.03 3.5 0z M24.5 6l-1.75 3.03-3.5 0-1.75-3.03 1.75-3.03 3.5 0z M17.5 14l-1.75 3.03-3.5 0-1.75-3.03 1.75-3.03 3.5 0z' fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='0.45'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.98;
}

/* Мягкое внутреннее свечение + лёгкие «связи» (градиентные полосы как потоки) */
.why-ecosystem-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, transparent 0%, rgba(255, 255, 255, 0.02) 40%, transparent 70%),
    linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.015) 55%, transparent 100%),
    radial-gradient(ellipse 80% 100% at 75% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

/* Узлы-порталы: округлые, с мягким свечением, как входы в «мир» экосистемы */
.why-ecosystem-ui-card {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 40%, transparent 70%);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.06), 0 0 24px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.why-ecosystem-ui-card-1 {
  top: 12%;
  right: 22%;
  width: 72px;
  height: 72px;
}

.why-ecosystem-ui-card-2 {
  bottom: 16%;
  right: 12%;
  width: 52px;
  height: 52px;
}

.why-ecosystem-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-3) var(--space-5);
  min-height: 80px;
  position: relative;
  z-index: 2;
}

.why-ecosystem-head {
  flex: 1;
  min-width: 0;
}

.why-ecosystem-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--weight-semibold);
  color: #67e8f9;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--space-1);
}

.why-ecosystem-title {
  font-size: clamp(var(--text-base), 1.15rem, var(--text-xl));
  font-weight: var(--weight-bold);
  color: #fff;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  margin: 0 0 2px 0;
}

.why-ecosystem-sub {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.75);
  line-height: var(--leading-normal);
  margin: 0;
}

.why-ecosystem-cta-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.why-ecosystem-cta {
  position: relative;
  min-height: 50px;
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  background: rgba(255, 255, 255, 0.96);
  color: var(--cyan);
  border: none;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: box-shadow 0.35s ease, background 0.25s ease;
  animation: why-ecosystem-cta-pulse 2.3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: 1s;
}

/* Плавное биение: два удара медленнее между собой; после второго — сильнее увеличение и плавное уменьшение до нового блика */
@keyframes why-ecosystem-cta-pulse {
  0%, 22% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
  }
  24% {
    transform: scale(1.05);
    box-shadow:
      0 6px 22px rgba(0, 0, 0, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.6),
      0 0 28px rgba(6, 182, 212, 0.45);
  }
  26% {
    transform: scale(1.025);
    box-shadow:
      0 5px 19px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.55),
      0 0 14px rgba(6, 182, 212, 0.22);
  }
  29% {
    transform: scale(1.048);
    box-shadow:
      0 6px 20px rgba(0, 0, 0, 0.13),
      0 0 0 1px rgba(255, 255, 255, 0.6),
      0 0 24px rgba(6, 182, 212, 0.35);
  }
  32% {
    transform: scale(1.14);
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.16),
      0 0 0 1px rgba(255, 255, 255, 0.7),
      0 0 40px rgba(6, 182, 212, 0.55);
  }
  40% {
    transform: scale(1.08);
    box-shadow:
      0 7px 22px rgba(0, 0, 0, 0.14),
      0 0 0 1px rgba(255, 255, 255, 0.58),
      0 0 24px rgba(6, 182, 212, 0.32);
  }
  50% {
    transform: scale(1.045);
    box-shadow:
      0 5px 19px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.52),
      0 0 14px rgba(6, 182, 212, 0.2);
  }
  62% {
    transform: scale(1.022);
    box-shadow:
      0 4px 17px rgba(0, 0, 0, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.5),
      0 0 8px rgba(6, 182, 212, 0.12);
  }
  74% {
    transform: scale(1.01);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
  }
  85% {
    transform: scale(1.004);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
  }
  94%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
  }
}

/* Блик по кнопке при наведении */
.why-ecosystem-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.5),
    transparent
  );
  transform: skewX(-18deg);
  pointer-events: none;
}

.why-ecosystem-cta:hover::before {
  animation: why-ecosystem-btn-shine 0.7s ease-out forwards;
}

@keyframes why-ecosystem-btn-shine {
  0% { left: -100%; }
  100% { left: 150%; }
}

.why-ecosystem-cta:hover {
  animation-play-state: paused;
  transition: box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
  background: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.7),
    0 0 40px rgba(6, 182, 212, 0.35),
    0 0 60px rgba(56, 189, 248, 0.2);
}

.why-ecosystem-cta:active {
  transform: translateY(-1px) scale(1);
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.6),
    0 0 24px rgba(6, 182, 212, 0.25);
}

/* ===== Pricing (Airbnb: clear hierarchy, pill CTAs) ----- */
.section.pricing {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 100%);
}
.section.pricing::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.18) 0%, transparent 60%);
  top: -150px;
  right: -150px;
  filter: blur(40px);
  pointer-events: none;
}
.section.pricing::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 120, 255, 0.12) 0%, transparent 60%);
  bottom: -150px;
  left: -150px;
  filter: blur(40px);
  pointer-events: none;
}
.pricing-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.pricing-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  align-items: stretch;
}

.pricing-cta {
  text-align: center;
  margin-top: auto;
  margin-bottom: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-14px); /* визуально поднимаем кнопку ближе к цене */
}
.pricing-cta .btn {
  min-height: 44px;
  padding: var(--space-2) var(--space-5);
  font-size: var(--text-base);
}

.pricing-cta .pricing-trial-btn {
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.pricing-cta-placeholder {
  visibility: hidden;
}

/* В базовом тарифе делаем ещё меньше воздуха между ценой и кнопкой */
.pricing-grid .price-card:nth-child(2) .price-wrap {
  margin-bottom: var(--space-1);
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-3) var(--space-2);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-mid);
  color: var(--bg);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
}

.price-name {
  position: relative;
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
}

.price-name-trial {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  color: var(--cyan);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.price-name-default {
  transition: opacity 0.35s ease;
}

.pricing-grid .price-card:nth-child(2):hover .price-name-default {
  opacity: 0;
}

.pricing-grid .price-card:nth-child(2):hover .price-name-trial {
  opacity: 1;
  color: var(--cyan);
}

.price-features {
  list-style: none;
  margin-bottom: var(--space-2);
  flex-grow: 0;
  min-height: 96px; /* одинаковая высота блока фич для выравнивания цен */
}

.price-features li {
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border);
  line-height: var(--leading-normal);
}

.price-features li:last-child { border-bottom: none; }

/* Отступ под фичами одинаковый для всех тарифов,
   чтобы price-wrap начинался на одном уровне */

.price-note {
  font-size: var(--text-xs) !important;
  color: var(--cyan) !important;
}

.price-wrap {
  margin-bottom: var(--space-3);
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: var(--space-1);
  position: relative;
  align-self: flex-start;
}

.price-value {
  font-size: 1.875rem;
  font-weight: var(--weight-extrabold);
  color: var(--text);
  transition: color var(--transition);
}

/* Базовый тариф: цена такого же цвета, как и остальные */
.price-recommended .price-value {
  color: var(--text);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: nowrap;
  position: relative;
}

.price-line-single {
  width: 100%;
}

.price-discount-placeholder {
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
  position: static;
}

.price-old-placeholder {
  visibility: hidden;
  width: 0;
  margin: 0;
  padding: 0;
}
.price-old {
  font-size: var(--text-sm);
  color: var(--text-dim);
  text-decoration: line-through;
}

/* "0 ₽" для базового тарифа при ховере */
.price-value-free {
  position: absolute;
  left: 100%;
  top: -40px;
  margin-left: var(--space-2);
  font-size: 3rem;
  font-weight: var(--weight-extrabold);
  color: var(--cyan) !important;
  opacity: 0;
  transform: translateY(4px) rotate(-8deg);
  transition: opacity 2s var(--ease-out), transform 2s var(--ease-out), color 2s var(--ease-out);
  text-decoration: none !important;
  white-space: nowrap;
  pointer-events: none;
  animation: none;
}

.pricing-grid .price-card:nth-child(2):hover .price-value {
  text-decoration: line-through;
  color: var(--text-dim);
}

.pricing-grid .price-card:nth-child(2):hover .price-value-free {
  opacity: 1;
  transform: translateY(0) rotate(-8deg);
  color: var(--cyan) !important;
  transition: opacity 0s, transform 0s, color 0s;
  animation: price-free-wiggle 2.4s ease-in-out infinite;
}

/* Подсветка кнопки при ховере на базовый тариф */
.pricing-grid .price-card:nth-child(2):hover .pricing-trial-btn {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.5), 0 4px 12px rgba(6, 182, 212, 0.3);
  transform: translateY(-2px);
}

@keyframes price-free-wiggle {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-6px) rotate(-12deg);
  }
}

.price-discount {
  display: inline-block;
  position: absolute;
  right: -44px;
  bottom: 25px;
  transform: translateY(0%) rotate(-10deg);
  font-size: var(--text-xs);
  font-weight: var(--weight-extrabold);
  color: #fff;
  background: var(--cyan);
  padding: 2px 8px;
  border-radius: var(--radius);
  white-space: nowrap;
  pointer-events: none;
  animation: price-discount-wiggle 3.2s ease-in-out infinite;
}

@keyframes price-discount-wiggle {
  0%, 100% {
    transform: translateY(-20%) rotate(-10deg);
  }
  50% {
    transform: translateY(-32%) rotate(-18deg);
  }
}

/* Разный ритм анимации для скидок, чтобы они не шевелились синхронно */
.pricing-grid .price-card:nth-child(3) .price-discount {
  animation-delay: 0.3s;
}

.pricing-grid .price-card:nth-child(4) .price-discount {
  animation-delay: 1.1s;
}

.price-card .btn { width: 100%; min-height: 48px; }

.price-card .pricing-trial-btn {
  min-height: 40px;
  margin-top: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  white-space: nowrap;
  align-self: stretch;
  margin-left: 0;
  margin-right: 0;
}

.price-recommended {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.04);
}

.price-recommended .price-value {
  color: var(--text);
}

.price-recommended .price-badge { background: var(--cyan); color: #fff; }

.price-pro {
  position: relative;
  border-color: rgba(6, 182, 212, 0.3);
}

.price-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  pointer-events: none;
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.06);
}

.price-badge-pro {
  background: linear-gradient(135deg, var(--cyan), var(--blue-mid));
  color: #fff;
}

.pricing-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.pricing-robot { width: 48px; height: 48px; opacity: 0.9; }

.pricing-foot p { font-size: var(--text-sm); color: var(--text-muted); }

/* ===== FAQ — SaaS accordion ----- */
.faq-container {
  max-width: var(--container);
  margin: 0 auto;
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: flex-start;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition);
  flex: 1 1 calc(50% - var(--space-3));
  max-width: calc(50% - var(--space-3));
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  cursor: pointer;
  text-align: left;
}

.faq-question h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text);
  margin: 0;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    transform var(--transition-slow),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

.faq-icon::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(15, 23, 42, 0.9);
  border-bottom: 2px solid rgba(15, 23, 42, 0.9);
  transform: rotate(45deg) translateY(-1px);
  transform-origin: center;
  transition:
    transform var(--transition-slow),
    border-color var(--transition);
}

.faq-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.08);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.26s var(--ease-out),
    opacity 0.2s var(--ease-out),
    transform 0.26s var(--ease-out);
}

.faq-answer-inner {
  padding: 0 24px 20px 24px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-relaxed);
}

.faq-answer-inner strong {
  color: var(--cyan);
  font-weight: var(--weight-semibold);
}

.faq-answer-inner p + p {
  margin-top: 8px;
}

.faq-item.is-open {
  border-color: rgba(6, 182, 212, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow:
    0 18px 48px rgba(6, 182, 212, 0.12),
    0 0 0 1px rgba(6, 182, 212, 0.06);
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-item.is-open .faq-icon {
  border-color: rgba(6, 182, 212, 0.8);
  background: rgba(6, 182, 212, 0.06);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.faq-item.is-open .faq-icon::before {
  /* превращаем стрелку в минус */
  width: 10px;
  height: 0;
  border-right: none;
  border-bottom: 2px solid var(--cyan);
  transform: none;
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: var(--cyan);
}

.faq-question:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ===== Final block — premium CTA, 3 layers, high-end SaaS ----- */
.final-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, #F8FBFF 0%, #F3F7FF 100%);
}

/* Layer 1: фон + центральный spotlight */
.final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 110% 110% at 0% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 80% 70% at 100% 100%, rgba(0, 120, 255, 0.10) 0%, transparent 60%);
  opacity: 0.95;
}

.final-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 90% 70% at 50% 45%, rgba(56, 189, 248, 0.08) 0%, transparent 55%);
}

/* Layer 2: атмосферные элементы */
.final-atmo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.final-atmo-blur {
  position: absolute;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  opacity: 0.5;
}

.final-atmo-blur-1 {
  width: 180px;
  height: 100px;
  top: 18%;
  left: 8%;
  transform: rotate(-6deg);
}

.final-atmo-blur-2 {
  width: 140px;
  height: 80px;
  bottom: 25%;
  right: 12%;
  transform: rotate(4deg);
}

.final-atmo-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}

.final-atmo-glow-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  top: 10%;
  right: 15%;
}

.final-atmo-glow-2 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  bottom: 15%;
  left: 5%;
}

.final-atmo-shape {
  position: absolute;
  border: 1px solid rgba(56, 189, 248, 0.12);
  border-radius: 50%;
  opacity: 0.6;
}

.final-atmo-shape-1 {
  width: 200px;
  height: 200px;
  top: 30%;
  right: 20%;
}

.final-atmo-shape-2 {
  width: 120px;
  height: 120px;
  bottom: 30%;
  left: 15%;
}

.final-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layer 3: контент */
.final-inner {
  position: relative;
  z-index: 4;
  max-width: 1200px;
  margin: 0 auto;
}

.final-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(var(--space-5), 6vw, var(--space-10));
  align-items: flex-start;
  min-height: 0;
  padding: 0;
  border-radius: var(--radius-xl);
  position: relative;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.04));
}

.final-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  max-width: 520px;
  grid-column: 1;
  grid-row: 1;
  align-self: flex-start;
}

/* Reveal: fade + slide */
.final-section .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.final-section .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.final-section .final-value-card.reveal { transition-delay: 0.1s; }
.final-section .final-value-card.reveal:nth-child(2) { transition-delay: 0.2s; }
.final-section .final-value-card.reveal:nth-child(3) { transition-delay: 0.3s; }

.final-eyebrow {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.final-headline {
  margin-bottom: var(--space-4);
  line-height: var(--leading-tight);
  letter-spacing: -0.03em;
}

.final-subtitle {
  margin-top: 4px;
}

/* Value cards — glass, строки на всю ширину справа */
.final-value-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: var(--space-3);
  width: 100%;
}

.final-value-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.96));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: var(--shadow-md);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  flex: 1 1 0;
  min-width: 0;
}

.final-value-card:nth-child(3) {
  padding-right: calc(var(--space-5) + 24px);
}

.final-value-card:hover {
  background: #ffffff;
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(6, 182, 212, 0.25);
  transform: translateY(-2px);
}

/* Иконка снаружи на уголке карточки, верстка текста не сдвигается */
.final-value-corner-icon {
  position: absolute;
  top: -52px;
  left: -27px;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.final-value-corner-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
}

.final-value-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--cyan);
  margin-bottom: 2px;
}

.final-value-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
}

.final-bonus-side {
  grid-column: 2;
  grid-row: 1;
  align-self: flex-start;
  margin-top: 30px;
}

.final-footer-row {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: var(--space-3);
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: var(--space-5);
}

.final-robot-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 0;
  margin-left: 355px;
}

.final-robot-shadow {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 70%;
  height: 24px;
  background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(0, 0, 0, 0.08) 0%, transparent 70%);
  filter: blur(8px);
}

.final-robot-glow {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 80%;
  height: 120px;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  filter: blur(32px);
  pointer-events: none;
}

.final-robot-final-wrap {
  margin-top: var(--space-4);
}

.final-robot-img,
.final-robot-img-hover {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) scale(1.5);
  width: auto;
  max-width: min(480px, 40vw);
  max-height: 340px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.33, 1, 0.68, 1), filter 0.8s cubic-bezier(0.33, 1, 0.68, 1);
}

.final-robot-img {
  opacity: 1;
  filter: drop-shadow(0 8px 32px rgba(56, 189, 248, 0.18));
}

.final-robot-img-hover {
  opacity: 0;
  transform: translateX(calc(-50% - 53px)) translateY(11px) scale(1.7);
}

.final-gift {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform;
  z-index: 0;
  --gift-scale: 1;
  transform: scale(var(--gift-scale));
  animation: final-gift-float 10s ease-in-out infinite alternate;
}

.final-gift-1 {
  top: -80px;
  right: 120px;
  --gift-scale: 0.55;
  animation-delay: 0s;
}

.final-gift-2 {
  top: -100px;
  right: -100px;
  --gift-scale: 0.48;
  animation-delay: 0.6s;
}

.final-gift-3 {
  top: 80px;
  right: -180px;
  --gift-scale: 0.42;
  animation-delay: 1.2s;
}

@keyframes final-gift-float {
  0%   { transform: translate3d(0, 0, 0) scale(var(--gift-scale)); }
  50%  { transform: translate3d(-4px, -10px, 0) scale(var(--gift-scale)); }
  100% { transform: translate3d(4px, -4px, 0) scale(var(--gift-scale)); }
}

.final-cta-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  text-align: left;
  margin-top: var(--space-1);
}

/* Кнопка-магнит: 500px × 64px, градиент, glow, ripple */
.final-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  min-height: 64px;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-mid) 0%, var(--cyan) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.35),
    0 8px 32px rgba(6, 182, 212, 0.3),
    0 0 48px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.25s var(--ease-out), box-shadow 0.35s var(--ease-out), background-position 0.5s ease;
  animation: final-cta-glow 7s ease-in-out infinite;
}

.final-cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, transparent 35%, rgba(255, 255, 255, 0.25) 45%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0.25) 55%, transparent 65%, transparent 100%);
  background-size: 220% 100%;
  background-position: 150% 0;
  animation: final-cta-shimmer 3s ease-in-out infinite;
  pointer-events: none;
  border-radius: inherit;
}

.final-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(6, 182, 212, 0.5),
    0 12px 40px rgba(6, 182, 212, 0.4),
    0 0 64px rgba(56, 189, 248, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background-position: 100% 50%;
}

.final-cta-btn:active {
  transform: translateY(0);
}

.final-cta-ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  animation: final-ripple 0.6s var(--ease-out) forwards;
}

@keyframes final-ripple {
  to {
    transform: scale(25);
    opacity: 0;
  }
}

@keyframes final-cta-glow {
  0%, 100% {
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.35), 0 8px 32px rgba(6, 182, 212, 0.3), 0 0 48px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.45), 0 12px 40px rgba(6, 182, 212, 0.4), 0 0 56px rgba(56, 189, 248, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

@keyframes final-cta-shimmer {
  0% { background-position: 150% 0; }
  100% { background-position: -70% 0; }
}

.final-cta-microcopy {
  font-size: var(--text-sm);
  color: var(--text-dim);
  line-height: var(--leading-normal);
}

/* Hover-анимация робота по принципу hero */
.final-section:has(.final-cta-btn:hover) .final-robot-img {
  opacity: 0;
}

.final-section:has(.final-cta-btn:hover) .final-robot-img-hover {
  opacity: 1;
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65));
}

.final-cta-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cyan);
}

@media (prefers-reduced-motion: reduce) {
  .final-headline-number { animation: none; }
  .final-robot-img { animation: none; }
  .final-cta-btn { animation: none; }
  .final-cta-btn::before { animation: none; }
}

/* ===== Footer ----- */
.footer {
  position: relative;
  padding: var(--section-py) 0 var(--space-6);
  background: var(--blue-mid);
  color: #e5f4ff;
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 0%, rgba(56, 189, 248, 0.32) 0%, transparent 55%);
  pointer-events: none;
}

.footer-inner { position: relative; }

.footer-top {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr 0.9fr;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(148, 163, 184, 0.5);
  margin-bottom: var(--space-3);
}

.footer-tagline {
  margin-top: var(--space-1);
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.9);
  line-height: var(--leading-normal);
}

.footer-bio h3,
.footer-links h3,
.footer-social h3 {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: var(--space-2);
}

.footer-bio p,
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.92);
  line-height: var(--leading-relaxed);
}

.footer-links a {
  display: block;
  text-decoration: none;
  margin-bottom: 2px;
  padding: 2px 0;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--cyan); }

.footer-links a:focus-visible { outline: none; color: var(--cyan); box-shadow: var(--focus-ring); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: rgba(226, 232, 240, 0.8);
}

.footer-legal-link {
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  padding: var(--space-1) 0;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.footer-legal-link:hover {
  color: #fefce8;
}

.footer-legal-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.footer-social-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.footer-social-btn img {
  display: block;
  width: 28px;
  height: 28px;
}

.footer-social-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.footer-social-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ===== Reveal (smooth Airbnb-style entrance) ----- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for cards */
.benefit-card.reveal { transition-delay: 0s; }
.benefit-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.benefit-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.benefit-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.benefit-card.reveal:nth-child(4) { transition-delay: 0.2s; }
.flow-step.reveal:nth-child(1) { transition-delay: 0.05s; }
.flow-step.reveal:nth-child(2) { transition-delay: 0.1s; }
.flow-step.reveal:nth-child(3) { transition-delay: 0.15s; }
.case-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.case-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.case-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.price-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.price-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.price-card.reveal:nth-child(3) { transition-delay: 0.15s; }
.price-card.reveal:nth-child(4) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition-delay: 0s !important; }
  .section-character-float, .how-character-float { animation: none; }
}

/* ===== Responsive: 1200 → 1024 → 768 → 480 → 360 → 320 ----- */

/* Large tablet / small desktop */
@media (max-width: 1200px) {
  .container { padding: 0 var(--space-3); }
  .hero-inner { gap: var(--space-6); }
  .section-head { margin-bottom: var(--space-6); }
  .section-cta { margin-top: var(--space-6); }
  .pricing-grid { gap: var(--space-3); }
}

/* Hero text: на грани — максимум размер при отсутствии переноса (1025–1100px) */
@media (min-width: 1025px) and (max-width: 1100px) {
  .hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.09em;
  }
  .hero-title-rest {
    font-size: clamp(3rem, 6.8vw, 4rem);
  }
  .hero-number {
    font-size: var(--text-hero-big);
  }
}

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: var(--space-8);
  }
  .final-main {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
  .final-header {
    max-width: 560px;
    margin: 0 auto;
    align-items: center;
    text-align: center;
  }
  .final-bonus-side {
    grid-column: 1;
    grid-row: 2;
  }
  .final-footer-row {
    grid-column: 1;
    grid-row: 3;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: var(--space-4);
  }
  .final-visual {
    justify-content: center;
    order: -1;
  }
  .hero {
    padding: var(--space-12) 0 var(--space-8);
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: left;
    align-items: flex-start;
  }
  .hero-content {
    order: 1;
    margin-left: 0;
    margin-right: 0;
    padding-top: 0;
    align-items: flex-start;
    text-align: left;
    max-width: 100%;
  }
  .hero-visual { order: 2; justify-content: center; }
  .hero-subtitle { max-width: 520px; margin-left: 0; margin-right: 0; }
  .hero-cta-block { max-width: 280px; min-height: 180px; transform: translateX(0); }
  .hero-cta-robot-wrap { max-width: 200px; width: 120%; margin-bottom: -8px; transform: translateX(-50%) scale(1); }
  .hero-cta-wrap { margin-bottom: var(--space-2); }
  .hero-glow-4 { width: 90%; height: 70%; right: 50%; transform: translate(50%, -50%); max-height: 260px; }
  .hero-bg-pill { height: 50%; width: 48%; top: 50%; right: 50%; transform: translate(50%, -50%); max-height: 200px; max-width: 220px; opacity: 0.32; }
  .hero-bg-stat-wrap { top: 10%; right: 50%; transform: translate(50%, 0); width: 85%; min-width: 200px; max-width: 260px; }
  .hero-bg-stat { transform: rotate(-5deg); }
  .hero-bg-elem { height: 6%; max-height: 36px; }
  .hero-bg-elem-1 { top: 8%; right: 25%; }
  .hero-bg-elem-2 { top: 22%; right: 35%; }
  .hero-bg-elem-3 { bottom: 28%; right: 30%; }
  .hero-bg-elem-4 { top: 38%; right: 20%; }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .benefits-grid > * { grid-column: auto !important; }
  .benefit-card { padding: var(--space-4); }
  .benefits-bg { width: 50%; max-width: 420px; right: 0; transform: translateY(0) translateX(0); top: calc(-14% + 28px); opacity: 0.9; }
  .benefits:has(.benefits-cta .btn:hover) .benefits-bg { transform: translateY(0) translateX(0) scale(1.08); }
  .benefits-bg .benefits-character { max-width: 100%; }
  .benefits-cta { text-align: center; margin-top: var(--space-4); }
  .pain-layout { gap: var(--space-6); }
  .pain-cards { grid-template-columns: repeat(2, 1fr); }
  .pain-character { max-width: 440px; max-height: 400px; }
  .flow {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
  .flow-step {
    width: 100%;
    min-width: 0;
    min-height: 0;
    box-sizing: border-box;
  }
  .how-cta { margin-top: var(--space-6); }
  .how-cta-caption { font-size: var(--text-base); margin-bottom: var(--space-3); }
  .how-cta-btn { width: 100%; max-width: 320px; min-height: 48px; }
  .how-character-wrap { margin-top: var(--space-4); }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .why-grid > * { grid-column: auto !important; }
  .why-bg { width: 50%; max-width: 420px; right: 0; top: calc(-14% + 58px); opacity: 0.9; }
  .why-bg .why-character { max-width: 100%; }
  .why-ecosystem-inner { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-4); min-height: 0; }
  .why-ecosystem-head { text-align: center; }
  .why-ecosystem-cta-wrap { justify-content: center; }
  .why-ecosystem-cta { width: 100%; justify-content: center; max-width: 280px; margin: 0 auto; }
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
  .price-card { padding: var(--space-4) var(--space-3); }
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    padding-bottom: var(--space-6);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-py: var(--space-6);
  }
  .container { padding: 0 var(--space-2); }
  .hero { padding: var(--space-8) 0 var(--space-6); }
  .hero-number { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .hero-title-rest { font-size: clamp(1.75rem, 5.5vw, 2.5rem); }
  .hero-title-context { font-size: var(--text-xl); }
  .hero-subtitle { font-size: var(--text-base); }
  .btn-hero { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
  .hero-cta-robot-wrap { max-width: 180px; width: 120%; margin-bottom: -8px; }
  .hero-cta-block { max-width: 260px; }
  .hero-bg-stat-wrap { max-width: 220px; min-width: 180px; }
  .hero-bg-pill { max-height: 180px; max-width: 200px; }
  .hero-glow-4 { max-height: 220px; }
  .hero-bg-elem { max-height: 32px; }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  .section-head { margin-bottom: var(--space-6); }
  .section-character { width: 48px; height: 48px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: var(--space-4) var(--space-3); }
  .benefit-num { font-size: 2rem; }
  .benefit-num-wrap-div { font-size: 2rem; }
  .benefits-bg { width: 100%; max-width: 360px; left: 50%; right: auto; transform: translate(-50%, -50%); }
  .benefits:has(.benefits-cta .btn:hover) .benefits-bg { transform: translate(-50%, -50%) scale(1.08); }
  .benefits-bg .benefits-character { max-width: 100%; opacity: 0.85; }
  .benefits-cta { text-align: center; margin-top: var(--space-4); }
  .benefits-cta .btn { width: 100%; max-width: 320px; }
  .pain-section-head { margin-bottom: var(--space-6); }
  .pain-layout { gap: var(--space-4); }
  .pain-content { margin-bottom: var(--space-2); }
  .pain-cards { grid-template-columns: 1fr; }
  .pain-card { padding: var(--space-3); }
  .pain-card-num { font-size: var(--text-lg); }
  .pain-cta-card { padding: var(--space-4); }
  .pain-cta-title { font-size: var(--text-lg); }
  .pain-cta-text { font-size: var(--text-sm); }
  .pain-cta-btn { width: 100%; padding: var(--space-2) var(--space-4); font-size: var(--text-sm); }
  .pain-character { max-width: 320px; max-height: 280px; opacity: 0.85; }
  .pain-viz { left: 5%; opacity: 1; }
  .flow-step { padding: var(--space-4); min-height: 0; }
  .flow-num { width: 44px; height: 44px; font-size: var(--text-lg); }
  .how-cta { margin-top: var(--space-6); }
  .how-cta-btn { width: 100%; max-width: 320px; min-height: 48px; }
  .cases-character-wrap { left: 50%; transform: translateX(calc(-50% - 170px)); justify-content: center; bottom: -150px; z-index: 10; }
  .cases-character { max-width: 450px; max-height: 270px; }
  .case-card { flex: 0 0 min(280px, 88vw); width: min(280px, 88vw); }
  .case-card-img { height: auto; }
  .case-card-cta-top { height: 140px; padding: var(--space-3); }
  .case-card-cta-headline { font-size: 1.875rem; }
  .cases-slider-wrap { gap: var(--space-2); }
  .cases-section-cta { margin-top: var(--space-4); }
  .why-grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .why-grid > * { grid-column: auto !important; }
  .why-card { padding: var(--space-4) var(--space-3); }
  .why-num { font-size: 2rem; }
  .why-bg { width: 100%; max-width: 360px; left: 50%; right: auto; transform: translate(-50%, calc(-50% + 30px)); }
  .why-bg .why-character { max-width: 100%; max-height: min(260px, 35vh); opacity: 0.85; }
  .why-ecosystem { margin-top: var(--space-4); }
  .why-ecosystem-inner { padding: var(--space-3) var(--space-4); min-height: 0; }
  .why-ecosystem-title { font-size: var(--text-base); }
  .why-ecosystem-sub { font-size: var(--text-xs); }
  .pricing-grid { grid-template-columns: 1fr; gap: var(--space-2); }
  .price-wrap {
    min-height: 0;
    justify-content: flex-start;
  }
  .price-value { font-size: 1.75rem; }
  .pricing-foot { padding: var(--space-3); flex-wrap: wrap; justify-content: center; }
  .pricing-character-wrap { width: 44px; height: 44px; }
  .faq-list { flex-direction: column; }
  .faq-item { max-width: 100%; flex-basis: 100%; }
  .final-section { padding: clamp(64px, 10vw, 96px) 0; }
  .final-main { gap: var(--space-6); min-height: 0; }
  .final-headline { font-size: clamp(1.75rem, 5vw, 2.125rem); }
  .final-value-cards { flex-direction: column; }
  .final-cta-btn { max-width: 100%; }
  .footer { padding: var(--space-6) 0 var(--space-4); }
  .footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-bottom: var(--space-4);
    text-align: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-social-list {
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-2); }
  .hero { padding: var(--space-6) 0 var(--space-4); }
  .hero-cta-robot-wrap { max-width: 160px; }
  .hero-cta-block { max-width: 240px; }
  .hero-bg-stat-wrap { max-width: 200px; min-width: 160px; }
  .hero-bg-pill { max-height: 160px; max-width: 180px; }
  .hero-glow-4 { max-height: 200px; }
  .hero-bg-elem { max-height: 28px; }
  .hero-number { font-size: clamp(2rem, 14vw, 2.75rem); }
  .hero-title-rest { font-size: clamp(1.5rem, 8vw, 2rem); }
  .hero-title-context { font-size: var(--text-lg); }
  .hero-label { font-size: 0.7rem; letter-spacing: 0.08em; }
  .section-label { font-size: 0.65rem; }
  .section-title { font-size: 1.5rem; }
  .section-cta { margin-top: var(--space-4); }
  .section-cta .btn { width: 100%; max-width: 320px; }
  .benefit-card h3 { font-size: var(--text-base); }
  .flow-step h3 { font-size: var(--text-base); }
  .price-name { font-size: var(--text-lg); }
  .price-value { font-size: 1.5rem; }
  .price-features li { font-size: var(--text-xs); padding: var(--space-1) 0; }
  .final-section { padding: var(--space-6) 0; }
  .final-main { gap: var(--space-4); }
  .final-headline { font-size: var(--text-xl); line-height: 1.2; }
  .final-sub { font-size: var(--text-sm); }
  .final-value-cards { gap: var(--space-2); }
  .final-value-card { padding: var(--space-3); }
  .final-cta-btn { width: 100%; padding: var(--space-2) var(--space-3); font-size: var(--text-sm); min-height: 52px; }
  .final-robot-img { max-height: 280px; }
  .final-visual { min-height: 320px; }
}

/* Extra small (360px and below) */
@media (max-width: 360px) {
  .container { padding: 0 var(--space-1); }
  .header-inner { height: 64px; padding: 0 var(--space-2); }
  body { padding-top: 64px; }
  .logo-img { height: 28px; }
  .hero { padding: var(--space-4) 0 var(--space-3); }
  .hero-cta-robot-wrap { max-width: 140px; }
  .hero-cta-block { max-width: 220px; }
  .hero-bg-stat-wrap { max-width: 180px; min-width: 140px; }
  .hero-bg-pill { max-height: 140px; max-width: 160px; }
  .hero-glow-4 { max-height: 180px; }
  .hero-bg-elem { max-height: 24px; }
  .hero-number { font-size: 1.875rem; }
  .hero-title-rest { font-size: 1.375rem; }
  .hero-title-context { font-size: var(--text-base); }
  .hero-subtitle { font-size: var(--text-sm); margin-bottom: var(--space-3); }
  .btn { padding: var(--space-2) var(--space-3); min-height: 44px; }
  .btn-hero { padding: var(--space-2) var(--space-3); }
  .section { padding: var(--space-4) 0; }
  .section-head { margin-bottom: var(--space-4); }
  .section-title { font-size: 1.25rem; }
  .card { padding: var(--space-3); }
  .benefit-num { font-size: 1.75rem; }
  .why-num { font-size: 1.75rem; }
  .benefit-num-wrap-div { font-size: 1.75rem; }
  .pain-list li { font-size: var(--text-sm); }
  .flow-num { width: 40px; height: 40px; font-size: var(--text-base); }
  .flow-step { padding: var(--space-4) var(--space-3); }
  .how-cta { margin-top: var(--space-5); }
  .how-cta-caption { font-size: var(--text-base); margin-bottom: var(--space-3); }
  .how-cta-btn { min-height: 48px; font-size: var(--text-sm); }
  .price-card { padding: var(--space-3) var(--space-2); }
  .price-name { font-size: var(--text-base); }
  .price-value { font-size: 1.25rem; }
  .price-wrap { margin-bottom: var(--space-2); }
  .pricing-foot { padding: var(--space-2); gap: var(--space-2); }
  .faq-question { padding: var(--space-2) var(--space-2); }
  .faq-question h3 { font-size: var(--text-sm); }
  .faq-answer-inner { padding: 0 var(--space-2) var(--space-2); font-size: var(--text-xs); }
  .footer-top { gap: var(--space-3); padding-bottom: var(--space-3); }
  .footer-bottom { font-size: var(--text-xs); }
}

/* 320px: минимальные отступы и размеры */
@media (max-width: 320px) {
  .container { padding: 0 12px; }
  .hero-number { font-size: 1.75rem; }
  .hero-title-rest { font-size: 1.25rem; }
  .hero-title-context { font-size: var(--text-sm); }
  .section-title { font-size: 1.125rem; }
  .benefit-card { padding: var(--space-2) var(--space-1); }
  .benefit-num { font-size: 1.5rem; }
  .benefit-num-wrap-div { font-size: 1.5rem; }
  .benefit-card h3 { font-size: var(--text-sm); }
  .flow-step h3 { font-size: var(--text-sm); }
  .flow-step p { font-size: var(--text-xs); }
  .price-name { font-size: var(--text-sm); }
  .price-value { font-size: 1.125rem; }
  .price-old, .price-discount { font-size: var(--text-xs); }
  .price-card .btn { min-height: 44px; font-size: var(--text-xs); }
}
