/* =============================================================
   EmplyFlow — Case Story · Bento layer
   Надстройка над emplyflow-case-story.css: бенто-плитки,
   3D-сцена героя (каскад целей + кольцо 360°),
   явные сравнения «было → стало».
   Токены наследуют design-system/colors_and_type.css.
   ============================================================= */

:root {
  --ink: #050230;
  --t-mint: #d5fff3;
  --t-peri: #cec8ff;
  --t-fog: #d9d6ff;
  --t-candy: #ffb8e2;
  --t-mac: #ffb777;
  --t-ribbon: #4a3bff;
}

/* ===================== АКЦЕНТЫ В ЗАГОЛОВКАХ ==================== */

.h-display em,
.h-chapter em,
.h-scene em,
.tile__title em {
  font-style: normal;
}

.h-display em,
.h-chapter em,
.h-scene em {
  color: var(--mint-text);
}

.h-display em.is-pink,
.h-chapter em.is-pink,
.h-scene em.is-pink,
.tile__title em.is-pink {
  color: var(--pink);
}

/* ========================= БЕНТО-СЕТКА ========================= */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.bento > * { grid-column: span 2; }
.b-3 { grid-column: span 3; }
.b-4 { grid-column: span 4; }
.b-6 { grid-column: 1 / -1; }
.b-tall { grid-row: span 2; }

.tile {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(20px, 2.2vw, 30px);
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  overflow: hidden;
  transition: transform var(--t-base, 240ms) var(--ease), box-shadow var(--t-base, 240ms) var(--ease);
}

.tile--mint,
.tile--peri,
.tile--fog,
.tile--candy,
.tile--mac {
  border-color: transparent;
  color: var(--ink);
  --fg1: var(--ink);
  --fg2: rgba(5, 2, 48, 0.72);
  --fg3: rgba(5, 2, 48, 0.56);
  --stroke: rgba(5, 2, 48, 0.16);
  --stroke-2: rgba(5, 2, 48, 0.28);
  --glass: rgba(255, 255, 255, 0.42);
}

.tile--mint { background: var(--t-mint); }
.tile--peri { background: var(--t-peri); }
.tile--fog { background: var(--t-fog); }
.tile--candy { background: var(--t-candy); }
.tile--mac { background: var(--t-mac); }

.tile--ribbon {
  background: var(--t-ribbon);
  border-color: transparent;
  color: #fff;
  --fg1: #fff;
  --fg2: rgba(255, 255, 255, 0.82);
  --fg3: rgba(255, 255, 255, 0.66);
  --stroke: rgba(255, 255, 255, 0.24);
  --stroke-2: rgba(255, 255, 255, 0.4);
  --glass: rgba(255, 255, 255, 0.14);
}

.tile--glass {
  background: rgba(217, 214, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.tile--dashed {
  background: transparent;
  border: 2px dashed rgba(255, 184, 226, 0.55);
}

.tile > p,
.tile > h3,
.tile__copy > p,
.tile__copy > h3 { margin: 0; }

.tile__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg3);
}

.tile__value {
  margin: 0;
  font-size: clamp(32px, 3.6vw, 54px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Плитка «Периметр оценки»: подпись под числом */
.tile--peri .tile__value + .tile__label {
  margin-top: 2px;
  font-weight: 700;
  color: var(--fg1);
}

.tile__title {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.tile__text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--fg2); }
.tile__label { font-size: 14.5px; line-height: 1.45; color: var(--fg2); }

.tile__foot {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--stroke);
  font-size: 13px;
  color: var(--fg3);
}

/* искра в углу плитки */
.tile__spark {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  opacity: 0.9;
  pointer-events: none;
}
.tile--ribbon .tile__spark { color: var(--pink); }

/* широкая плитка: 3D-объект слева, текст справа */
.tile--wide { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); align-items: center; gap: clamp(18px, 3vw, 40px); }
.tile--wide .result__num--growth { margin: 0; }
.tile--wide .tile__copy { display: grid; gap: 10px; }

@media (max-width: 720px) {
  .tile--wide { grid-template-columns: minmax(0, 1fr); }
}

/* появление плитки при скролле */
.tile[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.tile[data-reveal].is-in { opacity: 1; transform: none; }

/* виджеты, унаследованные из story-слоя: анимации были привязаны к .result */
.tile .talent { margin: 0; }
.tile .timeline-compress { margin-top: 4px; }

.tile.is-in .talent__grid span { transform: none; opacity: 1; }
.tile.is-in .timeline-compress .now-bar { width: 22%; }
.tile.is-in .growth-stack__step--1 { opacity: 1; transform: none; transition-delay: 0.05s; }
.tile.is-in .growth-stack__step--2 { opacity: 1; transform: none; transition-delay: 0.16s; }
.tile.is-in .growth-stack__step--3 { opacity: 1; transform: none; transition-delay: 0.27s; }
.tile.is-in .growth-stack__step--4 { opacity: 1; transform: none; transition-delay: 0.38s; }
.tile.is-in .growth-stack__sparkle {
  opacity: 1;
  transform: none;
  transition-delay: 0.52s;
  animation: growthSparkle 5.5s ease-in-out infinite;
  animation-delay: 0.9s;
}
.tile.is-in .growth-stack {
  animation: growthFloat 6.5s ease-in-out infinite;
  animation-delay: 0.7s;
}

.tile--link { cursor: pointer; }
.tile--link:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -20px rgba(5, 2, 48, 0.55); }

