/* ============================================================
   Витрина: движение и свет (дизайн-сессия, 03.10.2026).

   Над «Офисом и объектом в одной карточке» (landing6.css) — слой, который
   делает страницу живой: общий фон из линий (canvas из geo.js), сцена
   первого экрана — окно, телефон и подписи плоскими слоями за курсором,
   счётчики, подсветка карточек у курсора, демо, которые можно нажимать,
   подсказка «сюда можно тыкать». Приём — по сайту cabinetstudio.ru (его
   делала соседняя сессия: свой код без библиотек, ES5, всё необязательное),
   но в светлой гамме витрины: бумага, чернила, синий акцент кабинета.

   Правила, которые держит этот файл:
     1. Без JS страница читается целиком: всё здесь — надстройка.
     2. prefers-reduced-motion — ничего не движется.
     3. На телефоне — тише: линии слабее, подписи спрятаны, слоёв нет
        (там нет курсора), а сцена не меняет раскладку landing6.css.
     4. Перспективы нет: большое окно под наклоном «плыло», а текст в нём
        мылился. Глубину даёт плоский сдвиг слоёв.
   ============================================================ */

:root {
  --fx-grad: linear-gradient(100deg, #3a56d4 0%, #6a55f0 52%, #1f8fe6 100%);
  --fx-glow: 0 0 0 1px rgba(58, 86, 212, 0.08), 0 18px 50px -18px rgba(58, 86, 212, 0.35);
}

/* ---------- общий фон из линий ----------
   Один холст на всю страницу (geo.js): тонкие ленты-пряди, как у
   cabinetstudio.ru, но в светлой гамме. Лежит под всем, не ловит мышь. */
.geo {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}
/* разделы с белой подложкой пропускают фон: линии видны сквозь них приглушённо */
.scatter,
.craft,
.faq,
.foot,
.lp-steps,
.lp-article {
  background: rgba(255, 255, 255, 0.78);
}
/* ---------- отступ под липкую шапку ----------
   Магнит прокрутки — в fx.js (один жест колеса — один плавный шаг к следующему
   блоку). Родной scroll-snap не годится: proximity откатывал медленную
   прокрутку к ближайшей точке («дёргается»), mandatory не выпускал из блока выше
   экрана. Здесь остался только отступ: якоря (#how, #price) встают под шапкой. */
html {
  scroll-padding-top: 68px;
}
@media (max-width: 900px) {
  html {
    scroll-padding-top: 60px;
  }
}

/* первый экран и финал — на самой бумаге: светлое пятно вместо прежних облаков */
.hero::before {
  background: radial-gradient(50% 60% at 50% 30%, rgba(58, 86, 212, 0.1), transparent 70%);
}

/* пятно света за курсором в первом экране: отдельный элемент, а не
   переменные на всём разделе — двигается одним transform */
.fx-spot {
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(106, 85, 240, 0.13), transparent);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
  will-change: transform;
}
.fx-spot.on {
  opacity: 1;
}

/* ---------- сцена первого экрана ---------- */
.hero-scene {
  padding-bottom: 88px;
}
.stage {
  padding-bottom: 0;
}
.scene {
  position: relative;
  padding-bottom: clamp(60px, 7vw, 110px);
}
@media (max-width: 760px) {
  .scene {
    padding-bottom: 40px;
  }
}
/* тень сцены сдвигается за курсором: предмет стоит на столе, а не висит */
.scene-shadow {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: clamp(30px, 4vw, 70px);
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 23, 42, 0.18), transparent);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}

