/* ===== ANTI-FOUC: скрываем Hero до старта GSAP ===== */
/* GSAP fromTo в app.js анимирует opacity от 0 к 1 (delay: 2с) */
/* CSS fallback: если JS/GSAP не загрузится, через 4с покажем через CSS */
.hero__title,
.hero__subtitle,
.hero__actions,
.hero__photo-wrap,
.hero__scroll-hint {
  opacity: 0;
}

/* CSS Fallback: плавно покажем элементы через 4 секунды на случай поломки JS */
@keyframes heroFallback {
  to {
    opacity: 1;
  }
}

.hero__title {
  animation: heroFallback 0.8s ease 4.2s forwards;
}

.hero__subtitle {
  animation: heroFallback 0.6s ease 4.4s forwards;
}

.hero__actions {
  animation: heroFallback 0.6s ease 4.6s forwards;
}

.hero__photo-wrap {
  animation: heroFallback 0.8s ease 4.8s forwards;
}

.hero__scroll-hint {
  animation: heroFallback 0.6s ease 5.0s forwards;
}

/* ===== Slow Internet Warning ===== */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a2e;
  --text: #f0f0f5;
  --text2: #a0a0b8;
  --text3: #6a6a80;
  --neon-pink: #ff2d7b;
  --neon-blue: #00d4ff;
  --neon-purple: #a855f7;
  --neon-green: #00ff88;
  --neon-yellow: #ffe14d;
  --neon-cyan: #22d3ee;
  --neon-red: #ff4444;
  --neon-orange: #ff8c00;
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 0px;
  --radius-sm: 0px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

/* ===== SCROLLBARS ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--neon-purple), var(--neon-cyan));
  border-radius: 10px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d82bd8, #00ffff);
}

/* Preloader eliminated */

/* ===== FLOATING CHAT ===== */
.floating-chat {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 0 20px rgba(255, 45, 123, .4)
}

.floating-chat:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255, 45, 123, .6)
}

.floating-chat__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--neon-pink);
  animation: chatPulse 2s ease infinite;
  opacity: 0
}

@keyframes chatPulse {
  0% {
    transform: scale(.8);
    opacity: .8
  }

  100% {
    transform: scale(1.4);
    opacity: 0
  }
}

/* ===== SECTION COMMON ===== */
section {
  padding: 120px 0;
  position: relative;
  background-color: var(--bg);
}

/* Special sections */
#section {
  min-height: 100vh;
  position: relative;
  padding: 100px 0;
  will-change: transform;
}

/* ===== ЭФФЕКТ ШТОРКИ: CSS sticky ===== */
/* Каждая секция прилипает к верху, а следующая выезжает поверх — эффект шторки */
.stacked-section {
  position: sticky;
  top: 0;
  background-color: var(--bg);
  /* Тень сверху — чтобы секции визуально разделялись */
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.55);
}

/* Секции со своими GSAP пинами — не должны быть sticky (иначе конфликт) */
#pains,
#solutions {
  position: relative;
}

#solutions {
  height: 100vh;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: center;
}

#story {
  z-index: 2;
}

#pains {
  z-index: 3;
  padding-bottom: 200px;
}

#solutionsIntro {
  z-index: 4;
}

#solutions {
  z-index: 5;
}

#cases {
  z-index: 6;
}

#niches {
  position: relative;
  z-index: 7;
  /* Запас снизу: пользователь видит ВСЕ пункты до того, как #pricing наедет сверху */
  padding-bottom: 40vh;
}

#pricing {
  z-index: 8;
}

#reviews {
  z-index: 9;
}

#contacts {
  z-index: 10;
  padding-top: 120px;
}

/* Fix badge visibility by giving hero content a higher z-index within its stacking context */
.hero__content {
  position: relative;
  z-index: 2;
}

#hero {
  z-index: 1;
}

/* ===== TG CHAT: исходящие сообщения и анимация печатания ===== */
.tg-msg--out {
  background: linear-gradient(135deg, #2f6dbd, #1e4fa3);
  color: #fff;
  align-self: flex-end;
  border-radius: 18px 4px 18px 18px;
  margin-left: auto;
}

.tg-msg--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  min-width: 52px;
}

.tg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text3);
  animation: tgDotBounce 1.2s ease-in-out infinite;
}

.tg-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.tg-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes tgDotBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }

  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}


.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-blue);
  margin-bottom: 16px;
  padding: 6px 16px;
  border: 1px solid rgba(0, 212, 255, .3);
  border-radius: 20px;
  background: rgba(0, 212, 255, .05)
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 60px;
  color: var(--text)
}

