/* ==========================================================================
   Лендинг «Монтаж видеонаблюдения Ezviz» — основная таблица стилей
   mobile-first · токены в tokens.css
   ========================================================================== */

/* ---------- база ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
svg { flex-shrink: 0; }
svg use { pointer-events: none; }
:where(svg[width] > use[href^="#i-"]) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sprite symbol[id^="i-"] { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nowrap { white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: var(--z-modal); padding: 12px 18px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: top var(--d-fast) var(--ease-out); }
.skip-link:focus { top: 12px; }

/* заглушки — должны бросаться в глаза */
.todo {
  display: inline;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: rgba(56, 212, 250, 0.1);
  outline: 1px dashed var(--accent-line);
  outline-offset: -1px;
  color: var(--lens-300);
  font-family: var(--font-mono);
  font-size: 0.78em;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-text-fill-color: var(--lens-300);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.todo--dark { color: var(--lens-700); -webkit-text-fill-color: var(--lens-700); background: rgba(14, 111, 168, 0.08); outline-color: rgba(14, 111, 168, 0.5); }

/* ---------- раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: calc(var(--section-gap) / 2); }
/* секции ниже первого экрана не рендерятся, пока до них не доскроллили */
.section, .footer { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* ---------- типографика ---------- */
.label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.h2 {
  font: 500 var(--fs-h2)/0.98 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h3 {
  font: 500 var(--fs-h3)/1.22 var(--font-display);
  letter-spacing: -0.01em;
}
.rec-dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 0.05em;
  /* мигает ступенчато, как индикатор записи: 2 кадра за цикл вместо 60 — главный поток не будится */
  animation: rec 2s steps(1, end) infinite;
}
@keyframes rec { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.section-label { display: inline-flex; align-items: center; margin-bottom: var(--s-5); padding: 7px 12px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.section-label--dark { color: var(--paper-muted); box-shadow: inset 0 0 0 1px rgba(11, 13, 16, 0.12); }
.section-head { display: grid; gap: var(--s-5); margin-bottom: clamp(32px, 4.5vw, 64px); }
.section-head .section-label { margin-bottom: 0; justify-self: start; }
.section-head__text { max-width: 46ch; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; }

@media (min-width: 1024px) {
  .section-head { grid-template-columns: 1fr minmax(0, 0.62fr); grid-template-rows: auto 1fr; column-gap: var(--s-8); align-items: end; }
  .section-head .section-label { grid-column: 1 / -1; }
  .section-head__text { justify-self: end; }
}

/* ---------- кнопки ---------- */
.btn {
  --dot-bg: var(--accent-ink);
  --dot-fg: var(--accent);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--btn-h);
  padding: 0 calc((var(--btn-h) - var(--btn-dot)) / 2) 0 26px;
  border-radius: var(--r-pill);
  font: 600 16px/1.2 var(--font-body);
  letter-spacing: -0.005em;
  white-space: nowrap;
  touch-action: manipulation;
  transition: background-color var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out), color var(--d-fast), transform var(--d-fast) var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn__dot {
  display: grid;
  place-items: center;
  width: var(--btn-dot);
  height: var(--btn-dot);
  border-radius: 50%;
  background: var(--dot-bg);
  color: var(--dot-fg);
  overflow: hidden;
  position: relative;
}
.btn__dot svg { transition: transform 420ms var(--ease-out); }
.btn:hover .btn__dot svg { animation: arrow-swap 520ms var(--ease-out); }
@keyframes arrow-swap { 0% { transform: translateX(0); } 45% { transform: translateX(140%); } 46% { transform: translateX(-140%); } 100% { transform: translateX(0); } }

.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 0 0 1px rgba(123, 227, 255, 0.6), 0 14px 44px -10px rgba(56, 212, 250, 0.75); }
.btn--ghost { --dot-bg: rgba(255, 255, 255, 0.1); --dot-fg: var(--text); background: rgba(255, 255, 255, 0.05); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.btn--sm { --btn-h: 48px; --btn-dot: 38px; font-size: 15px; padding-left: 20px; }
.btn--block { width: 100%; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn__dot svg { opacity: 0; }
.btn[aria-busy="true"] .btn__dot::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  transition: background-color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.icon-btn:active { transform: scale(0.94); }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--line-strong); transition: border-color var(--d-fast), gap var(--d-base) var(--ease-out); }
.link-arrow:hover { border-color: var(--accent); gap: 14px; }

/* ---------- хедер ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  transition: transform 420ms var(--ease-out), background-color var(--d-base), box-shadow var(--d-base);
}
.header.is-scrolled { background: rgba(5, 6, 7, 0.68); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; gap: var(--s-5); height: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font: 600 12px/1.1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; }
.brand__sub { margin-top: 4px; font: 400 8.5px/1.2 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
@media (max-width: 359px) { .brand__sub { display: none; } }
.brand--lg .brand__mark { width: 44px; height: 44px; }
.brand--lg .brand__name { font-size: 15px; }

.nav { display: none; gap: clamp(16px, 2vw, 30px); margin-left: auto; font-size: 14.5px; color: var(--text-2); }
.nav a { position: relative; padding: 8px 0; white-space: nowrap; transition: color var(--d-fast); }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform var(--d-base) var(--ease-out); }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header__phone { display: none; font-weight: 500; font-size: 15px; white-space: nowrap; }
.header__cta { display: none; }
.header__burger .i-close { display: none; }
.header__burger[aria-expanded="true"] .i-open { display: none; }
.header__burger[aria-expanded="true"] .i-close { display: block; }

@media (min-width: 768px) { .header__cta { display: inline-flex; } }
@media (min-width: 1140px) {
  .nav { display: flex; }
  .nav a[href="#why"] { display: none; } /* 7 пунктов не помещаются до 1360 px */
  .header__actions { margin-left: var(--s-5); }
  .header__burger { display: none; }
  .brand__name { font-size: 14px; }
}
@media (min-width: 1360px) {
  .nav a[href="#why"] { display: inline; }
  .header__phone { display: inline; }
  .header__call { display: none; }
}

/* мобильное меню */
.menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-header) - 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(154, 163, 174, 0.05) 1px, transparent 1px) 0 0 / 100% 48px,
    var(--bg);
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 500 clamp(24px, 7vw, 34px)/1.1 var(--font-display);
  letter-spacing: -0.02em;
  opacity: 0; transform: translateY(16px);
  animation: menu-in 520ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 60ms);
}
.menu__nav a span { font: 400 11px var(--font-mono); color: var(--accent); letter-spacing: 0.08em; }
@keyframes menu-in { to { opacity: 1; transform: none; } }
.menu__foot { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.menu__phone { justify-self: center; font-size: 18px; }
.menu-open { overflow: hidden; }

/* ---------- прелоадер «включение камеры» (~3 с) ---------- */
.preloader { display: none; }
.has-preloader .preloader {
  position: fixed; inset: 0; z-index: var(--z-preloader);
  display: grid; place-items: center;
  background: #000;
  cursor: pointer;
}
.preloader.is-done { animation: pl-out 700ms var(--ease-in-out) forwards; }
@keyframes pl-out { 0%, 45% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
.preloader__frame { position: relative; width: min(66vw, 940px); aspect-ratio: 16 / 9; display: grid; place-items: center; animation: pl-frame 1100ms var(--ease-out) both; }
@keyframes pl-frame { from { transform: scale(1.6); opacity: 0; } 40% { opacity: 1; } }
.preloader .br { width: 48px; height: 48px; border-color: rgba(236, 239, 243, 0.75); }
.preloader__scan { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 2px rgba(56, 212, 250, 0.45); opacity: 0; animation: pl-scan 1900ms var(--ease-in-out) 600ms both; }
@keyframes pl-scan { 0% { transform: translateY(0); opacity: 0; } 10%, 85% { opacity: 1; } 100% { transform: translateY(calc(min(66vw, 940px) * 9 / 16)); opacity: 0; } }
.preloader__osd { position: absolute; top: 20px; display: flex; align-items: center; font: 400 12px var(--font-mono); letter-spacing: 0.1em; color: var(--text-2); opacity: 0; animation: pl-fade 400ms var(--ease-out) 500ms both; }
.preloader__osd--tl { left: 22px; }
.preloader__osd--tr { right: 22px; font-variant-numeric: tabular-nums; }
@keyframes pl-fade { from { opacity: 0; } to { opacity: 1; } }
.preloader__focus { width: 120px; height: 120px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(236, 239, 243, 0.4); display: grid; place-items: center; animation: pl-focus 1500ms var(--ease-out) 250ms both; }
.preloader__focus::before { content: ""; position: absolute; width: 168px; height: 168px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(56, 212, 250, 0.25); animation: pl-ring 2400ms var(--ease-out) 300ms both; }
.preloader__focus span { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 28px 6px var(--accent); animation: lens 1.6s var(--ease-in-out) infinite; }
@keyframes pl-focus { 0% { transform: scale(2.6); filter: blur(10px); opacity: 0; } 50% { filter: blur(3px); opacity: 1; } 75% { transform: scale(0.94); filter: blur(0); } 100% { transform: scale(1); } }
@keyframes pl-ring { 0% { transform: scale(0.6); opacity: 0; } 50% { opacity: 1; } 100% { transform: scale(1.15); opacity: 0.2; } }
.preloader__log { position: absolute; left: 22px; bottom: 20px; display: grid; gap: 6px; font: 400 11px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.preloader__log li { opacity: 0; transform: translateX(-8px); animation: pl-log 360ms var(--ease-out) both; }
.preloader__log li::before { content: "\203A  "; color: var(--accent); }
.preloader__log li:nth-child(1) { animation-delay: 450ms; }
.preloader__log li:nth-child(2) { animation-delay: 1100ms; }
.preloader__log li:nth-child(3) { animation-delay: 1750ms; }
.preloader__log li:nth-child(4) { animation-delay: 2400ms; color: var(--text); }
@keyframes pl-log { to { opacity: 1; transform: none; } }
.preloader__pct { position: absolute; right: 22px; bottom: 34px; font: 500 clamp(40px, 5vw, 72px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.preloader__pct small { margin-left: 4px; font-size: 0.4em; color: var(--text-3); }
.preloader__bar { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: rgba(236, 239, 243, 0.12); }
.preloader__bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.preloader__shutter { position: absolute; left: 0; right: 0; height: 50%; background: #000; transform: scaleY(0); z-index: 2; }
.preloader__shutter--top { top: 0; transform-origin: top; }
.preloader__shutter--bottom { bottom: 0; transform-origin: bottom; }
.preloader.is-done .preloader__shutter { animation: pl-shutter 420ms var(--ease-in-out) both; }
@keyframes pl-shutter { 0% { transform: scaleY(0); } 100% { transform: scaleY(1); } }

/* угловые скобки видоискателя */
.br { position: absolute; width: 28px; height: 28px; border: 0 solid rgba(236, 239, 243, 0.34); pointer-events: none; }
.br--tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.br--tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.br--bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.br--br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }

/* ---------- курсор-видоискатель ---------- */
.lock { display: none; }
.has-lock .lock {
  display: block;
  position: fixed; left: 0; top: 0;
  z-index: var(--z-cursor);
  width: var(--w, 28px); height: var(--h, 28px);
  transform: translate3d(var(--x, -100px), var(--y, -100px), 0);
  pointer-events: none;
  opacity: var(--o, 0);
  transition: opacity 240ms;
}
.lock i { position: absolute; width: 9px; height: 9px; border: 0 solid var(--lock-c, rgba(236, 239, 243, 0.85)); transition: border-color 200ms; }
.lock i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.lock i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.lock i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.lock i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }
.lock.is-locked { --lock-c: var(--accent); }
.lock.is-light { --lock-c: rgba(11, 13, 16, 0.7); }

/* ==========================================================================
   CAM 01 · ПЕРВЫЙ ЭКРАН
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero__bg { position: absolute; left: 0; right: 0; top: 0; height: 64svh; z-index: -1; overflow: hidden; container-type: size; }
.hero__media {
  position: absolute;
  right: -14cqw;
  top: 50%;
  width: max(100cqw, 177.6cqh);
  aspect-ratio: 1920 / 1081;
  translate: 0 -50%;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__lens {
  position: absolute;
  left: 66.6%; top: 44.8%;
  width: 7%; aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 227, 255, 0.85) 0%, rgba(56, 212, 250, 0.35) 22%, rgba(56, 212, 250, 0) 62%);
  animation: lens 4.2s var(--ease-in-out) infinite;
  will-change: transform, opacity;
  pointer-events: none;
}
@keyframes lens { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0.65) 0%, rgba(5, 6, 7, 0) 26%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 7, 0.75) 18%, rgba(5, 6, 7, 0) 52%);
}

.hero__osd { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 8px); height: calc(64svh - var(--header-h) - 40px); pointer-events: none; }
.osd { position: absolute; top: 14px; font: 400 10.5px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--text-2); white-space: nowrap; }
.osd--tl { left: 16px; display: flex; align-items: center; }
.osd--tr { right: 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .osd__date { display: none; } }

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  container-type: inline-size;
}
.hero__copy { order: 2; display: grid; gap: var(--s-4); }
.hero__label { display: none; }
.hero__title {
  font: 500 var(--fs-h1)/1.05 var(--font-display);
  letter-spacing: -0.025em;
  max-width: 15ch;
  text-wrap: balance;
}
.hero__lead { max-width: 52ch; color: var(--text-2); font-size: var(--fs-lead); line-height: 1.5; }
.hero__actions { display: grid; gap: 10px; margin-top: var(--s-2); }
.hero__actions .btn { width: 100%; }

.hero__meta { order: 3; display: flex; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); font: 400 10.5px/1.4 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.hero__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta-mid { display: none !important; }
.hero__scroll { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }

.hero__display {
  order: 1;
  margin: 0 0 var(--s-5) -0.04em;
  /* кегль подогнан по ширине без JS: ширина «НАДЁЖНЫЙ» = 7.847 кегля */
  font: 700 calc(100cqw / 7.847 * 0.985)/0.9 var(--font-display);
  letter-spacing: -0.045em;
  white-space: nowrap;
  padding-top: 0.12em;
  /* высота задана явно: подмена шрифта не меняет блок и не сдвигает текст под ним (CLS) */
  height: calc(2 * 0.9em + 0.12em);
  user-select: none;
}
.hero__word { display: block; height: 0.9em; }
.hero__display .ch, .footer__giant .ch { display: inline-block; padding-top: 0.22em; margin-top: -0.22em; }
.hero__display, .hero__display .ch {
  background: var(--chrome-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 560px) {
  .hero__actions { grid-auto-flow: column; justify-content: start; }
  .hero__actions .btn { width: auto; }
}

@media (min-width: 1024px) {
  .hero__bg { inset: 0; height: auto; }
  .hero__media { right: 0; }
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.6) 34%, rgba(5, 6, 7, 0) 60%),
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 7, 0.4) 22%, rgba(5, 6, 7, 0) 44%),
      linear-gradient(180deg, rgba(5, 6, 7, 0.55) 0%, rgba(5, 6, 7, 0) 22%);
  }
  .hero__osd { top: calc(var(--header-h) + 4px); bottom: 18px; height: auto; }
  .osd { top: 18px; font-size: 11px; }
  .osd--tl { left: 22px; }
  .osd--tr { right: 22px; }
  .hero .br { width: 36px; height: 36px; }
  .hero__inner { justify-content: space-between; padding-top: clamp(64px, 11vh, 140px); padding-bottom: 28px; }
  .hero__copy { order: 1; gap: var(--s-5); }
  .hero__label { display: block; }
  .hero__title { max-width: 13.5ch; }
  .hero__lead { max-width: 44ch; }
  .hero__meta { order: 2; margin-top: auto; padding-top: var(--s-6); }
  .hero__meta-mid { display: inline-flex !important; }
  /* «НАДЁЖНЫЙ ЩИТ» в одну строку = 11.164 кегля */
  .hero__display { order: 3; margin: var(--s-3) 0 0 -0.04em; font-size: calc(100cqw / 11.164 * 0.985); line-height: 0.86; height: calc(0.86em + 0.12em); }
  .hero__word { display: inline; height: auto; }
}

