/* ============================================================
   AI-Акселератор QA — Landing Page Styles
   Stack: Tailwind CSS (CDN) + custom utilities
   ============================================================ */

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
}

/* ============================================================
   Brand shapes — прямоугольники (skew отключён)
   ============================================================ */
:root {
  --brand-skew-xs: 0;
  --brand-skew-sm: 0;
  --brand-skew-md: 0;
  --brand-skew-lg: 0;
  --brand-skew-xl: 0;
}

.brand-shape-xs,
.brand-shape-sm,
.brand-shape-md,
.brand-shape-lg,
.brand-shape-xl,
.brand-chip,
.brand-btn,
.site-cta,
.nav-link-mobile--cta,
.check-card,
.check-icon,
.progress-tracker,
.step1-popup-close,
.step1-popup-card,
.try-cta-wrapper,
.try-cta-btn,
.reveal-message {
  border-radius: 0 !important;
}

/* clip-path: прямоугольник */
.brand-shape-xs,
.brand-shape-sm,
.brand-shape-md,
.brand-shape-lg,
.brand-shape-xl,
.brand-chip {
  clip-path: none;
}

/* Размер скоса для обводки */
.brand-shape-xs { --brand-para-b: var(--brand-skew-xs); }
.brand-shape-sm { --brand-para-b: var(--brand-skew-sm); }
.brand-shape-md { --brand-para-b: var(--brand-skew-md); }
.brand-shape-lg { --brand-para-b: var(--brand-skew-lg); }
.brand-shape-xl { --brand-para-b: var(--brand-skew-xl); }
.brand-chip { --brand-para-b: var(--brand-skew-sm); }

/* Обводка: внешний параллелограмм (::before) + заливка внутри (::after) */
.brand-para-stroke {
  --brand-para-stroke: #e5e7eb;
  --brand-para-fill: #ffffff;
  --brand-para-inset: 1px;
  position: relative;
  isolation: isolate;
  border: none !important;
  background: transparent !important;
}

.brand-para-stroke::before,
.brand-para-stroke::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.brand-para-stroke::before {
  inset: 0;
  z-index: 0;
  clip-path: none;
  background: var(--brand-para-stroke);
}

.brand-para-stroke::after {
  inset: var(--brand-para-inset);
  z-index: 0;
  clip-path: none;
  background: var(--brand-para-fill);
}

.brand-para-stroke > * {
  position: relative;
  z-index: 1;
}

