/* ============================================================================
   Лендинг MedVentures × AITU – aitu.medventures.medhubhaq.ai
   Без сборки: файл отдаётся как есть. После правки поменять ?v= в index.html,
   иначе браузеры до 30 дней держат старую версию (кэш /assets/ в nginx).
   Инлайновых style="" в разметке нет намеренно: их запрещает CSP сайта.
   ============================================================================ */

:root {
  --bg: #05040b;
  --bg-2: #0b0818;
  --bg-3: #100b24;
  --text: #f3f1fa;
  --text-2: #e2deef;
  --soft: #d6d1e6;
  --muted: #b6b0c9;
  --dim: #8e87a6;
  --violet: #7c4dff;
  --violet-2: #a78bfa;
  --violet-3: #c4b5fd;
  --violet-4: #ddd6fe;
  --teal: #2dd4bf;
  --teal-2: #5eead4;
  --teal-3: #99f6e4;
  --teal-4: #ccfbf1;
  --ink: #1a0b3d;
  --line: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --display: Unbounded, Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

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

img {
  height: auto;
}

a {
  color: var(--teal-3);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--teal-2);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* Слова через дефис, которые не стоит разрывать на две строки */
.nobr {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  transition: top 0.2s;
}

.skip:focus {
  top: 12px;
  color: var(--ink);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  /* iPhone в альбомной ориентации: не заходить под вырез экрана */
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.wrap--narrow {
  max-width: 900px;
}

.wrap--faq {
  max-width: 860px;
}

/* ---------- Кнопки ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 19px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, color 0.25s;
}

.btn svg {
  flex: none;
  transition: transform 0.25s var(--ease);
}

/* Блик, который пробегает по кнопке при наведении */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.75s var(--ease);
}

.btn:hover {
  transform: translateY(-3px);
}

.btn:hover::after {
  transform: translateX(120%);
}

.btn:hover svg {
  transform: translateX(4px);
}

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

.btn:focus-visible {
  outline-offset: 4px;
  border-radius: 999px;
}

.btn--primary {
  background: var(--violet);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.35), 0 12px 40px -10px rgba(124, 77, 255, 0.9), 0 0 50px rgba(124, 77, 255, 0.55);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(196, 181, 253, 0.5), 0 18px 50px -10px rgba(124, 77, 255, 1), 0 0 70px rgba(124, 77, 255, 0.7);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
}

.btn--light:hover {
  color: var(--ink);
  box-shadow: 0 14px 40px -12px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.4);
}

.btn--light::after {
  background: linear-gradient(110deg, transparent 30%, rgba(124, 77, 255, 0.18) 50%, transparent 70%);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.btn--sm {
  gap: 8px;
  padding: 12px 22px;
  font-size: 15px;
}

/* ---------- Шапка ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s;
}

/* Без скрипта класс прокрутки не ставится: шапке сразу нужен фон */
html:not(.js) .topbar {
  background: rgba(5, 4, 11, 0.86);
}

.topbar.is-scrolled {
  background: rgba(5, 4, 11, 0.74);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar__in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: var(--text);
}

/* Логотипы и кнопка в шапке не сжимаются: иначе логотип AITU сплющивается */
.brand picture,
.topbar .btn {
  flex: none;
}

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

.brand__mv {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand__haq {
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-2);
  font-weight: 600;
}

.brand__box {
  border: 2px solid var(--teal-2);
  padding: 5px 12px;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.45), rgba(45, 212, 191, 0.25));
  box-shadow: 0 0 28px rgba(45, 212, 191, 0.4), 0 0 50px rgba(124, 77, 255, 0.35);
  animation: glow 4s ease-in-out infinite;
}

.brand__x {
  font-size: 26px;
  line-height: 1;
  color: var(--teal);
  font-weight: 300;
  padding-top: 12px;
}

.brand__aitu {
  height: 48px;
  width: auto;
  max-width: none;
  filter: drop-shadow(0 0 14px rgba(45, 212, 191, 0.35));
}

