/* ==========================================================================
   calc-bukvyi.css — стенд блока «Калькулятор световых букв»
   Токены — из дизайн-системы сайта (crystalight-v2.css): фон #101411,
   панели #151a16/#1b211c, акцент #c4f66b, Unbounded + Manrope.
   Префикс классов: .cb-
   ========================================================================== */

/* Unbounded и Manrope уже объявлены в framework.min.css (variable, 400 700 / 400 800),
   поэтому здесь их @font-face не дублируем — иначе браузер качает второй файл. */

/* ===== Шрифты вывески: Oswald (узкий) и Marck Script (прописной) =====
   Arial и Times New Roman — системные, файлов не требуют. */
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../../fonts/oswald/oswald-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald'; font-style: normal; font-weight: 500 600; font-display: swap;
  src: url(../../fonts/oswald/oswald-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Marck Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../fonts/marck_script/marck-script-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Marck Script'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../../fonts/marck_script/marck-script-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Токены ===== */
.cb-calc {
  --cb-bg: #101411;
  --cb-panel: #151a16;
  --cb-panel-2: #1b211c;
  --cb-panel-3: #202722;
  --cb-text: #f2f4ec;
  --cb-muted: #a4aea3;
  --cb-muted-2: #8b958a;
  --cb-line: #ffffff18;
  --cb-line-soft: #ffffff0f;
  --cb-lime: #c4f66b;
  --cb-lime-hover: #d6ff95;
  --cb-lime-dark: #172014;
  --cb-r-lg: 24px;
  --cb-r-md: 18px;
  --cb-r-sm: 12px;
  --cb-display: 'Unbounded', 'Manrope', Arial, sans-serif;
  --cb-font: 'Manrope', 'Open Sans', Arial, sans-serif;

  color: var(--cb-text);
  font-family: var(--cb-font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.cb-calc *, .cb-calc *::before, .cb-calc *::after { box-sizing: border-box; }
.cb-calc ::selection { background: var(--cb-lime); color: var(--cb-lime-dark); }
.cb-calc :focus-visible { outline: 2px solid var(--cb-lime); outline-offset: 3px; }

.cb-wrap { max-width: none; margin: 0; padding: 0; }

/* ===== Заголовок секции ===== */
.cb-title {
  margin: 0 0 8px;
  font-family: var(--cb-display);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.cb-lead { margin: 0 0 20px; max-width: 640px; color: var(--cb-muted); font-size: 14px; }

/* ===== Сетка: панель 38 % / сцена 62 %; сцена по высоте панели ===== */
.cb-grid {
  display: grid;
  grid-template-columns: minmax(360px, 38fr) 62fr;
  gap: 20px;
  align-items: stretch;
}

/* ============================ ПАНЕЛЬ ============================ */
.cb-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-r-lg);
  background: var(--cb-panel);
}
.cb-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cb-field--group { margin: 0; padding: 0; border: 0; }
.cb-field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cb-label { color: var(--cb-text); font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }
.cb-count { color: var(--cb-muted-2); font-size: 11px; font-variant-numeric: tabular-nums; }
.cb-value { color: var(--cb-lime); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cb-hint { margin: 0; color: var(--cb-muted-2); font-size: 11px; line-height: 1.5; }
.cb-warn {
  margin: 0; padding: 9px 12px; border-left: 2px solid var(--cb-lime); border-radius: 0 var(--cb-r-sm) var(--cb-r-sm) 0;
  background: #c4f66b0f; color: var(--cb-muted); font-size: 11px;
}

.cb-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-r-sm);
  background: var(--cb-panel-2);
  color: var(--cb-text);
  font-family: var(--cb-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.cb-input::placeholder { color: var(--cb-muted-2); font-weight: 400; }
.cb-input:focus { border-color: var(--cb-lime); outline: none; }
.cb-input--area { min-height: 84px; font-family: var(--cb-font); font-size: 13px; font-weight: 400; letter-spacing: 0; resize: vertical; }
.cb-calc .cb-input--area::placeholder { color: var(--cb-muted-2); }

.cb-field__tools { display: flex; align-items: baseline; gap: 10px; }
.cb-reset {
  padding: 0; border: 0; background: none;
  color: var(--cb-muted); font-family: var(--cb-font); font-size: 11px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer;
}
.cb-reset:hover { color: var(--cb-lime); }

/* слайдер высоты */
.cb-range {
  width: 100%; height: 24px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.cb-range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--cb-lime) var(--fill, 24%), #ffffff14 var(--fill, 24%));
}
.cb-range::-moz-range-track { height: 6px; border-radius: 99px; background: #ffffff14; }
.cb-range::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--cb-lime); }
.cb-range::-webkit-slider-thumb {
  width: 18px; height: 18px; margin-top: -6px; border: 0; border-radius: 50%;
  background: var(--cb-lime); box-shadow: 0 0 0 4px #c4f66b26;
  -webkit-appearance: none; appearance: none;
}
.cb-range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--cb-lime); }
/* шкала слайдера: подписи стоят по центру своих значений (слайдер линейный, 15…120),
   отступы равны радиусу ползунка — тогда цифра ровно под ним */
