/* ============================================================
   Glampes Ai — Design System «Glampes»
   Хвойный #1B3A2D · Крафт #F5EFE4 · Терракота #D97D42
   Заголовки: Piazzolla/PT Serif 600 · Текст: Onest/система
   Grain-текстура, скругления ≤ 12px, без фиолетового и glass.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Piazzolla:opsz,wght@8..30,500..700&family=PT+Serif:wght@700&family=Onest:wght@400;500;600;700&display=swap');

:root {
  /* Палитра */
  --pine: #1B3A2D;        /* основной хвойный */
  --pine-deep: #14291F;   /* тёмный хвойный (футер, глубина) */
  --pine-soft: #2E5240;   /* светлее хвойного */
  --kraft: #F5EFE4;       /* фон-крафт */
  --kraft-2: #EDE4D3;     /* крафт глубже (чередование секций) */
  --paper: #FCF8F0;       /* карточки */
  --terra: #D97D42;       /* терракота, акцент */
  --terra-2: #C2662E;     /* терракота hover */
  --terra-soft: #F3E0D0;

  --ink: #26332B;
  --muted: #5D6B61;
  --muted-2: #8B9489;
  --line: #E2D8C4;
  --line-2: #EAE1CF;
  --on-pine: #F5EFE4;
  --on-pine-muted: rgba(245, 239, 228, .72);

  --ok: #3E7A54;
  --warn: #B97B23;
  --danger: #B14A38;

  /* Форма */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 0 rgba(27, 58, 45, .04), 0 1px 3px rgba(27, 58, 45, .07);
  --shadow-md: 0 2px 4px rgba(27, 58, 45, .05), 0 16px 32px -20px rgba(27, 58, 45, .35);
  --maxw: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-head: 'Piazzolla', 'PT Serif', Georgia, serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* совместимость со старыми именами переменных (кабинет/виджет/логин) */
  --brand: var(--pine);
  --brand-2: var(--pine-soft);
  --brand-ink: var(--pine-deep);
  --accent: var(--terra);
  --bg: var(--kraft);
  --bg-soft: var(--kraft);
  --bg-tint: var(--kraft-2);
  --ink-2: #33413A;
  --radius-lg: 12px;
  --shadow-brand: 0 14px 28px -14px rgba(27, 58, 45, .45);
  --shadow-lg: var(--shadow-md);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.12;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

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

/* Grain: зернистость через SVG-noise */
.grain { position: relative; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
}
.grain > * { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--terra);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--terra); }