.topbar__short {
  display: none;
}

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 104px)) 0 clamp(84px, 10vw, 124px);
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(124, 77, 255, 0.6), rgba(124, 77, 255, 0) 65%),
    radial-gradient(ellipse 35% 30% at 85% 15%, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 70%);
}

/* Нижний край первого экрана плавно уходит в фон страницы */
.hero__bg::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(5, 4, 11, 0), var(--bg));
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 15%, transparent 72%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.blob--1 {
  width: 46vmax;
  height: 46vmax;
  left: -14vmax;
  top: 12%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.34), rgba(124, 77, 255, 0) 65%);
  animation: drift-1 22s ease-in-out infinite alternate;
}

.blob--2 {
  width: 40vmax;
  height: 40vmax;
  right: -12vmax;
  top: -8vmax;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.24), rgba(45, 212, 191, 0) 65%);
  animation: drift-2 26s ease-in-out infinite alternate;
}

.blob--3 {
  width: 32vmax;
  height: 32vmax;
  left: 42%;
  bottom: -16vmax;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0) 65%);
  animation: drift-3 30s ease-in-out infinite alternate;
}

.hero__in {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.35);
  font-size: 14px;
  color: var(--teal-4);
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: ping 2.2s ease-out infinite;
}

.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.grad {
  background: linear-gradient(90deg, var(--violet-3) 0%, var(--violet-2) 25%, var(--teal-2) 50%, var(--violet-2) 75%, var(--violet-3) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 9s linear infinite;
}

.hero__lead {
  max-width: 640px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--text-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  font-size: 15px;
  color: var(--muted);
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chips svg {
  color: var(--teal-2);
}

/* Карточки по бокам заголовка: только на широких экранах */
.floaters {
  display: none;
}

.floater {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}

.floater__i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(124, 77, 255, 0.55), rgba(45, 212, 191, 0.35));
  color: #fff;
}

.floater--1 {
  left: calc(50% - 580px);
  top: 36%;
}

.floater--2 {
  left: calc(50% - 540px);
  top: 64%;
  animation-delay: -2.5s;
}

.floater--3 {
  right: calc(50% - 580px);
  top: 30%;
  animation-delay: -1.2s;
}

.floater--4 {
  right: calc(50% - 545px);
  top: 60%;
  animation-delay: -4s;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.scroll-cue::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--teal-2);
  animation: cue 1.8s ease-in-out infinite;
}

.scroll-cue:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* Появление первого экрана при загрузке – без скрипта */
.rise {
  animation: rise 0.9s var(--ease) both;
}

.rise--2 {
  animation-delay: 0.08s;
}

.rise--3 {
  animation-delay: 0.16s;
}

.rise--4 {
  animation-delay: 0.24s;
}

.rise--5 {
  animation-delay: 0.32s;
}

.rise--6 {
  animation-delay: 0.6s;
}

/* ---------- Общее для разделов ---------- */

.section {
  padding-top: clamp(84px, 11vw, 128px);
}

.section--first {
  padding-top: 24px;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.lead {
  margin: 16px auto 0;
  max-width: 680px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--soft);
}

.center {
  display: flex;
  justify-content: center;
}

/* Появление при прокрутке: прячем, только если работает скрипт. Сдвиг – через
   translate и анимацию, а не transform и transition: так у карточек остаются
   свои эффекты наведения */
.js [data-reveal]:not(.is-in) {
  opacity: 0;
  translate: 0 26px;
}

.js [data-reveal].is-in {
  animation: reveal 0.8s var(--ease) var(--d, 0ms) backwards;
}

/* Фокус с клавиатуры внутри ещё не проявленного блока – показываем сразу */
.js [data-reveal]:focus-within {
  opacity: 1;
  translate: none;
}

/* ---------- Что такое MedVentures ---------- */

.about {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.about__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 30px 24px 32px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s var(--ease), border-color 0.3s, background-color 0.3s;
}

.about__card:hover {
  transform: translateY(-5px);
  border-color: rgba(196, 181, 253, 0.35);
}