.brand-para-stroke-gray-50 { --brand-para-stroke: #e5e7eb; --brand-para-fill: #f9fafb; }
.brand-para-stroke-gray-100 { --brand-para-stroke: #f3f4f6; --brand-para-fill: #f9fafb; }
.brand-para-stroke-gray-200 { --brand-para-stroke: #e5e7eb; --brand-para-fill: #ffffff; }
.brand-para-stroke-gray-600 { --brand-para-stroke: #4b5563; --brand-para-fill: rgba(17, 24, 39, 0.35); }
.brand-para-stroke-gray-700 { --brand-para-stroke: #374151; --brand-para-fill: #1f2937; }
.brand-para-stroke-indigo-200 { --brand-para-stroke: #c7d2fe; --brand-para-fill: #ffffff; }
.brand-para-stroke-indigo-300 { --brand-para-stroke: #a5b4fc; --brand-para-fill: #f9fafb; }
.brand-para-stroke-2 { --brand-para-inset: 2px; }

/* Градиентные карточки — обводка через drop-shadow по clip-path */
.brand-para-stroke-gradient {
  background: linear-gradient(to bottom, #4f46e5, #7c3aed) !important;
  filter: drop-shadow(0 0 0 1px #818cf8);
}

.brand-para-stroke-gradient::before,
.brand-para-stroke-gradient::after {
  display: none;
}

/* Пунктирная обводка по контуру (SVG поверх заливки) */
.brand-para-stroke-dashed::before {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Crect x='1.5' y='1.5' width='397' height='97' fill='none' stroke='%23d1d5db' stroke-width='2' stroke-dasharray='8 6' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* Секция «Как это работает» — ambient-фон */
.how-section {
  position: relative;
  overflow: visible;
  background: linear-gradient(180deg, #ffffff 0%, #fafaff 42%, #ffffff 100%);
}

.how-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.how-section-frame {
  position: relative;
  z-index: 1;
}

.how-section-content {
  position: relative;
}

/* % — якорь в правом нижнем углу секции (вне max-w-4xl) */
.how-percent-anchor {
  position: absolute;
  right: clamp(1.25rem, 5vw, 3rem);
  bottom: clamp(1.25rem, 3vh, 2.5rem);
  z-index: 2;
  width: 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.how-ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.22) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.45;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.85) 18%,
    rgba(0, 0, 0, 0.85) 82%,
    transparent 100%
  );
}

.how-ambient-blobs {
  position: absolute;
  inset: 0;
}

.how-ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}

.how-ambient-blob--1 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  top: 8%;
  left: -12%;
  background: rgba(79, 70, 229, 0.28);
  animation: how-blob-drift-a 22s ease-in-out infinite;
}

.how-ambient-blob--2 {
  width: min(36vw, 260px);
  height: min(36vw, 260px);
  top: 42%;
  right: -10%;
  background: rgba(124, 58, 237, 0.22);
  animation: how-blob-drift-b 18s ease-in-out infinite;
}

@keyframes how-blob-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(28px, -22px) scale(1.1);
  }
}

@keyframes how-blob-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-24px, 18px) scale(1.08);
  }
}

.how-ambient-percent {
  display: flex;
  align-items: flex-end;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  visibility: hidden;
  user-select: none;
  transform-origin: right bottom;
  pointer-events: none;
  white-space: nowrap;
}

.how-section.is-percent-visible .how-ambient-percent {
  opacity: 0.05;
  visibility: visible;
}

/* Всегда один угол экрана; lift — подъём вместе с низом секции */
.how-section.is-percent-fixed .how-ambient-percent {
  position: fixed;
  right: clamp(1.25rem, 5vw, 3rem);
  bottom: clamp(1.25rem, 3vh, 2.5rem);
  z-index: 2;
}

.how-section.is-percent-lift .how-ambient-percent {
  bottom: calc(clamp(1.25rem, 3vh, 2.5rem) + var(--how-percent-lift, 0px));
}

.how-ambient-percent [data-how-percent] {
  font-size: clamp(5rem, 18vw, 11rem);
  background: linear-gradient(160deg, #4f46e5 0%, #7c3aed 55%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.how-ambient-percent-sign {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-top: 0.15em;
  margin-left: 0.02em;
  background: linear-gradient(160deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.how-section.is-percent-visible .how-ambient-percent.is-pulse {
  opacity: 0.07;
}

.how-ambient-track {
  position: absolute;
  left: 2.35rem;
  top: 1.25rem;
  bottom: 1.25rem;
  width: 4px;
  height: auto;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.how-ambient-track-bg {
  stroke: #e5e7eb;
  stroke-width: 2;
  stroke-dasharray: 3 7;
  vector-effect: non-scaling-stroke;
}

.how-ambient-track-fill {
  stroke: url(#how-track-gradient);
  stroke-width: 3;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

@media (min-width: 768px) {
  .how-ambient-track {
    left: 2.85rem;
    top: 1.5rem;
    bottom: 1.5rem;
  }

  .how-section.is-percent-visible .how-ambient-percent {
    opacity: 0.055;
  }

  .how-ambient-percent [data-how-percent] {
    font-size: clamp(6rem, 14vw, 12rem);
  }
}

/* Шаги «Как это работает» — отдельные параллелограммы */
.how-layout {
  position: relative;
  isolation: isolate;
}

.how-steps {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.how-step-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  row-gap: 1rem;
  align-items: center;
  padding: 1.5rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.how-step-card.liquid-glass-light:hover {
  box-shadow:
    0 12px 40px rgba(79, 70, 229, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(99, 102, 241, 0.08);
}

.how-step-card.liquid-glass-light.is-unlocked {
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow:
    0 10px 36px rgba(34, 197, 94, 0.1),
    0 4px 12px rgba(79, 70, 229, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(34, 197, 94, 0.1);
}

#authors [data-anim='card'].liquid-glass-light {
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

#authors [data-anim='card'].liquid-glass-light:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 44px rgba(79, 70, 229, 0.14),
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(99, 102, 241, 0.1);
}

.how-step-check {
  grid-column: 1;
  grid-row: 1;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  transform-origin: center center;
  will-change: transform;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.how-step-card.is-unlocked .how-step-check {
  background: #22c55e;
  border-color: #16a34a;
}

.how-step-card.is-unlocked .how-step-check::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.how-step-card .brand-chip {
  grid-column: 2;
  grid-row: 1;
  margin-left: 0;
  margin-bottom: 0;
  align-self: center;
}

.how-step-card > p {
  grid-column: 1 / -1;
  grid-row: 2;
}

@media (min-width: 768px) {
  .how-step-card {
    padding: 2rem 2.25rem;
  }
}

.brand-shape-sm[class*="border"],
.brand-shape-md[class*="border"],
.brand-shape-lg[class*="border"],
.brand-shape-xl[class*="border"] {
  border: none !important;
}

.brand-btn-outline {
  border: none !important;
  box-shadow: none;
  color: #4f46e5;
}

.brand-btn-outline > * {
  position: relative;
  z-index: 1;
}

.brand-btn-outline.brand-para-stroke-indigo-200:hover {
  filter: drop-shadow(0 0 0 1px #a5b4fc) drop-shadow(0 4px 6px -1px rgb(0 0 0 / 0.1));
}

.brand-shape-md.shadow-sm,
.brand-shape-lg.shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* Точки прогресса */
.brand-para-dot {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 2px;
  clip-path: none;
}

.author-photo {
  clip-path: none;
}

/* Секция «Авторы» — ambient-фон (как how-it-works) */
.authors-section {
  position: relative;
  overflow: visible;
  border-top: 1px solid #f3f4f6;
  background: linear-gradient(180deg, #ffffff 0%, #faf9ff 42%, #faf9ff 100%);
}

.authors-ambient {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: -5rem;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.authors-section-frame {
  position: relative;
  z-index: 1;
}

.authors-ambient-blobs {
  position: absolute;
  inset: 0;
}

.authors-ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  will-change: transform;
}

.authors-ambient-blob--1 {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  top: 12%;
  left: -14%;
  background: rgba(79, 70, 229, 0.26);
  animation: how-blob-drift-a 22s ease-in-out infinite;
}

.authors-ambient-blob--2 {
  width: min(34vw, 250px);
  height: min(34vw, 250px);
  top: 55%;
  right: -12%;
  background: rgba(124, 58, 237, 0.2);
  animation: how-blob-drift-b 18s ease-in-out infinite;
}

/* Секция FAQ — переходный фон к тёмному pricing (стык с Authors без шва) */
.faq-section {
  position: relative;
  overflow: visible;
  border: none;
  background: linear-gradient(
    180deg,
    #faf9ff 0%,
    #faf9ff 12%,
    #f3f0ff 58%,
    #ebe6ff 82%,
    #e4ddff 100%
  );
}

.faq-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.faq-section-frame {
  position: relative;
  z-index: 2;
}

.faq-ambient-blobs {
  position: absolute;
  inset: 0;
}

.faq-ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.faq-ambient-blob--1 {
  width: min(44vw, 340px);
  height: min(44vw, 340px);
  top: -8%;
  right: -5%;
  background: rgba(124, 58, 237, 0.18);
  animation: how-blob-drift-b 20s ease-in-out infinite;
}

.faq-ambient-blob--2 {
  width: min(38vw, 280px);
  height: min(38vw, 280px);
  bottom: -6%;
  left: -5%;
  background: rgba(79, 70, 229, 0.22);
  animation: how-blob-drift-a 24s ease-in-out infinite;
}

/* FAQ-карточки: плотнее стекло, без теней — отделение от фиолетового фона */
#faq details.liquid-glass-light {
  background: linear-gradient(
    162deg,
    rgba(255, 255, 255, 0.9) 0%,
    rgba(255, 255, 255, 0.78) 42%,
    rgba(248, 246, 255, 0.82) 100%
  );
  -webkit-backdrop-filter: blur(32px) saturate(1.75) brightness(1.06);
  backdrop-filter: blur(32px) saturate(1.75) brightness(1.06);
  border: 1px solid rgba(255, 255, 255, 0.96);
  outline: 1px solid rgba(129, 140, 248, 0.34);
  outline-offset: -1px;
  box-shadow: none;
}

#faq details.liquid-glass-light::before {
  background: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.55) 30%,
    rgba(255, 255, 255, 0.12) 52%,
    rgba(224, 214, 255, 0.22) 100%
  );
}

#faq details.liquid-glass-light::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    transparent 28%,
    transparent 72%,
    rgba(199, 184, 255, 0.14) 100%
  );
}

#faq details.liquid-glass-light summary {
  transition: background 0.2s ease;
}

#faq details.liquid-glass-light summary:hover {
  background: rgba(255, 255, 255, 0.58);
}

#faq details.liquid-glass-light[open] {
  border-color: rgba(255, 255, 255, 0.98);
  outline-color: rgba(99, 102, 241, 0.42);
}

#faq details.liquid-glass-light[open] summary {
  background: rgba(255, 255, 255, 0.46);
  border-bottom: 1px solid rgba(129, 140, 248, 0.18);
}

#faq details.liquid-glass-light .faq-answer {
  padding: 1.5rem 1.75rem 2rem;
}

.faq-scroll-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.faq-scroll-art__img {
  position: absolute;
  width: clamp(8rem, 13vw, 11.5rem);
  height: auto;
  opacity: 0;
  will-change: opacity, transform, top, left;
  filter: drop-shadow(0 18px 28px rgba(79, 70, 229, 0.18));
  transform: translateY(-50%) rotate(0deg);
}

.faq-scroll-art__img--1 {
  transform-origin: 80% 65%;
}

.faq-scroll-art__img--2 {
  transform-origin: 20% 65%;
}

@media (max-width: 1023px) {
  .faq-scroll-art {
    position: fixed;
    inset: auto 0 0 0;
    height: 0;
    z-index: 4;
  }

  .faq-scroll-art__img {
    top: auto !important;
    bottom: max(0.625rem, env(safe-area-inset-bottom, 0px));
    width: clamp(5.25rem, 26vw, 7rem);
    transform-origin: 50% 100%;
    filter: drop-shadow(0 10px 18px rgba(79, 70, 229, 0.14));
  }

  .faq-scroll-art__img--1 {
    left: max(0.375rem, env(safe-area-inset-left, 0px)) !important;
    right: auto !important;
  }

  .faq-scroll-art__img--2 {
    right: max(0.375rem, env(safe-area-inset-right, 0px)) !important;
    left: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-scroll-art {
    display: none;
  }
}

/* Секция Pricing — тёмный фирменный градиент + блобы */
.pricing-section {
  position: relative;
  overflow: hidden;
  background: #07060f;
}

.pricing-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pricing-gradient {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    140deg,
    #06050c 0%,
    #0d0820 20%,
    #120a2a 42%,
    #0a1028 62%,
    #160828 82%,
    #06050c 100%
  );
  background-size: 300% 300%;
  animation: honest-gradient-shift 24s ease-in-out infinite;
}

.pricing-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(79, 70, 229, 0.2), transparent 58%),
    radial-gradient(ellipse 70% 45% at 75% 65%, rgba(124, 58, 237, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 90%, rgba(99, 102, 241, 0.12), transparent 50%);
  animation: honest-gradient-glow 18s ease-in-out infinite alternate;
}

