/* =========================================================
   Dosello — сайт. Токены, база, блок 1 (первый экран)
   ========================================================= */

:root {
  --bg: #0D0B0A;
  --bg-2: #17130F;
  --surface: rgba(244, 238, 232, .04);
  --surface-2: rgba(244, 238, 232, .07);
  --line: rgba(244, 238, 232, .09);
  --line-2: rgba(244, 238, 232, .16);
  --text: #F4EEE8;
  --muted: #ADA498;
  --soft: #D8CFC6;
  --ok: #8FE3B4;

  --a1: #FF7A59;
  --a2: #FFB347;
  --a3: #FFD6A5;
  --grad: linear-gradient(90deg, var(--a1), var(--a2) 55%, var(--a3));
  --grad-btn: linear-gradient(135deg, var(--a1), var(--a2) 60%, var(--a3));

  --font-head: "Tektur", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Golos Text", system-ui, sans-serif; /* ярлыки без моношрифта — тем же текстовым */

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* обновляются из JS */
  --px: 0;
  --py: 0;
  --mx: 50vw;
  --my: 30vh;
}

*, *::before, *::after { box-sizing: border-box; }
/* выделение текста — в фирменных тонах: тёплый янтарный фон, светлый текст (вместо системного синего) */
::selection { background: rgba(255, 179, 71, .38); color: #FFF4E6; text-shadow: none; }
::-moz-selection { background: rgba(255, 179, 71, .38); color: #FFF4E6; text-shadow: none; }
/* градиентные заголовки при выделении становятся сплошными, иначе текст исчезает */
.grad::selection, .plan--hot .plan__price b::selection, .guarantee__big b::selection, .llive__count b::selection { -webkit-text-fill-color: #FFF4E6; color: #FFF4E6; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 8px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.ico--sm { width: 16px; height: 16px; }

/* ---------- Живой фон ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

/* лучи света поверх пятен (рисует bg.js); размытие делает их мягкими */
.bg__beams {
  position: absolute; inset: 0; width: 100%; height: 100%;
  filter: blur(18px);
}

.bg__aurora .blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob--1 {
  width: 70vmax; height: 70vmax; left: 50%; top: -38vmax; margin-left: -35vmax;
  background: radial-gradient(closest-side, rgba(255, 122, 89, .38), rgba(255, 122, 89, 0) 70%);
  animation: drift1 22s var(--ease) infinite alternate;
}
.blob--2 {
  width: 50vmax; height: 50vmax; left: -18vmax; top: 10vh;
  background: radial-gradient(closest-side, rgba(255, 179, 71, .16), rgba(255, 179, 71, 0) 70%);
  animation: drift2 28s var(--ease) infinite alternate;
}
.blob--3 {
  width: 55vmax; height: 55vmax; right: -22vmax; top: 30vh;
  background: radial-gradient(closest-side, rgba(170, 52, 28, .28), rgba(170, 52, 28, 0) 70%);
  animation: drift3 26s var(--ease) infinite alternate;
}
@keyframes drift1 { to { transform: translate3d(6vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(10vw, -6vh, 0) scale(.9); } }
@keyframes drift3 { to { transform: translate3d(-8vw, -10vh, 0) scale(1.1); } }

.bg__grain {
  position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: 14px;
  font: 600 16px/1 var(--font-body);
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn--sm { min-height: 42px; padding: 0 16px; border-radius: 12px; font-size: 14px; }

.btn--primary {
  color: #1A0F0A;
  background: var(--grad-btn);
  box-shadow: 0 14px 40px -14px rgba(255, 122, 89, .75), inset 0 1px 0 rgba(255, 255, 255, .45);
  overflow: hidden;
}
.btn--primary::after { /* блик, пробегающий по кнопке */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 5.5s 2.2s var(--ease) infinite;
}
@keyframes shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px -14px rgba(255, 122, 89, .9), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn--primary:active { transform: translateY(0); }

.btn--glass {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: var(--surface-2); border-color: rgba(255, 214, 165, .35); transform: translateY(-2px); }
.btn--glass .ico--sm { transition: transform .25s var(--ease); }
.btn--glass:hover .ico--sm { transform: translateY(2px); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color .3s, border-color .3s, -webkit-backdrop-filter .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(13, 11, 10, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: block; flex: none; width: 46px; height: auto; }  /* знак D с орбитой, assets/img/brand/mark.svg */
.brand__name { font: 600 21px/1 var(--font-head); letter-spacing: -.02em; }

.nav { display: flex; gap: 6px; margin: 0 auto; }
.nav a {
  position: relative;
  padding: 10px 14px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--text); background: var(--surface); }

/* компьютер: две группы — слева логотип и меню разделов, справа язык, вход, регистрация, Telegram.
   Шапка чуть шире контента, чтобы группы разошлись к краям. Уже 1200 px меню не помещается — там бургер, как на iPad */
@media (max-width: 1199px) {
  .header .nav { display: none; }
  .header .burger { display: block; }
}
@media (min-width: 1200px) {
  .header .container { max-width: 1400px; }
  .nav { margin: 0 0 0 clamp(12px, 2vw, 32px); }
  .header__right { margin-left: auto; }
}

/* справа: язык, вход, регистрация, Telegram */
.header__right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header__login {
  padding: 10px 12px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: var(--soft);
  transition: color .2s, background-color .2s;
}
.header__login:hover { color: var(--text); background: var(--surface); }
.header__cta { width: 42px; padding: 0; border-radius: 12px; }
.header__cta .ico { width: 18px; height: 18px; }
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 42px; padding: 0 10px 0 12px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--soft);
  background: var(--surface); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s, border-color .2s;
}
.lang__btn:hover, .lang.is-open .lang__btn { background: var(--surface-2); color: var(--text); }
.lang__btn .ico--sm { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.lang.is-open .lang__btn .ico--sm { transform: rotate(180deg); }
.lang__list {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 5;
  min-width: 160px; padding: 6px; border-radius: 14px;
  background: rgba(24, 19, 16, .96); border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.lang__list[hidden] { display: none; }
.lang__list button {
  display: flex; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left;
  font-size: 14px; font-weight: 500; color: var(--soft);
  transition: background-color .15s, color .15s;
}
.lang__list button:hover { background: var(--surface-2); color: var(--text); }
.lang__list button[aria-selected="true"] { color: var(--a2); }
/* активный раздел: оранжевая точка под пунктом */
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--a2);
  transform: translateX(-50%) scale(0); transition: transform .25s var(--ease);
}
.nav a.is-active { color: var(--text); }
.nav a.is-active::after { transform: translateX(-50%) scale(1); }

/* бургер и полноэкранное меню (iPad и телефон) */
.burger {
  display: none; position: relative; width: 44px; height: 44px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .25s, border-color .25s;
}
.burger span {
  position: absolute; left: 12px; width: 20px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger.is-open span:first-child { top: 21px; transform: rotate(45deg); }
.burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px;
  padding: calc(76px + env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: rgba(13, 11, 10, .94);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
.menu__nav { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.menu__nav a, .menu__cta {
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms + 60ms);
}
.menu.is-open .menu__nav a, .menu.is-open .menu__cta { opacity: 1; transform: none; }
.menu__nav a {
  padding: 12px 20px; border-radius: 14px;
  font: 600 clamp(26px, 6.5vw, 34px)/1.15 var(--font-head); letter-spacing: -.02em; color: var(--text);
}
.menu__nav a.is-active { color: var(--a2); }
.menu__cta { min-width: min(100%, 320px); }
.menu__auth {
  margin: -16px 0 0; display: flex; gap: 12px; font-size: 16px; color: var(--muted);
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: calc(var(--i, 0) * 50ms + 60ms);
}
.menu.is-open .menu__auth { opacity: 1; transform: none; }
.menu__auth a { color: var(--text); font-weight: 600; }
body.menu-open { overflow: hidden; }
body.menu-open .widget { opacity: 0; pointer-events: none; }

/* ---------- Блок 1: первый экран ---------- */
.hero {
  position: relative;
  min-height: 100svh; /* первый экран занимает весь экран: заголовок второго блока ниже сгиба */
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(128px, 17vh, 170px) 0 64px;
  overflow: hidden;
  isolation: isolate;
}

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

.show-sm { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--soft);
  background: rgba(255, 179, 71, .06);
  border: 1px solid rgba(255, 214, 165, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.badge__dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none;
}
.badge__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.hero__title {
  margin: 0;
  max-width: 1100px;
  font: 500 clamp(30px, 4.7vw, 64px)/1.04 var(--font-head);
  letter-spacing: -.03em;
  text-wrap: balance;
}
.grad {
  background:
    linear-gradient(100deg, transparent 35%, rgba(255, 248, 240, .9) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat,
    var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: textShine 7s 1.4s var(--ease) infinite;
}
@keyframes textShine { 0%, 60% { background-position: 150% 0, 0 0; } 100% { background-position: -60% 0, 0 0; } }

.hero__sub {
  margin: 26px 0 0;
  max-width: 760px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--soft);
  text-wrap: balance;
}

.hero__actions { display: flex; gap: 14px; margin-top: 40px; }

.hero__note { margin: 16px 0 0; font-size: 15px; color: var(--muted); text-wrap: balance; }
.hero__note b { font-weight: 600; color: var(--a2); }

/* три плашки в стиле плиток каналов — только на телефоне и iPad, на компьютере первый экран чище */
.perks { display: none; }
.perks li {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 18px; border-radius: 14px;
  font-size: 15px; font-weight: 500; color: var(--soft); text-align: left;
  background: linear-gradient(160deg, rgba(244, 238, 232, .08), rgba(244, 238, 232, .025));
  border: 1px solid var(--line-2);
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.perks__ico {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255, 179, 71, .16); color: var(--a2); flex: none;
}
.perks__ico svg { width: 12px; height: 12px; }

.channels-row { display: none; }

/* стеклянные грани по краям */
.hero__crystals { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.crystal { position: absolute; width: clamp(200px, 21vw, 330px); height: auto; opacity: .75; }
.crystal--left  { left: -7vw;  top: 20%; transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -14px), 0) rotate(-8deg); animation: floatA 14s ease-in-out infinite; }
.crystal--right { right: -6vw; top: 30%; transform: translate3d(calc(var(--px) * -24px), calc(var(--py) * -18px), 0) rotate(10deg);  animation: floatB 16s ease-in-out infinite; }
@keyframes floatA { 50% { translate: 0 -18px; } }
@keyframes floatB { 50% { translate: 0 16px; } }

/* плавающие иконки каналов */
.hero__tiles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.tile {
  position: absolute;
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(244, 238, 232, .09), rgba(244, 238, 232, .02));
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--c, var(--text));
  transform: translate3d(calc(var(--px) * var(--d) * 40px), calc(var(--py) * var(--d) * 30px), 0);
  transition: transform .6s var(--ease), border-color .3s, box-shadow .3s;
  animation: tileIn .9s var(--ease) both, bob 7s ease-in-out infinite;
  animation-delay: calc(.6s + var(--d) * .3s), var(--f);
}
.tile svg { width: 28px; height: 28px; fill: currentColor; }
.tile--far { width: 50px; height: 50px; border-radius: 15px; opacity: .9; }
.tile--far svg { width: 21px; height: 21px; }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes tileIn { from { opacity: 0; scale: .6; } }

/* пять слева и пять справа, зеркально: цветные мессенджеры крупнее, серые каналы меньше */
.tile--logo img { width: 72%; height: 44%; object-fit: contain; }
.tile--far img { width: 46%; height: 46%; object-fit: contain; }
.tile--allegro { left: 22%; top: 12%; }
.tile--tg    { --c: #2AABEE; left: 10%; top: 25%; }
.tile--vb    { --c: #8F6CF7; left: 3.5%; top: 45%; }
.tile--ig    { left: 14%; top: 64%; }
.tile--ig svg { fill: url(#ig-grad); }
.tile--web   { left: 5%; top: 82%; }
.tile--olx   { right: 22%; top: 12%; }
.tile--wa    { --c: #25D366; right: 10%; top: 25%; }
.tile--mail  { right: 3.5%; top: 45%; }
.tile--ms    { --c: #1E88FF; right: 14%; top: 64%; }
.tile--tiktok { right: 5%; top: 82%; }

/* в канал пришло сообщение «1» → AI manager ответил: галочка */
.tile__n {
  position: absolute; top: -8px; right: -8px; z-index: 1;
  display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: var(--a1); color: #1A0F0A; font: 700 12px/1 var(--font-body);
  border: 2px solid var(--bg);
  transform: scale(0); transition: transform .3s var(--ease), background-color .25s;
}
.tile .tile__n svg { display: none; width: 12px; height: 12px; fill: none; stroke: #1A0F0A; stroke-width: 3.4; }
.is-new > .tile__n { transform: scale(1); animation: popIn .5s var(--ease); }
.is-done > .tile__n { transform: scale(1); padding: 0; background: var(--ok); }
.is-done > .tile__n b { display: none; }
.is-done > .tile__n svg { display: block; }
.tile.is-new { border-color: rgba(255, 179, 71, .55); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8), 0 0 0 4px rgba(255, 179, 71, .12); }
.tile.is-done { border-color: rgba(143, 227, 180, .5); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8), 0 0 0 4px rgba(143, 227, 180, .1); }
@keyframes popIn { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }

.bubble--typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--a2);
  animation: typing 1.2s ease-in-out infinite;
}
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }

/* появление при загрузке */
.reveal {
  animation: rise .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 50ms);
}
@keyframes rise  { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Виджет ---------- */
.widget {
  position: fixed; z-index: 60;
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.widget { transition: opacity .35s var(--ease), transform .35s var(--ease); }
.widget.is-hidden { opacity: 0; transform: translateY(20px); pointer-events: none; }
.widget__bubbles {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
  pointer-events: none;
}
.widget__close {
  position: absolute; top: -34px; right: 0;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--muted);
  opacity: 0; transition: opacity .3s;
}
.widget__close svg { width: 12px; height: 12px; }
.bubble, .widget__replies {
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.bubble {
  margin: 0; max-width: 270px; padding: 12px 16px;
  border-radius: 18px 18px 6px 18px;
  background: rgba(30, 24, 20, .92); border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 15px; line-height: 1.45;
}
.bubble--typing { display: none; gap: 5px; padding: 14px 16px; }
.widget__replies { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 300px; }
.chip {
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--a3);
  background: rgba(255, 179, 71, .1); border: 1px solid rgba(255, 179, 71, .3);
  transition: background-color .2s, transform .2s var(--ease);
}
.chip:hover { background: rgba(255, 179, 71, .2); transform: translateY(-1px); }

.widget[data-state="hello"] .bubble--1,
.widget[data-state="typing"] .bubble--1,
.widget[data-state="open"] .bubble--1,
.widget[data-state="open"] .bubble--2,
.widget[data-state="open"] .widget__replies { opacity: 1; transform: none; }
.widget[data-state="typing"] .bubble--typing { display: inline-flex; opacity: 1; transform: none; }
.widget[data-state="open"] .widget__bubbles { pointer-events: auto; }
.widget[data-state="open"] .widget__close { opacity: 1; }

.widget__avatar {
  position: relative; display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--bg-2); color: var(--a2);
  box-shadow: 0 14px 40px -10px rgba(255, 122, 89, .6);
  transition: transform .25s var(--ease);
}
.widget__avatar:hover { transform: scale(1.06); }
.widget__avatar > svg { position: relative; width: 40px; height: 40px; }
/* робот в виджете «говорит», пока печатает приветствие */
.widget[data-state="typing"] .bot__mouth { animation: botTalk .28s ease-in-out infinite alternate; }
.widget__ring {
  position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--a1), var(--a2), var(--a3), var(--a1));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.widget__badge {
  position: absolute; top: -2px; right: -2px;
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--a1); color: #1A0F0A; font-size: 12px; font-weight: 700;
  border: 2px solid var(--bg);
  transform: scale(0); transition: transform .3s var(--ease);
}
.widget.has-unread .widget__badge { transform: scale(1); }

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

/* Ноутбуки и iPad в альбомной ориентации */
@media (max-width: 1180px) {
  .tile--web, .tile--tiktok { display: none; }
  .tile--allegro { left: 14%; top: 10%; }
  .tile--olx { right: 14%; top: 10%; }
  .tile--tg { left: 4%; top: 28%; }
  .tile--wa { right: 4%; top: 28%; }
  .tile--vb { left: 2%; top: 56%; }
  .tile--mail { right: 2%; top: 56%; }
  .tile--ig { left: 8%; top: 80%; }
  .tile--ms { right: 8%; top: 80%; }
}

/* iPad в портретной ориентации и небольшие планшеты */
@media (max-width: 1023px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero { padding: 120px 0 64px; }
  .hero__title { max-width: 720px; }
  .perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
  .tile { width: 52px; height: 52px; border-radius: 15px; }
  .tile svg { width: 23px; height: 23px; }
  .tile--vb, .tile--mail, .tile--web, .tile--tiktok, .tile--allegro, .tile--olx { display: none; }
  .tile--tg { left: 5%; top: 15%; }
  .tile--wa { right: 5%; top: 17%; }
  .tile--ig { left: 4%; top: 76%; }
  .tile--ms { right: 4%; top: 74%; }
  .crystal { opacity: .6; }
}

/* Телефоны */
@media (max-width: 599px) {
  .header__inner { height: 64px; }
  .brand__mark { width: 40px; }
  .brand__name { font-size: 19px; }

  .hide-sm { display: none; }
  .show-sm { display: inline; }
  /* на телефоне меню не нужно: логотип, язык и «Войти» */
  .header .burger, .header__reg, .header__cta { display: none; }
  .header__right { gap: 6px; }
  .lang__btn { height: 38px; padding: 0 8px 0 10px; font-size: 13px; }
  .header__login { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); }
  .hero { justify-content: flex-start; padding: 88px 0 32px; }
  .badge { margin-bottom: 18px; font-size: 13px; padding: 7px 14px 7px 11px; text-align: left; }
  .hero__title { font-size: clamp(27px, 7.8vw, 34px); line-height: 1.12; letter-spacing: -.03em; }
  .hero__sub { margin-top: 14px; font-size: 15.5px; line-height: 1.5; }
  .hero__actions { flex-direction: column; align-self: stretch; gap: 10px; margin-top: 22px; }
  .hero__actions .btn { min-height: 52px; }
  .hero__actions .btn, .how__cta .btn { width: 100%; }
  .hero__note { margin-top: 12px; font-size: 13.5px; }
  .perks { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 20px; }
  .perks li { justify-content: flex-start; min-height: 0; padding: 9px 14px; border-radius: 12px; font-size: 14px; }
  .perks__ico { width: 20px; height: 20px; }
  .perks__ico svg { width: 10px; height: 10px; }

  .hero__tiles { display: none; }
  .crystal { width: 200px; opacity: .45; }
  .crystal--left { left: -120px; top: 8%; }
  .crystal--right { right: -120px; top: 46%; }

  .channels-row {
    display: flex; justify-content: center; gap: 5px; margin-top: 20px;
  }
  .channels-row .is-logo img { width: 72%; height: 46%; object-fit: contain; }
  .channels-row li {
    position: relative;
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
    background: var(--surface); border: 1px solid var(--line); color: var(--c, var(--text));
    transition: border-color .3s;
  }
  .channels-row li .tile__n { top: -7px; right: -7px; min-width: 19px; height: 19px; padding: 0 5px; font-size: 11px; }
  .channels-row li .tile__n svg { display: none; width: 10px; height: 10px; fill: none; stroke: #1A0F0A; stroke-width: 3.6; }
  .channels-row li.is-done .tile__n { padding: 0; }
  .channels-row li.is-done .tile__n svg { display: block; }
  .channels-row li.is-new { border-color: rgba(255, 179, 71, .6); }
  .channels-row li.is-done { border-color: rgba(143, 227, 180, .6); }
  .channels-row svg { width: 16px; height: 16px; fill: currentColor; }
  .channels-row .is-ig svg { fill: url(#ig-grad); }


  .widget { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .widget__avatar { width: 54px; height: 54px; }
  .widget__avatar > svg { width: 36px; height: 36px; }
  .bubble { max-width: 240px; font-size: 14px; }
  /* телефон: открытый виджет — непрозрачная карточка чата во всю ширину, страница за ней затемняется (тап по затемнению закрывает) */
  .widget::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(10, 7, 5, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
  .widget[data-state="open"]::before { opacity: 1; pointer-events: auto; }
  .widget[data-state="open"] .widget__bubbles { width: calc(100vw - 32px); align-items: stretch; gap: 10px; padding: 14px 14px 14px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9); }
  .widget[data-state="open"] .widget__bubbles::before { content: "AI manager · онлайн"; display: flex; align-items: center; gap: 6px; margin: 0 0 2px; font: 500 11px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ok); }
  /* подпись по языку страницы: ru/uk — «онлайн», pl/en — «online» */
  html[lang="pl"] .widget[data-state="open"] .widget__bubbles::before,
  html[lang="en"] .widget[data-state="open"] .widget__bubbles::before { content: "AI manager · online"; }
  .widget[data-state="open"] .widget__close { top: 8px; right: 8px; }
  .widget[data-state="open"] .bubble { align-self: flex-start; max-width: calc(100% - 36px); border-radius: 18px 18px 18px 6px; background: var(--surface-2); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 15px; }
  .widget[data-state="open"] .bubble--1 { max-width: calc(100% - 44px); }
  .widget[data-state="open"] .widget__replies { max-width: none; width: 100%; margin-top: 2px; justify-content: stretch; }
  .widget[data-state="open"] .chip { flex: 1 1 auto; text-align: center; padding: 12px 14px; }
}

/* =========================================================
   Фирменный курсор (только мышь; на тач-экранах его нет)
   ========================================================= */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot, .cursor__ring, .cursor__ripple { position: fixed; left: 0; top: 0; pointer-events: none; will-change: transform; }
.cursor__dot {
  width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF3E2, var(--a2) 55%, var(--a1));
  box-shadow: 0 0 10px 2px rgba(255, 179, 71, .75), 0 0 26px 6px rgba(255, 122, 89, .35);
}
.cursor__ring {
  width: 36px; height: 36px; border-radius: 18px;
  border: 1.5px solid rgba(255, 214, 165, .5);
  background: radial-gradient(closest-side, rgba(255, 179, 71, .07), transparent);
  transition: border-color .25s, background-color .25s, box-shadow .25s, opacity .25s;
}
.cursor.is-hover .cursor__ring { border-color: rgba(255, 179, 71, .85); box-shadow: 0 0 24px -6px rgba(255, 122, 89, .7); }
.cursor.is-sticky .cursor__ring { border-color: rgba(255, 214, 165, .7); background-color: rgba(255, 179, 71, .06); box-shadow: 0 0 30px -8px rgba(255, 122, 89, .8), inset 0 0 18px -8px rgba(255, 179, 71, .6); }
.cursor.is-down .cursor__ring { border-color: var(--a3); }
.cursor__ripple {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 2px solid var(--a2);
  animation: cursorRipple .55s var(--ease) forwards;
}
@keyframes cursorRipple { from { opacity: .9; scale: .3; } to { opacity: 0; scale: 2.2; } }

/* =========================================================
   Общие элементы секций
   ========================================================= */
.section-head { max-width: 820px; margin: 0 auto; text-align: center; }
.section-title {
  margin: 0;
  font: 500 clamp(26px, 3.3vw, 44px)/1.08 var(--font-head);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.section-sub { margin: 20px auto 0; max-width: 640px; font-size: clamp(16px, 1.3vw, 17px); color: var(--soft); text-wrap: balance; }

/* появление при прокрутке */
.js [data-inview] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js [data-inview].is-inview { opacity: 1; transform: none; }

/* =========================================================
   Блок 2: откуда AI manager берёт знания
   Цель: заголовок и вся схема — в один экран (компьютер от 800 px высоты, iPad, телефон почти).
   ========================================================= */
.how { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 110px); }
.how .section-head { max-width: 1040px; }
.how .section-title { font-size: clamp(28px, 3.2vw, 46px); }
.how .section-sub { margin-top: 12px; max-width: 980px; }
.integr .section-sub, .pricing .section-sub { max-width: 980px; }

.demo {
  position: relative;
  margin-top: clamp(22px, 2.6vw, 34px);
  padding: 20px clamp(14px, 2vw, 24px);
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(520px 340px at 50% 45%, rgba(255, 122, 89, .12), transparent 70%),
    linear-gradient(180deg, rgba(30, 24, 20, .6), rgba(16, 13, 11, .45));
  box-shadow: 0 40px 120px -60px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.demo.is-halted *, .demo.is-halted *::before, .demo.is-halted *::after { animation-play-state: paused !important; }

.demo__stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(220px, 1fr) minmax(250px, 300px);
  align-items: center;
}
.demo__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; pointer-events: none; }
.wire { fill: none; stroke: rgba(244, 238, 232, .13); stroke-width: 1.2; transition: stroke .35s; }
.wire--dashed { stroke: rgba(255, 214, 165, .28); stroke-dasharray: 3 6; }
.wire.is-active { stroke: rgba(255, 179, 71, .5); }
.pulse { fill: none; stroke-linecap: round; }
.pulse--glow { stroke: var(--a1); stroke-width: 10; opacity: .28; }
.pulse--core { stroke: var(--a3); stroke-width: 2.6; }

/* чат */
.chat {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  border-radius: 22px;
  background: rgba(19, 15, 12, .92);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
  overflow: hidden;
}
/* шапка мессенджера в одну строку: аватар, «Ткань · магазин одежды», значок канала */
.chat__head { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.chat__avatar {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #E9CDAA, #B98E63); color: #2A1B10; font: 700 13px/1 var(--font-body);
}
.chat__who { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.25; white-space: nowrap; }
.chat__who b { font-size: 14.5px; font-weight: 600; }
.chat__who small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.chat__who small::before { content: "· "; }
.chat__channel { margin-left: auto; color: #2AABEE; }
.chat__channel svg { width: 20px; height: 20px; fill: currentColor; }

/* высота переписки подстраивается под высоту экрана: на ноутбуке 800 px блок тоже влезает целиком */
.chat__body {
  height: clamp(240px, calc(100vh - 560px), 320px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 10px 14px 12px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 18%);
          mask-image: linear-gradient(transparent, #000 18%);
  transition: opacity .5s var(--ease);
}
.chat__body.is-clearing { opacity: 0; }

/* сообщения: высота растёт плавно, без скачков */
.m-wrap { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s var(--ease), opacity .45s var(--ease); }
.m-wrap.in { grid-template-rows: 1fr; opacity: 1; }
.m-row { min-height: 0; overflow: hidden; display: flex; padding-top: 6px; }
.m-row--ai { justify-content: flex-end; }
.m {
  max-width: 78%; padding: 9px 13px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.45;
  white-space: pre-line;
}
.m time { float: right; margin: 5px 0 0 10px; font-size: 11px; line-height: 1; color: var(--muted); }
.m--buyer { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.m--ai { background: rgba(255, 179, 71, .14); border: 1px solid rgba(255, 179, 71, .3); border-bottom-right-radius: 5px; }
.m--typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.m--typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--a2); animation: typing 1.2s ease-in-out infinite; }
.m--typing i:nth-child(2) { animation-delay: .15s; }
.m--typing i:nth-child(3) { animation-delay: .3s; }

.m-product { display: flex; gap: 10px; padding: 7px; max-width: 86%; }
.m-product svg { width: 56px; height: 66px; border-radius: 10px; flex: none; }
.m-product__info { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding-right: 6px; }
.m-product__info b { font-size: 14px; font-weight: 600; }
.m-product__stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); }
.m-product__stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.m-product__sizes { display: flex; gap: 5px; }
.m-product__sizes span {
  min-width: 26px; padding: 4px 6px; border-radius: 7px; text-align: center;
  font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2);
}
.m-product__sizes span.is-on { color: #1A0F0A; background: var(--a2); border-color: var(--a2); }

/* центр: AI manager */
.brain { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; justify-self: center; width: 100%; padding: 0 12px; }
.core { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.core__state {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 200px; padding: 7px 14px; border-radius: 999px;
  font: 500 12px/1 var(--font-mono); color: var(--soft);
  background: rgba(19, 15, 12, .9); border: 1px solid var(--line-2);
  transition: border-color .3s, color .3s;
}
.core__state i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background-color .3s; }
.core[data-state="received"] .core__state i { background: var(--a3); }
.core[data-state="search"] .core__state i,
.core[data-state="prepare"] .core__state i { background: var(--a2); animation: blink .8s ease-in-out infinite; }
.core[data-state="sent"] .core__state i { background: var(--ok); }
.core:not([data-state="idle"]) .core__state { border-color: rgba(255, 179, 71, .35); }
@keyframes blink { 50% { opacity: .3; } }

.core__box {
  position: relative; display: grid; place-items: center;
  width: 104px; height: 104px; border-radius: 30px;
  background: linear-gradient(160deg, #2A2019, #15110E);
  border: 1px solid rgba(255, 214, 165, .2);
  box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .9), 0 0 70px -14px rgba(255, 122, 89, .45), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.bot { width: 66px; height: 66px; overflow: visible; }
.bot * { transform-box: fill-box; transform-origin: center; }
/* моргает */
.bot__eye { animation: botBlink 4.2s ease-in-out infinite; }
.bot__eye + .bot__eye { animation-delay: .04s; }
@keyframes botBlink { 0%, 91%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }
/* антенна дышит, при поиске — мигает */
.bot__light { animation: botLight 2.6s ease-in-out infinite; }
@keyframes botLight { 50% { opacity: .45; } }
.core[data-state="search"] .bot__light,
.core[data-state="prepare"] .bot__light { animation: botLight .45s steps(2) infinite; fill: #FFF3E2; }
/* ищет — глаза бегают; готовит ответ — «говорит» */
.core[data-state="search"] .bot__eyes { animation: botLook .9s ease-in-out infinite; }
@keyframes botLook { 0%, 100% { transform: translateX(-2.5px); } 50% { transform: translateX(2.5px); } }
.core[data-state="prepare"] .bot__mouth { animation: botTalk .28s ease-in-out infinite alternate; }
@keyframes botTalk { to { transform: scaleY(2.2); } }
/* отправил — радуется */
.bot__happy { opacity: 0; transition: opacity .25s; }
.core[data-state="sent"] .bot__eyes { opacity: 0; }
.core[data-state="sent"] .bot__happy { opacity: 1; }
.bot__eyes { transition: opacity .25s; }
.core[data-state="received"] .bot { animation: botHop .5s var(--ease); }
@keyframes botHop { 40% { transform: translateY(-4px) rotate(-4deg); } }
.core__ring {
  position: absolute; inset: -9px; border-radius: 37px;
  background: conic-gradient(from 0deg, transparent 0 55%, var(--a1) 75%, var(--a3) 90%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  padding: 2px;
  opacity: 0; transition: opacity .3s;
  animation: spin 1.1s linear infinite;
}
.core[data-state="search"] .core__ring,
.core[data-state="prepare"] .core__ring { opacity: 1; }
.core[data-state="prepare"] .core__ring { animation-duration: .6s; }
.core__wave { position: absolute; inset: 0; border-radius: 30px; border: 2px solid var(--a2); opacity: 0; }
.core[data-state="received"] .core__wave { animation: wave .9s var(--ease); }
.core[data-state="received"] .core__box { transform: scale(1.05); }
.core[data-state="sent"] .core__box { box-shadow: 0 30px 60px -22px rgba(0, 0, 0, .9), 0 0 80px -10px rgba(143, 227, 180, .35), inset 0 1px 0 rgba(255, 255, 255, .07); }
@keyframes wave { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.core__check {
  position: absolute; top: -9px; right: -9px;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--ok); color: #0D2A1B; border: 3px solid var(--bg);
  transform: scale(0); transition: transform .35s var(--ease);
}
.core__check svg { width: 13px; height: 13px; }
.core[data-state="sent"] .core__check { transform: scale(1); }
.core__name { font: 600 15px/1 var(--font-body); letter-spacing: 0; }

/* источники данных */
.sources { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; width: 100%; justify-self: end; }
.source {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: 15px;
  background: rgba(21, 17, 14, .94);
  border: 1px solid var(--line);
  transition: border-color .35s, box-shadow .35s, transform .35s var(--ease), opacity .35s;
}
.source__ico {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: var(--surface); border: 1px solid var(--line); color: var(--c, var(--a2));
  transition: background-color .35s, border-color .35s;
}
.source__ico svg { width: 19px; height: 19px; fill: currentColor; }
.source__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.source__text b { font-size: 14px; font-weight: 600; }
.source__text small { font-size: 12.5px; color: var(--muted); }
.source .short { display: none; }
.source__res { display: none; align-items: center; gap: 6px; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--ok); }
.source__res::before { content: "✓"; font-weight: 700; }
.source.is-active .source__res:not(:empty) { display: inline-flex; animation: rise .4s var(--ease); }
.source.is-active small { display: none; }
.source.is-active {
  border-color: color-mix(in srgb, var(--c, var(--a2)) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--c, var(--a2)) 25%, transparent), 0 16px 40px -16px color-mix(in srgb, var(--c, var(--a2)) 70%, transparent);
  transform: translateX(-6px);
}
.source.is-active .source__ico {
  background: color-mix(in srgb, var(--c, var(--a2)) 18%, transparent);
  border-color: color-mix(in srgb, var(--c, var(--a2)) 45%, transparent);
}
.demo.is-busy .source:not(.is-active) { opacity: .5; }

.source--playbook { --c: var(--a2); width: min(280px, 100%); }
.source--playbook.is-active { transform: translateY(-4px); }

.demo__result { display: none; }
/* плашка «не выдумывает»: что происходит, если ответа нет в данных */
.demo__foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.how__btn { flex: none; }
.guard {
  position: relative; z-index: 1; flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  border-radius: 18px;
  background:
    linear-gradient(rgba(21, 17, 14, .94), rgba(21, 17, 14, .94)) padding-box,
    linear-gradient(100deg, rgba(255, 214, 165, .4), rgba(255, 122, 89, .12) 40%, rgba(143, 227, 180, .35)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 20px 50px -30px rgba(255, 122, 89, .5);
}
.guard__ico {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: linear-gradient(145deg, rgba(255, 179, 71, .22), rgba(255, 122, 89, .08));
  border: 1px solid rgba(255, 179, 71, .35); color: var(--a2);
}
.guard__ico svg { width: 22px; height: 22px; }
.guard__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; margin: 0; }
.guard__text b { font: 600 15px/1.3 var(--font-body); letter-spacing: 0; }
.guard__text span { font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* мини-сценка «не знает → передаёт менеджеру», цикл 6 с:
   1) «Нет в базе» загорается, знак вопроса покачивается;
   2) по линии бежит сигнал, линия заливается оранжевым;
   3) «Менеджеру» загорается зелёным, выскакивает галочка; потом всё гаснет и повторяется */
