/* ==========================================================================
   ВИЕРКОМ · оформление отдельных страниц
   ========================================================================== */

/* --- первый экран --------------------------------------------------------
   Полоса всегда тёмная, независимо от выбранной темы: это отдельный экран,
   а не часть страницы, и анимация цифр живёт только на тёмном.
   ------------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(76vh, 720px);
  padding-block: var(--space-8) var(--space-7);
  background: var(--brand-dark);
  color: #e0e0ea;
  overflow: hidden;
  isolation: isolate;
}

/* Два очень мягких пятна: изумруд снизу-слева, синий сверху-справа.
   На CSS, а не на канве — дешевле и не тратит кадры. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(46% 52% at 14% 88%, rgba(0, 153, 96, 0.16), transparent 70%),
    radial-gradient(44% 48% at 86% 12%, rgba(59, 130, 246, 0.14), transparent 70%);
  pointer-events: none;
}

.hero__stage {
  position: relative;
  width: 100%;
  height: clamp(200px, 34vw, 400px);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Настоящий заголовок остаётся в разметке: чтение с экрана и поисковые
   системы получают текст, а не картинку. Канва помечена aria-hidden. */
.hero__wordmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-size: clamp(2.5rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

/* Если канва не поднялась — слово всё равно должно быть видно. */
.no-canvas .hero__wordmark {
  color: #ffffff;
}

.hero__tagline {
  max-width: 44ch;
  margin: var(--space-6) 0 0;
  color: #c9c9d4;
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__note {
  margin-top: var(--space-4);
  color: #8b8b96;
  font-size: var(--text-sm);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.hero__actions .btn--ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: #e0e0ea;
}

.hero__actions .btn--ghost:hover {
  border-color: var(--brand-emerald);
  color: #ffffff;
  background: rgba(0, 153, 96, 0.12);
}

/* Подпись, раскрывающая замысел знака. Появляется после сборки. */
.hero__reveal {
  margin-top: var(--space-6);
  padding-left: var(--space-4);
  border-left: 2px solid rgba(0, 180, 115, 0.5);
  color: #8b8b96;
  font-size: var(--text-sm);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(6px);
  animation: hero-reveal 0.9s var(--ease-out) 2.7s forwards;
}

.hero__reveal b {
  color: #e0e0ea;
  font-weight: 600;
}

@keyframes hero-reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* --- страничная шапка (все страницы кроме главной) ------------------------ */

.page-head {
  padding-block: clamp(var(--space-6), 6vw, var(--space-8)) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.page-head .lead {
  margin-top: var(--space-4);
}

/* --- матрица классов ------------------------------------------------------
   Наведение подсвечивает строку и столбец: читателю нужно увидеть,
   что класс ограничен той осью, по которой завод слабее.
   ------------------------------------------------------------------------ */

.matrix {
  display: grid;
  grid-template-columns: auto repeat(3, 1fr);
  gap: var(--space-2);
  margin-block: var(--space-6);
  font-size: var(--text-sm);
}

.matrix__axis-y,
.matrix__axis-x {
  display: grid;
  place-items: center;
  padding: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.3;
  text-align: center;
}

.matrix__axis-y {
  place-items: center end;
  text-align: right;
}

.matrix__cell {
  display: grid;
  place-items: center;
  min-height: 62px;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  transition:
    filter 0.16s var(--ease-out),
    outline-color 0.16s var(--ease-out);
  outline: 2px solid transparent;
  outline-offset: -2px;
}

.matrix__cell[data-class="bronze"] {
  background: var(--class-bronze);
}

.matrix__cell[data-class="silver"] {
  background: var(--class-silver);
  color: #16203a;
}

.matrix__cell[data-class="gold"] {
  background: var(--class-gold);
  color: #2a1f02;
}

.matrix__cell[data-class="platinum"] {
  background: var(--class-platinum);
}

.matrix.is-hovered .matrix__cell {
  filter: saturate(0.45) brightness(0.85);
}

.matrix .matrix__cell.is-lit {
  filter: none;
  outline-color: rgba(255, 255, 255, 0.55);
}

.matrix__corner {
  content: "";
}

/* --- профиль по девяти областям -------------------------------------------
   Без числовых подписей: числовая шкала — внутренняя калибровка методологии,
   наружу идёт класс. Форма показывает, где провал, и этого достаточно.
   ------------------------------------------------------------------------ */

.profile {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-5);
}

.profile__row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) 1fr;
  align-items: center;
  gap: var(--space-4);
}