.pricing-blobs {
  position: absolute;
  inset: 0;
}

.pricing-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(92px);
  will-change: transform;
}

.pricing-blob--1 {
  width: min(50vw, 400px);
  height: min(50vw, 400px);
  top: -18%;
  left: -14%;
  background: rgba(79, 70, 229, 0.2);
  animation: honest-blob-drift-a 28s ease-in-out infinite;
}

.pricing-blob--2 {
  width: min(42vw, 320px);
  height: min(42vw, 320px);
  top: 35%;
  right: -16%;
  background: rgba(124, 58, 237, 0.16);
  animation: honest-blob-drift-b 32s ease-in-out infinite;
}

.pricing-blob--3 {
  width: min(36vw, 260px);
  height: min(36vw, 260px);
  bottom: -12%;
  left: 30%;
  background: rgba(99, 102, 241, 0.14);
  animation: how-blob-drift-a 26s ease-in-out infinite;
}

.pricing-section-frame {
  position: relative;
  z-index: 1;
}

.pricing-decoy-card.liquid-glass {
  background: rgba(12, 10, 28, 0.38);
}

/* Site footer — чёрно-сине-фиолетовый (в стиле pricing); поверх fixed FAQ-декора */
.site-footer {
  position: relative;
  z-index: 30;
  display: block;
  visibility: visible;
  flex-shrink: 0;
  overflow: hidden;
  background: #06050c;
  color: rgba(209, 213, 219, 0.92);
  border-top: 1px solid rgba(99, 102, 241, 0.28);
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    140deg,
    #06050c 0%,
    #0d0820 20%,
    #120a2a 42%,
    #0a1028 62%,
    #160828 82%,
    #06050c 100%
  );
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 48% at 12% 0%, rgba(79, 70, 229, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 42% at 88% 100%, rgba(124, 58, 237, 0.14), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(99, 102, 241, 0.06), transparent 60%);
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
  text-align: left;
}