.section { padding: 104px 0; position: relative; }
.section.alt { background: var(--kraft-2); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 16px 0 14px; }
.section-head p { font-size: 17.5px; color: var(--muted); }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: all .22s var(--ease); white-space: nowrap; user-select: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 10px 20px -12px rgba(217, 125, 66, .8); }
.btn-primary:hover { background: var(--terra-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(27, 58, 45, .35); }
.btn-ghost:hover { border-color: var(--pine); background: rgba(27, 58, 45, .05); }
.btn-light { background: transparent; color: var(--on-pine); border-color: rgba(245, 239, 228, .4); }
.btn-light:hover { border-color: var(--on-pine); background: rgba(245, 239, 228, .1); }
.btn-lg { padding: 16px 28px; font-size: 16px; }

/* ---------------- Шапка ---------------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; transition: all .3s var(--ease); color: var(--on-pine); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.site-header.scrolled { background: rgba(245, 239, 228, .95); border-bottom: 1px solid var(--line); color: var(--ink); }
.site-header.scrolled .bar { height: 64px; }

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.brand .mark {
  width: 38px; height: 38px; border-radius: 10px; background: var(--terra);
  display: grid; place-items: center; flex-shrink: 0;
}
.brand .mark svg { width: 22px; height: 22px; color: #fff; }
.brand small { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: .05em; display: block; margin-top: -2px; opacity: .65; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.navlink { padding: 9px 14px; border-radius: 8px; font-size: 14.5px; font-weight: 500; opacity: .85; transition: all .2s; }
.nav a.navlink:hover { opacity: 1; background: rgba(127, 127, 110, .14); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.site-header:not(.scrolled) .btn-primary { box-shadow: none; }

.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(127,127,110,.4); background: transparent; color: inherit; }

/* ---------------- Hero: тёмный хвойный, редакционная вёрстка ---------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--pine); color: var(--on-pine);
  padding: 190px 0 0;
}
.hero .hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero .hero-art svg { position: absolute; right: -140px; bottom: -40px; width: 780px; height: auto; color: rgba(245, 239, 228, .09); }
.hero-inner { max-width: 880px; position: relative; }
.hero .badge-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px;
  border: 1px solid rgba(245, 239, 228, .3); border-radius: 100px; /* тег — можно pill */
  font-size: 13px; color: var(--on-pine-muted);
}
.hero .badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terra); }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px); color: var(--on-pine);
  margin: 30px 0 24px; line-height: 1.05; max-width: 840px;
}
.hero h1 .grad, .hero h1 em { font-style: italic; color: var(--terra); font-weight: 600; }
.hero p.lead { font-size: 19px; color: var(--on-pine-muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-trust {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(245, 239, 228, .18);
  margin-top: 72px; padding: 30px 0 34px; gap: 24px;
}
.hero-trust .item b { font-family: var(--font-head); font-weight: 600; font-size: 34px; color: var(--terra); display: block; }
.hero-trust .item span { font-size: 13.5px; color: var(--on-pine-muted); }
.hero-trust .sep { display: none; }

/* ---------------- Полоса «нам доверяют» ---------------- */
.logos { padding: 34px 0; border-bottom: 1px solid var(--line); background: var(--kraft); }
.logos .lbl { text-align: center; font-size: 13px; color: var(--muted-2); margin-bottom: 20px; letter-spacing: .05em; }
.logos .row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.logos .logo { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--muted); opacity: .85; display: flex; align-items: center; gap: 8px; }
.logos .logo svg { width: 20px; height: 20px; color: var(--terra); }

/* ---------------- Возможности (eco-grid) ---------------- */
.ecosystem { background: var(--kraft-2); }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eco-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative; transition: all .25s var(--ease); min-height: 190px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
}
.eco-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(27,58,45,.3); }
.eco-card.active { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.eco-card.soon { border-style: dashed; background: transparent; box-shadow: none; }
.eco-card .eco-ico { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(27,58,45,.08); color: var(--pine); }
.eco-card.active .eco-ico { background: rgba(245,239,228,.14); color: var(--terra); }
.eco-card .eco-ico svg { width: 23px; height: 23px; }
.eco-card h3 { font-size: 20px; margin-bottom: 7px; }
.eco-card.active h3 { color: var(--on-pine); }
.eco-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.eco-card.active p { color: var(--on-pine-muted); }
.eco-card .eco-tag { position: absolute; top: 20px; right: 20px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px; }
.eco-card.active .eco-tag { color: #fff; background: var(--terra); }
.eco-card.soon .eco-tag { color: var(--muted-2); border: 1px solid var(--line); }
.eco-card.soon .eco-ico { background: transparent; border: 1px dashed var(--line); color: var(--muted-2); }
.eco-card.soon h3, .eco-card.soon p { color: var(--muted-2); }
.eco-card .eco-link { margin-top: 16px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--terra); }
.eco-card.active .eco-link { color: var(--terra); }
.eco-card .eco-link svg { width: 16px; height: 16px; transition: transform .2s; }
.eco-card:hover .eco-link svg { transform: translateX(3px); }

/* ---------------- Преимущества ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: all .25s var(--ease); box-shadow: var(--shadow-sm); }
.feat:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feat .f-ico { width: 48px; height: 48px; border-radius: 10px; background: var(--pine); display: grid; place-items: center; color: var(--kraft); margin-bottom: 18px; }
.feat .f-ico svg { width: 24px; height: 24px; }
.feat h3 { font-size: 19px; margin-bottom: 9px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* ---------------- Сплиты и «браузерные» рамки ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.rev .split-media { order: -1; }
.split-copy h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 14px 0 16px; }
.split-copy p { font-size: 16.5px; color: var(--muted); margin-bottom: 22px; }
.check-list { display: flex; flex-direction: column; gap: 14px; list-style: none; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; }
.check-list .ck { width: 24px; height: 24px; border-radius: 7px; background: rgba(62,122,84,.14); color: var(--ok); display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.check-list .ck svg { width: 14px; height: 14px; }
.check-list b { font-weight: 600; display: block; font-size: 15px; }
.check-list span { font-size: 14px; color: var(--muted); }

.media-frame { border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-md); overflow: hidden; }
.media-frame .frame-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--kraft-2); }
.media-frame .frame-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.media-frame .frame-top .url { margin-left: 12px; font-size: 12px; color: var(--muted-2); background: var(--paper); border: 1px solid var(--line); padding: 4px 12px; border-radius: 7px; }
.media-body { padding: 20px; }

/* чат-переписка в демо */
.chat-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--kraft); }
.msg { max-width: 84%; padding: 12px 15px; border-radius: 11px; font-size: 14px; line-height: 1.5; }
.msg.guest { align-self: flex-end; background: var(--paper); border: 1px solid var(--line); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; background: var(--pine); color: var(--kraft); border-bottom-left-radius: 4px; }
.msg .who { font-size: 11px; font-weight: 600; opacity: .65; margin-bottom: 3px; display: block; }
.msg.shown { opacity: 1; transform: none; }
.typing { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); padding: 13px 16px; border-radius: 11px; display: flex; gap: 5px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: blink 1.4s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

