/* ЗИП. — лендинг itszip.ru. Стиль — продолжение ПОРТАЛА (frontend/src/styles/portal.css,
   .portal-root): те же токены цвета/радиусов/тени, тот же шрифтовой стек (system-ui — портал
   перекрывает Manrope кабинета явно), та же плотность. Значения ниже — 1:1 из portal.css,
   имена --site-* (портал не импортируется: сайт — статика вне фронтенда). Своя вёрстка. */

/* Manrope — шрифт платформы, self-hosted (site/fonts, OFL); подмножества по unicode-range */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/manrope-cyrillic-ext.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: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 200 800; font-display: swap; src: url('fonts/manrope-latin.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; }

:root {
  --site-primary: #1a1a1a;            /* --portal-primary */
  --site-on-primary: #ffffff;         /* --portal-on-primary */
  --site-accent: #dfff00;             /* --portal-accent, лайм-канон Р-19 */
  --site-bg: #fafaf8;                 /* --portal-bg */
  --site-surface: #ffffff;            /* --portal-surface */
  --site-border: #e6e2d8;             /* --portal-border */
  --site-dot: rgba(26, 26, 26, 0.065); /* точки героя — графит 6.5% (мера с ramp.com: сетка 12px, точка 2px) */
  --site-text-2: #6b6b6b;             /* --portal-text-secondary */
  --site-text-3: #9a968c;             /* --portal-text-tertiary */
  --site-pill-bg: #f0eee7;            /* --portal-pill-bg */
  --site-pill-text: #4a4a44;          /* --portal-pill-text */
  --site-quote-bg: #f7f5f0;           /* --portal-quote-bg */
  --site-table-border: #efede6;       /* --portal-table-border */
  --site-radius: 8px;                 /* --portal-radius */
  --site-radius-lg: 16px;             /* --portal-radius-lg */
  /* --portal-composer-shadow = --portal-card-shadow (Л-11-ЕДИНСТВО): холодная фиолетовая база */
  --site-shadow: 0 10px 20px -8px rgba(88, 80, 150, 0.16), 0 4px 10px rgba(88, 80, 150, 0.06);
  --site-shadow-hover: 0 16px 28px -10px rgba(88, 80, 150, 0.22), 0 6px 14px rgba(88, 80, 150, 0.08);
  /* .portal-greeting text-shadow */
  --site-title-shadow: 0 8px 22px rgba(88, 80, 150, 0.26);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;  /* Manrope — как в кабинете; веса и кегли — рамповские (400) */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: ease;                       /* motion.easing портала */
}

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* выделение текста — как стикер «СРОК — ПЯТНИЦА» в сцене «Системы…»: лайм 60% на графите (слово основателя 21.09) */
::selection { background: rgba(223, 255, 0, 0.6); color: var(--site-primary); }
::-moz-selection { background: rgba(223, 255, 0, 0.6); color: var(--site-primary); }
section[id], [id="try"] { scroll-margin-top: var(--chrome-h, 72px); }  /* якоря не прячутся под прибитым чердаком */
body {
  margin: 0;
  background: var(--site-surface);
  color: var(--site-primary);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;                  /* 16/24 как у эталона */
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--site-primary); outline-offset: 2px; border-radius: 4px; }

/* контейнер секций — во всю ширину экрана, как герой (ramp-раскладка): max 1440, паддинги
   16/32/48/64 по брейкпоинтам; узкая 1120-полоса портала снята по слову основателя */
.wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px)  { .wrap { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .wrap { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1280px) { .wrap { padding-left: 64px; padding-right: 64px; } }

/* ---------- кнопки (по .portal-btn / .portal-btn-secondary) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--site-radius);
  padding: 10px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn-primary { background: var(--site-primary); color: var(--site-on-primary); }
.btn-primary:hover { background: #2c2c2c; }
.btn-secondary { background: transparent; color: var(--site-text-2); border-color: var(--site-border); }
.btn-secondary:hover { color: var(--site-primary); border-color: #cfcabd; }
.btn-lg { padding: 14px 26px; font-size: 16px; }   /* .portal-send-btn */
.btn-sm { padding: 8px 14px; font-size: 13px; }
/* «магическое» действие портала — тёмная кнопка с лаймовой точкой (.portal-btn .lime-dot) */
.lime-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--site-accent);
  display: inline-block; flex-shrink: 0;
}

/* ---------- марка ---------- */
.brand-mark { height: 20px; width: auto; display: block; }   /* ≈61×20, пропорция 3.04:1 */
.brand-mark-sm { height: 16px; }                              /* .brand-solo — 16px одиночка */
.brand { display: inline-flex; align-items: center; }

/* ---------- полоса-анонс над шапкой (тёмная, 40px, закрывается) ---------- */
.announce { background: var(--site-primary); color: var(--site-on-primary); font-size: 13px; }
.announce-row { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; position: relative; }
.announce-text { color: rgba(255,255,255,.92); }
.announce-link { color: var(--site-on-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.5); white-space: nowrap; }
.announce-link:hover { text-decoration-color: var(--site-accent); }
.announce-close { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: rgba(255,255,255,.7); cursor: pointer; }
.announce-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.announce-close svg { width: 12px; height: 12px; }
@media (max-width: 600px) { .announce-row { justify-content: flex-start; padding-right: 40px; font-size: 12px; flex-wrap: wrap; row-gap: 2px; } }