/* плавающие подписи: то, что нарисованный продукт «видит» вокруг себя */
.fl {
  position: absolute;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 17, 21, 0.07);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 16px 36px -14px rgba(15, 23, 42, 0.3);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
  pointer-events: none;
  animation: fx-float 7s ease-in-out infinite;
}
.fl small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
}
.fl i {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-style: normal;
  font-size: 14px;
  background: var(--app-wash);
  color: var(--app-accent);
}
.fl.red i {
  background: var(--app-danger-wash);
  color: var(--app-danger);
}
.fl.ok i {
  background: #e6f3ec;
  color: var(--app-ok);
}
.fl.warm i {
  background: #fbf0e0;
  color: var(--app-warn);
}
.fl-a {
  left: -2%;
  top: 0.8%;
  animation-delay: -1s;
}
.fl-b {
  right: 30%;
  top: 0.8%;
  animation-delay: -3.5s;
  animation-duration: 8s;
}
.fl-c {
  left: 3%;
  bottom: 12%;
  animation-delay: -2s;
  animation-duration: 9s;
}
.fl-d {
  right: 27%;
  bottom: 7%;
  animation-delay: -5s;
}
@keyframes fx-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}
/* подписи живут только над окном и в свободных полях по бокам — на узком
   экране им места нет, и они не должны лезть на кнопки над сценой */
@media (max-width: 1279px) {
  .fl {
    display: none;
  }
}
/* кнопки первого экрана — выше всего, что парит на сцене: их не должно
   закрывать ничто, даже сдвинутая за курсором подпись */
.hero-cta {
  position: relative;
  z-index: 20;
}