/* мини-дашборд в демо */
.mini-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mini-stat { background: var(--kraft); border: 1px solid var(--line-2); border-radius: 10px; padding: 13px; }
.mini-stat span { font-size: 11.5px; color: var(--muted); display: block; }
.mini-stat b { font-size: 21px; font-family: var(--font-head); font-weight: 600; }
.mini-stat .up { font-size: 11px; color: var(--ok); font-weight: 600; }
.mini-chart { background: var(--kraft); border: 1px solid var(--line-2); border-radius: 10px; padding: 15px; }
.mini-chart .ct { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.mini-chart .ct span { color: var(--muted); font-weight: 500; font-size: 12px; }

/* ---------------- Полоса цифр ---------------- */
.stats-band { background: var(--pine); color: var(--on-pine); position: relative; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--font-head); font-weight: 600; font-size: clamp(34px, 4.5vw, 52px); color: var(--on-pine); }
.stat-item .num .suffix { color: var(--terra); }
.stat-item .lbl { font-size: 14px; color: var(--on-pine-muted); margin-top: 6px; }

/* ---------------- Шаги ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); position: relative; transition: all .25s var(--ease); box-shadow: var(--shadow-sm); }
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step .num { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--terra); width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--terra); display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }
.step .connector { position: absolute; top: 44px; right: -12px; color: var(--line); z-index: 2; }
.step:last-child .connector { display: none; }

/* ---------------- Тарифы ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--paper); display: flex; flex-direction: column; transition: all .25s var(--ease); box-shadow: var(--shadow-sm); }
.price-card.pop { border: 2px solid var(--pine); position: relative; }
.price-card.pop::before { content: "Рекомендуем"; position: absolute; top: -13px; left: 28px; background: var(--terra); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 14px; border-radius: 100px; }
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.price-card .plan { font-size: 13px; font-weight: 600; color: var(--terra); letter-spacing: .1em; text-transform: uppercase; }
.price-card .amt { font-family: var(--font-head); font-size: 40px; font-weight: 600; margin: 14px 0 4px; }
.price-card .amt span { font-size: 16px; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.price-card .desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; min-height: 42px; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex: 1; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.price-card li svg { width: 18px; height: 18px; color: var(--ok); flex-shrink: 0; margin-top: 1px; }
.price-card .btn { width: 100%; }

/* ---------------- CTA ---------------- */
.cta-band { padding: 96px 0; }
.cta-box { background: var(--pine); border-radius: var(--radius); padding: 68px 52px; text-align: center; color: var(--on-pine); position: relative; overflow: hidden; }
.cta-box h2 { font-size: clamp(30px, 4vw, 44px); color: var(--on-pine); margin-bottom: 14px; }
.cta-box p { font-size: 17.5px; color: var(--on-pine-muted); max-width: 520px; margin: 0 auto 30px; }
.cta-box .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Футер ---------------- */
.site-footer { background: var(--pine-deep); color: var(--on-pine-muted); padding: 68px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(245,239,228,.12); }
.site-footer .brand { color: var(--on-pine); margin-bottom: 16px; }
.site-footer .brand small { color: var(--on-pine-muted); }
.foot-about { font-size: 14px; max-width: 300px; }
.foot-col h4 { color: var(--on-pine); font-size: 14px; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.foot-col a { display: block; font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--on-pine); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 13px; flex-wrap: wrap; gap: 14px; }
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a { width: 36px; height: 36px; border-radius: 9px; border: 1px solid rgba(245,239,228,.18); display: grid; place-items: center; transition: all .2s; }
.foot-bottom .socials a:hover { background: rgba(245,239,228,.1); color: var(--on-pine); }
.foot-bottom .socials svg { width: 17px; height: 17px; }

/* ---------------- Появление при скролле ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

/* ============================================================
   Анимации (только transform/opacity — плавно и без дёрганий)
   ============================================================ */

/* Живой чат-демо: фиксированная высота, чтобы страница не прыгала */
.chat-live { height: 340px; overflow-y: auto; border-radius: 11px; border: 1px solid var(--line); scroll-behavior: smooth; }
.chat-live::-webkit-scrollbar { width: 0; }
.chat-body { transition: opacity .55s var(--ease); }
.chat-body.fade-out { opacity: 0; }