@media (min-width: 768px) {
  .site-footer__inner {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
  }
}

.site-footer__logo-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.site-footer__logo {
  display: block;
  height: 1.75rem;
  width: auto;
  max-width: min(100%, 11rem);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(199, 210, 254, 0.72);
  max-width: 22rem;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.site-footer__legal p {
  margin: 0 0 0.35rem;
}

.site-footer__legal-title {
  margin: 0 0 0.5rem !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(199, 210, 254, 0.95);
}

.site-footer__address {
  margin-top: 0.5rem !important;
}

.site-footer__address-label {
  display: block;
  font-weight: 600;
  color: rgba(224, 231, 255, 0.88);
  margin-bottom: 0.15rem;
}

.site-footer__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.site-footer__telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow: 0 8px 20px -10px rgba(79, 70, 229, 0.65);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-footer__telegram:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, 0.75);
}

@media (min-width: 768px) {
  .site-footer__telegram {
    width: auto;
    min-width: 14rem;
  }
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.site-footer__links a {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: rgba(165, 180, 252, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: #e0e7ff;
}

.site-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(99, 102, 241, 0.22);
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(156, 163, 175, 0.75);
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__disclaimer {
  margin-top: 0.35rem !important;
}

@media (max-width: 767px) {
  .pricing-section {
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  .site-footer {
    scroll-margin-bottom: env(safe-area-inset-bottom, 0px);
  }

  .site-footer__grid {
    gap: 1.75rem;
  }

  .site-footer__actions {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-ambient-blob,
  .pricing-gradient,
  .pricing-gradient::after,
  .pricing-blob {
    animation: none;
  }
}

/* Pricing: бейдж над карточкой без съедания высоты колонки */
.pricing-card-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.pricing-card-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: visible;
}

.pricing-card-sparkles {
  position: absolute;
  top: -28px;
  left: -28px;
  width: calc(100% + 56px);
  height: calc(100% + 56px);
  z-index: 5;
  pointer-events: none;
}

.pricing-card-inner.liquid-glass {
  z-index: 1;
  flex: 1 1 auto;
  min-height: 100%;
  overflow: visible;
  background: rgba(14, 12, 34, 0.55);
  box-shadow:
    0 0 0 1px rgba(165, 180, 252, 0.5),
    0 0 28px rgba(99, 102, 241, 0.38),
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

.pricing-card-inner {
  position: relative;
}

.pricing-card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* ============================================================
   SITE HEADER — sticky logo + nav
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 10px -2px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(229, 231, 235, 0.8);
}

.site-logo img {
  transition: opacity 0.2s ease;
}

.site-logo:hover img {
  opacity: 0.7;
}

.nav-link {
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-link:hover {
  color: #4f46e5;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.site-cta {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  clip-path: none;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.site-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.6);
}

/* Mobile menu */
.site-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 16px 20px 24px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.site-nav-mobile.is-open {
  display: flex;
}

.nav-link-mobile {
  padding: 12px 0;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}

.nav-link-mobile:last-child {
  border-bottom: none;
}

.nav-link-mobile--cta {
  margin-top: 12px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  font-weight: 700;
  text-align: center;
  clip-path: none;
  border: none;
  padding: 14px 20px;
}

/* ============================================================
   Hero roadmap checkpoints
   ============================================================ */
.hero-cp-dot,
.hero-cp-inner {
  transition: r 0.3s ease;
}

.hero-cp-label,
.hero-cp-number {
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

.hero-cp-number {
  user-select: none;
}

/* ---------- Brand gradients ---------- */
.bg-gradient-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.text-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- CTA Pulse (Endowment / Urgency cue) ---------- */
.cta-pulse {
  animation: pulse-shadow 2s infinite;
}

@keyframes pulse-shadow {
  0%   { box-shadow: 0 0 0 0    rgba(79, 70, 229, 0.7); }
  70%  { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);   }
  100% { box-shadow: 0 0 0 0    rgba(79, 70, 229, 0);   }
}

/* ============================================================
   STEP 1 — Interactive Self-Check Block
   ============================================================ */

/* Чекбокс-карточка: базовое состояние */
.check-card {
  position: relative;
  border: none;
  --brand-para-b: var(--brand-skew-md);
  --brand-para-stroke: #e5e7eb;
  --brand-para-fill: #ffffff;
  --check-card-ref-h: 72px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  will-change: transform;
}

.check-card:hover {
  transform: translateY(-2px);
  --brand-para-stroke: #c7d2fe;
}

.check-card:hover::before {
  filter: drop-shadow(0 8px 20px rgba(79, 70, 229, 0.22));
}

/* Состояние "отмечено" */
.check-card.is-checked {
  --brand-para-stroke: #4338ca;
  --brand-para-fill: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.check-card.is-checked::before {
  filter: drop-shadow(0 4px 14px rgba(79, 70, 229, 0.35));
}

.check-card.is-checked:hover::before {
  filter: drop-shadow(0 8px 20px rgba(79, 70, 229, 0.4));
}

.check-card.is-checked .check-card-text,
.check-card.is-checked .check-card-text strong {
  color: #ffffff;
}

.check-card.is-checked .check-icon {
  --brand-para-stroke: #a5b4fc;
  --brand-para-fill: #ffffff;
}

.check-card.is-checked .check-icon svg {
  color: #4f46e5;
  opacity: 1;
  transform: scale(1);
}

/* Сам "чекбокс" — квадрат */
.check-icon {
  width: 28px;
  height: 28px;
  border: none;
  --brand-para-b: calc(var(--brand-skew-md) * 28 / var(--check-card-ref-h));
  --brand-para-stroke: #d1d5db;
  --brand-para-fill: #ffffff;
  --brand-para-inset: 2px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.check-icon svg {
  width: 18px;
  height: 18px;
  color: #4f46e5;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

/* ---------- Прогресс-индикатор «X из 3» ---------- */
.progress-tracker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 45px;
  padding: 8px 16px;
  border: none;
  --brand-para-b: var(--brand-skew-sm);
  --brand-para-stroke: #e5e7eb;
  --brand-para-fill: #ffffff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.step1-progress-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  flex-wrap: wrap;
}

.step1-typed-message {
  margin: 0;
  max-width: min(560px, 100%);
  min-height: 45px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: #4f46e5;
  display: flex;
  align-items: center;
}

.step1-typed-message::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: currentColor;
  opacity: 0;
}

.step1-typed-message.is-typing::after {
  opacity: 1;
  animation: step1-caret-blink 0.8s steps(1, end) infinite;
}

.progress-tracker.is-complete {
  --brand-para-stroke: transparent;
  --brand-para-fill: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(16, 185, 129, 0.5);
}

.progress-tracker .dot,
.progress-tracker .brand-para-dot {
  border-radius: 2px;
}

.progress-tracker .dot {
  background: #d1d5db;
  transition: background 0.3s ease, transform 0.3s ease;
}

.progress-tracker .dot.is-on {
  background: #4f46e5;
  transform: scale(1.2);
}

.progress-tracker.is-complete .dot.is-on {
  background: white;
}

@keyframes step1-caret-blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Step 1 — fullscreen modal (3 из 3) ---------- */
/* z-index: blur 1000 → confetti 1010 (JS) → popup 1020 */
.step1-grid-wrap {
  position: relative;
}

.step1-inline-cta {
  margin-top: 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.step1-inline-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step1-inline-cta[hidden] {
  display: none !important;
}

.step1-inline-try {
  font-size: 18px;
  padding: 16px 40px;
}

.step1-modal {
  position: fixed;
  inset: 0;
  visibility: hidden;
  pointer-events: none;
}

.step1-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

html.is-step1-modal-open {
  overflow: hidden;
}

.step1-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(249, 250, 251, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
  cursor: pointer;
  opacity: 0;
}

.step1-modal.is-open .step1-modal-backdrop {
  opacity: 1;
}

.step1-confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1010;
  pointer-events: none;
}

.step1-popup-panel {
  position: fixed;
  inset: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(16px) scale(0.92);
}

.step1-popup-panel .step1-popup-card,
.step1-popup-panel .step1-popup-close {
  pointer-events: auto;
}

.step1-popup-panel .step1-popup-card {
  position: relative;
  width: min(100%, 400px);
}

.step1-popup-close {
  position: fixed;
  top: max(16px, env(safe-area-inset-top, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  z-index: 1030;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  clip-path: none;
  background: rgba(255, 255, 255, 0.85);
  color: #9ca3af;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.step1-popup-close:hover {
  color: #4b5563;
  background: white;
  transform: scale(1.05);
}

.step1-popup-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 28px 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f8f7ff 48%, #f5f3ff 100%);
  border: none;
  clip-path: none;
  box-shadow:
    inset 0 0 0 1px rgba(199, 210, 254, 0.65),
    0 24px 48px -12px rgba(79, 70, 229, 0.18),
    0 8px 16px -8px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.step1-popup-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 55%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.step1-popup-hero {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 240px;
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(79, 70, 229, 0.12));
}

.step1-popup-title {
  position: relative;
  z-index: 1;
  margin: 0 0 20px;
  max-width: 18em;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #111827;
}

.step1-popup-cta-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

/* Пульс свечения под кнопкой (не на ней) */
.step1-popup-cta-wrap::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -4px;
  height: 18px;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.55);
  filter: blur(12px);
  pointer-events: none;
  z-index: 0;
  animation: step1-cta-under-glow 3.6s ease-in-out infinite;
}

.step1-popup-cta.try-cta-btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 15px 32px;
  font-size: 17px;
  clip-path: none;
  overflow: hidden;
  border: none;
  cursor: pointer;
  color: white;
  font-weight: 700;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  box-shadow:
    0 2px 0 #4338ca,
    0 12px 22px -6px rgba(79, 70, 229, 0.45);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.28s ease,
    filter 0.2s ease;
}

/* Блик — выразительный проход (~1.5× чаще прежнего цикла 11s) */
.step1-popup-cta.try-cta-btn::after {
  content: '';
  position: absolute;
  top: -25%;
  left: -180%;
  width: 72%;
  height: 150%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 24%,
    rgba(255, 255, 255, 0.45) 40%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 0.45) 60%,
    rgba(255, 255, 255, 0.08) 76%,
    transparent 100%
  );
  transform: skewX(-24deg);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.35));
  animation: step1-cta-shine 7.3s cubic-bezier(0.42, 0.08, 0.22, 1) infinite;
}

