/* ============================================================
   CALIPTA — v4 «awesomic-грамматика»: нейтральный zinc-фон,
   Manrope, сплошные заливки блоков, обводка — только акценты.
   Кнопки графит (obsidian), изумруд — смысловые детали,
   терракота — ember-акценты. Радиусы крупнее, теней почти нет.
   ============================================================ */

/* ---------- Токены ---------- */
:root {
  /* Поверхности (zinc-шкала, как у awesomic) */
  --bg: #f4f4f5;            /* paper — фон страницы */
  --bg-soft: #ececee;       /* cloud — маркиза, подложки */
  --surface: #ffffff;       /* snow — карточки */
  --ink: #18181b;           /* graphite — текст */
  --text-dim: #52525b;      /* steel */
  --text-faint: #71717a;    /* fog */
  --line: #e4e4e7;          /* тонкие бордеры-акценты */
  --line-soft: #ececee;

  /* Плотные заливки */
  --dark: #27272a;          /* slate — тёмные блоки */
  --obsidian: #09090b;      /* primary CTA, акцентные плашки */
  --mint-fill: #e4efe9;     /* сплошная мятная */
  --peach-fill: #f3ece5;    /* сплошная песочная (приглушённая) */
  --cream: #f4f4f5;

  /* Акценты */
  --accent: #1d6e52;        /* изумруд — только детали */
  --accent-soft: #e4efe9;
  --terra: #c96b4a;         /* ember-роль: бейджи, звёзды */
  --terra-deep: #b25a3c;

  /* Типографика: один шрифт, плотный трекинг на крупном */
  --font-display: "Manrope", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Радиусы: крупная графика */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-card: 36px;

  /* Интервалы */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-med: 250ms;
  --t-slow: 350ms;

  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

::selection { background: var(--obsidian); color: #fff; }

.container {
  width: min(var(--container), 100% - var(--sp-5) * 2);
  margin-inline: auto;
}

/* ---------- Зерно: едва заметная бумага ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Кнопки: графит, радиус 14 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}

.btn--sm { padding: 9px 18px; font-size: 14px; }

/* Primary — как у awesomic: obsidian + ring + мягкая тень */
.btn--primary {
  background: var(--obsidian);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 0 0 1px #2c2e34,
              0 8px 20px rgba(9, 9, 11, 0.16);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: #1d1d21;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 0 0 1px #2c2e34,
              0 14px 32px rgba(9, 9, 11, 0.22);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #c9c9ce;
}

/* Терракотовая (ember) — только для AI-CTA */
.btn--terra {
  background: var(--terra);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18),
              0 8px 20px rgba(201, 107, 74, 0.28);
}
.btn--terra:hover {
  transform: translateY(-2px);
  background: var(--terra-deep);
}

.btn__icon { flex: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(244, 244, 245, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand { display: inline-flex; align-items: center; }

/* Лого CALIPTA: одноцветный SVG (symbol), цвет — currentColor (тёмный graphite) */
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  aspect-ratio: 385 / 112;   /* пропорции лого без полей */
  color: var(--ink);
}
.site-footer .brand__logo { height: 88px; color: var(--ink); }

.site-header__contacts {
  display: flex;
  gap: var(--sp-5);
  font-size: 14px;
}
.header-link { color: var(--text-dim); transition: color var(--t-fast) var(--ease); }
.header-link:hover { color: var(--ink); }

.site-header__actions { display: flex; align-items: center; gap: var(--sp-4); }

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 700;
}
.lang-switch__item {
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.lang-switch__item.is-current {
  background: var(--obsidian);
  color: #fff;
}
a.lang-switch__item:hover { color: var(--ink); }

/* ---------- Секции: общее ---------- */
section { position: relative; }

.section-head { margin-bottom: var(--sp-7); max-width: 760px; }

.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-5);
}

.section-head__eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: var(--sp-3);
}
.section-head__eyebrow--terra { color: var(--terra); }

.section-head__title {
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

/* ---------- Герой: центрированная колонка (bevel-лейаут) ---------- */
.hero {
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: clip;
  position: relative;
}

.hero__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.55; }
}

.hero__title {
  margin: var(--sp-4) 0 var(--sp-3);
  max-width: 820px;
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 54px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--accent);
  white-space: nowrap; /* фраза-акцент не рвется между строками */
}