.guard { flex-wrap: wrap; row-gap: 10px; }
.guard__text { flex: 1 1 220px; }
.guard__flow { display: flex; align-items: center; margin-left: auto; flex: none; --gf: 6s; }
.guard__chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 10px;
  font: 600 12.5px/1 var(--font-body); white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--soft);
}
.guard__chip--miss { animation: gfMiss var(--gf) var(--ease) infinite; }
.guard__chip--miss i {
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  font-style: normal; font-weight: 800; font-size: 11px; color: #1A0F0A; background: var(--a2);
  animation: gfAsk var(--gf) ease-in-out infinite;
}
@keyframes gfMiss {
  0%, 2% { opacity: .5; border-color: var(--line-2); }
  8%, 80% { opacity: 1; border-color: rgba(255, 179, 71, .55); }
  92%, 100% { opacity: .5; border-color: var(--line-2); }
}
@keyframes gfAsk {
  0%, 8% { transform: rotate(0); }
  11% { transform: rotate(-16deg); } 14% { transform: rotate(14deg); } 17% { transform: rotate(-8deg); } 20%, 100% { transform: rotate(0); }
}

.guard__line {
  position: relative; width: 58px; height: 2px; margin: 0 8px; border-radius: 1px;
  background: repeating-linear-gradient(90deg, rgba(255, 214, 165, .35) 0 4px, transparent 4px 8px);
}
.guard__line::before { /* заливка линии */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--a1), var(--a2));
  transform-origin: left; transform: scaleX(0);
  animation: gfFill var(--gf) var(--ease) infinite;
}
.guard__line b { /* сигнал */
  position: absolute; top: 50%; left: 0; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%;
  background: var(--a3); box-shadow: 0 0 12px 3px rgba(255, 179, 71, .75);
  opacity: 0; animation: gfDot var(--gf) var(--ease) infinite;
}
@keyframes gfFill { 0%, 22% { transform: scaleX(0); opacity: 1; } 46%, 80% { transform: scaleX(1); opacity: 1; } 92%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes gfDot { 0%, 21% { left: 0; opacity: 0; } 24% { opacity: 1; } 46% { left: 100%; opacity: 1; } 52%, 100% { left: 100%; opacity: 0; } }

.guard__chip--ok { animation: gfOk var(--gf) var(--ease) infinite; }
.guard__ava {
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(143, 227, 180, .16); color: var(--ok);
}
.guard__ava svg { width: 12px; height: 12px; }
.guard__done {
  position: absolute; top: -7px; right: -7px;
  display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); color: #0D2A1B; border: 2px solid #15110E;
  transform: scale(0); animation: gfDone var(--gf) var(--ease) infinite;
}
.guard__done svg { width: 9px; height: 9px; }
@keyframes gfOk {
  0%, 46% { opacity: .45; color: var(--muted); border-color: var(--line-2); background: var(--surface); transform: none; }
  50% { opacity: 1; color: var(--ok); border-color: rgba(143, 227, 180, .6); background: rgba(143, 227, 180, .1); transform: scale(1.07); }
  56%, 82% { opacity: 1; color: var(--ok); border-color: rgba(143, 227, 180, .45); background: rgba(143, 227, 180, .07); transform: none; }
  94%, 100% { opacity: .45; color: var(--muted); border-color: var(--line-2); background: var(--surface); transform: none; }
}
@keyframes gfDone { 0%, 49% { transform: scale(0); } 54% { transform: scale(1.25); } 58%, 84% { transform: scale(1); } 92%, 100% { transform: scale(0); } }
/* щит тоже вспыхивает, когда вопрос передан */
.guard__ico { animation: gfShield var(--gf, 6s) var(--ease) infinite; }
@keyframes gfShield { 0%, 46%, 70%, 100% { box-shadow: none; } 52% { box-shadow: 0 0 0 4px rgba(255, 179, 71, .14), 0 0 22px rgba(255, 179, 71, .35); } }