/* Вспышка при клике */
.step1-popup-cta.try-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, transparent 62%);
  opacity: 0;
  transform: scale(0.15);
  pointer-events: none;
  z-index: 1;
}

.step1-popup-cta.try-cta-btn.is-clicked::before {
  animation: step1-cta-ripple 0.55s ease-out forwards;
}

.step1-popup-cta-label {
  position: relative;
  z-index: 2;
}

@keyframes step1-cta-shine {
  0%,
  28% {
    left: -180%;
    opacity: 0;
  }
  32% {
    left: -180%;
    opacity: 1;
  }
  72% {
    left: 185%;
    opacity: 1;
  }
  78%,
  100% {
    left: 185%;
    opacity: 0;
  }
}

@keyframes step1-cta-under-glow {
  0%,
  100% {
    opacity: 0.45;
    transform: translateY(6px) scaleX(0.82);
  }
  50% {
    opacity: 0.95;
    transform: translateY(12px) scaleX(1.08);
  }
}

@keyframes step1-cta-ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.15);
  }
  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

.step1-popup-footnote {
  position: relative;
  z-index: 1;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  letter-spacing: 0.01em;
}

/* ---------- Reveal-слоты (legacy, скрыты) ---------- */
.reveal-slot {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: visibility 0s linear 0.6s;
}