/* ================== ЯВНОЕ СРАВНЕНИЕ БЫЛО / СТАЛО ================ */

.vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.vs--stack { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.vs--stack .vs__arrow { justify-self: center; min-width: 44px; padding: 6px 12px; }

.tile--ribbon .vs__side--was { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.08); }
.tile--ribbon .vs__side--now { border-color: rgba(213, 255, 243, 0.6); background: rgba(213, 255, 243, 0.16); }
.tile--ribbon .vs__arrow { background: rgba(255, 255, 255, 0.16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }

.vs__side {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--stroke);
  background: rgba(217, 214, 255, 0.04);
}

.vs__side--was {
  border-color: rgba(217, 214, 255, 0.14);
  background: rgba(217, 214, 255, 0.03);
}

.vs__side--now {
  border-color: rgba(213, 255, 243, 0.34);
  background: rgba(213, 255, 243, 0.07);
}

.vs__tag {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg3);
}
.vs__side--now .vs__tag { color: var(--mint); }

.vs__value {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.vs__side--was .vs__value { color: var(--fg3); }
.vs__side--now .vs__value { color: var(--fg1); }

.vs__note { font-size: 13.5px; line-height: 1.5; color: var(--fg2); }

.vs__arrow {
  align-self: center;
  display: grid;
  place-items: center;
  gap: 4px;
  min-width: 76px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(74, 59, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(122, 110, 255, 0.34);
}
.vs__arrow b {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mint);
  white-space: nowrap;
}
.vs__arrow span {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* таблица сравнений: метка · было · стало */
.vsgrid { display: grid; gap: 10px; margin-top: 4px; }

.vsgrid__row {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) minmax(0, 1fr) 28px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--stroke);
}
.vsgrid__row:first-child { border-top: 0; }

.vsgrid__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.vsgrid__was { font-size: 15px; line-height: 1.4; color: var(--fg3); }

.vsgrid__sign {
  justify-self: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--pink);
}

.vsgrid__now {
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  color: var(--fg1);
}
.vsgrid__now::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--mint);
  vertical-align: 1px;
}

@media (max-width: 720px) {
  .vsgrid__row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .vsgrid__sign { justify-self: start; transform: rotate(90deg); }
}

/* компактная линейка сравнения внутри плитки */
.vsbar { display: grid; gap: 10px; }

.vsbar__row { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 12px; }

.vsbar__tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.vsbar__rail {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(217, 214, 255, 0.12);
  overflow: hidden;
}
.vsbar__rail i {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--val, 0%);
  border-radius: 999px;
  background: rgba(217, 214, 255, 0.34);
  transition: width 0.9s var(--ease);
}
.vsbar__row--now .vsbar__rail i {
  background: linear-gradient(90deg, var(--indigo), var(--mint));
}

.vsbar__num {
  min-width: 68px;
  text-align: right;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--fg3);
}
.vsbar__row--now .vsbar__num { color: var(--fg1); }

.vsbar__delta {
  justify-self: start;
  margin-top: 2px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(213, 255, 243, 0.12);
  box-shadow: inset 0 0 0 1px rgba(213, 255, 243, 0.3);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--mint);
}

/* ===================== HERO · 3D-СЦЕНА ========================= */

.hero--3d { min-height: auto; padding: clamp(116px, 17vh, 180px) 0 clamp(48px, 7vh, 84px); }

.hero--3d .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
}

.hero__copy { display: grid; gap: clamp(18px, 2.4vw, 28px); align-content: center; }

/* в две колонки дисплейный кегль тише, чем в полноэкранном герое */
.hero--3d .hero__title { font-size: clamp(34px, 4.4vw, 68px); line-height: 0.98; }
.hero--3d .hero__sub { max-width: 52ch; }

.hero__aurora {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 44% at 8% 6%, rgba(74, 59, 255, 0.4), transparent 64%),
    radial-gradient(48% 40% at 96% 22%, rgba(255, 184, 226, 0.2), transparent 62%),
    radial-gradient(60% 50% at 70% 96%, rgba(213, 255, 243, 0.12), transparent 66%);
}

.hero3d {
  position: relative;
  min-height: clamp(420px, 50vw, 600px);
  perspective: 1500px;
  perspective-origin: 52% 46%;
  --px: 0;
  --py: 0;
}