.ico72 {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(140deg, rgba(124, 77, 255, 0.45), rgba(45, 212, 191, 0.3));
  border: 1px solid rgba(196, 181, 253, 0.4);
  box-shadow: 0 0 34px rgba(124, 77, 255, 0.35);
  color: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.about__card:hover .ico72 {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 0 44px rgba(45, 212, 191, 0.45);
}

.about__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
}

.about__d {
  max-width: 330px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--soft);
}

/* ---------- Этапы ---------- */

.timeline {
  --c: 76px;
  position: relative;
}

.timeline__track {
  position: absolute;
  left: calc(var(--c) / 2 - 1px);
  top: calc(var(--c) / 2);
  bottom: calc(var(--c) / 2);
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.timeline__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--violet-2), var(--teal), var(--violet-2), var(--teal), var(--violet-2));
  transform-origin: top;
  transform: scaleY(var(--p, 1));
}

.timeline__list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stage {
  display: flex;
  align-items: center;
  gap: 22px;
}

.stage__c {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: var(--c);
  height: var(--c);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease), opacity 0.5s;
}

.stage__b {
  flex: 1 1 auto;
  border-radius: 20px;
  padding: 20px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.stage:hover .stage__b {
  transform: translateX(6px);
}

.stage__t {
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
}

.stage__d {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.stage--violet .stage__c {
  border: 2px solid var(--violet-2);
  color: var(--violet-4);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.6);
}

.stage--violet .stage__b {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(196, 181, 253, 0.3);
}

.stage--teal .stage__c {
  border: 2px solid var(--teal);
  color: var(--teal-3);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.6);
}

.stage--teal .stage__b {
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.3);
}

.stage--scale .stage__c {
  background: linear-gradient(140deg, var(--violet-2), var(--teal));
  color: var(--bg);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.6);
}

.stage--scale .stage__b {
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.14), rgba(45, 212, 191, 0.1));
  border: 1px solid rgba(221, 214, 254, 0.35);
}

/* Со скриптом этап «загорается», когда до него доходит линия */
.js .timeline__fill {
  transform: scaleY(var(--p, 0));
}

.js .stage__c {
  transform: scale(0.86);
  opacity: 0.55;
}

.js .stage.is-active .stage__c {
  transform: none;
  opacity: 1;
}

.js .stage:not(.is-active) .stage__c {
  box-shadow: none;
}

.callout {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 28px;
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(120deg, rgba(45, 212, 191, 0.18), rgba(124, 77, 255, 0.22));
  border: 1px solid rgba(94, 234, 212, 0.35);
}

.callout__t {
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
}

.callout__d {
  max-width: 640px;
  padding-top: 6px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
}

.note {
  padding-top: 24px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-2);
}

.note b {
  color: var(--teal-2);
}

.note span {
  display: block;
  padding-top: 4px;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- Три шага ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px;
  border-radius: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-6px);
}

.step--violet {
  background: linear-gradient(170deg, rgba(167, 139, 250, 0.2), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.step--violet:hover {
  box-shadow: 0 22px 60px -24px rgba(124, 77, 255, 0.7);
}

.step--teal {
  background: linear-gradient(170deg, rgba(45, 212, 191, 0.2), rgba(255, 255, 255, 0.02) 70%);
  border: 1px solid rgba(45, 212, 191, 0.4);
}

.step--teal:hover {
  box-shadow: 0 22px 60px -24px rgba(45, 212, 191, 0.6);
}

/* Стрелка между шагами */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 58px;
  right: -26px;
  width: 14px;
  height: 14px;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
  border-right: 2px solid rgba(255, 255, 255, 0.35);
  transform: rotate(45deg);
}

.step__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--bg);
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
}

.step--violet .step__n {
  background: var(--violet-2);
  box-shadow: 0 0 30px rgba(167, 139, 250, 0.6);
}

.step--teal .step__n {
  background: var(--teal);
  box-shadow: 0 0 30px rgba(45, 212, 191, 0.6);
}

/* Волна от номера шага: по очереди 1 → 2 → 3 */
.step__n::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
}