.reveal-slot.is-revealed {
  visibility: visible;
  transition: visibility 0s linear 0s;
  /* остальное двигает GSAP */
}

.reveal-message {
  padding: 16px 20px;
  clip-path: none;
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reveal-message--soft {
  background: #fef3c7;
  color: #92400e;
  box-shadow: inset 0 0 0 1px #fde68a;
}

.reveal-message--medium {
  background: #ede9fe;
  color: #5b21b6;
  box-shadow: inset 0 0 0 1px #ddd6fe;
}

/* ---------- CTA "Попробовать" (3-й reveal) ---------- */
.try-cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
  border: none;
  clip-path: none;
  box-shadow: inset 0 0 0 2px #c4b5fd;
  position: relative;
  overflow: hidden;
}

.try-cta-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(79, 70, 229, 0.15), transparent 70%);
  opacity: 0;
  animation: cta-glow 3s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { opacity: 0; }
  50%      { opacity: 1; }
}

.try-cta-btn {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 40px;
  clip-path: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(79, 70, 229, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.try-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(79, 70, 229, 0.7);
}

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

/* ---------- Unified blue/purple CTA shine ---------- */
.site-cta,
.nav-link-mobile--cta,
a.bg-gradient-primary,
button.bg-indigo-600,
.try-cta-btn,
.honest-deal-banner__cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.28s ease,
    filter 0.2s ease;
}

.site-cta::before,
.nav-link-mobile--cta::before,
a.bg-gradient-primary::before,
button.bg-indigo-600::before,
.try-cta-btn:not(.step1-popup-cta)::before,
.honest-deal-banner__cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0%, transparent 62%);
  opacity: 0;
  transform: scale(0.15);
  pointer-events: none;
  z-index: 1;
}

.site-cta.is-clicked::before,
.nav-link-mobile--cta.is-clicked::before,
a.bg-gradient-primary.is-clicked::before,
button.bg-indigo-600.is-clicked::before,
.try-cta-btn:not(.step1-popup-cta).is-clicked::before,
.honest-deal-banner__cta.is-clicked::before {
  animation: step1-cta-ripple 0.55s ease-out forwards;
}

.site-cta::after,
.nav-link-mobile--cta::after,
a.bg-gradient-primary::after,
button.bg-indigo-600::after,
.try-cta-btn::after,
.honest-deal-banner__cta::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -190%;
  width: 72%;
  height: 170%;
  background: linear-gradient(
    108deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 24%,
    rgba(255, 255, 255, 0.42) 40%,
    rgba(255, 255, 255, 0.96) 50%,
    rgba(255, 255, 255, 0.42) 60%,
    rgba(255, 255, 255, 0.08) 76%,
    transparent 100%
  );
  transform: skewX(-24deg);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: overlay;
  opacity: 0;
  animation: unified-cta-shine 7.3s cubic-bezier(0.42, 0.08, 0.22, 1) infinite;
}

.site-cta:hover,
.nav-link-mobile--cta:hover,
a.bg-gradient-primary:hover,
button.bg-indigo-600:hover {
  transform: translateY(-5px) scale(1.04);
  filter: brightness(1.06);
  box-shadow: 0 20px 36px -4px rgba(79, 70, 229, 0.55);
}

.site-cta.is-pressed,
.nav-link-mobile--cta.is-pressed,
a.bg-gradient-primary.is-pressed,
button.bg-indigo-600.is-pressed,
.try-cta-btn.is-pressed,
.honest-deal-banner__cta.is-pressed {
  transform: translateY(3px) scale(0.96);
  filter: brightness(0.9);
  transition-duration: 0.1s;
}

.site-cta.is-pressed,
.nav-link-mobile--cta.is-pressed {
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.35);
}

a.bg-gradient-primary.is-pressed,
button.bg-indigo-600.is-pressed {
  box-shadow: 0 6px 14px -6px rgba(79, 70, 229, 0.35);
}

@keyframes unified-cta-shine {
  0%,
  28% {
    left: -190%;
    opacity: 0;
  }
  32% {
    left: -190%;
    opacity: 1;
  }
  72% {
    left: 190%;
    opacity: 1;
  }
  78%,
  100% {
    left: 190%;
    opacity: 0;
  }
}

/* Popup CTA — базовый .try-cta-btn выше по каскаду не должен гасить hover/active */
.step1-popup-cta.try-cta-btn {
  box-shadow:
    0 2px 0 #4338ca,
    0 12px 22px -6px rgba(79, 70, 229, 0.45);
}

.step1-popup-cta.try-cta-btn:hover {
  transform: translateY(-5px) scale(1.04);
  box-shadow:
    0 4px 0 #4338ca,
    0 20px 36px -4px rgba(79, 70, 229, 0.55);
  filter: brightness(1.1);
}

.step1-popup-cta.try-cta-btn:active,
.step1-popup-cta.try-cta-btn.is-pressed {
  transform: translateY(3px) scale(0.96);
  box-shadow:
    0 0 0 #4338ca,
    0 6px 14px -6px rgba(79, 70, 229, 0.35);
  filter: brightness(0.9);
  transition-duration: 0.1s;
}