.hero3d__stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform:
    rotateX(calc(4deg + var(--py) * -5deg))
    rotateY(calc(-14deg + var(--px) * 8deg));
  transition: transform 0.5s var(--ease);
}

.hero3d__floor {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 6%;
  height: 46%;
  transform: rotateX(74deg) translateZ(-70px);
  background: radial-gradient(50% 60% at 50% 40%, rgba(74, 59, 255, 0.3), transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

/* ---------- каскад целей ---------- */

.cascade {
  position: absolute;
  left: 0;
  top: 0;
  width: 64%;
  transform-style: preserve-3d;
}

.cascade__links {
  position: absolute;
  inset: -4% -6% -4% -2%;
  width: 112%;
  height: 108%;
  overflow: visible;
  pointer-events: none;
}

.cascade__link {
  fill: none;
  stroke: rgba(206, 200, 255, 0.36);
  stroke-width: 1.4;
}
.cascade__link--dashed {
  stroke: rgba(255, 184, 226, 0.6);
  stroke-dasharray: 5 6;
  stroke-linecap: round;
}

.cascade__dot {
  filter: drop-shadow(0 0 6px rgba(213, 255, 243, 0.9));
}

.hero3d.is-paused .plate,
.hero3d.is-paused .orbit__ring,
.hero3d.is-paused .orbit__chip {
  animation-play-state: paused;
}

.cascade__tier {
  position: relative;
  display: grid;
  gap: 10px;
  transform-style: preserve-3d;
  margin-bottom: clamp(20px, 3vw, 34px);
}

.cascade__tier--dept { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cascade__tier--team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.cascade__tier--dept .plate,
.cascade__tier--team .plate { padding: 9px 9px; }

.cascade__tier--dept .plate b,
.cascade__tier--team .plate b { font-size: clamp(9.5px, 0.74vw, 11px); }

.plate {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.22), rgba(217, 214, 255, 0.05) 42%, rgba(74, 59, 255, 0.16));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 0 0 1px rgba(217, 214, 255, 0.2),
    0 18px 40px -22px rgba(5, 2, 48, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(var(--z, 0px));
  animation: ef-plate-float 7s var(--ease-soft, ease-in-out) infinite alternate;
  animation-delay: var(--d, 0s);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 34%, rgba(255, 255, 255, 0.3) 48%, transparent 62%);
  opacity: 0.5;
  pointer-events: none;
}

@keyframes ef-plate-float {
  from { transform: translateZ(var(--z, 0px)) translateY(0); }
  to { transform: translateZ(var(--z, 0px)) translateY(-7px); }
}

/* подписи переносятся внутри плитки: длинные названия департаментов
   не должны выходить за её границы ни на одной ширине */
.plate b {
  min-width: 0;
  font-size: clamp(9.5px, 0.82vw, 12px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.plate span {
  min-width: 0;
  font-size: clamp(8px, 0.62vw, 9.5px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg3);
  overflow-wrap: anywhere;
}

.plate--ceo {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.3), rgba(74, 59, 255, 0.6) 60%, rgba(58, 44, 240, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(160, 150, 255, 0.5),
    0 26px 60px -26px rgba(74, 59, 255, 0.9);
}
.plate--ceo span { color: rgba(255, 255, 255, 0.76); }

.plate--locked { opacity: 0.62; }
.plate--locked b { color: var(--fg2); }

.plate__state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint);
}
.plate--locked .plate__state { color: var(--fg3); }

/* ---------- кольцо оценки 360° ---------- */

.orbit {
  position: absolute;
  right: 8%;
  bottom: 4%;
  width: clamp(200px, 23vw, 250px);
  height: clamp(200px, 23vw, 250px);
  transform-style: preserve-3d;
  transform: translateZ(90px);
}

.orbit__halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 184, 226, 0.22), transparent 68%);
  pointer-events: none;
}

.orbit {
  --tilt: 58deg;
  --r: clamp(100px, 11.5vw, 128px);
}

.orbit__disc {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  transform: rotateX(var(--tilt));
  border: 1px dashed rgba(255, 184, 226, 0.4);
  box-shadow: 0 0 60px -10px rgba(255, 184, 226, 0.35);
}

.orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max-content;
  max-width: 46%;
  transform: translate(-50%, -50%) translateZ(30px);
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 12px 10px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.24), rgba(74, 59, 255, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 0 0 1px rgba(217, 214, 255, 0.24),
    0 24px 50px -24px rgba(5, 2, 48, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}

/* портреты в полный рост: кадрируем по верхней трети, иначе в круге
   диаметром 30–36px оказывается фон, а не лицо */
.orbit__core img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 14%;
  box-shadow: 0 0 0 2px rgba(213, 255, 243, 0.6);
}

.orbit__core b {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mint);
}

.orbit__core span {
  font-size: 9px;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg3);
}

/* Кольцо наклонено в диск: профили проходят под и над карточкой,
   поэтому центр композиции остаётся читаемым. */
