/* Общее оформление страницы: шрифт, палитра, основа, заголовок раздела, кнопка, шапка. Вид разделов — в их папках
   (src/sections/<раздел>/style.css; склеиваются после этого файла, src/build.js). Источник значений — BRAND.md и
   src/stand/ui/static/ui.css (тёплые серые, один акцент, Golos Text, радиусы 6·8·10·12·16). Страница только тёмная:
   палитра одна — тёмная тема BRAND.md. Слов для посетителя здесь нет. */

@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-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: "Golos Text"; font-weight: 400; font-display: swap; src: url("fonts/golos-text-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+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url("fonts/golos-text-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: "Golos Text"; font-weight: 500; font-display: swap; src: url("fonts/golos-text-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+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-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: "Golos Text"; font-weight: 600; font-display: swap; src: url("fonts/golos-text-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+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- палитра (BRAND.md, «Палитра — ролями»; тёмная тема) ---------- */
:root {
  --bg: #1A1918;            /* фон */
  --panel: #262624;         /* вторая поверхность */
  --text: #ECEBE6;
  --text-2: #BAB8B0;        /* приглушённый */
  --text-3: #A3A19A;        /* подписи */
  --accent: #DB7E5F;       /* заливка, знак */
  --accent-ink: #DB7E5F;   /* акцент текстом: ссылки, фокус */
  --line: #3A3936;
  --field: #4A4844;
  --sel: #44433F;
  --bubble: #30302E;
  --surface: #30302E;       /* поверх панели */
  --primary: #ECEBE6;       /* главная кнопка — нейтральная */
  --on-primary: #1F1E1D;
  --avatar: #3A3936;
  --ok: #5DBB82;            /* смысловой цвет состояния «в сети», не акцент */
  --fill-1: color-mix(in srgb, var(--text) 6%, transparent);
  --fill-2: color-mix(in srgb, var(--text) 10%, transparent);
  --fill-3: color-mix(in srgb, var(--text) 14%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --accent-ring: color-mix(in srgb, var(--accent) 30%, transparent);
  --shadow-field: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.30);
  --r-xs: 6px; --r-sm: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 16px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 68px;
  --stroke: 1.5px;          /* линия рисунков и контура — как у знака */
  color-scheme: dark;
  accent-color: var(--accent);
}

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; scrollbar-width: thin; scrollbar-color: var(--field) transparent; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-variant-numeric: tabular-nums; overflow-x: clip; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
a:hover { color: var(--text); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text); }
.ico { width: 20px; height: 20px; flex: none; }
.wrap { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- шкала: иерархия — насыщенность + кегль + интерлиньяж ---------- */
.h2 { font-size: clamp(27px, 3.3vw, 40px); line-height: 1.13; font-weight: 600; letter-spacing: -0.016em; text-wrap: balance; }

/* ---------- кнопки: у каждой видимая форма; главная — нейтральная (BRAND.md) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-md);
  background: var(--primary); color: var(--on-primary); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color 120ms var(--ease); }
.btn:hover { background: color-mix(in srgb, var(--primary) 86%, var(--bg)); color: var(--on-primary); }

/* ---------- шапка: одна строка, остаётся наверху ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease); }
.nav.stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .ico { width: 28px; height: 28px; }
.nav-tools { display: flex; align-items: center; gap: 4px; }
.nav-tools > .btn { display: none; margin-left: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* Шапка (markup.js): на чёрном, как первый экран; знак — к началу страницы, язык — значок планеты со списком, кнопка
   «Связаться». Линия снизу — после прокрутки (класс stuck, script.js). */
.sc-nav { background: #000; }
.sc-nav.stuck { border-bottom-color: #262624; }
.sc-nav .brand { min-width: 44px; justify-content: center; }
.sc-nav .brand .ico { width: 30px; height: 30px; }
.nav-tools > .btn.sc-navcta { display: inline-flex; margin-left: 8px; padding: 0 16px; font-size: 14px; }
@media (max-width: 480px) { .nav-tools > .btn.sc-navcta { padding: 0 12px; } }

/* переключатель языка: значок планеты, по нажатию — список (владелец 27.11) */
.sc-lang { position: relative; }
.sc-lang summary { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #CFCDC6; cursor: pointer; list-style: none; }
.sc-lang summary::-webkit-details-marker { display: none; }
.sc-lang summary:hover, .sc-lang[open] summary { color: #FFF; background: rgba(236, 235, 230, 0.08); }
.sc-lang summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc-lang summary .ico { width: 21px; height: 21px; }
.sc-lang-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 170px; margin: 0; padding: 6px; list-style: none; border-radius: 12px;
  background: #151515; border: 1px solid rgba(236, 235, 230, 0.12); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); }
.sc-lang-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #CFCDC6; font-size: 15px; text-decoration: none; }
.sc-lang-list a:hover { background: rgba(236, 235, 230, 0.08); color: #FFF; }
.sc-lang-list a[aria-current="true"] { color: #FFF; font-weight: 600; }
.sc-lang-list .ico { width: 16px; height: 16px; color: var(--accent); }

/* Первый экран (markup.js): видео во весь экран на чёрном (#000 — цвет фона самого видео); имя и строка под ним
   проявляются по ходу анимации (классы name-in, tag-in ставит script.js). Без JavaScript всё видно сразу. */
.sc-hero { position: relative; height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h)); min-height: 520px; max-height: 1200px;
  background: #000; color: #ECEBE6; overflow: hidden; }
/* видео вписано целиком: его фон — тот же чёрный, поля не видны, а устройство не обрезается ни на каком экране */
.sc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.sc-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0)); pointer-events: none; }
/* по краю содержимого шапки (.wrap: 1200 px по центру, на узком — отступ) */
.sc-title { position: absolute; z-index: 1; left: max(var(--gutter), (100% - 1200px) / 2); right: max(var(--gutter), (100% - 1200px) / 2); bottom: clamp(28px, 7vh, 76px); }
.sc-name { font-size: clamp(44px, 7.6vw, 112px);   /* владелец 27.11: «чуть меньше» (было 52–132 px) */
   line-height: 0.92; font-weight: 600; letter-spacing: -0.04em; }
.sc-tag { margin-top: clamp(8px, 1.1vw, 16px); font-size: clamp(20px, 2.3vw, 34px); line-height: 1.2; font-weight: 500; letter-spacing: -0.012em; color: #BAB8B0; }
.js .sc-name, .js .sc-tag { opacity: 0; transform: translateY(14px); transition: opacity 1800ms var(--ease), transform 2200ms var(--ease); }
.js .sc-hero.name-in .sc-name, .js .sc-hero.tag-in .sc-tag { opacity: 1; transform: none; }
.js .sc-hero:not(.shown) { cursor: pointer; }   /* щелчок — к концу анимации */

@media (prefers-reduced-motion: reduce) {
  .js .sc-name, .js .sc-tag { transition: none; transform: none; }
}

/* «Без ограничений» (markup.js): лента плиток-роликов с привязкой к центру. До прихода раздел скрыт (класс arrived ставит
   script.js), у активной плитки (active) ролик проявляется и идёт, пока стоит класс run; still — ролик не пошёл, видна
   заставка. Без JavaScript всё видно сразу. */
.sc-high { --slide: min(1080px, 84vw); padding-block: clamp(72px, 9vw, 128px) clamp(56px, 7vw, 96px); background: var(--bg); overflow: hidden; }
.sc-high .h2 { margin-bottom: clamp(28px, 3.4vw, 48px); }
.sc-track { position: relative; display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-inline: calc((100vw - var(--slide)) / 2); }
.sc-track.gliding { scroll-snap-type: none; }       /* плавный сдвиг (script.js) — без привязки, иначе лента дёргается */
.sc-track::-webkit-scrollbar { display: none; }
.sc-slide { flex: 0 0 var(--slide); scroll-snap-align: center; }
.sc-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-xl); overflow: hidden; background: #000; color: #ECEBE6; container-type: inline-size;
  transition: opacity 600ms var(--ease); }
.js .sc-slide:not(.active) .sc-stage { opacity: 0.4; }
/* подпись — в левом верхнем углу ролика (владелец 27.11: «чуть крупнее и размести в левом верхнем углу анимаций») */
.sc-cap { position: absolute; z-index: 2; top: 0; left: 0; max-width: 64%; padding: clamp(18px, 3.6cqw, 40px) 0 0 clamp(20px, 4cqw, 44px); text-align: left;
  font-size: clamp(18px, 2.9cqw, 30px); line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; color: #ECEBE6; }
/* ролик вписан целиком; кадр под форму плитки (16:10 и 4:5 на телефоне) — фон ролика тот же чёрный */
.sc-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 700px) { .sc-high { --slide: 86vw; } .sc-stage { aspect-ratio: 4 / 5; } .sc-cap { max-width: 88%; font-size: clamp(18px, 5.6cqw, 23px); } }

/* приход в раздел (как у образца): заголовок и плитки проявляются, затем подпись и ролик активной плитки */
.js .sc-high-h, .js .sc-track { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 1100ms var(--ease); }
.js .sc-track { transition-delay: 150ms; }
.js .sc-high.arrived .sc-high-h, .js .sc-high.arrived .sc-track { opacity: 1; transform: none; }
/* подпись: у активной плитки — проявляется, у уходящей — гаснет */
.js .sc-cap { opacity: 0; transition: opacity 450ms var(--ease); }
.js .sc-high.arrived .sc-slide.active .sc-cap { opacity: 1; transition: opacity 900ms var(--ease) 300ms; }
/* ролик: до прихода активная плитка пустая; запущенный — проявляется с первого кадра */
.js .sc-high:not(.calm) .sc-slide.active:not(.run):not(.still) .sc-clip { opacity: 0; }
.js .sc-slide.run .sc-clip { animation: sc-in 700ms var(--ease) both; }
@keyframes sc-in { from { opacity: 0; } }

/* управление: точки (активная — полоска хода) и кнопка; без JavaScript его нет — плитки листаются прокруткой */
.sc-controls { display: none; justify-content: center; align-items: center; gap: 12px; margin-top: clamp(20px, 2.6vw, 32px); }
.js .sc-controls { display: flex; }
.sc-dots { display: flex; align-items: center; height: 52px; padding: 0 10px; border-radius: 26px; background: var(--fill-2); }
.sc-dots button { display: grid; place-items: center; width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; transition: width 400ms var(--ease); }
.sc-dots i { position: relative; display: block; width: 8px; height: 8px; border-radius: 4px; background: var(--text-3); overflow: hidden; transition: width 400ms var(--ease), background-color 300ms var(--ease); }
.sc-dots button:hover i { background: var(--text-2); }
.sc-dots [aria-current="true"] { width: 62px; }
.sc-dots [aria-current="true"] i { width: 46px; background: var(--fill-3); }
.sc-dots [aria-current="true"] i::after { content: ""; position: absolute; inset: 0; background: var(--text); transform-origin: left center; }
.sc-high.playing .sc-dots [aria-current="true"] i::after { animation: sc-fill var(--dur, 6s) linear both; }
@keyframes sc-fill { from { transform: scaleX(0); } }
.sc-play { display: grid; place-items: center; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 50%; background: var(--fill-2); color: var(--text); cursor: pointer; }
.sc-play:hover { background: var(--fill-3); }
.sc-play .ico { width: 20px; height: 20px; }
.sc-play .i-pause, .sc-play .i-again { display: none; }
.sc-high.playing:not(.paused) .sc-play .i-pause { display: block; }
.sc-high.playing:not(.paused) .sc-play .i-play { display: none; }
.sc-high.ended .sc-play .i-again { display: block; }
.sc-high.ended .sc-play .i-play { display: none; }
@media (max-width: 700px) { .sc-dots button { width: 44px; } .sc-dots [aria-current="true"] { width: 64px; } }
/* пауза: всё, что движется в активной плитке, и полоска хода стоят */
.sc-high.paused .sc-dots i::after, .sc-high.wait .sc-dots i::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .js .sc-high-h, .js .sc-track, .js .sc-cap { transition: none; transform: none; }
  /* посетитель сам нажал «Смотреть»: полоска хода — настоящей длительности, иначе лента пролетела бы до конца */
  .sc-high.playing .sc-dots [aria-current="true"] i::after { animation-duration: var(--dur, 6s) !important; }
  .sc-slide .sc-clip { animation: none !important; }
}

/* «Как пользоваться» (markup.js): слева плашки, справа поле с картинкой, роликом или плитками (script.js). */
/* фон раздела — чёрный, как у роликов: края поля уходят маской в прозрачность и сливаются с ним без рамки */
.sc-howto { --ht-bg: #000; padding-block: clamp(40px, 5vw, 72px);   /* владелец 27.11: меньше пустого сверху и снизу */
  background: var(--ht-bg); color: #ECEBE6; }
.sc-howto-h { margin-bottom: clamp(16px, 2vw, 28px); }
.sc-ht { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.sc-ht-list { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; align-self: center; }
.sc-ht-item { max-width: 460px; border-radius: 28px; background: #1D1C1B; transition: background-color 300ms var(--ease); }
.sc-ht-head { font: inherit; }
.sc-ht-btn { display: flex; align-items: center; gap: 14px; min-height: 56px; width: 100%; padding: 0 24px 0 16px; border: 0; background: none; color: inherit;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-align: left; cursor: pointer; border-radius: 28px; }
.sc-ht-plus { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: transform 400ms var(--ease); }
.sc-ht-plus::before, .sc-ht-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; border-radius: 1px; }
.sc-ht-plus::after { transform: rotate(90deg); }
.sc-ht-item.open .sc-ht-plus { transform: rotate(45deg); }
.sc-ht-btn:hover .sc-ht-plus { background: rgba(236, 235, 230, 0.08); }
.sc-ht-btn:focus-visible { outline-offset: 2px; border-radius: 28px; }
.sc-ht-panel { padding: 0 24px 22px 58px; }
.sc-ht-text { font-size: 17px; line-height: 1.45; color: #C9C7C0; }
/* без JavaScript: тексты видны, кнопки — просто подписи */
html:not(.js) .sc-ht-plus { display: none; }
html:not(.js) .sc-ht-btn { cursor: default; pointer-events: none; padding-left: 24px; }
html:not(.js) .sc-ht-panel { padding-left: 24px; }
/* раскрытие — высота плавно (grid 0fr → 1fr); свёрнутая панель скрыта и для клавиатуры (hidden ставит скрипт по концу) */
.js .sc-ht-panel { display: grid; grid-template-rows: 0fr; padding-bottom: 0; transition: grid-template-rows 450ms var(--ease), padding-bottom 450ms var(--ease); }
.js .sc-ht-panel > * { overflow: hidden; min-height: 0; }
.js .sc-ht-item.open .sc-ht-panel { grid-template-rows: 1fr; padding-bottom: 22px; }
.js .sc-ht-item.open .sc-ht-text { animation: sc-in 500ms var(--ease) 120ms both; }

/* поле справа: квадрат, виды друг над другом; края — маской в прозрачность (владелец: «затемнением в черноту по краям») */
/* поле помещается в экран вместе с заголовком раздела */
.sc-ht-stage { position: relative; aspect-ratio: 1; width: min(100%, 64vh); width: min(100%, 64svh); justify-self: center; }
.sc-ht-view { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 600ms var(--ease); }
.sc-ht-view.is-on { opacity: 1; }
.sc-ht-view video, .sc-ht-view > img { width: 100%; height: 100%; object-fit: cover; display: block;
  /* затемнение до полной черноты у середин сторон (владелец 27.11: «чтобы не было видимой грани слева и справа»); углы — тоже 0 */
  --fade: radial-gradient(closest-side, #000 58%, rgba(0, 0, 0, 0.7) 80%, transparent 100%);
  -webkit-mask-image: var(--fade); mask-image: var(--fade); }
/* до прихода (с JavaScript) начальной картинки не видно — она проявляется по приходу (сама неподвижна) */
.js .sc-howto:not(.arrived):not(.calm) .sc-ht-view[data-view="base"] { opacity: 0; }
/* плитки «Пользуйтесь»: 2 × 2, появляются по очереди; маска поля по краям им не нужна — свой отступ */
.sc-tiles { position: absolute; inset: 9%; display: grid; grid-template-columns: 1fr 1fr; gap: 4%; }
.sc-tile { position: relative; border-radius: var(--r-xl); overflow: hidden; background: #0B0B0A; }
.sc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.js .sc-ht-view .sc-tile { opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.js .sc-ht-view.is-on .sc-tile { opacity: 1; transform: none; }
.js .sc-ht-view.is-on .sc-tile:nth-child(2) { transition-delay: 120ms; }
.js .sc-ht-view.is-on .sc-tile:nth-child(3) { transition-delay: 240ms; }
.js .sc-ht-view.is-on .sc-tile:nth-child(4) { transition-delay: 360ms; }
/* плитка-интерфейс: копия настоящего интерфейса, уменьшенная целиком */
.sc-tile-ui { container-type: inline-size; }
/* раскладка — 340 px шириной всегда; масштаб под плитку ставит script.js (--k); по вертикали — с середины вопроса */
.sc-tile-ui-in { position: absolute; left: 0; top: 0; width: 340px; transform: scale(var(--k, 0.7)); transform-origin: 0 0; pointer-events: none; }
.sc-tile-ui-in .ui.piece { font-size: 14px; }

/* телефон: одна колонка; поле — над плашками, а при открытой плашке — внутри неё, под текстом (script.js переносит) */
@media (max-width: 860px) {
  .sc-ht { grid-template-columns: 1fr; }
  .sc-ht-stage { order: -1; max-width: 520px; margin-inline: auto; }
  .sc-ht-item { max-width: none; width: 100%; }
  .sc-ht-item.open { background: #000; box-shadow: inset 0 0 0 1px #262624; }
  .sc-ht-panel .sc-ht-stage { width: calc(100% + 42px + 8px); max-width: none; margin: 14px 0 0 -42px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .sc-ht-view .sc-tile { transition: none !important; transform: none !important; opacity: 1; }
}

/* Кусок интерфейса на плитке «Интерфейс» (ui-piece.js) — копия настоящего интерфейса. Значения сняты с
   src/stand/ui/static/ui.css (на 20.11.2026): сообщение-пузырь 14 px, поле ввода 16 px, карточки тоном.
   Всё внутри .ui — в em от кегля .ui: 1em = 16 px настоящего интерфейса; копия сжимается вместе со своим местом
   (единицы cqw), а на узком экране — в читаемом кегле. Цвета — тёмные, как у страницы. */

.ui-stage { container-type: inline-size; }

.ui { --ui-input: #30302E; --ui-on-send: #FFFFFF;
  display: flex; width: 100%; height: 42em; font-size: min(16px, 100cqw / 64); line-height: 1.45; border-radius: 1em; overflow: hidden;
  background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.ui .ico { width: 1.125em; height: 1.125em; }   /* block: у flex многоточия не бывает */

.ui-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ui-scene { display: none; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* разговор начинается сверху, как в настоящем интерфейсе (.page: отступ 48 px сверху); на узком месте — прижат к низу:
   там он выше окна, и видеть нужно последнее */
.ui-page { flex: 1 1 auto; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding: 3em 1.5em 0.5em; }
.ui-col { width: 100%; max-width: 45em; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5em; }
.ui-user { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5em; }
.ui-atts { display: flex; flex-wrap: wrap; gap: 0.5em; justify-content: flex-end; }
.ui-att { display: flex; align-items: center; gap: 0.625em; padding: 0.5em 0.875em 0.5em 0.5em; border-radius: 0.75em; background: var(--fill-1); min-width: 0; }
.ui-att .ic { width: 2.125em; height: 2.125em; border-radius: 0.5em; background: var(--fill-1); display: flex; align-items: center; justify-content: center; color: var(--text-2); flex: none; }
.ui-att .tx { display: flex; flex-direction: column; min-width: 0; }
.ui-att .nm { font-size: 0.875em; font-weight: 500; overflow-wrap: anywhere; }
.ui-bubble { max-width: 35em; padding: 0.75em 1em; border-radius: 0.875em; background: var(--bubble); font-size: 0.9375em; line-height: 1.5; }
.ui-agent { display: flex; flex-direction: column; gap: 0.875em; }
.ui-steps { align-self: flex-start; display: inline-flex; align-items: center; gap: 0.5em; height: 1.875em; color: var(--text-3); font-size: 0.875em; }
.ui-steps .ico { width: 1em; height: 1em; }
.ui-steps.open .ico { transform: rotate(180deg); }
.ui-steplist { display: flex; flex-direction: column; gap: 0.25em; margin-top: -0.5em; padding-left: 0.25em; color: var(--text-3); font-size: 0.875em; line-height: 1.45; }
.ui-answer { display: flex; flex-direction: column; gap: 0.75em; font-size: 1em; line-height: 1.6; }

.ui-composer-wrap { flex: none; padding: 0.5em 1.5em 1.5em; }
.ui-composer { max-width: 45em; margin: 0 auto; border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--field)); border-radius: 1em; background: var(--ui-input);
  box-shadow: var(--shadow-field); padding: 0.875em 0.75em 0.625em 1em; display: flex; flex-direction: column; gap: 0.75em; }
.ui-composer .ph { font-size: 0.9375em; color: var(--text-3); }
.ui-composer .bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75em; }
.ui-composer .left { display: flex; align-items: center; gap: 0.625em; }
.ui-plus { width: 2em; height: 2em; border-radius: 0.5em; background: var(--fill-1); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
.ui-ring { width: 1.125em; height: 1.125em; border-radius: 50%; box-shadow: inset 0 0 0 0.16em var(--field); }
.ui-send { width: 2.125em; height: 2.125em; border-radius: 0.625em; background: var(--accent); color: var(--ui-on-send); display: flex; align-items: center; justify-content: center; }

/* кусок: одна сцена, без боковой панели */
.ui.piece { height: auto; font-size: min(16px, 100cqw / 36); }
.ui.piece .ui-scene { display: flex; }
.ui.piece .ui-page { padding: 1.75em 1.5em 0.75em; }
.ui.piece.bare .ui-page { padding-bottom: 1.75em; }
.ui.piece.bare .ui-composer-wrap { display: none; }   /* кусок без поля ввода */

/* узкое место: без боковой панели, кегль читаемый */
@container (max-width: 720px) {
  .ui { font-size: min(16px, 100cqw / 25); height: 35em; }
  .ui .ui-page { padding: 1.5em 1em 0.5em; justify-content: flex-end; }
  .ui .ui-composer-wrap { padding: 0.5em 1em 1em; }
  .ui.piece { height: auto; font-size: min(16px, 100cqw / 22); }   /* кусок на телефоне крупнее: его читают, а не разглядывают */
  .ui.piece .ui-page { padding: 1.5em 1em 0.75em; justify-content: flex-start; }
  .ui.piece.bare .ui-page { padding-bottom: 1.5em; }
}

/* «Безопасность» (markup.js): слово на весь раздел, затем заголовок, утверждения по одному и замок (script.js). */
/* высота раздела постоянна: крупное слово и итог занимают одно место, ниже ничего не сдвигается */
.sc-sec { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: clamp(72px, 9vw, 128px); background: var(--bg); overflow: hidden; }
.sc-sec-in { width: min(1200px, 100% - 2 * var(--gutter)); }
.sc-sec-h { font-size: clamp(30px, 6vw, 84px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; margin-bottom: clamp(28px, 4vw, 56px); transform-origin: center; width: max-content; max-width: 100%; }
.sc-sec-in { position: relative; }
.sc-sec-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 6vw, 96px); align-items: center; }
/* замок: светлая дужка, корпус цвета акцента; дужка поднята — открыт, на месте — закрыт (её низ прячется за корпусом);
   после щелчка расходится и гаснет тонкое кольцо */
.sc-lock { width: clamp(120px, 15vw, 220px); height: auto; overflow: visible; }
.sc-lock-shackle { fill: none; stroke: #ECEBE6; stroke-width: 11; stroke-linecap: round; transition: transform 520ms cubic-bezier(0.55, 0, 0.35, 1.45); }
.sc-lock-body { fill: var(--accent); }
.sc-lock-hole { fill: var(--bg); }
.sc-lock-ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: 0; transform-origin: 60px 90px; }
.js .sc-sec.lock-shut:not(.calm) .sc-lock-ring { animation: sc-ring 1100ms var(--ease) 380ms both; }
@keyframes sc-ring { from { opacity: 0.9; transform: scale(0.7); } to { opacity: 0; transform: scale(1.25); } }
.js .sc-sec:not(.calm) .sc-lock { opacity: 0; transform: translateY(12px) scale(0.96); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.js .sc-sec.lock-in .sc-lock { opacity: 1; transform: none; }
.js .sc-sec:not(.calm):not(.lock-shut) .sc-lock-shackle { transform: translateY(-22px); }
@media (max-width: 700px) { .sc-sec-body { grid-template-columns: 1fr; } .sc-lock { position: absolute; top: -6px; right: -8px; width: 64px; } }
.sc-sec-list { display: grid; gap: clamp(16px, 2vw, 24px); max-width: 820px; list-style: none; padding: 0; }
/* утверждения — списком с точкой (владелец 27.11: «чуть меньше размером, булетами (с точкой)»); точка — по середине первой строки */
.sc-sec-item { position: relative; padding-left: clamp(22px, 2.2vw, 30px); }
.sc-sec-item::before { content: ''; position: absolute; left: 2px; top: calc(clamp(19px, 2vw, 26px) * 0.625 - 3.5px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sc-sec-p { font-size: clamp(19px, 2vw, 26px); line-height: 1.25; font-weight: 500; letter-spacing: -0.012em; }
.sc-sec-note { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--text-2); }
/* анимация (script.js): sec-big — слово крупно в середине раздела (сдвиг и масштаб считает скрипт), sec-in — утверждения */
.js .sc-sec:not(.calm) .sc-sec-h { opacity: 0; }
.js .sc-sec.sec-big .sc-sec-h { opacity: 1; transform: translate(var(--sec-dx, 0px), var(--sec-dy, 0px)) scale(var(--sec-k, 1)); transition: opacity 800ms var(--ease); }
.js .sc-sec.sec-small .sc-sec-h { opacity: 1; transform: none; transition: transform 1000ms cubic-bezier(0.77, 0, 0.175, 1); }
.js .sc-sec:not(.calm) .sc-sec-item { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.js .sc-sec .sc-sec-item.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .sc-sec .sc-sec-h, .js .sc-sec .sc-sec-item, .js .sc-sec .sc-lock, .js .sc-sec .sc-lock-shackle { transition: none !important; transform: none !important; opacity: 1; }
}

/* «Технология» (markup.js). Слайд «оживает», когда получил класс in (script.js). Начальные состояния
   анимаций — только при .js и не .calm; без JavaScript и при «меньше движения» — конечный вид. Цвета — как у разделов выше:
   светлые линии на чёрном, акцент — оранжевый (--accent). */
.sc-tech { background: #000; color: #ECEBE6; --line: rgba(236, 235, 230, 0.72); --line-dim: rgba(236, 235, 230, 0.3); --mute: #A9A79F; --acc-soft: rgba(219, 126, 95, 0.2); }
.sc-tech-intro { padding-block: clamp(48px, 6vw, 80px) 0; text-align: center; }
.sc-tech-h { font-size: clamp(44px, 9vw, 128px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; }
.sc-tech-lead { margin-top: 18px; font-size: clamp(17px, 1.8vw, 22px); color: var(--mute); }

/* слайд: высота — по содержимому (владелец 27.11: без пустого места), внизу — круглая стрелка к следующему */
.ts { position: relative; display: flex; flex-direction: column; padding-block: clamp(40px, 5vw, 64px) clamp(32px, 4vw, 56px); scroll-margin-top: 0; }
/* высота, которую может занять рисунок слайда, чтобы слайд целиком (заголовок, рисунок, стрелка) встал под шапку на экран
   (владелец 27.11: «чтобы видно было весь следующий раздел и кнопку прокрутки ниже») */
.sc-tech { --room: calc(100vh - 370px); --room: calc(100svh - 370px); }
.ts-in { display: grid; gap: clamp(28px, 4vw, 56px); }
.ts-head { text-align: center; }
.ts-h { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; }
.ts-lead { margin-top: 12px; font-size: clamp(16px, 1.6vw, 20px); color: var(--mute); text-wrap: balance; }
.ts-art { position: relative; width: 100%; max-width: 1040px; margin-inline: auto; }
.ts-next { position: relative; flex: none; width: 54px; height: 54px; margin: clamp(18px, 2.4vw, 28px) auto 0; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(236, 235, 230, 0.3); color: #ECEBE6; transition: background 200ms, border-color 200ms; }
.ts-next .ico { width: 22px; height: 22px; }
.ts-next:hover { background: rgba(236, 235, 230, 0.08); border-color: rgba(236, 235, 230, 0.65); }
.ts-next:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.js .sc-tech:not(.calm) .ts.in .ts-next .ico { animation: ts-bob 2.4s var(--ease) 2.4s infinite; }
@keyframes ts-bob { 0%, 100% { transform: none; } 50% { transform: translateY(5px); } }
.js .sc-tech:not(.calm) .sc-tech-intro > *, .js .sc-tech:not(.calm) .ts-head, .js .sc-tech:not(.calm) .ts-art { opacity: 0; transform: translateY(24px); transition: opacity 900ms var(--ease), transform 1100ms var(--ease); }
/* заголовок раздела — тем же весом селектора, что и его скрытие выше (иначе «Технология» не появлялась — 27.11) */
.js .sc-tech .sc-tech-intro.seen > *, .js .sc-tech .sc-tech-intro.in > *, .js .sc-tech .ts.seen .ts-head, .js .sc-tech .ts.in .ts-head, .js .sc-tech .ts.in .ts-art { opacity: 1; transform: none; }
.js .sc-tech .ts.in .ts-art, .js .sc-tech .in > p { transition-delay: 200ms; }

/* общие линии рисунков (чертёж, устройство базы знаний) */
.sc-tech .ln, .sc-tech .led, .sc-tech .mark, .sc-tech .die { fill: none; stroke: var(--line); stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sc-tech .fc { fill: #000; }
.sc-tech .dim { stroke: var(--line-dim); }
.sc-tech .led { stroke: var(--accent); stroke-width: 2.5; }
.sc-tech .mark { fill: var(--accent); stroke: var(--accent); }

/* ---------- «Оборудование»: чертёж ---------- */
/* по ширине — не больше 600 точек, по высоте — помещается в экран вместе с заголовком слайда */
.bp { position: relative; width: min(100%, 600px, calc(var(--room) * var(--ar, 1))); margin-inline: auto; }
.bp-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bp .mod, .bp .die { stroke: rgba(219, 126, 95, 0.8); }                     /* модули с описанием — контур цвета акцента */
.bp-l { transform: translateY(var(--dy)); }                                 /* разнесённый вид — конечный */
.bp-l:not([data-layer="board"]) { pointer-events: none; }                 /* наведение — только на модули */
.bp-mod { cursor: pointer; outline: none; transition: opacity 300ms; }
.bp-mod .mod, .bp-mod .die { transition: stroke 250ms, fill 250ms; }
.bp[data-on] .bp-mod:not(.on), .bp[data-on] .bp-l:not([data-layer="board"]) { opacity: 0.35; }
.bp-mod.on .mod, .bp-mod.on .die { stroke: var(--accent); fill: rgba(219, 126, 95, 0.28); }
.bp-mod:focus-visible .mod { stroke: #FFF; }
.bp-lead { opacity: 0; transition: opacity 250ms; pointer-events: none; }
.bp-lead.on { opacity: 1; }
.bp-lead circle { fill: var(--accent); }
.bp-lead line { stroke: var(--accent); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-card { position: absolute; z-index: 2; width: max-content; max-width: 250px; padding: 12px 14px; border-radius: 12px; background: rgba(18, 18, 18, 0.94);
  border: 1px solid rgba(219, 126, 95, 0.55); transform: translateY(-50%); opacity: 0; pointer-events: none; transition: opacity 250ms; }
.bp-card.bp-to-left { transform: translate(-100%, -50%); }
.bp-card.on { opacity: 1; }
.bp-name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.bp-line { margin-top: 4px; font-size: 14px; color: #CFCDC6; }
.bp-note { margin-top: 6px; font-size: 12.5px; color: #8E8C85; }
/* анимация (владелец 27.11): по приходу — устройство в сборе, оно раскрывается, затем модули с описанием по очереди светятся —
   видно, что на них можно навести */
.js .sc-tech:not(.calm) .ts:not(.in) .bp-l { transform: none; }
.js .sc-tech:not(.calm) .ts:not(.in) .bp-inner { opacity: 0; }
.js .sc-tech:not(.calm) .bp-l { transition: transform 1500ms cubic-bezier(0.65, 0, 0.25, 1) calc(1000ms + var(--i) * 80ms), opacity 700ms var(--ease) 1100ms; }
.js .sc-tech:not(.calm) .ts.in .bp-mod { animation: bp-glow 1100ms var(--ease) calc(2900ms + var(--k) * 650ms) 1; }
.js .sc-tech:not(.calm) .ts.in .bp-mod .mod, .js .sc-tech:not(.calm) .ts.in .bp-mod .die { animation: bp-glow-line 1100ms var(--ease) calc(2900ms + var(--k) * 650ms) 1; }
@keyframes bp-glow { 45% { filter: drop-shadow(0 0 6px rgba(219, 126, 95, 0.95)) drop-shadow(0 0 16px rgba(219, 126, 95, 0.55)); } }
@keyframes bp-glow-line { 45% { stroke: #FFD9C8; fill: rgba(219, 126, 95, 0.3); } }
@media (max-width: 760px) {
  .bp { width: min(100%, 420px, calc(var(--room) * var(--ar, 1))); }
  /* описание — под рисунком, без выноски */
  .bp-card, .bp-card.bp-to-left { left: 50% !important; top: 100% !important; width: min(100%, 320px); max-width: none; transform: translate(-50%, 10px); }
  .bp-lead { display: none; }
  .bp { margin-bottom: 150px; }       /* место под описание модуля — не налезает на следующий слайд */
}

/* ---------- «Основная модель» ---------- */
.tm { position: relative; width: min(100%, 780px, calc(var(--room) * 1.6)); aspect-ratio: 16 / 10; margin-inline: auto; }
.tm-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tm-lines line { stroke: rgba(236, 235, 230, 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.tm-core { position: absolute; left: 50%; top: 50%; width: clamp(130px, 22vw, 220px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: grid; place-content: center; text-align: center; border: 1px solid rgba(219, 126, 95, 0.65); background: radial-gradient(circle, rgba(219, 126, 95, 0.22), rgba(0, 0, 0, 0.9) 72%); }
.tm-num { font-size: clamp(42px, 6.4vw, 80px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.tm-unit { margin-top: 6px; font-size: clamp(12px, 1.3vw, 15px); color: var(--mute); }
.tm-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; }
.tm-ic { width: clamp(44px, 5.4vw, 60px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #0D0D0D; border: 1px solid rgba(236, 235, 230, 0.22); }
.tm-ic .ico { width: 44%; height: 44%; }
.tm-lb { font-size: clamp(12px, 1.3vw, 15px); color: #CFCDC6; white-space: nowrap; }
.js .sc-tech:not(.calm) .tm-lines line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--ease) calc(700ms + var(--i) * 110ms); }
.js .sc-tech:not(.calm) .tm-node { opacity: 0; transform: translate(-50%, -50%) scale(0.85); transition: opacity 500ms var(--ease) calc(1100ms + var(--i) * 110ms), transform 600ms var(--ease) calc(1100ms + var(--i) * 110ms); }
.js .sc-tech:not(.calm) .tm-core { opacity: 0; transform: translate(-50%, -50%) scale(0.9); transition: opacity 700ms var(--ease) 300ms, transform 900ms var(--ease) 300ms; }
.js .sc-tech .ts.in .tm-lines line { stroke-dashoffset: 0; }
.js .sc-tech .ts.in .tm-node { opacity: 1; transform: translate(-50%, -50%); }
.js .sc-tech .ts.in .tm-core { opacity: 1; transform: translate(-50%, -50%); }
@media (max-width: 760px) { .tm { aspect-ratio: 1; } .tm-lb { font-size: 11.5px; } }

/* ---------- «Мастерская»: боковая панель интерфейса и плитки ---------- */
.tw { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.tw-side { position: relative; display: grid; gap: 4px; padding: 14px 10px; border-radius: 16px; background: #141414; border: 1px solid rgba(236, 235, 230, 0.1); }
.tw-link { display: flex; align-items: center; gap: 10px; height: 36px; padding-inline: 10px; border-radius: 8px; font-size: 14px; color: #CFCDC6; }
.tw-link .ico { width: 18px; height: 18px; flex: none; }
.tw-target { background: rgba(236, 235, 230, 0.12); color: #FFF; }
.tw-cursor { position: absolute; left: 62%; top: 146px; width: 24px; height: 24px; pointer-events: none; }
.tw-cursor .ico { width: 100%; height: 100%; }
.tw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tw-col { display: grid; gap: 22px; }
.tw-sh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #8E8C85; }
.tw-sh .ico { width: 16px; height: 16px; }
.tw-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tw-tool { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: #111; border: 1px solid rgba(236, 235, 230, 0.08); transition: border-color 200ms, background 200ms; }
.tw-tool:hover { border-color: rgba(219, 126, 95, 0.55); background: #161210; }
.tw-ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(219, 126, 95, 0.15); color: var(--accent); }
.tw-ic .ico { width: 20px; height: 20px; }
.tw-tx { display: grid; min-width: 0; }
.tw-name { font-size: 14px; font-weight: 500; line-height: 1.3; }
.tw-model { font-size: 12px; color: #8E8C85; }
.tw-model b { font-weight: 500; color: #C9B6A3; }
.tw-soon .tw-ic { background: rgba(236, 235, 230, 0.06); color: #9C9A93; }
/* маленькая анимация значка: при наведении (и один раз при появлении) */
.tw-tool:hover .tw-ic .ico { animation: tw-wiggle 700ms var(--ease); }
@keyframes tw-wiggle { 25% { transform: rotate(-12deg) scale(1.12); } 60% { transform: rotate(8deg) scale(1.06); } }
.js .sc-tech:not(.calm) .tw-cursor { opacity: 0; }
.js .sc-tech:not(.calm) .ts.in .tw-cursor { animation: tw-move 1400ms var(--ease) 500ms both, tw-click 260ms ease 1950ms 1; }
@keyframes tw-move { from { opacity: 0; transform: translate(70px, 110px); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes tw-click { 50% { scale: 0.82; } }
.js .sc-tech:not(.calm) .tw-target { background: transparent; color: #CFCDC6; transition: background 300ms, color 300ms; transition-delay: 2050ms; }
.js .sc-tech .ts.in .tw-target { background: rgba(236, 235, 230, 0.12); color: #FFF; }
.js .sc-tech:not(.calm) .tw-tool, .js .sc-tech:not(.calm) .tw-sh { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.js .sc-tech:not(.calm) .tw-tool { transition-delay: calc(2300ms + var(--i) * 70ms); }
.js .sc-tech:not(.calm) .tw-sh { transition-delay: 2200ms; }
.js .sc-tech .ts.in .tw-tool, .js .sc-tech .ts.in .tw-sh { opacity: 1; transform: none; }
.js .sc-tech:not(.calm) .ts.in .tw-tool .tw-ic .ico { animation: tw-wiggle 700ms var(--ease) calc(2500ms + var(--i) * 70ms) 1; }
@media (max-width: 760px) { .tw { grid-template-columns: 1fr; } .tw-side { display: none; } .tw-grid { grid-template-columns: 1fr; } }

/* ---------- «Свой харнесс» ---------- */
.th { display: grid; justify-items: center; gap: clamp(28px, 4vw, 44px); }
.th-ring { position: relative; width: min(72%, 420px, calc(var(--room) - 110px)); aspect-ratio: 1; }
.th-ring svg { width: 100%; height: 100%; overflow: visible; }
.th-ring path { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.th-orbit { fill: none; stroke: rgba(236, 235, 230, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.th-dot { fill: #FFF; transform-box: view-box; transform-origin: 50px 50px; animation: th-spin 7s linear infinite; }
@keyframes th-spin { to { transform: rotate(360deg); } }
.th-core { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(236, 235, 230, 0.32); background: radial-gradient(circle, rgba(236, 235, 230, 0.1), transparent 72%); font-size: clamp(14px, 1.6vw, 18px); color: #CFCDC6; }
.th-lb { position: absolute; width: max-content; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: #0D0D0D; border: 1px solid rgba(236, 235, 230, 0.16); font-size: clamp(12px, 1.4vw, 15px); }
.th-lb .ico { width: 16px; height: 16px; color: var(--accent); }
.th-flow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin: 0; }
/* шаги — прямоугольные карточки (не как плашки вокруг кольца) */
.th-step { padding: 10px 16px; border-radius: 10px; background: #121212; border: 1px solid rgba(236, 235, 230, 0.2); font-size: 15px; color: #ECEBE6; white-space: nowrap; }
.th-arr { position: relative; width: 26px; height: 12px; flex: none; }
.th-arr::before { content: ''; position: absolute; left: 0; right: 2px; top: 50%; height: 1px; background: rgba(236, 235, 230, 0.55); }
.th-arr::after { content: ''; position: absolute; right: 1px; top: calc(50% - 4px); width: 8px; height: 8px; border: solid rgba(236, 235, 230, 0.55); border-width: 1px 1px 0 0; transform: rotate(45deg); }
/* «под капотом»: рамка цвета акцента вокруг середины цепочки и пометка над ней */
.th-hood { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 14px; }
.th-hood::before { content: ''; position: absolute; inset: 0; border-radius: 16px; border: 1px dashed rgba(219, 126, 95, 0.85); background: rgba(219, 126, 95, 0.06); }
.th-hood-lb { position: absolute; left: 14px; top: 0; transform: translateY(-50%); padding: 0 8px; background: #000; color: var(--accent); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.th-hood .th-step, .th-hood .th-arr { position: relative; }
.js .sc-tech:not(.calm) .th-ring path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--ease) calc(500ms + var(--i) * 220ms); }
.js .sc-tech:not(.calm) .th-lb { opacity: 0; transition: opacity 500ms var(--ease) calc(700ms + var(--i) * 220ms); }
.js .sc-tech .ts.in .th-ring path { stroke-dashoffset: 0; }
.js .sc-tech .ts.in .th-lb { opacity: 1; }
/* порядок: кольцо (до ~1,6 с) → шаги и стрелки слева направо → рамка «под капотом» */
/* в конце «Запрос» и «Результат» — зелёные (владелец 27.11): человек пишет и получает результат */
.th-flow > .th-step { border-color: rgba(76, 201, 128, 0.85); background: rgba(76, 201, 128, 0.1); color: #8BE3B0; }
/* появление: шаг загорается вспышкой акцента и гаснет до обычного вида, стрелка прорисовывается слева направо */
.js .sc-tech:not(.calm) .th-step { opacity: 0; }
.js .sc-tech:not(.calm) .ts.in .th-step { animation: th-step-in 800ms var(--ease) calc(2000ms + var(--k) * 230ms) both; }
@keyframes th-step-in { 0% { opacity: 0; transform: translateY(8px) scale(0.9); } 45% { opacity: 1; transform: none; box-shadow: 0 0 0 1px rgba(219, 126, 95, 0.9), 0 0 22px rgba(219, 126, 95, 0.55); } 100% { opacity: 1; transform: none; box-shadow: 0 0 0 0 rgba(219, 126, 95, 0); } }
.js .sc-tech:not(.calm) .th-arr { transform: scaleX(0); transform-origin: left center; transition: transform 380ms var(--ease) calc(2000ms + var(--k) * 230ms); }
.js .sc-tech .ts.in .th-arr { transform: none; }
.js .sc-tech:not(.calm) .th-flow > .th-step { border-color: rgba(236, 235, 230, 0.2); background: #121212; color: #ECEBE6; transition: border-color 700ms var(--ease) 4700ms, background 700ms var(--ease) 4700ms, color 700ms var(--ease) 4700ms; }
.js .sc-tech .ts.in .th-flow > .th-step { border-color: rgba(76, 201, 128, 0.85); background: rgba(76, 201, 128, 0.1); color: #8BE3B0; }
.js .sc-tech:not(.calm) .th-hood::before { opacity: 0; transform: scale(0.94); transition: opacity 600ms var(--ease) 4300ms, transform 700ms var(--ease) 4300ms; }
.js .sc-tech:not(.calm) .th-hood-lb { opacity: 0; transition: opacity 500ms var(--ease) 4800ms; }
.js .sc-tech .ts.in .th-hood::before { opacity: 1; transform: none; }
.js .sc-tech .ts.in .th-hood-lb { opacity: 1; }
@media (max-width: 760px) {
  .th-ring { width: min(56%, 260px); } .th-lb { padding: 5px 9px; font-size: 11.5px; }
  /* цепочка — столбиком, стрелки вниз */
  .th-flow, .th-hood { flex-direction: column; }
  .th-hood { padding: 22px 18px 14px; }
  .th-step { min-width: 160px; text-align: center; }
  .th-arr { width: 12px; height: 22px; transform: rotate(90deg); }
  .js .sc-tech:not(.calm) .th-arr { transform: rotate(90deg) scaleX(0); }
  .js .sc-tech .ts.in .th-arr { transform: rotate(90deg); }
}

/* ---------- «Интеграции» ---------- */
/* слева — рамка со списком выбранного раздела, по длине списка (владелец 27.11); место под неё (ti-side) постоянное — смена
   списка не двигает страницу. В начале рамки нет: сначала рисунок, затем «Почта и календарь» моргает и подсвечивается
   (класс blink), и появляется рамка (класс lit у слайда) — script.js */
.ti-wrap { display: grid; grid-template-columns: minmax(250px, 310px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ti-side { position: relative; align-self: stretch; min-height: 480px; }
.ti-panel { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); overflow: hidden; padding: 16px 16px 8px; border-radius: 18px;
  background: linear-gradient(180deg, #1B1A19, #121211); border: 1px solid rgba(236, 235, 230, 0.1); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  transition: opacity 450ms var(--ease), transform 550ms var(--ease); }
.ti-panel::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.ti-list { display: none; }
.ti-list.on { display: block; }
.ti-lh { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid rgba(236, 235, 230, 0.1); }
.ti-lh-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(219, 126, 95, 0.16); color: var(--accent); }
.ti-lh-ic .ico { width: 17px; height: 17px; }
.ti-lh-tx { flex: 1; font-size: 15px; font-weight: 600; color: #FFF; }
.ti-n { flex: none; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-size: 12px; color: #D9B9A9; background: rgba(219, 126, 95, 0.12); }
.ti-list ul { list-style: none; margin: 0; padding: 0; }
.ti-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 4px; border-radius: 8px; font-size: 14px; line-height: 1.35; color: #DAD8D1; }
.ti-list li + li { border-top: 1px solid rgba(236, 235, 230, 0.06); }
.ti-list li i { flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.js .sc-tech:not(.calm) .ti-list.on li { animation: ti-in 380ms var(--ease) calc(var(--j) * 50ms) both; }
@keyframes ti-in { from { opacity: 0; transform: translateY(-10px); } }
.js .sc-tech:not(.calm) .ts:not(.lit) .ti-panel { opacity: 0; transform: translateY(calc(-50% - 10px)) scale(0.97); }
.js .sc-tech:not(.calm) .ts:not(.lit) .ti-list.on li { animation: none; }
/* моргание «Почта и календарь» перед появлением рамки */
.ti-node.blink .ti-ic { animation: ti-blink 700ms ease 1; }
@keyframes ti-blink { 0%, 50%, 100% { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(219, 126, 95, 0.18), 0 0 26px rgba(219, 126, 95, 0.6); } 25%, 75% { border-color: rgba(236, 235, 230, 0.2); box-shadow: none; } }
.ti { position: relative; width: min(100%, 700px, calc(var(--room) * 1.6)); aspect-ratio: 16 / 10; margin-inline: auto; }
.ti-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ti-lines line { stroke: rgba(236, 235, 230, 0.24); stroke-width: 1; vector-effect: non-scaling-stroke; }
.ti-lines .ti-flow { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 0.08 0.92; stroke-dashoffset: 1; animation: ti-flow 2.6s linear calc(var(--i) * 0.5s) infinite; }
@keyframes ti-flow { to { stroke-dashoffset: 0; } }
.ti-core { position: absolute; left: 50%; top: 50%; width: clamp(92px, 13vw, 140px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 28%; display: grid; place-items: center;
  background: #0D0D0D; border: 1px solid rgba(219, 126, 95, 0.6); color: #ECEBE6; }
.ti-core .ico { width: 54%; height: 54%; }
.ti-node { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.ti-node:focus-visible { outline: none; }
.ti-node:focus-visible .ti-ic { outline: 2px solid var(--accent); outline-offset: 3px; }
.ti-ic { transition: border-color 250ms, box-shadow 250ms, background 250ms; }
.ts.lit .ti-node.on .ti-ic, .sc-tech.calm .ti-node.on .ti-ic, html:not(.js) .ti-node.on .ti-ic { border-color: var(--accent); background: #1C1410; box-shadow: 0 0 0 4px rgba(219, 126, 95, 0.14), 0 0 22px rgba(219, 126, 95, 0.45); }
.ti-node.on .ti-lb { color: #FFF; }
.ti-ic { width: clamp(46px, 5.6vw, 64px); aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: #111; border: 1px solid rgba(236, 235, 230, 0.2); color: var(--accent); }
.ti-ic .ico { width: 46%; height: 46%; }
.ti-lb { max-width: 150px; font-size: clamp(12px, 1.3vw, 15px); line-height: 1.25; color: #CFCDC6; }
.js .sc-tech:not(.calm) .ti-lines line:not(.ti-flow) { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 700ms var(--ease) calc(700ms + var(--i) * 160ms); }
.js .sc-tech:not(.calm) .ti-lines .ti-flow { animation-play-state: paused; opacity: 0; }
.js .sc-tech:not(.calm) .ti-node { opacity: 0; transform: translate(-50%, -50%) scale(0.85); transition: opacity 500ms var(--ease) calc(1100ms + var(--i) * 160ms), transform 600ms var(--ease) calc(1100ms + var(--i) * 160ms); }
.js .sc-tech .ts.in .ti-lines line:not(.ti-flow) { stroke-dashoffset: 0; }
.js .sc-tech .ts.in .ti-lines .ti-flow { animation-play-state: running; opacity: 1; transition: opacity 400ms 2200ms; }
.js .sc-tech .ts.in .ti-node { opacity: 1; transform: translate(-50%, -50%); }
@media (max-width: 760px) { .ti-wrap { grid-template-columns: 1fr; } .ti-side { order: 2; min-height: 0; } .ti-panel { position: relative; top: auto; transform: none; } .ti { aspect-ratio: 1; } .ti-lb { max-width: 110px; font-size: 11.5px; } }

/* ---------- «База знаний» ---------- */
.tk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.tk-panel { border: 1px solid rgba(236, 235, 230, 0.18); border-radius: 14px; overflow: hidden; background: #0B0B0B; }
.tk-head { padding: 10px 14px; font-size: 13px; background: rgba(219, 126, 95, 0.16); color: #EDC3B2; }
.tk-rows { list-style: none; padding: 0; margin: 0; }
.tk-rows li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid rgba(236, 235, 230, 0.08); font-size: 14px; }
.tk-tag { flex: none; font-size: 13px; color: #8E8C85; }
.kb-dev { width: 100%; height: auto; max-height: var(--room); overflow: visible; }
.kb-card .card { fill: #050505; }
/* карточки встают в ящичек по одной вместе со строками списка: падают сверху и вспыхивают акцентом */
.js .sc-tech:not(.calm) .kb-card { opacity: 0; }
.js .sc-tech:not(.calm) .ts.in .kb-card { animation: kb-card 700ms var(--ease) calc(1650ms + var(--i) * 650ms) both; }
@keyframes kb-card { from { opacity: 0; transform: translateY(-40px); } 60% { opacity: 1; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.js .sc-tech:not(.calm) .ts.in .kb-card .card { animation: kb-flash 900ms ease calc(1950ms + var(--i) * 650ms) both; }
@keyframes kb-flash { 0% { stroke: var(--accent); } 100% { stroke: var(--line); } }
.js .sc-tech:not(.calm) .tk-rows li { opacity: 0; transform: translateX(-10px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); transition-delay: calc(1650ms + var(--i) * 650ms); }
.js .sc-tech .ts.in .tk-rows li { opacity: 1; transform: none; }
@media (max-width: 760px) { .tk { grid-template-columns: 1fr; } .tk .kb-dev { order: -1; width: min(70%, 260px); margin-inline: auto; } .tk-rows li { font-size: 13px; } }

@media (prefers-reduced-motion: reduce) {
  .sc-tech *, .sc-tech *::before { animation: none !important; transition: none !important; }
}

/* низкий экран компьютера: плитки и строки плотнее — слайд со стрелкой помещается под шапку (владелец 27.11) */
@media (max-height: 820px) and (min-width: 761px) {
  .ts-in { gap: 22px; }
  .tw-list { gap: 6px; } .tw-col { gap: 14px; } .tw-tool { padding: 5px 10px; } .tw-ic { width: 30px; height: 30px; } .tw-sh { margin-bottom: 6px; }
  .ti-side { min-height: 430px; } .ti-list li { padding: 5px 4px; font-size: 13.5px; }
  .tk-rows li { padding: 7px 14px; }
}

/* Слайд «Интерфейс» (ui-scene.js): окно интерфейса в светлой теме. Цвета — светлая тема src/stand/ui/static/ui.css
   (фирменный цвет текстом — #BE4F2B: #D97757 к белому только 3,1:1 — им заливки и значки). Всё внутри — в em от кегля окна:
   1em ≈ 15 px на компьютере (окно шириной до 1040 px), на телефоне — не меньше 13 px. Высота окна на компьютере постоянна
   весь ход: разговор занимает место с начала и прячется прозрачностью (fit() в script.js меряет слайд до хода). Ход — классы u-* у .uw
   (script.js); без них — конечный вид. */
.ts-ui .ts-art { container-type: inline-size; }
.uw { --uw-bg: #FFFFFF; --uw-side: #F7F7F5; --uw-sel: #EDEDEA; --uw-bubble: #F2F2EF; --uw-line: #E8E8E4; --uw-field: #DCDCD7;
  --uw-text: #1D2120; --uw-text-2: #4D5451; --uw-text-3: #646B67; --uw-accent: #D97757; --uw-accent-ink: #BE4F2B;
  --pc-orange: #C9581C; --pc-green: #2C8C47; --pc-blue: #3D68D8; --pc-violet: #7E57E0;
  position: relative; display: flex; height: 34em; overflow: clip; border-radius: 1.1em; background: var(--uw-bg); color: var(--uw-text);
  font-size: min(15px, 100cqw / 64); line-height: 1.45; text-align: left; }
.uw .ico { width: 1.1em; height: 1.1em; flex: none; }

/* боковая панель */
.uw-side { flex: 0 0 18em; display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 0.85em 0.65em; background: var(--uw-side); border-right: 1px solid var(--uw-line); }
.uw-brand { display: flex; align-items: center; gap: 0.55em; padding: 0.15em 0.55em 0.75em; font-size: 1.05em; font-weight: 600; }
.uw-brand .ico { width: 1.35em; height: 1.35em; }
.uw-link, .uw-proj { display: flex; align-items: center; gap: 0.7em; height: 2.2em; padding: 0 0.7em; border-radius: 0.6em; white-space: nowrap; min-width: 0; }
.uw-link .ico { color: var(--uw-text-2); }
.uw-quick { margin-bottom: 0.2em; background: var(--uw-sel); }
.uw-quick .ico { color: var(--uw-accent); }
.uw-shead { padding: 0.95em 0.7em 0.3em; font-size: 0.87em; color: var(--uw-text-3); }
.uw-nm { overflow: hidden; text-overflow: ellipsis; }
.uw .uw-lock { width: 0.9em; height: 0.9em; margin-left: auto; color: var(--uw-text-3); }
.uw-convs { display: flex; flex-direction: column; gap: 1px; margin: 0.1em 0 0.3em 1.35em; padding-left: 0.55em; border-left: 1px solid var(--uw-field); }
.uw-conv { display: block; height: 2.05em; line-height: 2.05em; padding: 0 0.7em; border-radius: 0.55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uw-conv.on { background: var(--uw-sel); }

/* разговор: последнее — внизу, над полем ввода, как в интерфейсе */
.uw-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.uw-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 1.15em; padding: 1.4em 1.8em 0.8em; overflow: hidden; }
.uw-chat > *, .uw-comp { width: 100%; max-width: 40em; margin-inline: auto; }
.uw-user { display: flex; flex-direction: column; align-items: flex-end; gap: 0.45em; }
.uw-bubble { max-width: 30em; padding: 0.6em 0.95em; border-radius: 0.9em; background: var(--uw-bubble); }
.uw-file { display: inline-flex; align-items: center; gap: 0.6em; padding: 0.4em 0.85em 0.4em 0.4em; border-radius: 0.7em; background: var(--uw-bubble); white-space: nowrap; }
.uw-file-ic { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 0.5em; background: #1F7A45; color: #FFFFFF; }   /* таблица — зелёным, как значок Excel */
.uw-file-ic .ico { width: 1.05em; height: 1.05em; }
.uw-file-tx { display: flex; flex-direction: column; line-height: 1.25; }
.uw-file-nm { font-size: 0.9em; font-weight: 500; }
.uw-file-kd { font-size: 0.8em; color: var(--uw-text-3); }
.uw-agent { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7em; }
.uw-step { display: inline-flex; align-items: center; gap: 0.45em; font-size: 0.9em; color: var(--uw-text-3); }
.uw-step .ico { width: 0.9em; height: 0.9em; }
.uw-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; line-height: 1.35; }
.uw-tbl th { padding: 0.45em 0.7em; text-align: left; font-weight: 500; font-size: 0.9em; color: var(--uw-text-3); border-bottom: 1px solid var(--uw-field); white-space: nowrap; }
.uw-tbl td { padding: 0.55em 0.7em; border-bottom: 1px solid var(--uw-line); white-space: nowrap; }
.uw-tbl .r { text-align: right; }
.uw-tbl tr.best td { font-weight: 600; background: color-mix(in srgb, var(--uw-accent) 10%, transparent); }
.uw-tbl tr.best td:first-child { border-radius: 0.5em 0 0 0.5em; }
.uw-tbl tr.best td:last-child { border-radius: 0 0.5em 0.5em 0; }

/* поле ввода; строка файла раскрывается, только пока файл лежит в поле (высота окна от этого не меняется — поле внизу,
   разговор над ним) */
.uw-comp { flex: none; display: flex; flex-direction: column; gap: 0.25em; width: calc(100% - 3.6em); margin: 0.2em auto 1.3em; padding: 0.6em 0.7em 0.55em 0.9em;
  border: 1px solid color-mix(in srgb, var(--uw-accent) 45%, var(--uw-field)); border-radius: 1em; background: var(--uw-bg); box-shadow: 0 2px 8px rgba(29, 33, 32, 0.05);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.uw-comp-files { display: flex; align-items: center; height: 0; transition: height 320ms var(--ease); }
.uw.u-open .uw-comp-files, .uw.u-drop:not(.u-sent) .uw-comp-files { height: 2.9em; }
.uw-comp-tx { min-height: 1.45em; }
.uw-ph { color: var(--uw-text-3); }
.uw-bar { display: flex; align-items: center; justify-content: space-between; }
.uw-plus, .uw-send { display: grid; place-items: center; width: 2em; height: 2em; border-radius: 0.55em; }
.uw-plus { background: rgba(29, 33, 32, 0.06); color: var(--uw-text-2); }
.uw-send { background: var(--uw-accent); color: #FFFFFF; }

/* тащимая карточка с курсором — только во время хода */
.uw-drag { position: absolute; left: 0; top: 0; z-index: 2; visibility: hidden; pointer-events: none; }
.uw-drag .uw-file { background: var(--uw-bg); box-shadow: 0 10px 28px rgba(29, 33, 32, 0.22), 0 1px 3px rgba(29, 33, 32, 0.12); transform: rotate(-2deg); }
.uw-cur { position: absolute; right: -0.7em; bottom: -1em; }
.uw .uw-cur .ico { width: 1.6em; height: 1.6em; }
.uw-chip { visibility: hidden; }

/* ход (script.js): u-drag — карточку тащат, u-over — поле подсвечено, u-drop — файл в поле, u-typing — набор текста,
   u-sent — сообщение ушло, u-step — шаг агента, u-tbl — таблица по строкам, u-after — вывод */
.uw.u-drag:not(.u-drop) .uw-drag { visibility: visible; }
.uw.u-over .uw-comp { border-color: var(--uw-accent); background: color-mix(in srgb, var(--uw-accent) 8%, var(--uw-bg)); }
.uw.u-drop:not(.u-sent) .uw-chip { visibility: visible; animation: uw-in 320ms var(--ease) both; }
.uw.u-typing .uw-ph { display: none; }
@keyframes uw-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.js .sc-tech:not(.calm) .uw [data-u="msg"], .js .sc-tech:not(.calm) .uw [data-u="step"], .js .sc-tech:not(.calm) .uw [data-u="after"] {
  opacity: 0; transform: translateY(0.7em); transition: opacity 500ms var(--ease), transform 650ms var(--ease); }
.js .sc-tech:not(.calm) .uw [data-u="tbl"] tr { opacity: 0; transition: opacity 450ms var(--ease); }
.js .sc-tech:not(.calm) .uw [data-u="tbl"] tbody tr { transition-delay: calc(200ms + var(--i) * 220ms); }
.js .sc-tech .uw.u-sent [data-u="msg"], .js .sc-tech .uw.u-step [data-u="step"], .js .sc-tech .uw.u-after [data-u="after"],
.js .sc-tech .uw.u-tbl [data-u="tbl"] tr { opacity: 1; transform: none; }

/* узкое окно (телефон, планшет): без боковой панели, как интерфейс на телефоне; высота — по содержимому. С панелью при
   ширине окна от 860 px корпус не мельче 13,4 px */
@container (max-width: 860px) {
  .uw { height: auto; font-size: max(13px, min(15px, 100cqw / 25)); }
  .uw-side { display: none; }
  .uw-chat { padding: 1.1em 0.9em 0.6em; }
  .uw-comp { width: calc(100% - 1.8em); margin-bottom: 0.9em; }
  .uw-tbl th, .uw-tbl td { padding-inline: 0.4em; }
}
/* телефон: четвёртый столбец (гарантия) не помещается при читаемом кегле — его нет */
@container (max-width: 420px) {
  .uw-tbl th:nth-child(4), .uw-tbl td:nth-child(4) { display: none; }
}

/* Финал (markup.js): «Интеллект в кубе» → «Интеллект³» → название продукта → кнопка «Связаться» с окном заявки.
   Начальные состояния — только при .js; без JavaScript и при «меньше движения» — конечный вид (название, кнопка, форма). */

/* ---------- финальная надпись: «Интеллект в кубе» → «Интеллект³» → название ---------- */
.sc-int { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; align-content: center; gap: clamp(32px, 5vw, 56px); padding-inline: 20px; background: #000; color: #ECEBE6; overflow: hidden; }
.sc-int-in { display: grid; place-items: center; text-align: center; }
.int-word, .int-name { grid-area: 1 / 1; font-size: clamp(36px, 9.6vw, 150px); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05; white-space: nowrap;
  /* запас под хвосты букв (р, у) и размытие: при filter браузер рисует в рамке элемента — без запаса низ букв обрезан, пока идёт проявление */
  padding: 0.12em 0.1em 0.25em; margin: -0.12em -0.1em -0.25em; }
.int-cube { display: inline-block; vertical-align: bottom; white-space: nowrap; }
.int-l { display: inline-block; }
.int-three { display: inline-block; font-size: 0.45em; vertical-align: super; margin-left: -0.02em; color: var(--accent); }
/* конечный вид — название; надпись со словом скрыта */
.int-word { opacity: 0; }
.int-name { opacity: 1; }
.js .sc-int.run .int-name { opacity: 0; filter: blur(12px); transform: scale(0.96); transition: opacity 900ms var(--ease), filter 900ms var(--ease), transform 1100ms var(--ease); }
.js .sc-int.run .int-word { opacity: 0; transform: translateY(16px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease), filter 900ms var(--ease); }
/* «в кубе» → «³» (владелец 27.11: «давай попробуем как-нибудь иначе… чтобы было красивее»): буквы «в кубе» по очереди сжимаются и
   слетаются вверх, в точку степени; место под ними схлопывается — слово само встаёт по центру; на месте слёта вспыхивает «3» */
/* ширина «в кубе» сжимается от настоящей (--cube-w ставит script.js) — слово трогается к центру сразу, мягко (владелец 27.11) */
.js .sc-int.run .int-cube { max-width: var(--cube-w, 4em); transition: max-width 1000ms cubic-bezier(0.33, 0, 0.2, 1); }
.js .sc-int.run .int-l { transition: transform 650ms cubic-bezier(0.55, 0, 0.45, 1), opacity 450ms ease, filter 450ms ease; transition-delay: calc(var(--n) * 40ms); }
.js .sc-int.s2 .int-l { opacity: 0; filter: blur(3px); transform: translate(calc(-0.5em * var(--n) - 0.15em), -0.55em) scale(0.25); }
/* «3» стоит сразу за словом: до смены — нулевой ширины, буквы «в кубе» слетаются к нему */
.js .sc-int.run .int-three { opacity: 0; max-width: 0; transition: max-width 450ms cubic-bezier(0.65, 0, 0.35, 1) 200ms; }
.js .sc-int.s2 .int-three { max-width: 0.7em; }
.js .sc-int.s2 .int-three { animation: int-pop 750ms cubic-bezier(0.34, 1.56, 0.64, 1) 260ms both; }
@keyframes int-pop { 0% { opacity: 0; transform: scale(0.2); } 55% { opacity: 1; transform: scale(1.22); text-shadow: 0 0 26px rgba(219, 126, 95, 0.95); } 100% { opacity: 1; transform: none; text-shadow: 0 0 0 rgba(219, 126, 95, 0); } }
.js .sc-int.s1 .int-word { opacity: 1; transform: none; }
.js .sc-int.s2 .int-cube { max-width: 0; }
.js .sc-int.s3 .int-word { opacity: 0; filter: blur(12px); transform: scale(1.04); }
.js .sc-int.s3 .int-name { opacity: 1; filter: none; transform: none; transition-delay: 250ms; }

/* ---------- «Связаться» ---------- */
.sc-buy { text-align: center; }
/* кнопка проявляется после названия (класс s3 + 0,9 с); без JavaScript и при «меньше движения» — сразу */
/* кнопка — после «Меркурия» с той же паузой, что между «Интеллект³» и «Меркурием» (владелец 28.11): класс s4 — script.js */
.js .sc-int.run .sc-buy-btn { opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 700ms var(--ease), transform 800ms var(--ease); }
.js .sc-int.s4 .sc-buy-btn { opacity: 1; transform: none; pointer-events: auto; }
.js .sc-int.s4 .sc-buy-btn:hover { transform: translateY(-2px); }
.sc-buy-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 260px; padding: 22px 52px; border-radius: 999px; background: #ECEBE6; color: #111;
  font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.01em; text-decoration: none; transition: background 200ms, transform 200ms; }
.sc-buy-btn:hover { background: #FFF; transform: translateY(-2px); }
.sc-buy-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* окно заявки; без JavaScript — та же форма на странице под кнопкой */
html:not(.js) .sc-dlg { display: block; position: static; margin: 40px auto 0; }
.sc-dlg { width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid rgba(236, 235, 230, 0.14); border-radius: 20px; background: #121212; color: #ECEBE6; text-align: left; }
.sc-dlg::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.sc-form { position: relative; display: grid; gap: 14px; padding: 24px; }
.sc-form-top { display: flex; justify-content: space-between; align-items: center; }
.sc-form-h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.sc-x { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #CFCDC6; cursor: pointer; }
.sc-x:hover { background: rgba(236, 235, 230, 0.08); }
.sc-x .ico { width: 20px; height: 20px; }
.sc-field { display: grid; gap: 6px; font-size: 14px; color: #CFCDC6; }
.sc-field i { font-style: normal; color: #8E8C85; }
.sc-field input, .sc-field textarea { font: inherit; font-size: 16px; color: #ECEBE6; background: #0A0A0A; border: 1px solid rgba(236, 235, 230, 0.18); border-radius: 10px; padding: 11px 12px; resize: vertical; }
.sc-field input:focus, .sc-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.sc-field input:user-invalid { border-color: #E06A5A; }
/* ловушка для ботов: людям не видна и недоступна с клавиатуры */
.sc-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #CFCDC6; cursor: pointer; }
.sc-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.sc-docs { font-size: 13px; color: #8E8C85; }
.sc-docs a { color: #CFCDC6; }
.sc-form-end { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.sc-status { font-size: 14px; color: #CFCDC6; }

@media (prefers-reduced-motion: reduce) {
  .sc-int *, .sc-buy-btn { transition: none !important; }
}

/* Подвал (markup.js): знак и строка о продукте; реквизиты и документы — если заполнены (site.config.js, legal). */
.sc-foot { padding-block: 48px 32px; background: #0A0A0A; color: #A9A79F; border-top: 1px solid rgba(236, 235, 230, 0.08); font-size: 14px; }
.sc-foot-in { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
.sc-foot .brand { display: inline-flex; align-items: center; gap: 10px; color: #ECEBE6; font-weight: 600; text-decoration: none; }
.sc-foot .brand .ico { width: 22px; height: 22px; }
.sc-foot-brand p { margin-top: 10px; }
.sc-foot-legal a { display: inline-flex; align-items: center; min-height: 44px; }   /* цель для пальца */
.sc-foot a { color: #CFCDC6; }
.sc-foot a:hover { color: #FFF; }
.sc-foot-contact p { margin-top: 8px; line-height: 1.5; }
.sc-foot-legal { display: grid; gap: 6px; margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(236, 235, 230, 0.08); font-size: 12.5px; color: #7D7B75; }
.sc-foot-legal a { margin-right: 18px; color: #A9A79F; }
@media (max-width: 760px) { .sc-foot-in { grid-template-columns: 1fr; gap: 22px; } }

/* Страница документа (markup.js): политика обработки персональных данных, согласие. Читается как текст: узкая колонка,
   обычный кегль, разделы с воздухом сверху. */
.sc-doc { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); background: #000; }
.sc-doc-in { max-width: 720px; font-size: 17px; line-height: 1.6; color: #CFCDC6; }
.sc-doc h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: #ECEBE6; text-wrap: balance; }
.sc-doc h1 + p { margin-top: 12px; font-size: 15px; color: #A9A79F; }
.sc-doc h2 { margin-top: 40px; font-size: 21px; line-height: 1.3; font-weight: 600; color: #ECEBE6; }
.sc-doc p, .sc-doc ul { margin-top: 12px; }
.sc-doc ul { display: grid; gap: 6px; padding-left: 22px; list-style: disc; }
.sc-doc li::marker { color: var(--accent); }
.sc-doc a { color: #ECEBE6; }