@media (max-width: 620px) {
  .profile__row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

.profile__label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.3;
}

.profile__label .code {
  margin-right: 0.4em;
}

/* Код области красится в цвет своей оси: изумруд — «Способность»,
   синий — «Система». Иначе подпись спорит с цветом столбика. */
.profile__row[data-axis="capability"] .code {
  color: var(--accent);
}

.profile__row[data-axis="system"] .code {
  color: var(--accent-2);
}

.profile__track {
  height: 12px;
  background: var(--bg-inset);
  border-radius: 6px;
  overflow: hidden;
}

.profile__bar {
  height: 100%;
  border-radius: 6px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s var(--ease-out);
}

.profile.is-visible .profile__bar {
  transform: scaleX(var(--fill, 0.5));
}

.profile__row[data-axis="capability"] .profile__bar {
  background: linear-gradient(90deg, var(--brand-emerald-deep), var(--accent));
}

.profile__row[data-axis="system"] .profile__bar {
  background: linear-gradient(90deg, var(--brand-blue-deep), var(--accent-2));
}

.profile__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.profile__legend span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.profile__legend i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
}

/* Обязательная пометка: пример условный, выполненных работ ещё нет. */
.sample-tag {
  display: inline-block;
  padding: 0.25em 0.7em;
  background: var(--tint-amber);
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  border-radius: var(--radius-sm);
  color: var(--amber);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- классы квалификации: карточки ---------------------------------------- */

.class-card {
  padding: var(--space-5);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-left: 4px solid var(--class-color, var(--border-strong));
  border-radius: var(--radius);
}

.class-card[data-class="bronze"] {
  --class-color: var(--class-bronze);
}

.class-card[data-class="silver"] {
  --class-color: var(--class-silver);
}

.class-card[data-class="gold"] {
  --class-color: var(--class-gold);
}

.class-card[data-class="platinum"] {
  --class-color: var(--class-platinum);
}

.class-card__name {
  margin-bottom: var(--space-1);
  color: var(--class-color);
  font-size: var(--text-lg);
  font-weight: 700;
}

.class-card__mode {
  margin-bottom: var(--space-3);
  color: var(--text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- две оси --------------------------------------------------------------- */

.axes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.axis {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-top: 3px solid var(--axis-color);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.axis[data-axis="capability"] {
  --axis-color: var(--accent);
}

.axis[data-axis="system"] {
  --axis-color: var(--accent-2);
}

.axis__name {
  margin-bottom: var(--space-1);
  color: var(--axis-color);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.axis__question {
  margin-bottom: var(--space-4);
  color: var(--text-strong);
  font-size: var(--text-lg);
  font-weight: 600;
}

.axis__list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.axis__list li {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-2);
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
}

.axis__list .code {
  color: var(--axis-color);
}

/* --- сравнительная таблица «модель против паспорта» ------------------------ */

.compare th:first-child,
.compare td:first-child {
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

.compare thead th:last-child {
  color: var(--accent);
}

/* --- форма заявки ----------------------------------------------------------- */

.form {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}

.field .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65em 0.85em;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: var(--text-base);
  line-height: 1.4;
  transition: border-color 0.15s var(--ease-out);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline-offset: 1px;
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.field__hint {
  color: var(--text-faint);
  font-size: var(--text-xs);
}

.field__error {
  color: var(--red);
  font-size: var(--text-xs);
}

/* Ловушка для роботов. Прячется так, чтобы её не показывали
   и программы чтения с экрана. */
.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* --- согласия ---------------------------------------------------------------
   Три отдельных флажка, ни один не предустановлен, тексты не сливаются.
   С 01.09.2025 согласие оформляется отдельным действием.
   -------------------------------------------------------------------------- */

.consents {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3);
  align-items: start;
}

.consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.2em 0 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}

.consent label {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  cursor: pointer;
}

.consent label b {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-strong);
  font-weight: 600;
}

/* --- форма выключена ---------------------------------------------------------
   Флаг FORM_ENABLED=false. Форма свёрстана, но не работает: включается
   после регистрации домена, российского хостинга и публикации политики.
   -------------------------------------------------------------------------- */

.form-off {
  padding: var(--space-5);
  margin-bottom: var(--space-6);
  background: var(--tint-amber);
  border: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
  border-radius: var(--radius);
}

.form-off__title {
  margin-bottom: var(--space-2);
  color: var(--text-strong);
  font-weight: 600;
}

.form-off p {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.form-off__phone {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--text-strong);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.form-off__phone:hover {
  color: var(--accent);
}

.form[data-disabled="true"] {
  opacity: 0.55;
}

/* --- ответ формы --------------------------------------------------------------- */

.form__status {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.form__status[data-kind="ok"] {
  background: var(--tint-emerald);
  border-left: 3px solid var(--accent);
}

.form__status[data-kind="error"] {
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border-left: 3px solid var(--red);
}

/* --- реквизиты ------------------------------------------------------------------ */

.requisites {
  display: grid;
  gap: 0;
  font-size: var(--text-sm);
}

.requisites div {
  display: grid;
  grid-template-columns: minmax(0, 13rem) 1fr;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.requisites div:last-child {
  border-bottom: 0;
}

.requisites dt {
  color: var(--text-muted);
}

.requisites dd {
  margin: 0;
  color: var(--text-strong);
}

@media (max-width: 560px) {
  .requisites div {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* --- баннер cookie ---------------------------------------------------------------
   Отказ равноправен согласию: обе кнопки одинаковой заметности.
   -------------------------------------------------------------------------------- */

.cookie {
  position: fixed;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 90;
  max-width: 46rem;
  margin-inline: auto;
  padding: var(--space-5);
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cookie[hidden] {
  display: none;
}

.cookie p {
  margin-bottom: var(--space-4);
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* --- страница 404 ------------------------------------------------------------------ */

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.notfound__code {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}

/* ==========================================================================
   Схема, собирающаяся из нулей и единиц
   Канва лежит поверх рисунка и снимается, когда он проявился.
   ========================================================================== */

.figure-plate {
  position: relative;
}

.figure-binary__canvas {
  position: absolute;
  inset: var(--space-4);
  width: calc(100% - var(--space-4) * 2);
  height: calc(100% - var(--space-4) * 2);
  pointer-events: none;
}

/* Рисунок скрыт, но место под него занято: страница не должна дёргаться,
   пока цифры собираются. */
[data-binary-figure].is-pending img {
  opacity: 0;
}

[data-binary-figure] img {
  transition: opacity 0.55s var(--ease-out);
}

[data-binary-figure].is-revealed img {
  opacity: 1;
}

/* Если сценарии не отработали, рисунок обязан остаться видимым. */
@media (prefers-reduced-motion: reduce) {
  [data-binary-figure].is-pending img {
    opacity: 1;
  }
}

/* ==========================================================================
   Переход между страницами
   ========================================================================== */

#vrcm-transition {
  position: fixed;
  inset: 0;
  z-index: 120;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Уходя, содержание тускнеет и слегка оседает — цифры разлетаются ему
   на смену. Шапка остаётся на месте: она не перестраивается. */
.vrcm-leaving main,
.vrcm-leaving .footer,
.vrcm-leaving .cta-band {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.32s var(--ease-in-out),
    transform 0.32s var(--ease-in-out);
}

/* Приходя, содержание проступает на месте собравшихся цифр. */
.vrcm-entering main,
.vrcm-entering .footer,
.vrcm-entering .cta-band {
  opacity: 0;
}

main,
.footer,
.cta-band {
  transition: opacity 0.4s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  .vrcm-leaving main,
  .vrcm-leaving .footer,
  .vrcm-leaving .cta-band,
  .vrcm-entering main,
  .vrcm-entering .footer,
  .vrcm-entering .cta-band {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   Схемы участков: тёмная изометрия в фирменных цветах
   Цвет объекта повторяет две оси методологии: изумруд — передел
   (способность изготовить), синий — контроль (система). Склады и транспорт
   нейтральные: они не оцениваются.
   ========================================================================== */

.scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: var(--space-5);
  padding: var(--space-4);
  background: #0a1020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  /* Полоса всегда тёмная, как первый экран: это отдельная сцена,
     а не часть страницы. */
  color: #e0e0ea;
}

@media (max-width: 900px) {
  .scene {
    grid-template-columns: 1fr;
  }
}

.scene__stage {
  position: relative;
  min-width: 0;
}

.scene__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.scene__floor {
  fill: rgba(255, 255, 255, 0.025);
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 1;
}

.scene__grid {
  fill: none;
  stroke: rgba(255, 255, 255, 0.045);
  stroke-width: 1;
}

/* Маршрут: тусклая нить и бегущий по ней пунктир поверх. */
.scene__route {
  fill: none;
  stroke: rgba(59, 130, 246, 0.28);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scene__route-live {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 22;
  animation: scene-flow 1.6s linear infinite;
}

@keyframes scene-flow {
  to {
    stroke-dashoffset: -36;
  }
}

/* Бегущая заготовка — её ведёт сценарий по длине маршрута. */
.scene__part-glow {
  fill: rgba(0, 196, 126, 0.22);
}

.scene__part-core {
  fill: #00c47e;
}

/* --- объект --------------------------------------------------------------- */

.obj {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.22s var(--ease-out), filter 0.22s var(--ease-out);
}

.obj__face {
  transition: filter 0.22s var(--ease-out);
}

.obj__pin {
  fill: #0a1020;
  stroke: rgba(255, 255, 255, 0.4);
  stroke-width: 1.5;
  transition: stroke 0.2s var(--ease-out), fill 0.2s var(--ease-out);
}

.obj__num {
  fill: #e0e0ea;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  transition: fill 0.2s var(--ease-out);
}

/* Наведение: объект приподнимается и укрупняется, остальная сцена глохнет. */
.scene__stage:hover .obj:not(:hover):not(.is-active),
.scene__stage:focus-within .obj:not(:focus):not(.is-active) {
  filter: saturate(0.35) brightness(0.62);
}

.obj:hover,
.obj:focus,
.obj.is-active {
  transform: scale(1.09) translateY(-6px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.55));
  outline: none;
}

.obj:hover .obj__pin,
.obj:focus .obj__pin,
.obj.is-active .obj__pin {
  fill: var(--accent);
  stroke: #ffffff;
}

.obj:hover .obj__num,
.obj:focus .obj__num,
.obj.is-active .obj__num {
  fill: #06210f;
}

.obj:focus-visible .obj__pin {
  stroke: #ffffff;
  stroke-width: 2.5;
}

/* --- перечень объектов и карточка ------------------------------------------ */

.scene__side {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.scene__title {
  margin-bottom: var(--space-3);
  color: #ffffff;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scene__list {
  display: grid;
  gap: 1px;
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.scene__list li {
  margin: 0;
}

.scene__item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  width: 100%;
  padding: 5px var(--space-2);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: #aaa9b0;
  font: inherit;
  font-size: var(--text-sm);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.scene__item:hover,
.scene__item.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.scene__item b {
  flex: none;
  width: 1.5em;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
}

.scene__item[data-kind="control"] b {
  color: var(--accent-2);
}

.scene__item[data-kind="store"] b {
  color: #8b95a5;
}

/* Карточка объекта. Место под неё держится всегда, иначе перечень
   прыгает при каждом наведении. */
.scene__card {
  margin-top: auto;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  min-height: 8.5rem;
  font-size: var(--text-sm);
}

.scene__card[data-kind="control"] {
  border-left-color: var(--accent-2);
}

.scene__card[data-kind="store"] {
  border-left-color: #8b95a5;
}

.scene__card-name {
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
}

.scene__card-kind {
  margin-top: 2px;
  color: #6b7280;
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scene__card-rows {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.scene__card-rows div {
  display: grid;
  gap: 1px;
}

.scene__card-rows b {
  color: #8b95a5;
  font-size: var(--text-xs);
  font-weight: 500;
}

.scene__card-rows span {
  color: #e0e0ea;
  line-height: 1.4;
}

.scene__card-hint {
  color: #6b7280;
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Канва сборки из цифр ложится поверх сцены и снимается, когда та проявилась. */
.scene__digits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

[data-binary-figure].is-pending .scene__svg,
[data-binary-figure].is-pending .scene__side {
  opacity: 0;
}

[data-binary-figure] .scene__svg,
[data-binary-figure] .scene__side {
  transition: opacity 0.55s var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  [data-binary-figure].is-pending .scene__svg,
  [data-binary-figure].is-pending .scene__side {
    opacity: 1;
  }

  .scene__route-live {
    animation: none;
  }
}

/* Строение пролёта: колонны и подкрановые балки. Обстановка, а не объект
   модели, поэтому наведение её не касается и она приглушена. */
.frame {
  pointer-events: none;
}

.frame__face {
  opacity: 0.75;
}