.step--violet .step__n::after {
  color: var(--violet-2);
}

.step--teal .step__n::after {
  color: var(--teal);
}

.step.is-in .step__n::after {
  animation: ring 2.4s ease-out 0.6s infinite;
}

.step:nth-child(2).is-in .step__n::after {
  animation-delay: 1.4s;
}

.step:nth-child(3).is-in .step__n::after {
  animation-delay: 2.2s;
}

.step__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
}

.step__d {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
}

.tip {
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.3);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-2);
  text-align: center;
}

.tip b {
  color: var(--teal-2);
}

.how__cta {
  padding-top: 32px;
}

/* ---------- Видео ---------- */

.band {
  position: relative;
  margin-top: clamp(84px, 11vw, 128px);
  padding: clamp(72px, 9vw, 104px) 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(124, 77, 255, 0.45), rgba(124, 77, 255, 0) 70%),
    radial-gradient(ellipse 40% 70% at 90% 50%, rgba(45, 212, 191, 0.22), rgba(45, 212, 191, 0) 70%),
    var(--bg-2);
  border-top: 1px solid rgba(196, 181, 253, 0.2);
  border-bottom: 1px solid rgba(94, 234, 212, 0.2);
}

.band__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.band__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.band__text .kicker {
  margin-bottom: 0;
}

.quote {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(24px, 2.8vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.quote span {
  color: var(--teal-2);
}

.band__who {
  font-size: 16px;
  line-height: 1.65;
  color: #c8c2da;
}

.compare {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.compare__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}

.compare__num {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
}

.compare__num--dim {
  color: var(--muted);
}

.compare__label {
  font-size: 14px;
  color: var(--muted);
}

.compare__label--accent {
  color: var(--teal-2);
}

.compare__track {
  position: relative;
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.compare__bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  transform-origin: left;
  transition: transform 1.4s var(--ease) 0.2s;
}

/* 6 месяцев из 24: четверть шкалы */
.compare__bar--short {
  width: 25%;
  background: var(--muted);
}

/* 18–24 месяца: сплошная часть до 18, дальше – размытый край диапазона */
.compare__bar--long {
  width: 100%;
  background: linear-gradient(90deg, var(--violet-2), var(--teal) 75%, rgba(45, 212, 191, 0.25));
  box-shadow: 0 0 18px rgba(45, 212, 191, 0.45);
  transition-delay: 0.45s;
}

.js .compare .compare__bar {
  transform: scaleX(0);
}

.js .compare.is-in .compare__bar {
  transform: none;
}

.video {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #0c0920;
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow: 0 0 80px rgba(124, 77, 255, 0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.video:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 80px -20px rgba(124, 77, 255, 0.6);
}

/* Пока идёт видео, блок не подпрыгивает под курсором */
.video.is-playing:hover {
  transform: none;
}

/* Рамка фокуса внутри: снаружи её обрезает скругление блока */
.video__poster:focus-visible,
.video__iframe:focus-visible {
  outline-offset: -4px;
  border-radius: 24px;
}

.video__frame {
  position: relative;
  aspect-ratio: 684 / 328;
  background: #120c2a;
}

/* Видео 16:9: когда плеер открылся, рамка подстраивается под него */
.video__frame.is-playing {
  aspect-ratio: 16 / 9;
}

.video__poster {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text);
  overflow: hidden;
}

.video__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.video__poster:hover img {
  transform: scale(1.04);
}

.video__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(5, 4, 11, 0), rgba(5, 4, 11, 0.75));
}

.video__play {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--violet-3), #6d28d9);
  box-shadow: 0 0 0 8px rgba(124, 77, 255, 0.25), 0 0 40px rgba(139, 92, 246, 0.9);
  transition: transform 0.3s var(--ease);
}

.video__poster:hover .video__play {
  transform: scale(1.08);
}

.video__play svg {
  margin-left: 3px;
}

.video__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(94, 234, 212, 0.7);
  animation: ring 2.2s ease-out infinite;
}

