/* Лендинг Gargona — редизайн 2026-08.

   Айдентика (2026-08, «убрать зелень»): нейтральный чернильный грунт, главный
   акцент — индиго-барвинок (заодно перекликается с фиолетом панели), вторичный —
   тёплая бронза для баланса; зелёный остался только как редкий success. Дисплей
   Unbounded, текст Golos Text, данные/цены JetBrains Mono. Шрифты — fonts.css.

   Имена переменных сохранены прежними (--purple = главный акцент, --cyan =
   вторичный): их читают blog.css и legal.css, менять имена значило бы править
   и их. Значения — новые. */

:root {
  /* Нейтральный чернильный фон (без зелёного подтона), индиго-акцент с бронзовым
     балансом. Раньше вся палитра — фон, текст, линии, акцент — была зелёной, отчего
     сайт «зеленил» целиком; теперь зелёного нет нигде, кроме редкого success. */
  --bg: #0b0b0f;
  --bg-2: #101016;
  --surface: rgba(23, 23, 30, .72);
  --surface-solid: #15151c;
  --surface-2: rgba(33, 33, 44, .66);
  --text: #ecedf3;
  --muted: #a3a4b6;
  --faint: #6a6b7d;
  --line: rgba(236, 237, 243, .08);
  --line-strong: rgba(236, 237, 243, .16);
  /* Имена --purple* сохранены (их читают blog.css/legal.css) — сменились ЗНАЧЕНИЯ:
     вердигри-зелёный → индиго-барвинок, главный акцент сайта. */
  --purple: #897cf2;
  --purple-2: #6d5ce6;
  --purple-3: #c8bfff;
  --cyan: #e0a35c;
  --green: #4bd6a0;
  --orange: #ffb86b;
  --red: #ff7a8a;
  --fill: rgba(137, 124, 242, .10);
  --shadow: 0 30px 80px rgba(0, 0, 0, .45);
  --radius: 20px;
  --radius-sm: 12px;
  --header: rgba(11, 11, 15, .72);
  --font-display: 'Unbounded', 'Golos Text', sans-serif;
  --font-body: 'Golos Text', ui-sans-serif, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

/* Светлую тему сайт не показывает (base.html ставит data-theme="dark"),
   но блок оставлен согласованным с палитрой на случай возврата переключателя. */
html[data-theme="light"] {
  --bg: #f5f5f8;
  --bg-2: #ececf2;
  --surface: rgba(255, 255, 255, .8);
  --surface-solid: #ffffff;
  --surface-2: rgba(243, 243, 248, .9);
  --text: #17171f;
  --muted: #5c5d6c;
  --faint: #8a8b98;
  --line: rgba(23, 23, 31, .1);
  --line-strong: rgba(23, 23, 31, .18);
  --purple: #5b4fd0;
  --purple-2: #4a3fbf;
  --purple-3: #3a30a0;
  --cyan: #a86a1e;
  --green: #12885f;
  --orange: #b76413;
  --red: #c83958;
  --fill: rgba(91, 79, 208, .08);
  --shadow: 0 24px 70px rgba(28, 24, 48, .14);
  --header: rgba(245, 245, 248, .8);
  color-scheme: light;
}

* { box-sizing: border-box; }
/* scroll-padding-top ≈ высоте липкого навбара (~72px) + небольшой воздух: якорный
   переход останавливается прямо под шапкой, а не заметно ниже неё. */
html { scroll-behavior: smooth; scroll-padding-top: 78px; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(60rem 34rem at 82% -6%, rgba(137, 124, 242, .07), transparent 62%),
    radial-gradient(46rem 30rem at -8% 30%, rgba(224, 163, 92, .05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 55%, var(--bg));
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.18; font-weight: 600; text-wrap: balance; }
p { margin: 0; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-3); }

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

::selection { background: rgba(137, 124, 242, .28); }

.shell {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ---------- типографика разделов ---------- */

.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}
.kicker-bronze { color: var(--cyan); }

.section { padding: 72px 0; }
.section-tight { padding: 44px 0; }

.section-head { max-width: 720px; margin-bottom: 40px; }

/* Тарифы — самая высокая секция: компактнее по вертикали, чтобы влезала в экран и
   при переходе по якорю «Тарифы» сетка была видна, а не только заголовок с пустотой. */
#plans { padding-top: 54px; padding-bottom: 60px; }
#plans .section-head { margin-bottom: 26px; }
#plans .section-title { font-size: clamp(22px, 2.6vw, 32px); }
#plans .section-copy { margin-top: 12px; font-size: 14.5px; }
#plans .plan-full { padding: 22px 24px; }
#plans .plan-price { margin: 16px 0; }
#plans .plan-full > p { margin-top: 10px; }
#plans .plan-features { margin-bottom: 14px; gap: 8px; }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.section-copy { margin-top: 16px; color: var(--muted); max-width: 62ch; }

.mono-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
  letter-spacing: .04em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--font-body);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--purple);
  color: #15121f;
}
.btn-primary:hover { background: var(--purple-3); color: #15121f; }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple-3); }

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-wide { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 14px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: var(--text);
  letter-spacing: .01em;
}
.brand:hover { color: var(--text); }
.brand-mark { width: 28px; height: auto; }

.desktop-nav {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.desktop-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}
.desktop-nav a:hover { color: var(--text); background: var(--fill); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

/* меню языков — разметку читает js/core/lang-menu.js */
.lang-menu-wrap { position: relative; }
.lang-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 600 13px/1 var(--font-mono);
  cursor: pointer;
}
.lang-menu-trigger:hover { border-color: var(--purple); }
.lang-menu-chevron { transition: transform .16s ease; }
.lang-menu-wrap.open .lang-menu-chevron { transform: rotate(180deg); }
.lang-menu-list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  display: none;
  z-index: 60;
}
.lang-menu-wrap.open .lang-menu-list { display: block; }
.lang-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--text);
  font-size: 14px;
}
.lang-menu-item:hover { background: var(--fill); color: var(--text); }
.lang-menu-item.is-on { color: var(--purple); }
.lang-menu-code {
  font: 600 11.5px/1 var(--font-mono);
  color: var(--faint);
  width: 22px;
}
.lang-menu-item.is-on .lang-menu-code { color: var(--purple); }