.orbit__ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: ef-orbit-spin 26s linear infinite;
}

@keyframes ef-orbit-spin {
  from { transform: rotateX(var(--tilt)) rotateY(0deg); }
  to { transform: rotateX(var(--tilt)) rotateY(360deg); }
}

.orbit__slot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateY(var(--a)) translateZ(var(--r));
}

/* чип-профиль: аватар сверху, роль подписью — компактно, чтобы кольцо не наезжало на ядро */
.orbit__chip {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 84px;
  padding: 8px 7px;
  border-radius: 18px;
  text-align: center;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.26), rgba(217, 214, 255, 0.08));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 0 0 1px rgba(217, 214, 255, 0.22),
    0 14px 30px -18px rgba(5, 2, 48, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: rotateY(calc(-1 * var(--a))) rotateX(calc(-1 * var(--tilt)));
  rotate: y 0deg;
  animation: ef-orbit-face 26s linear infinite;
}

@keyframes ef-orbit-face {
  from { rotate: y 0deg; }
  to { rotate: y -360deg; }
}

.orbit__chip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 14%;
  box-shadow: 0 0 0 1.5px rgba(255, 184, 226, 0.5);
}

.orbit__chip i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(74, 59, 255, 0.52);
  box-shadow: 0 0 0 1.5px rgba(213, 255, 243, 0.5);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  color: #fff;
}

.orbit__chip span {
  max-width: 100%;
  font-size: 8.5px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  color: var(--fg2);
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* легенда под сценой */
.hero3d__legend {
  position: absolute;
  left: 0;
  bottom: -22px;
  max-width: 58%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg3);
}
.hero3d__legend b { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.hero3d__legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hero3d__legend b:nth-child(1) { color: var(--peri); }
.hero3d__legend b:nth-child(2) { color: var(--mint); }
.hero3d__legend b:nth-child(3) { color: var(--pink); }

/* hero-факты как мини-бенто */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero__fact {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(217, 214, 255, 0.05);
}
.hero__fact b {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero__fact span { font-size: 12.5px; line-height: 1.4; color: var(--fg3); }
.hero__fact--pink b { color: var(--pink); }
.hero__fact--mint b { color: var(--mint); }

/* ========================= АДАПТИВ ============================= */

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .b-3, .b-4 { grid-column: span 2; }
  .b-6 { grid-column: 1 / -1; }
}

/* Планшеты и телефоны: текст сверху, схема в бенто-карточке, CTA под ней */
@media (max-width: 1100px) {
  .hero--3d {
    min-height: auto;
    padding-bottom: clamp(40px, 6vh, 64px);
  }

  .hero--3d .hero__copy { display: contents; }

  .hero--3d .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "eyebrow"
      "title"
      "sub"
      "facts"
      "viz"
      "chips"
      "cta";
    gap: clamp(14px, 2.4vw, 22px);
    align-items: stretch;
  }

  .hero--3d .hero__copy > .eyebrow { grid-area: eyebrow; }
  .hero--3d .hero__title { grid-area: title; }
  .hero--3d .hero__sub { grid-area: sub; max-width: none; }
  .hero--3d .hero__facts { grid-area: facts; }
  .hero--3d .hero__chips { grid-area: chips; }
  .hero--3d .hero__cta { grid-area: cta; }

  /* Бенто-карточка: каскад сверху, кольцо 360° снизу — без наложения на CTA */
  .hero--3d .hero3d {
    grid-area: viz;
    order: unset;
    position: relative;
    min-height: 0;
    height: clamp(340px, 72vw, 400px);
    max-height: min(76svh, 420px);
    margin: 2px 0 4px;
    perspective: none;
    border-radius: 28px;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background:
      linear-gradient(155deg, rgba(217, 214, 255, 0.1), rgba(217, 214, 255, 0.03)),
      rgba(5, 2, 48, 0.42);
    box-shadow:
      inset 0 0 0 1px rgba(217, 214, 255, 0.16),
      0 28px 64px -36px rgba(5, 2, 48, 0.95);
  }

  .hero--3d .hero3d__floor { display: none; }

  .hero--3d .hero3d__stage {
    position: relative;
    inset: auto;
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    display: grid;
    grid-template-rows: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(14px, 3.5vw, 20px);
    padding: 14px 12px 6px;
    transform: none !important;
    transition: none;
  }

  .hero--3d .cascade {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    min-height: 0;
    transform: none;
  }

  .hero--3d .cascade__links {
    inset: -2% -4% -2% -2%;
    width: 106%;
    height: 104%;
  }

  .hero--3d .cascade__tier {
    margin-bottom: clamp(8px, 1.8vw, 12px);
    gap: 6px;
  }

  .hero--3d .cascade__tier--team {
    margin-bottom: 2px;
  }

  .hero--3d .cascade__tier--ceo .plate { padding: 10px 12px; }

  .hero--3d .plate {
    transform: none !important;
    animation: none !important;
  }

  .hero--3d .orbit {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: clamp(4px, 1.2vw, 8px) auto 0;
    transform: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
    align-content: center;
    overflow: visible;
    border-radius: 0;
  }

  /* Плоская сетка вместо 3D-кольца — на узком экране чипы не наезжают */
  .hero--3d .orbit__disc,
  .hero--3d .orbit__halo {
    display: none;
  }

  .hero--3d .orbit__core {
    position: relative;
    left: auto;
    top: auto;
    max-width: none;
    width: auto;
    padding: 8px 12px;
    transform: none;
    justify-self: center;
    grid-row: 1;
  }

  .hero--3d .orbit__ring {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px 4px;
    align-content: center;
    width: 100%;
    height: auto;
    animation: none !important;
    transform: none !important;
  }

  .hero--3d .orbit__slot {
    position: relative;
    left: auto;
    top: auto;
    transform: none !important;
  }

  .hero--3d .orbit__slot:nth-child(1) { grid-column: 1 / span 2; }
  .hero--3d .orbit__slot:nth-child(2) { grid-column: 3 / span 2; }
  .hero--3d .orbit__slot:nth-child(3) { grid-column: 5 / span 2; }
  .hero--3d .orbit__slot:nth-child(4) { grid-column: 2 / span 2; }
  .hero--3d .orbit__slot:nth-child(5) { grid-column: 4 / span 2; }

  .hero--3d .orbit__chip {
    width: 100%;
    max-width: none;
    padding: 6px 4px;
    transform: none !important;
    animation: none !important;
    rotate: none;
  }

  .hero--3d .orbit__chip img,
  .hero--3d .orbit__chip i {
    width: 26px;
    height: 26px;
  }

  .hero--3d .orbit__chip span {
    font-size: 7px;
    line-height: 1.2;
  }

  .hero--3d .orbit__core b { font-size: 15px; }

  .hero--3d .hero3d__legend {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex-shrink: 0;
    margin: 0;
    padding: 4px 12px 10px;
    max-width: none;
    justify-content: center;
    gap: 10px 14px;
    font-size: 9px;
    pointer-events: none;
  }

  .vs { grid-template-columns: 1fr; }
  .vs__arrow { justify-self: start; }
}