.accent-red {
  background: linear-gradient(135deg, var(--neon-red), var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.accent-blue {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.accent-purple {
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.accent-green {
  background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.accent-pink {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.accent-cyan {
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.accent-yellow {
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  transition: all .3s var(--ease);
  cursor: pointer;
  border: none;
  white-space: nowrap
}

.btn--primary {
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 45, 123, .3)
}

.btn--primary:hover {
  box-shadow: 0 0 40px rgba(255, 45, 123, .5);
  transform: translateY(-2px)
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, .2)
}

.btn--ghost:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, .2)
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--bg);
  /* Need explicit background for stacking */
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(168, 85, 247, .15) 0%, transparent 60%), radial-gradient(ellipse at 70% 30%, rgba(255, 45, 123, .1) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(0, 212, 255, .1) 0%, transparent 50%);
  z-index: 1
}

.hero__content {
  position: relative;
  z-index: 10;
  /* Fix badge visibility */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero__badge {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.hero__badge:nth-child(2)::before {
  background: var(--neon-pink);
  box-shadow: 0 0 10px var(--neon-pink);
}

.hero__badge:nth-child(3)::before {
  background: var(--neon-yellow);
  box-shadow: 0 0 10px var(--neon-yellow);
}

.hero__badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(30, 30, 35, 0.8);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 255, 255, 0.05);
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  line-height: .9;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, var(--neon-pink) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 45, 123, .3));
  position: relative;
  display: inline-block
}

.hero__arrow-note {
  position: absolute;
  top: 20%;
  right: -240px;
  z-index: 20;
  display: flex;
  align-items: center;
  color: var(--neon-purple);
  transform: rotate(5deg);
  pointer-events: none;
  animation: float-casual 4s infinite ease-in-out;
  opacity: 0.9;
  text-shadow: none;
  -webkit-text-fill-color: initial
}

.casual-arrow {
  width: 120px;
  height: 40px;
  margin-left: 10px;
  opacity: 0.9;
  color: var(--neon-purple)
}

.casual-text {
  font-family: 'Caveat', cursive;
  font-size: 2.8rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 1px
}

@keyframes float-casual {

  0%,
  100% {
    transform: translateY(0) rotate(10deg)
  }

  50% {
    transform: translateY(-8px) rotate(8deg)
  }
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text2);
  margin-bottom: 32px;
  line-height: 1.5
}

.hero__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

/* ===== КНОПКА НАЧАТЬ ===== */
.btn-start {
  position: relative;
  padding: 20px 56px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  border: none;
  border-radius: 60px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  box-shadow: 0 0 30px rgba(255, 45, 123, 0.4), 0 0 60px rgba(168, 85, 247, 0.2);
}

.btn-start:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 50px rgba(255, 45, 123, 0.6), 0 0 90px rgba(168, 85, 247, 0.3);
}

.btn-start__glow {
  position: absolute;
  inset: -2px;
  border-radius: 62px;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink), var(--neon-purple));
  z-index: -1;
  filter: blur(12px);
  opacity: 0.5;
  animation: btnGlowPulse 2s ease-in-out infinite;
}

.btn-start__pulse {
  position: absolute;
  inset: 0;
  border-radius: 60px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  animation: btnRipple 2s ease-out infinite;
}

@keyframes btnGlowPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.06);
  }
}

@keyframes btnRipple {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Disabled state */
.btn-start:disabled,
.btn-start.btn-start--used {
  background: rgba(120, 120, 120, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.btn-start:disabled .btn-start__glow,
.btn-start.btn-start--used .btn-start__glow,
.btn-start:disabled .btn-start__pulse,
.btn-start.btn-start--used .btn-start__pulse {
  display: none;
}

/* ===== 10D ТУМБЛЕР ===== */
.mode-10d {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mode-10d__toggle {
  position: relative;
  width: 58px;
  height: 30px;
  cursor: pointer;
  outline: none;
}

@media (max-width: 768px) {
  .mode-10d__toggle {
    pointer-events: none;
  }
}

.mode-10d__track {
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.12);
  border: 1.5px solid rgba(0, 212, 255, 0.35);
  border-radius: 18px;
  transition: all .4s;
  overflow: hidden;
}

.mode-10d__scan {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.25), transparent);
  animation: scanLine 2.4s ease-in-out infinite;
}

@keyframes scanLine {
  0% {
    left: -100%;
  }

  100% {
    left: 200%;
  }
}

.mode-10d__knob {
  position: absolute;
  top: 3px;
  left: 30px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.6), inset 0 0 4px rgba(255, 255, 255, 0.3);
  transition: left .4s cubic-bezier(0.68, -0.55, 0.27, 1.55), background .4s;
}

/* OFF state */
.mode-10d__toggle[aria-checked='false'] .mode-10d__track {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.mode-10d__toggle[aria-checked='false'] .mode-10d__knob {
  left: 3px;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.mode-10d__toggle[aria-checked='false'] .mode-10d__scan {
  display: none;
}

.mode-10d__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mode-10d__label {
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 1px;
}

.mode-10d__max {
  display: inline-block;
  margin-left: 5px;
  padding: 1px 7px;
  font-size: .65rem;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
  border-radius: 4px;
  color: #fff;
  vertical-align: middle;
  letter-spacing: 0;
  transition: all 0.4s;
}

.mode-10d__toggle[aria-checked='false']~.mode-10d__info .mode-10d__max {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.mode-10d__sub {
  font-size: .7rem;
  color: var(--text3);
  letter-spacing: 0.5px;
}

/* ===== HERO FLASH OVERLAY ===== */
.hero-flash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse at center,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 200, 240, 0.8) 30%,
      rgba(0, 212, 255, 0.4) 60%,
      transparent 100%);
}

/* ===== GLITCH DECODER ===== */
.glitch-char {
  display: inline;
  transition: color .15s;
}

.glitch-char--noise {
  color: var(--neon-cyan);
  text-shadow: 0 0 5px var(--neon-cyan);
}