.mobile-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 2px;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  font-weight: 500;
}
.mobile-panel a:hover { background: var(--fill); }
.mobile-panel .mobile-cta { color: var(--purple); font-weight: 600; }

/* ---------- hero ---------- */

/* Верхний отступ маленький: hero-арт выше текстовой колонки, а align-items: center
   и так добавляет тексту воздуха сверху — с большим паддингом между навбаром и
   пилюлей зияла пустота. */
.hero { padding: 36px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--fill);
  font: 600 12.5px/1.2 var(--font-mono);
  letter-spacing: .06em;
  color: var(--purple-3);
  margin-bottom: 26px;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 rgba(137, 124, 242, .5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(137, 124, 242, .45); }
  70% { box-shadow: 0 0 0 9px rgba(137, 124, 242, 0); }
  100% { box-shadow: 0 0 0 0 rgba(137, 124, 242, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.16;
  letter-spacing: -.015em;
}
.accent-text { color: var(--purple); }

.hero-lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: 17.5px;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero-note {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--faint);
}

.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; gap: 3px; }
.hero-stat b {
  font-family: var(--font-display); font-weight: 600; font-size: 23px; line-height: 1;
  color: var(--text); letter-spacing: -0.015em; font-variant-numeric: tabular-nums;
}
.hero-stat span { font-size: 12.5px; color: var(--muted); }
.hero-stat-sep { width: 1px; height: 32px; background: var(--line-strong); }

/* hero-арт: крупная композиция уходит за правый край экрана, а левый край мягко
   растворяется под текстом (маска-градиент) — чтобы картинка «обнимала» заголовок,
   а не висела мелкой карточкой справа. Текст поверх (z-index). */
.hero-copy { position: relative; z-index: 2; }
.hero-art {
  margin: 0;
  position: relative;
  z-index: 1;
  align-self: center;
}
/* индиго-ореол позади арта — глубина и «свет» без зелени, маской картинки не режется */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -16% -16% -20% -30%;
  background: radial-gradient(58% 58% at 60% 46%, rgba(137, 124, 242, .22), transparent 70%);
  filter: blur(26px);
  z-index: -1;
  pointer-events: none;
}
/* Общий вынос за правый край + мягкое растворение левого края переехали с одиночной
   картинки на контейнер слайдов — чтобы одинаково работало для webp и для коллажей. */