@media (max-width: 900px) {
  .hero--3d .hero__title { font-size: clamp(30px, 7.8vw, 44px); }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento > *, .b-3, .b-4, .b-6 { grid-column: 1 / -1; }
  .b-tall { grid-row: auto; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero--3d .hero3d {
    height: clamp(320px, 88vw, 380px);
    border-radius: 24px;
  }
  .hero--3d .hero3d__stage { padding: 12px 10px 8px; gap: clamp(16px, 4vw, 22px); }
  .hero--3d .cascade__tier--team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero--3d .cascade__tier--dept .plate b,
  .hero--3d .cascade__tier--team .plate b { font-size: 9px; }

  .hero--3d .orbit__ring {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .hero--3d .orbit__slot:nth-child(1),
  .hero--3d .orbit__slot:nth-child(2),
  .hero--3d .orbit__slot:nth-child(3),
  .hero--3d .orbit__slot:nth-child(4),
  .hero--3d .orbit__slot:nth-child(5) {
    grid-column: auto;
  }

  .hero--3d .orbit__chip {
    padding: 5px 2px;
  }

  .hero--3d .orbit__chip img,
  .hero--3d .orbit__chip i {
    width: 22px;
    height: 22px;
  }

  .hero--3d .orbit__chip span { font-size: 6.5px; }

  .hero--3d .hero3d__legend {
    flex-wrap: wrap;
    font-size: 8.5px;
    gap: 6px 10px;
  }
  .vsbar__row { grid-template-columns: 46px 1fr; }
  .vsbar__num { grid-column: 2; text-align: left; }
}

/* ===================== СЕКВЕНЦИЯ 05 · СВЕТЛЫЙ 3D ================= */

.sequence .sequence__steps {
  padding-bottom: clamp(96px, 16vh, 180px);
}

.sequence .bento {
  position: relative;
  z-index: 6;
  margin-top: clamp(40px, 7vh, 88px);
  isolation: isolate;
}

.sequence__stage--light {
  position: sticky;
  top: 96px;
  bottom: clamp(32px, 6vh, 64px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: min(520px, calc(100vh - 200px));
  min-height: min(400px, 52vh);
  max-height: min(520px, calc(100vh - 200px));
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(206, 200, 255, 0.55), transparent 52%),
    radial-gradient(90% 80% at 92% 100%, rgba(213, 255, 243, 0.45), transparent 48%),
    linear-gradient(165deg, #f7f6ff 0%, #ebe8ff 48%, #f4fbff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(5, 2, 48, 0.08),
    0 40px 90px -50px rgba(5, 2, 48, 0.55);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--ink);
  --fg1: var(--ink);
  --fg2: rgba(5, 2, 48, 0.72);
  --fg3: rgba(5, 2, 48, 0.5);
  --stroke: rgba(5, 2, 48, 0.1);
}

.sequence__stage--light .stage__chrome {
  border-bottom-color: rgba(5, 2, 48, 0.08);
}

.sequence__stage--light .stage__chrome i {
  background: rgba(5, 2, 48, 0.18);
}

.sequence__stage--light .stage__chrome b {
  color: rgba(5, 2, 48, 0.55);
}

.sequence__stage--light .stage__body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

.sequence .scene {
  display: flex;
  flex-direction: column;
  align-content: stretch;
  padding: clamp(12px, 1.8vw, 20px);
  overflow: auto;
  min-height: 100%;
}

.seq3d {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  perspective: 1200px;
  perspective-origin: 50% 40%;
}

.seq3d--org {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: min(380px, 100%);
}

.seq3d__stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  align-content: center;
  flex: 1 1 auto;
  min-height: 280px;
  height: auto;
  transform-style: preserve-3d;
  transform: none;
}

.seq3d__floor {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 8%;
  height: 42%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(74, 59, 255, 0.12), transparent 68%);
  transform: translateZ(-40px);
  pointer-events: none;
}