.cb-scale { position: relative; height: 15px; margin: 2px 9px 0; }
.cb-scale span {
  position: absolute; top: 0; left: var(--p);
  transform: translateX(-50%); color: var(--cb-muted-2); font-size: 10px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cb-scale__limit { border-bottom: 1px dotted #ffffff3d; }

/* плитки подсветки: 2×2 на узком экране, в одну строку на десктопе */
.cb-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1101px) { .cb-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cb-tile {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 9px;
  border: 1px solid var(--cb-line); border-radius: var(--cb-r-md); background: var(--cb-panel-2);
  cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease;
}
.cb-tile:hover { border-color: #ffffff30; }
.cb-tile__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cb-tile__icon { color: var(--cb-muted); line-height: 0; }
.cb-tile__icon svg { width: 22px; height: 22px; }
.cb-tile__name { font-size: 12px; font-weight: 700; }
.cb-tile__note { color: var(--cb-muted-2); font-size: 10px; }
.cb-tile:has(.cb-tile__input:checked) {
  border-color: var(--cb-lime); background: #c4f66b10; color: var(--cb-lime); box-shadow: inset 0 0 22px #c4f66b14;
}
.cb-tile:has(.cb-tile__input:checked) .cb-tile__icon { color: var(--cb-lime); }
.cb-tile:has(.cb-tile__input:checked) .cb-tile__note { color: #c4f66bc4; }
.cb-tile:has(.cb-tile__input:focus-visible) { outline: 2px solid var(--cb-lime); outline-offset: 3px; }

/* свотчи плёнки: все 54 оттенка видны сразу, без прокрутки */
.cb-swatches {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(21px, 1fr)); gap: 4px;
}
/* легенда у display:flex fieldset не участвует в gap — задаём отступ явно */
.cb-field--group > .cb-label:first-child { margin-bottom: 12px; }
.cb-swatch { position: relative; display: block; cursor: pointer; }
.cb-swatch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cb-swatch__dot {
  display: block; width: 15px; height: 15px; margin: 0 auto; border-radius: 50%;
  background: var(--sw); box-shadow: 0 0 0 1px #ffffff2b;
  transition: box-shadow .18s ease, transform .18s ease;
}
.cb-swatch:hover .cb-swatch__dot { transform: scale(1.25); }
.cb-swatch input:checked + .cb-swatch__dot { box-shadow: 0 0 0 2px var(--cb-bg), 0 0 0 3px var(--cb-lime); }
.cb-swatch input:focus-visible + .cb-swatch__dot { box-shadow: 0 0 0 2px var(--cb-bg), 0 0 0 3px var(--cb-lime); }
.cb-filminfo { margin: 0; color: var(--cb-muted); font-size: 11.5px; }

/* селект */
.cb-select-wrap { position: relative; }
.cb-select {
  width: 100%; min-height: 48px; padding: 12px 40px 12px 14px;
  border: 1px solid var(--cb-line); border-radius: var(--cb-r-sm);
  background: var(--cb-panel-2); color: var(--cb-text);
  font-family: var(--cb-font); font-size: 13px; -webkit-appearance: none; appearance: none;
}
.cb-select:focus { border-color: var(--cb-lime); outline: none; }
.cb-select__arrow { position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--cb-muted); pointer-events: none; }

/* ===== Блок цены: футер блока во всю ширину ===== */
.cb-price {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 28px;
  align-items: center;
  margin-top: 20px;
  padding: 22px 26px;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-r-lg);
  background: var(--cb-panel);
}
.cb-price__main { min-width: 0; }
.cb-price__meta { min-width: 0; }
.cb-price__action { display: flex; flex-direction: column; gap: 8px; }
.cb-price__top { display: flex; align-items: center; gap: 10px; }
.cb-price__label { color: var(--cb-muted); font-size: 10px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.cb-pill {
  padding: 3px 9px; border: 1px solid var(--cb-line); border-radius: 99px;
  color: var(--cb-muted-2); font-size: 9.5px; letter-spacing: 0.5px; white-space: nowrap;
}
.cb-price__value {
  display: block; margin: 6px 0 6px;
  font-family: var(--cb-display); font-size: 40px; font-weight: 600; line-height: 1.05;
  letter-spacing: -1.6px; font-variant-numeric: tabular-nums;
}
.cb-price__breakdown, .cb-price__rate, .cb-price__note, .cb-price__kit { margin: 0; color: var(--cb-muted); font-size: 12px; line-height: 1.55; }
.cb-price__rate { color: var(--cb-text); }
.cb-price__kit { color: var(--cb-muted-2); font-size: 11px; }
.cb-price__note { padding-bottom: 10px; border-bottom: 1px solid var(--cb-line-soft); text-wrap: pretty; }
.cb-price__facts { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.cb-price__facts li { position: relative; padding-left: 18px; color: var(--cb-muted-2); font-size: 11.5px; }
.cb-price__facts li::before { content: '✓'; position: absolute; left: 0; color: var(--cb-lime); }
/* Кнопка «Получить точную смету»: тёмный текст по лайму.
   Префикс .cb-calc обязателен — правило сайта `.clv2 a { color: inherit }` (0,1,1)
   перебивало `.cb-cta` (0,1,0), и текст наследовал почти белый цвет страницы:
   контраст 1.13:1 вместо 12:1 (исправлено 16.11.2026). То же у телефона ниже. */
.cb-calc .cb-cta {
  display: block; margin: 0; padding: 16px 22px;
  border-radius: 99px; background: var(--cb-lime); color: var(--cb-lime-dark);
  font-size: 13.5px; font-weight: 800; text-align: center; text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.cb-calc .cb-cta:hover { background: var(--cb-lime-hover); transform: translateY(-1px); }
.cb-calc .cb-call { display: block; color: var(--cb-muted); font-size: 11.5px; text-align: center; text-decoration: none; }
.cb-calc .cb-call:hover { color: var(--cb-lime); }

/* ============================ СЦЕНА ============================ */
.cb-scene {
  position: relative;
  min-height: 460px;
  min-width: 0;
  border: 1px solid var(--cb-line);
  border-radius: var(--cb-r-lg);
  background: #0c0f0d;
  overflow: hidden;
  cursor: grab;
  isolation: isolate;
  touch-action: pan-y;   /* вертикальный скролл остаётся нативным, тянем только по горизонтали */
  /* буквы — это текст в 22 слоях: без этого перетаскивание выделяло их
     и ::selection заливал вывеску лаймовой плашкой */
  user-select: none;
  -webkit-user-select: none;
  --glow-k: 1;
  --film: #f4f2ec;
  --film-glow: #fffdf6;
  --theme-k: 1;
  --face-color: var(--film-glow);
}
.cb-scene:active { cursor: grabbing; }

.cb-scene__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 8%, #222a22 0%, #141a15 42%, #0b0e0c 100%);
  opacity: calc(.55 + .45 * var(--theme-k));
}
.cb-scene__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, #c4f66b0d 1px, transparent 1px),
    linear-gradient(to bottom, #c4f66b0d 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .9;
}
.cb-scene__floor {
  position: absolute; right: 0; bottom: 0; left: 0; height: 46%;
  background: linear-gradient(to top, #000000a8, transparent);
}
.cb-scene[data-theme="day"] { --theme-k: .25; }
.cb-scene[data-theme="day"] .cb-scene__floor { opacity: .5; }

.cb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.cb-orbit { transform-style: preserve-3d; will-change: transform; }
.cb-scene[data-view="flat"] .cb-orbit { transform: none !important; }

/* вывеска */
.cb-sign { position: relative; transform-style: preserve-3d; }
.cb-lines { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--cb-gap, 12px); transform-style: preserve-3d; }
.cb-line { position: relative; transform-style: preserve-3d; }
.cb-layer {
  position: absolute; top: 50%; left: 50%;
  line-height: 1; white-space: nowrap;
  transform: translate(-50%, -50%) translateY(var(--dy, 0px)) translateZ(var(--z, 0px));
  backface-visibility: hidden;
}
.cb-layer--halo {
  filter: blur(calc(var(--halo-blur, 16px) * var(--glow-k)));
  opacity: calc(.85 * var(--glow-k) * var(--power));
  color: var(--film-glow);
}
.cb-layer--face {
  color: var(--face-color);
  text-shadow:
    0 0 calc(10px * var(--glow-k) * var(--power)) color-mix(in srgb, var(--film-glow) 68%, transparent),
    0 0 calc(28px * var(--glow-k) * var(--power)) color-mix(in srgb, var(--film-glow) 36%, transparent),
    0 0 calc(56px * var(--glow-k) * var(--power)) color-mix(in srgb, var(--film-glow) 16%, transparent);
}
/* контражур: лицо тёмное, свет из зазора.
   Борт светится (это делает paintDepth), у лица держим тонкую обводку-рим,
   а ореол вокруг букв — размытая копия текста, прижатая к силуэту. */
.cb-scene[data-light="back"] { --face-color: color-mix(in srgb, var(--film) 46%, #0d110e); }
.cb-scene[data-light="back"] .cb-layer--face {
  text-shadow:
    0 0 1px color-mix(in srgb, var(--film-glow) 72%, transparent),
    0 0 7px color-mix(in srgb, var(--film-glow) 46%, transparent),
    0 0 24px color-mix(in srgb, var(--film-glow) 22%, transparent);
}
.cb-scene[data-light="back"] .cb-layer--halo { --halo-blur: 11px; }
/* лицо + борт */
.cb-scene[data-light="combo"] .cb-layer:not(.cb-layer--face):not(.cb-layer--halo) { filter: brightness(1.5) saturate(1.2); }
/* без подсветки */
.cb-scene[data-light="none"] { --glow-k: 0; --face-color: var(--film); }
/* лицевая и «лицо + борт»: свет выходит из лица буквы и вперёд, за буквами его нет.
   Поэтому размытая копия текста за объёмом в этих режимах выключена: свечение
   даёт только text-shadow у .cb-layer--face, он вокруг буквы, а не за ней.
   Ореол за буквами остаётся в контражуре — там он и есть конструкция. */
.cb-scene[data-light="face"] .cb-layer--halo,
.cb-scene[data-light="combo"] .cb-layer--halo { display: none; }

/* монтажная рейка */
.cb-sign::before {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 9px;
  margin-top: 6px; border-radius: 2px;
  background: linear-gradient(to bottom, #3b4340, #1d211f 55%, #101312);
  box-shadow: 0 6px 18px #000000a6;
}
.cb-sign::after {
  content: ''; position: absolute; left: 8%; right: 8%; top: 100%; height: 9px; margin-top: 6px;
  background-image: radial-gradient(circle at 50% 50%, #6d766f 1.6px, transparent 1.8px);
  background-size: 84px 9px; background-position: 12px 0; opacity: .8;
}
.cb-scene[data-light="none"] .cb-sign::before { filter: brightness(.72); }

/* размерные линии */
.cb-dim { position: absolute; color: #ffffff8c; font-size: 11px; }
.cb-dim--v { width: 1px; background: #ffffff45; }
.cb-dim--v::before, .cb-dim--v::after {
  content: ''; position: absolute; left: -3px; width: 7px; height: 7px;
  border-left: 1px solid #ffffff8c; border-bottom: 1px solid #ffffff8c;
}
.cb-dim--v::before { top: 0; transform: rotate(135deg); }
.cb-dim--v::after { bottom: 0; transform: rotate(-45deg); }
.cb-dim--h { height: 1px; background: #ffffff45; }
.cb-dim--h::before, .cb-dim--h::after {
  content: ''; position: absolute; top: -3px; width: 7px; height: 7px;
  border-left: 1px solid #ffffff8c; border-bottom: 1px solid #ffffff8c;
}
.cb-dim--h::before { left: 0; transform: rotate(45deg); }
.cb-dim--h::after { right: 0; transform: rotate(-135deg); }
.cb-dim__label {
  position: absolute; padding: 2px 6px; border-radius: 5px;
  background: #0c0f0dcc; white-space: nowrap;
}
.cb-dim--v .cb-dim__label { top: 50%; left: -8px; transform: translate(-100%, -50%) rotate(-90deg); }
.cb-dim--h .cb-dim__label { left: 50%; bottom: 6px; transform: translateX(-50%); }
/* «ориентировочно» у длины: мельче и тише числа, но не ниже 50 % белого —
   иначе на тёмной плашке не хватает контраста (≈5,3:1 по композиту) */
.cb-dim__note { color: #ffffff80; font-size: 10px; }

/* чип, док, подсказка */
.cb-chip {
  position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px;
  margin: 0; padding: 8px 14px; border: 1px solid var(--cb-line); border-radius: 99px;
  background: #0c0f0db3; backdrop-filter: blur(10px);
  color: var(--cb-text); font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
}
.cb-chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cb-lime); box-shadow: 0 0 10px #c4f66ba8; }
.cb-dock { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.cb-gizmo {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--cb-line); border-radius: 50%; background: #0c0f0db3;
  color: var(--cb-muted); cursor: pointer; backdrop-filter: blur(10px);
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.cb-gizmo svg { width: 19px; height: 19px; }
.cb-gizmo:hover { color: var(--cb-text); border-color: #ffffff38; }
.cb-gizmo[aria-pressed="true"] { color: var(--cb-lime); border-color: #c4f66b5c; }
.cb-gizmo .cb-icon-sun { display: none; }
.cb-scene[data-theme="day"] .cb-icon-sun { display: block; }
.cb-scene[data-theme="day"] .cb-icon-moon { display: none; }

.cb-scene-hint {
  position: absolute; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px;
  border: 1px solid var(--cb-line); border-radius: 99px; background: #0c0f0db3;
  color: var(--cb-muted); font-size: 11px; white-space: nowrap; backdrop-filter: blur(10px);
}
.cb-scene-hint svg { width: 16px; height: 16px; }

/* аннотации в кадре: глубина у буквы и факты о конструкции */
.cb-depth {
  position: absolute; margin: 0; color: var(--cb-muted); font-size: 11px; white-space: nowrap;
}
.cb-depth::before {
  content: ''; position: absolute; top: 50%; right: 100%; width: 22px; height: 1px;
  margin-right: 8px; background: #ffffff45;
}
.cb-specs {
  position: absolute; bottom: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; list-style: none;
}
.cb-specs li {
  padding: 6px 12px; border: 1px solid var(--cb-line); border-radius: 99px;
  background: #0c0f0d99; color: var(--cb-muted); font-size: 10.5px; backdrop-filter: blur(8px);
}

/* ==========================================================================
   ВХОД СЦЕНЫ — «включение вывески», один раз при первом показе.
   Логика бита: вывеска встаёт на место → лампа моргает и разгорается →
   подтягивается геометрия → всплывают оверлеи.
   Все состояния — только opacity/transform; класс .cb-js ставит inline-скрипт
   в <head>, поэтому без JS сцена сразу показана в готовом виде.
   ========================================================================== */
.cb-js .cb-sign,
.cb-js .cb-dim,
.cb-js .cb-depth,
.cb-js .cb-chip,
.cb-js .cb-dock,
.cb-js .cb-scene-hint,
.cb-js .cb-specs { transition: opacity .44s cubic-bezier(.16, 1, .3, 1), transform .56s cubic-bezier(.16, 1, .3, 1); }

.cb-js .cb-scene:not([data-live="on"]) .cb-sign { opacity: 0; transform: translateY(16px) scale(.965); }
.cb-js .cb-scene:not([data-live="on"]) .cb-dim,
.cb-js .cb-scene:not([data-live="on"]) .cb-depth,
.cb-js .cb-scene:not([data-live="on"]) .cb-chip,
.cb-js .cb-scene:not([data-live="on"]) .cb-dock,
.cb-js .cb-scene:not([data-live="on"]) .cb-scene-hint,
.cb-js .cb-scene:not([data-live="on"]) .cb-specs { opacity: 0; transform: translateY(6px); }

/* порядок появления задан смыслом: геометрия и цифры — после света */
.cb-scene[data-live="on"] .cb-dim,
.cb-scene[data-live="on"] .cb-depth { transition-delay: .76s; }
.cb-scene[data-live="on"] .cb-dim--h { transition-delay: .82s; }
.cb-scene[data-live="on"] .cb-chip { transition-delay: .86s; }
.cb-scene[data-live="on"] .cb-dock { transition-delay: .92s; }
.cb-scene[data-live="on"] .cb-scene-hint { transition-delay: .98s; }
.cb-scene[data-live="on"] .cb-specs { transition-delay: 1.04s; }

/* разгорание лампы.
   ВАЖНО: анимируем НЕ opacity, а числовую переменную --power. Любая анимация/прозрачность
   на .cb-lines (это прямой 3D-предок слоёв) заставляет браузер схлопнуть preserve-3d,
   и объём букв исчезает навсегда (проверено пиксельным замером: 1 239 красных пикселей
   вместо 17 850 и без выхода за силуэт). */
@property --power {
  syntax: '<number>';
  inherits: true;
  initial-value: 1;
}
@keyframes cb-power {
  0% { --power: 0; }
  18% { --power: .62; }
  30% { --power: .16; }
  46% { --power: .92; }
  58% { --power: .42; }
  72%, 100% { --power: 1; }
}
.cb-js .cb-scene[data-live="on"] { animation: cb-power .62s cubic-bezier(.33, .7, .4, 1) .3s both; }

/* will-change только пока сцена реально двигается */
.cb-scene[data-active="on"][data-playing="on"] .cb-orbit { will-change: transform; }
.cb-scene[data-playing="off"] .cb-orbit,
.cb-scene[data-active="off"] .cb-orbit { will-change: auto; }

/* ===== Сноска ===== */
.cb-disclaimer { width: 100%; margin: 18px 0 0; color: var(--cb-muted-2); font-size: 11.5px; line-height: 1.6; text-wrap: pretty; }

/* ===== Липкая мобильная CTA ===== */

/* ============================ АДАПТИВ ============================ */
@media (max-width: 1100px) {
  .cb-grid { grid-template-columns: minmax(0, 1fr); }
  .cb-scene { min-height: 460px; }
  .cb-price { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; }
}
@media (min-width: 1101px) {
  /* панель не прокручивается: все поля и палитра видны целиком */
  .cb-panel { overflow: visible; }
}
@media (max-width: 700px) {
  .cb-wrap { padding: 0; }
  .cb-grid { gap: 14px; }
  .cb-scene {
    order: -1; position: sticky; top: 8px; z-index: 5;
    height: 34vh; min-height: 220px;
  }
  .cb-scene__grid { background-size: 44px 44px; }
  .cb-dim--v { display: none; }
  .cb-depth, .cb-specs { display: none; }
  .cb-chip { top: 10px; left: 10px; padding: 6px 10px; font-size: 9.5px; }
  .cb-dock { top: 10px; right: 10px; gap: 6px; }
  .cb-gizmo { width: 34px; height: 34px; }
  .cb-gizmo svg { width: 17px; height: 17px; }
  .cb-scene-hint { display: none; }
  .cb-panel { padding: 16px; gap: 16px; }
  .cb-tile__note { display: none; }
  .cb-swatches { grid-template-columns: repeat(auto-fill, minmax(26px, 1fr)); gap: 6px; }
  .cb-swatch__dot { width: 21px; height: 21px; }
  .cb-price__value { font-size: 34px; }
  .cb-price__action .cb-cta { padding: 15px 20px; }
  .cb-call { text-align: left; }
  }

/* ============================ ДВИЖЕНИЕ ============================ */
@keyframes cb-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.cb-field, .cb-price { animation: cb-rise .5s cubic-bezier(.22, 1, .36, 1) both; }
.cb-field:nth-child(2) { animation-delay: .05s; }
.cb-field:nth-child(3) { animation-delay: .1s; }
.cb-field:nth-child(4) { animation-delay: .15s; }
.cb-field:nth-child(5) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  .cb-calc *, .cb-calc *::before, .cb-calc *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important; transition-delay: 0ms !important;
  }
  .cb-orbit { transform: none !important; }
}

/* ============================ СТРАНИЦА «ОБЪЁМНЫЕ БУКВЫ» ============================
   Блок стоит сразу под hero внутри .clv2 (контейнер 1104 px), поэтому своей ширины
   не задаёт. Отступ сверху даёт .cl-section страницы. */
.cb-calc { scroll-margin-top: 84px; }
/* На телефоне сцена липнет к верху — держим её ниже липкой шапки сайта,
   иначе шапка (z-index 1000, --header-height 92px) закрывает верх сцены. */
@media (max-width: 700px) {
  .cb-scene { top: calc(var(--header-height, 92px) + 6px); }
}

/* ссылка назад к таблице цен под блоком */
.cb-backlink { margin: 14px 0 0; font-size: 13px; }
.cb-backlink a {
  color: var(--cb-lime); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--cb-lime) 45%, transparent);
}
.cb-backlink a:hover { border-bottom-color: var(--cb-lime); }