/* ---------- шапка ---------- */
.chrome { position: sticky; top: 0; z-index: 20; }   /* «чердак» (уведомление + шапка) едет вниз при прокрутке */
.top {                                   /* шапка полупрозрачная (слово основателя 20.09) */
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.top.is-scrolled { border-bottom-color: var(--site-table-border); }
.top-row {
  display: flex; align-items: center; gap: 24px;
  height: 64px;
}
.top-nav { margin-left: 8px; }
.top-nav ul { display: flex; gap: 4px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.top-link {
  display: inline-block; padding: 8px 12px; border-radius: 6px;
  font-size: 14px; font-weight: 500; color: var(--site-text-2);
  transition: color .15s var(--ease), background-color .15s var(--ease);
}
.top-link:hover { color: var(--site-primary); background: var(--site-pill-bg); }
/* «Платформа ▾» — выпадающий список якорей; рецепт меню портала (menuSx DealComposer): поверхность,
   рамка, radius 8, тень композера, пункты 13px/500, ховер — quote-bg */
.top-menu { position: relative; }
.top-menu-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; cursor: pointer; }
.top-menu-caret { width: 10px; height: 6px; transition: transform .15s var(--ease); }
.top-menu.is-open .top-menu-btn { color: var(--site-primary); background: var(--site-pill-bg); }
.top-menu.is-open .top-menu-caret { transform: rotate(180deg); }
.top-menu-list {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px;
  padding: 6px; border: 1px solid var(--site-border); border-radius: var(--site-radius);
  background: var(--site-surface); box-shadow: var(--site-shadow);
}
.top-nav .top-menu-list { display: flex; flex-direction: column; gap: 2px; }   /* перекрыть .top-nav ul (ряд) */
.top-nav .top-menu-list[hidden] { display: none; }
.top-menu-item { display: block; padding: 8px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--site-primary); white-space: nowrap; }
.top-menu-item:hover { background: var(--site-quote-bg); }
@media (max-width: 760px) {
  .top-nav { display: none; }
  .top-actions .top-link { display: none; }
}