/* ---------- бегущая строка ---------- */
.ticker { position: relative; overflow: hidden; padding-block: clamp(18px, 2.4vw, 32px); border-block: 1px solid var(--line); background: var(--bg-raised); }
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; align-items: center; flex-shrink: 0; }
.ticker span { padding-inline: clamp(18px, 2.4vw, 36px); font: 500 clamp(26px, 4.6vw, 64px)/1 var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.ticker .is-outline { color: transparent; -webkit-text-stroke: 1px var(--chrome-300); }
.ticker i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 16px var(--accent); flex-shrink: 0; }

/* ==========================================================================
   CAM 02 · МАНИФЕСТ
   ========================================================================== */
.manifest { padding-top: var(--section-gap); }
.manifest__text {
  max-width: 22ch;
  font: 400 clamp(26px, 4.1vw, 60px)/1.1 var(--font-display);
  letter-spacing: -0.03em;
  text-wrap: pretty;
}
@media (min-width: 768px) { .manifest__text { max-width: 27ch; } }
.manifest__text em { font-style: normal; }
.js .manifest__text .w { color: var(--chrome-500); transition: color 450ms linear; }
.js .manifest__text .w.is-lit { color: var(--text); }
.js .manifest__text em .w.is-lit { color: var(--accent); }
.manifest__foot { display: grid; gap: var(--s-7); margin-top: clamp(40px, 5vw, 80px); }
.manifest__note { max-width: 44ch; color: var(--text-2); font-size: var(--fs-lead); }
.readouts { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
.readout { display: flex; flex-direction: column-reverse; gap: 10px; padding-top: var(--s-4); border-top: 1px solid var(--line-strong); }
.readout dt { font: 400 var(--fs-label)/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.readout dd { font: 500 clamp(34px, 4.4vw, 60px)/1 var(--font-display); letter-spacing: -0.04em; }
.readout dd small { font-size: 0.4em; letter-spacing: 0; color: var(--text-2); }
@media (min-width: 1024px) {
  .manifest__foot { grid-template-columns: 0.8fr 1.2fr; align-items: end; }
  .readouts { grid-template-columns: repeat(4, 1fr); }
}

/* ==========================================================================
   CAM 03 · ПОЧЕМУ EZVIZ (bento)
   ========================================================================== */
.card {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 40%), var(--surface);
  box-shadow: var(--edge);
}
[data-spot]::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(56, 212, 250, 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 400ms;
  pointer-events: none;
}
[data-spot]:hover::before { opacity: 1; }

.bento { display: grid; gap: var(--grid-gap); }
.bento__item { display: flex; flex-direction: column; gap: var(--s-5); padding: clamp(20px, 2.2vw, 32px); overflow: hidden; }
.card__head { display: grid; gap: var(--s-3); align-content: start; position: relative; z-index: 1; }
.card__head .label { color: var(--accent); }
.card__text { max-width: 52ch; color: var(--text-2); }
.card__caption { margin-top: calc(var(--s-3) * -1); font: 400 10px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--night, .bento__item--models { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(12, 1fr); }
  .bento__item--night { grid-column: span 8; }
  .bento__item--detect { grid-column: span 4; }
  .bento__item--app { grid-column: span 4; }
  .bento__item--models { grid-column: span 8; }
  .bento__item--night { display: grid; grid-template-columns: 0.8fr 1.2fr; grid-template-rows: 1fr auto; column-gap: var(--s-6); }
  .bento__item--night .card__head { grid-row: 1 / span 2; align-self: center; }
  .bento__item--night .card__caption { margin-top: 0; }
  /* демо тянется на всю высоту карточки — без пустоты под ним */
  .bento__item--night .night { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .bento__item--models { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); column-gap: var(--s-5); align-items: stretch; }
  .bento__item--models .card__head { align-self: center; }
  .bento__item--models .reel { margin: calc(clamp(20px, 2.2vw, 32px) * -1) calc(clamp(20px, 2.2vw, 32px) * -1) calc(clamp(20px, 2.2vw, 32px) * -1) 0; height: calc(100% + 2 * clamp(20px, 2.2vw, 32px)); }
}

/* ночное видение */
.night {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.night__layer { position: absolute; inset: 0; }
.night__layer .scene, .phone__live .scene { width: 100%; height: 100%; }
.night__layer--ir { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: grayscale(1) contrast(1.45) brightness(0.92); }
.night__layer--ir::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.night__tag { position: absolute; top: 12px; padding: 5px 9px; border-radius: var(--r-xs); background: rgba(5, 6, 7, 0.6); font: 400 10px var(--font-mono); letter-spacing: 0.08em; color: var(--text); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.night__tag--ir { left: 12px; }
.night__tag--color { right: 12px; color: var(--accent); }
.night__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 12px rgba(255, 255, 255, 0.5); }
.night__handle:focus-visible { box-shadow: 0 0 0 3px var(--accent); border-radius: 0; }
.night__knob { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--text); color: var(--ink-950); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.night__knob svg { width: 14px; }

/* детекция */
.detect { position: relative; margin-top: auto; aspect-ratio: 400 / 260; border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.detect__svg { width: 100%; height: 100%; }
.detect__osd { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; font: 400 10px var(--font-mono); letter-spacing: 0.08em; color: var(--text-2); }
.detect__ignore { fill: none; stroke: var(--chrome-500); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0.8; }
.detect__ignore-t { font: 400 8px var(--font-mono); letter-spacing: 0.06em; fill: var(--chrome-500); }
.detect__box { fill: none; stroke: var(--accent); stroke-width: 1.6; }
.detect__tag rect { fill: var(--accent); }
.detect__tag text { font: 500 8.5px var(--font-mono); letter-spacing: 0.06em; fill: var(--accent-ink); }
.detect__branch { transform-box: view-box; transform-origin: 352px 120px; }
.detect__person, .detect__cat { transform-box: view-box; }
.detect__box, .detect__tag { opacity: 0; }
.detect__toast {
  position: absolute; left: 50%; top: 12px;
  display: flex; align-items: center; gap: 10px;
  min-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(17, 20, 24, 0.86);
  box-shadow: 0 0 0 1px var(--line-strong), 0 16px 32px -12px #000;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 12.5px; line-height: 1.3; color: var(--text-2);
  translate: -50% -140%;
  opacity: 0;
}
.detect__toast b { color: var(--text); font-weight: 600; }
.detect__toast svg { color: var(--accent); }

.is-playing .detect__person { animation: dt-walk 8s linear infinite; }
.is-playing .detect__body { animation: dt-bob 0.5s ease-in-out infinite alternate; }
.is-playing .detect__box, .is-playing .detect__tag { animation: dt-box 8s linear infinite; }
.is-playing .detect__cat { animation: dt-cat 8s linear infinite; }
.is-playing .detect__branch { animation: dt-branch 2.6s ease-in-out infinite alternate; }
.is-playing .detect__toast { animation: dt-toast 8s var(--ease-out) infinite; }
@keyframes dt-walk { 0% { transform: translateX(-60px); opacity: 1; } 55% { transform: translateX(244px); } 84% { transform: translateX(244px); opacity: 1; } 92%, 100% { transform: translateX(244px); opacity: 0; } }
@keyframes dt-bob { to { transform: translateY(-2px); } }
@keyframes dt-box { 0%, 14% { opacity: 0; } 16% { opacity: 1; } 18% { opacity: 0.4; } 20%, 84% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes dt-cat { 0%, 22% { transform: translateX(440px); } 46%, 100% { transform: translateX(-80px); } }
@keyframes dt-branch { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes dt-toast { 0%, 56% { opacity: 0; translate: -50% -140%; } 60%, 84% { opacity: 1; translate: -50% 0; } 90%, 100% { opacity: 0; translate: -50% -140%; } }

/* телефон */
.phone { display: grid; place-items: center; margin-top: auto; padding-top: var(--s-3); }
.phone__frame {
  position: relative;
  width: 224px; height: 420px;
  padding: 40px 12px 14px;
  border-radius: 36px;
  background: #07090b;
  box-shadow: 0 0 0 1px var(--line-strong), inset 0 0 0 5px #14171b, 0 40px 80px -30px #000;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.phone__notch { position: absolute; top: 12px; left: 50%; translate: -50% 0; width: 72px; height: 20px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px #1d2126; }
.phone__status { position: absolute; top: 14px; left: 22px; right: 22px; display: flex; justify-content: space-between; font: 500 10px var(--font-mono); color: var(--text-2); }
.phone__live { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.phone__live .scene { transform-origin: 60% 60%; }
.is-playing .phone__live .scene { animation: ph-pan 12s ease-in-out infinite alternate; }
@keyframes ph-pan { from { transform: scale(1.05) translateX(2%); } to { transform: scale(1.25) translateX(-6%); } }
.phone__live-tag { position: absolute; left: 8px; top: 8px; display: flex; align-items: center; padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, 0.5); font: 400 8.5px var(--font-mono); letter-spacing: 0.06em; }
.phone__live-tag .rec-dot { width: 5px; height: 5px; margin-right: 6px; }
.phone__push {
  position: absolute; left: 10px; right: 10px; top: 40px; z-index: 2;
  display: flex; gap: 10px; align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(30, 34, 40, 0.92);
  box-shadow: 0 10px 30px -8px #000, 0 0 0 1px var(--line-strong);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 11px; line-height: 1.3; color: var(--text-2);
  transform: translateY(-140%); opacity: 0;
}
.phone__push b { color: var(--text); }
.phone__push svg { color: var(--accent); }
.is-playing .phone__push { animation: ph-push 6s var(--ease-out) infinite; }
@keyframes ph-push { 0%, 18% { transform: translateY(-140%); opacity: 0; } 24%, 66% { transform: none; opacity: 1; } 74%, 100% { transform: translateY(-140%); opacity: 0; } }
.phone__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone__tiles span { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 14px; background: #111418; box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; color: var(--text-2); }
.phone__tiles svg { color: var(--text); }
.phone__talk { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.phone__mic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.phone__wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 24px; }
.phone__wave i { flex: 1; height: 30%; border-radius: 2px; background: var(--accent); opacity: 0.8; }
.is-playing .phone__wave i { animation: wave 900ms ease-in-out infinite alternate; }
.phone__wave i:nth-child(3n) { animation-delay: -300ms; }
.phone__wave i:nth-child(3n+1) { animation-delay: -600ms; }
.phone__wave i:nth-child(4n) { animation-duration: 700ms; }
@keyframes wave { from { height: 18%; } to { height: 100%; } }
.phone__talk-t { font-size: 11px; font-weight: 600; color: var(--text); }

/* лента камер */
.facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.facts li { padding: 6px 11px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.bento__item--models .link-arrow { justify-self: start; margin-top: var(--s-3); }
.reel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 300px;
  margin: 0 calc(clamp(20px, 2.2vw, 32px) * -1) calc(clamp(20px, 2.2vw, 32px) * -1);
  padding-block: var(--s-6) var(--s-5);
  overflow: hidden;
  background: radial-gradient(60% 70% at 50% 62%, rgba(255, 255, 255, 0.07), transparent 70%);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* «полка», на которой стоят камеры */
.reel::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(var(--s-5) + 30px); height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong) 20%, var(--line-strong) 80%, transparent); }
.reel__track { display: flex; align-items: flex-end; gap: clamp(32px, 4vw, 64px); width: max-content; padding-inline: 32px; }
.is-playing .reel__track, .reel.is-playing .reel__track { animation: reel 46s linear infinite; }
.reel__item { display: flex; flex-direction: column; align-items: center; gap: 14px; flex-shrink: 0; }
.reel__item img { height: clamp(160px, 16vw, 250px); width: auto; max-width: none; filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.6)); transition: transform 500ms var(--ease-out); }
.reel__item:hover img { transform: translateY(-8px); }
.reel__item figcaption { font: 400 10.5px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
@keyframes reel { to { transform: translateX(-50%); } }

/* ==========================================================================
   CAM 04 · ЭТАПЫ (схема + шаги)
   ========================================================================== */
.steps__layout { display: grid; gap: var(--s-6); }
/* на мобильных схема не липнет (иначе закрывает текст шагов), а проигрывает этапы сама */
.steps__plan { position: relative; }
.plan { position: relative; border-radius: var(--r-lg); background: var(--bg-raised); box-shadow: var(--edge); padding: 12px; overflow: hidden; }
.plan__bar { display: flex; justify-content: space-between; gap: var(--s-3); padding: 2px 4px 10px; }
.plan__stage { color: var(--accent); }
.plan__svg { width: 100%; height: auto; margin-inline: auto; }
.plan__progress { display: flex; gap: 4px; padding: 10px 4px 0; }
.plan__progress i { flex: 1; height: 2px; border-radius: 2px; background: var(--line-strong); transition: background-color 300ms; }
.plan__progress i.is-on { background: var(--accent); box-shadow: 0 0 8px rgba(56, 212, 250, 0.6); }
.plan__checks { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 22px; padding: 10px 4px 2px; }
.plan__check { display: inline-flex; align-items: center; gap: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); opacity: 0; transform: translateY(6px); transition: opacity 400ms, transform 400ms var(--ease-out); }
.plan.is-s5 .plan__check { opacity: 1; transform: none; }
.plan.is-s5 .plan__check:nth-child(2) { transition-delay: 120ms; }
.plan.is-s5 .plan__check:nth-child(3) { transition-delay: 240ms; }

.plan__fence { fill: none; stroke: var(--chrome-300); stroke-width: 1.5; stroke-dasharray: 7 5; }
.plan__gate { fill: none; stroke: var(--chrome-300); stroke-width: 1.5; }
.plan__wall { fill: rgba(255, 255, 255, 0.025); stroke: var(--chrome-200); stroke-width: 2; }
.plan__wall--in { fill: none; stroke: var(--chrome-500); stroke-width: 1; }
.plan__door { stroke: var(--bg-raised); stroke-width: 5; }
.plan__soft { fill: rgba(255, 255, 255, 0.035); }
.plan__car { fill: none; stroke: var(--chrome-500); stroke-width: 1.2; }
.plan__tree { fill: rgba(154, 163, 174, 0.05); stroke: var(--chrome-500); stroke-dasharray: 2 3; }
.plan__t { font: 500 9px var(--font-mono); letter-spacing: 0.08em; fill: var(--text-3); }
.plan__t--warn { fill: var(--chrome-200); }
.plan__t--accent { fill: var(--accent); }
.plan__t--cam { fill: var(--text); font-size: 10px; }
.plan__blind { fill: url(#plan-hatch); stroke: rgba(236, 239, 243, 0.4); stroke-dasharray: 3 3; transition: opacity 700ms; }
.plan__scan { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 6px var(--accent)); }
.plan__cam circle { fill: var(--accent); stroke: var(--bg-raised); stroke-width: 3; filter: drop-shadow(0 0 6px rgba(56, 212, 250, 0.9)); }
.plan__cam { transform-box: fill-box; transform-origin: 0 50%; opacity: 0; transform: scale(0.4); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: var(--d, 0s); }
.plan__cable { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1400ms var(--ease-in-out); }
.plan__cable:nth-child(2) { transition-delay: 150ms; }
.plan__cable:nth-child(3) { transition-delay: 300ms; }
.plan__cable:nth-child(4) { transition-delay: 450ms; }
.plan__hub rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.plan__fov { fill: rgba(56, 212, 250, 0.13); stroke: rgba(56, 212, 250, 0.45); stroke-width: 1; }
.plan__zone { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 4; }
.plan__wifi { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }
.plan__phone rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.plan__phone path { stroke: var(--accent); stroke-width: 1.5; stroke-linecap: round; }
.plan__link { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 4 5; }

.plan__s1, .plan__s3, .plan__s4, .plan__s5 { opacity: 0; transition: opacity 600ms var(--ease-out); }
.plan__s3 { opacity: 1; }
.plan__s3 .plan__hub, .plan__s3 > .plan__t { opacity: 0; transition: opacity 500ms 600ms; }
.plan.is-s1 .plan__s1 { opacity: 1; }
.plan.is-s1:not(.is-s2) .plan__scan { animation: scan 2.4s var(--ease-in-out) infinite alternate; }
@keyframes scan { 0% { opacity: 0.9; transform: translateX(0); } 100% { opacity: 0.9; transform: translateX(556px); } }
.plan.is-s2 .plan__cam { opacity: 1; transform: none; }
.plan.is-s3 .plan__cable { stroke-dashoffset: 0; }
.plan.is-s3 .plan__s3 .plan__hub, .plan.is-s3 .plan__s3 > .plan__t { opacity: 1; }
.plan.is-s4 .plan__s4 { opacity: 1; }
.plan.is-s4 .plan__blind { opacity: 0.12; }
.plan.is-s4 .plan__s1 .plan__t--warn { opacity: 0; transition: opacity 400ms; }
.plan.is-s4 .plan__zone { animation: ants 1s linear infinite; }
@keyframes ants { to { stroke-dashoffset: -20; } }
.plan.is-s5 .plan__s5 { opacity: 1; }
.plan.is-s5 .plan__link { animation: ants 1.2s linear infinite; }
.plan.is-s5 .plan__wifi { animation: rec 1.6s steps(1, end) infinite; }
/* схема за экраном — бесконечные SVG-анимации на паузе */
.plan:not(.is-near) * { animation-play-state: paused !important; }

.steps__list { display: grid; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-4);
  padding-block: var(--s-6);
  border-top: 1px solid var(--line);
  transition: border-color 500ms var(--ease-out);
}
.step.is-active { border-top-color: var(--accent-line); }
@media (max-width: 1023px) { .step { cursor: pointer; -webkit-tap-highlight-color: transparent; } }
.step__num { font: 400 12px/2 var(--font-mono); letter-spacing: 0.06em; color: var(--text-3); transition: color 300ms; }
.step.is-active .step__num { color: var(--accent); }
.step__body { display: grid; gap: var(--s-3); }
.step h3 { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); transition: color 500ms var(--ease-out); }
.step.is-active h3, .step.is-done h3 { color: var(--text); }
.step h3 svg { margin-top: 2px; color: var(--text-3); transition: color 500ms; }
.step.is-active h3 svg, .step.is-done h3 svg { color: var(--accent); }
.step p { color: var(--text-2); max-width: 52ch; }
.step__result { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; justify-self: start; margin-top: var(--s-2); padding: 10px 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); color: var(--text) !important; font-size: 14.5px; }
.step__result span { font: 400 10px var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

@media (min-width: 1024px) {
  .steps__layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .steps__plan { position: sticky; top: calc(var(--header-h) + 32px); }
  .plan__progress { display: none; }
  .plan { padding: 18px; }
  .plan__svg { max-height: calc(100svh - var(--header-h) - 170px); }
  .step { min-height: 46svh; align-content: center; grid-template-columns: 60px 1fr; padding-block: var(--s-7); }
  .step:last-child { min-height: 56svh; }
}

/* ==========================================================================
   CAM 05 · ОБЪЕКТЫ
   ========================================================================== */
.objects__layout { display: grid; gap: var(--s-5); }
.objects__tabs { display: flex; gap: 8px; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter); scroll-snap-type: x proximity; scrollbar-width: none; }
.objects__tabs::-webkit-scrollbar { display: none; }
.otab {
  display: inline-flex; align-items: center; gap: 10px;
  flex-shrink: 0;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text-2);
  font-weight: 500; font-size: 15px;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color var(--d-base), box-shadow var(--d-base), color var(--d-base);
}
.otab svg { width: 20px; height: 20px; }
.otab:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.otab[aria-selected="true"] { background: var(--accent-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-line); }
.otab[aria-selected="true"] > svg:first-child { color: var(--accent); }
.otab__arrow { display: none; }