.glitch-char--resolved {
  color: inherit;
  text-shadow: none;
}

.hero__right {
  display: flex;
  justify-content: flex-end;
  position: relative;
}

/* ===== LOCKED CONTENT (для эффекта "Обложки книги") ===== */
.locked-content {
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
}

.unlocked-content {
  height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease-in;
}


.hero__photo-wrap {
  position: relative;
  width: clamp(280px, 30vw, 420px);
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: visible
}

.hero__photo-glow {
  position: absolute;
  inset: -30px;
  border-radius: var(--radius);
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 45, 123, 0.8) 0%, rgba(168, 85, 247, 0.8) 20%, rgba(0, 212, 255, 0.4) 60%, transparent 80%);
  filter: blur(30px);
  transition: opacity 0.4s ease, filter 0.4s ease;
  pointer-events: none;
  opacity: 0.8;
}

.hero__photo-wrap:hover .hero__photo-glow {
  opacity: 1.1;
  filter: blur(45px);
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2
}

.hero__photo-frame {
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius) + 4px);
  border: 2px solid rgba(255, 255, 255, .15);
  z-index: 3;
  pointer-events: none
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text3);
  font-size: .85rem;
  animation: scrollBounce 2s ease infinite
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(8px)
  }
}

/* ===== PAINS ===== */
.pains-deck {
  position: relative;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  margin-top: 40px
}

.pain-fan-card {
  position: absolute;
  width: clamp(280px, 80vw, 340px);
  height: 460px;
  transform-origin: bottom center
}

.pain-fan-card__inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(20, 20, 30, 0.9), rgba(10, 10, 15, 1));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 68, 68, .05);
  transition: border-color 0.4s
}

.pain-fan-card__icon {
  color: var(--neon-red);
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px rgba(255, 68, 68, .4))
}

.pain-fan-card__icon svg {
  display: block;
  width: 3rem;
  height: 3rem
}

.pain-fan-card__title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  line-height: 1.2
}

.pain-fan-card__text {
  font-size: 1.05rem;
  color: var(--text2);
  line-height: 1.6
}

/* ===== SOLUTIONS ===== */
.solutions-horizontal {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative
}

.solutions-horizontal__header {
  padding: 40px 24px;
  flex-shrink: 0
}

.solutions-horizontal__wrap {
  flex: 1;
  display: flex;
  align-items: center
}

.solutions-horizontal__track {
  display: flex;
  width: max-content;
  padding: 0 50vw;
  /* Будет пересчитано в JS для точного центрирования */
  gap: 60px;
  align-items: center;
  height: 100%
}

.solution-album-card {
  width: clamp(320px, 60vw, 450px);
  height: 400px;
  background: rgba(10, 10, 15, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.solution-album-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 40%);
  border-radius: 30px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.solution-album-card:hover {
  transform: translateY(-8px);
  box-shadow: inset 0 0 0 1px rgba(0, 212, 255, 0.2), 0 20px 40px rgba(0, 0, 0, 0.8);
}

.solution-album-card:hover::before {
  opacity: 1;
}

.solution-album__wave {
  position: absolute;
  top: 150%;
  left: -100%;
  width: 300%;
  height: 250%;
  background: radial-gradient(circle at 10% 40%, rgba(0, 212, 255, 0.7), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(168, 85, 247, 0.6), transparent 50%),
    radial-gradient(circle at 50% 20%, rgba(255, 45, 123, 0.5), transparent 60%);
  border-radius: 40% 45% 42% 47%;
  mix-blend-mode: screen;
  transition: top 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1s ease-in-out;
  pointer-events: none;
  z-index: 1;
  filter: blur(25px);
  animation: liquid-wave 8s infinite linear, liquid-wobble 4s infinite ease-in-out alternate;
  transform: translateY(20px) scale(0.9);
}

.solution-album-card:hover .solution-album__wave {
  top: -40%;
  transform: translateY(0) scale(1);
}

@keyframes liquid-wave {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.05);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes liquid-wobble {
  0% {
    border-radius: 35% 45% 40% 45%;
  }

  100% {
    border-radius: 45% 35% 45% 40%;
  }
}

.solution-album-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: 30px;
}

.solution-album__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.solution-album__status {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 12px;
  font-weight: 700;
  font-family: var(--font-head);
}

.solution-album__status--good {
  color: var(--neon-cyan);
}

.solution-album__bad p {
  color: var(--text3);
  font-size: 1.1rem;
  line-height: 1.5;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.solution-album__good p {
  color: #fff;
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 500;
}

.solution-album__divider {
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0.5;
}

.solution-album__divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

.solution-album__divider-line:first-child {
  background: linear-gradient(270deg, rgba(255, 255, 255, 0.1), transparent);
}

.solution-album__divider-icon {
  color: var(--neon-purple);
}

/* ===== CASES ===== */
.cases {
  background: var(--bg);
  overflow: hidden
}

.cases__carousel {
  position: relative;
  padding: 0 24px
}

.cases__track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-top: 40px;
  margin-top: -40px;
  padding-bottom: 40px;
}

.cases__track::-webkit-scrollbar {
  display: none
}

.case-card {
  flex: 0 0 420px;
  scroll-snap-align: start;
  background: rgba(20, 20, 25, 0.8);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 32px;
  overflow: hidden;
  transition: all .5s cubic-bezier(.22, 1, .36, 1);
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(168, 85, 247, .1), transparent);
  pointer-events: none;
}