/* ---------- герой (раскладка по образцу ramp.com, 1440: контент от края 64px, слева-вверх) ---------- */
.hero-wide {                            /* full-bleed контейнер героя: max 1440, паддинги 16/32/48/64 */
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px)  { .hero-wide { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .hero-wide { padding-left: 48px; padding-right: 48px; } }
@media (min-width: 1280px) { .hero-wide { padding-left: 64px; padding-right: 64px; } }

.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 0;
  /* фолбэк без canvas (reduced-motion / тач): статичная сетка точек как у .portal-root */
  background-color: var(--site-surface);
  background-image: radial-gradient(var(--site-dot) 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: 6px 6px;
}
.hero.has-dots { background-image: none; }
.hero-dots {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.hero > .hero-wide { position: relative; z-index: 1; }

.hero-eyebrow {                          /* 10px uppercase + пилюля с числом (моно) */
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; font-weight: 500; letter-spacing: .18px; text-transform: uppercase;
  color: var(--site-text-2);
  margin-bottom: 32px;
}
.hero-eyebrow-pill {
  display: inline-flex; align-items: center;
  padding: 2px 6px; border-radius: 4px;
  background: var(--site-pill-bg); color: var(--site-pill-text);
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.hero-title {
  max-width: 1050px;
  font-size: clamp(40px, 4.45vw, 64px);   /* 64/64 · 400 */
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  text-shadow: var(--site-title-shadow);
  text-wrap: balance;
}
.hero-sub {
  max-width: 640px;
  margin-top: 24px;
  font-size: 18px; line-height: 1.34;      /* 18/24 */
  color: var(--site-text-2);
  text-wrap: pretty;
}

/* кнопка героя — одна, слева (форма с почтой снята по слову основателя) */
.hero-cta { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-cta-btn { padding: 16px 28px; font-size: 16px; }
.hero-cta-secondary { background: var(--site-surface); color: var(--site-primary); border-color: var(--site-border); }
.hero-cta-secondary:hover { border-color: var(--site-primary); }
@media (max-width: 767px) { .hero-cta-btn { width: 100%; } }

/* медиа во всю ширину контейнера: радиус 12, граница 1px 10%, без тени (в отличие от карточек ниже) */
.hero-media {
  margin-top: 48px;
  border: 1px solid rgba(33, 33, 33, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: var(--site-surface);
}
.hero-media img { width: 100%; }
/* медиа-бокс героя (по ramp: 1312×584, радиус 12, граница, тёплый фон) — устройство стоит на нём,
   низ уходит за край бокса; точки фона гаснут ниже */
.hero .hero-media-anim {
  position: relative; margin-top: 48px;
  aspect-ratio: 1312 / 584;
  background: var(--site-quote-bg);          /* портальный тёплый тон (#f7f5f0 ≈ #f8f6f4 эталона) */
  border: 1px solid var(--site-border);
  border-radius: 12px;
  overflow: hidden; min-width: 0;
}
.hero .stage.stage-in-hero {
  position: absolute; left: 50%; top: 6.5%; width: 74%; max-width: none; margin: 0;
  transform: translateX(-50%);
  background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; overflow: visible;
}
.hero-progress { margin-top: 18px; }
/* точки растворяются ровно перед полосой «Агенты за работой»: градиент заканчивается на её верхней
   кромке (--strip-h ставит script.js), сама полоса — на сплошном белом */
.hero-anim .hero-fade { display: block; z-index: 0; bottom: 0; height: calc(72px + var(--strip-h, 90px));   /* короткая полоса растворения: точки доходят до низа героя (слово основателя 20.09) */
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0, rgba(255,255,255,.6) 36px, var(--site-surface) 72px, var(--site-surface) 100%); }
.hero-anim { padding-bottom: 8px; }
.hero-anim .hero-progress { display: none; }   /* индикатор кадров под ноутбуком на лендинге не показываем (слово основателя 20.09); в превью остаётся */
.hero-anim .hero-strip { margin-top: 24px; background: var(--site-surface); }
.stage-unavailable { min-height: 200px; }
@media (max-width: 767px) {
  .hero .hero-media-anim { aspect-ratio: auto; padding: 12px; margin-top: 32px; }
  .hero .stage.stage-in-hero { position: static; width: 100%; transform: none; }
}

/* нижняя полоса героя поверх белого градиента 200px (медиа уходит под него) */
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 200px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), var(--site-surface) 70%);
  pointer-events: none; z-index: 1;
}
.hero-strip {
  position: relative; z-index: 2;
  margin-top: -88px;                     /* полоса лежит на затухающем низу медиа */
  padding: 12px 0 20px;
}
/* ряд — 1:1 по computed-стилям ramp.com («Agents at work today: … Receipts processed: [N]»):
   py 8, метка 10px/400/0.18px капс графит + правый разделитель 10% и pr 12; элементы px 12 с правым
   разделителем, ключ 60% графита, число — фон 5% графита (ховер 10%), радиус 4, padding 6, tabular-nums,
   тем же шрифтом; края ряда гаснут за 79px */
.hero-strip-row { display: flex; align-items: center; gap: 0; overflow: hidden; padding: 8px 0; }
.hero-strip-row .hero-strip-items { flex: 1 1 auto; }
.hero-strip-label {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  padding-right: 12px; border-right: 1px solid rgba(26, 26, 26, .1);
  font-size: 10px; font-weight: 400; letter-spacing: .18px; text-transform: uppercase; line-height: 21px;
  color: var(--site-primary);
}
/* знак «агенты вокруг платформы»: шесть графитовых точек по кругу, лаймовая — в центре; кольцо медленно вращается */
.agents-mark { width: 14px; height: 14px; flex-shrink: 0; overflow: visible; }
.agents-mark-ring { fill: var(--site-primary); }   /* вращение — SVG animateTransform вокруг (10,10), центр неподвижен во всех браузерах */
.agents-mark-core { fill: var(--site-accent); }
.hero-strip-track { position: relative; flex: 1 1 auto; min-width: 0; }
.hero-strip-track::before, .hero-strip-track::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 79px; z-index: 2; pointer-events: none;
}
.hero-strip-track::before { left: 0; background: linear-gradient(to right, var(--site-surface) 0%, transparent 71%); }
.hero-strip-track::after { right: 0; background: linear-gradient(to right, transparent 0%, var(--site-surface) 71%); }
.hero-strip-items { display: flex; gap: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; min-width: 0; }
.hero-strip-items::-webkit-scrollbar { display: none; }
/* бегущая строка (Р-69): ряд + его клон едут влево на ширину ряда и зацикливаются; при reduced-motion — статично */
.hero-strip-items.is-marquee { overflow: hidden; width: 100%; }
.hero-strip-items.is-marquee li { animation: strip-marquee var(--marquee-t, 30s) linear infinite; }
.hero-strip-items.is-marquee:hover li { animation-play-state: paused; }
@keyframes strip-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--marquee-w, 0px))); } }
@media (prefers-reduced-motion: reduce) { .hero-strip-items.is-marquee li { animation: none; } }
.hero-strip-items li {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 12px; border-right: 1px solid rgba(26, 26, 26, .1);
  font-size: 10px; font-weight: 400; letter-spacing: .18px; text-transform: uppercase; line-height: 21px;
  color: rgba(26, 26, 26, .6); white-space: nowrap;
}
.hero-strip-items li .strip-k::after { content: ':'; }
.hero-strip-items li .strip-v {
  display: inline-flex; align-items: center; padding: 0 6px; height: 19px; border-radius: 4px;
  background: rgba(26, 26, 26, .05); color: var(--site-primary);
  font-size: 10px; letter-spacing: .18px; line-height: 18px; font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease);
}
.hero-strip-items li:hover .strip-v { background: rgba(26, 26, 26, .1); }
@media (max-width: 767px) {              /* мобильный: полоса под медиа, без наложения и градиента */
  .hero { padding-top: 48px; }
  .hero-media { margin-top: 32px; }
  .hero-strip { margin-top: 0; padding-top: 16px; }
  .hero-fade { display: none; }
}

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

/* ---------- «Попробуйте прямо здесь» (Р-70) — как у ramp: между платформой и «как это работает»,
   по центру, на мягкой тёплой полосе ---------- */