.seq3d--org .seq3d__floor {
  display: none;
}

.seq3d__legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--fg3);
}

.seq3d__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.seq3d__legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1f8a68;
}

.seq3d__legend i.is-wait { background: #c44d8a; }

@keyframes seq3d-float {
  from { transform: translateZ(var(--z, 0px)) translateY(0); }
  to { transform: translateZ(var(--z, 0px)) translateY(-6px); }
}

@keyframes seq3d-pop {
  from { opacity: 0; transform: translateZ(var(--z, 0px)) translateY(14px) scale(0.96); }
  to { opacity: 1; transform: translateZ(var(--z, 0px)) translateY(0) scale(1); }
}

@keyframes seq3d-scan {
  0%, 100% { transform: translateY(-40%); opacity: 0.15; }
  50% { transform: translateY(40%); opacity: 0.55; }
}

@keyframes seq3d-ring {
  from { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(360deg); }
}

.scene.is-active .seq3d-card,
.scene.is-active .seq3d-hub__tile,
.scene.is-active .seq3d-hub__core,
.scene.is-active .seq3d-lens__row {
  animation: seq3d-pop 0.55s var(--ease) backwards, seq3d-float 6.5s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.55s);
}

@keyframes seq3d-chip-float {
  from { translate: 0 0; }
  to { translate: 0 -5px; }
}

@keyframes seq3d-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* —— Шаг 01: оргдерево —— */
.seq3d-org__links {
  position: absolute;
  inset: 6% 4% 18%;
  width: 92%;
  height: 74%;
  pointer-events: none;
  z-index: 0;
}