.try-cta-hint {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: #6b7280;
}

/* ============================================================
   Confetti canvas — поверх всего
   ============================================================ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   Глобальные утилиты для анимаций
   ============================================================ */

/* Контент виден сразу; начальные состояния scroll-анимаций задаёт GSAP.
   Раньше opacity:0 держал страницу пустой, пока грузились CDN — отсюда «зависание». */
html.no-anim [data-anim] {
  opacity: 1 !important;
  transform: none !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .how-ambient-blob {
    animation: none !important;
  }

  .how-section.is-percent-visible .how-ambient-percent {
    opacity: 0.03;
  }

  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }

  .step1-popup-cta.try-cta-btn,
  .step1-popup-cta.try-cta-btn::before,
  .step1-popup-cta.try-cta-btn::after,
  .step1-popup-cta-wrap::after,
  .site-cta::before,
  .site-cta::after,
  .nav-link-mobile--cta::before,
  .nav-link-mobile--cta::after,
  a.bg-gradient-primary::before,
  a.bg-gradient-primary::after,
  button.bg-indigo-600::before,
  button.bg-indigo-600::after,
  .try-cta-btn::before,
  .try-cta-btn::after,
  .honest-deal-banner__cta::before,
  .honest-deal-banner__cta::after {
    animation: none !important;
  }

  .cta-pulse {
    animation: none !important;
  }

  .pricing-card-sparkles {
    display: none;
  }

  .pricing-card-inner {
    filter: drop-shadow(0 0 0 1px #818cf8) drop-shadow(0 0 16px rgba(99, 102, 241, 0.45));
  }
}

/* ---------- Focus styles (a11y) ---------- */
*:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 3px;
}

/* ---------- Smooth scroll + без горизонтального переполнения ---------- */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

/* ============================================================
   Authors — социальные ссылки hover
   ============================================================ */
.social-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
}

/* ============================================================
   Honest deal — тёмный градиент + млечный путь + liquid glass
   ============================================================ */
.honest-deal-section {
  position: relative;
  overflow: hidden;
  background: #07060f;
}

.honest-deal-ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.honest-deal-gradient {
  position: absolute;
  inset: -20%;
  background: linear-gradient(
    125deg,
    #06050c 0%,
    #0f0820 18%,
    #0a0f24 38%,
    #160a28 58%,
    #0c1028 78%,
    #06050c 100%
  );
  background-size: 320% 320%;
  animation: honest-gradient-shift 22s ease-in-out infinite;
}

.honest-deal-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 15% 25%, rgba(79, 70, 229, 0.14), transparent 58%),
    radial-gradient(ellipse 80% 35% at 50% 48%, rgba(99, 102, 241, 0.1), transparent 62%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(124, 58, 237, 0.1), transparent 55%);
  animation: honest-gradient-glow 16s ease-in-out infinite alternate;
}

@keyframes honest-gradient-shift {
  0%, 100% { background-position: 0% 42%; }
  50% { background-position: 100% 58%; }
}

@keyframes honest-gradient-glow {
  from { opacity: 0.75; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

.honest-deal-blobs {
  position: absolute;
  inset: 0;
}

.honest-deal-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(88px);
  will-change: transform;
}

.honest-deal-blob--1 {
  width: min(48vw, 380px);
  height: min(48vw, 380px);
  top: -12%;
  left: -16%;
  background: rgba(79, 70, 229, 0.14);
  animation: honest-blob-drift-a 26s ease-in-out infinite;
}

.honest-deal-blob--2 {
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  top: 20%;
  right: -14%;
  background: rgba(124, 58, 237, 0.1);
  animation: honest-blob-drift-b 30s ease-in-out infinite;
}

@keyframes honest-blob-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6%, 8%) scale(1.08); }
}

@keyframes honest-blob-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8%, -5%) scale(1.06); }
}