/* ---------- полоса цифр ---------- */
.stats {
  position: relative;
  padding-block: 8px clamp(40px, 5vw, 72px);
}
.stats-in {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}
.stat {
  padding: 4px clamp(14px, 2.4vw, 36px);
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat b {
  display: block;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  background: var(--fx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--app-accent);
}
.stat b small {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 4px;
  -webkit-text-fill-color: var(--ink-2);
  color: var(--ink-2);
}
.stat > span {
  display: block;
  margin-top: 8px;
  max-width: 24ch;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
@media (max-width: 760px) {
  .stats-in {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
}

/* ---------- подсветка карточек у курсора ---------- */
[data-spot] {
  position: relative;
}
[data-spot]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(58, 86, 212, 0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
[data-spot]:hover::after {
  opacity: 1;
}

/* ---------- светлый акцент в заголовках ---------- */
.grad {
  background: var(--fx-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--app-accent);
}

/* ---------- полоска прокрутки под шапкой ---------- */
.nav::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  right: 0;
  height: 2px;
  /* масштаб, а не ширина: полоска двигается видеокартой и не пересчитывает раскладку */
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: var(--fx-grad);
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- демо, которые можно нажимать ---------- */
.try-hint {
  position: absolute;
  z-index: 8;
  right: 14px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 100px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgba(15, 17, 21, 0.5);
  pointer-events: none;
  animation: fx-hint 2.6s ease-in-out infinite;
}
.try-hint::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7fe0ae;
}
.try-hint.left {
  right: auto;
  left: 14px;
}
/* на телефоне окно узкое и заголовок занимает всю шапку: подсказка
   уходит под рисунок, как подпись */
@media (max-width: 760px) {
  .try-hint,
  .try-hint.left {
    position: static;
    width: max-content;
    margin: 14px auto 0;
  }
}
.try-hint.done {
  display: none;
}
@keyframes fx-hint {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}
.pillar-vis {
  position: relative;
}

/* ---------- подсказка «сюда можно тыкать» ----------
   Курсор, который доезжает до кнопки, нажимает и пускает круг по воде, —
   и мягкое кольцо вокруг самой кнопки. Живёт, пока человек ничего не
   нажал; после первого нажатия скрипт снимает и то и другое. Текстовая
   плашка (.try-hint) остаётся рядом как подпись. */
.tap {
  position: absolute;
  z-index: 9;
  right: 14px;
  bottom: 8px;
  width: 30px;
  height: 30px;
  pointer-events: none;
}
.tap-fixed {
  right: auto;
  bottom: auto;
}
.tap svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  filter: drop-shadow(0 3px 5px rgba(15, 17, 21, 0.35));
  animation: fx-tapmove 3s ease-in-out infinite;
}
.tap::before {
  content: '';
  position: absolute;
  left: -2px;
  top: -2px;
  width: 22px;
  height: 22px;
  border: 2px solid var(--app-accent);
  border-radius: 50%;
  opacity: 0;
  animation: fx-ripple 3s ease-out infinite;
}
@keyframes fx-tapmove {
  0% {
    translate: 26px 22px;
    scale: 1;
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  42% {
    translate: 0 0;
    scale: 1;
  }
  52% {
    scale: 0.84;
  }
  62% {
    scale: 1;
  }
  88% {
    translate: 0 0;
    opacity: 1;
  }
  100% {
    translate: 0 0;
    opacity: 0;
  }
}
@keyframes fx-ripple {
  0%,
  46% {
    transform: scale(0.3);
    opacity: 0;
  }
  52% {
    opacity: 0.85;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}
.nudge {
  outline: 2px solid rgba(58, 86, 212, 0);
  outline-offset: 2px;
  animation: fx-nudge 2.4s ease-in-out infinite;
}
@keyframes fx-nudge {
  0%,
  100% {
    outline-color: rgba(58, 86, 212, 0);
  }
  50% {
    outline-color: rgba(58, 86, 212, 0.5);
  }
}
@media (prefers-reduced-motion: reduce) {
  .tap svg,
  .tap::before,
  .nudge {
    animation: none;
  }
  .tap::before {
    opacity: 0.5;
    transform: scale(1.4);
  }
  .nudge {
    outline-color: rgba(58, 86, 212, 0.4);
  }
}
.js-play .est td,
.js-play .track .stage-cell,
.fx-range {
  position: relative;
}
.fx-range .tap {
  left: var(--v, 50%);
  right: auto;
  top: 22px;
  bottom: auto;
  margin-left: -4px;
}

/* карточки доски первого экрана нажимаются */
.js-play .hero .board .card {
  cursor: pointer;
}
.js-play .hero .board .card:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}
.js-play .hero .board {
  position: relative;
}

/* доска опоры 01: карточки нажимаются */
.js-play .zoom-board .card {
  cursor: pointer;
  transition:
    transform 0.55s var(--slow),
    box-shadow 0.25s,
    background-color 0.25s;
}
.js-play .zoom-board .card:hover {
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.3);
  transform: translateY(-2px);
}
.js-play .zoom-board .card:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}
.js-play .zoom-board .col-head span {
  transition: transform 0.3s var(--ease);
}
.js-play .zoom-board .col-head span.bump {
  transform: scale(1.35);
}
.js-play .zoom-board .card.hop {
  animation: fx-hop 0.7s var(--slow);
}
@keyframes fx-hop {
  0% {
    box-shadow: 0 0 0 0 rgba(58, 86, 212, 0.45);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(58, 86, 212, 0);
  }
}

/* смета опоры 03: строки включаются */
.js-play .est tbody tr {
  cursor: pointer;
  transition:
    opacity 0.25s,
    background-color 0.2s;
}
.js-play .est tbody tr:hover {
  background: var(--app-wash);
}
.js-play .est tbody tr.off {
  opacity: 0.35;
}
.js-play .est tbody tr.off td:last-child {
  text-decoration: line-through;
}
.js-play .est tbody tr:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: -2px;
}
.est-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
}
.fx-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px 4px 6px;
  border: 1px solid var(--app-line);
  border-radius: 100px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.fx-switch i {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 100px;
  background: #d5d9e2;
  transition: background 0.25s;
}
.fx-switch i::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 17, 21, 0.3);
  transition: transform 0.25s var(--ease);
}
.fx-switch[aria-pressed='true'] i {
  background: var(--app-accent);
}
.fx-switch[aria-pressed='true'] i::after {
  transform: translateX(12px);
}

/* цех опоры 04: этапы нажимаются */
.js-play .track .stage-cell {
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.25s var(--ease);
}
.js-play .track .stage-cell:hover {
  transform: translateY(-2px);
}
.js-play .track .stage-cell:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}

