/* ============================================================
   ВамПишут — лендинг
   Стиль: Soft Minimal + Liquid Glass (см. DESIGN.md проекта)
   ============================================================ */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-400-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-700-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext-800-normal.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Unbounded (заголовки) ---------- */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic-500-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/unbounded-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic-600-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/unbounded-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/unbounded-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/unbounded-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токены (DESIGN.md) ---------- */
:root {
  --bg: #F6F7FB;
  --surface: #FFFFFF;
  --surface-2: #F1F3F8;
  --text: #1F2937;
  --text-2: #64748B;
  --border: #E2E6EF;
  --accent: #6366F1;
  --accent-strong: #4F46E5;
  --accent-soft: #EEF2FF;
  --teal: #14B8A6;
  --teal-soft: #CCFBF1;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-float: 0 2px 6px rgba(15, 23, 42, .05), 0 24px 48px -16px rgba(79, 70, 229, .22);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Unbounded Fallback', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Метрический fallback: подгоняет системный шрифт под ширину Unbounded,
   чтобы при swap не прыгала вёрстка. */
@font-face {
  font-family: 'Unbounded Fallback';
  src: local('Inter'), local('Segoe UI'), local('Arial');
  size-adjust: 116%;
  ascent-override: 92%;
  descent-override: 26%;
  line-gap-override: 4%;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-strong); text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(99, 102, 241, .22); }

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

/* ---------- Живой фон: аврора + шум ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}
.aurora::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(38% 34% at 18% 12%, rgba(99, 102, 241, .16), transparent 70%),
    radial-gradient(30% 30% at 82% 8%, rgba(20, 184, 166, .13), transparent 70%),
    radial-gradient(34% 38% at 88% 62%, rgba(139, 92, 246, .12), transparent 70%),
    radial-gradient(30% 30% at 8% 78%, rgba(56, 189, 248, .10), transparent 70%);
  animation: aurora-drift 26s ease-in-out infinite alternate;
}
.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .5;
  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='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

/* ---------- Liquid Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(140deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .48));
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    inset 0 -1px 0 rgba(255, 255, 255, .35),
    0 1px 2px rgba(15, 23, 42, .04),
    0 16px 40px -20px rgba(79, 70, 229, .25);
  border-radius: var(--radius-lg);
}
/* блик на стекле */
.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 28%);
  pointer-events: none;
}
.glass-deep {
  background: linear-gradient(140deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(255, 255, 255, .4),
    0 2px 6px rgba(15, 23, 42, .06),
    0 28px 64px -24px rgba(15, 23, 42, .28);
}

/* ---------- Шапка ---------- */
.nav {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  transition: transform .3s ease;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
}
.nav.scrolled .nav-inner {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .9),
    0 4px 12px rgba(15, 23, 42, .06),
    0 20px 44px -20px rgba(79, 70, 229, .3);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -.02em;
}
.brand img { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color .16s ease, background .16s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .65); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger svg { width: 20px; height: 20px; stroke: var(--text); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #fff;
  background: linear-gradient(160deg, #6366F1 0%, #4F46E5 55%, #4338CA 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .35),
    inset 0 -2px 6px rgba(30, 27, 75, .35),
    0 10px 24px -8px rgba(79, 70, 229, .55);
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  transition: left .5s ease;
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 6px rgba(30,27,75,.35), 0 14px 32px -8px rgba(79,70,229,.65); transform: translateY(-1px); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 4px 14px -6px rgba(15, 23, 42, .18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .85); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 16px; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Герой ---------- */
.hero {
  position: relative;
  padding: 168px 0 90px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-strong);
  margin-bottom: 22px;
}
.badge .dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12px;
}
.badge .dot svg { width: 12px; height: 12px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.14;
  letter-spacing: -.015em;
  font-weight: 700;
  margin: 0 0 20px;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #4F46E5 10%, #7C3AED 45%, #14B8A6 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-2);
  max-width: 520px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-2);
  font-size: 14px;
}
.hero-note .avatars { display: flex; }
.hero-note .avatars span {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  margin-left: -8px;
  box-shadow: 0 2px 6px rgba(15,23,42,.18);
}
.hero-note .avatars span:first-child { margin-left: 0; }