/* общий призыв под блоками 4–7 */
.how__cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(32px, 4vw, 48px); text-align: center; }
.how__cta-note { margin: 0; font-size: 14px; color: var(--muted); }
/* тихий призыв: текстовая ссылка со стрелкой вместо оранжевой кнопки (блоки 2, 5, 6) */
.more.how__btn--out { display: none; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 15px; font-weight: 600; color: var(--soft); text-decoration: none; transition: color .25s; }
.more svg { width: 16px; height: 16px; color: var(--a2); transition: transform .3s var(--ease); }
.more:hover { color: var(--text); }
.more:hover svg { transform: translateX(4px); }
.more--inline { display: inline; min-height: 0; font-size: inherit; font-weight: 600; color: var(--soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 179, 71, .5); }
.more--inline:hover { color: var(--text); text-decoration-color: var(--a2); }
.how__cta--quiet { gap: 6px; }

/* когда сценка не помещается рядом с текстом, она уходит строкой ниже, по центру */
@media (max-width: 1199px) { .guard__flow { margin: 0 auto; } }
/* узкий ноутбук и iPad горизонтально: источники плотнее, чтобы блок оставался в одном экране */
@media (min-width: 1024px) and (max-width: 1199px) {
  .sources { gap: 6px; }
  .source { padding: 6px 12px; }
}