.case-card:hover {
  transform: translateY(-10px);
  border-color: rgba(168, 85, 247, .4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 1), 0 0 40px rgba(168, 85, 247, .15), inset 0 1px 0 rgba(168, 85, 247, .3)
}

.case-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  flex-shrink: 0
}

.case-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease, object-position 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: 0.85
}

.case-card:hover .case-card__image img {
  transform: scale(1.05);
  opacity: 1
}

.case-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg3), rgba(168, 85, 247, .2))
}

.case-card__coming-badge {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(168, 85, 247, .2);
  color: var(--neon-purple);
  font-size: .85rem;
  font-weight: 600;
  border: 1px solid rgba(168, 85, 247, .3)
}

.case-card__hud {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-card__metric {
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .1);
  text-transform: uppercase;
  letter-spacing: 1px
}

.case-card__content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1
}

.case-card__tag {
  display: inline-block;
  font-size: .75rem;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700
}

.case-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  line-height: 1.2
}

.case-card__task,
.case-card__done {
  font-size: .95rem;
  color: var(--text2);
  margin-bottom: 20px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03)
}

.case-card__task b,
.case-card__done b {
  display: block;
  color: #fff;
  margin-bottom: 6px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px
}

.case-card__results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .06)
}

.case-card__result-item {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.case-card__result-number {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--neon-green);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 255, 136, 0.3)
}

.case-card__result-label {
  font-size: .8rem;
  color: var(--text3);
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px
}

/* Apple-style Cases Nav */
.cases__nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: max-content;
  margin: 40px auto 0;
  padding: 12px 24px;
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 40px;
}

.cases__nav-dots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cases__dot {
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cases__dot.is-active {
  width: 48px;
  background: rgba(255, 255, 255, 0.1);
}

.cases__dot-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  border-radius: 6px;
  pointer-events: none;
}

.cases__track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important;
  scroll-snap-type: none !important;
  user-select: none;
  -webkit-user-select: none;
}

.cases__track.is-dragging .case-card {
  pointer-events: none;
}

.casual-underline-wrap {
  display: inline-block;
  position: relative;
  cursor: default;
}

.casual-underline-wrap::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s;
}

.casual-underline-wrap:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.cases__nav-play {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.3s;
  display: flex;
  align-items: center;
  margin-left: 8px;
  padding: 0;
}

.cases__nav-play:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* ===== NICHES (1B1 Restored + Secret HUD) ===== */
.niches {
  cursor: none;
}

.niches-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  /* GSAP handles x, y translation */
  pointer-events: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
  mix-blend-mode: normal;
}

.cursor-inner-pulse {
  position: absolute;
  inset: 0;
  background: var(--neon-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* Centering relative to origin */
  transition: all 0.3s;
}

.niches-cursor.is-visible {
  opacity: 1;
}

.niches-cursor.is-pulsating .cursor-inner-pulse {
  animation: cursor-inner-pulse 0.8s ease-in-out infinite alternate;
  box-shadow: 0 0 15px var(--neon-green);
}

@keyframes cursor-inner-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 5px var(--neon-green);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.8);
    box-shadow: 0 0 25px var(--neon-green);
  }
}

.niches-cursor.is-pulsating::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 60px;
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: cursor-ring-pulse 1s infinite;
}

@keyframes cursor-ring-pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
    border-width: 4px;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0;
    border-width: 1px;
  }
}

.niches-cursor.is-holding {
  transform: translate(-50%, -50%) scale(0.6);
  background: var(--neon-purple);
  box-shadow: 0 0 20px var(--neon-purple);
}

.niche-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s;
  position: relative;
  user-select: none;
  cursor: none;
  overflow: visible;
}

.niche-row:last-child {
  border-bottom: none;
}

.niche-row__icon-wrap {
  width: 80px;
  height: 80px;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0.5;
  filter: grayscale(1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.niche-row__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
  transition: all 0.4s;
}

.niche-row__text-wrap {
  grid-column: 1 / -1;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s;
  transform: translateY(-10px);
}

.niche-row__text {
  font-size: 1.2rem;
  color: var(--neon-green);
  line-height: 1.6;
  margin-bottom: 16px;
}

.niche-row:hover .niche-row__icon-wrap {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.1);
}

.niche-row:hover .niche-row__title {
  -webkit-text-stroke: 0px;
  color: #fff;
  text-shadow: 0 0 40px rgba(0, 255, 136, 0.4);
}

.niche-row:hover .niche-row__text-wrap {
  max-height: 150px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
}

/* The Secret HUD Menu */
.niche-secret-hud {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translateY(-50%) perspective(1500px) rotateY(-15deg) scale(0.9) translateZ(-50px);
  width: 450px;
  background: rgba(15, 15, 20, 0.6);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 32px;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0, 255, 136, 0.1);
  z-index: 50;
  transform-origin: center right;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.niche-row.is-secret-open .niche-secret-hud {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) perspective(1500px) rotateY(0deg) scale(1) translateZ(0);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(0, 255, 136, 0.2), 0 0 80px rgba(0, 255, 136, 0.3);
  transition-delay: 0s;
  pointer-events: auto;
}