.video__badge,
.video__time {
  position: absolute;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.6);
  font-size: 13px;
  line-height: 1.3;
}

.video__badge {
  left: 94px;
  bottom: 36px;
}

.video__time {
  right: 18px;
}

.video__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
}

.video__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video__cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
}

.video__who b {
  display: block;
  font-size: 17px;
}

.video__who small {
  display: block;
  padding-top: 3px;
  font-size: 13.5px;
  color: var(--muted);
}

.video__yt {
  flex: none;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Чем поможем ---------- */

.perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.perk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s var(--ease);
}

/* Подсветка за курсором: координаты ставит скрипт */
.perk::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(94, 234, 212, 0.16), rgba(124, 77, 255, 0.08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.perk:hover {
  transform: translateY(-5px);
  border-color: rgba(94, 234, 212, 0.35);
  box-shadow: 0 18px 50px -20px rgba(124, 77, 255, 0.55);
}

.perk:hover::before {
  opacity: 1;
}

.perk--main {
  border-color: rgba(94, 234, 212, 0.3);
  background: linear-gradient(160deg, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 0.03) 60%);
}

.perk__i {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(124, 77, 255, 0.25);
  color: var(--teal-3);
  transition: transform 0.4s var(--ease), background-color 0.4s;
}

.perk:hover .perk__i {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(124, 77, 255, 0.4);
}

.perk__t {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: #042f2e;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.perk__d {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.perk__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--teal-2);
}

/* ---------- Вопросы ---------- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq {
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, background-color 0.3s;
}

.faq[open] {
  border-color: rgba(94, 234, 212, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 18px;
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  color: var(--text);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: #fff;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(45, 212, 191, 0.2);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--teal-3);
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq[open] .faq__icon {
  transform: rotate(45deg);
  background: rgba(45, 212, 191, 0.32);
}

.faq.is-closing .faq__icon {
  transform: none;
}

.faq__a {
  overflow: hidden;
}

.faq__a p {
  padding: 0 24px 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--soft);
}

.faq__a a {
  font-weight: 600;
  color: var(--teal-2);
}

/* ---------- Финальный призыв ---------- */

@property --a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: clamp(44px, 6vw, 84px) 32px;
  border-radius: 36px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgba(124, 77, 255, 0.75), rgba(124, 77, 255, 0) 65%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgba(45, 212, 191, 0.45), rgba(45, 212, 191, 0) 65%),
    var(--bg-3);
}

/* Рамка с бегущим светом */
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--a), rgba(221, 214, 254, 0.18) 0deg, rgba(94, 234, 212, 0.95) 50deg, rgba(167, 139, 250, 0.95) 110deg, rgba(221, 214, 254, 0.18) 160deg, rgba(221, 214, 254, 0.18) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin 7s linear infinite;
  pointer-events: none;
}

/* Медленные пятна света внутри карточки */
.final::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: 60%;
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  margin: -30% 0 0 -30%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.22), rgba(167, 139, 250, 0) 65%);
  animation: drift-3 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.final__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.final__d {
  max-width: 520px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-2);
}

.btn--lg {
  padding: 20px 40px;
}

.final__wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--teal-3);
}

/* ---------- Подвал ---------- */

.footer {
  padding: 72px 0 40px;
}

.footer__in {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--dim);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.footer__mv {
  border: 2px solid var(--text);
  padding: 3px 8px;
  font-weight: 800;
  font-size: 14px;
}

.footer__x {
  color: var(--teal);
}

.footer__aitu {
  height: 32px;
  width: auto;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* ---------- Кнопка внизу экрана на телефоне ---------- */

.mcta {
  display: none;
}

/* ---------- Анимации ---------- */

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.35), 0 0 40px rgba(124, 77, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 32px rgba(45, 212, 191, 0.55), 0 0 60px rgba(124, 77, 255, 0.5);
  }
}

@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.6);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(45, 212, 191, 0);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% 0;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 26px;
  }
}

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