.hero__subtitle {
  max-width: 560px;
  font-size: clamp(16px, 1.4vw, 18.5px);
  color: var(--text-dim);
}

/* ---------- Мокап телефона (герой): по центру, обрезан низом ---------- */
.hero__phone-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: var(--sp-7);
  margin-bottom: clamp(-120px, -9vw, -70px); /* низ уходит за край секции */
}

.phone {
  position: relative;
  width: min(330px, 76vw);
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(4deg); }
  50% { transform: translateY(-10px) rotate(4deg); }
}

/* Мокап героя: изображение уже содержит корпус телефона —
   никаких рамок и скруглений; от нас только тень и лёгкий наклон (phone-float) */
.phone--hero {
  width: min(320px, 78vw);
  filter: drop-shadow(0 26px 50px rgba(24, 24, 27, 0.24));
}
.phone__shot {
  aspect-ratio: 830 / 1686;   /* пропорции изображения-мокапа */
}
.phone__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone__frame {
  position: relative;
  aspect-ratio: 9 / 19.2;
  border-radius: 46px;
  background: linear-gradient(160deg, #3a3a3f, #131316);
  padding: 10px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16),
              inset 0 -14px 34px rgba(0, 0, 0, 0.4),
              0 34px 80px rgba(24, 24, 27, 0.26);
}

.phone__island {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 24px;
  border-radius: 999px;
  background: #0c0c0e;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.phone__screen {
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #fafafa;
  position: relative;
}

.phone__shadow {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -34px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(24, 24, 27, 0.2), transparent 70%);
  filter: blur(6px);
  animation: shadow-breathe 6s ease-in-out infinite;
}
@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.88); opacity: 0.62; }
}

/* ---------- Плавающая CTA: внизу по центру, поверх всего ---------- */
.floating-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 20px);
  z-index: 30; /* выше контента и шапки, ниже лайтбокса */
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 15px 30px;
  border-radius: 14px;
  background: var(--obsidian);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
              0 0 0 1px #2c2e34,
              0 12px 36px rgba(9, 9, 11, 0.35);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease),
              opacity var(--t-slow) var(--ease),
              background var(--t-med) var(--ease);
}
/* Появление после загрузки (класс добавляет JS) */
.floating-cta.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}
.floating-cta.is-in:hover {
  background: #1d1d21;
  transform: translate(-50%, -2px);
}
/* Скрываем, когда на экране уже секция скачивания */
.floating-cta.is-hidden {
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
}

/* Запас внизу страницы, чтобы кнопка не накрывала контент наглухо */
/* Отступ под плавающую CTA — на main, чтобы под футером не оставалось полосы фона */
main { padding-bottom: 84px; }

/* ---------- Маркиза ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
  padding: var(--sp-4) 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding-right: var(--sp-6);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.marquee__group i {
  font-style: normal;
  color: var(--terra);
  font-size: 11px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Группы преимуществ: bevel-паттерн (заголовок + список + визуал, обрезанный нижним краем) ---------- */
.groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.group-card {
  display: flex;
  flex-direction: column;
  min-height: 500px;
  padding: 36px 32px 0;
  border-radius: 36px;
  overflow: hidden;
}

.group-card--mint  { background: var(--mint-fill); }
.group-card--cloud { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.group-card--sand  { background: var(--peach-fill); }

.group-card h3 {
  font-size: clamp(22px, 1.8vw, 27px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.group-card__list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  list-style: none;
}

.group-card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

.group-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.group-card--mint  .group-card__list li::before { background: var(--accent); }
.group-card--cloud .group-card__list li::before { background: var(--obsidian); }
.group-card--sand  .group-card__list li::before { background: var(--terra); }

/* Визуал: панель «вырастает» из нижнего края карточки и срезается им */
.group-card__visual {
  margin-top: auto;
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.gv {
  width: min(100%, 300px);
  padding: 18px;
  margin-bottom: -64px;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: 0 -12px 32px rgba(24, 24, 27, 0.07);
}

.group-card--cloud .gv { background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }

/* Визуал «Безопасность»: чек-лист верификации */
.gv--shield { display: grid; }

.gv__row { display: flex; align-items: center; gap: 12px; padding: 9px 0; }

.gv__check {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
}

.gv__check::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 5px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gv__line { display: block; height: 8px; border-radius: 99px; background: var(--line); }

/* Визуал «Поиск»: карточки сравнения хирургов (открыт почти целиком — обе строки сравнения) */
.gv--compare { display: grid; gap: 10px; margin-bottom: -12px; }

.gv__doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--bg);
}

.group-card--cloud .gv__doc { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.gv__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2f9b77);
}