.objects__panels { position: relative; }
.opanel { display: grid; gap: var(--s-5); padding: clamp(22px, 3vw, 44px); border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(56, 212, 250, 0.06), rgba(56, 212, 250, 0) 40%), var(--surface); box-shadow: var(--edge); }
.opanel[hidden] { display: none; }
.opanel.is-entering { animation: panel-in 560ms var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.opanel.is-entering .opanel__cams figure { animation: cam-in 640ms var(--ease-out) backwards; }
.opanel.is-entering .opanel__cams figure:nth-child(2) { animation-delay: 60ms; }
.opanel.is-entering .opanel__cams figure:nth-child(3) { animation-delay: 120ms; }
.opanel.is-entering .opanel__cams figure:nth-child(4) { animation-delay: 180ms; }
@keyframes cam-in { from { opacity: 0; transform: translateY(24px) scale(0.96); } }
.opanel__top { display: flex; justify-content: space-between; align-items: flex-start; }
.opanel__icon { width: 52px; height: 52px; color: var(--chrome-300); }
.opanel__icon use { stroke-width: 1; }
.opanel__title { font: 500 clamp(24px, 3vw, 44px)/1.04 var(--font-display); letter-spacing: -0.03em; max-width: 16ch; }
.opanel__sub { margin-top: var(--s-2); }
.opanel__sub { font: 400 var(--fs-label) var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.opanel__cams { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.opanel__cams figure { display: grid; grid-template-rows: 1fr auto; gap: 10px; padding: 14px; border-radius: var(--r-md); background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0) 64%), rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line); }
.opanel__cams picture { display: block; width: 100%; aspect-ratio: 1; min-width: 0; }
.opanel__cams img { width: 100%; height: 100%; object-fit: contain; padding: 6%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.55)); transition: transform 500ms var(--ease-out); }
.opanel__cams figure:hover img { transform: translateY(-6px) scale(1.04); }
.opanel__cams figcaption { display: grid; gap: 2px; font: 500 14px var(--font-display); letter-spacing: -0.01em; }
.opanel__cams figcaption span { font: 400 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.opanel .btn { justify-self: start; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text); font-size: 17px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.28em; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338d4fa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; box-shadow: inset 0 0 0 1px var(--accent-line); }
.ticks--sm li { font-size: 15px; color: var(--text-2); }