.seq3d-org__link {
  fill: none;
  stroke: rgba(74, 59, 255, 0.28);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.seq3d-org__link.is-off {
  stroke: rgba(196, 77, 138, 0.35);
  stroke-dasharray: 4 5;
}

.seq3d-org__tier {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.seq3d-org__tier--ceo { justify-items: center; }
.seq3d-org__tier--dept,
.seq3d-org__tier--team {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seq3d-card {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(232, 230, 255, 0.88) 55%, rgba(206, 200, 255, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 0 0 1px rgba(5, 2, 48, 0.06),
    0 18px 36px -18px rgba(5, 2, 48, 0.35),
    0 8px 0 rgba(74, 59, 255, 0.08);
  transform: translateZ(var(--z, 0px));
  transform-style: preserve-3d;
}

.seq3d-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 36%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  opacity: 0.55;
  pointer-events: none;
}

.seq3d-card--ceo {
  width: min(100%, 320px);
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  background: linear-gradient(150deg, #6a5cff 0%, #4a3bff 52%, #2b1fb0 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 22px 40px -18px rgba(74, 59, 255, 0.55),
    0 10px 0 rgba(43, 31, 176, 0.18);
}

.seq3d-card--ceo::after {
  opacity: 0.22;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 62%);
}

.seq3d-card--ceo .seq3d-card__meta,
.seq3d-card--ceo .seq3d-card__state { color: rgba(255, 255, 255, 0.88); }
.seq3d-card--ceo .seq3d-card__ic { background: rgba(255, 255, 255, 0.22); color: #fff; }
.seq3d-card--ceo b {
  grid-column: 2;
  color: #fff;
  text-shadow: 0 1px 2px rgba(5, 2, 48, 0.22);
}
.seq3d-card--ceo .seq3d-card__meta { grid-column: 2; }
.seq3d-card--ceo .seq3d-card__state { grid-column: 3; grid-row: 1 / span 2; }

.seq3d-card.is-locked {
  opacity: 0.78;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.9), rgba(240, 238, 255, 0.75));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(5, 2, 48, 0.05),
    0 12px 24px -16px rgba(5, 2, 48, 0.25);
}

.seq3d-card__ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(74, 59, 255, 0.1);
  color: var(--indigo);
}

.seq3d-card__ic--prod { background: rgba(31, 138, 104, 0.12); color: #1f8a68; }
.seq3d-card__ic--rnd { background: rgba(74, 59, 255, 0.12); color: var(--indigo); }
.seq3d-card__ic--sales { background: rgba(196, 77, 138, 0.12); color: #c44d8a; }

.seq3d-card__meta {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg3);
}

.seq3d-card b {
  font-size: clamp(11px, 1.15vw, 13px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.seq3d-card__state {
  justify-self: start;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(5, 2, 48, 0.06);
  color: var(--fg3);
}

.seq3d-card__state.is-done {
  background: rgba(31, 138, 104, 0.12);
  color: #1f8a68;
}

.seq3d-card__state.is-wait {
  background: rgba(196, 77, 138, 0.12);
  color: #c44d8a;
}

/* —— Шаг 02: орбита 360 (плоская, с объёмом карточек) —— */
.seq3d--360 .seq3d__floor {
  display: none;
}

.seq3d__stage--360 {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 16px;
}

.seq3d-orbit--flat {
  --orbit-r: clamp(96px, 12vw, 122px);
  position: relative;
  width: min(100%, 320px);
  aspect-ratio: 1;
  justify-self: center;
}

.seq3d-orbit__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--orbit-r) * 2 + 72px);
  height: calc(var(--orbit-r) * 2 + 72px);
  border-radius: 50%;
  border: 1.5px dashed rgba(74, 59, 255, 0.32);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.scene.is-active .seq3d-orbit__ring {
  animation: seq3d-orbit-glow 3.2s ease-in-out infinite;
}

@keyframes seq3d-orbit-glow {
  0%, 100% { opacity: 0.55; scale: 1; }
  50% { opacity: 1; scale: 1.015; }
}

.seq3d-orbit__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 104px;
  height: 104px;
  border-radius: 28px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2px;
  transform: translate(-50%, -50%);
  background: linear-gradient(150deg, #6a5cff, #4a3bff 55%, #2b1fb0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 24px 40px -18px rgba(74, 59, 255, 0.55),
    0 12px 0 rgba(43, 31, 176, 0.12);
  color: #fff;
}

.seq3d-orbit__core b {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.seq3d-orbit__core span {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.seq3d-orbit__chip {
  position: absolute;
  z-index: 2;
  width: 112px;
  padding: 10px 10px;
  border-radius: 16px;
  display: grid;
  gap: 2px;
  background: linear-gradient(155deg, #fff, #f2f0ff);
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 28px -16px rgba(5, 2, 48, 0.35),
    0 6px 0 rgba(74, 59, 255, 0.08);
}

.seq3d-orbit__chip--prod {
  left: 50%;
  top: calc(50% - var(--orbit-r));
  transform: translate(-50%, -100%);
}

.seq3d-orbit__chip--rnd {
  left: calc(50% + var(--orbit-r) * 0.866);
  top: calc(50% + var(--orbit-r) * 0.5);
  transform: translate(-50%, -50%);
}

.seq3d-orbit__chip--sales {
  left: calc(50% - var(--orbit-r) * 0.866);
  top: calc(50% + var(--orbit-r) * 0.5);
  transform: translate(-50%, -50%);
}

.scene.is-active .seq3d-orbit__chip--prod {
  animation: seq3d-fade-in 0.55s var(--ease) backwards, seq3d-chip-float 5.5s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.55s);
}

.scene.is-active .seq3d-orbit__chip--rnd {
  animation: seq3d-fade-in 0.55s var(--ease) backwards, seq3d-chip-float 5.8s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.7s);
}

.scene.is-active .seq3d-orbit__chip--sales {
  animation: seq3d-fade-in 0.55s var(--ease) backwards, seq3d-chip-float 6.1s ease-in-out infinite alternate;
  animation-delay: var(--d, 0s), calc(var(--d, 0s) + 0.85s);
}

.seq3d-orbit__ic {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(74, 59, 255, 0.1);
  color: var(--indigo);
}

.seq3d-orbit__chip b {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.seq3d-orbit__chip span {
  font-size: 9px;
  line-height: 1.25;
  color: var(--fg3);
}

.seq3d-ai-callout {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 16px;
  border-radius: 20px;
  border: 2px dashed rgba(196, 77, 138, 0.45);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 34px -20px rgba(5, 2, 48, 0.28);
  transform: translateZ(24px);
}

.seq3d-ai-callout__spark { color: #c44d8a; line-height: 0; }
.seq3d-ai-callout b {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.seq3d-ai-callout span {
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg3);
}

/* —— Шаг 03: хаб Review —— */
.seq3d__stage--review {
  grid-template-columns: 1fr 1.1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 12px;
  justify-items: center;
  align-items: center;
  min-height: 280px;
}

.seq3d-hub__tile--okr { grid-column: 2; grid-row: 1; }
.seq3d-hub__tile--deg { grid-column: 1; grid-row: 2; }
.seq3d-hub__core { grid-column: 2; grid-row: 2; }
.seq3d-hub__tile--proj { grid-column: 3; grid-row: 2; }
.seq3d-hub__tile--beh { grid-column: 2; grid-row: 3; }

.seq3d-hub__tile {
  width: 100%;
  max-width: 124px;
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
  padding: 12px 10px;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff, #ece9ff);
  box-shadow:
    inset 0 1px 0 #fff,
    0 16px 30px -16px rgba(5, 2, 48, 0.32),
    0 7px 0 rgba(74, 59, 255, 0.08);
  transform: translateZ(var(--z, 0px));
}

.seq3d-hub__ic {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(74, 59, 255, 0.1);
  color: var(--indigo);
  margin-bottom: 2px;
}

.seq3d-hub__tile b {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg3);
}

.seq3d-hub__tile strong {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.seq3d-hub__tile span {
  font-size: 10px;
  color: var(--fg3);
}

.seq3d-hub__core {
  width: clamp(112px, 14vw, 136px);
  aspect-ratio: 1;
  border-radius: 28px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  text-align: center;
  color: #fff;
  background: linear-gradient(155deg, #6a5cff, #4a3bff 55%, #2b1fb0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 28px 48px -20px rgba(74, 59, 255, 0.7),
    0 12px 0 rgba(43, 31, 176, 0.2);
  transform: translateZ(var(--z, 56px));
}

.seq3d-hub__core b {
  font-size: clamp(18px, 2.3vw, 24px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.seq3d-hub__core span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

.seq3d-hub__core em {
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d5fff3;
}

/* —— Шаг 04: AI-линза (не цветная таблица) —— */
.seq3d__stage--lens {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  max-height: 100%;
}

.seq3d--lens {
  min-height: 0;
}

.seq3d-lens__orb {
  position: relative;
  width: clamp(92px, 11vw, 118px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 30%, #fff 0%, #cec8ff 38%, #4a3bff 78%, #2b1fb0 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 24px 40px -16px rgba(74, 59, 255, 0.55),
    0 10px 0 rgba(43, 31, 176, 0.15);
  transform: translateZ(40px);
}

.seq3d-lens__glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.45);
}

.seq3d-lens__core {
  position: relative;
  z-index: 1;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.seq3d-lens__scan {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 28%;
  border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: seq3d-scan 2.8s ease-in-out infinite;
}

.seq3d-lens__feed {
  display: grid;
  gap: 6px;
  min-width: 0;
  max-height: 100%;
}

.seq3d-lens__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(244, 243, 255, 0.9));
  box-shadow:
    inset 0 1px 0 #fff,
    0 14px 26px -18px rgba(5, 2, 48, 0.3),
    0 5px 0 rgba(74, 59, 255, 0.06);
  transform: translateZ(18px);
}

.seq3d-lens__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 4px rgba(74, 59, 255, 0.12);
}

.seq3d-lens__dot.is-up { background: #1f8a68; box-shadow: 0 0 0 4px rgba(31, 138, 104, 0.12); }
.seq3d-lens__dot.is-warn { background: #c47a1f; box-shadow: 0 0 0 4px rgba(196, 122, 31, 0.12); }
.seq3d-lens__dot.is-risk { background: #c44d8a; box-shadow: 0 0 0 4px rgba(196, 77, 138, 0.12); }
.seq3d-lens__dot.is-plan { background: var(--indigo); }

.seq3d-lens__row b {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.seq3d-lens__row div span {
  display: block;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--fg3);
}

.seq3d-lens__row em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

@media (max-width: 1080px) {
  /* Планшеты и телефоны: только текст шагов, без sticky-панели графики */
  #product .sequence__stage {
    display: none;
  }

  #product .sequence__step {
    max-width: none;
  }

  .sequence .sequence__steps {
    padding-bottom: clamp(48px, 10vh, 96px);
  }

  .sequence .bento {
    margin-top: clamp(32px, 6vh, 64px);
  }
}

@media (max-width: 640px) {
  #product .sequence__steps {
    gap: clamp(28px, 6vh, 48px);
    padding-bottom: clamp(32px, 8vh, 56px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plate,
  .orbit__ring,
  .orbit__chip,
  .cascade__pulse,
  .seq3d-orbit__ring,
  .seq3d-lens__scan,
  .scene.is-active .seq3d-card,
  .scene.is-active .seq3d-hub__tile,
  .scene.is-active .seq3d-hub__core,
  .scene.is-active .seq3d-lens__row,
  .scene.is-active .seq3d-orbit__chip {
    animation: none !important;
  }
  .hero3d__stage { transition: none; }
}