.gv__doc:last-child .gv__avatar { background: linear-gradient(135deg, var(--terra), #d98a68); }

.gv__lines { display: grid; gap: 6px; flex: 1; }
.gv__lines i { display: block; height: 7px; border-radius: 99px; background: var(--line); }

/* Визуал «Привилегии»: скидка + способы оплаты */
.gv--pay { display: grid; justify-items: center; gap: 12px; text-align: center; padding-bottom: 26px; }

.gv__sum {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--terra);
}

.gv__pay-meta { font-size: 12px; font-weight: 600; color: var(--text-faint); }

.gv__methods { display: flex; gap: 8px; }

.gv__methods span {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (max-width: 1080px) {
  .groups { grid-template-columns: 1fr; }
  .group-card { min-height: 0; }
}

@media (max-width: 640px) {
  .group-card { padding: 28px 22px 0; border-radius: 28px; }
  .gv { width: 100%; }
}

/* ---------- Функции: заголовок-ступенька + горизонтальная лента (anchor-паттерн) ---------- */
.features { padding: calc(var(--sp-7) + 72px) 0 var(--sp-9); } /* верх: 48 + 72 */

.cards-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-6);
  margin: 196px 0 0;
}

/* Текстовая колонка: заголовок поднят высоко, подзаголовок прижат вправо */
.cards-head__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}

.cards-head__title {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 560px;
}

.cards-head__text {
  max-width: 320px;
  margin: 24px 0 0 auto;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text-dim);
}

/* Иллюстрация справа: SVG-птица (плашка/мокап из div'ов скрыты в HTML) */
.cards-head__illustration {
  position: relative;
  z-index: -1;
  flex: none;
  width: min(39.4vw, 568px);
}
.cards-head__bird {
  display: block;
  width: 100%;
  height: auto;
}

.ill-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 94.2%;
  height: 100%;
  border-radius: 24px;
  background: var(--mint-fill);
}

.ill-composition {
  position: absolute;
  inset: 96px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

/* Мокап телефона */
.ill-phone {
  position: relative;
  z-index: 2;
  width: 208px;
  height: 420px;
  padding: 18px 16px;
  border-radius: 32px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ill-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  border-radius: 99px;
  background: var(--line);
}

.ill-row {
  height: 64px;
  border-radius: 16px;
  background: var(--bg);
}

.ill-row--accent { background: var(--mint-fill); }
.ill-row--wide { height: 28px; background: var(--line); opacity: 0.6; }

.ill-cta {
  margin-top: auto;
  height: 40px;
  border-radius: 14px;
  background: var(--obsidian);
}

/* Карточка-отзыв слева */
.ill-card--review {
  position: relative;
  z-index: 3;
  align-self: flex-end;
  margin-right: -28px;
  margin-bottom: 64px;
  width: 176px;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.12);
  transform: rotate(-5deg);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ill-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #2f9b77);
}

.ill-lines { display: grid; gap: 6px; flex: 1; }
.ill-lines i { display: block; height: 6px; border-radius: 99px; background: var(--line); }