@media (min-width: 768px) {
  .opanel__cams { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .objects__layout { grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr); gap: var(--grid-gap); align-items: start; }
  .objects__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 10px; position: sticky; top: calc(var(--header-h) + 24px); }
  .otab { width: 100%; min-height: 72px; padding: 0 22px; border-radius: var(--r-md); font-size: 16px; white-space: normal; text-align: left; }
  .otab > span { flex: 1; }
  .otab__arrow { display: block; opacity: 0; transform: translateX(-8px); transition: opacity var(--d-base), transform var(--d-base) var(--ease-out); }
  .otab[aria-selected="true"] .otab__arrow, .otab:hover .otab__arrow { opacity: 1; transform: none; }
  .opanel { grid-template-columns: 1fr 1fr; column-gap: var(--s-7); min-height: 520px; }
  .opanel__top { grid-column: 1 / -1; }
  .opanel__title { grid-column: 1; }
  .opanel .ticks { grid-column: 2; grid-row: 2 / span 1; align-self: end; }
  .opanel__sub, .opanel__cams { grid-column: 1 / -1; }
  .opanel .btn { grid-column: 1; }
}


/* сетка «видеонаблюдение для …» — реальные камеры Ezviz вместо интерьерных фото */
.ogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(40px, 5vw, 72px); }
.ocard {
  position: relative;
  display: flex; flex-direction: column;
  aspect-ratio: 1 / 1.02;
  padding: 14px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: radial-gradient(110% 80% at 88% 100%, rgba(56, 212, 250, 0.14), transparent 58%), linear-gradient(160deg, #171b20 0%, #0d0f12 100%);
  box-shadow: var(--edge);
  transition: box-shadow var(--d-base), transform var(--d-base) var(--ease-out);
}
.ocard:hover { box-shadow: inset 0 0 0 1px var(--accent-line), 0 24px 48px -28px rgba(0, 0, 0, 0.9); }
.ocard__title { position: relative; z-index: 1; max-width: 88%; font: 600 15px/1.25 var(--font-body); color: var(--text); text-wrap: balance; }
.ocard__model { position: relative; z-index: 1; margin-top: 6px; font: 400 9.5px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.ocard picture { position: absolute; right: -4%; bottom: -3%; width: 66%; height: 64%; display: flex; align-items: flex-end; justify-content: flex-end; }
.ocard--wide picture { width: 88%; height: 52%; right: -6%; }
.ocard img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.6)); transition: transform 500ms var(--ease-out); }
.ocard:hover img { transform: translate(-4px, -6px) scale(1.04); }
.objects__sub { margin-bottom: var(--s-4); }
@media (max-width: 767px) { .ocard__pre { display: none; } }
@media (min-width: 768px) {
  .ogrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
  .ocard { aspect-ratio: 1.25; padding: 20px; }
  .ocard__title { font-size: 17px; max-width: 70%; }
  .ocard__model { font-size: 10px; }
}
@media (min-width: 1100px) { .ogrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ==========================================================================
   ОБОРУДОВАНИЕ (светлая панель)
   ========================================================================== */
.models {
  margin-inline: clamp(6px, 1vw, 16px);
  padding-block: clamp(64px, 9vw, 140px);
  border-radius: clamp(24px, 3vw, 44px);
  background: var(--paper);
  color: var(--paper-ink);
  --text-2: var(--paper-muted);
  --text-3: var(--paper-muted);
  --line: rgba(11, 13, 16, 0.1);
  --line-strong: rgba(11, 13, 16, 0.18);
}
.models__head { display: grid; gap: var(--s-5); margin-bottom: var(--s-6); }
.models__note { max-width: 50ch; color: var(--paper-muted); font-size: var(--fs-lead); line-height: 1.5; }
.models__foot { margin-top: var(--s-6); font-size: 13px; color: var(--paper-muted); }
@media (min-width: 1024px) {
  .models__head { grid-template-columns: 1fr minmax(0, 0.55fr); align-items: end; column-gap: var(--s-8); }
}

.filters { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) var(--s-6); padding: 4px var(--gutter); scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px rgba(11, 13, 16, 0.16);
  color: var(--paper-ink);
  font-size: 15px; font-weight: 500;
  white-space: nowrap;
  transition: background-color var(--d-base), color var(--d-base), box-shadow var(--d-base);
}
.chip span { font: 400 11px var(--font-mono); color: var(--paper-muted); }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(11, 13, 16, 0.4); }
.chip.is-on { background: var(--paper-ink); color: var(--paper); box-shadow: none; }
.chip.is-on span { color: var(--chrome-300); }
.models :focus-visible { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--lens-700); }