.section-try {
  padding: 96px 0; text-align: center;
  background: linear-gradient(to bottom, var(--site-surface), var(--site-quote-bg) 30%, var(--site-quote-bg) 70%, var(--site-surface));
}
.section-try .section-label, .section-try .section-title { margin-left: auto; margin-right: auto; }
.section-try .section-title { max-width: 900px; white-space: pre-line; }   /* заголовок в две строки, перенос задан в content.js */
@media (max-width: 767px) { .section-try .section-title { white-space: normal; } }
.try { margin: 32px auto 0; max-width: 720px; text-align: left; }
.try-form { display: flex; flex-direction: column; gap: 14px; }
.try-form[hidden], .try-result[hidden], .try-note[hidden], .try-error[hidden] { display: none; }
/* окно — по .portal-composer: рамка, radius-lg, тень композера, padding 20 20 14; textarea внутри без рамки */
.try-box {
  display: flex; flex-direction: column;
  padding: 20px 20px 14px; border: 1px solid var(--site-border); border-radius: var(--site-radius-lg);
  background: var(--site-surface); box-shadow: var(--site-shadow);
  transition: border-color .15s var(--ease);
}
.try-box:focus-within { border-color: #cfcabd; }
.try-input {
  width: 100%; min-height: 96px; resize: none;   /* без растягивания (слово основателя 20.09) */
  padding: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 16px; line-height: 1.5; color: var(--site-primary);
}
.try-input::placeholder { color: #aca89c; }
.try-box-actions { display: flex; justify-content: flex-end; align-items: center; margin-top: 8px; }
/* кнопка-стрелка — .portal-send-btn(-circle/-live): 34px круг; пусто — серая (--site-border), при вводе — лаймовое стекло */
.try-send {
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  background: var(--site-border); color: var(--site-text-2); cursor: pointer;
  transition: background-color .15s, box-shadow .15s;
}
.try-send svg { width: 15px; height: 15px; }
.try-send:disabled { cursor: not-allowed; }
.try-send.is-live {
  background: rgba(223, 255, 0, 0.55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 12px rgba(223, 255, 0, 0.25);
  color: var(--site-primary);
}
@supports not (backdrop-filter: blur(1px)) { .try-send.is-live { background: var(--site-accent); border: 0; box-shadow: none; } }
.try-send.is-busy { cursor: progress; animation: try-busy 1s ease-in-out infinite; }
@keyframes try-busy { 50% { opacity: .5; } }
.try-hint { font-size: 13px; color: var(--site-text-3); }
.try-error { font-size: 14px; color: var(--site-danger, #b91c1c); }
.try-result { border: 1px solid var(--site-border); border-radius: var(--site-radius-lg); background: var(--site-surface); box-shadow: var(--site-shadow); padding: 20px 22px; }
.try-note { margin-bottom: 12px; font-size: 13px; color: var(--site-text-2); padding: 8px 12px; border-radius: 8px; background: var(--site-pill-bg); }
.try-result-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.try-table { width: 100%; margin-top: 12px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.try-table th { text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--site-text-3); padding: 6px 8px; border-bottom: 1px solid var(--site-table-border); }
.try-table td { padding: 8px; border-bottom: 1px solid var(--site-table-border); vertical-align: top; }
.try-table td:first-child, .try-table td:nth-child(3), .try-table td:nth-child(4) { font-family: var(--mono); color: var(--site-text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.try-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 600px) { .try-table th:nth-child(3), .try-table td:nth-child(3) { display: none; } .try-result { padding: 16px; } }

/* ---------- платформа (строка-тезис под героем) ---------- */
.platform { padding: 72px 0 8px; }
.platform-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500; line-height: 1.1; letter-spacing: 0;
  max-width: 1000px; text-wrap: balance;
}
@media (max-width: 760px) { .platform { padding: 48px 0 0; } }

/* двухтоновые заголовки: продолжение той же строкой, тем же кеглем, серым */
.tone { color: var(--site-text-2); }

/* ---------- секции ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--site-bg); border-top: 1px solid var(--site-table-border); border-bottom: 1px solid var(--site-table-border); }
.section-label {                        /* .portal-section-label — 15/600 вторичный */
  font-size: 15px; font-weight: 500; color: var(--site-text-2);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 3vw, 40px);      /* 40/42 · 400 */
  font-weight: 500; line-height: 1.05; letter-spacing: 0;
  max-width: 820px;
  text-wrap: balance;
}
.section-sub { margin-top: 12px; font-size: 17px; color: var(--site-text-2); max-width: 640px; }
@media (max-width: 760px) { .section { padding: 64px 0; } }

/* ---------- двери платформы: две крупные карточки (закупщику / поставщику) — по ramp:
   тёплая подложка с рассыпанными точками (canvas), двухтоновый заголовок со стрелкой,
   внизу макет окна продукта, срезанный краем карточки; на hover ячейки заполняются ---------- */
.doors { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.door-link {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 480px;
  padding: 28px 28px 0; border: 1px solid var(--site-border); border-radius: var(--site-radius-lg);
  background: var(--site-quote-bg); overflow: hidden;
  transition: border-color .2s var(--ease);
}
.door-link:hover { border-color: #cfcabd; }
.door-dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.door-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.door-title { font-size: 26px; line-height: 1.2; letter-spacing: 0; text-wrap: balance; max-width: 520px; }
.door-arrow { flex-shrink: 0; width: 28px; height: 28px; padding: 6px; border: 1px solid var(--site-border); border-radius: 8px; color: var(--site-text-2); background: var(--site-surface); transition: color .2s var(--ease), transform .2s var(--ease); }
.door-link:hover .door-arrow { color: var(--site-primary); transform: translate(2px, -2px); }
.door-text { position: relative; font-size: 15px; line-height: 1.45; color: var(--site-text-2); max-width: 520px; }
/* макет окна продукта — прижат к низу, уходит за край */
.door-win { position: relative; display: block; margin: 24px 0 0; padding: 0 0 0 4%; flex: 1; }
.mw { display: block; background: var(--site-surface); border: 1px solid var(--site-border); border-bottom: 0; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 24px -18px rgba(26,26,26,.35), var(--site-shadow); min-height: 100%; font-size: 13px; }
.mw-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--site-table-border); background: var(--site-bg); border-radius: 12px 12px 0 0; }
.mw-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--site-border); }
.mw-title { margin-left: 8px; font-size: 12px; color: var(--site-text-2); }
.mw-body { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 24px; }
.mw-langs { display: flex; gap: 6px; }
.mw-lang { padding: 3px 10px; border-radius: 999px; background: var(--site-pill-bg); color: var(--site-pill-text); font-size: 11px; transition: background-color .3s var(--ease) .2s; }
.door:hover .mw-lang-zh { background: var(--site-accent); }
.mw-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--site-pill-bg); color: var(--site-pill-text); font-size: 11px; }
.mw-chip::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--site-accent); }
.mw-table { display: flex; flex-direction: column; }
.mw-row { display: grid; grid-template-columns: 1.6fr 1fr .8fr; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--site-table-border); align-items: center; }
.mw-head { font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--site-text-3); }
.mw-cell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mw-val { position: relative; font-family: var(--mono); font-size: 12px; color: transparent; transition: color .3s var(--ease); }
.mw-wait { position: absolute; left: 0; top: 50%; display: flex; gap: 3px; transform: translateY(-50%); opacity: 1; transition: opacity .3s var(--ease); }
.mw-wait i { width: 4px; height: 4px; border-radius: 50%; background: var(--site-border); animation: mw-wait 1.2s ease-in-out infinite; }
.mw-wait i:nth-child(2) { animation-delay: .2s; } .mw-wait i:nth-child(3) { animation-delay: .4s; }
@keyframes mw-wait { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.door:hover .mw-val { color: var(--site-primary); transition-delay: calc(var(--i, 0) * .22s + .15s); }
.door:hover .mw-wait { opacity: 0; transition-delay: calc(var(--i, 0) * .22s + .1s); }
/* лист закупщика: лидер и «ИИ рекомендует» проявляются после того, как заполнились суммы (~0.9 с) */
.mw-row { position: relative; }
.mw-lead .mw-cell:first-child { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; text-decoration-color: transparent; transition: text-decoration-color .3s var(--ease); }
.door:hover .mw-lead .mw-cell:first-child { text-decoration-color: var(--site-accent); transition-delay: 1s; }   /* победитель — тонкая лаймовая линия (как ссылка в уведомлении) */
.mw-ai { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--site-table-border); background: var(--site-surface); font-size: 12px; line-height: 1.35; opacity: .35; transition: opacity .35s var(--ease); }
.mw-ai-label { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--site-text-3); }
.mw-ai-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--site-accent); }
.mw-ai-text { color: var(--site-text-2); }
.door:hover .mw-ai { opacity: 1; transition-delay: 1.15s; }
.door:hover .mw-ai-text { color: var(--site-primary); transition: color .3s var(--ease) 1.15s; }
.mw-total { display: flex; justify-content: space-between; padding: 8px 4px 0; font-size: 12px; color: var(--site-text-2); }
.mw-total-v { font-family: var(--mono); color: transparent; transition: color .3s var(--ease); }
.door:hover .mw-total-v { color: var(--site-primary); transition-delay: 1s; }
.mw-foot { display: flex; justify-content: flex-end; padding-top: 6px; }
.mw-send { padding: 8px 14px; border-radius: 8px; background: var(--site-border); color: var(--site-text-2); font-size: 12px; transition: background-color .3s var(--ease) 1.2s, color .3s var(--ease) 1.2s; }
.door:hover .mw-send { background: rgba(223,255,0,.6); color: var(--site-primary); }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } .door-link { min-height: 420px; } }
@media (prefers-reduced-motion: reduce) { .mw-val, .mw-total-v, .mw-ai-text { color: var(--site-primary); } .mw-ai { opacity: 1; } .mw-lead .mw-cell:first-child { text-decoration-color: var(--site-accent); } .mw-wait { display: none; } .mw-wait i { animation: none; } }