/* iPad: две колонки — чат слева, справа AI manager с Playbook и источники сеткой 2 × 3 */
@media (max-width: 1023px) {
  .demo__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "chat brain" "chat sources";
    align-items: center; gap: 30px 28px;
  }
  .chat { grid-area: chat; align-self: stretch; }
  .chat__body { flex: 1; height: auto; min-height: 300px; }
  .brain { grid-area: brain; flex-direction: row; align-items: center; gap: 22px; align-self: end; }
  .core { gap: 10px; }
  .core__state { min-width: 0; padding: 6px 11px; font-size: 11px; white-space: nowrap; }
  .core__box { width: 84px; height: 84px; border-radius: 26px; }
  .core__ring { border-radius: 33px; }
  .core__wave { border-radius: 26px; }
  .bot { width: 54px; height: 54px; }
  .core__name { display: none; }
  .source--playbook { width: auto; flex: 1; min-width: 0; padding: 10px 12px; }
  .sources { grid-area: sources; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-self: start; }
  .source.is-active { transform: translateY(-3px); }
  .source__text b .full { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .demo__foot { flex-direction: column; align-items: stretch; gap: 14px; }
  .how__btn { align-self: center; }
}
/* iPad: в карточках только название и найденный результат, без описаний */
@media (max-width: 1023px) and (min-width: 600px) {
  .demo__stage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
  .source { padding: 8px 10px; gap: 10px; }
  .source__ico { width: 32px; height: 32px; border-radius: 10px; }
  .source__ico svg { width: 17px; height: 17px; }
  .source__text small { display: none; }
  .source__text b { font-size: 13.5px; }
  .source__res { font-size: 12px; }
  .source--playbook { flex: 0 1 auto; }
}
@media (max-width: 860px) and (min-width: 600px) {
  .source__text b .full { display: none; }
  .source__text b .short { display: inline; }
}

/* Телефоны: вертикальная схема, компактные источники, результат строкой ниже */
@media (max-width: 599px) {
  .demo { padding: 12px 12px 14px; border-radius: 22px; }
  .demo__stage { display: flex; flex-direction: column; align-items: center; gap: 24px; }
  .chat { width: 100%; border-radius: 18px; align-self: stretch; }
  .chat__head { padding: 8px 12px; }
  .chat__body { flex: none; height: 180px; min-height: 0; padding: 4px 10px 10px; }
  .m { max-width: 84%; }
  .m-product { max-width: 92%; }

  .brain { gap: 14px; width: 100%; justify-content: center; align-self: center; }
  .core { gap: 8px; }
  .core__box { width: 74px; height: 74px; border-radius: 23px; }
  .core__ring { border-radius: 30px; }
  .core__wave { border-radius: 23px; }
  .bot { width: 48px; height: 48px; }

  /* источники — одной строкой иконок; какой используется, видно в строке результата */
  .sources { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; width: 100%; }
  .sources .source { justify-content: center; padding: 5px; border-radius: 13px; aspect-ratio: 1; }
  .sources .source__text { display: none; }
  .sources .source__ico { width: 30px; height: 30px; border-radius: 10px; background: none; border: 0; }
  .sources .source__ico svg { width: 19px; height: 19px; }
  .sources .source.is-active { transform: translateY(-3px); }

  .guard { padding: 11px 13px; gap: 10px 12px; }
  .guard__flow { width: 100%; justify-content: center; }
  .guard__line { width: 46px; }
  .guard__ico { width: 36px; height: 36px; }
  .guard__text b { font-size: 14px; }
  .guard__text span { font-size: 13px; }
  .how__btn { align-self: stretch; justify-content: center; }
  .demo__foot { margin-top: 12px; gap: 12px; }

  .demo__result {
    display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
    min-height: 38px; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px;
    background: var(--surface); border: 1px solid var(--line);
    font: 500 12.5px/1.3 var(--font-mono); color: var(--muted); text-align: center;
  }
  .demo__result-val { color: var(--ok); }
  .demo__result-val:not(:empty)::before { content: "✓ "; }

  /* компактно: вся схема + «не выдумывает» в один экран телефона */
  .demo__stage { gap: 14px; }
  .chat__body { height: 140px; }
  .core { position: relative; }
  .core__state {
    position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    width: max-content; max-width: 116px; padding: 5px 9px; gap: 6px;
    font-size: 10.5px; white-space: normal; line-height: 1.2; border-radius: 12px;
  }
  .core__box { width: 64px; height: 64px; border-radius: 20px; }
  .core__ring { border-radius: 26px; }
  .core__wave { border-radius: 20px; }
  .bot { width: 42px; height: 42px; }
  .demo__result { margin-top: 8px; min-height: 34px; padding: 6px 10px; }
  .demo__foot { margin-top: 10px; }
  .guard { padding: 10px 12px; gap: 8px 10px; }
  .guard__ico { width: 30px; height: 30px; border-radius: 10px; }
  .guard__ico svg { width: 17px; height: 17px; }
  .guard__text { flex: 1 1 0; justify-content: center; }
  .guard__text span { display: none; }

  /* шапка чата — тонкой строкой, больше места переписке */
  .chat__head { gap: 7px; padding: 5px 11px; }
  .chat__avatar { display: none; }
  .chat__channel { order: -1; margin-left: 0; display: flex; }
  .chat__channel svg { width: 15px; height: 15px; }
  .chat__who b { font-size: 13px; }
  .chat__who small { font-size: 12px; }
  .chat__body { height: 188px; }

  /* кнопка — под рамкой анимации */
  .demo .how__btn { display: none; }
  .more.how__btn--out { display: flex; justify-content: center; margin: 6px auto 0; }
}

/* Меньше движения — для тех, кто так настроил систему */
/* =========================================================
   Блок 3: продаёт, а не только отвечает — этапы + одно окно
   ========================================================= */
.sell { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }

.sales {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(32px, 4.5vw, 52px);
}

/* ---------- этапы ---------- */
.sales__steps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sstep {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 16px;
  width: 100%;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid transparent;
  text-align: left;
  transition: background-color .35s, border-color .35s;
}
.sstep:hover { background: rgba(244, 238, 232, .03); }
.sstep.is-active { border-color: var(--line); background: linear-gradient(180deg, rgba(30, 24, 20, .7), rgba(16, 13, 11, .5)); }
.sstep__num { padding-top: 3px; font: 500 12px/1 var(--font-mono); color: var(--muted); transition: color .35s; }
.sstep.is-active .sstep__num { color: var(--a2); }
.sstep__text b { display: block; font: 600 clamp(16px, 1.3vw, 18px)/1.3 var(--font-body); letter-spacing: -.01em; color: var(--soft); transition: color .35s; }
.sstep.is-active .sstep__text b { color: var(--text); }
/* пояснение раскрывается только у активного этапа */
.sstep__text small { display: grid; grid-template-rows: 0fr; font-size: 14px; line-height: 1.45; color: var(--muted); transition: grid-template-rows .45s var(--ease); }
.sstep__text small > span { overflow: hidden; padding-top: 0; transition: padding-top .45s var(--ease); }
.sstep.is-active .sstep__text small { grid-template-rows: 1fr; }
.sstep.is-active .sstep__text small > span { padding-top: 6px; }
/* полоска: сколько осталось до следующего этапа */
.sstep__bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.sstep.is-active .sstep__bar { opacity: 1; background: rgba(244, 238, 232, .08); }
.sstep__bar i { display: block; height: 100%; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }

/* ---------- окно со сценкой ---------- */
.sales__screen {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 260px at 70% 0%, rgba(255, 122, 89, .12), transparent 70%),
    linear-gradient(180deg, rgba(30, 24, 20, .66), rgba(16, 13, 11, .5));
  box-shadow: 0 40px 100px -60px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .04);
  overflow: hidden;
}
.sales__bar { display: flex; align-items: center; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); font: 500 12.5px/1 var(--font-mono); color: var(--soft); }
.sales__stage { position: relative; height: 300px; }
.sales__src { margin: 0; padding: 12px 20px; border-top: 1px solid var(--line); font: 500 11px/1.4 var(--font-mono); color: var(--muted); }
.sales__src span { color: var(--a3); }

.sscene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 20px clamp(18px, 2.4vw, 28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility 0s .3s;
}
.sscene.is-active { opacity: 1; visibility: visible; transition: opacity .3s var(--ease) .1s, visibility 0s; }