.niche-secret__badge {
  position: absolute;
  top: -15px;
  left: 32px;
  background: var(--bg);
  border: 1px solid rgba(0, 255, 136, 0.8);
  color: var(--neon-green);
  padding: 6px 16px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.niche-secret__image {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(0, 212, 255, 0.2));
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.niche-secret__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: luminosity;
  opacity: 0.8;
  transition: all 0.5s;
}

.niche-row.is-secret-open .niche-secret__img {
  mix-blend-mode: normal;
  opacity: 1;
  transform: scale(1.05);
}

.niche-secret__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.05) 10px, rgba(255, 255, 255, 0.05) 20px);
  pointer-events: none;
}

.niche-secret__text {
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.6;
  font-family: var(--font-body);
}

/* ===== PRICING ===== */
.pricing {
  background: var(--bg)
}

/* ===== PRICING ===== */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 40px
}

.pricing-card {
  background: rgba(20, 20, 25, .6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  transition: all .5s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5)
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 140, 0, .15), transparent 70%);
  pointer-events: none;
  border-radius: 32px
}

.pricing-card {
  background: rgba(20, 20, 25, .6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 32px;
  padding: 48px;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease, filter 0.5s ease, opacity 0.5s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 140, 0, .15), transparent 70%);
  pointer-events: none;
  border-radius: 32px;
}

/* Элитный игровой Hover: Мировой Топ */
#pricingGrid:not(.has-active):hover .pricing-card:not(:hover) {
  opacity: 0.15;
  transform: scale(0.9);
  filter: blur(8px) grayscale(50%);
}

.pricing-card:hover {
  transform: scale(1.08) translateY(-15px) !important;
  border-color: rgba(255, 140, 0, .6);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 20px 50px rgba(255, 140, 0, .4), inset 0 0 40px rgba(255, 140, 0, .2);
  z-index: 10;
}

.pricing-card--featured {
  border-color: rgba(255, 45, 123, .3);
  background: rgba(255, 45, 123, .03);
  z-index: 2;
}

.pricing-card--featured::before {
  background: radial-gradient(circle at top right, rgba(255, 45, 123, .2), transparent 70%);
}

.pricing-card--featured:hover {
  border-color: rgba(255, 45, 123, .6);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 20px 50px rgba(255, 45, 123, .3), inset 0 0 30px rgba(255, 45, 123, .1);
}

.pricing-card__badge {
  position: absolute;
  top: -16px;
  right: 32px;
  padding: 8px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  color: #fff;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 5px 15px rgba(255, 45, 123, .4)
}

.pricing-card__title {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff
}

.pricing-card__price {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text
}

.pricing-card__desc {
  color: var(--text2);
  font-size: 1.05rem;
  line-height: 1.6;
  flex-grow: 1;
  /* allow pushing offer content down */
}

/* Эффект при нажатии на карточку (подвигает соседей и зажигает стрелку) */
.pricing-card.is-active {
  transform: translate(var(--center-dx, 0px), var(--center-dy, 0px)) scale(1.1) !important;
  border-color: rgba(0, 212, 255, 0.8);
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.9), 0 30px 80px rgba(0, 212, 255, 0.5), inset 0 0 50px rgba(0, 212, 255, 0.3);
  z-index: 20;
}

#pricingGrid.has-active .pricing-card:not(.is-active) {
  transform: scale(0.8) translateY(20px);
  opacity: 0.1;
  filter: blur(12px) grayscale(100%);
}

.pricing-card__arrow {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  color: var(--neon-cyan);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.pricing-card.is-active .pricing-card__arrow {
  opacity: 1;
  max-height: 60px;
  animation: arrow-bounce 1s infinite alternate ease-in-out;
}

@keyframes arrow-bounce {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(10px);
  }
}

.pricing__note {
  text-align: center;
  color: var(--text3);
  font-size: .95rem;
  margin-bottom: 24px
}

.pricing__cta {
  text-align: center;
  margin-bottom: 16px
}

.pricing__remark {
  text-align: center;
  color: var(--text3);
  font-size: .85rem;
  font-style: italic
}

/* ===== CONTACTS & 3D ===== */
.contacts__schedule {
  text-align: center;
  color: var(--text2);
  font-size: 1.1rem;
  margin-bottom: 0;
  line-height: 1.7
}

.contacts__massive {
  text-align: center;
  padding: 60px 0
}

.contact-huge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  margin-bottom: 40px;
  position: relative;
  transition: all .4s
}

.contact-huge::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s
}

.contact-huge:hover {
  text-shadow: 0 0 40px rgba(0, 212, 255, .6);
  transform: scale(1.02)
}

.contact-huge:hover::after {
  transform: scaleX(1);
  transform-origin: left
}

/* Tooltip HUD */
.contact-huge__tooltip {
  position: absolute;
  top: -20px;
  right: -40px;
  background: var(--neon-cyan);
  color: #000;
  font-size: 1.1rem;
  font-family: var(--font-mono);
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) rotate(5deg);
  transition: all .3s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 20px rgba(0, 212, 255, .4);
  letter-spacing: normal;
  text-shadow: none;
  z-index: 10
}

.contact-huge:hover .contact-huge__tooltip {
  opacity: 1;
  transform: translateY(0) rotate(5deg)
}

.contact-subs {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap
}

.contact-pill {
  padding: 14px 28px;
  border-radius: 40px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  transition: all .3s;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px
}