.honest-deal-milkyway {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

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

/* Liquid glass — общая база */
.liquid-glass {
  position: relative;
  isolation: isolate;
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  backdrop-filter: blur(28px) saturate(1.6);
}

.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.liquid-glass > * {
  position: relative;
  z-index: 1;
}

/* Liquid glass — тёмный (honest-deal, pricing decoy) */
.liquid-glass:not(.liquid-glass-light) {
  background: rgba(12, 10, 28, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.liquid-glass:not(.liquid-glass-light)::before {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.12) 0%,
    rgba(255, 255, 255, 0.02) 38%,
    transparent 52%,
    rgba(129, 140, 248, 0.06) 100%
  );
}

/* Liquid glass — светлый (how-it-works, authors, FAQ) */
.liquid-glass-light {
  background: rgba(255, 255, 255, 0.52);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
  backdrop-filter: blur(20px) saturate(1.45);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 32px rgba(79, 70, 229, 0.09),
    0 2px 8px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(99, 102, 241, 0.07);
}

.liquid-glass-light::before {
  background: linear-gradient(
    152deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(255, 255, 255, 0.2) 32%,
    transparent 54%,
    rgba(167, 139, 250, 0.1) 100%
  );
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .liquid-glass:not(.liquid-glass-light) {
    background: rgba(17, 24, 39, 0.82);
  }

  .liquid-glass-light {
    background: rgba(255, 255, 255, 0.94);
  }

  #faq details.liquid-glass-light {
    background: rgba(255, 255, 255, 0.97);
    outline-color: rgba(129, 140, 248, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .honest-deal-gradient,
  .honest-deal-gradient::after,
  .honest-deal-blob {
    animation: none;
  }
}

/* Honest deal — баннер внизу секции */
.honest-deal-banner {
  margin-bottom: 0.5rem;
}

.honest-deal-banner__text {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #e5e7eb;
}

.honest-deal-banner__text strong {
  color: #c7d2fe;
  font-weight: 700;
}

.honest-deal-banner__footnote {
  position: relative;
  z-index: 1;
  margin: 0.625rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(229, 231, 235, 0.5);
  letter-spacing: 0.02em;
}

.honest-deal-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  clip-path: none;
  box-shadow: 0 6px 16px -6px rgba(79, 70, 229, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.honest-deal-banner__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(79, 70, 229, 0.65);
}

/* ============================================================
   FAQ — плавное раскрытие <details>
   ============================================================ */
details[open] summary ~ * {
  animation: faq-slide-down 0.4s ease;
}

/* Раскрытие через GSAP в main.js — без конфликта с height-анимацией */
#faq details.liquid-glass-light[open] .faq-answer {
  animation: none;
}

@keyframes faq-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Hero SVG roadmap — стили линии (Phase 3)
   ============================================================ */
.hero-archimedes {
  display: block;
  max-height: 240px;
  width: auto;
  height: auto;
  margin-bottom: 1.5rem;
}

/* Desktop: обёртки mobile не ломают поток */
@media (min-width: 768px) {
  .hero-mobile-body,
  .hero-mobile-foot,
  .hero-mobile-copy,
  .hero-mobile-between,
  .hero-mobile-gap {
    display: contents;
  }
}

/* Mobile: один экран = шапка + hero; контент крупный и заполняет высоту */
@media (max-width: 767px) {
  .hero-section {
    --hero-header-h: 4rem;
    --hero-gap: clamp(0.5rem, 2.2svh, 1.15rem);
    --hero-img-h: clamp(5rem, 24svh, 10.5rem);
    --hero-title-size: clamp(1.35rem, 6.2svh, 2.05rem);
    --hero-subtitle-size: clamp(0.875rem, 3svh, 1.125rem);
    --hero-btn-size: clamp(0.9375rem, 2.6svh, 1.0625rem);
    --hero-btn-pad-y: clamp(0.7rem, 2.2svh, 1rem);
    --hero-btn-pad-x: clamp(0.875rem, 3vw, 1.25rem);
    --hero-footnote-size: clamp(0.6875rem, 2svh, 0.8125rem);

    min-height: calc(100svh - var(--hero-header-h));
    min-height: calc(100dvh - var(--hero-header-h));
    box-sizing: border-box;
    padding-top: 0;
    overflow-x: clip;
    overflow-y: visible;
    display: flex;
    flex-direction: column;
  }

  .hero-inner {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: clamp(0.65rem, 2.5svh, 1.25rem);
    padding-top: 0 !important;
    padding-bottom: max(0.6rem, env(safe-area-inset-bottom)) !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    text-align: center;
  }

  .hero-mobile-body {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }

  /* Равные отступы: шапка ↔ картинка ↔ заголовок */
  .hero-mobile-between {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-mobile-gap {
    flex: 1 1 0;
    min-height: clamp(0.5rem, 2svh, 1.25rem);
    width: 100%;
  }

  .hero-mobile-between > picture {
    flex: 0 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .hero-mobile-copy {
    flex: 0 0 auto;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: clamp(0.35rem, 1svh, 0.625rem);
    text-align: center;
  }

  .hero-section .hero-archimedes {
    flex-shrink: 0;
    max-height: var(--hero-img-h) !important;
    max-width: min(92vw, 22rem);
    width: auto;
    height: auto;
    margin: 0 auto !important;
    object-fit: contain;
    object-position: center top;
  }

  .hero-mobile-copy .hero-title,
  .hero-mobile-copy .hero-subtitle {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding-inline: 0;
  }

  .hero-section .hero-title {
    flex-shrink: 0;
    font-size: var(--hero-title-size) !important;
    line-height: 1.1 !important;
    text-wrap: wrap;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .hero-title .word {
    display: inline;
  }

  .hero-title-tail {
    white-space: normal;
    color: inherit;
  }

  .hero-title .text-gradient {
    display: inline;
  }

  .hero-section .hero-subtitle {
    flex-shrink: 0;
    font-size: var(--hero-subtitle-size) !important;
    line-height: 1.35 !important;
  }

  .hero-mobile-foot {
    flex: 0 0 auto;
    width: 100%;
    margin-top: clamp(1.25rem, 4svh, 2rem);
  }

  .hero-cta-group {
    margin: 0 !important;
    gap: clamp(0.45rem, 1.5svh, 0.75rem);
    width: 100%;
  }

  .hero-cta-group > .flex {
    gap: clamp(0.45rem, 1.5svh, 0.75rem);
  }

  .hero-cta-group .brand-shape-lg {
    font-size: var(--hero-btn-size) !important;
    padding: var(--hero-btn-pad-y) var(--hero-btn-pad-x) !important;
    line-height: 1.2;
  }

  .hero-cta-footnote {
    font-size: var(--hero-footnote-size) !important;
    line-height: 1.3;
    margin-top: 0 !important;
    max-width: 100% !important;
  }

  /* Step 1 — без typed-подсказок на mobile */
  .step1-typed-message {
    display: none !important;
  }

  .step1-progress-row {
    gap: 0;
  }
}

.hero-cta-footnote {
  max-width: 15.5rem;
}

@media (min-width: 640px) {
  .hero-cta-footnote {
    max-width: 20rem;
  }
}

.hero-roadmap-marker {
  width: 32px;
  height: 32px;
}

.hero-cp-anchor {
  opacity: 0;
}

.hero-roadmap {
  width: 100%;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

#hero-roadmap-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 128;
  overflow: visible;
}

.hero-roadmap-path {
  fill: none;
  stroke: url(#hero-grad);
  stroke-width: 3;
  stroke-linecap: butt;
  stroke-dasharray: 8 8;
}