/* мокап чата */
.hero-visual { position: relative; }
.chat-frame {
  padding: 14px;
  transform: rotate(1.2deg);
  transition: transform .4s ease;
}
.hero-visual:hover .chat-frame { transform: rotate(0deg); }
.chat-window {
  background: rgba(255, 255, 255, .86);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(246, 247, 251, .8);
}
.chat-head .win-dots { display: flex; gap: 5px; }
.chat-head .win-dots i { width: 9px; height: 9px; border-radius: 99px; background: #D8DDE8; }
.chat-head .title { font-size: 13px; font-weight: 600; }
.chat-head .title small { display: block; font-weight: 500; color: var(--success); font-size: 11px; }
.chat-body {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 320px;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(238, 242, 255, .9), transparent),
    radial-gradient(50% 40% at 10% 100%, rgba(204, 251, 241, .5), transparent);
}
.msg {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(12px) scale(.97);
  animation: msg-in .5s cubic-bezier(.2, .9, .3, 1.2) forwards;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}
@keyframes msg-in { to { opacity: 1; transform: none; } }
.msg-in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.msg-out {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(150deg, #6366F1, #4F46E5);
  border-bottom-right-radius: 5px;
}
.msg .who {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}
.msg .who .chip {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.msg .time { display: block; text-align: right; font-size: 10px; opacity: .55; margin-top: 3px; }
.msg-out .time { color: #fff; }
.msg-ai {
  align-self: stretch;
  max-width: 100%;
  background: var(--accent-soft);
  border: 1px dashed rgba(99, 102, 241, .45);
  border-radius: 14px;
}
.msg-ai .ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 5px;
}
.typing {
  display: inline-flex;
  gap: 4px;
  padding: 12px 14px;
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
  opacity: 0;
}
.typing.on { opacity: 1; }
.typing i {
  width: 6px; height: 6px; border-radius: 99px;
  background: #A5B4C5;
  animation: typing-b 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-b { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-input .field {
  flex: 1;
  height: 38px;
  border-radius: 999px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 13px;
  color: var(--text-2);
}
.chat-input .send {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #6366F1, #4F46E5);
  box-shadow: 0 6px 14px -4px rgba(79,70,229,.5);
}
.chat-input .send svg { width: 16px; height: 16px; }

.float-card {
  position: absolute;
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: float-y 6s ease-in-out infinite;
}
.float-card small { display: block; font-weight: 500; color: var(--text-2); font-size: 11px; }
.float-card .ic {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}
.float-card .ic svg { width: 17px; height: 17px; }
.fc-1 { top: -22px; right: -14px; animation-delay: .8s; }
.fc-2 { bottom: -20px; left: -26px; }
@keyframes float-y { 0%, 100% { transform: translateY(-6px); } 50% { transform: translateY(6px); } }

/* ---------- Секции ---------- */
.section { padding: 88px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.9vw, 36px);
  letter-spacing: -.01em;
  line-height: 1.18;
  font-weight: 600;
  margin: 0 0 14px;
}
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }

/* появление при скролле */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Полоса мессенджеров ---------- */
.strip { padding: 26px 0; }
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px;
}
.strip-inner .label { font-size: 13px; color: var(--text-2); font-weight: 500; margin-right: 8px; }
.m-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 2px 8px -2px rgba(15,23,42,.08);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.m-chip .ic { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; }

/* ---------- Сравнение цен ---------- */
.compare-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.compare-card { padding: 30px; display: flex; flex-direction: column; }
.compare-card.them { border-style: solid; }
.compare-card.us {
  border: 1px solid rgba(99, 102, 241, .35);
  background: linear-gradient(150deg, rgba(238, 242, 255, .85), rgba(255, 255, 255, .55));
}
.compare-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.them .compare-tag { background: #FEE2E2; color: #B91C1C; }
.us .compare-tag { background: var(--teal-soft); color: #0F766E; }
.compare-card h3 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.02em; }
.compare-card .sub { color: var(--text-2); font-size: 14px; margin: 0 0 24px; }
.calc { margin-top: auto; }
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-2);
}
.calc-row output { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
input[type="range"] {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) var(--fill, 30%), var(--surface-2) var(--fill, 30%));
  outline: none;
  margin: 0 0 24px;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
  transition: transform .15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 99px;
  background: #fff;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 2px 8px rgba(79,70,229,.35);
}
.price-line { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price-line .num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  transition: color .3s ease;
}
.them .price-line .num { color: #DC2626; }
.us .price-line .num { color: var(--accent-strong); }
.compare-card.them .price-line-us .num { color: #059669; }
.price-line .per { color: var(--text-2); font-size: 14px; }
.price-note { font-size: 13px; color: var(--text-2); margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 18px; height: 120px; margin: 22px 0 10px; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.price-grid > div { min-width: 0; text-align: center; }
.price-grid .price-line { justify-content: center; gap: clamp(4px, .625vw, 8px); margin: 10px 0 4px; line-height: 1.1; }
.price-grid .price-note { margin-top: 4px; }
.price-grid .price-line .num { font-size: clamp(18px, 3.125vw, 40px); }
.price-grid .price-line .per { font-size: clamp(12px, 1.1vw, 14px); }
.bar { flex: 1; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; }
.bar-meta { display: flex; flex-direction: column; align-items: center; }
.bar .col {
  align-self: end;
  width: 100%;
  border-radius: 10px 10px 4px 4px;
  height: 8%;
  transition: height .6s cubic-bezier(.2,.8,.3,1);
  position: relative;
  overflow: hidden;
}
.bar .col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 40%);
}
.bar-them .col { background: linear-gradient(180deg, #F87171, #DC2626); box-shadow: 0 8px 18px -6px rgba(220,38,38,.5); }
.bar-us .col { background: linear-gradient(180deg, #34D399, #059669); box-shadow: 0 8px 18px -6px rgba(5,150,105,.5); }
.bar .cap { text-align: center; font-size: 12px; color: var(--text-2); margin-top: 8px; font-weight: 500; }
.bar-plan { text-align: center; margin-top: 4px; font-size: 12px; color: var(--text-2); line-height: 1.25; }
.calc-foot { font-size: 12px; color: var(--text-2); margin-top: 18px; line-height: 1.5; }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step-card { padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease; }
.step-card:hover { transform: translateY(-6px); }
.step-num {
  width: 44px; height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: linear-gradient(150deg, #818CF8, #4F46E5);
  box-shadow: 0 8px 18px -6px rgba(79,70,229,.55), inset 0 1px 0 rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.step-card h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -.015em; }
.step-card p { color: var(--text-2); font-size: 14.5px; margin: 0; }

/* ---------- ИИ ---------- */
.ai-section .ai-panel {
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(99, 102, 241, .12), transparent 60%),
    linear-gradient(140deg, rgba(238, 242, 255, .9), rgba(255, 255, 255, .5));
}
.ai-panel h2 { font-family: var(--font-display); font-size: clamp(21px, 2.5vw, 31px); letter-spacing: -.01em; line-height: 1.18; font-weight: 600; margin: 0 0 14px; }
.ai-panel .lead { color: var(--text-2); font-size: 16px; margin: 0 0 24px; }
.ai-feats { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.ai-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.ai-feat .tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 99px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: #fff;
  box-shadow: 0 2px 6px rgba(15,23,42,.12);
}
.ai-feat .tick svg { width: 12px; height: 12px; }
.ai-honest {
  font-size: 13px;
  color: var(--text-2);
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(255, 255, 255, .9);
}
.ai-demo { display: flex; flex-direction: column; gap: 10px; }
.ai-suggest {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  font-size: 13.5px;
}
.ai-suggest .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 8px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ai-suggest .acts { display: flex; gap: 6px; }
.ai-suggest .acts button {
  border: 1px solid var(--border);
  background: #fff;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s ease;
}
.ai-suggest .acts button:hover { border-color: var(--accent); color: var(--accent-strong); }
.ai-suggest p { margin: 0; color: var(--text); line-height: 1.5; }

/* ---------- Интеграции ---------- */
.int-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.int-card {
  grid-column: span 2;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.int-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-float); }
a.int-card { color: inherit; text-decoration: none; }
a.int-card .int-status.ready { transition: filter .15s ease; }
a.int-card:hover .int-status.ready { filter: brightness(1.05); }
.int-logo {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 14px -4px rgba(15,23,42,.25);
}
.int-card h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.int-card p { margin: 0; font-size: 13.5px; color: var(--text-2); flex: 1; }
.int-status {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.int-status.ready { background: var(--teal-soft); color: #0F766E; }
.int-status.soon { background: var(--surface-2); color: var(--text-2); }
.int-status.soon i {
  width: 6px; height: 6px;
  border-radius: 99px;
  background: var(--warning);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
.int-status.ready i { width: 6px; height: 6px; border-radius: 99px; background: var(--success); }
@keyframes pulse-dot { 0%,100% { opacity: .5; transform: scale(1);} 50% { opacity: 1; transform: scale(1.35);} }

/* ---------- Тарифы ---------- */
.plans-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  margin: 0 auto 40px;
}
.plans-toggle-wrap { text-align: center; }
.plans-toggle button {
  border: 0;
  background: transparent;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  transition: all .2s ease;
}
.plans-toggle button.active {
  background: #fff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15,23,42,.12);
}
.plans-toggle .save { color: var(--teal); font-size: 12px; margin-left: 4px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.plan:hover { transform: translateY(-6px); }
.plan.hot {
  border: 1.5px solid rgba(99, 102, 241, .5);
  background: linear-gradient(160deg, rgba(238, 242, 255, .92), rgba(255, 255, 255, .62));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    0 24px 56px -20px rgba(79, 70, 229, .4);
}
.plan .flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, #6366F1, #8B5CF6);
  box-shadow: 0 6px 16px -4px rgba(99,102,241,.6);
  white-space: nowrap;
}
.plan h3 { font-size: 19px; margin: 0 0 4px; letter-spacing: -.02em; }
.plan .for { font-size: 13.5px; color: var(--text-2); margin: 0 0 22px; min-height: 40px; }
.plan .price { display: flex; align-items: baseline; gap: 7px; margin-bottom: 2px; }
.plan .price .val { font-size: 38px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.plan .price .cur { font-size: 18px; font-weight: 700; color: var(--text-2); }
.plan .per-workspace {
  font-size: 12.5px;
  color: var(--accent-strong);
  font-weight: 600;
  margin-bottom: 22px;
}
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan ul li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.plan ul li svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--teal); }
.plan ul li.mut { color: var(--text-2); }
.plan ul li.mut svg { color: #C3CBD9; }
.plan .btn { width: 100%; }
.plans-note { text-align: center; color: var(--text-2); font-size: 13.5px; margin-top: 30px; }
.plans-note a { font-weight: 600; }

/* ---------- Доверие / факты ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 56px; }
.trust-card { padding: 26px 22px; text-align: center; }
.trust-card .big {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.03em;
  background: linear-gradient(120deg, #4F46E5, #14B8A6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.trust-card .lbl { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-q .chev {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 1px 4px rgba(15,23,42,.1);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
}
.faq-q .chev svg { width: 13px; height: 13px; stroke: var(--text-2); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.2,.8,.3,1);
}
.faq-a p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Финальный CTA + форма ---------- */
.cta-panel {
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(99, 102, 241, .16), transparent 55%),
    radial-gradient(70% 100% at 100% 100%, rgba(20, 184, 166, .14), transparent 55%),
    linear-gradient(140deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55));
}
.cta-panel h2 { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 32px); letter-spacing: -.01em; line-height: 1.18; font-weight: 600; margin: 0 0 14px; }
.cta-panel .lead { color: var(--text-2); font-size: 16px; margin: 0 0 26px; }
.cta-points { display: flex; flex-direction: column; gap: 12px; }
.cta-points span { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; }
.cta-points .tick {
  width: 22px; height: 22px; border-radius: 99px;
  display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #34D399, #059669);
  box-shadow: 0 3px 8px -2px rgba(5,150,105,.5);
  flex-shrink: 0;
}
.cta-points .tick svg { width: 11px; height: 11px; }

.lead-form { padding: 34px; display: flex; flex-direction: column; gap: 20px; }
#leadForm { display: flex; flex-direction: column; gap: 20px; }
.lead-form h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.lead-form .fsub { color: var(--text-2); font-size: 14px; margin: 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--text); }
.field input, .field textarea {
  width: 100%;
  height: 46px;
  border-radius: 13px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .85);
  padding: 0 15px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text);
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field textarea { height: auto; min-height: 88px; padding: 12px 15px; resize: vertical; }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.field .err { display: none; font-size: 12px; color: var(--danger); margin-top: 5px; }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.consent input { margin-top: 2px; accent-color: var(--accent-strong); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { display: none; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; padding: 13px 16px; border-radius: 13px; }
.form-status.ok { display: flex; background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.form-status.bad { display: flex; background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.on { display: block; animation: msg-in .5s ease forwards; }
.form-success .ok-ring {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(150deg, #34D399, #059669);
  box-shadow: 0 12px 28px -8px rgba(5,150,105,.55), inset 0 1px 0 rgba(255,255,255,.4);
}
.form-success .ok-ring svg { width: 30px; height: 30px; }
.form-success h4 { margin: 0 0 8px; font-size: 20px; }
.form-success p { margin: 0; color: var(--text-2); font-size: 14.5px; }

/* ---------- Подвал ---------- */
.footer { padding: 46px 0 36px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(226, 230, 239, .9);
}
.footer .brand { font-size: 16px; }
.footer .brand img { width: 26px; height: 26px; }
.footer-note { color: var(--text-2); font-size: 13.5px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.footer-links a:hover { color: var(--accent-strong); }

/* ---------- Адаптив ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero .lead { max-width: 640px; }
  .compare-wrap { grid-template-columns: 1fr; }
  .ai-section .ai-panel { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; }
  .int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .int-card { grid-column: span 1; min-width: 0; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { grid-template-columns: minmax(0, 1fr); padding: 38px 28px; }
  .ai-panel > *, .order-panel > *, .cta-panel > * { min-width: 0; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 132px 0 64px; }
  .nav-links, .nav .btn { display: none; }
  .burger { display: grid; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    z-index: 60;
    transform: translateZ(0);
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 4px;
    border-radius: 22px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .94));
    border: 1px solid rgba(255, 255, 255, .75);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 18px 40px -14px rgba(15,23,42,.3);
  }
  .nav.open .nav-links a { padding: 13px 16px; font-size: 15px; }
  body.menu-open main, body.menu-open .footer { visibility: hidden; }
  .steps { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .chat-frame { transform: none; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    height: 50px;
    padding: 0 12px;
    font-size: 14px;
  }
  .ai-suggest .head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .int-card { padding: 20px 16px; }
  .footer-links { flex-wrap: wrap; gap: 12px 18px; }
  .cta-panel { padding: 32px 16px; gap: 32px; }
  .lead-form { padding: 24px 16px; }
  #leadForm { gap: 14px; }
  #leadSubmit { padding-inline: 20px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Приём заказов ---------- */
.order-panel {
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(70% 90% at 0% 100%, rgba(20, 184, 166, .12), transparent 60%),
    linear-gradient(140deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .55));
}
.order-panel h2 { font-family: var(--font-display); font-size: clamp(21px, 2.5vw, 31px); letter-spacing: -.01em; line-height: 1.18; font-weight: 600; margin: 0 0 14px; }
.order-panel .lead { color: var(--text-2); font-size: 16px; margin: 0 0 24px; }
.order-demo { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.order-body { min-height: 300px; }
/* в сценарии видимость управляется только классом .on — msg-анимацию отключаем,
   иначе она срабатывает сразу и финальные сообщения видны с начала */
.order-body .msg { animation: none; }
.o-step {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s cubic-bezier(.2, .7, .3, 1), transform .45s cubic-bezier(.2, .7, .3, 1);
}
.o-step.on { opacity: 1; transform: none; }
/* мгновенный сброс при повторе сценария */
.order-body.restarting .o-step { transition: none; }
.order-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  background: var(--accent-soft);
  border: 1px dashed rgba(99, 102, 241, .45);
  border-radius: 14px;
  font-size: 12px;
}
.order-typing .ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: var(--accent-strong);
  margin-right: 4px;
}
.order-typing i {
  width: 5px; height: 5px; border-radius: 99px;
  background: #818CF8;
  animation: typing-b 1.1s ease-in-out infinite;
}
.order-typing i:nth-child(3) { animation-delay: .15s; }
.order-typing i:nth-child(4) { animation-delay: .3s; }
.order-card {
  align-self: stretch;
  max-width: 100%;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, .22), inset 0 1px 0 rgba(255,255,255,.9);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}
.order-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #14B8A6);
}
.oc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.oc-num { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.oc-sum { font-weight: 800; font-size: 17px; color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.oc-rows { display: flex; flex-direction: column; gap: 7px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px dashed var(--border); }
.oc-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-2); }
.oc-row span:last-child { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.oc-acts { display: flex; gap: 8px; }
.oc-acts button {
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s ease;
}
.oc-acts button:first-child {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(150deg, #6366F1, #4F46E5);
  box-shadow: 0 4px 10px -3px rgba(79, 70, 229, .5);
}
.oc-acts button:hover { filter: brightness(1.06); }
.order-status { display: flex; flex-wrap: wrap; gap: 8px; }
.os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #047857;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 6px 12px;
  border-radius: 99px;
}
.os-chip svg { width: 12px; height: 12px; }
.order-replay { align-self: center; }
@media (max-width: 1020px) {
  .order-panel { grid-template-columns: minmax(0, 1fr); padding: 34px 28px; }
}