/* ---------- мозаика этапов (под секцией платформы) ---------- */
.tiles { margin-top: 40px; border-top: 1px solid var(--site-border); }
.tile { border-bottom: 1px solid var(--site-table-border); }
.tile-link {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 160px 24px; align-items: center; gap: 24px;
  padding: 18px 8px; border-radius: var(--site-radius);
  transition: background-color .2s var(--ease);
}
.tile-link:hover, .tile.is-live .tile-link { background: var(--site-bg); }
.tile-n { font-family: var(--mono); font-size: 13px; color: var(--site-text-3); font-variant-numeric: tabular-nums; }
.tile-text { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.tile-title { font-size: 24px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.tile-badge { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--site-text-3); border: 1px dashed var(--site-border); background: var(--site-surface); }
.tile-scene { display: block; width: 160px; height: 64px; }
.tile-scene svg { width: 100%; height: 100%; display: block; }
.tile-arrow { width: 18px; height: 18px; color: var(--site-text-3); transition: transform .2s var(--ease), color .2s var(--ease); }
.tile-link:hover .tile-arrow, .tile.is-live .tile-arrow { transform: translateX(3px); color: var(--site-primary); }
@media (max-width: 760px) {
  .tile-link { grid-template-columns: 28px minmax(0, 1fr) 20px; grid-template-areas: "n text arrow" "n scene arrow"; padding: 14px 4px; gap: 10px 14px; }
  .tile-n { grid-area: n; align-self: start; padding-top: 4px; }
  .tile-text { grid-area: text; }
  .tile-scene { grid-area: scene; width: 140px; height: 56px; }
  .tile-arrow { grid-area: arrow; }
  .tile-title { font-size: 17px; }
}
/* сцены: покой — тихо; hover/тап (.is-live) — деликатное оживление (палитра портала) */
.sc-row { fill: #e6e2d8; transform-origin: left center; transform: scaleX(.35); opacity: .6; transition: transform .45s var(--ease), opacity .45s var(--ease), fill .45s var(--ease); }
.sc-pill, .sc-count { opacity: 0; transition: opacity .35s var(--ease) .35s; }
.tile:hover .sc-row, .tile.is-live .sc-row { transform: none; opacity: 1; fill: #1a1a1a; }
.tile:hover .sc-row:nth-child(2), .tile.is-live .sc-row:nth-child(2) { transition-delay: .08s; }
.tile:hover .sc-row:nth-child(3), .tile.is-live .sc-row:nth-child(3) { transition-delay: .16s; }
.tile:hover .sc-pill, .tile.is-live .sc-pill, .tile:hover .sc-count, .tile.is-live .sc-count { opacity: 1; }
.sc-card { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tile:hover .sc-card-1, .tile.is-live .sc-card-1 { transform: translate(76px, 16px) scale(.6); }
.tile:hover .sc-card-2, .tile.is-live .sc-card-2 { transform: translate(76px, -10px) scale(.6); }
.tile:hover .sc-card-3, .tile.is-live .sc-card-3 { transform: translate(52px, 4px) scale(.6); transition-delay: .06s; }
.sc-bar { transition: height .5s var(--ease), y .5s var(--ease), fill .5s var(--ease); }
.tile:hover .sc-bar-1, .tile.is-live .sc-bar-1 { y: 20px; height: 34px; }
.tile:hover .sc-bar-2, .tile.is-live .sc-bar-2 { y: 30px; height: 24px; fill: #1a1a1a; }
.tile:hover .sc-bar-3, .tile.is-live .sc-bar-3 { y: 26px; height: 28px; }
.sc-lead { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--ease) .3s, transform .3s var(--ease) .3s; }
.tile:hover .sc-lead, .tile.is-live .sc-lead { opacity: 1; transform: none; }
.sc-btn { transform-origin: 49px 32px; transition: transform .2s var(--ease); }
.tile:hover .sc-btn, .tile.is-live .sc-btn { transform: scale(.94); }
.sc-check { opacity: .35; transition: opacity .3s var(--ease) .15s; }
.sc-check-path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .45s var(--ease) .2s; }
.tile:hover .sc-check, .tile.is-live .sc-check { opacity: 1; }
.tile:hover .sc-check-path, .tile.is-live .sc-check-path { stroke-dashoffset: 0; }
.sc-layer { transform: translateY(-6px); opacity: .5; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.sc-links { opacity: 0; transition: opacity .35s var(--ease) .25s; }
.tile:hover .sc-layer, .tile.is-live .sc-layer { transform: none; opacity: 1; }
.tile:hover .sc-links, .tile.is-live .sc-links { opacity: 1; }
/* неликвиды: запрос приезжает справа, пунктир к нему проявляется */
.sc-req { transform: translateX(10px); opacity: .45; transition: transform .45s var(--ease), opacity .45s var(--ease); }
.sc-req-path { opacity: 0; transition: opacity .35s var(--ease) .2s; }
.tile:hover .sc-req, .tile.is-live .sc-req { transform: none; opacity: 1; }
.tile:hover .sc-req-path, .tile.is-live .sc-req-path { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sc-row, .sc-pill, .sc-count, .sc-card, .sc-bar, .sc-lead, .sc-btn, .sc-check, .sc-check-path, .sc-layer, .sc-links, .sc-req, .sc-req-path { transition: none; }
}

/* ---------- окно платформы (используется сценой «Системы → платформа», orchestra-preview) ---------- */
.ba-win { flex: 1; display: flex; flex-direction: column; background: var(--site-surface); border: 1px solid var(--site-border); border-radius: var(--site-radius-lg); box-shadow: var(--site-shadow); overflow: hidden; font-size: 13px; }
.ba-win-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--site-table-border); background: var(--site-bg); font-weight: 500; color: var(--site-text-2); }
.ba-win-brand { height: 14px; width: auto; }
.ba-win-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ba-win-counter { font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--site-text-2); }
.ba-sheet { width: 100%; border-collapse: separate; border-spacing: 0; }
.ba-sheet th { text-align: left; font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--site-text-3); padding: 4px 8px; border-bottom: 1px solid var(--site-table-border); }
.ba-sheet td { padding: 7px 8px; border-bottom: 1px solid var(--site-table-border); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ba-sheet td:nth-child(2), .ba-sheet td:nth-child(3) { font-family: var(--mono); }
.ba-sheet td:last-child { color: var(--site-text-2); }
.ba-sheet tr.is-lead td { background: var(--site-bg); font-weight: 500; }
.ba-sheet tr.is-lead td:first-child { box-shadow: inset 3px 0 0 var(--site-accent); }
.ba-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-facts li { padding: 4px 9px; border-radius: 6px; background: var(--site-pill-bg); color: var(--site-pill-text); font-size: 12px; font-weight: 500; }
.ba-win-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--site-table-border); display: flex; justify-content: flex-end; }
@media (max-width: 900px) { .ba-sheet td:nth-child(4), .ba-sheet th:nth-child(4) { display: none; } }