.hero-slides {
  position: relative;
  width: 138%;
  max-width: none;
  margin-left: -20%;
  -webkit-mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .45) 8%, #000 22%, #000 100%);
          mask-image: linear-gradient(to right, transparent 0, rgba(0, 0, 0, .45) 8%, #000 22%, #000 100%);
}
.hero-slide { transition: opacity .8s ease; }
.hero-slide:first-child { position: relative; }          /* держит высоту фигуры */
.hero-slide:not(:first-child) { position: absolute; inset: 0; }
.hero-slide:not(.is-active) { opacity: 0; pointer-events: none; }
.hero-slide.is-active { opacity: 1; z-index: 2; }
.hero-art img { display: block; width: 100%; }
.hero-webp { border-radius: var(--radius); box-shadow: 0 34px 90px rgba(0, 0, 0, .55); }

/* коллаж в стиле готового hero-webp: крупный центральный кадр + плавающие панели по
   углам, БЕЗ браузерной рамки, со свечением; overflow:hidden держит сцену в рамках
   (уголки панелей мягко срезаются — как в исходном коллаже). Разное расположение. */
.hero-collage { overflow: hidden; border-radius: var(--radius); }
.hc-shot {
  position: absolute; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line-strong); background: var(--surface-solid);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
}
.hc-shot img { display: block; width: 100%; }
/* Плоско и ровно, без наклонов — как на основном hero: центральный крупный кадр и
   ещё четыре панели по углам, собранные в одну плотную сцену. Одинаковая раскладка
   для всех слайдов-коллажей (отличаются только сами экраны). */
.hc-main { z-index: 1; box-shadow: 0 34px 88px rgba(0, 0, 0, .58); top: 19%; left: 20%; width: 58%; }
.hc-tl, .hc-tr, .hc-bl { z-index: 2; }
.hc-br { z-index: 3; }
.hc-tl { top: -3%; left: -4%; width: 37%; }
.hc-tr { top: 3%; right: -5%; width: 34%; }
.hc-bl { bottom: -5%; left: -5%; width: 38%; }
.hc-br { bottom: -3%; right: -4%; width: 35%; }

/* Просмотр экранов на весь экран: курсор-лупа, всплывающий значок на панелях,
   постоянная подсказка-кнопка в углу hero и сам лайтбокс. */
.hero-art img { cursor: zoom-in; }
.hc-shot::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 26px; height: 26px;
  border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .2s ease;
  background: rgba(12, 12, 18, .55) center / 14px 14px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.hero-collage:hover .hc-shot::after { opacity: .85; }
.hc-shot:hover::after { opacity: 1; }

.hero-zoom-hint {
  position: absolute; top: 12px; right: 12px; z-index: 5; cursor: zoom-in;
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px;
  border-radius: 999px; font: 600 12.5px/1 var(--font-body); color: var(--text);
  background: rgba(14, 14, 20, .62); border: 1px solid var(--line-strong);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .38);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .2s ease, transform .2s ease;
}
.hero-zoom-hint:hover { background: rgba(26, 26, 36, .82); transform: translateY(-1px); }
.hero-zoom-hint svg { width: 15px; height: 15px; color: var(--purple-3); }
@media (max-width: 560px) { .hero-zoom-hint span { display: none; } .hero-zoom-hint { padding: 9px; } }