.catalog {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(80%, 320px);
  gap: 12px;
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.catalog::-webkit-scrollbar { display: none; }
.mcard {
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 13, 16, 0.06), 0 20px 40px -32px rgba(11, 13, 16, 0.4);
  overflow: hidden;
  scroll-snap-align: start;
  transition: box-shadow 400ms var(--ease-out), transform 400ms var(--ease-out), opacity 300ms;
}
.mcard.is-hidden { display: none; }
.mcard.is-shown { animation: mcard-in 500ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes mcard-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.mcard__img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 14% 16% 10%; background: radial-gradient(circle at 50% 55%, #ffffff 0%, #f1f3f5 48%, #e2e5e9 100%); }
.mcard__img picture { display: block; width: 100%; height: 100%; min-height: 0; }
.mcard__img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 16px rgba(11, 13, 16, 0.18)); transition: transform 600ms var(--ease-out); }
.mcard:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(11, 13, 16, 0.08), 0 40px 60px -36px rgba(11, 13, 16, 0.5); }
.mcard:hover .mcard__img img { transform: translateY(-6px) scale(1.05); }
.mcard__res { position: absolute; left: 14px; top: 14px; padding: 5px 9px; border-radius: var(--r-xs); background: var(--paper-ink); color: var(--paper); font: 400 10px var(--font-mono); letter-spacing: 0.06em; }
.mcard__tags { position: absolute; right: 14px; top: 14px; display: flex; gap: 4px; }
.mcard__tag { padding: 5px 8px; border-radius: var(--r-xs); background: rgba(14, 111, 168, 0.1); color: var(--lens-700); font: 400 10px var(--font-mono); letter-spacing: 0.04em; }
.mcard__body { display: grid; gap: 8px; padding: 18px 20px 22px; align-content: start; }
.mcard__name { font: 600 19px/1.15 var(--font-display); letter-spacing: -0.02em; }
.mcard__name span { font: 400 10px var(--font-mono); letter-spacing: 0.08em; color: var(--paper-muted); vertical-align: 0.3em; margin-right: 2px; }
.mcard__sub { font-size: 14px; line-height: 1.45; color: var(--paper-muted); }
.mcard__specs { display: grid; margin-top: 6px; border-top: 1px solid rgba(11, 13, 16, 0.08); }
.mcard__specs li { padding: 7px 0; border-bottom: 1px solid rgba(11, 13, 16, 0.06); font-size: 13.5px; line-height: 1.35; color: #2a3038; }

@media (min-width: 768px) {
  .catalog { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; gap: var(--grid-gap); }
}
@media (min-width: 1100px) {
  .catalog { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row dense; }
  .catalog[data-filter="all"] .mcard[data-wide] { grid-column: span 2; }
  .catalog[data-filter="all"] .mcard[data-wide] .mcard__img { aspect-ratio: auto; height: 300px; padding: 9% 12% 7%; }
  .catalog[data-filter="all"] .mcard[data-wide] .mcard__specs { grid-template-columns: 1fr 1fr; column-gap: 20px; }
}

/* ==========================================================================
   CAM 06 · КВИЗ
   ========================================================================== */
.quiz__layout { display: grid; gap: var(--s-6); }
.quiz__intro { display: contents; }
.quiz__intro > * { order: 1; }
.quiz__intro > .section-head__text { margin-top: calc(var(--s-6) * -0.5); }
.qz { order: 2; }
.quiz__intro .section-label { justify-self: start; margin-bottom: 0; }
.sheet { order: 3; padding: 20px; border-radius: var(--r-lg); background: repeating-linear-gradient(0deg, rgba(154, 163, 174, 0.035) 0 1px, transparent 1px 36px), var(--bg-raised); box-shadow: var(--edge); font-family: var(--font-mono); }
.sheet__head { display: flex; justify-content: space-between; margin-bottom: var(--s-3); }
.sheet__head .label:last-child { color: var(--accent); }
.sheet__rows { display: grid; }
.sheet__rows div { display: flex; justify-content: space-between; gap: var(--s-4); padding: 9px 0; border-bottom: 1px dashed var(--line-strong); font-size: 12px; letter-spacing: 0.02em; }
.sheet__rows dt { color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; }
.sheet__rows dd { text-align: right; color: var(--text); }
.sheet__rows dd.is-new { animation: sheet-new 700ms var(--ease-out); }
@keyframes sheet-new { from { color: var(--accent); transform: translateX(-6px); } }

.qz { display: flex; flex-direction: column; gap: var(--s-5); padding: clamp(20px, 3vw, 40px); min-height: 460px; }
.qz__top { display: grid; gap: 10px; }
.qz__bar { height: 3px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.qz__bar span { display: block; height: 100%; width: 20%; background: var(--accent); box-shadow: 0 0 10px var(--accent); transition: width 500ms var(--ease-out); }
.qz__step { display: grid; gap: var(--s-4); align-content: start; }
.qz__step[hidden] { display: none; }
.qz__step.is-active { animation: qz-in 460ms var(--ease-out); }
.qz[data-dir="back"] .qz__step.is-active { animation-name: qz-in-back; }
@keyframes qz-in { from { opacity: 0; transform: translateX(28px); } }
@keyframes qz-in-back { from { opacity: 0; transform: translateX(-28px); } }
.qz__q { font: 500 clamp(22px, 2.4vw, 32px)/1.12 var(--font-display); letter-spacing: -0.025em; margin-bottom: var(--s-2); }
.qz__hint { color: var(--text-2); font-size: 15px; max-width: 52ch; }
.qz__opts { display: grid; gap: 10px; }
@media (min-width: 480px) { .qz__opts { grid-template-columns: 1fr 1fr; } .opt--wide { grid-column: 1 / -1; } }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 68px;
  padding: 14px 44px 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 500; line-height: 1.3;
  transition: box-shadow var(--d-fast), background-color var(--d-fast), transform var(--d-fast) var(--ease-out);
}
.opt__box svg { color: var(--text-2); transition: color var(--d-fast); }
.opt__num { font: 600 22px/1 var(--font-display); letter-spacing: -0.03em; min-width: 2.3em; }
.opt__box::after { content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--d-fast), box-shadow var(--d-fast); }
.opt:hover .opt__box { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.opt:active .opt__box { transform: scale(0.985); }
.opt input:checked + .opt__box { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:checked + .opt__box svg { color: var(--accent); }
.opt input:checked + .opt__box::after { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304131b' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.opt input:focus-visible + .opt__box { box-shadow: var(--focus); }
.qz__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: auto; padding-top: var(--s-3); }
.qz__back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding-right: 10px; color: var(--text-2); font-weight: 500; }
.qz__back:hover { color: var(--text); }
.qz__auto { margin-left: auto; font: 400 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.qz.is-final .qz__auto { display: none; }
.qz__done, .lead-form__done { display: grid; gap: var(--s-3); justify-items: start; align-content: center; flex: 1; outline: none; }
.qz__done[hidden], .lead-form__done[hidden] { display: none; }
.qz__done p, .lead-form__done p { color: var(--text-2); max-width: 40ch; }
.qz__done-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); animation: pop 600ms var(--ease-out); }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