/* ---------- шаги ---------- */
.steps { margin-top: 56px; display: flex; flex-direction: column; gap: 72px; }
.step {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.step:nth-child(even) .step-text { order: 2; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 10px;
  border-radius: var(--site-radius);
  background: var(--site-pill-bg); color: var(--site-pill-text);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.step-title { margin-top: 16px; font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }   /* 28/32 */
.step-body { margin-top: 12px; font-size: 16px; color: var(--site-text-2); }
.step-pain {
  margin-top: 16px; padding-left: 12px;
  border-left: 3px solid var(--site-border);   /* геометрия К-08 «левая полоса 3px», нейтральный тон */
  font-size: 13px; color: var(--site-text-3);
}
/* рамка снимка — одна, снаружи (внутри снимков собственных рамок нет: шаг 1 обрезан по композеру, шаг 3 отрисован без рамки) */
.shot { border: 1px solid var(--site-border); border-radius: 12px;   /* скругление как у окон дверей «Закупщику»/«Поставщику» (.mw) */ background: var(--site-surface); box-shadow: var(--site-shadow); overflow: hidden; }
.shot img { width: 100%; }
.step-shot { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.step:hover .step-shot { transform: translateY(-3px); box-shadow: var(--site-shadow-hover); }
@media (max-width: 900px) {
  .step { grid-template-columns: 1fr; gap: 24px; }
  .step:nth-child(even) .step-text { order: 0; }
  .steps { gap: 56px; }
}

/* ---------- агенты (по .portal-deal-item: padding 18, радиус 8, тень, лифт) ---------- */
.agents {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.agent {
  display: flex; flex-direction: column;
  padding: 18px;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius);
  box-shadow: var(--site-shadow);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.agent:hover { transform: translateY(-2px); box-shadow: var(--site-shadow-hover); }
.agent-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; line-height: 1.3; }
.agent-what { margin-top: 10px; font-size: 14px; color: var(--site-text-2); flex: 1; }
.agent-data-label {
  margin-top: 16px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--site-text-3);
}
.agent-data { margin-top: 4px; font-size: 13px; color: var(--site-pill-text); }
.agents-invariant {
  margin-top: 32px; text-align: center;
  font-size: 15px; font-weight: 500; color: var(--site-pill-text);
}
/* 8 живых — 4×2 на десктопе, 2×4 на планшете, колонка на телефоне */
.agents { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 1fr; }   /* все карточки одной высоты — по самой высокой (слово основателя 21.09) */
.agent-what { font-size: 13.5px; }
@media (max-width: 1100px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .agents { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.agent-what::first-letter { text-transform: uppercase; }

/* ---------- дорожная карта («Куда движется платформа») — деликатнее живых агентов:
   без карточных теней и лифта, список с тонкими разделителями, бейдж «в работе» ---------- */
.section-roadmap { padding-top: 80px; }
@media (max-width: 760px) { .section-roadmap { padding-top: 56px; } }
.roadmap-intro { margin-top: 16px; max-width: 720px; font-size: 17px; color: var(--site-text-2); text-wrap: pretty; }
.roadmap { margin-top: 36px; border-top: 1px solid var(--site-border); }
.roadmap-item {
  display: grid; grid-template-columns: 120px minmax(0, 300px) minmax(0, 1fr); gap: 8px 32px; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--site-table-border);
}
.roadmap-badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 3px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--site-text-3); border: 1px dashed var(--site-border); background: var(--site-surface);
}
.roadmap-item-title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.roadmap-item-text { font-size: 16px; line-height: 1.4; color: var(--site-text-2); }
.roadmap-outro { margin-top: 24px; font-size: 15px; font-weight: 500; color: var(--site-pill-text); }
@media (max-width: 760px) {
  .roadmap-item { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .roadmap-badge { margin-bottom: 2px; }
}

/* ---------- манифест: крупная типографика, воздух, по центру ---------- */
/* манифест — тёплая полоса во всю ширину (разбивает белую ленту страницы), точки фона как в герое */
.manifesto {
  padding: 160px 0; text-align: center;
  background-color: var(--site-quote-bg);
  background-image: radial-gradient(rgba(26, 26, 26, 0.06) 1px, transparent 1px);
  background-size: 12px 12px; background-position: 6px 6px;
  border-top: 1px solid var(--site-table-border); border-bottom: 1px solid var(--site-table-border);
}
.manifesto .wrap { display: flex; flex-direction: column; align-items: center; }
.manifesto-title {
  max-width: 980px;
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500; line-height: 1.08; letter-spacing: 0;
  text-shadow: var(--site-title-shadow);
  text-wrap: balance;
}
.manifesto-text {
  max-width: 760px; margin-top: 32px;
  font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45;
  color: var(--site-text-2);
  text-wrap: pretty;
}
@media (max-width: 760px) { .manifesto { padding: 96px 0; } .manifesto-text { margin-top: 20px; } }

/* ---------- «Утро — начинается не с почты»: текст слева (типографика манифеста), часы справа ---------- */
.morning { padding: 140px 0; }
.morning .manifesto-title, .morning .manifesto-text { text-align: left; }
.morning .manifesto-text { margin-top: 24px; }
.morning-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 48px 80px; align-items: center; }
.morning-clock { display: flex; flex-direction: column; gap: 22px; }
.morning-time { display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.morning-time.is-in { opacity: 1; transform: none; }
.morning-t { font-family: var(--mono); font-size: clamp(36px, 3.6vw, 52px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--site-text-2); }
.morning-l { font-size: 14px; color: var(--site-text-2); }
.morning-time.is-live .morning-t, .morning-time.is-live .morning-l { color: var(--site-primary); }
.morning-dot { display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--site-accent); vertical-align: middle; }
.morning-time.is-in .morning-dot { animation: morning-blink 1.6s ease-in-out infinite; }
@keyframes morning-blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(223, 255, 0, 0.55); }
  50%      { opacity: .35; box-shadow: 0 0 0 5px rgba(223, 255, 0, 0); }
}
@media (max-width: 960px) { .morning-grid { grid-template-columns: 1fr; } .morning-clock { flex-direction: row; flex-wrap: wrap; gap: 32px; } }
@media (max-width: 760px) { .morning { padding: 88px 0; } }
@media (prefers-reduced-motion: reduce) { .morning-time { opacity: 1; transform: none; transition: none; } .morning-time.is-in .morning-dot { animation: none; } }