.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 24px;
  background: rgba(6, 6, 10, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; animation: lb-fade .2s ease; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-img {
  max-width: 92vw; max-height: 88vh; border-radius: 14px;
  border: 1px solid var(--line-strong); box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.lb-close, .lb-nav {
  position: absolute; z-index: 2; cursor: pointer; color: var(--text);
  background: rgba(22, 22, 30, .7); border: 1px solid var(--line-strong);
  border-radius: 999px; display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.lb-close { top: 20px; right: 24px; width: 44px; height: 44px; }
.lb-close svg { width: 20px; height: 20px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav svg { width: 24px; height: 24px; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-close:hover { background: rgba(44, 44, 58, .92); }
.lb-nav:hover { background: rgba(44, 44, 58, .92); transform: translateY(-50%) scale(1.06); }
@media (max-width: 560px) {
  .lb-nav { width: 44px; height: 44px; } .lb-prev { left: 8px; } .lb-next { right: 8px; }
  .lb-close { top: 12px; right: 12px; } .lb-img { max-width: 96vw; max-height: 84vh; }
}


.hero-nav {
  position: absolute; left: 30%; bottom: -24px; z-index: 4;
  display: flex; align-items: center; gap: 14px;
}
.hero-arrow {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center; padding: 0;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--muted); cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.hero-arrow:hover { color: var(--purple); border-color: var(--purple); background: var(--fill); transform: translateY(-1px); }
.hero-arrow svg { width: 17px; height: 17px; }
.hero-dots { display: flex; gap: 7px; }
.hero-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px; cursor: pointer;
  background: var(--line-strong); transition: background .2s ease, width .2s ease;
}
.hero-dots button.on { background: var(--purple); width: 20px; }

/* ---------- рамка скриншота ---------- */

.shot { margin: 0; }

.shot-frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.shot-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}
.shot-url {
  margin-inline: auto;
  font: 500 11.5px/1 var(--font-mono);
  color: var(--faint);
  letter-spacing: .04em;
}
.shot-frame img { display: block; width: 100%; }

/* пустой слот: картинки ещё нет — рамка остаётся, внутри подпись и путь к файлу */
.shot-empty { display: none; }
.shot.is-empty img { display: none; }
.shot.is-empty .shot-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(-45deg, transparent 0 14px, rgba(233, 241, 236, .025) 14px 28px);
}
.shot-empty-badge {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font: 500 13px/1.2 var(--font-body);
}
.shot-empty code {
  font: 500 11.5px/1 var(--font-mono);
  color: var(--faint);
}
.shot figcaption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .03em;
}
.shot-hero figcaption { text-align: right; }

/* ---------- возможности ---------- */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.tool-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .18s ease, transform .18s ease;
}
.tool-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tool-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--fill);
  color: var(--purple);
  margin-bottom: 16px;
}
.tool-icon svg { width: 21px; height: 21px; }
.tool-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.tool-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- как это работает ---------- */

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

.how-steps { display: flex; flex-direction: column; gap: 10px; }

.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.how-step:hover { border-color: var(--line-strong); }
.how-step.active { border-color: var(--purple); background: var(--fill); }
.how-step b {
  font: 600 13px/1.6 var(--font-mono);
  color: var(--faint);
  flex: none;
}
.how-step.active b { color: var(--purple); }
.how-step strong { display: block; font-size: 15.5px; font-weight: 600; }
.how-step small { display: block; margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.how-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.how-step .how-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease, margin .3s ease;
}
.how-step.active .how-facts {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}
.how-facts li {
  position: relative;
  padding: 3px 0 3px 18px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.how-facts li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
}

/* карусель экранов внутри активного шага */
.how-stage { position: relative; }
.how-shot { display: none; position: relative; }
.how-shot.active { display: block; animation: shot-in .32s ease; }
@keyframes shot-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.how-slide { display: none; }
.how-slide.active { display: block; animation: slide-in .34s ease; }
@keyframes slide-in {
  from { opacity: 0; transform: translateX(14px); }
  to { opacity: 1; transform: none; }
}
.how-slide figcaption { padding-right: 130px; }

.carousel-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.car-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.car-btn:hover { border-color: var(--purple); color: var(--purple-3); }
.car-btn svg { width: 15px; height: 15px; }
.car-dots { display: inline-flex; gap: 6px; }
.car-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background .15s ease, transform .15s ease;
}
.car-dots i.on { background: var(--purple); transform: scale(1.25); }

/* ---------- тарифы ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 24px;
  align-items: stretch;
}

.plan-full {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(224, 163, 92, .35);
  background:
    radial-gradient(24rem 16rem at 100% 0%, rgba(224, 163, 92, .08), transparent 70%),
    var(--surface-solid);
}
.plan-full h3 { font-size: 21px; }
.plan-full > p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 22px 0;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -.01em;
}
.price-per { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }

.plan-features {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 14.5px;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--purple);
  border-bottom: 2px solid var(--purple);
  transform: rotate(-45deg);
}

.plan-versus {
  margin-top: auto;
  padding-top: 18px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan-versus span { color: var(--faint); font-size: 13.5px; }
.plan-versus strong { color: var(--cyan); font-size: 14.5px; font-weight: 600; }

/* Ползунок срока подписки со скидкой (данные/скидка из настроек платежей) */
.plan-term {
  margin: 6px 0 4px;
  padding: 14px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--fill);
}
/* min-height на строках, где появляются бейдж скидки и перечёркнутая цена —
   зарезервированное место, чтобы контейнер не прыгал при их появлении. */