/* реплики */
.sb {
  max-width: 82%;
  margin: 0;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.sb--in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.sb--out { align-self: flex-end; background: linear-gradient(135deg, rgba(255, 122, 89, .24), rgba(255, 179, 71, .14)); border: 1px solid rgba(255, 179, 71, .28); border-bottom-right-radius: 6px; }

/* 01 подбор: три жакета, подходящий выбирается */
.pick__list { display: flex; justify-content: center; gap: 12px; margin: 4px 0; padding: 0; list-style: none; opacity: 0; transition: opacity .45s; }
.pick__item { position: relative; width: 92px; aspect-ratio: 1; border-radius: 16px; background: #EFE6DA; border: 2px solid transparent; transition: opacity .45s, filter .45s, transform .45s var(--ease), border-color .35s, box-shadow .35s; }
.pick__item > svg { width: 100%; height: 100%; }
.pick__check { position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--grad-btn); color: #1A0F0A; box-shadow: 0 6px 18px rgba(255, 122, 89, .5); opacity: 0; transform: scale(.4); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.pick__check svg { width: 14px; height: 14px; }
.pick[data-step] .sb--in, .pick[data-step] .pick__list { opacity: 1; transform: none; }
.pick:is([data-step="1"], [data-step="2"]) .pick__item:not(.pick__item--hit) { opacity: .35; filter: grayscale(.8); transform: scale(.94); }
.pick:is([data-step="1"], [data-step="2"]) .pick__item--hit { transform: translateY(-4px); border-color: var(--a2); box-shadow: 0 14px 34px -12px rgba(255, 122, 89, .65); }
.pick:is([data-step="1"], [data-step="2"]) .pick__check,
.pick[data-step="2"] .sb--out { opacity: 1; transform: none; }

/* 02 допродажа */
.upsell[data-step] .sb--out,
.upsell:is([data-step="1"], [data-step="2"]) .sb--in { opacity: 1; transform: none; }
.upsell__lift { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 8px 0 0; font-size: 15px; color: var(--soft); opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.upsell__lift b { font: 600 clamp(40px, 4vw, 52px)/1 var(--font-head); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.upsell__lift small { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.upsell[data-step="2"] .upsell__lift { opacity: 1; transform: none; }

/* 03 заказ */
.order { gap: 26px; }
.order__steps { position: relative; display: flex; justify-content: space-between; margin: 0 auto; padding: 0; width: min(100%, 340px); list-style: none; }
.order__steps::before, .order__steps::after { content: ""; position: absolute; top: 17px; left: 18px; right: 18px; height: 2px; border-radius: 2px; background: rgba(244, 238, 232, .1); }
.order__steps::after { right: auto; width: 0; background: var(--grad); transition: width .7s var(--ease); }
.order[data-step="1"] .order__steps::after { width: calc(50% - 18px); }
.order:is([data-step="2"], [data-step="3"]) .order__steps::after { width: calc(100% - 36px); }
.order__steps li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.order__steps i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: #1A1410; color: transparent; transition: background .4s, color .4s, border-color .4s, box-shadow .4s; }
.order__steps svg { width: 16px; height: 16px; }
.order[data-step] .order__steps li:nth-child(1),
.order:is([data-step="1"], [data-step="2"], [data-step="3"]) .order__steps li:nth-child(2),
.order:is([data-step="2"], [data-step="3"]) .order__steps li:nth-child(3) { color: var(--text); }
.order[data-step] .order__steps li:nth-child(1) i,
.order:is([data-step="1"], [data-step="2"], [data-step="3"]) .order__steps li:nth-child(2) i,
.order:is([data-step="2"], [data-step="3"]) .order__steps li:nth-child(3) i { border-color: transparent; background: var(--grad-btn); color: #1A0F0A; box-shadow: 0 6px 18px -4px rgba(255, 122, 89, .6); }
.order__done { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 auto; padding: 11px 16px; border-radius: 14px; background: rgba(143, 227, 180, .1); border: 1px solid rgba(143, 227, 180, .3); color: var(--ok); font-size: 14.5px; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.order__done svg { width: 16px; height: 16px; }
.order[data-step="3"] .order__done { opacity: 1; transform: none; }

/* 04 «подумаю» */
.think { gap: 8px; }
/* AI распознал возражение: метка между репликами */
.think__gap { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 2px 0; opacity: 0; transition: opacity .45s; }
.think__gap::before, .think__gap::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.think__tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px;
  font: 600 12px/1 var(--font-body); color: var(--a2); white-space: nowrap;
  background: rgba(255, 179, 71, .1); border: 1px solid rgba(255, 179, 71, .3);
}
.think__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--a2); }
.think[data-step="1"] .think__tag { animation: tagPop .45s var(--ease); }
@keyframes tagPop { 0% { transform: scale(.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.think[data-step] .sb:nth-child(1),
.think:is([data-step="1"], [data-step="2"], [data-step="3"]) .think__gap,
.think:is([data-step="2"], [data-step="3"]) .sb:nth-child(3),
.think[data-step="3"] .sb:nth-child(4) { opacity: 1; transform: none; }

/* 05 самообучение: темы из ответов менеджеров пополняют базу → доля «отвечает сам» растёт */
.learn { gap: 16px; }
.learn__kb { display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(8px); transition: opacity .32s var(--ease), transform .32s var(--ease); }
.learn__kb-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; }
.learn__kb-title svg { flex: none; width: 17px; height: 17px; color: var(--a2); }
.learn__kb-title small { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.learn__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.learn__tags li { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255, 179, 71, .28); background: rgba(255, 179, 71, .08); font-size: 12.5px; color: var(--a3); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.learn__tags li:nth-child(2) { transition-delay: .18s; }
.learn__tags li:nth-child(3) { transition-delay: .36s; }

.learn__chart { padding: 14px 16px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(10, 8, 7, .35); opacity: 0; transition: opacity .32s; }
.learn__head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 13.5px; color: var(--soft); }
.learn__head > span { margin-right: auto; }
.learn__head b { font: 600 30px/1 var(--font-head); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.learn__head small { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.learn__bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; height: 84px; margin: 0 0 18px; padding: 0; list-style: none; }
.learn__bars li { position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.learn__bars i { display: block; flex: none; height: var(--h); border-radius: 6px 6px 3px 3px; background: rgba(244, 238, 232, .12); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.learn__bars li:last-child i { background: var(--grad); box-shadow: 0 8px 22px -8px rgba(255, 122, 89, .7); }
.learn__bars span { position: absolute; left: 0; right: 0; top: calc(100% + 7px); font: 500 10.5px/1 var(--font-mono); color: var(--muted); text-align: center; }
.learn__bars li:nth-child(2) i { transition-delay: .12s; }
.learn__bars li:nth-child(3) i { transition-delay: .24s; }
.learn__bars li:nth-child(4) i { transition-delay: .36s; }

.learn[data-step] .learn__kb,
.learn[data-step] .learn__tags li,
.learn[data-step] .learn__chart { opacity: 1; transform: none; }
.learn[data-step] .learn__chart { transition-delay: .3s; }
.learn:is([data-step="1"], [data-step="2"]) .learn__bars i { transform: none; }

/* ---------- «пишет как человек» — одна строка ---------- */
.sales__human {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: clamp(28px, 3.5vw, 40px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--line);
}
.sales__human li { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; color: var(--soft); }
.sales__human svg { width: 18px; height: 18px; color: var(--a2); }

/* iPad: окно сверху, этапы под ним */
@media (max-width: 899px) {
  .sales { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sales__screen { order: -1; }
  .sales__steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .sales__steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* телефон */
@media (max-width: 599px) {
  .sales__stage { height: 270px; }
  .sales__steps { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .sstep { padding: 12px 14px 14px; gap: 0 12px; }
  .sstep__text b { font-size: 16px; }
  .sstep__text small { font-size: 13px; }
  .sstep__bar { left: 14px; right: 14px; }
  .pick__item { width: 76px; }
  .learn { gap: 12px; }
  .learn__bars { height: 70px; }
  .learn__tags li:nth-child(3) { display: none; }
  .sb { font-size: 13.5px; max-width: 88%; }
  .sales__human { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sales__human li { gap: 7px; font-size: 13px; }
  .sales__human svg { width: 16px; height: 16px; }
}

/* =========================================================
   Блок 4: одна заявка — без AI manager и с ним, потом показатели «было → стало»
   ========================================================= */
.cases { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }

.race {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); gap: 12px; align-items: stretch;
  max-width: 1040px; margin: clamp(26px, 3vw, 40px) auto 0;
}
.lane {
  position: relative; display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(30, 24, 20, .7), rgba(16, 13, 11, .6));
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9);
  transition: border-color .5s var(--ease), box-shadow .5s var(--ease), opacity .5s var(--ease);
}
/* сразу видно, где «было», а где «стало»: оттенок и рамка с первого кадра */
.lane--off { background: linear-gradient(180deg, rgba(255, 107, 90, .07), rgba(16, 13, 11, .6) 55%); border-color: rgba(255, 107, 90, .22); }
.lane--on { background: linear-gradient(180deg, rgba(143, 227, 180, .08), rgba(16, 13, 11, .6) 55%); border-color: rgba(143, 227, 180, .28); }
.race__arrow {
  align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad-btn); color: #1A0F0A; box-shadow: 0 10px 30px -10px rgba(255, 122, 89, .7);
}
.race__arrow svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.lane--on.is-won {
  border-color: rgba(143, 227, 180, .4);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(143, 227, 180, .12), 0 20px 60px -30px rgba(143, 227, 180, .35);
}
.lane--off.is-lost { border-color: rgba(255, 107, 90, .3); }

.lane__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.lane__head b { font: 600 15.5px/1.2 var(--font-body); letter-spacing: 0; }
.lane__tag {
  flex: none; padding: 6px 11px; border-radius: 999px;
  font: 700 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.lane--off .lane__tag { color: #FF8C7A; background: rgba(255, 107, 90, .14); border: 1px solid rgba(255, 107, 90, .35); }
.lane--on .lane__tag { color: #0D2A1B; background: var(--ok); }
.lane__timer {
  display: inline-flex; align-items: center; gap: 7px; margin-left: auto;
  padding: 5px 10px; border-radius: 999px;
  font: 600 12.5px/1 var(--font-body); white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  transition: color .3s, border-color .3s, background-color .3s;
}
.lane__clock { position: relative; width: 13px; height: 13px; border-radius: 50%; border: 1.5px solid currentColor; flex: none; }
.lane__clock::after { content: ""; position: absolute; left: 50%; top: 1.5px; width: 1.5px; height: 4.5px; margin-left: -.75px; border-radius: 1px; background: currentColor; transform-origin: 50% 100%; }
.lane--off.is-waiting .lane__timer { color: #FF8C7A; border-color: rgba(255, 107, 90, .35); background: rgba(255, 107, 90, .08); }
.lane--off.is-waiting .lane__clock::after { animation: laneClock .8s linear infinite; }
.lane--on.is-answered .lane__timer { color: var(--ok); border-color: rgba(143, 227, 180, .4); background: rgba(143, 227, 180, .08); }
@keyframes laneClock { to { transform: rotate(360deg); } }

/* высота по содержимому: скрытые реплики уже занимают место, поэтому колонка не прыгает */
.lane__chat { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; }
.rb {
  position: relative; max-width: 76%; margin: 0; padding: 9px 13px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.45;
  opacity: 0; transform: translateY(8px) scale(.98);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.rb time { float: right; margin: 5px 0 0 10px; font-size: 11px; line-height: 1; color: var(--muted); }
.rb--in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.rb--out { align-self: flex-end; background: rgba(255, 179, 71, .14); border: 1px solid rgba(255, 179, 71, .3); border-bottom-right-radius: 5px; }
.rb--note { align-self: center; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; color: var(--muted); background: none; border: 1px dashed var(--line-2); }
.rb--late { background: var(--surface); border-color: var(--line); color: var(--muted); }
.rb.is-on { opacity: 1; transform: none; }
.rb--late.is-on { opacity: .55; }

.lane__res {
  margin: 0 14px 14px; padding: 11px 14px; border-radius: 13px; text-align: center;
  font: 600 14px/1.3 var(--font-body); letter-spacing: 0;
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.lane__res--lost { color: #FF8C7A; background: rgba(255, 107, 90, .08); border: 1px solid rgba(255, 107, 90, .3); }
.lane__res--won { color: var(--ok); background: rgba(143, 227, 180, .08); border: 1px solid rgba(143, 227, 180, .35); }
.lane__res.is-on { opacity: 1; transform: none; }
.lane__res--won.is-on { animation: resPop .5s var(--ease); }
@keyframes resPop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: none; } }

/* сброс перед повтором */
.race.is-reset .rb, .race.is-reset .lane__res { opacity: 0; transition-duration: .35s; }

.cases .how__cta { margin-top: clamp(22px, 3vw, 32px); }
.pricing .how__cta { margin-top: 18px; gap: 10px; }
.pricing .plans__note { margin-top: 16px; }

/* телефон: колонки друг под другом, переписка ниже */
@media (max-width: 599px) {
  .race { grid-template-columns: 1fr; gap: 10px; }
  .race__arrow { justify-self: center; width: 38px; height: 38px; }
  .race__arrow svg { transform: none; }
  .lane { border-radius: 18px; }
  .lane__head { padding: 11px 13px; }
  .lane__head b { font-size: 14.5px; }
  .lane__tag { padding: 5px 9px; font-size: 11px; }
  .lane__chat { padding: 12px 12px 10px; }
  .rb { font-size: 14px; max-width: 82%; }
  /* высота карточек фиксирована: скрытые реплики держат место, карточки не растут по ходу сценки */
}

/* =========================================================
   Блок 5: интеграции — все сервисы вокруг AI manager
   ========================================================= */
.integr { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 10vw, 140px); }

/* сетка на всю ширину экрана: по краям — пустые карточки, которые растворяются в фоне */
.integr__wall {
  position: relative;
  width: 100vw;
  margin: clamp(22px, 3vw, 36px) 0 0 calc(50% - 50vw);
  padding: 22px 0;
  display: flex;
  justify-content: center;
  overflow-x: clip;
}

/* размеры задаёт CSS, JS читает --cols / --rows / --ghost */
.integr__grid {
  --cols: 13;
  --rows: 3;
  --ghost: 2;       /* декоративных колонок с каждой стороны */
  --gap: 12px;
  --tile: min(78px, calc((100vw - 2 * var(--gutter) - 12 * var(--gap)) / 13));
  --ghost-w: calc(var(--ghost) * (var(--tile) + var(--gap)));
  position: relative;
  flex: none;
  display: grid;
  grid-auto-rows: var(--tile);
  gap: var(--gap);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--ghost-w), #000 calc(100% - var(--ghost-w)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--ghost-w), #000 calc(100% - var(--ghost-w)), transparent);
}

.itile {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(244, 238, 232, .045), rgba(244, 238, 232, .015));
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.itile--ghost { border-color: rgba(244, 238, 232, .06); background: rgba(244, 238, 232, .02); }

/* светлая карточка с логотипом; загорается волной от центра (задержка --d из JS) */
.itile__face {
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: linear-gradient(180deg, #FBF8F4, #EFE8E0);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .7);
  opacity: 0;
  transform: scale(.84);
  transition: opacity var(--fade, .6s) var(--ease) var(--d, 0s), transform var(--fade, .6s) var(--ease) var(--d, 0s);
}
.integr__wall.is-lit .itile__face { opacity: 1; transform: none; }
.itile__face img { width: 50%; height: 50%; object-fit: contain; }
.itile__face.is-mid img { width: 62%; height: 46%; }
.itile__face.is-wide img { width: 78%; height: 34%; }
/* у PNG-иконок белый фон — растворяем его в карточке */
.itile__face.is-png img { mix-blend-mode: multiply; }

/* отблеск, когда до сервиса дошёл импульс от AI manager */
.itile__face::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px rgba(255, 179, 71, .9), 0 0 24px rgba(255, 122, 89, .5);
  opacity: 0;
}
.itile.is-ping .itile__face::after { animation: itilePing 1.3s var(--ease); }
@keyframes itilePing { 20% { opacity: 1; } 100% { opacity: 0; } }

/* фильтр: остальные карточки уходят в тень */
.integr__wall.is-filtered .itile:not(.is-match):not(.itile--core) { opacity: .16; filter: grayscale(1) contrast(.45); }

/* «+ Ваша система» */
.itile--more .itile__face {
  gap: 2px;
  align-content: center;
  background: rgba(255, 179, 71, .06);
  border: 1.5px dashed rgba(255, 179, 71, .55);
  box-shadow: none;
}
.itile__plus { width: 24px; height: 24px; fill: none; stroke: var(--a2); stroke-width: 2.2; stroke-linecap: round; }
.itile--more em { font: 600 10px/1.15 var(--font-body); font-style: normal; color: var(--a3); text-align: center; }

/* центральная карточка — наш AI manager */
.itile--core {
  z-index: 1;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, #2A1A12, #160E0A) padding-box,
    var(--grad-btn) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 0 0 6px rgba(255, 122, 89, .07), 0 20px 60px -10px rgba(255, 122, 89, .5);
  animation: coreBreath 3.6s ease-in-out infinite;
}
.itile--core .bot { width: 66%; height: 66%; }
.itile__glow {
  position: absolute;
  inset: -30%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 89, .45), rgba(255, 179, 71, .12) 60%, transparent);
  filter: blur(6px);
  animation: coreGlow 3.6s ease-in-out infinite;
}
@keyframes coreBreath { 50% { transform: scale(1.035); box-shadow: 0 0 0 10px rgba(255, 122, 89, .05), 0 24px 70px -8px rgba(255, 122, 89, .65); } }
@keyframes coreGlow { 50% { opacity: .55; transform: scale(1.12); } }

/* импульс бежит по просветам между карточками, как по дорожкам платы */
.integr__sparks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.integr__sparks path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spark__trail { stroke: rgba(255, 179, 71, .22); stroke-width: 1.5; }
.spark__head { stroke: #FFC774; stroke-width: 2.5; filter: drop-shadow(0 0 4px rgba(255, 140, 80, .9)); }

.integr__wall.is-halted *, .integr__wall.is-halted *::after { animation-play-state: paused !important; }

/* подпись с названием сервиса */
.integr__tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(23, 19, 15, .94);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
  white-space: nowrap;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 4px));
  transition: opacity .2s, transform .2s var(--ease);
}
.integr__tip.is-shown { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }
.integr__tip b { display: block; font: 600 14px/1.25 var(--font-body); color: var(--text); }
.integr__tip small { display: block; font: 500 11px/1.4 var(--font-mono); color: var(--muted); }

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

/* планшет и iPad: 7 × 5 */
@media (max-width: 1199px) {
  .integr__grid { --cols: 7; --rows: 5; --ghost: 2; --tile: 88px; --gap: 14px; }
  .itile--more em { font-size: 11px; }
}
@media (max-width: 899px) {
  .integr__grid { --ghost: 1; --tile: 80px; --gap: 12px; }
}
/* две ленты логотипов навстречу друг другу на всех экранах */
.integr__grid { --marquee: 1; --mrows: 2; --mspeed: 42; display: none; }
.integr__wall { padding: 18px 0 10px; }
.integr__marquee {
  --mtile: 84px;
  --mgap: 14px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--mgap);
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.mrow { overflow: hidden; touch-action: pan-y; padding: 2px 0; cursor: grab; }
.mrow:active { cursor: grabbing; }
.mtrack { display: flex; gap: var(--mgap); padding-right: var(--mgap); width: max-content; will-change: transform; }
.mtrack .itile { flex: none; width: var(--mtile); height: var(--mtile); border-radius: 20px; }
.integr__marquee .itile--more em { display: none; }
.integr__marquee .itile__plus { width: 26px; height: 26px; stroke-width: 2.6; }
/* в лентах логотипы видны сразу, без проявления: не зависят от того, заметил ли скрипт блок на экране */
.integr__marquee .itile__face { opacity: 1; transform: none; transition: none; }
/* робота в центре лент нет — только логотипы */
.integr__marquee .itile--core { display: none; }
@media (max-width: 1023px) {
  .integr__marquee { --mtile: 76px; --mgap: 12px; }
}
@media (max-width: 599px) {
  .integr__grid { --mspeed: 48; }
  .integr__wall { padding: 12px 0 6px; margin-top: clamp(20px, 6vw, 28px); }
  .integr__marquee {
    --mtile: 64px;
    --mgap: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }
  .mtrack .itile { border-radius: 17px; }
  .integr__marquee .itile__plus { width: 22px; height: 22px; }
}

/* =========================================================
   Блок 6: как запускаем — шаги по очереди + финиш «успех»
   ========================================================= */
.launch { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }

.launch__steps {
  --dot: 40px;
  --gap: 18px;
  --p: 0; /* сколько пути пройдено, 0..1 — задаёт launch.js */
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
/* путь между шагами: подложка и оранжевая заливка */
.launch__steps::before, .launch__steps::after {
  content: "";
  position: absolute;
  top: calc(var(--dot) / 2 - 1px);
  left: calc(var(--dot) / 2);
  right: calc((100% - 3 * var(--gap)) / 4 - var(--dot) / 2);
  height: 2px;
  border-radius: 2px;
  background: rgba(244, 238, 232, .1);
}
.launch__steps::after {
  background: var(--grad);
  box-shadow: 0 0 12px rgba(255, 140, 80, .6);
  transform: scaleX(var(--p));
  transform-origin: left;
  transition: transform .8s var(--ease);
}

.lstep { position: relative; display: flex; flex-direction: column; min-width: 0; }

/* кружок шага: номер → галочка, у активного — пульс */
.lstep__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: #1A1410;
  color: var(--muted);
  transition: background .45s, color .45s, border-color .45s, box-shadow .45s;
}
.lstep__dot > * { grid-area: 1 / 1; transition: opacity .3s, transform .3s var(--ease); }
.lstep__dot b { font: 500 15px/1 var(--font-head); }
.lstep__dot svg { width: 18px; height: 18px; opacity: 0; transform: scale(.5); }
.lstep.is-active .lstep__dot, .lstep.is-done .lstep__dot { border-color: transparent; background: var(--grad-btn); color: #1A0F0A; box-shadow: 0 8px 22px -6px rgba(255, 122, 89, .6); }
.lstep.is-done .lstep__dot b { opacity: 0; transform: scale(.5); }
.lstep.is-done .lstep__dot svg { opacity: 1; transform: none; }
.lstep.is-active .lstep__dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 2px solid rgba(255, 160, 90, .7);
  animation: dotPing 1.4s ease-out infinite;
}
@keyframes dotPing { to { transform: scale(1.7); opacity: 0; } }
.launch__steps.is-halted *, .launch__steps.is-halted *::after { animation-play-state: paused !important; }

/* карточка шага */
.lstep__card {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 18px;
  padding: 18px 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 24, 20, .66), rgba(16, 13, 11, .5));
  box-shadow: 0 24px 60px -44px rgba(0, 0, 0, .9);
  transition: transform .5s var(--ease), border-color .5s, box-shadow .5s, opacity .5s;
}
.launch__steps.is-running .lstep:not(.is-active):not(.is-done) .lstep__card { opacity: .5; }
.lstep.is-active .lstep__card {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 71, .45);
  box-shadow: 0 30px 70px -36px rgba(255, 122, 89, .55), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.lstep__who { margin: 0; font: 500 11.5px/1.3 var(--font-mono); color: var(--a2); }
.lstep h3 { margin: 0 0 6px; font: 600 clamp(16px, 1.3vw, 18px)/1.3 var(--font-body); letter-spacing: -.01em; }

/* 1 — чек-лист: пункты отмечаются по очереди */
.lcheck { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin: auto 0 0; padding: 0; list-style: none; }
.lcheck li { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-size: 12.5px; line-height: 1.25; color: var(--soft); transition: border-color .35s, background-color .35s, opacity .45s var(--ease), transform .45s var(--ease); }
/* пока сценарий не дошёл до шага 1 — пункты спрятаны (с самой загрузки, а не только с .is-running: шаг 1 становится
   активным в тот же миг, что и запускается сценарий, иначе в первом круге им неоткуда «выехать»); потом загорается галочка */
.js .lstep:not(.is-active):not(.is-done) .lcheck li { opacity: 0; transform: translateX(-12px); }
.lcheck i { display: grid; place-items: center; flex: none; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line-2); color: transparent; transition: background .35s, color .35s, border-color .35s; }
.lcheck svg { width: 10px; height: 10px; }
.lstep.is-active .lcheck li, .lstep.is-done .lcheck li { border-color: rgba(255, 179, 71, .25); background: rgba(255, 179, 71, .05); }
.lstep.is-active .lcheck i, .lstep.is-done .lcheck i { border-color: transparent; background: var(--grad-btn); color: #1A0F0A; }
.lstep.is-active .lcheck li:nth-child(1) { transition-delay: .2s; }  .lstep.is-active .lcheck li:nth-child(1) i { transition-delay: .55s; }
.lstep.is-active .lcheck li:nth-child(2) { transition-delay: .65s; } .lstep.is-active .lcheck li:nth-child(2) i { transition-delay: 1s; }
.lstep.is-active .lcheck li:nth-child(3) { transition-delay: 1.1s; } .lstep.is-active .lcheck li:nth-child(3) i { transition-delay: 1.45s; }
.lstep.is-active .lcheck li:nth-child(4) { transition-delay: 1.55s; } .lstep.is-active .lcheck li:nth-child(4) i { transition-delay: 1.9s; }

/* 2 — обучение AI: полоса до 100% */
.ltrain { margin-top: auto; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(13, 11, 10, .45); }
.ltrain__head { display: flex; justify-content: space-between; margin: 0 0 8px; font-size: 12.5px; color: var(--soft); }
.ltrain__head b { font: 500 12px/1 var(--font-mono); color: var(--a2); }
.ltrain__bar { display: block; height: 6px; border-radius: 6px; background: rgba(244, 238, 232, .08); overflow: hidden; }
.ltrain__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 2.2s cubic-bezier(.4, .1, .3, 1); }
.lstep.is-active .ltrain__bar i, .lstep.is-done .ltrain__bar i { transform: scaleX(1); }
.ltrain__src { display: flex; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ltrain__src li { padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); transition: color .35s, border-color .35s, background-color .35s; }
.lstep.is-active .ltrain__src li, .lstep.is-done .ltrain__src li { color: var(--text); border-color: rgba(143, 227, 180, .3); background: rgba(143, 227, 180, .08); }
.lstep.is-active .ltrain__src li:nth-child(1) { transition-delay: .6s; }
.lstep.is-active .ltrain__src li:nth-child(2) { transition-delay: 1.2s; }
.lstep.is-active .ltrain__src li:nth-child(3) { transition-delay: 1.8s; }

/* 3 — проверка: тестовый вопрос, ответ, штамп «одобрено» */
.ltest { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.ltest p { margin: 0; padding: 7px 11px; border-radius: 13px; font-size: 12.5px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ltest__q { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.ltest__a { align-self: flex-end; background: linear-gradient(135deg, rgba(255, 122, 89, .24), rgba(255, 179, 71, .14)); border: 1px solid rgba(255, 179, 71, .28); border-bottom-right-radius: 4px; }
.ltest__ok { align-self: flex-end; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(143, 227, 180, .12); border: 1px solid rgba(143, 227, 180, .35); font-size: 11.5px; font-weight: 600; color: var(--ok); transition: opacity .35s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.ltest__ok svg { width: 11px; height: 11px; }
.launch__steps.is-running .lstep:not(.is-active):not(.is-done) .ltest__a,
.launch__steps.is-running .lstep:not(.is-active):not(.is-done) .ltest__ok { opacity: 0; transform: translateY(6px); }
.launch__steps.is-running .lstep:not(.is-active):not(.is-done) .ltest__ok { transform: scale(.6); }
.lstep.is-active .ltest__a { transition-delay: .7s; }
.lstep.is-active .ltest__ok { transition-delay: 1.5s; }

/* 4 — запуск: статус «онлайн», вопросы покупателей влетают из мессенджеров, к каждому — метка «ответил за N с», счётчик диалогов бежит */
.lstep--trial .lstep__who { color: var(--ok); }
.llive { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.llive__status { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin: 0; padding: 5px 10px 5px 8px; border-radius: 999px; background: rgba(143, 227, 180, .1); border: 1px solid rgba(143, 227, 180, .3); font: 600 11.5px/1 var(--font-body); color: var(--ok); transition: opacity .4s var(--ease), transform .45s var(--ease); }
.llive__status i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.llive__status i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ok); animation: dotPing 1.6s ease-out infinite; }
.llive__feed { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; list-style: none; }
.llive__feed li { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 7px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--soft); transition: opacity .4s var(--ease), transform .45s var(--ease); }
.llive__feed li > svg { flex: none; width: 15px; height: 15px; color: var(--a2); }
.llive__feed li > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.llive__feed li > b { display: inline-flex; align-items: center; gap: 3px; flex: none; padding: 3px 7px 3px 5px; border-radius: 999px; background: rgba(143, 227, 180, .12); border: 1px solid rgba(143, 227, 180, .35); font: 600 10.5px/1 var(--font-mono); color: var(--ok); transition: opacity .3s var(--ease), transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.llive__feed li > b svg { width: 9px; height: 9px; }
.llive__count { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; align-items: baseline; margin: 2px 0 0; transition: opacity .4s var(--ease); }
.llive__count b { font: 600 26px/1 var(--font-head); letter-spacing: -.02em; background: linear-gradient(135deg, #C9F5DA, var(--ok) 55%, #5FC98F); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.llive__count span { font-size: 13px; color: var(--text); }
.llive__count small { grid-column: 1 / -1; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--muted); }
/* до шага 4 всё спрятано */
.launch__steps.is-running .lstep--trial:not(.is-active):not(.is-done) .llive__status { opacity: 0; transform: scale(.85) translateY(4px); }
.launch__steps.is-running .lstep--trial:not(.is-active):not(.is-done) .llive__feed li { opacity: 0; transform: translateX(-12px); }
.launch__steps.is-running .lstep--trial:not(.is-active):not(.is-done) .llive__feed li > b { opacity: 0; transform: scale(.5); }
.launch__steps.is-running .lstep--trial:not(.is-active):not(.is-done) .llive__count { opacity: 0; }
/* шаг 4 активен — появляется по очереди */
.lstep--trial.is-active .llive__status { transition-delay: .15s; }
.lstep--trial.is-active .llive__feed li:nth-child(1) { transition-delay: .6s; }
.lstep--trial.is-active .llive__feed li:nth-child(2) { transition-delay: 1.3s; }
.lstep--trial.is-active .llive__feed li:nth-child(3) { transition-delay: 2s; }
.lstep--trial.is-active .llive__feed li:nth-child(1) > b { transition-delay: 1.05s; }
.lstep--trial.is-active .llive__feed li:nth-child(2) > b { transition-delay: 1.75s; }
.lstep--trial.is-active .llive__feed li:nth-child(3) > b { transition-delay: 2.45s; }
.lstep--trial.is-active .llive__count { transition-delay: .5s; }
.lstep--trial.is-active .lstep__card { border-color: rgba(143, 227, 180, .45); animation: winGlow 1.6s var(--ease) .2s both; }
@keyframes winGlow {
  0% { box-shadow: 0 0 0 0 rgba(143, 227, 180, .45), 0 30px 70px -36px rgba(255, 122, 89, .55); }
  100% { box-shadow: 0 0 0 14px rgba(143, 227, 180, 0), 0 30px 70px -36px rgba(143, 227, 180, .45); }
}
.lstep--trial.is-done .lstep__card { border-color: rgba(143, 227, 180, .35); }

/* iPad и телефон: шаги сверху вниз, путь слева */
@media (max-width: 899px) {
  .launch__steps { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 560px; margin-left: auto; margin-right: auto; }
  .launch__steps::before, .launch__steps::after {
    top: calc(var(--dot) / 2);
    bottom: 70px;
    left: calc(var(--dot) / 2 - 1px);
    right: auto;
    width: 2px;
    height: auto;
  }
  .launch__steps::after { transform: scaleY(var(--p)); transform-origin: top; }
  .lstep { padding-left: calc(var(--dot) + 14px); }
  .lstep__dot { position: absolute; left: 0; top: 16px; }
  .lstep__card { margin-top: 0; }
  .lstep.is-active .lstep__card { transform: translateX(4px); }
}
@media (max-width: 599px) {
  .launch__steps { --dot: 34px; gap: 12px; }
  .lstep { padding-left: calc(var(--dot) + 10px); }
  .lstep__card { padding: 14px 14px 16px; border-radius: 18px; }
  .lcheck li { font-size: 12.5px; }
}

/* =========================================================
   Блок 7: тарифы — как платите + 4 тарифа
   ========================================================= */
.pricing { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }

/* гарантия: $0 до результата */
.guarantee {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 4.5vw, 48px);
  padding: 22px clamp(20px, 3vw, 36px);
  border-radius: 24px;
  border: 1px solid transparent;
  background:
    radial-gradient(420px 200px at 8% 50%, rgba(143, 227, 180, .14), transparent 70%) padding-box,
    linear-gradient(180deg, #1C1612, #130E0B) padding-box,
    linear-gradient(110deg, rgba(143, 227, 180, .55), rgba(255, 179, 71, .25) 45%, rgba(244, 238, 232, .08)) border-box;
  box-shadow: 0 30px 80px -50px rgba(143, 227, 180, .35);
}
.guarantee__big { display: flex; flex-direction: column; gap: 4px; margin: 0; padding-right: clamp(20px, 3vw, 40px); border-right: 1px solid var(--line); }
.guarantee__big b { font: 600 clamp(44px, 4vw, 60px)/.95 var(--font-head); letter-spacing: -.03em; background: linear-gradient(135deg, #C9F5DA, var(--ok) 55%, #5FC98F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guarantee__big span { font: 500 12px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--ok); }
.guarantee__text { margin: 0; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.5; color: var(--soft); text-wrap: balance; }
.guarantee__text .term { color: var(--text); font-weight: 600; }

/* печать «гарантия результата» медленно вращается */
.guarantee__seal { position: relative; display: grid; place-items: center; width: 96px; height: 96px; }
.guarantee__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: sealSpin 22s linear infinite; }
.guarantee__ring text { font: 600 9.2px var(--font-mono); letter-spacing: .14em; fill: rgba(143, 227, 180, .85); }
.guarantee__shield { width: 30px; height: 30px; color: var(--ok); filter: drop-shadow(0 0 10px rgba(143, 227, 180, .5)); }
@keyframes sealSpin { to { transform: rotate(360deg); } }

/* подсказка к термину: наведение мышью или касание */
.term {
  position: relative;
  display: inline;
  padding: 0;
  border-bottom: 1px dashed currentColor;
  font: inherit;
  color: inherit;
  text-underline-offset: 3px;
}
.term::after {
  content: attr(data-tip);
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: calc(100% + 10px);
  width: max-content;
  max-width: 230px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #1D1713;
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .9);
  font: 400 12.5px/1.4 var(--font-body);
  color: var(--text);
  text-align: left;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .2s, transform .2s var(--ease);
}
.term:hover::after, .term:focus-visible::after, .term.is-open::after { opacity: 1; transform: translate(-50%, 0); }
.term:focus { outline: none; }

/* одна строка под тарифами */
.plans__note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 22px 0 0; font-size: 14px; color: var(--soft); }
.plans__note > svg { width: 15px; height: 15px; color: var(--ok); }
.plans__note > span { color: var(--muted); }
.plans__note .term { color: var(--text); }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 24, 20, .66), rgba(16, 13, 11, .5));
  transition: transform .35s var(--ease), border-color .35s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan h3 { margin: 0 0 4px; font: 500 13px/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 0; }
.plan__price b { font: 600 clamp(34px, 3vw, 42px)/1 var(--font-head); letter-spacing: -.02em; color: var(--text); }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__limit { margin: 6px 0 0; font-size: 15px; color: var(--soft); }
.plan__limit b { color: var(--text); }
.plan__fit { margin: auto 0 0; padding-top: 10px; font-size: 13.5px; color: var(--soft); }

.plan--hot {
  border-color: transparent;
  background:
    radial-gradient(260px 160px at 50% 0%, rgba(255, 122, 89, .18), transparent 70%) padding-box,
    linear-gradient(180deg, #241811, #150F0B) padding-box,
    linear-gradient(160deg, rgba(255, 179, 71, .8), rgba(255, 122, 89, .2) 60%, rgba(255, 122, 89, .06)) border-box;
  box-shadow: 0 30px 70px -40px rgba(255, 122, 89, .6);
}
.plan--hot .plan__price b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__badge { position: absolute; top: -11px; left: 20px; padding: 5px 10px; border-radius: 999px; background: var(--grad-btn); color: #1A0F0A; font: 600 11px/1 var(--font-body); }

.plan--custom { border-style: dashed; background: rgba(244, 238, 232, .02); }
.plan--custom .plan__price b { font: 600 22px/1.1 var(--font-body); letter-spacing: -.01em; }
.plan__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--a2); }
.plan__link svg { transform: rotate(-90deg); }

/* iPad: тарифы 2 × 2 */
@media (max-width: 1023px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  /* плашка гарантии: цифра и печать в первом ряду, текст — во всю ширину под ними */
  .guarantee { grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; }
  .guarantee__big { padding-right: 0; border-right: 0; }
  .guarantee__big b { font-size: 52px; }
  .guarantee__seal { width: 80px; height: 80px; justify-self: end; }
  .guarantee__text { grid-column: 1 / -1; grid-row: 2; text-wrap: pretty; }
}
/* телефон */
@media (max-width: 599px) {
  .guarantee { gap: 14px 18px; padding: 18px; }
  .guarantee__big b { font-size: 44px; }
  .guarantee__seal { width: 72px; height: 72px; }
  .guarantee__shield { width: 22px; height: 22px; }
  .guarantee__text { font-size: 14.5px; }
  .plans__note { font-size: 13px; }

  /* тарифы — карусель: одна карточка на экран, следующая выглядывает справа, листается пальцем */
  .plans {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 12px;
    margin: 18px calc(-1 * var(--gutter)) 0;
    padding: 14px var(--gutter) 6px;   /* сверху место под плашку «Оптимальный» */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plan { scroll-snap-align: center; padding: 22px 20px 20px; border-radius: 20px; }
  .plan:hover { transform: none; }
  .plan__price b { font-size: 38px; }
  .plan--custom .plan__price b { font-size: 24px; }
  .plan__limit { font-size: 15px; }
  .plan__fit { font-size: 14px; }
  /* подсказка «что такое диалог» открывается от левого края карточки, чтобы не уезжать за экран */
  .plans .term::after { left: 0; transform: translate(0, 4px); }
  .plans .term:hover::after, .plans .term.is-open::after { transform: none; }

  .plans__dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
  .plans__dots button { width: 7px; height: 7px; padding: 0; border-radius: 999px; background: rgba(244, 238, 232, .22); transition: width .3s var(--ease), background-color .3s; }
  .plans__dots button.is-on { width: 22px; background: var(--a2); }
}
@media (min-width: 600px) { .plans__dots { display: none; } }

/* =========================================================
   Блок 8: частые вопросы — аккордеон
   ========================================================= */
.faq { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(72px, 9vw, 120px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq__side { position: sticky; top: 110px; }
.faq__side .section-title { text-align: left; }
.faq__lead { margin: 16px 0 24px; font-size: clamp(15px, 1.3vw, 17px); color: var(--muted); }

.faq__list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 4px;
  text-align: left;
  font: 600 clamp(16px, 1.3vw, 18px)/1.35 var(--font-body);
  color: var(--soft);
  transition: color .25s;
}
.faq__q:hover, .faq__item.is-open .faq__q { color: var(--text); }
/* плюс превращается в крестик */
.faq__q i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .35s var(--ease); }
.faq__q i::before, .faq__q i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; margin: -.8px 0 0 -5.5px; border-radius: 2px; background: currentColor; }
.faq__q i::after { transform: rotate(90deg); }
.faq__item.is-open .faq__q i { transform: rotate(45deg); border-color: transparent; background: var(--grad-btn); color: #1A0F0A; }

.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 52px 20px 4px; font-size: 15.5px; line-height: 1.6; color: var(--soft); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }

@media (max-width: 899px) {
  .faq__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .faq__side { position: static; text-align: center; }
  .faq__side .section-title { text-align: center; }
  .faq__side .btn { display: none; }
  .faq__lead { margin-bottom: 0; }
}
@media (max-width: 599px) {
  .faq__q { padding: 16px 2px; font-size: 15.5px; }
  .faq__q i { width: 28px; height: 28px; }
  .faq__a p { padding: 0 8px 16px 2px; font-size: 14.5px; }
}

/* =========================================================
   Блок 8: финальный призыв — заголовок, три цифры плитками, кнопка и гарантия.
   Анимация один раз при появлении: строки заголовка поднимаются, плитки выезжают
   по очереди, числа отсчитываются, по плиткам пробегает блик. Фон — искры и луч по контуру.
   ========================================================= */
.final { position: relative; padding: clamp(24px, 3vw, 40px) 0 clamp(80px, 10vw, 140px); }
.final__card {
  position: relative;
  padding: clamp(44px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 32px;
  border: 1px solid rgba(255, 179, 71, .2);
  background:
    radial-gradient(520px 380px at 78% 20%, rgba(255, 122, 89, .16), transparent 70%),
    linear-gradient(180deg, rgba(30, 24, 20, .82), rgba(14, 11, 9, .7));
  box-shadow: 0 50px 120px -60px rgba(255, 122, 89, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  isolation: isolate;
}
/* мягкое «дыхание» света за кнопкой */
.final__glow { position: absolute; z-index: -1; left: 4%; bottom: -200px; width: 560px; height: 360px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 140, 80, .22), transparent); animation: finalBreath 5s ease-in-out infinite; pointer-events: none; }
@keyframes finalBreath { 50% { transform: scale(1.12); opacity: .6; } }

/* бегущий луч по контуру карточки */
@property --beam { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.final__card::before {
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0deg 240deg, rgba(255, 122, 89, .5) 290deg, #FFB347 335deg, #FFE7C7 350deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: beam 7s linear infinite;
}
@keyframes beam { to { --beam: 360deg; } }

/* искры поднимаются снизу; сами точки рисует main.js */
.final__sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.final__sparks i { position: absolute; bottom: -6px; left: var(--x); width: var(--s, 3px); height: var(--s, 3px); border-radius: 50%; background: #FFC37A; box-shadow: 0 0 10px 2px rgba(255, 140, 80, .55); opacity: 0; animation: finalRise var(--t) linear var(--d) infinite; }
@keyframes finalRise { 12% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translate(var(--dx), -520px); opacity: 0; } }

/* ---------- заголовок и подзаголовок: в две колонки, подзаголовок прижат к низу заголовка ---------- */
.final__head { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 48px; align-items: end; }
.final__title { margin: 0; font: 500 clamp(26px, 2.6vw, 36px)/1.12 var(--font-head); letter-spacing: -.025em; text-wrap: balance; }
.final__title > span { display: inline-block; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.final__accent { transition-delay: .2s !important; color: var(--a2); background: linear-gradient(90deg, #FF7A59, #FFB347 25%, #FFE7C7 50%, #FFB347 75%, #FF7A59) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradFlow 6s linear infinite; }
@keyframes gradFlow { to { background-position: -200% 0; } }
.js .final__card:not(.is-inview) .final__title > span { opacity: 0; transform: translateY(22px); }
.final__sub { margin: 0; font-size: clamp(15px, 1.25vw, 17px); line-height: 1.5; color: var(--soft); transition: opacity .8s var(--ease) .35s, transform .8s var(--ease) .35s; }
.js .final__card:not(.is-inview) .final__sub { opacity: 0; transform: translateY(14px); }

/* ---------- три цифры ---------- */
.final__tiles { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.final__tiles li {
  position: relative; overflow: hidden;
  padding: 20px 22px; border-radius: 18px;
  background: rgba(244, 238, 232, .035); border: 1px solid var(--line);
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .5s;
}
.final__tiles b { display: block; font: 600 clamp(30px, 3vw, 40px)/1 var(--font-head); letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.final__tiles li > span { display: block; margin-top: 8px; font-size: 14px; color: var(--soft); }
/* блик, пробегающий по плитке один раз после появления */
.final__tiles li::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 215, 165, .18), transparent); transform: skewX(-18deg) translateX(0); opacity: 0; pointer-events: none; }
.final__tiles.is-in li { opacity: 1; transform: none; }
.final__tiles.is-in li:nth-child(2) { transition-delay: .12s; }
.final__tiles.is-in li:nth-child(3) { transition-delay: .24s; }
.final__tiles.is-in li::after { animation: tileShine 1.1s var(--ease) both; }
.final__tiles.is-in li:nth-child(1)::after { animation-delay: .9s; }
.final__tiles.is-in li:nth-child(2)::after { animation-delay: 1.05s; }
.final__tiles.is-in li:nth-child(3)::after { animation-delay: 1.2s; }
@keyframes tileShine { 0% { opacity: 0; transform: skewX(-18deg) translateX(0); } 15% { opacity: 1; } 100% { opacity: 0; transform: skewX(-18deg) translateX(420%); } }
/* после отсчёта плитки тёплым контуром «подтверждают» цифру и гаснут */
.final__tiles.is-in li { animation: tileEdge 1.6s var(--ease) 1s both; }
.final__tiles.is-in li:nth-child(2) { animation-delay: 1.15s; }
.final__tiles.is-in li:nth-child(3) { animation-delay: 1.3s; }
@keyframes tileEdge { 35% { border-color: rgba(255, 179, 71, .55); box-shadow: 0 0 0 1px rgba(255, 179, 71, .15), 0 18px 40px -24px rgba(255, 122, 89, .6); } 100% { border-color: var(--line); box-shadow: none; } }
.final__tiles li:hover { border-color: var(--line-2); }

/* ---------- гарантия под плашкой ---------- */
.final__guar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--soft); transition: opacity .7s var(--ease) .9s; }
.js .final__card:not(.is-inview) .final__guar { opacity: 0; }
.final__guar li { display: inline-flex; align-items: center; gap: 7px; }
.final__guar li svg { width: 14px; height: 14px; color: var(--ok); }
.final__guar li + li::before { content: "·"; margin-right: 14px; color: var(--muted); }
.final__guar b { color: var(--text); font-weight: 600; }

/* ---------- попробовать в деле: плашка-чат, ведёт в Telegram ---------- */
.final__try {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto; align-items: center; gap: 16px 22px;
  margin-top: 30px; padding: 20px 22px 20px 20px; border-radius: 22px;
  border: 1px solid rgba(255, 179, 71, .3);
  background: linear-gradient(90deg, rgba(255, 179, 71, .08), rgba(244, 238, 232, .03) 55%);
  color: var(--text); text-decoration: none;
  transition: border-color .25s, background-color .25s, transform .3s var(--ease), opacity .7s var(--ease) .7s, translate .7s var(--ease) .7s;
}
.js .final__card:not(.is-inview) .final__try { opacity: 0; translate: 0 14px; }
.final__try:hover { border-color: rgba(255, 179, 71, .5); transform: translateY(-2px); }
.final__try-ava { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); }
.final__try-ava svg { width: 42px; height: 42px; overflow: visible; }
.final__try-ava i { position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); border: 2px solid #15100D; box-shadow: 0 0 8px var(--ok); }
.final__try-ava i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid var(--ok); animation: dotPing 1.8s ease-out infinite; }
.final__try-text { display: flex; flex-direction: column; gap: 4px; }
.final__try-text b { font-size: 17px; font-weight: 600; }
.final__try-text > span { font-size: 14px; line-height: 1.45; color: var(--muted); }
/* мини-чат: точки «печатает» сменяются сообщением бота, и так по кругу */
.final__try-chat { position: relative; display: flex; align-items: center; min-height: 48px; }
.final__try-typing, .final__try-msg { position: absolute; left: 0; top: 50%; translate: 0 -50%; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: rgba(30, 24, 20, .95); border: 1px solid var(--line-2); }
.final__try-typing { display: inline-flex; gap: 5px; padding: 13px 14px; animation: tryTyping 7s ease-in-out infinite; }
.final__try-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--a3); animation: typing 1.2s ease-in-out infinite; }
.final__try-typing i:nth-child(2) { animation-delay: .15s; }
.final__try-typing i:nth-child(3) { animation-delay: .3s; }
.final__try-msg { max-width: 100%; font-size: 13.5px; line-height: 1.45; color: var(--text); animation: tryMsg 7s ease-in-out infinite; }
@keyframes tryTyping { 0%, 22% { opacity: 1; transform: scale(1); } 28%, 86% { opacity: 0; transform: scale(.9); } 92%, 100% { opacity: 1; transform: scale(1); } }
@keyframes tryMsg { 0%, 24% { opacity: 0; transform: translateY(6px) scale(.96); } 30%, 84% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(6px) scale(.96); } }
.final__try-go { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 56px; padding: 0 26px; border-radius: 15px; background: var(--grad-btn); color: #1A0F0A; font-size: 16px; font-weight: 600; white-space: nowrap; box-shadow: 0 14px 40px -12px rgba(255, 122, 89, .8), inset 0 1px 0 rgba(255, 255, 255, .35); animation: btnPulse 2.8s ease-in-out infinite; transition: transform .25s var(--ease), box-shadow .25s; }
@keyframes btnPulse { 50% { box-shadow: 0 18px 60px -10px rgba(255, 122, 89, 1), 0 0 0 6px rgba(255, 140, 80, .12), inset 0 1px 0 rgba(255, 255, 255, .45); } }
.final__try-go svg { width: 18px; height: 18px; fill: currentColor; }
.final__try:hover .final__try-go { animation: none; transform: translateY(-2px); box-shadow: 0 22px 50px -14px rgba(255, 122, 89, .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.final__card:not(.is-live) .final__try-typing, .final__card:not(.is-live) .final__try-typing i, .final__card:not(.is-live) .final__try-msg, .final__card:not(.is-live) .final__try-ava i::after { animation-play-state: paused !important; }

/* всё стоит, пока карточки не видно (класс ставит main.js) */
.final__card:not(.is-live)::before,
.final__card:not(.is-live) .final__sparks i,
.final__card:not(.is-live) .final__glow,
.final__card:not(.is-live) .final__try-go { animation-play-state: paused !important; }

@media (max-width: 1023px) {
  .final__head { grid-template-columns: 1fr; gap: 14px; }
  .final__try { grid-template-columns: auto minmax(0, 1fr) auto; }
  .final__try-chat { grid-column: 2 / -1; min-height: 44px; }
}
@media (max-width: 599px) {
  .final__card { border-radius: 24px; padding: 32px 18px 28px; }
  .final__title { text-wrap: wrap; }
  .final__tiles { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; }
  .final__tiles li { padding: 16px 16px; }
  .final__tiles b { font-size: 27px; white-space: nowrap; }
  .final__tiles li:last-child { grid-column: 1 / -1; }
  .final__tiles li > span { font-size: 13px; }
  .final__guar { flex-direction: column; align-items: center; gap: 8px; }
  .final__guar li + li::before { display: none; }
  .final__try { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; margin-top: 22px; padding: 14px; border-radius: 18px; }
  .final__try-ava { width: 44px; height: 44px; }
  .final__try-ava svg { width: 30px; height: 30px; }
  .final__try-text b { font-size: 14.5px; }
  .final__try-text > span { font-size: 13px; }
  .final__try-chat { grid-column: 1 / -1; min-height: 46px; }
  .final__try-go { grid-column: 1 / -1; width: 100%; }
}

/* =========================================================
   Подвал: спокойный, без лишнего движения; внизу — большое слово «dosello»
   ========================================================= */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(13, 11, 10, 0), rgba(13, 11, 10, .85) 40%); }
.footer::before { content: ""; position: absolute; left: 50%; top: -1px; width: min(640px, 80%); height: 1px; translate: -50% 0; background: linear-gradient(90deg, transparent, rgba(255, 179, 71, .6), transparent); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding: clamp(48px, 6vw, 72px) 0 clamp(36px, 4vw, 48px); }
.footer__brand p { max-width: 300px; margin: 16px 0 20px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.footer__col h3 { margin: 0 0 16px; font: 600 14px/1.2 var(--font-body); letter-spacing: 0; color: var(--text); }
.footer__col ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.footer__col a { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--soft); transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__col a svg { width: 15px; height: 15px; fill: currentColor; color: var(--muted); transition: color .2s; }
.footer__col a:hover svg { color: var(--a2); }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 22px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer__bottom p { margin: 0; }
.footer__up { display: inline-flex; align-items: center; gap: 6px; color: var(--soft); transition: color .2s; }
.footer__up:hover { color: var(--text); }
.footer__up svg { rotate: 180deg; transition: translate .25s var(--ease); }
.footer__up:hover svg { translate: 0 -2px; }

/* большое слово-логотип, обрезанное снизу */
.footer__word { margin: 0 0 -.2em; font: 700 clamp(84px, 21vw, 330px)/.8 var(--font-head); letter-spacing: -.06em; text-align: center; white-space: nowrap; user-select: none; background: linear-gradient(180deg, rgba(255, 179, 71, .2), rgba(255, 122, 89, .06) 55%, transparent 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 899px) {
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 599px) {
  .footer__bottom { gap: 8px; }
}

/* =========================================================
   Страница «Политика конфиденциальности»
   ========================================================= */
.legal-top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line); background: rgba(13, 11, 10, .9); }
.legal-top .container { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.legal-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); }
.legal-back:hover { color: var(--text); }
.legal-back svg { rotate: 90deg; }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 100px); }
.legal h1 { margin: 0; font: 500 clamp(21px, 5.8vw, 44px)/1.12 var(--font-head); overflow-wrap: break-word; letter-spacing: -.03em; }
.legal__date { margin: 14px 0 0; font: 500 12px/1 var(--font-mono); color: var(--muted); }
.legal__draft { margin: 28px 0 0; padding: 14px 18px; border-radius: 14px; border: 1px solid rgba(255, 179, 71, .35); background: rgba(255, 179, 71, .08); font-size: 14px; line-height: 1.5; color: var(--a3); }
.legal__lead { margin: 28px 0 0 !important; padding: 16px 20px; border-radius: 16px; border: 1px solid rgba(255, 179, 71, .3); background: rgba(255, 179, 71, .07); font-size: 15.5px; line-height: 1.6; color: var(--text) !important; }
.legal h2 { margin: 44px 0 12px; font: 600 clamp(18px, 2vw, 22px)/1.25 var(--font-body); letter-spacing: -.01em; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.65; color: var(--soft); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--a2); text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .js [data-inview] { opacity: 1; transform: none; }
  /* спокойная версия интеграций: только мягкая смена прозрачности */
  .itile__face { transform: none !important; transition: opacity .5s linear !important; }
  .itile--core, .itile__glow { animation: none !important; }
  .integr__sparks { display: none; }
}