@media (min-width: 1024px) {
  .quiz__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .quiz__intro { display: grid; gap: var(--s-5); align-content: start; position: sticky; top: calc(var(--header-h) + 32px); }
  .quiz__intro > .section-head__text { margin-top: 0; }
  .sheet { margin-top: var(--s-5); }
}

/* поля */
.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field__label span[aria-hidden] { color: var(--accent); }
.field__opt { margin-left: 6px; font: 400 10px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.field__input {
  width: 100%;
  min-height: var(--field-h);
  padding: 0 18px;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 17px;
  transition: box-shadow var(--d-fast), background-color var(--d-fast);
}
.field__input--area { min-height: 104px; padding-block: 14px; resize: vertical; line-height: 1.5; }
.field__input::placeholder { color: var(--text-3); }
.field__input:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }
.field__input:focus { outline: none; background: var(--ink-700); box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft); }
.field__input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--danger); }
.field__error { min-height: 0; font-size: 13.5px; color: var(--danger); }
.field__error:not(:empty) { display: flex; align-items: center; gap: 6px; }
.field__error:not(:empty)::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: var(--ink-950); font: 700 11px/1 var(--font-body); }
.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; }
.consent__box { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); color: transparent; transition: background-color var(--d-fast), box-shadow var(--d-fast), color var(--d-fast); }
.consent__box use { stroke-width: 3; }
.consent input:checked + .consent__box { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.consent input:focus-visible + .consent__box { box-shadow: var(--focus); }
.consent input[aria-invalid="true"] + .consent__box { box-shadow: inset 0 0 0 1px var(--danger); }
.consent a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.consent a:hover { text-decoration-color: var(--accent); }

/* ==========================================================================
   КОМПЛЕКТЫ
   ========================================================================== */
.packs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(84%, 330px);
  gap: 12px;
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 16px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.packs::-webkit-scrollbar { display: none; }
.pack {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-3);
  padding: 18px 20px 22px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--edge);
  scroll-snap-align: start;
}
.pack:nth-child(3) { background: linear-gradient(180deg, rgba(56, 212, 250, 0.09), rgba(56, 212, 250, 0) 46%), var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.pack__visual { display: grid; place-items: center; height: 168px; margin: 0 -8px 4px; border-radius: var(--r-md); background: radial-gradient(70% 80% at 50% 60%, rgba(255, 255, 255, 0.09), transparent 72%); }
.pack__cams { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); align-items: end; gap: var(--gap, 8px); width: 100%; max-width: var(--maxw, 220px); }
.pack__visual[style*="--n:2"] .pack__cams { --cols: 2; --maxw: 230px; --gap: 14px; }
.pack__visual[style*="--n:4"] .pack__cams { --cols: 2; --maxw: 150px; --gap: 8px; }
.pack__visual[style*="--n:8"] .pack__cams { --cols: 4; --maxw: 250px; --gap: 6px; }
.pack__visual[style*="--n:16"] .pack__cams { --cols: 4; --maxw: 170px; --gap: 4px; }
.pack__cams img { width: 100%; height: auto; max-height: 120px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.55)); }
.pack__badge { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--font-display); letter-spacing: -0.03em; box-shadow: var(--glow-accent); transform: rotate(-8deg); }
.pack .label { color: var(--text-2); }
.pack__name { font: 500 clamp(22px, 2vw, 28px)/1.1 var(--font-display); letter-spacing: -0.03em; }
.pack__price { display: grid; gap: 2px; }
.pack__now { font: 500 22px/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--accent); }
.pack__now.is-request { font: 500 15px/1.3 var(--font-body); letter-spacing: 0; color: var(--text-2); }
.pack__old { font: 400 14px var(--font-body); color: var(--text-3); text-decoration: line-through; }
.pack .ticks { margin-top: var(--s-2); margin-bottom: var(--s-3); }
.pack .btn { margin-top: auto; }
.packs__note { margin-top: var(--s-5); max-width: 70ch; color: var(--text-2); font-size: 15px; }
@media (min-width: 1280px) {
  .packs { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: var(--grid-gap); }
  .pack__visual { height: 150px; }
}