.plan-term-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; min-height: 26px; }
.plan-term-label { font-size: 13.5px; color: var(--muted); }
.plan-term-label b { color: var(--text); font-variant-numeric: tabular-nums; }
.plan-term-badge {
  font-size: 12px; font-weight: 700; color: #10121a;
  background: var(--cyan); border-radius: 999px; padding: 3px 10px; white-space: nowrap;
  transition: opacity .18s ease;
}
.plan-term-badge[hidden] { display: inline-block; opacity: 0; pointer-events: none; }  /* держит место */
.plan-term-badge b { font-variant-numeric: tabular-nums; }
/* Видимый трек с заливкой прогресса: слева акцент до бегунка (--p из JS), справа
   контрастная дорожка. Раньше трек был почти невидим на фоне карточки. */
.plan-term-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 999px; cursor: pointer;
  background: linear-gradient(to right,
    var(--purple) 0%, var(--purple) var(--p, 0%),
    rgba(236,237,243,.16) var(--p, 0%), rgba(236,237,243,.16) 100%);
  outline: none; margin: 2px 0 14px;
}
.plan-term-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple); border: 3px solid var(--surface-solid);
  box-shadow: 0 2px 10px rgba(137,124,242,.6); cursor: grab;
  transition: transform .12s ease;
}
.plan-term-range::-webkit-slider-thumb:active { transform: scale(1.12); cursor: grabbing; }
.plan-term-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--purple); border: 3px solid var(--surface-solid);
  box-shadow: 0 2px 10px rgba(137,124,242,.6); cursor: grab;
}
.plan-term-range::-moz-range-progress { background: var(--purple); height: 8px; border-radius: 999px; }
.plan-term-range::-moz-range-track { background: rgba(236,237,243,.16); height: 8px; border-radius: 999px; }
.plan-term-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--muted); min-height: 26px; }
.plan-term-total b { font-size: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.plan-term-total s { color: var(--faint); font-size: 13px; }
.plan-term-hint { margin-top: 7px; font-size: 12px; color: var(--faint); line-height: 1.45; min-height: 17px; }

.components {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.components-head { padding: 26px 28px 18px; }
.components-head h3 { font-size: 18px; }
.components-head p { margin-top: 8px; color: var(--muted); font-size: 14px; }

.components-scroll { position: relative; min-height: 0; }
.components-scroll::after {
  content: '';
  position: absolute;
  left: 0;
  right: 8px;
  bottom: 0;
  height: 64px;
  background: linear-gradient(180deg, transparent, #15151c);
  pointer-events: none;
  transition: opacity .25s ease;
}
.components-scroll.at-end::after { opacity: 0; }
.components-list {
  display: flex;
  flex-direction: column;
  max-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.components-list::-webkit-scrollbar { width: 6px; }
.components-list::-webkit-scrollbar-track { background: transparent; }
.components-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.components-list::-webkit-scrollbar-thumb:hover { background: var(--purple-2); }

.component {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  transition: background .15s ease;
}
.component:hover { background: var(--fill); }
.component input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.component-check {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px; height: 21px;
  border-radius: 6px;
  border: 1.5px solid var(--line-strong);
  color: transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.component-check svg { width: 13px; height: 13px; }
.component input:checked + .component-check {
  background: var(--purple);
  border-color: var(--purple);
  color: #15121f;
}
.component input:focus-visible + .component-check {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.component-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--purple);
}
.component-icon svg { width: 17px; height: 17px; }
.component input:checked ~ .component-icon {
  background: var(--purple);
  color: #15121f;
}
.component-body { flex: 1; min-width: 0; }
.component-body strong { display: block; font-size: 15px; font-weight: 600; }
.component-body small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.component-price {
  flex: none;
  font: 600 15px/1.2 var(--font-mono);
  color: var(--text);
  text-align: right;
}
.component-price em { display: block; font: 500 10.5px/1.4 var(--font-mono); color: var(--faint); font-style: normal; }
.component input:checked ~ .component-price { color: var(--purple); }

.calc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-top: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.calc-info { display: flex; flex-direction: column; gap: 4px; }
.calc-zero { color: var(--faint); font-size: 14px; }
.calc-sum { font-size: 15px; color: var(--muted); }
.calc-sum b { color: var(--text); }
.calc-total { font: 600 19px/1.2 var(--font-mono); color: var(--purple); }
.calc-sum .price-per { margin-left: 4px; }
.calc-hint { font-size: 13.5px; color: var(--cyan); }

/* ---------- бесплатные 3 дня ---------- */

.trial {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(38rem 22rem at 88% 110%, rgba(137, 124, 242, .1), transparent 65%),
    var(--surface-solid);
}
.trial-copy .plan-features { margin: 22px 0 0; }
.trial-price { text-align: center; }
.trial-zero {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 7vw, 84px);
  line-height: 1;
  color: var(--purple);
}
.trial-note {
  margin: 10px 0 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
  letter-spacing: .05em;
}

/* ---------- для кого ---------- */

.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.who-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.who-card h3 { font-size: 16.5px; margin-bottom: 10px; }
.who-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- контроль ---------- */

.control {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 44px;
  align-items: center;
  padding: 40px 48px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.control-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.control-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 15.5px;
}
.control-list li:last-child { border-bottom: 0; }
.control-list li::before {
  content: '—';
  color: var(--purple);
  margin-right: 12px;
  font-family: var(--font-mono);
}

/* ---------- FAQ + чат ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: stretch;
}
.faq-col { display: flex; flex-direction: column; }
.chat-col { display: flex; flex-direction: column; }

/* тихая карточка-заполнитель под списком вопросов */
.faq-more {
  margin-top: auto;
  padding: 22px 24px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: var(--fill);
}
.faq-more strong { display: block; font-size: 15.5px; }
.faq-more p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.faq-more a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-weight: 600;
  font-size: 14px;
}
.faq-more a svg { width: 15px; height: 15px; transition: transform .15s ease; }
.faq-more a:hover svg { transform: translateX(3px); }

.faq-list { margin: 28px 0 24px; display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg {
  flex: none;
  width: 17px; height: 17px;
  color: var(--faint);
  transition: transform .18s ease;
}
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--purple); }
.faq-item p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
}