/* Кнопки: стрелка мягко уезжает вправо */
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* Карточки: иконка приподнимается вместе с карточкой */
.eco-card .eco-ico, .feat .f-ico { transition: transform .3s var(--ease); }
.eco-card:hover .eco-ico, .feat:hover .f-ico { transform: translateY(-3px); }

/* Hero: пульс точки статуса */
.hero .badge-pill .dot { animation: dotPulse 1.9s infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 125, 66, .5); }
  55% { box-shadow: 0 0 0 8px rgba(217, 125, 66, 0); }
}

/* Hero: слои «тумана» и парение купола-графики */
.hero .fog {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(245, 239, 228, .07), transparent 70%);
  filter: blur(36px);
}
.hero .fog.fa { width: 720px; height: 340px; top: 16%; left: -12%; animation: fogDrift 30s ease-in-out infinite alternate; }
.hero .fog.fb { width: 560px; height: 300px; bottom: 4%; right: -8%; animation: fogDrift 38s ease-in-out infinite alternate-reverse; }
@keyframes fogDrift { from { transform: translateX(-4%); } to { transform: translateX(5%); } }
.hero-inner, .hero > .container { position: relative; z-index: 1; }
.hero .hero-art svg { animation: artFloat 12s ease-in-out infinite alternate; }
@keyframes artFloat { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* Полоса логотипов: бесшовная медленная лента */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; width: max-content; animation: marq 36s linear infinite; }
.marquee .set { display: flex; align-items: center; gap: 64px; padding-right: 64px; flex-shrink: 0; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* CTA: тёплый отсвет медленно дрейфует */
.cta-box::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  top: -240px; right: -160px; z-index: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(217, 125, 66, .16), transparent 70%);
  animation: glowDrift 14s ease-in-out infinite alternate;
}
.cta-box > * { position: relative; z-index: 1; }
@keyframes glowDrift { from { transform: translate(0, 0); } to { transform: translate(-70px, 40px); } }

/* Появление деталей при reveal: линия eyebrow, номера шагов, рамки демо */
.eyebrow::before { transition: width .7s var(--ease) .15s; }
.step .num { transition: transform .55s var(--ease) .15s, opacity .55s var(--ease) .15s; }
.step .connector { transition: transform .6s var(--ease) .45s, opacity .6s var(--ease) .45s; }
.split .media-frame { transition: transform .9s var(--ease) .12s, box-shadow .3s var(--ease); }

@media (prefers-reduced-motion: no-preference) {
  /* стартовые скрытые состояния — только когда анимации разрешены */
  .reveal:not(.in) .eyebrow::before { width: 0; }
  .step.reveal:not(.in) .num { transform: scale(.55); opacity: 0; }
  .step.reveal:not(.in) .connector { transform: translateX(-8px); opacity: 0; }
  .split.reveal:not(.in) .media-frame { transform: translateY(16px) rotate(.4deg); }

  /* заголовок hero: слова поднимаются каскадом (спаны добавляет site.js) */
  .hero h1.split-words .w {
    display: inline-block; opacity: 0; transform: translateY(.5em);
    animation: wordUp .75s var(--ease) forwards;
    animation-delay: calc(.25s + var(--i) * .06s);
  }

  /* купол в hero отрисовывается штрихом */
  .hero .hero-art path { stroke-dasharray: 1700; stroke-dashoffset: 1700; animation: dash 2.6s ease .4s forwards; }

  /* сообщения чата появляются пружинкой */
  .msg { opacity: 0; transform: translateY(12px) scale(.97); }
  .msg.shown { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .5s cubic-bezier(.34, 1.4, .44, 1); }
}
@keyframes wordUp { to { opacity: 1; transform: none; } }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* Полное уважение к reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee .track { animation: none; }
}

/* ---------------- Адаптив ---------------- */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-media { order: 0; }
  .eco-grid, .feat-grid, .steps, .price-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .hero { padding-top: 150px; }
  .hero .hero-art svg { width: 520px; right: -180px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .eco-grid, .feat-grid, .steps, .price-grid, .stats-grid, .foot-grid { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: 1fr; gap: 18px; }
  .header-cta .btn-ghost { display: none; }
  .cta-box { padding: 46px 24px; }
  /* шапка: имя бренда в одну строку, подпись прячем */
  .brand { font-size: 18px; white-space: nowrap; }
  .brand small { display: none; }
  .brand .mark { width: 34px; height: 34px; }
  .header-cta .btn { padding: 10px 14px; font-size: 13.5px; }
}
@media (max-width: 430px) {
  .site-header .bar { gap: 10px; }
  .header-cta .btn { padding: 9px 12px; font-size: 13px; }
  .header-cta .btn svg { display: none; }
}