.contact-pill:hover {
  background: rgba(0, 212, 255, .1);
  border-color: rgba(0, 212, 255, .4);
  color: var(--neon-cyan);
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 212, 255, .2)
}

/* Telegram Mockup HUD & Stage */
.contacts__chat-stage {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 550px;
  margin: 60px auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px
}

.chat-stage__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.15), transparent 60%);
  z-index: 1
}

.chat-stage__game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* Initially none, active on game start */
  z-index: 95;
}

.chat-stage__paperplane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
  will-change: transform, opacity;
}

.chat-stage__paperplane dotlottie-player {
  width: 250px;
  height: 250px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.chat-stage__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none
}

.chat-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.1), inset 0 0 30px rgba(0, 212, 255, 0.1)
}

.chat-ring-1 {
  width: 400px;
  height: 400px;
  animation: pulse-ring 4s infinite cubic-bezier(.215, .61, .355, 1)
}

.chat-ring-2 {
  width: 550px;
  height: 550px;
  animation: pulse-ring 4s infinite cubic-bezier(.215, .61, .355, 1) 1s
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(.8);
    opacity: 0
  }

  50% {
    opacity: 1
  }

  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0
  }
}

.tg-mockup {
  position: relative;
  z-index: 10;
  width: 340px;
  background: rgba(20, 20, 30, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 40px rgba(0, 212, 255, 0.2);
  text-align: left
}

.tg-mockup__header {
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.tg-mockup__avatar {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink))
}

.tg-mockup__info {
  display: flex;
  flex-direction: column
}

.tg-mockup__name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px
}

.tg-mockup__status {
  font-size: 0.85rem;
  color: var(--text3)
}

.tg-mockup__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 300px;
}

.tg-date {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text3);
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 12px;
  align-self: center;
  margin-bottom: 10px
}

.tg-msg-row {
  display: flex;
  flex-direction: column
}

.tg-msg {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  color: #fff;
  font-size: .95rem;
  line-height: 1.5;
  margin-bottom: 0;
  position: relative
}

.tg-time {
  float: right;
  font-size: .7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 8px;
  margin-top: 6px
}

.tg-mockup__footer {
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  gap: 12px;
  align-items: center
}

.tg-input-wrapper {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px
}

.tg-icon {
  stroke: rgba(255, 255, 255, 0.5);
  transition: stroke .3s;
  cursor: pointer;
  flex-shrink: 0
}

.tg-icon:hover {
  stroke: #fff
}

.tg-input {
  flex: 1;
  color: #fff;
  font-size: 1rem;
  font-family: sans-serif;
  max-height: 100px;
  overflow-y: auto;
  outline: none;
  line-height: 1.4;
  word-break: break-word;
  cursor: text;
  transition: all 0.2s
}

.tg-input:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none
}

.tg-input::-webkit-scrollbar {
  width: 4px
}

.tg-input::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px
}

.tg-input::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px
}

.tg-input::-webkit-scrollbar-thumb:hover {
  background: var(--neon-cyan)
}

.tg-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-cyan), #0077ff);
  background-size: 200% 200%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
  flex-shrink: 0
}

.tg-send-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background-position: 100% 100%;
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.6)
}

.tg-send-btn:active {
  transform: translateY(0) scale(0.95)
}

.tg-send-btn svg {
  transition: transform .3s
}

.tg-send-btn:hover svg {
  transform: translateX(2px) translateY(-2px)
}

.chat-stage__hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--neon-cyan);
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: .7;
  z-index: 5;
  animation: float 3s ease-in-out infinite
}

/* Contacts explicit background for stacking */
.contacts {
  background-color: var(--bg);
}

/* Alternative Footer Contacts */
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px
}

.footer__alt {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center
}

.footer__alt-text {
  color: var(--text3);
  font-size: .95rem
}

.footer__alt-icons {
  display: flex;
  gap: 12px
}

.alt-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  text-decoration: none;
  transition: all .3s
}

.alt-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: translateY(-3px)
}

.alt-btn--max {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  letter-spacing: 1px
}

/* ===== REVIEWS ===== */
.reviews__marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 40px 0
}

.reviews__marquee::before,
.reviews__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10vw;
  height: 100%;
  z-index: 2;
  pointer-events: none
}

.reviews__marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent)
}

.reviews__marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent)
}

.reviews-marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite
}

.reviews-marquee__track:hover {
  animation-play-state: paused
}

@keyframes marquee {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-33.3333%)
  }
}

.review-item {
  width: clamp(320px, 40vw, 500px);
  padding: 40px;
  margin-right: 40px;
  flex-shrink: 0;
  background: none;
  border-left: 2px solid rgba(255, 255, 255, .05);
  position: relative;
  transition: all .4s
}

.review-item:hover {
  border-color: var(--neon-yellow)
}

.review-item::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 6rem;
  font-family: var(--font-head);
  color: rgba(255, 225, 77, .05);
  line-height: 1;
  transition: all .4s
}

.review-item:hover::before {
  color: rgba(255, 225, 77, .2);
  transform: translateY(-10px)
}

.review-item__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2
}

.review-item__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon-yellow), var(--neon-orange));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 225, 77, .3)
}

.review-item__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff
}

.review-item__role {
  font-size: .95rem;
  color: var(--text3)
}

