/* ============================================================
   электрон: сцены продуктов и страницы Станции, э.мобайл и ноды 0.
   Подключается после style.css на страницах со сценами
   (главная, Станция, э.мобайл, нода 0, э.касса).
   ============================================================ */

/* ============================================================
   1. Сцены. Общий каркас, им пользуются все страницы продуктов.
   Устройство закреплено на экране, подписи едут рядом со
   скоростью прокрутки. js пишет ход сцены в CSS-переменные.
   Без js или при «уменьшить движение» сцена показывает
   последний кадр и подписи списком.
   ============================================================ */
.scene {
  --scene-bg: var(--paper);
  position: relative;
  background: var(--scene-bg);
  border-top: 1px solid var(--hairline);
}
.scene__inner { position: relative; }
.scene__stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 72px 24px 16px;
  overflow: hidden;
}
.scene__text { position: relative; width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 8px 0 88px; }
.scene__cap { margin: 0 0 18px; }
.scene__cap p { margin: 0; font-size: 1.1rem; line-height: 1.5; color: var(--gray); text-wrap: pretty; }
.scene__cap b { font-weight: 600; color: var(--ink); }
.scene--dark { color: #fff; }
.scene--dark .scene__cap p { color: rgba(255, 255, 255, 0.6); }
.scene--dark .scene__cap b { color: #fff; }

/* ссылка «пропустить показ» видна только при переходе с клавиатуры */
.scene__skip {
  position: absolute; left: 0; bottom: 14px; z-index: 3;
  padding: 9px 16px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 0.86rem; font-weight: 600; line-height: 1.2;
  opacity: 0; pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--dur-2, 320ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)), transform var(--dur-2, 320ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}
.scene__skip:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.scene--dark .scene__skip { background: #fff; color: var(--ink); }

/* живая сцена: высота = экран + шаги подписей + короткая пауза на последнем кадре */
.scene.is-live { height: calc(var(--scene-len, 400vh) + var(--cap-h, 60vh) * var(--scene-hold, 0.45)); }
.scene.is-live .scene__inner {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  max-width: 1520px; margin: 0 auto;
  padding: var(--hh, 72px) clamp(24px, 4vw, 64px) 0;
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  grid-template-areas: "text stage";
  column-gap: clamp(32px, 4.5vw, 88px);
  overflow: clip;
}
/* от 1000 до 1520 px (iPad в альбомной ориентации, ноутбуки) колонка подписей,
   промежуток и поля плавно сужаются, чтобы устройству досталось больше места.
   На 1520 px значения совпадают с основными, ширина сцены растёт вместе
   с окном без скачков. На 1024 px сцена 668 px вместо 516 px. */
@media (min-width: 1000px) and (max-width: 1519.98px) {
  .scene.is-live .scene__inner {
    grid-template-columns: clamp(280px, 20.83vw + 63.4px, 380px) minmax(0, 1fr);
    column-gap: max(28px, 8.145vw - 55.4px);
    padding-inline: max(24px, 7.42vw - 52px);
  }
}
.scene.is-live .scene__stage { grid-area: stage; min-width: 0; min-height: 0; padding: 12px 0 28px; overflow: visible; }
.scene.is-live .scene__text {
  grid-area: text; position: relative;
  width: auto; min-height: 0; margin: 0; padding: 0;
  overflow: hidden;
}
.scene.is-live .scene__text::before, .scene.is-live .scene__text::after {
  content: ''; position: absolute; left: 0; right: 0; z-index: 1;
  height: 22%; pointer-events: none;
}
.scene.is-live .scene__text::before { top: 0; background: linear-gradient(180deg, var(--scene-bg) 10%, transparent 100%); }
.scene.is-live .scene__text::after { bottom: 0; background: linear-gradient(0deg, var(--scene-bg) 10%, transparent 100%); }
/* дорожка только сдвигается и не масштабируется, поэтому слой ей не вредит */
.scene.is-live .scene__track { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.scene.is-live .scene__cap {
  display: flex; align-items: center;
  height: var(--cap-h, 70vh); margin: 0;
  transition: opacity 420ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}
.scene.is-live .scene__cap p { font-size: clamp(1.2rem, 1.45vw, 1.5rem); line-height: 1.34; letter-spacing: -0.01em; }
/* текущая подпись в полный цвет, соседние приглушены (если сцена отмечает текущую) */
.scene.is-live .scene__track:has(.is-current) .scene__cap:not(.is-current) { opacity: 0.3; }

.scene__fit {
  --fit: 1;
  position: relative; flex: none;
  margin: auto;
  width: calc(var(--dw) * var(--fit) * 1px);
  height: calc(var(--dh) * var(--fit) * 1px);
}
.scene__device {
  position: absolute; left: 0; top: 0;
  width: calc(var(--dw) * 1px); height: calc(var(--dh) * 1px);
  transform: scale(var(--fit)); transform-origin: 0 0;
  contain: layout style;
}
/* слой для масштабируемых частей включается только на время движения,
   в покое браузер перерисует текст чётко */
.scene.is-moving .win, .scene.is-moving .iph, .scene.is-moving .mob__win { will-change: transform; }

/* адаптив каркаса */
@media (max-width: 1180px) { .scene:not(.is-live) .scene__fit { --fit: 0.8; } }
@media (max-width: 900px) { .scene:not(.is-live) .scene__fit { --fit: 0.6; } }
@media (max-width: 600px) { .scene:not(.is-live) .scene__fit { --fit: 0.32; } }
/* без js у Станции, э.мобайл и ноды на телефоне узкий макет (560, 360 и 440 px,
   см. их разделы). Масштаб подобран так, чтобы кадр с полями по 24 px
   влез в экран от 320 px. С js масштаб считает main.js. */
@media (max-width: 699.98px) {
  .scene--station:not(.is-live) .scene__fit { --fit: 0.9; }
  .scene--mobile:not(.is-live) .scene__fit, .scene--node:not(.is-live) .scene__fit { --fit: 1; }
}
@media (max-width: 551.98px) {
  .scene--station:not(.is-live) .scene__fit { --fit: 0.66; }
  .scene--node:not(.is-live) .scene__fit { --fit: 0.84; }
}
@media (max-width: 419.98px) {
  .scene--station:not(.is-live) .scene__fit { --fit: 0.48; }
  .scene--mobile:not(.is-live) .scene__fit { --fit: 0.74; }
  .scene--node:not(.is-live) .scene__fit { --fit: 0.6; }
}
/* на узких экранах устройство сверху, подписи под ним */
@media (max-width: 999px) {
  .scene.is-live .scene__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) var(--band-h, 34%);
    grid-template-areas: "stage" "text";
    /* пока видна плашка про cookie, подписи стоят над ней */
    padding: var(--hh, 64px) 20px var(--cookie-space, 0px);
  }
  .scene.is-live .scene__stage { padding: 6px 0 0; }
  .scene.is-live .scene__text::before, .scene.is-live .scene__text::after { height: 18%; }
  .scene.is-live .scene__cap p { max-width: 560px; font-size: clamp(1.06rem, 3.6vw, 1.3rem); line-height: 1.4; }
}

/* ============================================================
   2. Общие детали макетов: окно браузера, аватары, счётчики
   ============================================================ */
.win__bar {
  position: relative; z-index: 3;
  flex: none;
  display: flex; align-items: center; gap: 16px;
  height: 44px; padding: 0 14px;
  background: #f1f0ec; border-bottom: 1px solid var(--hairline);
}
.win__tab {
  display: flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px;
  border-radius: 7px; background: var(--white);
  box-shadow: 0 1px 2px rgba(24, 25, 28, 0.08);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.win__tab svg { flex: none; width: 13px; height: 13px; color: var(--blue); }
.win__addr {
  margin: 0 auto; transform: translateX(-60px);
  padding: 4px 20px; border-radius: 7px;
  background: var(--white); border: 1px solid var(--hairline);
  font-size: 0.76rem; color: var(--gray); white-space: nowrap;
}
/* ИИ в макетах показан как участник команды: монограмма, без значков-искр */
.ava--ai { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); font-size: 0.6rem; letter-spacing: 0.02em; }
.ava--4 { background: #8a7a5a; }
.ava--5 { background: #4f7f8f; }
.chat__hash { margin-right: 2px; color: var(--gray); }

/* цифры счётчиков прокручиваются, как в механическом счётчике */
.odo { display: inline-block; height: 1.3em; line-height: 1.3em; overflow: hidden; vertical-align: top; font-variant-numeric: tabular-nums; }
.odo__col { display: block; }
.odo__col i { display: block; font-style: normal; }

/* ============================================================
   3. Первый экран страницы продукта: заголовок и сам продукт
   ============================================================ */
.page-hero--product { padding: 64px 0 56px; overflow: hidden; }
.phero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}
.page-hero--product .page-hero__title { font-size: clamp(2.3rem, 4.3vw, 3.9rem); max-width: 640px; margin-bottom: 26px; text-wrap: balance; }
.page-hero--product .page-hero__lead { max-width: 540px; margin-bottom: 36px; text-wrap: pretty; }
.phero__still { position: relative; min-width: 0; }
.page-hero--dark { background: var(--ink); color: #fff; --pn: #fff; }
/* тёмный первый экран (нода 0) начинается под липкой шапкой: она лежит над ним
   уже при загрузке и сразу становится тёмной, без светлой полосы сверху.
   Отступ сверху возвращает содержимое на прежнее место. */
.page-hero--product.page-hero--dark {
  --under-header: calc(var(--header-h, 68px) + 1px);
  margin-top: calc(var(--under-header) * -1);
  padding-top: calc(64px + var(--under-header));
}
.page-hero--dark .page-hero__title .accent { color: rgba(255, 255, 255, 0.5); }
.page-hero--dark .page-hero__lead { color: rgba(255, 255, 255, 0.66); }
.page-hero--dark .btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.page-hero--dark .btn--line:hover { border-color: #fff; }

/* Станция: сделка, в которой видны счёт, письмо и звонок, и задача, которая знает свою сделку */
.phero__still--station { padding: 0 0 64px 36px; }
.hs-win {
  position: relative;
  border-radius: 12px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 25, 28, 0.08), 0 2px 6px rgba(24, 25, 28, 0.04), 0 30px 70px rgba(24, 25, 28, 0.12);
}
.hs-win .win__addr { margin: 0 0 0 auto; transform: none; }
.hs-deal { padding: 22px 24px 20px; }
.hs-deal__crumb { display: flex; gap: 6px; margin: 0 0 8px; font-size: 0.78rem; color: var(--gray); }
.hs-deal__crumb i { color: var(--hairline); }
.hs-deal__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.012em; }
.hs-deal__meta { margin: 4px 0 0; font-size: 0.86rem; color: var(--ink-2); }
.hs-deal__sum { display: flex; align-items: center; gap: 12px; margin: 16px 0 18px; }
.hs-deal__sum b { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.hs-deal__sum .ava { margin-left: auto; width: 26px; height: 26px; font-size: 0.66rem; }
.hs-deal__links { list-style: none; margin: 0; border-top: 1px solid var(--hairline); }
.hs-deal__links li {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.86rem;
}
.hs-deal__links li:last-child { border-bottom: 0; }
.hs-deal__links i { font-size: 0.76rem; color: var(--gray); }
.hs-deal__links b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hs-deal__links em { font-style: normal; font-size: 0.76rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.hs-task {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  width: min(290px, 70%);
  padding: 14px 16px 12px; border-radius: 12px;
  background: var(--white); border: 1px solid var(--hairline);
  box-shadow: 0 24px 50px rgba(24, 25, 28, 0.16), 0 2px 6px rgba(24, 25, 28, 0.06);
}
.hs-task__col { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 8px; font-size: 0.72rem; font-weight: 500; color: var(--gray); }
.hs-task__t { margin: 0; font-size: 0.95rem; font-weight: 500; line-height: 1.38; }
.hs-task__deal {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 0 0; padding: 7px 10px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue-dark);
  font-size: 0.8rem; font-weight: 500;
}
.hs-task__deal i { font-size: 0.72rem; color: var(--gray); font-weight: 400; }

/* э.мобайл: телефон с экраном «Сегодня» */
.phero__still--mobile { display: flex; flex-direction: column; align-items: center; padding: 4px 0 8px; }
.hp {
  --hs: 0.82;
  position: relative;
  width: 330px; height: 676px; flex: none;
  padding: 11px; border-radius: 58px;
  background: linear-gradient(135deg, #8d9097 0%, #4a4c52 18%, #2a2b2f 50%, #45474d 82%, #92959b 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), inset 0 0 0 5px #17171a, 0 40px 80px rgba(24, 25, 28, 0.2);
  transform: scale(var(--hs)); transform-origin: 50% 0;
  margin-bottom: calc(676px * (var(--hs) - 1));
}
.hp__key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #36383d, #7b7e84); }
.hp__key--a { left: -3px; top: 118px; height: 30px; }
.hp__key--b { left: -3px; top: 172px; height: 56px; }
.hp__key--c { left: -3px; top: 240px; height: 56px; }
.hp__key--d { right: -3px; top: 196px; height: 88px; background: linear-gradient(270deg, #36383d, #7b7e84); }
.hp__screen {
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  border-radius: 47px; overflow: hidden;
  background: var(--paper);
}
.hp__island { position: absolute; top: 14px; left: 50%; z-index: 2; width: 100px; height: 29px; margin-left: -50px; border-radius: 15px; background: #000; }
.hp__bar { position: absolute; bottom: 8px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(24, 25, 28, 0.85); }
.hp__shadow { display: block; width: 240px; height: 26px; margin-top: 4px; border-radius: 50%; background: radial-gradient(closest-side, rgba(24, 25, 28, 0.24), rgba(24, 25, 28, 0)); }

/* нода 0: устройство под небольшим углом, тень на поверхности */
.phero__still--node { display: flex; justify-content: center; padding: 8px 0 24px; }
.hn { position: relative; width: 340px; height: 360px; perspective: 1800px; }
.hn__shadow {
  position: absolute; left: 50%; top: 58%;
  width: 380px; height: 170px; margin-left: -190px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
.hn__obj {
  position: absolute; left: 20px; top: 16px;
  width: 300px; height: 300px;
  transform-style: preserve-3d;
  transform: rotateX(26deg) rotateZ(-14deg);
}
.hn__slab, .hn__face { position: absolute; inset: 0; border-radius: 64px; }
.hn__slab { background: linear-gradient(145deg, #5d6068, #2c2e33 45%, #62656d); }
.hn__slab:nth-child(1) { transform: translateZ(0); }
.hn__slab:nth-child(2) { transform: translateZ(8px); }
.hn__slab:nth-child(3) { transform: translateZ(16px); }
.hn__slab:nth-child(4) { transform: translateZ(24px); }
.hn__slab:nth-child(5) { transform: translateZ(32px); }
.hn__slab:nth-child(6) { transform: translateZ(40px); }
.hn__face {
  transform: translateZ(46px);
  background: radial-gradient(120% 90% at 28% 12%, #2d3039 0%, #131419 55%, #0b0c0f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.hn__screen {
  position: absolute; left: 50%; top: 17%;
  width: 164px; height: 70px; margin-left: -82px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 10px; background: #030405; box-shadow: inset 0 0 0 1px #262a36;
}
.hn .nd-cd { color: #e8ebff; }
.hn__sensor { position: absolute; left: 50%; top: 66%; width: 100px; height: 100px; margin: -50px 0 0 -50px; }
.hn__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: #0e1015; stroke: #5a6ee8; stroke-width: 3.5; }
.hn__fp { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; color: rgba(169, 184, 255, 0.45); }

@media (max-width: 999px) {
  .page-hero--product { padding: 48px 0 40px; }
  .page-hero--product.page-hero--dark { padding-top: calc(48px + var(--under-header)); }
  .phero { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .phero__still { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width: 600px) {
  .phero__still--station { padding: 0 0 72px 14px; }
  .hs-deal { padding: 18px 16px 14px; }
  .hs-deal__title { font-size: 1.25rem; }
  .hs-deal__sum b { font-size: 1.35rem; }
  .hs-deal__links li { grid-template-columns: 60px minmax(0, 1fr); }
  .hs-deal__links li > :last-child { display: none; }
  .hs-win .win__tab { display: none; }
  .hp { --hs: 0.66; }
  .hn { transform: scale(0.8); margin: -36px -34px -40px; }
}

/* ============================================================
   4. Сцена Станции: окно браузера в кафе «Ласточка».
   Курсор проходит по модулям, уведомления становятся карточками,
   Анна переносит банкет в «Готово», ночью задачу ставит ИИ.
   Значения по умолчанию описывают последний кадр.
   ============================================================ */
.scene--station {
  --wi: 1;
  --v0: 0; --v1: 0; --v2: 0; --v3: 1; --x0: 0; --x1: 0; --x2: 0; --x3: 0; --mvp: 3;
  --ca: 0; --cp: 0;
  --e1: 1; --e2: 1; --e3: 1; --f1: 1; --f2: 1; --f3: 1; --k1: 1; --k2: 1;
  --mm1: 1; --hl: 0; --lift: 0; --m: 1; --arc: 0; --dn: 1; --mm2: 1; --chf: 1;
  --h: 1; --ty: 1; --foc: 0; --c1f: 3; --c2f: 1; --c3f: 1;
  --strike: rgba(106, 108, 114, 0.6);
}
.scene--station .scene__fit { --dw: 1040; --dh: 680; }
.win {
  position: absolute; inset: 0 0 18px;
  display: flex; flex-direction: column;
  border-radius: 12px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 25, 28, 0.08), 0 2px 6px rgba(24, 25, 28, 0.04), 0 30px 70px rgba(24, 25, 28, 0.12);
  opacity: var(--wi);
  transform: translateY(calc((1 - var(--wi)) * 40px)) scale(calc(0.97 + var(--wi) * 0.03));
  transform-origin: 50% 100%;
}
.app--scene {
  position: relative;
  flex: 1; min-height: 0; margin: 0;
  display: flex; flex-direction: column;
  border: 0; border-radius: 0; box-shadow: none;
  background: var(--white);
}
.app--scene .app__body { flex: 1; min-height: 0; grid-template-columns: 184px minmax(0, 1fr); }
/* экран всегда в настольной раскладке, какой бы узкой ни была страница */
.app--scene .app__side { display: flex; padding: 16px 10px 0; gap: 0; }
.app--scene .app__org { padding: 2px 10px 12px; margin-bottom: 8px; }
.app--scene .app__main { position: relative; padding: 0; overflow: hidden; }
.app__navs { position: relative; display: flex; flex-direction: column; gap: 2px; }
.app__pill {
  position: absolute; left: 0; right: 0; top: 0;
  height: var(--navh, 35px); border-radius: 8px;
  background: var(--blue-soft);
  translate: 0 calc(var(--mvp) * var(--navstep, 37px));
}
.app--scene .app__nav { position: relative; padding: 8px 10px; font-size: 0.88rem; font-weight: 500; transition: color 0.25s; }
.app--scene .app__nav.is-active { background: transparent; color: var(--blue-dark); font-weight: 500; }
.app__me {
  display: flex; align-items: center; gap: 8px;
  margin: auto -10px 0; padding: 12px 20px;
  border-top: 1px solid var(--hairline);
  font-size: 0.84rem; color: var(--ink-2);
}
.app__tabs { display: none; }

/* экраны модулей: уходящий гаснет, новый проявляется с коротким сдвигом */
.st-views { position: absolute; inset: 0; }
.st-view {
  position: absolute; inset: 20px 22px 22px;
  opacity: var(--v);
  translate: calc(var(--x) * 1px) 0;
}
.st-view[data-v="0"] { --v: var(--v0); --x: var(--x0); }
.st-view[data-v="1"] { --v: var(--v1); --x: var(--x1); }
.st-view[data-v="2"] { --v: var(--v2); --x: var(--x2); }
.st-view[data-v="3"] { --v: var(--v3); --x: var(--x3); }
.app--scene .app__head { margin-bottom: 16px; }
.app__h { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em; }

.crm { border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; }
.crm__row {
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 52px;
  gap: 16px; align-items: center;
  margin: 0; padding: 13px 16px;
  border-top: 1px solid var(--hairline);
  font-size: 0.87rem;
}
.crm__row:first-child { border-top: 0; }
.crm__row--h { background: var(--paper); font-size: 0.75rem; font-weight: 600; color: var(--gray); }
.crm__row span:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 600; }
.crm__st { justify-self: start; padding: 3px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-size: 0.73rem; font-weight: 600; white-space: nowrap; }
.crm__st--1 { background: rgba(61, 93, 245, 0.1); color: var(--blue-dark); }
.crm__st--2 { background: rgba(232, 160, 30, 0.15); color: #8a5a08; }
.crm__st--3 { background: rgba(17, 154, 100, 0.12); color: #0d7d50; }

.chat { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 20px; height: 100%; }
.chat__list { display: flex; flex-direction: column; gap: 2px; padding-right: 16px; border-right: 1px solid var(--hairline); }
.chat__list p { display: flex; align-items: center; margin: 0; padding: 8px 10px; border-radius: 8px; font-size: 0.87rem; color: var(--ink-2); }
.chat__list p.is-on { background: var(--paper); color: var(--ink); font-weight: 600; }
.chat__list em { margin-left: auto; padding: 0 7px; border-radius: 999px; background: var(--blue); color: #fff; font-style: normal; font-size: 0.72rem; font-weight: 600; }
.chat__room { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.chat__title { margin: 0 0 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.chat__msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.chat__msg .ava { width: 30px; height: 30px; font-size: 0.7rem; }
.chat__msg p { margin: 0; font-size: 0.9rem; line-height: 1.45; }
.chat__msg b { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.chat__msg b i { font-weight: 400; font-size: 0.74rem; color: var(--gray); }
.chat__msg p > span { display: block; color: var(--ink-2); }
.chat__input { margin: auto 0 0; padding: 12px 14px; border: 1px solid var(--hairline); border-radius: 10px; font-size: 0.86rem; color: var(--gray); }

/* календарь недели: шкала часов, сегодня и линия «сейчас».
   Дни те же, что в истории на главной: в пятницу 16-го планёрка, поставщик овощей
   и дегустация банкета, инвентаризация бара по понедельникам (st.app2.l3) */
.cal { --hr: 49px; display: flex; flex-direction: column; height: calc(100% - 46px); }
.cal__days {
  display: grid; grid-template-columns: 38px repeat(6, minmax(0, 1fr));
  gap: 6px; margin: 0 0 6px;
  font-size: 0.76rem; font-weight: 600; color: var(--gray);
}
.cal__days .is-today { color: var(--red, #c8452f); }
.cal__body { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 6px; }
.cal__hours { display: grid; grid-auto-rows: var(--hr); margin: 0; font-size: 0.72rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.cal__hours span { translate: 0 -0.6em; }
.cal__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 6px;
  background: linear-gradient(180deg, var(--hairline) 1px, transparent 1px) 0 0 / 100% var(--hr);
  border-top: 1px solid var(--hairline);
}
.cal__ev {
  position: relative; grid-row: 1; align-self: start;
  min-height: calc(var(--hr) - 4px);
  margin: 0; padding: 6px 8px; border-radius: 7px;
  background: rgba(61, 93, 245, 0.09); border-left: 3px solid var(--blue);
  font-size: 0.76rem; line-height: 1.3; color: var(--ink);
}
.cal__ev i { display: block; font-size: 0.72rem; font-weight: 600; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.cal__ev--1 { grid-column: 1; top: var(--hr); }
.cal__ev--2 { grid-column: 5; top: calc(var(--hr) * 6); min-height: calc(var(--hr) * 1.5 - 4px); background: rgba(232, 160, 30, 0.13); border-left-color: #e0a01e; }
.cal__ev--2 i { color: #8a5a08; }
.cal__ev--3 { grid-column: 3; top: calc(var(--hr) * 3); }
.cal__ev--4 { grid-column: 5; top: calc(var(--hr) * 2); background: rgba(17, 154, 100, 0.1); border-left-color: #119a64; }
.cal__ev--4 i { color: #0d7d50; }
.cal__ev--5 { grid-column: 5; top: var(--hr); }
.cal__ev--6 { grid-column: 1; top: calc(var(--hr) * 8); min-height: calc(var(--hr) * 1.3 - 4px); }
.cal__ev--7 { grid-column: 6; top: calc(var(--hr) * 2); background: rgba(17, 154, 100, 0.1); border-left-color: #119a64; }
.cal__ev--7 i { color: #0d7d50; }
.cal__now {
  position: absolute; z-index: 2;
  left: calc((100% * 5 + 30px) / 6); width: calc((100% - 30px) / 6);
  top: calc(var(--hr) * 0.5); height: 2px; border-radius: 1px;
  background: var(--red, #c8452f);
}
.cal__now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red, #c8452f); }

/* доска задач */
.app--scene .board {
  position: relative;
  grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-columns: auto;
  gap: 12px; overflow: visible; scroll-snap-type: none; padding-bottom: 0;
}
.app--scene .board__col { min-height: 0; padding: 10px; gap: 9px; }
.app--scene .board__title { padding: 2px 4px 3px; }
.app--scene .card { position: relative; padding: 10px 11px; font-size: 0.86rem; line-height: 1.38; }
.app--scene .card__meta { margin-top: 9px; }
.card__t { margin: 0; }
/* зачёркивание рисуется по строке слева направо, у всех готовых карточек одинаково */
.card__t span {
  background: linear-gradient(var(--strike), var(--strike)) 0 58% / calc(var(--st, 0) * 100%) 1px no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.app--scene .card--done > p:first-child { text-decoration: none; }
.app--scene .card--done .card__t { --st: 1; color: var(--gray); }
.board__more { margin: 1px 0 0; padding: 8px 4px 0; border-top: 1px dashed var(--hairline); font-size: 0.76rem; color: var(--gray); }

/* карточки из уведомлений проявляются, когда уведомление долетает */
.app--scene .card--new { opacity: calc(var(--c) * (1 - var(--foc) * 0.45)); scale: calc(0.96 + var(--c) * 0.04); }
.app--scene .card--new[data-new="1"] { --c: var(--k1); }
.app--scene .card--new[data-new="2"] { --c: var(--k2); }
/* остальные карточки уступают место карточке ИИ сдвигом, без перестройки колонки */
.app--scene .board__col--1 > .card--new { translate: 0 calc((var(--h) - 1) * var(--aih, 124px)); }
.app--scene .board__col--1 > .board__more { translate: 0 calc((var(--h) - 1) * var(--aih, 124px) - (1 - var(--k1)) * var(--nh1, 90px) - (1 - var(--k2)) * var(--nh2, 70px)); }
.app--scene .board .card:not(.card--ai):not(.card--new), .app--scene .board__more { opacity: calc(1 - var(--foc) * 0.45); }

/* банкет: его берут курсором и переносят в «Готово» */
.app--scene .card--move {
  z-index: 3;
  transform:
    translate(calc(var(--m) * var(--colstep, 274px)), calc(var(--lift) * -10px - var(--arc) * 18px))
    rotate(calc(var(--lift) * 1.4deg));
}
.app--scene .card--move::before, .app--scene .card--move::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
}
.app--scene .card--move::before { box-shadow: 0 16px 32px rgba(24, 25, 28, 0.18); opacity: var(--lift); }
.app--scene .card--move::after { box-shadow: 0 0 0 3px rgba(61, 93, 245, 0.16), inset 0 0 0 1px rgba(61, 93, 245, 0.4); opacity: var(--hl); }
.app--scene .card--move .card__t { --st: var(--dn); color: color-mix(in srgb, var(--gray) calc(var(--dn) * 100%), var(--ink)); }
.app--scene .board__col--2 .card--after { translate: 0 calc(var(--m) * -1 * var(--shift, 92px)); }
.app--scene .board__col--3 .card--after { translate: 0 calc(var(--m) * var(--shift, 92px)); }
.card__swap { display: grid; }
.card__swap > .card__ms { grid-area: 1 / 1; display: flex; align-items: center; gap: 7px; min-width: 0; margin: 0; white-space: nowrap; }
.card__ms svg { flex: none; width: 14px; height: 14px; color: var(--blue); }
.card__ms--1 { opacity: calc(1 - var(--mm1)); }
.card__ms--2 { opacity: calc(var(--mm1) - var(--mm2)); }
.card__ms--3 { opacity: var(--mm2); }
.card__ms--3 svg { color: var(--green, #119a64); }

/* карточка, которую ночью поставил ИИ */
.card__by { display: flex; align-items: center; gap: 7px; margin: 0 0 7px; font-size: 0.74rem; color: var(--gray); }
.app--scene .card--ai {
  border-color: rgba(61, 93, 245, 0.32);
  opacity: clamp(0, calc(var(--h) * 1.7 - 0.7), 1);
  translate: 0 calc((1 - var(--h)) * -12px - var(--foc) * 3px);
}
.app--scene .card--ai::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 14px 30px rgba(24, 25, 28, 0.14), 0 0 0 3px rgba(61, 93, 245, 0.1);
  opacity: var(--foc);
}
/* текст заметки печатается по буквам: скрытый полный текст держит место, поверх идёт набранная часть */
.card__type { position: relative; }
.card__type-live { display: none; }
.scene--station.is-live .card__type-full { visibility: hidden; }
.scene--station.is-live .card__type-live { display: block; position: absolute; inset: 6px 8px; }
.card__type-live::after {
  content: ''; display: inline-block;
  width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -0.16em;
  background: var(--blue); opacity: 0;
}
.card__type.is-typing .card__type-live::after { opacity: 1; }

/* счётчики колонок и чата */
.odo--c1 .odo__col { translate: 0 calc(var(--c1f) * -1.3em); }
.odo--c2 .odo__col { translate: 0 calc(var(--c2f) * -1.3em); }
.odo--c3 .odo__col { translate: 0 calc(var(--c3f) * -1.3em); }
.odo--chat .odo__col { translate: 0 calc(var(--chf) * -1.3em); }

/* уведомления приходят под строкой адреса и долетают до своих карточек */
.app__notes { position: absolute; right: 14px; top: 56px; z-index: 6; width: 320px; height: 0; }
.app__note {
  position: absolute; right: 0; top: 0; width: 100%;
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 1px; align-items: center;
  margin: 0; padding: 10px 12px; border-radius: 12px;
  background: var(--white);
  border: 1px solid rgba(24, 25, 28, 0.08);
  box-shadow: 0 12px 30px rgba(24, 25, 28, 0.14), 0 1px 3px rgba(24, 25, 28, 0.06);
  font-size: 0.8rem; line-height: 1.35;
  opacity: calc(var(--e) * (1 - clamp(0, (var(--f) - 0.5) * 2.2, 1)));
  transform:
    translate(calc((1 - var(--e)) * 40px + var(--f) * var(--fx)), calc(var(--f) * var(--fy)))
    scale(calc(1 + var(--f) * (var(--fs) - 1)));
  transform-origin: 50% 50%;
}
.app__note[data-n="1"] { --e: var(--e1); --f: var(--f1); --fx: var(--fx1, -380px); --fy: var(--fy1, 160px); --fs: var(--fs1, 0.8); }
.app__note[data-n="2"] { --e: var(--e2); --f: var(--f2); --fx: var(--fx2, -380px); --fy: var(--fy2, 260px); --fs: var(--fs2, 0.8); }
.app__note[data-n="3"] { --e: var(--e3); --f: var(--f3); --fx: var(--fx3, -100px); --fy: var(--fy3, 120px); --fs: var(--fs3, 0.8); }
.app__note-ic {
  grid-row: span 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  color: #fff; font-style: normal; font-weight: 600; font-size: 0.72rem;
}
.app__note-ic svg { width: 16px; height: 16px; }
.app__note-ic--chat { background: var(--blue); }
.app__note-ic--erp { background: #f0c23b; color: #3b2d00; }
.app__note-ic--mail { background: #6c7280; }
.app__note b { font-weight: 600; font-size: 0.78rem; }
.app__note em { font-style: normal; font-size: 0.7rem; color: var(--gray); }
.app__note span { grid-column: 2 / 4; color: var(--ink-2); }

/* курсор: положение пишет js в свойство translate, нажатие сжимает стрелку */
.app__cursor {
  position: absolute; left: 0; top: 0; z-index: 8;
  width: 24px; height: 24px; overflow: visible;
  fill: #111215; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
  opacity: var(--ca);
  scale: calc((1 - var(--cp) * 0.14) * var(--cs, 1));
  transform-origin: 5px 3px;
  pointer-events: none;
}

@media (max-width: 999px) { .scene--station { --band-h: 40%; } }
/* Станция на телефоне: окно уже, вместо боковой панели вкладки сверху */
@media (max-width: 699.98px) {
  .scene--station { --band-h: 44%; }
  /* узкий холст без js (с js его пишет main.js из data-w-sm) */
  .scene--station .scene__fit { --dw: 560; --dh: 660; }
  .scene--station .win { inset: 0 0 12px; border-radius: 10px; }
  .scene--station .win__bar { height: 40px; gap: 10px; padding: 0 12px; }
  .scene--station .win__tab { padding: 0 10px; }
  .scene--station .win__addr { transform: none; padding: 4px 12px; }
  .app--scene .app__side { display: none; }
  .app--scene .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__tabs {
    position: relative;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 10px 12px 0; padding: 3px;
    border-radius: 10px; background: var(--paper-2);
  }
  .app__tabpill {
    position: absolute; left: 3px; top: 3px; bottom: 3px;
    width: calc((100% - 6px) / 4); border-radius: 8px;
    background: var(--white); box-shadow: 0 1px 3px rgba(24, 25, 28, 0.12);
    translate: calc(var(--mvp) * 100%) 0;
  }
  .app__tabs .app__nav { justify-content: center; padding: 7px 4px; border-radius: 8px; font-size: 0.9rem; }
  .app__tabs .app__nav.is-active { color: var(--ink); }
  .st-views { top: 50px; }
  .st-view { inset: 14px 12px 12px; }
  .app--scene .app__head { margin-bottom: 12px; }
  .app__h { font-size: 1.15rem; }
  .crm__row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; padding: 12px; font-size: 0.86rem; }
  .crm__row > :last-child { display: none; }
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat__list { display: none; }
  .cal { --hr: 40px; }
  .cal__days { grid-template-columns: 30px repeat(6, minmax(0, 1fr)); gap: 4px; font-size: 0.72rem; }
  .cal__body { grid-template-columns: 30px minmax(0, 1fr); gap: 4px; }
  .cal__hours { font-size: 0.66rem; }
  .cal__grid { column-gap: 4px; }
  .cal__now { left: calc((100% * 5 + 20px) / 6); width: calc((100% - 20px) / 6); }
  .cal__ev { padding: 4px 5px; font-size: 0.7rem; border-left-width: 2px; }
  .cal__ev i { font-size: 0.62rem; }
  .app--scene .board { gap: 8px; }
  .app--scene .board__col { padding: 8px; gap: 8px; }
  .app--scene .card { padding: 8px 9px; font-size: 0.82rem; }
  .app--scene .card__meta { margin-top: 7px; }
  .app--scene .card__note { font-size: 0.74rem; }
  .scene--station.is-live .card__type-live { inset: 6px 8px; }
  .card__by { margin-bottom: 5px; }
  .app__notes { right: 10px; top: 50px; width: 392px; }
  .app__note { font-size: 0.9rem; }
  .app__note b { font-size: 0.86rem; }
  .app__cursor { --cs: 1.45; }
}

/* ============================================================
   5. Сцена э.мобайл: прораб на объекте, смета №7.
   Уведомление раскрывается в приложение, смета согласуется,
   в офисе окно Станции обновляется. По умолчанию последний кадр.
   ============================================================ */
.scene--mobile {
  --scene-bg: var(--paper-2);
  --e1: 1; --nt: 1; --npr: 0; --op: 1; --lc: 1; --lcm: 1;
  --prs: 0; --ap1: 1; --sp: 0; --ap2: 1; --isl: 0;
  --shift: 1; --sw: 1; --fl: 1; --fd1: 1; --fd2: 1;
  --shx: -205px; --shs: 0;
}
.scene--mobile .scene__fit { --dw: 900; --dh: 700; }
.mob { position: absolute; inset: 0; perspective: 1800px; }
.iph {
  position: absolute; left: 50%; top: 8px; z-index: 2;
  width: 330px; height: 676px; margin-left: -165px;
  padding: 11px; border-radius: 58px;
  background: linear-gradient(135deg, #8d9097 0%, #4a4c52 18%, #2a2b2f 50%, #45474d 82%, #92959b 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3), inset 0 0 0 5px #17171a;
  transform:
    translateX(calc(var(--shift) * var(--shx)))
    translateY(calc((1 - var(--e1)) * 90px))
    rotateX(calc((1 - var(--e1)) * 12deg))
    scale(calc(0.93 + var(--e1) * 0.07 - var(--shift) * var(--shs)));
  transform-origin: 50% 0;
}
/* тень телефона отдельным слоем: меняется её прозрачность, а не размытие */
.iph::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  box-shadow: 0 40px 80px rgba(24, 25, 28, 0.22);
  opacity: calc(0.4 + var(--e1) * 0.6);
}
.iph__key { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #36383d, #7b7e84); }
.iph__key--act { left: -3px; top: 118px; height: 30px; }
.iph__key--up { left: -3px; top: 172px; height: 56px; }
.iph__key--down { left: -3px; top: 240px; height: 56px; }
.iph__key--side { right: -3px; top: 196px; height: 88px; background: linear-gradient(270deg, #36383d, #7b7e84); }
.iph__screen {
  position: relative; height: 100%;
  border-radius: 47px; overflow: hidden;
  background: #0d0e11;
  isolation: isolate;
}

/* общий интерфейс телефона: и в первом экране, и в сцене */
:is(.iph__app, .hp__screen) .phone__status { display: flex; align-items: center; justify-content: space-between; padding: 17px 26px 4px 34px; font-size: 0.8rem; font-weight: 600; }
.ios-ic { display: flex; align-items: center; gap: 5px; }
.ios-ic svg { width: auto; height: 11px; }
.ios-ic svg:last-child { height: 12px; }
:is(.iph__app, .hp__screen) .ph-head { padding: 20px 20px 14px; }
:is(.iph__app, .hp__screen) .ph-approve__btns { margin-top: 12px; }
.ph-approve__by { display: flex; align-items: center; gap: 7px; margin: 8px 0 0; font-size: 0.74rem; color: var(--ink-2); }
.ph-approve__by .ava { width: 20px; height: 20px; font-size: 0.52rem; }
.ph-approve__by em { margin-left: auto; font-style: normal; color: var(--gray); white-space: nowrap; }
.ph-approve__comm { margin: 6px 0 0; padding: 7px 9px; border-radius: 10px; background: var(--paper); font-size: 0.74rem; line-height: 1.35; color: var(--ink-2); }
:is(.iph__app, .hp__screen) .ph-list { margin-top: 10px; }
:is(.iph__app, .hp__screen) .ph-list li { padding: 11px 4px; }
:is(.iph__app, .hp__screen) .phone__dock {
  display: flex; justify-content: space-around; align-items: flex-start;
  padding: 8px 8px 26px;
  border-top: 1px solid var(--hairline);
  background: var(--white);
  font-size: 0.62rem; font-weight: 500; color: var(--gray);
}
:is(.iph__app, .hp__screen) .phone__dock > span { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 52px; }
:is(.iph__app, .hp__screen) .phone__dock svg { width: 22px; height: 22px; }
:is(.iph__app, .hp__screen) .phone__dock .is-active { color: var(--blue); }

/* экран блокировки: рассвет над стройкой, время и уведомление */
.iph__lock {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  color: #fff;
  background:
    radial-gradient(130% 60% at 50% 106%, rgba(214, 150, 104, 0.72) 0%, rgba(214, 150, 104, 0) 62%),
    linear-gradient(180deg, #151923 0%, #252a38 46%, #463e47 78%, #75594b 100%);
  transform: scale(calc(1 - var(--op) * 0.06));
  pointer-events: none;
}
.iph__lock .phone__status { align-self: stretch; display: flex; align-items: center; justify-content: space-between; padding: 17px 26px 4px 34px; font-size: 0.8rem; font-weight: 600; }
.iph__dim { position: absolute; inset: 0; background: #000; opacity: calc(var(--op) * 0.5); }
.iph__date { margin: 36px 0 0; font-size: 0.92rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.iph__time { margin: 2px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 5.6rem; line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.iph__nwrap { position: relative; align-self: stretch; margin: 36px 12px 0; }
/* края стопки: остальные уведомления сложены и ждут в ленте */
.iph__nwrap::before, .iph__nwrap::after {
  content: ''; position: absolute; border-radius: 0 0 18px 18px;
  opacity: calc(var(--nt) * (1 - clamp(0, var(--op) * 3, 1)));
}
.iph__nwrap::before { left: 12px; right: 12px; bottom: -7px; height: 22px; background: rgba(236, 236, 240, 0.52); }
.iph__nwrap::after { left: 24px; right: 24px; bottom: -13px; height: 22px; background: rgba(236, 236, 240, 0.3); }
.iph__notif {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: 20px;
  background: color-mix(in srgb, #d9d9df calc(var(--npr) * 100%), #f4f4f6);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  opacity: calc(var(--nt) * (1 - clamp(0, var(--op) * 3, 1)));
  transform: translateY(calc((1 - var(--nt)) * -36px)) scale(calc(0.94 + var(--nt) * 0.06 - var(--npr) * 0.03));
}
.iph__notif-ic { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--blue); color: #fff; }
.iph__notif-ic svg { width: 22px; height: 22px; }
.iph__notif-text { margin: 0; }
.iph__notif-text b { display: block; font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.iph__notif-text span { display: block; margin-top: 1px; font-size: 0.78rem; line-height: 1.35; color: var(--ink-2); }
.iph__notif em { font-style: normal; font-size: 0.7rem; color: var(--gray); }
.iph__lockbtn { position: absolute; bottom: 44px; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; }
.iph__lockbtn svg { width: 20px; height: 20px; }
.iph__lockbtn--l { left: 44px; }
.iph__lockbtn--r { right: 44px; }
.iph__lockbar { position: absolute; bottom: 8px; left: 50%; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }

/* приложение раскрывается из рамки уведомления, карточка сметы вырастает из самого уведомления */
.iph__app {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  background: var(--paper);
  opacity: clamp(0, calc(var(--op) * 6), 1);
  clip-path: inset(
    calc((1 - var(--op)) * var(--nt-y, 226px))
    calc((1 - var(--op)) * var(--nt-x, 12px))
    calc((1 - var(--op)) * var(--nt-b, 360px))
    calc((1 - var(--op)) * var(--nt-x, 12px))
    round calc(20px + var(--op) * 27px));
}
.iph__app > :not(.ph-approve):not(.iph__bar) { opacity: var(--lc); translate: 0 calc((1 - var(--lc)) * 14px); }
.iph__app .ph-approve { position: relative; translate: 0 calc((1 - var(--op)) * var(--fy, 70px)); }
.iph__app .ph-approve > :not(.ph-approve__comm) { opacity: clamp(0, calc(var(--op) * 2.2 - 0.8), 1); }
.iph__app .ph-approve__comm { opacity: var(--lcm); }
.clk { display: inline-grid; }
.clk i { grid-area: 1 / 1; font-style: normal; }
.clk i:first-child { opacity: calc(1 - var(--ap2)); }
.clk i:last-child { opacity: var(--ap2); }
.iph__bar { position: absolute; bottom: 8px; left: 50%; z-index: 5; width: 120px; height: 5px; margin-left: -60px; border-radius: 3px; background: rgba(24, 25, 28, 0.85); }
.ph-approve__label { position: relative; }
.ph-was { opacity: calc(1 - var(--ap2)); }
.ph-now { position: absolute; left: 0; top: 0; color: #0d7d50; opacity: var(--ap2); white-space: nowrap; }

/* кнопка: нажатие по-айосовски, без кругов. Зелёная плашка растёт из кнопки на всю ширину */
.ph-approve__act { position: relative; height: 38px; margin-top: 12px; }
.ph-approve__act .ph-approve__btns { position: absolute; inset: 0; margin: 0; display: flex; gap: 8px; }
.iph .ph-btn { position: relative; display: flex; align-items: center; justify-content: center; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; }
.iph .ph-btn--ok { border-color: transparent; opacity: calc(1 - var(--prs) * 0.22); transform: scale(calc(1 - var(--prs) * 0.03)); }
.iph .ph-btn--alt { opacity: calc(1 - var(--ap1)); }
.ph-btn__label { display: inline-block; opacity: calc(1 - var(--ap1)); transform: translateY(calc(var(--ap1) * -6px)); }
.ph-btn__spin {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  opacity: var(--sp);
  animation: phSpin 0.7s linear infinite paused;
}
.scene.is-spin .ph-btn__spin { animation-play-state: running; }
@keyframes phSpin { to { rotate: 360deg; } }
.ph-approve__done {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; background: #119a64;
  color: #fff; font-size: 0.82rem; font-weight: 600;
  opacity: clamp(0, calc(var(--ap2) * 4), 1);
  clip-path: inset(0 calc((1 - var(--ap2)) * (50% + 4px)) 0 0 round 10px);
  pointer-events: none;
}
.ph-approve__done > * { opacity: clamp(0, calc(var(--ap2) * 2 - 1), 1); }
.ph-approve__done svg { width: 16px; height: 16px; flex: none; }
.ph-tick { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--ap2) * 2 - 1, 1)); }

/* Dynamic Island: размер постоянный, меняется только видимая часть */
.iph__island {
  position: absolute; top: 11px; left: 50%; z-index: 6;
  width: 236px; height: 36px; margin-left: -118px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px; background: #000; color: #fff;
  clip-path: inset(calc((1 - var(--isl)) * 3.5px) calc((1 - var(--isl)) * 68px) round 18px);
}
.iph__isl-in { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; font-weight: 600; white-space: nowrap; opacity: clamp(0, calc(var(--isl) * 2.2 - 1.2), 1); }
.iph__isl-in svg { flex: none; width: 16px; height: 16px; color: #3fd27e; }

/* окно Станции в офисе: строка сметы стоит вровень с карточкой в телефоне */
.mob__win {
  position: absolute; left: 455px; top: 92px; z-index: 3;
  width: 440px;
  border-radius: 12px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(24, 25, 28, 0.08), 0 2px 6px rgba(24, 25, 28, 0.04), 0 24px 60px rgba(24, 25, 28, 0.14);
  opacity: var(--sw);
  transform: translateX(calc((1 - var(--sw)) * 48px));
}
.mob__win .win__bar { height: 40px; gap: 12px; padding: 0 12px; }
.mob__win .win__addr { transform: translateX(-36px); padding: 3px 14px; font-size: 0.72rem; }
.mob__win-body { padding: 16px 18px 16px; }
.mob__win-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 10px; }
.mob__win-head b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.mob__win-head span { font-size: 0.74rem; color: var(--gray); }
.mob__row {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 -10px; padding: 11px 10px;
  border-top: 1px solid var(--hairline); border-radius: 8px;
  font-size: 0.84rem;
}
.mob__row--live { background: rgba(17, 154, 100, calc(var(--fl) * 0.07)); }
.mob__st { padding: 3px 9px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); font-style: normal; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.mob__st--ok { background: rgba(17, 154, 100, 0.12); color: #0d7d50; }
.mob__st--wait { background: rgba(232, 160, 30, 0.16); color: #8a5a08; }
.mob__row--live .mob__st--wait { opacity: calc(1 - var(--fl)); }
.mob__row--live .mob__st--new { position: absolute; right: 10px; opacity: var(--fl); }
.mob__feed { display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--hairline); }
.mob__feed-row {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  margin: 0; font-size: 0.8rem; line-height: 1.4; color: var(--ink-2);
}
.mob__feed-row:nth-child(1) { opacity: var(--fd1); translate: 0 calc((1 - var(--fd1)) * 8px); }
.mob__feed-row:nth-child(2) { opacity: var(--fd2); translate: 0 calc((1 - var(--fd2)) * 8px); }
.mob__feed-row em { font-style: normal; font-size: 0.72rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.mob__feed-ic { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.mob__feed-ic svg { width: 13px; height: 13px; }
.mob__feed .ava { width: 22px; height: 22px; font-size: 0.6rem; }
.mob__shadow {
  position: absolute; left: 50%; top: 668px;
  width: 280px; height: 30px; margin-left: -140px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(24, 25, 28, 0.26), rgba(24, 25, 28, 0));
  opacity: calc(0.25 + var(--e1) * 0.75);
  transform: translateX(calc(var(--shift) * var(--shx))) scaleX(calc(0.8 + var(--e1) * 0.2));
}
.split--text { align-items: start; }

/* э.мобайл на телефоне: окно офиса выезжает поверх нижней части телефона */
@media (max-width: 699.98px) {
  .scene--mobile { --band-h: 30%; --shx: 0px; --shs: 0.14; }
  .scene--mobile .scene__fit { --dw: 360; --dh: 700; }
  .mob__win {
    left: 10px; right: 10px; top: 360px; width: auto; z-index: 6;
    box-shadow: 0 0 0 1px rgba(24, 25, 28, 0.08), 0 24px 54px rgba(24, 25, 28, 0.24);
    transform: translateY(calc((1 - var(--sw)) * 56px));
  }
  .mob__win .win__tab { display: none; }
  .mob__win .win__addr { transform: none; }
  .mob__win-body { padding: 14px 14px 12px; }
  .mob__row, .mob__win-head b { font-size: 0.94rem; }
  .mob__feed-row { font-size: 0.86rem; }
  .mob__shadow { opacity: calc((0.25 + var(--e1) * 0.75) * (1 - var(--shift))); }
}
@media (min-width: 700px) and (max-width: 999px) { .scene--mobile { --band-h: 30%; } }

/* ============================================================
   6. Сцена ноды 0: сверка кода, подпись пальцем, нода
   встаёт на телефон, профиль 9 мм, слои и защищённый чип.
   Без js показан чистый кадр устройства, при «уменьшить
   движение» js рисует разобранный вид с подписями.
   ============================================================ */
.scene--node {
  --scene-bg: var(--ink);
  --e0: 1; --on: 1; --flat: 0; --pop: 0; --popo: 0; --sh: 0; --mt: 1; --sign: 0; --done: 0;
  --ph: 0; --phy: 640; --pho: 0; --nx: 0; --ny: 0; --nz: 0;
  --rx: 20; --ry: 0; --rz: -12; --ex: 0;
  --ex0: 0; --ex1: 0; --ex2: 0; --ex3: 0; --ex4: 0; --ex5: 0; --ex6: 0;
  --lb0: 0; --lb1: 0; --lb2: 0; --lb3: 0; --lb4: 0; --lb5: 0; --lb6: 0;
  --dim: 0; --se: 0;
  --shx: 175px; --shy: 0px; --exx: 56px; --exs: 0.06; --phs: 0.25;
  border-top: 0;
}
.scene--node .scene__fit { --dw: 900; --dh: 640; }
.nd-world {
  position: absolute; inset: 0;
  perspective: 2300px; perspective-origin: 50% 25%;
  transform:
    translate(calc(var(--sh) * var(--shx) - var(--ex) * var(--exx)), calc(var(--sh) * var(--shy) + (1 - var(--e0)) * 70px))
    scale(calc(1 - var(--ph) * var(--phs) - var(--ex) * var(--exs)));
  transform-origin: 50% 52%;
}
/* тень на поверхности вместо свечения: сплющивается вместе с наклоном */
.nd-floor {
  position: absolute; left: 50%; top: calc(52% + 110px);
  width: 440px; height: 130px; margin-left: -220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0));
  opacity: calc((1 - var(--ph)) * 0.9 * var(--e0));
  transform: scaleY(calc(0.4 + var(--rx) / 58 * 0.45));
}
.nd {
  position: absolute; left: 50%; top: 52%;
  width: 300px; height: 300px; margin: -150px 0 0 -150px;
  transform-style: preserve-3d;
  transform: rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg)) rotateZ(calc(var(--rz) * 1deg)) translateZ(calc(var(--ex) * -210px));
}
.nd-body { position: absolute; inset: 0; transform-style: preserve-3d; transform: translate3d(calc(var(--nx) * 1px), calc(var(--ny) * 1px), calc(var(--nz) * 1px)); }
.nd__layer, .nd__edge i { position: absolute; inset: 0; border-radius: 64px; transform-style: preserve-3d; }
.nd__edge { position: absolute; inset: 0; transform-style: preserve-3d; }
.nd__edge i { background: linear-gradient(145deg, #5d6068, #2c2e33 45%, #62656d); opacity: clamp(0, calc(1 - var(--ex) * 2.5), 1); }
.nd__edge i:nth-child(1) { transform: translateZ(0px); }
.nd__edge i:nth-child(2) { transform: translateZ(4.6px); }
.nd__edge i:nth-child(3) { transform: translateZ(9.2px); }
.nd__edge i:nth-child(4) { transform: translateZ(13.8px); }
.nd__edge i:nth-child(5) { transform: translateZ(18.4px); }
.nd__edge i:nth-child(6) { transform: translateZ(23px); }
.nd__edge i:nth-child(7) { transform: translateZ(27.6px); }
.nd__edge i:nth-child(8) { transform: translateZ(32.2px); }
.nd__edge i:nth-child(9) { transform: translateZ(36.8px); }
.nd__edge i:nth-child(10) { transform: translateZ(41.4px); }
/* боковая стенка для вида в профиль: видна, только когда нода повёрнута ребром */
.nd__wall {
  position: absolute; left: 0; top: 0;
  width: 46px; height: 300px; margin-left: -23px;
  border-radius: 14px;
  background: linear-gradient(180deg, #686b73 0%, #3d3f45 22%, #303237 60%, #575a61 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(22.5px) rotateY(-90deg);
  opacity: clamp(0, calc((var(--ry) - 50) / 22 - var(--ex) * 4), 1);
}
.nd__back { transform: translateZ(-1px); background: linear-gradient(145deg, #25272d, #15161a); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.nd__back, .nd__mag, .nd__bat, .nd__sen, .nd__dsp { opacity: calc(clamp(0, var(--ex) * 3, 1) * (1 - var(--se) * 0.5)); }
.nd__pcb { opacity: clamp(0, var(--ex) * 3, 1); }
.nd__mag { inset: 4px; border-radius: 50%; transform: translateZ(calc(6px + var(--ex1) * 64px)); }
.nd__mag::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: repeating-conic-gradient(#a6abb5 0deg 19deg, #5c616b 19deg 22.5deg);
  -webkit-mask: radial-gradient(circle, transparent 0 39%, #000 39.5% 47.5%, transparent 48%);
  mask: radial-gradient(circle, transparent 0 39%, #000 39.5% 47.5%, transparent 48%);
}
.nd__bat {
  inset: 40px; border-radius: 26px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #d6d9df, #8f949d);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  transform: translateZ(calc(14px + var(--ex2) * 126px));
}
.nd__bat b { font: 500 15px var(--font-mono); letter-spacing: 0.04em; color: rgba(24, 25, 28, 0.55); }
/* плата матовая, с золотыми площадками; чип безопасности чёрный с гравировкой */
.nd__pcb {
  inset: 14px; border-radius: 52px;
  background: #141619;
  box-shadow: inset 0 0 0 1px rgba(184, 149, 90, 0.28);
  transform: translateZ(calc(24px + var(--ex3) * 186px));
}
.nd__pads {
  position: absolute; inset: 0; border-radius: inherit;
  background:
    linear-gradient(rgba(184, 149, 90, 0.6), rgba(184, 149, 90, 0.6)) 108px 84px / 60px 2px no-repeat,
    linear-gradient(rgba(184, 149, 90, 0.5), rgba(184, 149, 90, 0.5)) 108px 112px / 46px 2px no-repeat,
    linear-gradient(rgba(184, 149, 90, 0.5), rgba(184, 149, 90, 0.5)) 166px 150px / 2px 46px no-repeat,
    linear-gradient(rgba(184, 149, 90, 0.45), rgba(184, 149, 90, 0.45)) 96px 196px / 96px 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(184, 149, 90, 0.6) 0 4px, transparent 4px 9px) 70px 238px / 112px 6px no-repeat;
}
.nd__chip { position: absolute; border-radius: 4px; background: #0b0c0e; box-shadow: inset 0 0 0 1px #2a2c31; }
.nd__chip--soc { right: 46px; top: 64px; width: 78px; height: 78px; }
.nd__chip--rf { left: 64px; bottom: 54px; width: 110px; height: 28px; }
.nd__chip--se {
  left: 44px; top: 52px; width: 62px; height: 62px;
  display: flex; align-items: center; justify-content: center;
  outline: 1.5px solid rgba(61, 93, 245, var(--se)); outline-offset: 3px;
  transform: translateZ(calc(var(--se) * 3px));
}
.nd__chip--se b { font: 500 12px var(--font-mono); letter-spacing: 0.1em; color: #8a8d94; }
.nd__sen { transform: translateZ(calc(32px + var(--ex4) * 248px)); }
.nd__ring {
  position: absolute; left: 50%; top: 66%;
  width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; border: 3px solid #5a6ee8;
  background: radial-gradient(circle, #1a1d26 0 58%, transparent 59%);
}
.nd__dsp { transform: translateZ(calc(38px + var(--ex5) * 312px)); }
.nd__panel {
  position: absolute; left: 50%; top: 17%;
  width: 164px; height: 70px; margin-left: -82px;
  border-radius: 10px; background: #050608;
  box-shadow: inset 0 0 0 1px #2c3040;
}
.nd__panel::after { content: ''; position: absolute; left: 50%; bottom: -26px; width: 34px; height: 26px; margin-left: -17px; border-radius: 0 0 4px 4px; background: #b8955a; opacity: 0.55; }
.nd__top { transform: translateZ(calc(46px + var(--ex6) * 374px)); }
.nd__face {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background: radial-gradient(120% 90% at 28% 12%, #2d3039 0%, #131419 55%, #0b0c0f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: calc(1 - var(--ex6));
}
.nd__screen {
  position: absolute; left: 50%; top: 17%;
  width: 164px; height: 70px; margin-left: -82px;
  border-radius: 10px; background: #030405;
  box-shadow: inset 0 0 0 1px #262a36;
  overflow: hidden;
}
.nd__scr-code { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; opacity: calc(var(--on) * (1 - var(--done))); }
.nd__doc { margin: 0; font: 500 10.5px/1.2 var(--font-body); color: rgba(255, 255, 255, 0.52); white-space: nowrap; }
.nd-cd { display: inline-flex; gap: 0.08em; font: 500 16px var(--font-mono); letter-spacing: 0.08em; color: #6f7fb8; }
.nd-cd i { font-style: normal; }
/* пары символов загораются слева направо: глаз сверяет код */
.scene--node .nd-cd i:nth-of-type(1) { color: color-mix(in srgb, #fff calc(clamp(0, var(--mt) * 6, 1) * 100%), #6f7fb8); }
.scene--node .nd-cd i:nth-of-type(2) { color: color-mix(in srgb, #fff calc(clamp(0, var(--mt) * 6 - 1, 1) * 100%), #6f7fb8); }
.scene--node .nd-cd i:nth-of-type(3) { color: color-mix(in srgb, #fff calc(clamp(0, var(--mt) * 6 - 2, 1) * 100%), #6f7fb8); }
.scene--node .nd-cd i:nth-of-type(4) { color: color-mix(in srgb, #fff calc(clamp(0, var(--mt) * 6 - 3, 1) * 100%), #6f7fb8); }
.scene--node .nd-cd i:nth-of-type(5) { color: color-mix(in srgb, #fff calc(clamp(0, var(--mt) * 6 - 4, 1) * 100%), #6f7fb8); }
.scene--node .nd-cd i:nth-of-type(6) { color: color-mix(in srgb, #fff calc(clamp(0, var(--mt) * 6 - 5, 1) * 100%), #6f7fb8); }
.nd__signed {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--font-body); color: #3fd27e;
  opacity: var(--done);
}
.nd__signed svg { width: 18px; height: 18px; }
.nd__sensor { position: absolute; left: 50%; top: 66%; width: 100px; height: 100px; margin: -50px 0 0 -50px; }
.nd__sensor > svg:not(.nd__fp) { position: absolute; inset: 0; width: 100%; height: 100%; }
.nd__track { fill: #0e1015; stroke: rgba(255, 255, 255, 0.09); stroke-width: 3; }
.nd__prog {
  fill: none; stroke: color-mix(in srgb, #3fd27e calc(var(--done) * 100%), #5a6ee8); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--sign) * 100);
  transform: rotate(-90deg); transform-box: fill-box; transform-origin: center;
}
.nd__fp { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; color: rgba(169, 184, 255, 0.28); }
.nd__fp--lit { color: color-mix(in srgb, #3fd27e calc(var(--done) * 100%), #b7c5ff); }
.nd__fp--lit path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--sign)); }
.nd__pane {
  position: absolute; inset: 0; border-radius: inherit;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  opacity: calc(var(--ex6) * (1 - var(--se) * 0.5));
}

/* телефон, на обороте которого держится нода. Только корпус и магнитное кольцо, без марок */
.nd-ph { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: translate3d(0, calc(var(--phy) * 1px + 30px), -2px); }
.nd-ph > * { opacity: var(--pho); }
.nd-ph__back {
  position: absolute; left: -185px; top: -381px;
  width: 370px; height: 763px; border-radius: 56px;
  background: linear-gradient(160deg, #393a3f 0%, #2a2b2f 42%, #222326 100%);
  box-shadow: inset 0 0 0 2px #4b4d53, inset 0 0 0 3.5px #1b1c1f;
}
.nd-ph__cam {
  position: absolute; left: 22px; top: 22px;
  width: 92px; height: 160px; border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.nd-ph__cam i {
  position: absolute; left: 14px; width: 64px; height: 64px; border-radius: 50%;
  background: radial-gradient(circle, #08090b 0 36%, #1b1c20 38% 60%, #3a3c42 62% 68%, #212226 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.nd-ph__cam i:nth-child(1) { top: 12px; }
.nd-ph__cam i:nth-child(2) { top: 84px; }
.nd-ph__cam i:nth-child(3) { left: auto; right: -30px; top: 66px; width: 14px; height: 14px; background: #d9d4c4; opacity: 0.6; }
.nd-ph__ring {
  position: absolute; left: 185px; top: 351px;
  width: 232px; height: 232px; margin: -116px 0 0 -116px;
  border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.nd-ph__shade {
  position: absolute; left: 185px; top: 351px;
  width: 340px; height: 340px; margin: -170px 0 0 -170px;
  border-radius: 90px;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
  transform: translate(calc(var(--nx) * 1px + var(--nz) * 0.35px), calc(var(--ny) * 1px + var(--nz) * 0.5px)) scale(calc(1 + var(--nz) / 260));
  opacity: calc(1 - var(--nz) / 150);
}
.nd-ph__side {
  position: absolute; left: -185px; top: -381px;
  width: 40px; height: 763px; margin-left: -20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #5d6067 0%, #3e4046 7%, #33353a 50%, #3e4046 93%, #5d6067 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: translateZ(-20px) rotateY(-90deg);
}
.nd-ph > .nd-ph__side { opacity: calc(var(--pho) * clamp(0, (var(--ry) - 40) / 26, 1)); }
.nd-ph__side::before, .nd-ph__side::after { content: ''; position: absolute; left: 13px; width: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); }
.nd-ph__side::before { top: 180px; height: 60px; }
.nd-ph__side::after { top: 256px; height: 60px; }

/* подписи слоёв и размер: линии от детали к столбцу подписей, положение считает js */
.nd-lines { position: absolute; left: 0; top: 0; z-index: 4; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.nd-line { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--lbv, 0)); }
.nd-dimline { fill: none; stroke: rgba(255, 255, 255, 0.72); stroke-width: 1; opacity: var(--dim); }
.nd-tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.nd-tag {
  --tv: clamp(0, calc(var(--lbv, 0) * 2.5 - 1.5), 1);
  position: absolute; left: 0; top: 0; margin: 0;
  display: flex; flex-direction: column; gap: 2px;
  width: 230px;
  opacity: var(--tv);
  translate: calc((1 - var(--tv)) * 6px) 0;
}
.nd-line[data-l="6"], .nd-tag[data-l="6"] { --lbv: var(--lb0); }
.nd-line[data-l="5"], .nd-tag[data-l="5"] { --lbv: var(--lb1); }
.nd-line[data-l="4"], .nd-tag[data-l="4"] { --lbv: var(--lb2); }
.nd-line[data-l="3"], .nd-tag[data-l="3"] { --lbv: var(--lb3); }
.nd-line[data-l="2"], .nd-tag[data-l="2"] { --lbv: var(--lb4); }
.nd-line[data-l="1"], .nd-tag[data-l="1"] { --lbv: var(--lb5); }
.nd-line[data-l="0"], .nd-tag[data-l="0"] { --lbv: var(--lb6); }
.nd-tag b { font: 600 15px/1.25 var(--font-body); color: #fff; }
.nd-tag--se b { color: color-mix(in srgb, #a9b8ff calc(var(--se) * 100%), #fff); }
.nd-tag__s { font: 400 13px/1.3 var(--font-body); color: rgba(255, 255, 255, 0.55); }
.nd-tag__ls { display: none; }
.nd-dim {
  position: absolute; left: 0; top: 0; z-index: 4; margin: 0;
  font: 500 14px var(--font-mono); color: rgba(255, 255, 255, 0.9); white-space: nowrap;
  translate: -50% 0;
  opacity: var(--dim);
  pointer-events: none;
}

/* окно подписи на компьютере */
.nd-pop {
  position: absolute; left: 20px; top: 150px; z-index: 3;
  width: 350px;
  border-radius: 14px; overflow: hidden;
  background: var(--white); color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  opacity: calc(var(--pop) * (1 - var(--popo)));
  transform: translateX(calc((1 - var(--pop)) * -30px - var(--popo) * 30px));
}
.nd-pop__bar {
  display: flex; align-items: center; gap: 12px;
  margin: 0; padding: 10px 14px;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  font-size: 0.78rem; font-weight: 600; color: var(--ink-2);
}
.nd-pop__body { padding: 18px 18px 14px; }
.nd-pop__doc { display: flex; align-items: center; gap: 12px; margin: 0; }
.nd-pop__file { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); }
.nd-pop__file svg { width: 20px; height: 20px; }
.nd-pop__doc b { display: block; font-size: 0.92rem; font-weight: 600; }
.nd-pop__doc em { display: block; font-style: normal; font-size: 0.78rem; color: var(--gray); }
.nd-pop__label { margin: 16px 0 0; font-size: 0.74rem; color: var(--gray); }
.nd-pop__code { display: flex; align-items: center; justify-content: center; margin: 6px 0 0; padding: 11px 12px; border-radius: 10px; background: #0b0c0f; }
.nd-pop__code .nd-cd { font-size: 17px; }
.nd-pop__hash { margin: 8px 0 0; font: 400 10.5px/1.5 var(--font-mono); color: #9a9ca3; letter-spacing: 0.02em; word-break: break-all; }
.nd-pop__hash b { color: var(--ink); font-weight: 500; }
.nd-pop__state { display: grid; gap: 6px; margin-top: 12px; }
.nd-pop__row { position: relative; height: 24px; margin: 0; }
.nd-pop__row--2 { opacity: var(--mt); }
.nd-pop__s { position: absolute; inset: 0; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.nd-pop__s svg { flex-shrink: 0; width: 16px; height: 16px; }
.nd-pop__s--1 { color: var(--ink-2); opacity: calc(1 - var(--mt)); }
.nd-pop__s--2 { color: #119a64; opacity: var(--mt); }
.nd-pop__s--4 { color: var(--ink-2); opacity: calc(1 - var(--done)); }
.nd-pop__s--3 { color: #119a64; opacity: var(--done); }
.nd-pop__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }

@media (max-width: 999px) { .scene--node { --band-h: 34%; } }
@media (max-width: 699.98px) {
  .scene--node { --shx: 0px; --shy: 130px; --exx: 96px; --exs: 0.36; --phs: 0.4; }
  .scene--node .scene__fit { --dw: 440; --dh: 720; }
  .nd-pop { left: 30px; top: 0; width: 380px; }
  .nd-tag { width: 150px; }
  .nd-tag b { font-size: 16px; line-height: 1.2; }
  .nd-tag__s { display: none; }
  .nd-tag--se .nd-tag__l { display: none; }
  .nd-tag--se .nd-tag__ls { display: inline; }
}

/* ============================================================
   7. Раскрывающиеся строки на страницах продуктов.
   Номер вместо значка в рамке, подсказка в одну строку справа,
   в нескольких строках внутри живой кусочек интерфейса.
   ============================================================ */
.ftable { margin-top: 48px; border-top: 1px solid var(--hairline); }
/* строка таблицы: сетка номер / заголовок / подсказка / плюс. В style.css summary гибкий
   (flex), поэтому сетку включаем явно, иначе колонки не работают и текст в раскрытой
   строке не встаёт под заголовок (отступ списка 60 px = колонка номера 40 + промежуток 20) */
.ftable .feature-row > summary { display: grid; align-items: center; grid-template-columns: 40px minmax(0, 1fr) minmax(0, auto) 32px; gap: 20px; padding: 22px 0; }
.ftable .feature-row__toggle { margin-left: 0; justify-self: end; }
.ftable__idx { font: 500 0.8rem var(--font-mono); color: var(--gray); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.ftable .feature-row h3 { font-size: 1.2rem; text-wrap: balance; }
.ftable__hint {
  justify-self: end; max-width: 440px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 0.92rem; color: var(--gray); text-align: right;
  transition: opacity var(--dur-2, 320ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1));
}
.ftable .feature-row[open] .ftable__hint { opacity: 0; }
.ftable .feature-row[open] .feature-row__toggle { background: transparent; border-color: var(--ink); }
.ftable .feature-row[open] .feature-row__toggle::before, .ftable .feature-row[open] .feature-row__toggle::after { background: var(--ink); }
.ftable .feature-row__list { max-width: 760px; gap: 10px; padding: 0 52px 28px 60px; }
.ftable .feature-row__list li { padding-left: 18px; text-wrap: pretty; }
.ftable .feature-row__list li::before { left: 2px; top: 0.7em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-2); }
.ftable .feature-row__body--frag .feature-row__list { padding-bottom: 20px; }
@media (min-width: 900px) {
  .ftable .feature-row__body--frag { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding: 0 52px 30px 60px; }
  .ftable .feature-row__body--frag .feature-row__list { padding: 0; }
}
@media (max-width: 999px) {
  .ftable__hint { display: none; }
  .ftable .feature-row > summary { grid-template-columns: 40px minmax(0, 1fr) 32px; }
}
@media (max-width: 899px) {
  .ftable .frag { margin: 0 0 28px 60px; max-width: 340px; }
}
@media (max-width: 600px) {
  .ftable .feature-row > summary { grid-template-columns: 26px minmax(0, 1fr) 30px; gap: 12px; padding: 18px 0; }
  .ftable .feature-row h3 { font-size: 1.08rem; }
  .ftable .feature-row__list { padding: 0 0 22px 38px; }
  .ftable .frag { margin-left: 38px; }
}
/* тёмная полоса э.радио */
.ftable--dark { border-top-color: var(--hairline-dark); }
.ftable--dark .ftable__idx { color: rgba(255, 255, 255, 0.45); }
.ftable--dark .ftable__hint { color: rgba(255, 255, 255, 0.5); }
.ftable--dark .feature-row[open] .feature-row__toggle { background: transparent; border-color: #fff; }
.ftable--dark .feature-row[open] .feature-row__toggle::before, .ftable--dark .feature-row[open] .feature-row__toggle::after { background: #fff; }
.ftable--dark .feature-row__list li::before { background: rgba(255, 255, 255, 0.6); }

/* кусочки интерфейса внутри раскрытых строк */
.frag {
  align-self: start;
  padding: 16px; border-radius: 14px;
  background: var(--white); border: 1px solid var(--hairline);
  box-shadow: 0 18px 40px rgba(24, 25, 28, 0.07);
  font-size: 0.84rem; line-height: 1.4; color: var(--ink);
}
.frag p { margin: 0; }
.frag .frag__bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.76rem; font-weight: 600; color: var(--ink-2); }
.frag__bar em { margin-left: auto; font-style: normal; font-weight: 400; color: var(--gray); }
.frag__live { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #119a64); box-shadow: 0 0 0 3px rgba(17, 154, 100, 0.15); }
.frag__who { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.frag__who .ava { width: 38px; height: 38px; font-size: 0.8rem; }
.frag__who b { display: block; font-size: 1rem; font-weight: 600; }
.frag__who i { display: block; font-size: 0.78rem; color: var(--gray); }
.frag__kv { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.frag__kv i { font-size: 0.76rem; color: var(--gray); }
.frag .frag__btns { display: flex; gap: 8px; margin-top: 12px; }
.frag__btn { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 0.78rem; font-weight: 600; font-style: normal; color: var(--ink); white-space: nowrap; }
.frag__btns .frag__btn { flex: 1; }
.frag__btn--ok { background: var(--green, #119a64); border-color: transparent; color: #fff; }
.frag__msg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; }
.frag__msg .ava { width: 28px; height: 28px; font-size: 0.66rem; }
.frag__msg b { display: flex; gap: 8px; align-items: baseline; font-weight: 600; }
.frag__msg b i { font-weight: 400; font-size: 0.74rem; color: var(--gray); }
.frag__msg p > span { display: block; color: var(--ink-2); }
.frag__menu { list-style: none; margin: 0 0 0 38px; padding: 5px; border-radius: 10px; background: var(--white); border: 1px solid var(--hairline); box-shadow: 0 12px 26px rgba(24, 25, 28, 0.12); }
.frag__menu li { padding: 6px 10px; border-radius: 6px; font-size: 0.82rem; color: var(--ink-2); }
.frag__menu li.is-on { background: var(--blue); color: #fff; font-weight: 500; }
.frag__head { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.frag__head b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.frag__head em { font-style: normal; font-size: 0.76rem; color: var(--gray); }
.frag__dl { margin: 0; }
.frag__dl > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.frag__dl dt { font-size: 0.76rem; color: var(--gray); }
.frag__dl dd { display: flex; align-items: center; gap: 8px; margin: 0; }
.frag .frag__chip { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark); font-size: 0.76rem; font-weight: 500; }
.frag .frag__q { margin: 0 0 12px 36px; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: var(--paper-2); color: var(--ink); }
.frag__a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; }
.frag__a .ava { width: 26px; height: 26px; }
/* только текст ответа, аватар ИИ остаётся inline-flex и монограмма по центру */
.frag__a p > span { display: block; }
.frag__src { display: inline-flex; margin-top: 8px; padding: 3px 9px; border: 1px solid var(--hairline); border-radius: 999px; font-size: 0.74rem; color: var(--blue-dark); font-style: normal; }
.frag__file { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--hairline); }
.frag__file svg { flex: none; width: 22px; height: 22px; color: var(--blue); }
.frag__file b { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frag__vers { list-style: none; margin: 0; }
.frag__vers li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.frag__vers li:last-child { border-bottom: 0; padding-bottom: 0; }
.frag__v { font: 500 0.76rem var(--font-mono); color: var(--gray); }
.frag__by b { display: block; font-weight: 500; }
.frag__by i { display: block; font-size: 0.74rem; color: var(--gray); }
.frag__vers em { font-style: normal; font-size: 0.74rem; color: var(--gray); }
.frag__vers .is-cur .frag__v { color: var(--blue); }
.frag__vers .frag__btn { padding: 4px 10px; }

/* маленький телефон: браузер без приложения и приложение */
.frag--phone, .frag--node { padding: 0; background: none; border: 0; box-shadow: none; }
.mini-ph {
  width: 220px; height: 330px;
  display: flex; flex-direction: column;
  padding: 0; border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 0 0 6px #232428, 0 0 0 7px #55575d, 0 20px 40px rgba(24, 25, 28, 0.18);
  overflow: hidden;
}
.frag .mini-ph__url { margin: 14px 14px 0; padding: 5px 10px; border-radius: 8px; background: var(--paper-2); font-size: 0.68rem; color: var(--gray); text-align: center; }
.frag .mini-ph__h { margin: 14px 16px 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.frag .mini-ph--app .mini-ph__h { margin-top: 30px; }
.mini-ph__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 0 12px; }
.mini-ph__msg { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 0.76rem; }
.mini-ph__msg .ava { width: 22px; height: 22px; font-size: 0.56rem; }
.frag .mini-ph__note { margin-top: auto; margin-bottom: 10px; padding: 9px 10px; border-radius: 10px; background: var(--paper-2); font-size: 0.72rem; line-height: 1.35; color: var(--ink-2); }
.mini-ph__card { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px; border: 1px solid var(--hairline); border-radius: 12px; background: var(--white); font-size: 0.76rem; }
.mini-ph__card i { font-size: 0.66rem; font-weight: 600; color: var(--blue); }
.mini-ph__card span { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; }
.mini-ph__row { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px solid var(--hairline); font-size: 0.72rem; }
.mini-ph__row .ph-check { width: 14px; height: 14px; margin: 0; background-size: 9px; }
.mini-ph__tabs { display: flex; justify-content: space-around; padding: 9px 6px 18px; border-top: 1px solid var(--hairline); background: var(--white); font-size: 0.62rem; font-weight: 500; color: var(--gray); }
.mini-ph__tabs .is-on { color: var(--blue); }

/* маленькая нода: экран с тем, что подтверждаешь */
.mini-nd {
  position: relative;
  width: 200px; height: 200px; border-radius: 44px;
  background: radial-gradient(120% 90% at 28% 12%, #2d3039 0%, #131419 55%, #0b0c0f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 0 1px rgba(24, 25, 28, 0.2), 0 6px 0 -1px #3a3c42, 0 24px 40px rgba(24, 25, 28, 0.25);
}
.mini-nd__screen {
  position: absolute; left: 50%; top: 22px;
  width: 132px; height: 64px; margin-left: -66px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: 9px; background: #030405; box-shadow: inset 0 0 0 1px #262a36;
}
.mini-nd .nd-cd { color: #e8ebff; font-size: 14px; }
.mini-nd__line { font: 600 13px/1.2 var(--font-body); color: #fff; white-space: nowrap; }
.mini-nd__screen--pos { gap: 2px; }
.mini-nd__ring { position: absolute; left: 50%; top: 128px; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; border: 2.5px solid #5a6ee8; background: #0e1015; }

/* ============================================================
   8. Настройки Станции и «Что есть в приложении»: строки
   с примером, справа маленький элемент интерфейса
   ============================================================ */
.tune { list-style: none; margin: 0; border-top: 1px solid var(--hairline); }
.tune li { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.tune__text { margin: 0; min-width: 0; }
.tune__text b { display: block; font-weight: 600; font-size: 1.02rem; }
.tune__text span { display: block; margin-top: 3px; font-size: 0.9rem; line-height: 1.5; color: var(--gray); text-wrap: pretty; }
.tune__ui { flex: none; display: flex; align-items: center; gap: 6px; }
.tune__chip { padding: 4px 10px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--paper-2); font-size: 0.78rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.tune__off { font-size: 0.78rem; color: var(--gray); white-space: nowrap; }
.tune__to { position: relative; width: 14px; height: 1px; background: var(--gray); }
.tune__to::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--gray); border-right: 1px solid var(--gray); rotate: 45deg; }
.tune__field { display: inline-flex; align-items: center; gap: 22px; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 8px; background: var(--white); font-size: 0.8rem; color: var(--ink-2); }
.tune__caret { width: 7px; height: 7px; border-right: 1.5px solid var(--gray); border-bottom: 1.5px solid var(--gray); rotate: 45deg; translate: 0 -2px; }
.tune__code { padding: 5px 9px; border-radius: 7px; background: var(--ink); color: #e9ebf0; font: 500 0.78rem var(--font-mono); }
.tune--plain li { display: block; }
@media (max-width: 640px) { .tune__ui { display: none; } }

/* ============================================================
   9. Облако или свой сервер: одна таблица для сравнения
   ============================================================ */
.cmp { margin-top: 48px; }
.cmp__t { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.cmp__t th, .cmp__t td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.cmp__t thead th, .cmp__t thead td { padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.cmp__t thead th { font-weight: 400; }
.cmp__t thead th b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.012em; }
.cmp__t thead th span { display: block; max-width: 380px; margin-top: 6px; font-size: 0.9rem; line-height: 1.5; color: var(--gray); }
.cmp__t tbody th { width: 26%; font-size: 0.92rem; font-weight: 500; color: var(--gray); }
.cmp__t td { width: 37%; color: var(--ink); }
@media (max-width: 700px) {
  .cmp__t, .cmp__t thead, .cmp__t tbody, .cmp__t tr { display: block; }
  .cmp__t thead tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; border-bottom: 1px solid var(--ink); }
  .cmp__t thead th { border: 0; padding: 0 0 14px; }
  .cmp__t thead th b { font-size: 1.15rem; }
  .cmp__t thead th span { display: none; }
  .cmp__corner { display: none; }
  .cmp__t tbody tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hairline); }
  .cmp__t tbody th { grid-column: 1 / -1; width: auto; padding: 0 0 6px; border: 0; }
  .cmp__t td { width: auto; padding: 0; border: 0; font-size: 0.92rem; }
}

/* ============================================================
   10. Ссылка на соседний продукт: строка с маленьким
   изображением продукта и стрелкой
   ============================================================ */
.xlink {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 22px; align-items: center;
  margin-top: 48px; padding: 20px 0;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  color: var(--ink);
}
.xlink__text { font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; transition: color var(--dur-2, 320ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)); }
.xlink__go { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 600; color: var(--blue); white-space: nowrap; }
.xlink__go svg { width: 20px; height: 20px; transition: translate var(--dur-2, 320ms) var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)); }
.xlink:hover .xlink__text { color: var(--ink); }
.xlink:hover .xlink__go svg { translate: 4px 0; }
.xlink:focus-visible { outline-offset: 6px; }
.xlink__mini { position: relative; width: 56px; height: 56px; }
.xlink__mini i { position: absolute; display: block; }
.xlink__mini--node i {
  inset: 6px; border-radius: 13px;
  background: radial-gradient(120% 90% at 28% 12%, #2d3039 0%, #131419 60%);
  box-shadow: 0 0 0 1px rgba(24, 25, 28, 0.12), 0 3px 0 -1px #3a3c42, 0 10px 18px rgba(24, 25, 28, 0.2);
}
.xlink__mini--node i::before { content: ''; position: absolute; left: 50%; top: 8px; width: 24px; height: 9px; margin-left: -12px; border-radius: 2px; background: #030405; box-shadow: inset 0 0 0 1px #2c3040; }
.xlink__mini--node i::after { content: ''; position: absolute; left: 50%; top: 23px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 1.5px solid #5a6ee8; }
.xlink__mini--phone i { left: 15px; top: 2px; width: 26px; height: 52px; border-radius: 8px; border: 2px solid var(--ink); background: var(--white); }
.xlink__mini--phone i::before { content: ''; position: absolute; left: 50%; top: 3px; width: 8px; height: 3px; margin-left: -4px; border-radius: 2px; background: var(--ink); }
.xlink__mini--phone i::after { content: ''; position: absolute; left: 4px; right: 4px; top: 12px; height: 10px; border-radius: 2px; background: var(--blue-soft); }
.xlink__mini--pos i { left: 4px; top: 6px; width: 48px; height: 32px; border-radius: 4px; background: #2a2b2f; box-shadow: inset 0 0 0 3px #3a3c41; }
.xlink__mini--pos i::before { content: ''; position: absolute; inset: 6px; border-radius: 2px; background: var(--paper); }
.xlink__mini--pos i::after { content: ''; position: absolute; left: 50%; top: 32px; width: 18px; height: 14px; margin-left: -9px; border-radius: 0 0 3px 3px; background: linear-gradient(#3a3c41, #2a2b2f); }
@media (max-width: 700px) {
  .xlink { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .xlink__go { grid-column: 2; }
  .xlink__mini { width: 44px; height: 44px; transform: scale(0.8); transform-origin: 0 50%; }
  .xlink__text { font-size: 0.96rem; }
}

/* ============================================================
   11. Чертёж ноды 0 как лист: рамка, выноски, основная надпись.
   Контуры прорисовываются, когда лист появляется на экране.
   ============================================================ */
.dsheet { padding: 20px; }
.dsheet .dw-frame { fill: none; stroke: var(--ink); stroke-width: 0.8; opacity: 0.45; }
.dsheet .dw-mic { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.dsheet .dw-dim path { fill: none; stroke: var(--gray); stroke-width: 0.8; }
.dsheet .dw-dim .dw-dimline { stroke: var(--ink-2); }
.dsheet .dw-dim .dw-tick { stroke: var(--ink-2); stroke-width: 1.1; }
.dsheet .dw-lead path { fill: none; stroke: var(--ink-2); stroke-width: 0.8; }
.dsheet .dw-lead circle { fill: var(--ink); }
.dsheet .dw-num circle { fill: var(--white); stroke: var(--ink); stroke-width: 1; }
.dsheet .dw-num text { fill: var(--ink); font: 600 12px var(--font-body); text-anchor: middle; }
.dsheet .dw-stamp__lines { fill: none; stroke: var(--ink); stroke-width: 0.6; }
.dsheet .dw-stamp text { font: 400 12px var(--font-body); fill: var(--ink-2); }
.dsheet .dw-stamp .dw-stamp__name { font: 600 17px var(--font-display); fill: var(--ink); }
.dsheet .dw-stamp .dw-stamp__org { fill: var(--gray); }
.drawing-section .drawing__legend li::before { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
html.js .dsheet.reveal .dw-draw {
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  transition: stroke-dashoffset 1.2s var(--ease-in-out, cubic-bezier(0.65, 0, 0.35, 1)), fill-opacity 0.6s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.9s;
}
html.js .dsheet.reveal .dw-view--2 .dw-draw { transition-delay: 0.12s, 1s; }
html.js .dsheet.reveal .dw-view--3 .dw-draw { transition-delay: 0.24s, 1.1s; }
html.js .dsheet.reveal .dw-view--4 .dw-draw { transition-delay: 0.36s, 1.2s; }
html.js .dsheet.reveal.is-visible .dw-draw { stroke-dashoffset: 0; fill-opacity: 1; }
html.js .dsheet.reveal :is(.dw-dim, .dw-dimtext, .dw-lead, .dw-num, .dw-label, .dw-stamp, .dw-hidden, .dw-part, .dw-line:not(.dw-draw), .dw-fine, .dw-mic, .dw-screen, .dw-code) {
  opacity: 0;
  transition: opacity 0.6s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 1.1s;
}
html.js .dsheet.reveal :is(.dw-lead, .dw-num, .dw-stamp) { transition-delay: 1.4s; }
html.js .dsheet.reveal.is-visible :is(.dw-dim, .dw-dimtext, .dw-lead, .dw-num, .dw-label, .dw-stamp, .dw-hidden, .dw-part, .dw-line:not(.dw-draw), .dw-fine, .dw-mic, .dw-screen, .dw-code) { opacity: 1; }
/* на телефоне лист не ужимается до нечитаемого, его можно прокрутить вбок */
@media (max-width: 600px) {
  .dsheet { overflow-x: auto; overscroll-behavior-x: contain; }
  .dsheet svg { min-width: 600px; }
}

/* ============================================================
   12. э.радио: линейная схема вместо значков в рамках
   и сообщение, дошедшее без сети
   ============================================================ */
.rband {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px; align-items: center;
  margin-top: 56px; padding: 40px 0;
  border-top: 1px solid var(--hairline-dark); border-bottom: 1px solid var(--hairline-dark);
}
.rdg { list-style: none; margin: 0; display: flex; align-items: flex-start; }
.rdg__item { flex: none; width: 132px; text-align: center; }
.rdg__art { display: block; width: 96px; height: 72px; margin: 0 auto 12px; overflow: visible; fill: none; stroke: rgba(255, 255, 255, 0.82); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.rdg__art .rdg__floor { stroke: rgba(255, 255, 255, 0.2); }
.rdg__name { margin: 0; font-size: 0.9rem; line-height: 1.4; color: rgba(255, 255, 255, 0.75); }
.rdg__link { position: relative; flex: 1; height: 1px; min-width: 40px; margin-top: 44px; background: rgba(255, 255, 255, 0.35); }
.rdg__link::before, .rdg__link::after { content: ''; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); }
.rdg__link::before { left: -2px; }
.rdg__link::after { right: -2px; }
.rdg__link span { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; font: 400 0.74rem var(--font-mono); color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.rchat { padding: 16px; border-radius: 16px; background: #1d1f24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); color: #fff; font-size: 0.86rem; line-height: 1.45; }
.rchat p { margin: 0; }
.rchat .rchat__bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); font-variant-numeric: tabular-nums; }
.rchat__off { padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.78); }
.rchat .rchat__ch { margin-bottom: 10px; font-weight: 600; }
.rchat .chat__hash { color: rgba(255, 255, 255, 0.45); }
.rchat__msg { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.rchat__msg .ava { width: 30px; height: 30px; font-size: 0.7rem; }
.rchat__msg b { display: block; font-weight: 600; }
.rchat__msg p > span { color: rgba(255, 255, 255, 0.8); }
.rchat .rchat__via { display: flex; align-items: center; gap: 8px; margin: 12px 0 0 40px; font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); }
.rchat__via svg { flex: none; width: 22px; height: 14px; color: #3fd27e; }
.rchat__t1, .rchat__t2 { stroke-dasharray: 1; }
html.js .rchat.reveal .rchat__t1, html.js .rchat.reveal .rchat__t2 { stroke-dashoffset: 1; transition: stroke-dashoffset 0.45s var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) 0.9s; }
html.js .rchat.reveal .rchat__t2 { transition-delay: 1.25s; }
html.js .rchat.reveal.is-visible .rchat__t1, html.js .rchat.reveal.is-visible .rchat__t2 { stroke-dashoffset: 0; }
.radio-band .ftable { margin-top: 40px; }
@media (max-width: 999px) { .rband { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 640px) {
  .rdg { flex-direction: column; align-items: center; }
  .rdg__link { flex: none; width: 1px; height: 52px; min-width: 0; margin: 6px 0; }
  .rdg__link::before { left: -2px; top: -2px; }
  .rdg__link::after { left: -2px; right: auto; top: auto; bottom: -2px; }
  .rdg__link span { left: 14px; bottom: 50%; translate: 0 50%; }
}

/* ============================================================
   13. Характеристики ноды 0 по группам
   ============================================================ */
.specs { margin-top: 48px; border-top: 1px solid var(--hairline); }
.specs__group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--hairline); }
.specs__h { margin: 0; padding-top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.specs__dl { margin: 0; }
.specs .spec-row { grid-template-columns: minmax(140px, 1fr) 2fr; gap: 24px; padding: 12px 0; align-items: baseline; }
.specs .spec-row:last-child { border-bottom: 0; }
.specs .spec-row dd { font-size: 1rem; text-wrap: pretty; }
.specs__num { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
@media (max-width: 800px) { .specs__group { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
@media (max-width: 600px) { .specs .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