/* ---------- неликвиды: склад в обе стороны ---------- */
.surplus { border-top: 1px solid var(--site-table-border); }
.surplus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: center; }
.surplus-text { margin-top: 20px; max-width: 560px; font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.surplus-scene { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; gap: 12px; }
.sp-card { padding: 16px 18px; border: 1px solid var(--site-border); border-radius: var(--site-radius-lg); background: var(--site-surface); box-shadow: var(--site-shadow); }
.sp-label { display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--site-text-3); }
.sp-name { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.3; }
.sp-row { margin-top: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sp-qty { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; color: var(--site-text-2); }
.sp-pill { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 11px; background: var(--site-pill-bg); color: var(--site-pill-text); }
.sp-note { margin-top: 6px; font-size: 12px; color: var(--site-text-3); }
.sp-link { width: 100%; height: 24px; overflow: visible; }
.sp-link-path { stroke-dashoffset: 40; transition: stroke-dashoffset 1s var(--ease) .3s; }
.sp-inquiry { transform: translateX(12px); opacity: .55; transition: transform .6s var(--ease) .35s, opacity .6s var(--ease) .35s; }
.surplus-scene.is-in .sp-link-path { stroke-dashoffset: 0; }
/* по пунктиру бежит лаймовый отрезок (слово основателя 21.09): от остатка к запросу, 2.2 с, после проявления линии */
.sp-link-run { stroke-dashoffset: 80; opacity: 0; }
.surplus-scene.is-in .sp-link-run { opacity: 1; animation: sp-run 2.2s linear 1.2s infinite; }
@keyframes sp-run { from { stroke-dashoffset: 80; } to { stroke-dashoffset: -80; } }
.surplus-scene.is-in .sp-inquiry { transform: none; opacity: 1; }
@media (max-width: 960px) { .surplus-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .surplus-scene { grid-template-columns: 1fr; } .sp-link { width: 24px; height: 40px; justify-self: center; transform: rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .sp-link-path, .sp-inquiry { transition: none; } .surplus-scene.is-in .sp-link-run { animation: none; stroke-dashoffset: 30; } }

/* ---------- цифры ---------- */
.numbers {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));   /* четыре цифры в ряд (поправка основателя 21.09) */
  gap: 16px;
}
.numbers .number[hidden] { display: none; }
.number-value > span:first-child { white-space: nowrap; }   /* число не переносится (не влезает — script.js покажет «11+ млн»); единица может уйти на строку ниже */
.number {
  padding: 24px;
  background: var(--site-quote-bg);
  border-radius: var(--site-radius-lg);
}
.number-value {
  font-size: clamp(40px, 4.5vw, 56px);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.number-unit { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--site-text-2); }