.review-item__text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text2);
  margin-bottom: 24px;
  font-style: italic;
  position: relative;
  z-index: 2
}

.review-item__result {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 30px;
  background: rgba(0, 255, 136, .1);
  border: 1px solid rgba(0, 255, 136, .2);
  color: var(--neon-green);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  background: var(--bg2);
  border-top: 1px solid rgba(255, 255, 255, .06)
}

.footer__inner {
  text-align: center
}

.footer__name {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px
}

.footer__inner>div>p {
  color: var(--text3);
  font-size: .95rem;
  margin-bottom: 24px
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap
}

.footer__link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all .3s;
  color: var(--text2)
}

.footer__link:hover {
  border-color: var(--neon-pink);
  color: var(--neon-pink);
  box-shadow: 0 0 15px rgba(255, 45, 123, .3)
}

.footer__copy {
  color: var(--text3);
  font-size: .8rem
}

/* ===== ANIMATIONS (GSAP helpers) ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px)
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px)
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px)
}

.reveal-scale {
  opacity: 0;
  transform: scale(.9)
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center
  }

  .hero__left {
    order: 2
  }

  .hero__right {
    order: 1
  }

  .hero__actions {
    justify-content: center
  }

  .hero__badges {
    justify-content: center
  }

  .hero__photo-wrap {
    width: 260px
  }
}

@media(max-width:768px) {
  section {
    padding: 60px 0
  }

  .section-title {
    margin-bottom: 40px;
    font-size: 3rem
  }

  .hero {
    padding: 60px 0
  }

  .hero__title {
    font-size: 3.5rem
  }

  .pains-deck {
    height: auto;
    flex-direction: column;
    gap: 20px;
    perspective: none;
    margin-top: 20px
  }

  .pain-fan-card {
    position: relative;
    width: 100%;
    height: auto;
    transform: none !important;
    margin-bottom: 0
  }

  .solutions-intro {
    height: auto !important;
    padding: 80px 0;
    min-height: 100vh;
  }

  .epic-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem) !important;
  }

  .cipher-char {
    word-break: break-all;
  }

  #solutions {
    height: auto;
    overflow: visible;
    display: block;
  }

  .solutions-horizontal {
    height: auto;
    padding-bottom: 40px;
    overflow: visible;
    display: block;
    width: 100%;
  }

  .solutions-horizontal__wrap {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    display: block;
    width: 100%;
  }

  .solutions-horizontal__wrap::-webkit-scrollbar {
    display: none;
  }

  .solutions-horizontal__track {
    flex-direction: row;
    padding: 40px 24px;
    width: max-content;
    height: auto;
    gap: 20px;
  }

  .solution-album-card {
    width: 85vw;
    height: auto;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .niche-row {
    grid-template-columns: auto 1fr;
    gap: 16px;
    padding: 24px 0;
    cursor: pointer;
  }

  .niche-row__icon-wrap {
    width: 60px;
    height: 60px;
    opacity: 1;
    filter: saturate(1);
  }

  .niche-row__title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    transition: all 0.4s;
  }

  .niche-row__text-wrap {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    margin-top: 0;
    transition: all 0.4s;
    grid-column: 1 / -1;
  }

  .niche-row.is-secret-open .niche-row__title {
    -webkit-text-stroke: 0px;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
  }

  .niche-row.is-secret-open .niche-row__text-wrap {
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 8px;
  }

  .niche-secret-hud {
    position: relative;
    width: 100%;
    right: auto;
    top: auto;
    transform: none !important;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease, padding-top 0.5s ease, padding-bottom 0.5s ease;
    opacity: 1;
    visibility: visible;
    padding-left: 0;
    padding-right: 0;
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    grid-column: 1 / -1;
  }

  .niche-row.is-secret-open .niche-secret-hud {
    max-height: 1000px;
    margin-top: 20px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    overflow: visible;
  }

  .niche-secret__text {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .niche-secret__badge {
    font-size: 0.65rem;
    padding: 4px 12px;
    top: -12px;
    left: 20px;
    z-index: 2;
  }

  .cases__track {
    gap: 16px;
    padding: 10px 0 30px
  }

  .case-card {
    flex: 0 0 320px;
    border-radius: 24px
  }

  .case-card__image {
    height: 200px;
    border-radius: 24px 24px 0 0
  }

  .pricing__grid {
    grid-template-columns: 1fr
  }

  .pricing-card {
    padding: 32px;
    border-radius: 24px
  }

  .contact-huge {
    font-size: 3.5rem
  }

  .review-item {
    width: 320px;
    padding: 24px
  }

  .review-item::before {
    font-size: 4rem
  }

  .floating-chat {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px
  }
}

/* ===== ОТЗЫВЫ: Telegram Circles ===== */
.reviews-marquee {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  display: flex;
  margin-top: 40px;
}

.reviews-marquee::before,
.reviews-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.reviews-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
}

.reviews-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
}

.reviews-marquee__track {
  display: flex;
  gap: 40px;
  animation: marquee 50s linear infinite;
  padding-left: 40px;
  align-items: center;
  will-change: transform;
}

.review-item {
  background: rgba(25, 25, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 30px 40px;
  min-width: 450px;
  max-width: 450px;
  display: flex;
  align-items: center;
  gap: 25px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-item:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 85, 247, 0.3);
}