/* ==========================================================================
   ОТЗЫВЫ
   ========================================================================== */
.reviews__head { grid-template-columns: 1fr auto; align-items: end; }
.reviews__title { display: grid; gap: var(--s-5); }
.reviews__nav { display: none; align-items: center; gap: 10px; }
.reviews__count { margin-right: 8px; font: 400 12px var(--font-mono); letter-spacing: 0.08em; color: var(--text-3); }
.reviews__count b { font-weight: 400; color: var(--text); }
.reviews__btn:disabled { opacity: 0.35; pointer-events: none; }
.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(86%, 360px);
  gap: 12px;
  overflow-x: auto;
  margin-inline: calc(var(--gutter) * -1);
  padding: 4px var(--gutter) 8px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--r-lg); }
.review {
  position: relative;
  display: flex; flex-direction: column; gap: var(--s-4);
  padding: 22px 22px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0) 40%), var(--surface);
  box-shadow: var(--edge);
  scroll-snap-align: start;
  overflow: hidden;
}
/* крупная кавычка-водяной знак над подписью */
.review::after { content: "”"; position: absolute; right: 20px; bottom: 64px; font: 700 150px/0.62 var(--font-display); color: rgba(56, 212, 250, 0.07); pointer-events: none; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.review__obj { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 9px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font: 400 10.5px var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.review__obj svg { color: var(--accent); }
.review__num { font: 400 11px var(--font-mono); letter-spacing: 0.08em; color: var(--text-3); }
.review__stars { display: flex; gap: 3px; color: var(--accent); }
.review__text { flex: 1; color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.review__author { display: flex; align-items: center; gap: 12px; padding-top: var(--s-4); border-top: 1px solid var(--line); font-weight: 500; }
.review__ava { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); font: 500 15px/1 var(--font-display); color: var(--accent); }
.reviews__bar { position: relative; height: 2px; margin-top: var(--s-5); border-radius: 2px; background: var(--line); overflow: hidden; }
.reviews__bar span { position: absolute; inset: 0 auto 0 0; width: var(--w, 30%); border-radius: inherit; background: var(--accent); transform: translateX(var(--x, 0)); transition: transform 200ms linear; }
/* звёзды загораются по очереди, когда карточка появляется */
.js .reviews__track .review__stars svg { opacity: 0.18; transform: scale(0.6); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 300ms + var(--s) * 90ms); }
.js .reviews__track.is-in .review__stars svg { opacity: 1; transform: none; }
@media (hover: hover) {
  .review { transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
  .review:hover { box-shadow: inset 0 0 0 1px var(--accent-line), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
}
@media (min-width: 768px) {
  .reviews__nav { display: flex; }
  .reviews__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 16px) / 2); gap: 16px; }
}
@media (min-width: 1100px) {
  .reviews__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 2 * var(--grid-gap)) / 3); gap: var(--grid-gap); }
  .review { padding: 28px 28px 24px; }
}

/* ==========================================================================
   ГАРАНТИЯ И СЕРВИС
   ========================================================================== */