.number-text { margin-top: 12px; font-size: 14px; color: var(--site-text-2); }
.number-statement .number-text { margin-top: 0; font-size: 20px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; color: var(--site-primary); }
.number-statement { display: flex; align-items: center; }
.final-text:empty { display: none; }
.numbers-note { margin-top: 20px; font-size: 13px; color: var(--site-text-3); }
@media (max-width: 1100px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .numbers { grid-template-columns: 1fr; } }

/* ---------- финал ---------- */
.final {
  padding: 56px 48px;
  text-align: center;
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: var(--site-radius-lg);
  box-shadow: var(--site-shadow);
}
.final-title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.05; letter-spacing: 0; text-shadow: var(--site-title-shadow); }
.final-text { margin: 14px auto 0; max-width: 560px; font-size: 17px; color: var(--site-text-2); }
.final-cta { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.final-contact { font-size: 14px; color: var(--site-text-2); border-bottom: 1px solid var(--site-border); transition: color .15s var(--ease), border-color .15s var(--ease); }
.final-contact:hover { color: var(--site-primary); border-color: var(--site-primary); }
@media (max-width: 600px) { .final { padding: 40px 20px; } }

/* ---------- подвал ---------- */
/* ---------- подвал: тёмный, по приёму ramp.com — повтор шапки, колонки ссылок, юридический низ, финальный призыв ---------- */
/* белое полотно страницы скруглено снизу и лежит поверх тёмного подвала (как у ramp: белый блок с radius ~24 над чёрным) */
main { position: relative; z-index: 1; background: var(--site-surface); border-radius: 0 0 24px 24px; }
.foot { background: var(--site-primary); color: rgba(255, 255, 255, .6); margin-top: -24px; padding: 24px 0 48px; font-size: 14px; line-height: 20px; }
.foot a { color: rgba(255, 255, 255, .6); transition: color .15s var(--ease); }
.foot a:hover { color: #fff; }
.foot-top { display: flex; align-items: center; gap: 16px; height: 72px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-tagline { color: #fff; font-weight: 500; }
.foot-top-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.foot-link-top { font-size: 14px; }
.btn-lime, .foot .btn-lime { background: var(--site-accent); color: var(--site-primary); }
.btn-lime:hover, .foot .btn-lime:hover { background: #e9ff4d; color: var(--site-primary); }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; padding: 48px 0 56px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-col-title { color: #fff; margin-bottom: 14px; }
.foot-col li { margin: 0 0 8px; }
.foot-bottom { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.foot-legal-links { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.foot-legal-links a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.foot-legal-links a:hover { text-decoration-color: var(--site-accent); }
.foot-copy { color: rgba(255, 255, 255, .6); }
.foot-legal { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .45); line-height: 1.5; max-width: 720px; }
.foot-bottom-r { text-align: right; }
.foot-contact-label { color: #fff; margin-bottom: 4px; }
.foot-contact { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
/* финальный призыв — в скруглённой плашке, как у ramp (их блок e-mail: radius 12, фон 10% белого, рамка 30% белого) */
.foot-final { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 36px; padding: 20px 20px 20px 28px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); }
.foot-final-text { color: #fff; font-size: 18px; font-weight: 500; max-width: 640px; text-wrap: pretty; }
@media (max-width: 960px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-bottom { grid-template-columns: 1fr; } .foot-bottom-r { text-align: left; } }
@media (max-width: 600px) { .foot-cols { grid-template-columns: 1fr; } .foot-top { height: auto; padding: 16px 0; flex-wrap: wrap; } .foot-top-actions { margin-left: 0; } }
@media (max-width: 600px) { .foot-copy { margin-left: 0; } }

/* ---------- микроанимации (только при разрешённом движении) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: translateY(0); }
  .btn-primary:hover .lime-dot { transform: scale(1.25); }
  .lime-dot { transition: transform .2s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step:hover .step-shot, .agent:hover { transform: none; }
}