/* Бейдж-щит справа */
.ill-card--shield {
  position: relative;
  z-index: 3;
  align-self: flex-start;
  margin-left: -26px;
  margin-top: 72px;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(24, 24, 27, 0.12);
  transform: rotate(6deg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ill-check {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
}

.ill-check::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  width: 9px;
  height: 16px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* Лента карточек: уходит за правый край, скролл без полосы.
   overflow-y: hidden обязателен: при overflow-x: auto браузер сам
   делает вторую ось скроллируемой, и появляется лишний вертикальный скролл */
.cards-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 423px;
  gap: 12px;
  /* Отступ от блока с заголовком/иллюстрацией (прежде был наезд −80px
     на высокую CSS-композицию; с SVG-птицей наезд не нужен) */
  margin-top: var(--sp-6);
  position: relative;
  width: 100%;
  padding-left: max(var(--sp-5), calc((100vw - var(--container)) / 2));
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cards-row::-webkit-scrollbar { display: none; }

/* Карточка: 423×220, текст сверху с выключкой вправо, заголовок снизу */
.cards-row__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 250px;
  padding: 32px 32px 36px;
  border-radius: 20px;
  background: var(--mint-fill);
}

.cards-row__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.cards-row__icon { flex: none; width: 30px; height: 30px; color: var(--accent); }

.cards-row__top p {
  max-width: 254px;
  margin-left: auto;
  font-size: 16px;
  line-height: 1.44;
  text-align: right;
  color: var(--text-dim);
}

.cards-row__card h3 {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 350px;
}

@media (max-width: 900px) {
  .cards-head { flex-direction: column; margin-top: 96px; }
  .cards-row { margin-top: 0; } /* наезд ленты — только десктопный эффект */
  .cards-head__col { padding-top: 0; }
  .cards-head__illustration { width: 100%; }
  .ill-phone { width: 170px; height: 320px; }
  .ill-row { height: 48px; }
  .cards-head__text { margin-left: 0; margin-top: 20px; font-size: 14px; }
  .cards-row { grid-auto-columns: 300px; }
  .cards-row__card { padding: 24px 26px 24px 24px; min-height: 190px; border-radius: 16px; }
  .cards-row__icon { width: 20px; height: 20px; }
  .cards-row__top p { font-size: 13px; max-width: 180px; }
  .cards-row__card h3 { font-size: 24px; }
}

/* ---------- Шаги: sticky-телефон ---------- */
.steps { padding: var(--sp-9) 0; }

.steps__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--sp-8);
  align-items: start;
}

.steps__phone {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-5));
  display: flex;
  justify-content: center;
}

/* Телефон шагов: корпус нарисован в самих изображениях — только тень.
       Ширину держим чуть больше прежней, т.к. в картинке есть поля вокруг корпуса */
.steps__phone .phone {
  position: relative;
  width: min(300px, 46vw);
  aspect-ratio: 849 / 1724;
  animation: none;
  filter: drop-shadow(0 22px 44px rgba(24, 24, 27, 0.22));
}

.steps__list { position: relative; max-width: 640px; }

.steps__list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 84px;   /* центр первого круга (padding 56 + r 28) */
  bottom: 84px; /* центр последнего круга */
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.steps__progress {
  position: absolute;
  left: 27px;
  top: 84px;
  bottom: 84px;
  z-index: 0;
  width: 2px;
  border-radius: 2px;
  background: var(--obsidian);
  transform-origin: top;
  transform: scaleY(0);
}

.step {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--sp-5);
  padding: 56px 0;
  opacity: 0.45;
  transition: opacity var(--t-med) var(--ease);
}
.step.is-active { opacity: 1; }

.step__num {
  flex: none;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 800;
  font-size: 15px;
  color: var(--text-dim);
  z-index: 1;
  transition: box-shadow var(--t-med) var(--ease), color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.step.is-active .step__num {
  color: #fff;
  background: var(--obsidian);
  box-shadow: 0 8px 20px rgba(9, 9, 11, 0.2);
}

.step__body h3 {
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 22px);
  letter-spacing: -0.015em;
  margin-bottom: var(--sp-2);
  padding-top: var(--sp-2);
}
.step__body p { color: var(--text-dim); max-width: 560px; font-size: 15.5px; }

/* Экраны шагов: изображения с нарисованным мокапом; смена — чистый кроссфейд,
   без смещения и масштаба (размер картинки не меняется) */
.app-screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none;
}
.app-screen.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Отзывы: лента ---------- */
.reviews { padding: var(--sp-9) 0; overflow: hidden; }

/* Лента отзывов: на всю ширину экрана, 3 карточки 16:9 + аффорданс 4-й */
.reviews__rail {
  display: flex;
  gap: var(--sp-4);
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  padding: var(--sp-2) 0 var(--sp-4);
  padding-left: max(var(--sp-5), calc((100vw - var(--container)) / 2));
  scrollbar-width: none;
  /* Мягкий вход слева; справа без затухания — чёткий край и ровный gap у аффорданса */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000);
          mask-image: linear-gradient(90deg, transparent, #000 2%, #000);
}
.reviews__rail::-webkit-scrollbar { display: none; }