/* деньги опоры 05: бегунок закупок */
.fx-range {
  margin-top: 14px;
}
.fx-range label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.fx-range output {
  font-variant-numeric: tabular-nums;
  color: var(--app-accent);
}
.fx-range input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  margin: 6px 0 0;
  background: transparent;
  cursor: pointer;
}
.fx-range input[type='range']::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 100px;
  background: linear-gradient(to right, var(--app-accent) var(--v, 50%), #dfe3ec var(--v, 50%));
}
.fx-range input[type='range']::-moz-range-track {
  height: 6px;
  border-radius: 100px;
  background: #dfe3ec;
}
.fx-range input[type='range']::-moz-range-progress {
  height: 6px;
  border-radius: 100px;
  background: var(--app-accent);
}
.fx-range input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--app-accent);
  box-shadow: 0 3px 10px -2px rgba(58, 86, 212, 0.5);
}
.fx-range input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--app-accent);
}
.fx-range input[type='range']:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 4px;
  border-radius: 8px;
}
.margin b {
  font-variant-numeric: tabular-nums;
}
.margin.low b {
  color: var(--app-danger);
}

/* чат опоры 06: сообщение отправляется */
.drawer-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}
@media (max-width: 560px) {
  .drawer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.js-play .chat {
  min-width: 0;
}
.fx-send {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}
.fx-send input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--app-line);
  border-radius: 100px;
  background: #fff;
  font: inherit;
  font-size: 12.5px;
  color: var(--ink);
}
.fx-send input:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 1px;
}
.fx-send button {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 100px;
  background: var(--app-accent);
  color: #fff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.js-play .chat .msg.new {
  animation: fx-msg 0.45s var(--slow);
}
@keyframes fx-msg {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* телефон опоры 02: снимок и связь нажимаются */
.fx-shoot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: var(--app-accent);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.fx-shoot:focus-visible,
.js-play .offline:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}
.js-play .offline {
  cursor: pointer;
}
.fx-shots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 8px;
}
.fx-shots i {
  aspect-ratio: 1;
  border-radius: 7px;
  background-color: #dfe3ec;
  background-image: url(/static/img/landing2/kitchen-showcase.jpg);
  background-size: 360%;
  animation: fx-pop 0.4s var(--slow);
}
@keyframes fx-pop {
  from {
    opacity: 0;
    transform: scale(0.6);
  }
}

/* ---------- цена: сколько человек в компании (плашка тёмная, как вся цена) ---------- */
.fx-seats {
  max-width: 440px;
  margin-top: 26px;
  padding: 16px 18px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.fx-seats[hidden] {
  display: none;
}
.fx-seats-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.fx-seats-head output {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.fx-seats .fx-range {
  margin-top: 4px;
}
.fx-seats .fx-range input[type='range']::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #9db0ff var(--v, 50%), rgba(255, 255, 255, 0.2) var(--v, 50%));
}
.fx-seats .fx-range input[type='range']::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
}
.fx-seats .fx-range input[type='range']::-moz-range-progress {
  background: #9db0ff;
}
.fx-seats .fx-range input[type='range']::-webkit-slider-thumb {
  border-color: #9db0ff;
}
.fx-seats .fx-range input[type='range']::-moz-range-thumb {
  border-color: #9db0ff;
}
.fx-people {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 24px;
  margin-top: 10px;
}
.fx-people i {
  width: 14px;
  height: 14px;
  border-radius: 50% 50% 4px 4px;
  background: #9db0ff;
  opacity: 0.9;
  animation: fx-pop 0.3s var(--slow);
}
.fx-seats-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}
.fx-seats-note b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* ---------- вопросы: поиск ---------- */
.fx-faqsearch {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 46px;
  margin: 22px 0 0;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
}
.fx-faqsearch:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: 2px;
}
.fx-faqnone {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 15px;
}
.faq-grid > .fx-hide,
.faq-grid details.fx-hide {
  display: none;
}

/* ---------- покой: без движения всё на месте ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx-spot {
    display: none;
  }
  .fl,
  .try-hint {
    animation: none;
  }
}