.service__layout { display: grid; gap: var(--s-7); }
.service__main { display: grid; gap: var(--s-5); align-content: start; }
.service__main .section-label { justify-self: start; margin-bottom: 0; }
.warranty { display: grid; gap: var(--s-3); padding: var(--s-5) 0; border-block: 1px solid var(--line); }
.warranty__num { font: 700 clamp(56px, 8vw, 128px)/0.95 var(--font-display); letter-spacing: -0.05em; background: var(--chrome-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.warranty__num .todo { font-size: 0.28em; vertical-align: 0.6em; }
.warranty__num small { font-size: 0.36em; letter-spacing: -0.02em; }
.warranty__text { font-size: var(--fs-lead); max-width: 40ch; }
.service__text { color: var(--text-2); max-width: 52ch; }
.service__list { display: grid; gap: 10px; }
.service__list li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.025); box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; }
.service__list svg { color: var(--accent); }
@media (min-width: 640px) { .service__list { grid-template-columns: 1fr 1fr; } }

.diag { align-self: start; padding: clamp(18px, 2.4vw, 32px); font-family: var(--font-mono); background: radial-gradient(120% 80% at 100% 0%, rgba(56, 212, 250, 0.07), transparent 50%), var(--bg-raised); }
.diag__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s-4); padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.diag__head .label:first-child { display: flex; align-items: center; color: var(--text-2); }
.diag__lines { display: grid; gap: 2px; font-size: 12.5px; letter-spacing: 0.02em; }
.diag__lines li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; color: var(--text-2); }
.diag__lines li::after { content: ""; order: 1; flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.diag__lines span { order: 0; }
.diag__lines b { order: 2; font-weight: 500; color: var(--accent); }
.diag__foot { margin-top: var(--s-4); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.js .diag__lines li { opacity: 0; transform: translateX(-8px); }
.js .diag__lines b { opacity: 0; }
.diag.is-run .diag__lines li { animation: diag-line 380ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 260ms); }
.diag.is-run .diag__lines b { animation: diag-ok 200ms steps(1) forwards; animation-delay: calc(var(--i) * 260ms + 220ms); }
@keyframes diag-line { to { opacity: 1; transform: none; } }
@keyframes diag-ok { to { opacity: 1; } }
@media (min-width: 1024px) {
  .service__layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 110px); }
  .diag { position: sticky; top: calc(var(--header-h) + 32px); margin-top: 64px; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__layout { display: grid; gap: var(--s-6); }
.faq__intro { display: grid; gap: var(--s-5); align-content: start; justify-items: start; }
.faq__intro .section-label { margin-bottom: 0; }
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  width: 100%;
  min-height: 76px;
  padding: 18px 0;
  text-align: left;
  font: 500 clamp(17px, 1.5vw, 21px)/1.3 var(--font-body);
  color: var(--text-2);
  transition: color var(--d-fast);
}
.acc__btn:hover, .acc__btn[aria-expanded="true"] { color: var(--text); }
.acc__icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-strong); transition: transform var(--d-base) var(--ease-out), background-color var(--d-base), color var(--d-base); }
.acc__btn[aria-expanded="true"] .acc__icon { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--d-base) var(--ease-out); }
.acc__panel > div { overflow: hidden; }
.acc__panel p { padding: 0 56px 24px 0; color: var(--text-2); max-width: 70ch; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
@media (min-width: 1024px) {
  .faq__layout { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* ==========================================================================
   ФИНАЛЬНЫЙ CTA
   ========================================================================== */
.lead { padding-block: var(--section-gap); overflow: hidden; isolation: isolate; }
.lead__bg { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; pointer-events: none; }
.lead__bg picture { width: 170vw; max-width: none; opacity: 0.24; mask-image: radial-gradient(closest-side, #000 40%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent); }
.lead__bg img { width: 100%; }
.lead__layout { display: grid; gap: var(--s-6); }
.lead__copy { display: grid; gap: var(--s-5); align-content: start; }
.lead__copy .section-label { justify-self: start; margin-bottom: 0; }
.lead__text { color: var(--text-2); font-size: var(--fs-lead); max-width: 46ch; }
.messengers { display: flex; flex-wrap: wrap; gap: 8px; }
.msg { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; transition: background-color var(--d-fast), box-shadow var(--d-fast); }
.msg:hover { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--accent-line); }
.msg svg { color: var(--accent); }
.lead-form { display: flex; flex-direction: column; padding: clamp(20px, 3vw, 40px); background: rgba(17, 20, 24, 0.8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); min-height: 460px; }
.lead-form__fields { display: grid; gap: var(--s-4); }
.lead-form__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
@media (min-width: 1024px) {
  .lead__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
  .lead__bg { place-items: center end; }
  .lead__bg picture { width: 78vw; margin-right: -14vw; }
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */
.footer { position: relative; container-type: inline-size; padding-top: clamp(56px, 7vw, 100px); padding-bottom: 76px; border-top: 1px solid var(--line); background: var(--bg-raised); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-5); padding-bottom: var(--s-7); border-bottom: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--s-6); padding-block: var(--s-7); }
.footer__col { display: grid; gap: 10px; align-content: start; color: var(--text-2); font-size: 15px; }
.footer__col .label { margin-bottom: 4px; }
.footer__col a { justify-self: start; min-height: 32px; display: inline-flex; align-items: center; transition: color var(--d-fast); }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: grid; gap: 8px; padding-block: var(--s-5); border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.footer__giant {
  margin: 0 var(--gutter) -0.2em;
  font: 700 calc((100cqw - 2 * var(--gutter)) / 11.104 * 0.98)/0.9 var(--font-display);
  letter-spacing: -0.05em;
  white-space: nowrap;
  text-align: center;
  background: linear-gradient(180deg, rgba(236, 239, 243, 0.14), rgba(236, 239, 243, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
  padding-top: 0.12em;
}
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .footer { padding-bottom: 0; }
  .footer__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__bottom { grid-template-columns: 1fr auto; }
}

/* ---------- мобильная панель ---------- */
.dock {
  position: fixed;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: var(--z-sticky);
  display: flex; gap: 8px;
  padding: 6px;
  border-radius: var(--r-pill);
  background: rgba(17, 20, 24, 0.78);
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 40px -10px #000;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transform: translateY(160%);
  transition: transform 500ms var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock__cta { flex: 1; --btn-h: 52px; --btn-dot: 42px; }
.dock__call { width: 52px; height: 52px; }
@media (min-width: 1024px) { .dock { display: none; } }

/* ==========================================================================
   ПОЯВЛЕНИЯ
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-group] > * { opacity: 0; transform: translateY(22px); transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal-group].is-in > * { opacity: 1; transform: none; }
.js [data-split] .wd { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js [data-split] .wi { display: inline-block; transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
.js [data-split].is-in .wi { transform: none; }
/* интро первого экрана — чистый CSS: стартует с первой отрисовкой, не ждёт JS */
.js [data-hero-item] { animation: hero-in 900ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms); }
.js .hero__display { overflow: hidden; }
.js .hero__display .ch { animation: char-in 1100ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms + 80ms); }
.js .hero__media img { animation: hero-zoom 2400ms var(--ease-out) both; }
.has-preloader [data-hero-item] { animation-delay: calc(var(--i, 0) * 90ms + 3250ms); }
.has-preloader .hero__display .ch { animation-delay: calc(var(--i, 0) * 45ms + 3150ms); }
.has-preloader .hero__media img { animation-delay: 2950ms; }
@keyframes hero-in { from { opacity: 0; transform: translateY(22px); } }
@keyframes char-in { from { transform: translateY(105%); } }
@keyframes hero-zoom { from { transform: scale(1.1); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js [data-reveal-group] > *, .js [data-split] .wi, .js [data-hero-item], .js .hero__display .ch, .js .hero__media img { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .manifest__text .w { color: var(--text); }
  .js .diag__lines li, .js .diag__lines b { opacity: 1; transform: none; }
  .reel__track { animation: none !important; }
  .detect__box, .detect__tag { opacity: 1; }
  .detect__person { transform: translateX(150px); }
  .detect__toast { opacity: 1; translate: -50% 0; }
  .phone__push { opacity: 1; transform: none; }
  .lock { display: none !important; }
}