.vcard {
  position: relative;
  flex: none;
  /* Ширина от вьюпорта: 3 карточки целиком (1400–1600) + ~30% 4-й как аффорданс за краем.
     3.25 = 3 карточки + 0.25 видимой части следующей; вычитаем левый отступ ленты и 2 гэпа */
  width: calc((100vw - max(var(--sp-5), (100vw - var(--container)) / 2) - var(--sp-4) * 2) / 3.25);
  aspect-ratio: 16 / 9;   /* пропорция самих видео-отзывов (Kinescope) */
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  align-content: center;
  gap: var(--sp-3);
  /* Постер — фон кнопки: cover через background-size, не зависит от позиционирования */
  background: var(--dark) center / cover no-repeat;
  color: var(--cream);
  transition: transform var(--t-med) var(--ease);
}
.vcard:hover { transform: translateY(-4px); }

/* Постер видео: абсолютный фон карточки */
/* Затемнение к низу — между постером и содержимым */
.vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(9, 9, 11, 0) 40%, rgba(9, 9, 11, 0.45));
  pointer-events: none;
}

/* Кнопка и подпись — поверх затемнения; тают, когда видео заиграло */
.vcard__play,
.vcard__label {
  position: relative;
  z-index: 1;
  transition: opacity var(--t-fast) var(--ease);
}
.vcard.is-playing .vcard__play,
.vcard.is-playing .vcard__label {
  opacity: 0;
  pointer-events: none;
}

.vcard__play {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--obsidian);
  box-shadow: 0 8px 24px rgba(9, 9, 11, 0.2);
  transition: transform var(--t-fast) var(--ease);
}
.vcard:hover .vcard__play { transform: scale(1.08); }

.vcard__label {
  text-shadow: 0 1px 8px rgba(9, 9, 11, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.vcard--more {
  background: var(--obsidian);
  color: var(--cream);
}
.vcard--more .vcard__count {
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -0.02em;
}
.vcard--more .vcard__label { color: #e8b294; }

.vcard .vframe {
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: inherit;
  width: 100%;
  height: 100%;
  /* Плеер скрыт, пока видео не начало играть: наш фасад закрывает его кнопку Play */
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.vcard.is-playing .vframe { opacity: 1; }

/* Мобильная ширина карточки: объявлена ПОСЛЕ базовой, иначе каскад
   оставляет десктопную calc-ширину (порядок правил в media выше не спасал) */
@media (max-width: 900px) {
  .vcard { width: 300px; }
}

/* ---------- AI-блок: терракотовая плашка (ember) ---------- */
.ai { padding: var(--sp-4) 0 var(--sp-9); }

/* AI-баннер: плоское светлое поле (тон-степ от фона страницы), воздух,
   акцент — только терракотовая кнопка; без градиента, блика и надзаголовка */
.ai__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding: clamp(64px, 9vw, 104px) clamp(40px, 6vw, 88px);
  border-radius: var(--r-card);
  background: var(--bg-soft);
  color: var(--ink);
}

.ai__text { max-width: 560px; }

.ai__title {
  font-weight: 600;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}
.ai__sub { color: var(--text-dim); font-size: 17px; line-height: 1.55; }

/* Кнопка баннера: фирменный бирюзовый градиент (в духе Telegram) */
.ai__inner .btn--terra { background: linear-gradient(135deg, #066 0%, #00AC9A 50%, #48D1C1 100%); }
.ai__inner .btn--terra:hover { filter: brightness(1.06); }

/* ---------- Установка ---------- */
.download { padding: var(--sp-9) 0; }

.download__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--sp-8);
  align-items: center;
}

.download__title {
  font-weight: 800;
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}
.download__sub { color: var(--text-dim); margin-bottom: var(--sp-6); font-size: 16.5px; }

.download__stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: var(--sp-3);
}

.store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  background: var(--obsidian);
  color: var(--cream);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
a.store:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(9, 9, 11, 0.28);
}
.store__icon {
  flex: none;
  width: 34px;
  height: 34px;
  fill: #fff;
}
.store__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.store__name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.store__hint { font-size: 13px; color: rgba(244, 244, 245, 0.6); }

.download__note {
  margin-top: var(--sp-5);
  font-size: 14px;
  color: var(--text-faint);
}
.download__note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.download__note a:hover { color: var(--ink); }

.download__qr {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
}

.qr {
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: #ffffff;
  box-shadow: 0 0 0 1px var(--line-soft),
              0 10px 30px rgba(24, 24, 27, 0.1);
  transition: transform var(--t-med) var(--ease);
}
.qr:hover { transform: translateY(-4px); }
.qr img { border-radius: 6px; }
.qr span { font-size: 12px; font-weight: 700; color: var(--ink); }

/* ---------- Футер: obsidian ---------- */
.site-footer {
  background: var(--bg-soft);
  color: var(--ink);
  padding: var(--sp-9) 0 var(--sp-7);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 0.7fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
}

.site-footer__tagline {
  margin-top: var(--sp-5);
  max-width: 340px;
  color: var(--text-dim);
  font-size: 16px;
}
.site-footer__contacts {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  font-size: 16px;
}
.site-footer__contacts a { color: var(--text-dim); }
.site-footer__contacts a:hover { color: var(--ink); }

.site-footer__nav { display: grid; gap: var(--sp-5); align-content: start; font-size: 16px; }
.site-footer__nav a { color: var(--text-dim); transition: color var(--t-fast) var(--ease); }
.site-footer__nav a:hover { color: var(--ink); }

.site-footer__social { display: flex; gap: var(--sp-2); align-items: start; }
.site-footer__social a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13.5px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.site-footer__social a:hover { color: var(--ink); background: #ddddf1; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(24, 24, 27, 0.12);
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ---------- Лайтбокс ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: var(--sp-5);
}
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: var(--sp-5);
  border-radius: var(--r-card);
  background: var(--bg);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
  animation: lightbox-in var(--t-slow) var(--ease);
}
@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.lightbox__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.lightbox__title { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }

.lightbox__close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.lightbox__close:hover { color: var(--ink); box-shadow: inset 0 0 0 1px #c9c9ce; }

.lightbox__videos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.vcard--static {
  width: 100%;
  aspect-ratio: 16 / 9;   /* та же пропорция, что и карточки ленты */
  cursor: pointer;
  place-items: center;
  display: grid;
  align-content: end;
  padding: var(--sp-4);
}

/* ---------- Reveal-анимации ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }

.hero .reveal { transition-delay: var(--hero-delay, 0ms); }
.hero .reveal.is-in { transition-duration: 0.7s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero__grid { flex-direction: column; }
  .hero__phone-wrap { margin-top: var(--sp-4); }

  .steps__stage { grid-template-columns: 1fr; }
  .steps__phone { position: static; margin-bottom: var(--sp-6); }

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

  .download__inner { grid-template-columns: 1fr; gap: var(--sp-6); }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }

  .lightbox__videos { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 16px; }

  .site-header__contacts { display: none; }

  .hero { padding-top: calc(var(--header-h) + var(--sp-8)); }
  .hero__phone-wrap { margin-top: var(--sp-5); margin-bottom: -70px; }
  .phone { width: min(260px, 68vw); }

  .steps__list::before, .steps__progress { left: 23px; top: 80px; bottom: 80px; }
  .step { gap: var(--sp-4); }
  .step__num { width: 48px; height: 48px; font-size: 13px; }

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

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

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

@media (max-width: 520px) {

  .site-footer__inner { grid-template-columns: 1fr; gap: var(--sp-5); }

  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Тестовая среда (headless): мгновенные состояния ---------- */
.no-anim *,
.no-anim *::before,
.no-anim *::after {
  transition: none !important;
  animation: none !important;
}

/* ---------- Доступность: меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .marquee__track { animation: none; }
  .hero__scroll-line { animation: none; }
  .hero__badge-dot { animation: none; }
  .phone { animation: none; }
  .phone__shadow { animation: none; }

  .reveal { opacity: 1; transform: none; transition: none; }
  .step { opacity: 1; }
}