.review-item__video-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), inset 0 0 20px rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.review-item__video-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, var(--neon-cyan), transparent 30%);
  animation: rotate-glow 4s linear infinite;
  z-index: 0;
}

/* Removed ::after circle that blocked the video */

@keyframes rotate-glow {
  100% {
    transform: rotate(360deg);
  }
}

.review-item__content {
  flex-grow: 1;
}

.review-item__name {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 2px;
}

.review-item__role {
  font-size: 13px;
  color: var(--neon-cyan);
  margin-bottom: 12px;
  opacity: 0.9;
}

.review-item__text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
}

.review-item__text p {
  margin: 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.review-item__text p::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--neon-cyan);
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.review-item__result {
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 45, 123, 0.1);
  border-radius: 20px;
}

@media(max-width:480px) {
  .hero__title {
    font-size: 2.5rem
  }

  .section-title {
    font-size: 2.2rem
  }

  .contact-huge {
    font-size: 2.5rem
  }

  .btn {
    padding: 12px 24px;
    font-size: .9rem
  }
}

/* Background Styles */
.bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}

.bg-noise {
  position: relative;
}

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

.bg-noise>* {
  position: relative;
  z-index: 1;
}

/* ===== REDUCED MOTION ===== */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* ===== ЛИЧНАЯ ИСТОРИЯ (STORY) ===== */
.story {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.story__inner {
  max-width: 900px;
}

.story__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 36px;
  color: var(--text);
}

.story__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.story__body p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  color: var(--text2);
  max-width: 680px;
}

.story__body strong {
  color: var(--text);
  font-weight: 700;
}

.story__metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story__metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  transition: border-color .3s;
}

.story__metric:hover {
  border-color: rgba(255, 45, 123, .3);
}

.story__metric-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.story__metric-label {
  font-size: .9rem;
  color: var(--text3);
  line-height: 1.4;
}

/* ===== MOBILE FOUNDATION ===== */
@media (max-width: 768px) {

  /* Все секции — нормальный поток (sticky создаёт проблемы на мобиле) */
  .stacked-section {
    position: relative !important;
    top: auto !important;
  }

  /* Базовая читаемость */
  section {
    padding: 80px 0;
  }

  #contacts {
    padding-top: 80px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__right {
    display: none;
  }

  .hero__arrow-note {
    display: none;
  }

  .story__metric-row {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr !important;
  }

  .cases__track {
    grid-auto-columns: 85vw !important;
  }

  /* Игра отключена на мобиле (через JS), скрываем canvas */
  #planeGameCanvas {
    display: none;
  }
}

.review-item__result {
  font-size: 13px;
  font-weight: 600;
  color: var(--neon-pink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 45, 123, 0.1);
  border-radius: 20px;
}

@media(max-width:480px) {
  .hero__title {
    font-size: 2.5rem
  }

  .section-title {
    font-size: 2.2rem
  }

  .contact-huge {
    font-size: 2.5rem
  }

  .btn {
    padding: 12px 24px;
    font-size: .9rem
  }
}

/* Background Styles */
.bg-grid {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0;
}

.bg-noise {
  position: relative;
}

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

.bg-noise>* {
  position: relative;
  z-index: 1;
}

/* ===== REDUCED MOTION ===== */
@media(prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important
  }
}

/* ===== ЛИЧНАЯ ИСТОРИЯ (STORY) ===== */
.story {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.story__inner {
  max-width: 900px;
}

.story__title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 36px;
  color: var(--text);
}

.story__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
}

.story__body p {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.75;
  color: var(--text2);
  max-width: 680px;
}

.story__body strong {
  color: var(--text);
  font-weight: 700;
}

.story__metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.story__metric {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  transition: border-color .3s;
}

.story__metric:hover {
  border-color: rgba(255, 45, 123, .3);
}

.story__metric-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.story__metric-label {
  font-size: .9rem;
  color: var(--text3);
  line-height: 1.4;
}

/* ===== MOBILE FOUNDATION ===== */
@media (max-width: 768px) {

  /* Все секции — нормальный поток (sticky создаёт проблемы на мобиле) */
  .stacked-section {
    position: relative !important;
    top: auto !important;
  }

  /* Базовая читаемость */
  section {
    padding: 80px 0;
  }

  #contacts {
    padding-top: 80px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero__right {
    display: none;
  }

  .story__metric-row {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr !important;
  }

  .cases__track {
    grid-auto-columns: 85vw !important;
  }

  /* Игра отключена на мобиле (через JS), скрываем canvas */
  #planeGameCanvas {
    display: none;
  }

  .chat-stage__paperplane {
    display: none;
  }

  .mobile-warning-icon {
    display: flex !important;
  }

  .desktop-text {
    display: none !important;
  }

  .mobile-text {
    display: inline !important;
  }

  .niches-cursor {
    display: none !important;
  }
}

@keyframes hackBlink {

  0%,
  100% {
    opacity: 0.8;
  }

  50% {
    opacity: 0.3;
  }
}

.hero__scroll-hint.visible {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#tgChatBody {
  overflow-y: auto;
  max-height: 250px;
}

#tgChatBody::-webkit-scrollbar {
  width: 4px;
}

#tgChatBody::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 255, 0.2);
  border-radius: 4px;
}