.chat-col .section-copy { margin-top: 12px; }

.chat-card {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: auto;
  min-height: 520px;
  max-height: 720px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.chat-card:focus-within,
.chat-card:hover {
  border-color: rgba(137, 124, 242, .38);
  box-shadow: 0 0 0 1px rgba(137, 124, 242, .12), 0 20px 55px rgba(0, 0, 0, .38);
}

.chat-thread {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.chat-thread::-webkit-scrollbar { width: 6px; }
.chat-thread::-webkit-scrollbar-track { background: transparent; }
.chat-thread::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.chat-thread::-webkit-scrollbar-thumb:hover { background: var(--purple-2); }
.chat-thread:empty::before {
  content: attr(data-empty);
  margin: auto;
  max-width: 30ch;
  text-align: center;
  color: var(--faint);
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg {
  max-width: 88%;
  animation: msg-in .35s cubic-bezier(.2, .8, .3, 1);
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.chat-msg .chat-who {
  font: 600 10.5px/1 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}
.chat-msg .chat-text {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
.chat-msg.you { align-self: flex-end; text-align: right; }
.chat-msg.you .chat-text {
  background: var(--fill);
  border: 1px solid rgba(137, 124, 242, .25);
  text-align: left;
}
.chat-msg.bot { align-self: flex-start; }
.chat-msg.bot .chat-text {
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.chat-msg.bot.thinking .chat-text { color: var(--faint); }
.chat-msg.error .chat-text { border-color: rgba(255, 122, 138, .4); color: var(--red); }

/* мини-разметка в ответах ИИ */
.chat-text strong { font-weight: 600; color: var(--text); }
.chat-text code {
  font: 500 .9em/1.4 var(--font-mono);
  background: rgba(233, 241, 236, .08);
  padding: 1px 6px;
  border-radius: 6px;
}
.chat-text a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.chat-text a:hover { color: var(--purple-3); }

/* индикатор «печатает» */
.typing { display: inline-flex; gap: 5px; padding: 5px 2px; }
.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: t-bounce 1.15s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes t-bounce {
  0%, 60%, 100% { transform: none; opacity: .35; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-suggest {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  max-height: 160px;
  overflow: hidden;
  transition: max-height .45s ease, opacity .35s ease, padding .45s ease;
}
.chat-suggest.is-hidden {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.chat-suggest button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font: 500 13px/1.3 var(--font-body);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .15s ease, background .15s ease;
}
.chat-suggest button:hover {
  border-color: var(--purple);
  color: var(--text);
  background: var(--fill);
  transform: translateY(-1px);
}

.chat-form {
  flex: none;
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
}
.chat-form .btn:not([disabled]):hover { transform: translateY(-1px); }
.chat-note { flex: none; }
.chat-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font: 500 14.5px/1.3 var(--font-body);
}
.chat-form input::placeholder { color: var(--faint); }
.chat-form input:focus-visible { outline: 2px solid var(--purple); outline-offset: 1px; }
.chat-form .btn[disabled] { opacity: .55; cursor: default; }

.chat-note {
  padding: 0 20px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
}

/* ---------- финальный блок ---------- */

.final {
  text-align: center;
  padding: 64px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(46rem 26rem at 50% -30%, rgba(137, 124, 242, .12), transparent 65%),
    var(--surface-solid);
}
.final h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.2vw, 36px);
}
.final > p {
  margin: 18px auto 0;
  color: var(--muted);
  max-width: 58ch;
}
.final-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 56px;
  margin: 36px 0;
}
.final-stat b {
  display: block;
  font: 500 26px/1.2 var(--font-display);
  color: var(--purple);
}
.final-stat span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--faint);
  letter-spacing: .04em;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13.5px;
  max-width: 30ch;
}
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col strong {
  font: 600 11.5px/1.4 var(--font-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.footer-base a { color: var(--faint); }
.footer-base a:hover { color: var(--text); }

/* ---------- появление при прокрутке ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-dot { animation: none; }
  .how-shot.active { animation: none; }
  .how-slide.active { animation: none; }
  .chat-msg { animation: none; }
  .typing i { animation: none; }
  * { transition-duration: .01ms !important; }
}

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

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  /* в одну колонку картинку возвращаем в норму: без выноса за экран и без маски */
  .hero-slides { width: 100%; margin-left: 0; -webkit-mask-image: none; mask-image: none; }
  .hero-art::before { display: none; }
  .shot-hero figcaption { text-align: left; }
  .how-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .trial { grid-template-columns: 1fr; padding: 36px 30px; text-align: left; }
  .trial-price { text-align: left; }
  .control { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .desktop-nav { display: none; }
  /* desktop-nav держал auto-margin, толкавший действия вправо; на мобиле его нет,
     и кнопки прижимались к логотипу — возвращаем прижим вправо явно. */
  .nav-actions { margin-left: auto; }
  .nav-actions .btn-ghost { display: none; }
  .menu-btn { display: inline-flex; }
  .nav { gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .shell { width: min(1180px, 100% - 32px); }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 24px; }
  .nav-actions .btn-primary { display: none; }
  .hero-actions .btn { width: 100%; }
  .component { padding: 14px 18px; gap: 12px; }
  .component-icon { display: none; }
  .components-head { padding: 22px 18px 14px; }
  .calc-bar { padding: 16px 18px; }
  .calc-bar .btn { width: 100%; }
  .trial { padding: 28px 20px; }
  .final { padding: 44px 20px; }
  .final-stats { gap: 20px 32px; }
  .chat-form { flex-direction: column; }
  .chat-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Обучение внутри: интерактивный тур + помощник ---------- */
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.learn-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
}
/* демо-панель фиксированной высоты и с overflow:hidden — ничего не вылезает на текст */
.learn-demo {
  position: relative; height: 244px; overflow: hidden; padding: 26px 24px;
  background: radial-gradient(78% 90% at 26% -10%, rgba(137, 124, 242, .12), transparent 66%), var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.learn-body { padding: 22px 24px 24px; }
.learn-body h3 { font-family: var(--font-display); font-weight: 500; font-size: 20px; }
.learn-body p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.learn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.learn-chip {
  font: 600 12px/1 var(--font-mono); letter-spacing: .03em; color: var(--purple-3);
  background: var(--fill); border: 1px solid var(--line-strong); padding: 7px 11px; border-radius: 999px;
}

/* --- ТУР: подсветка едет между блоками, подсказка едет следом --- */
.lt-rows { position: relative; width: 44%; display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.lt-row { height: 20px; border-radius: 7px; background: var(--line-strong); opacity: .45; }
.lt-row.short { width: 62%; }
/* подвижная «лупа» тура */
.lt-spot {
  position: absolute; left: -6px; right: -6px; top: 6px; height: 20px;
  border-radius: 9px; border: 2px solid var(--purple);
  background: rgba(137, 124, 242, .14);
  box-shadow: 0 0 0 5px rgba(137, 124, 242, .10);
  transition: top .55s cubic-bezier(.65, 0, .35, 1), height .55s cubic-bezier(.65, 0, .35, 1);
  pointer-events: none;
}
/* подвижная подсказка (карточка тура) */
.lt-tip {
  position: absolute; right: 24px; top: 18px; width: min(52%, 250px);
  padding: 15px 16px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  transition: top .55s cubic-bezier(.65, 0, .35, 1);
}
.lt-tip-body { transition: opacity .28s ease; }
.lt-tip.is-swapping .lt-tip-body { opacity: 0; }
.lt-tip-stage { font: 600 10.5px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--purple); }
.lt-tip strong { display: block; margin-top: 8px; font-size: 14.5px; }
.lt-tip p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lt-dots { display: inline-flex; gap: 6px; margin-top: 13px; }
.lt-dots i { width: 16px; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background .3s ease, width .3s ease; }
.lt-dots i.on { background: var(--purple); width: 22px; }

/* --- ПОМОЩНИК: живая переписка (вопрос → печатает → ответ) --- */
.learn-demo-chat { display: block; }
.lc-avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--purple); background: var(--fill); border: 1px solid var(--line-strong); margin-bottom: 14px;
}
.lc-avatar svg { width: 18px; height: 18px; }
.lc-thread { display: flex; flex-direction: column; gap: 10px; }
.lc-msg {
  max-width: 86%; padding: 11px 14px; font-size: 13.5px; line-height: 1.5; border-radius: 14px;
  opacity: 0; transform: translateY(10px);
  transition: opacity .38s ease, transform .38s cubic-bezier(.34, 1.4, .5, 1);
}
.lc-msg.in { opacity: 1; transform: none; }
.lc-msg.out { opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease; }
.lc-q { align-self: flex-end; background: var(--purple); color: #15121f; border-bottom-right-radius: 5px; }
.lc-a { align-self: flex-start; background: var(--surface-solid); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 5px; }
.lc-typing { display: inline-flex; align-items: center; gap: 4px; }
.lc-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: lc-bounce 1.2s ease-in-out infinite; }
.lc-typing i:nth-child(2) { animation-delay: .15s; }
.lc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lc-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }

@media (max-width: 1020px) { .learn-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .lt-spot, .lt-tip, .lc-msg { transition: none; }
  .lc-typing i { animation: none; }
}

/* ── Плашка о cookie ─────────────────────────────────────────────────────────
   Классическое место — снизу по центру: горизонтальная стеклянная капсула с
   иконкой, текстом и кнопкой в один ряд (на телефоне складывается в колонку).
   Токены темы общие с карточками сайта; появление — мягкий подъезд снизу
   (класс .is-in ставит скрипт после первой отрисовки, чтобы transition
   сработал). Ховер-глоу и blur — то самое «красиво», не мешающее читать. */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  display: flex;
  gap: 16px;
  align-items: center;
  width: min(760px, calc(100vw - 24px));
  padding: 11px 11px 11px 20px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, .5),
    0 0 0 1px rgba(137, 124, 242, .07);
  opacity: 0;
  transform: translate(-50%, 16px) scale(.98);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2, .8, .3, 1.12);
}
.cookie-banner.is-in { opacity: 1; transform: translate(-50%, 0); }
.cookie-actions { flex: none; }
.cookie-banner .cookie-accept { padding: 9px 22px; font-size: 14px; }
.cookie-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.cookie-text b { color: var(--text); font-weight: 700; }
.cookie-text a {
  color: var(--purple-3);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 191, 255, .35);
}
.cookie-text a:hover { color: var(--text); border-color: currentColor; }
@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    bottom: 10px;
    padding: 13px 15px;
    border-radius: 18px;
  }
  .cookie-banner .cookie-accept { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity .2s ease; transform: translate(-50%, 0); }
}

/* Единый тариф: модули как «что входит» (без цен/чекбоксов) */
.component-included { cursor: default; }
.component-included .component-incl { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--purple); }
.component-included .component-incl svg { width: 13px; height: 13px; }