@keyframes cue {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  70% {
    transform: translateY(14px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 0;
  }
}

@keyframes drift-1 {
  to {
    transform: translate3d(8vmax, -4vmax, 0) scale(1.15);
  }
}

@keyframes drift-2 {
  to {
    transform: translate3d(-6vmax, 6vmax, 0) scale(0.9);
  }
}

@keyframes drift-3 {
  to {
    transform: translate3d(-10vmax, -6vmax, 0) scale(1.2);
  }
}

@keyframes spin {
  to {
    --a: 360deg;
  }
}

/* ---------- Адаптив ---------- */

@media (min-width: 1200px) {
  .floaters {
    display: block;
  }
}

@media (max-width: 980px) {
  .band__in {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin: 0 auto;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 640px;
    margin: 0 auto;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .brand {
    gap: 10px;
  }

  .brand__haq {
    font-size: 9px;
  }

  .brand__box {
    padding: 4px 9px;
    font-size: 16px;
  }

  .brand__x {
    font-size: 20px;
    padding-top: 10px;
  }

  .brand__aitu {
    height: 38px;
  }

  .perks {
    grid-template-columns: 1fr;
  }

  .timeline {
    --c: 60px;
  }

  .stage {
    gap: 14px;
  }

  .stage__c {
    font-size: 13px;
  }

  .stage__b {
    padding: 16px 18px;
  }

  .step {
    padding: 26px;
  }

  .video__badge {
    display: none;
  }

  .scroll-cue {
    display: none;
  }

  /* Кнопка «Зарегистрироваться» внизу экрана, пока первый и последний призывы не видны.
     Спрятанная уходит целиком (вместе со свечением) и становится невидимой */
  .mcta {
    position: fixed;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px)));
    transition: transform 0.4s var(--ease), opacity 0.3s, visibility 0s 0.4s;
  }

  .mcta.is-on {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }

  .mcta .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 17px;
  }

  .footer {
    padding-bottom: 104px;
  }
}

@media (max-width: 560px) {
  .topbar__long {
    display: none;
  }

  .topbar__short {
    display: inline;
  }

  .topbar .btn--sm {
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
  }

  .callout {
    padding: 24px 20px;
  }

  .video__cap {
    flex-direction: column;
    align-items: flex-start;
  }

  .video__play {
    left: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .video__play svg {
    width: 20px;
    height: 20px;
  }

  .video__time {
    right: 14px;
    bottom: 14px;
  }

  .faq summary {
    padding: 18px 18px;
    font-size: 17px;
  }

  .faq__a p {
    padding: 0 18px 20px;
    font-size: 16px;
  }

  .final {
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 28px;
  }
}

/* Узкие телефоны: шапка ужимается так, чтобы логотипы и кнопка влезли в одну строку */
@media (max-width: 430px) {
  .topbar__in {
    gap: 10px;
  }

  .brand {
    gap: 6px;
  }

  .brand__haq {
    display: none;
  }

  .brand__box {
    padding: 3px 7px;
    font-size: 14px;
  }

  .brand__x {
    font-size: 16px;
    padding-top: 0;
  }

  .brand__aitu {
    height: 30px;
  }

  .topbar .btn--sm {
    padding: 9px 13px;
    font-size: 13px;
  }

  .topbar .btn--sm svg {
    display: none;
  }

  .btn--lg {
    padding: 18px 24px;
    font-size: 17px;
  }
}

/* Самые узкие (360 px и уже): кнопка регистрации остаётся на первом экране и внизу экрана */
@media (max-width: 370px) {
  .topbar .btn {
    display: none;
  }
}

/* Кто попросил меньше движения – всё сразу на месте, без анимаций */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal]:not(.is-in) {
    opacity: 1;
    translate: none;
  }

  .js .compare .compare__bar,
  .js .stage__c {
    opacity: 1;
    transform: none;
  }

  .js .timeline__fill {
    transform: none;
  }
}

@media print {
  .topbar,
  .mcta,
  .scroll-cue,
  .floaters {
    display: none !important;
  }

  .js [data-reveal]:not(.is-in) {
    opacity: 1;
    translate: none;
  }
}
