/* ============================================================
   NORD HOME — два экрана по макету
   Тёмная премиальная тема: ночной лес, золото, стекло.
   Анимации: вход hero, окна зажигаются, туман, светлячки,
   параллакс, «чертёж оживает» в секции технологии.
   ============================================================ */

:root {
  --bg: #0c1110;
  --bg-tech: #0b1013;
  --ink: #eceae2;
  --muted: #9aa39c;
  --faint: #6d756e;
  --gold: #d3a960;
  --gold-soft: #e9cf9a;
  --gold-dim: rgba(211, 169, 96, 0.55);
  --line: rgba(236, 234, 226, 0.16);
  --glass: rgba(14, 19, 17, 0.52);

  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

svg { display: block; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* --- Сцена --- */
.scene { position: absolute; inset: 0; }

.scene__layer {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  will-change: transform;
}

/* кинематографичный въезд камеры */
.scene { transform: scale(1.07); transition: transform 3.2s cubic-bezier(0.22, 0.61, 0.36, 1); }
body.loaded .scene { transform: scale(1); }

.scene__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 11, 10, 0.72) 0%, rgba(8, 11, 10, 0.18) 22%, rgba(8, 11, 10, 0) 45%),
    radial-gradient(120% 90% at 50% 46%, rgba(8, 11, 10, 0) 40%, rgba(8, 11, 10, 0.62) 100%),
    linear-gradient(0deg, rgba(10, 13, 11, 0.85) 0%, rgba(10, 13, 11, 0) 26%);
}

/* звёзды мерцают */
.tw { animation: twinkle 3.4s ease-in-out infinite; }
.tw.d1 { animation-delay: 0.6s; }
.tw.d2 { animation-delay: 1.2s; }
.tw.d3 { animation-delay: 1.9s; }
.tw.d4 { animation-delay: 2.5s; }
.tw.d5 { animation-delay: 3s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

/* облака плывут */
.cloud { animation: drift 46s linear infinite alternate; }
.cloud.c2 { animation-duration: 64s; animation-delay: -18s; }
.cloud.c3 { animation-duration: 55s; animation-delay: -34s; }

@keyframes drift {
  from { transform: translateX(-70px); }
  to { transform: translateX(70px); }
}

/* окна дома зажигаются по одному */
.win {
  opacity: 0;
  transition: opacity 1.1s ease;
}

body.loaded .win { opacity: 1; }
body.loaded .win.w1 { transition-delay: 1.15s; }
body.loaded .win.w2 { transition-delay: 1.65s; }
body.loaded .win.w3 { transition-delay: 1.4s; }
body.loaded .win.w4 { transition-delay: 1.95s; }
body.loaded .win.w5 { transition-delay: 2.3s; }
body.loaded .win.w6 { transition-delay: 2.15s; }
body.loaded .win.w7 { transition-delay: 2.5s; }

body.loaded .win.w5, body.loaded .win.w6 { opacity: 0.8; }
body.loaded .win.w7 { opacity: 0.75; }

/* лёгкое живое мерцание света после включения */
body.loaded .windows { animation: lightbreathe 7s ease-in-out 3.4s infinite; }

@keyframes lightbreathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.93; }
}

/* фонарики */
.lamp { opacity: 0; transition: opacity 0.9s ease; }
body.loaded .lamp { opacity: 1; }
body.loaded .lamp.l1 { transition-delay: 2.6s; }
body.loaded .lamp.l2 { transition-delay: 2.75s; }
body.loaded .lamp.l3 { transition-delay: 2.9s; }
body.loaded .lamp.l4 { transition-delay: 3.05s; }
body.loaded .lamp.l5 { transition-delay: 3.2s; }

/* дым из трубы */
.smoke { opacity: 0; transform-box: fill-box; }

body.loaded .smoke { animation: smokerise 7s ease-out 3.4s infinite; }
body.loaded .smoke.s2 { animation-delay: 5.7s; }
body.loaded .smoke.s3 { animation-delay: 8s; }

@keyframes smokerise {
  0% { transform: translate(0, 0) scale(0.5); opacity: 0; }
  12% { opacity: 0.28; }
  60% { opacity: 0.16; }
  100% { transform: translate(20px, -95px) scale(1.8); opacity: 0; }
}

/* пятна света на досках террасы */
.lightpool { opacity: 0; transition: opacity 2.4s ease 2.9s; }

body.loaded .lightpool { opacity: 0.55; }

/* --- Туман --- */
.fog {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 34%;
  pointer-events: none;
  filter: blur(2px);
}

.fog--1 {
  bottom: 4%;
  background: radial-gradient(60% 90% at 30% 60%, rgba(196, 214, 199, 0.10), transparent 70%),
              radial-gradient(50% 80% at 70% 50%, rgba(196, 214, 199, 0.08), transparent 70%);
  animation: fogmove 34s ease-in-out infinite alternate;
}

.fog--2 {
  bottom: 14%;
  background: radial-gradient(55% 85% at 60% 55%, rgba(180, 200, 185, 0.07), transparent 70%),
              radial-gradient(45% 70% at 20% 45%, rgba(180, 200, 185, 0.06), transparent 70%);
  animation: fogmove 46s ease-in-out -20s infinite alternate-reverse;
}

@keyframes fogmove {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

/* --- Светлячки --- */
.fireflies { position: absolute; inset: 0; pointer-events: none; }

.fireflies span {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd98f;
  box-shadow: 0 0 10px 2px rgba(255, 209, 130, 0.75);
  opacity: 0;
  animation: firefly 11s ease-in-out infinite;
}

.fireflies span:nth-child(1) { left: 16%; top: 72%; animation-delay: 2s; }
.fireflies span:nth-child(2) { left: 26%; top: 80%; animation-delay: 5.2s; animation-duration: 13s; }
.fireflies span:nth-child(3) { left: 38%; top: 84%; animation-delay: 7.5s; animation-duration: 9.5s; }
.fireflies span:nth-child(4) { left: 60%; top: 82%; animation-delay: 3.4s; animation-duration: 12s; }
.fireflies span:nth-child(5) { left: 72%; top: 74%; animation-delay: 8.8s; }
.fireflies span:nth-child(6) { left: 84%; top: 80%; animation-delay: 1.1s; animation-duration: 14s; }
.fireflies span:nth-child(7) { left: 48%; top: 76%; animation-delay: 10.4s; animation-duration: 10s; }

@keyframes firefly {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  12% { opacity: 0.9; }
  45% { opacity: 0.55; transform: translate(28px, -34px); }
  70% { opacity: 0.85; transform: translate(-14px, -58px); }
  88% { opacity: 0; transform: translate(10px, -76px); }
}

/* ================= Шапка ================= */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px clamp(24px, 4vw, 64px);
}

.brand { display: flex; align-items: center; gap: 16px; }

.brand__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.22em;
  line-height: 1.25;
}

.brand__divider { width: 1px; height: 40px; background: var(--line); }

.brand__tag {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.nav { display: flex; gap: clamp(20px, 2.6vw, 42px); }

.nav__link {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(236, 234, 226, 0.82);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 22px; }

.header__contacts { text-align: right; }

.header__phone {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header__phone:hover { color: var(--gold-soft); }

.header__hours { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.burger {
  display: grid;
  place-items: center;
  gap: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 17, 16, 0.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.burger:hover { border-color: var(--gold-dim); }

.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  margin: 2.1px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.burger.is-open span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ================= Контент hero ================= */
.hero__content {
  position: relative;
  z-index: 5;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px clamp(24px, 5vw, 96px) 0;
  max-width: 860px;
}

.hero__eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero__title {
  font-size: clamp(40px, 5.6vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero__title > span { display: block; }

.hero__title-sub {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 14px;
  color: rgba(236, 234, 226, 0.94);
}

/* золото с бегущим бликом */
.gold-shimmer {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold-soft) 28%, #f7e8c3 50%, var(--gold-soft) 72%, var(--gold) 100%);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 5.2s ease-in-out 2.4s infinite;
}

@keyframes shimmer {
  0%, 55%, 100% { background-position: 0% 0; }
  20%, 35% { background-position: 100% 0; }
}

.hero__text {
  font-size: 16.5px;
  color: rgba(236, 234, 226, 0.78);
  margin: 18px 0 40px;
}

.hero__cta { display: flex; align-items: center; gap: 38px; flex-wrap: wrap; }

/* --- Золотая кнопка --- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 19px 26px 19px 32px;
  border-radius: 10px;
  background: linear-gradient(140deg, #dcb779 0%, #c69a52 55%, #b78a43 100%);
  color: #241a0c;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(198, 154, 82, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(198, 154, 82, 0.34); }

/* блик, пробегающий по кнопке */
.btn-gold::before {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-22deg);
  animation: sheen 4.6s ease-in-out 3s infinite;
}

@keyframes sheen {
  0%, 68%, 100% { left: -80%; }
  82% { left: 130%; }
}

.btn-gold__arrow {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.btn-gold__arrow svg { width: 18px; height: 18px; }

.btn-gold:hover .btn-gold__arrow { transform: translateX(5px); }

/* --- Кнопка play --- */
.play { display: inline-flex; align-items: center; gap: 16px; }

.play__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(12, 17, 16, 0.42);
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.play__btn svg { width: 20px; height: 20px; margin-left: 2px; }

.play:hover .play__btn { border-color: var(--gold-dim); background: rgba(211, 169, 96, 0.12); }

.play__pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(211, 169, 96, 0.5);
  animation: pulse 2.6s ease-out 3.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(1.65); opacity: 0; }
}

.play__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.7;
  color: rgba(236, 234, 226, 0.85);
}

/* --- Эко-чип --- */
.eco-chip {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: clamp(36px, 6vh, 72px);
  padding: 13px 22px 13px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 17, 16, 0.38);
  backdrop-filter: blur(6px);
  width: fit-content;
}

.eco-chip__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(211, 169, 96, 0.45);
  color: var(--gold-soft);
}

.eco-chip__icon svg { width: 19px; height: 19px; }

.eco-chip__text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.55;
}

.eco-chip__text small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* --- Пейджер справа --- */
.pager {
  position: absolute;
  right: clamp(18px, 2.6vw, 44px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.pager__line { width: 1px; height: 74px; background: var(--line); }

.pager__num { transition: color 0.3s ease; position: relative; }

.pager__num.is-active { color: var(--gold-soft); }

.pager__num.is-active::after {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* --- Статистика (стеклянная панель) --- */
.stats {
  position: relative;
  z-index: 5;
  margin: 0 clamp(24px, 5vw, 96px) clamp(28px, 5vh, 56px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 56px);
  padding: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 56px);
  border-radius: 18px;
  border: 1px solid rgba(236, 234, 226, 0.10);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.stat__num {
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat__num small {
  font-size: 0.55em;
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.08em;
}

.stat__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.stat__sub {
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-top: 8px;
  border-top: 1px dashed rgba(236, 234, 226, 0.14);
  width: fit-content;
}

/* ================= Анимация входа hero ================= */
.anim {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.9s cubic-bezier(0.22, 0.61, 0.36, 1);
}

body.loaded .anim { opacity: 1; transform: none; }

body.loaded .a1 { transition-delay: 0.25s; }
body.loaded .a2 { transition-delay: 0.4s; }
body.loaded .a3 { transition-delay: 0.55s; }
body.loaded .a4 { transition-delay: 0.7s; }
body.loaded .a5 { transition-delay: 0.85s; }
body.loaded .a6 { transition-delay: 1.05s; }
body.loaded .a7 { transition-delay: 1.25s; }
body.loaded .a8 { transition-delay: 1.45s; }

/* ================= ТЕХНОЛОГИЯ ================= */
.tech {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(90% 70% at 70% 40%, rgba(38, 58, 76, 0.20), transparent 65%),
    var(--bg-tech);
  overflow: hidden;
  padding: 90px 0 70px;
}

/* чертёжная сетка */
.tech__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 160, 189, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 160, 189, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(127, 160, 189, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 160, 189, 0.03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(85% 80% at 55% 45%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(85% 80% at 55% 45%, #000 30%, transparent 100%);
}

.tech__rings {
  position: absolute;
  right: clamp(-80px, 2vw, 120px);
  top: 50%;
  transform: translateY(-58%);
  width: clamp(420px, 46vw, 700px);
  height: auto;
  animation: ringspin 90s linear infinite;
}

@keyframes ringspin {
  to { transform: translateY(-58%) rotate(360deg); }
}

.tech__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 4vw, 70px);
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 64px);
  width: 100%;
}

.tech__title {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 26px;
}

.tech__title span { display: block; }

.tech__text {
  font-size: 16px;
  color: rgba(236, 234, 226, 0.75);
  margin-bottom: 38px;
}

.tech__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(211, 169, 96, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tech__link:hover { color: #f4e3ba; border-color: var(--gold-soft); }

.tech__link-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(211, 169, 96, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.tech__link-arrow svg { width: 13px; height: 13px; }

.tech__link:hover .tech__link-arrow { transform: translateX(4px); background: rgba(211, 169, 96, 0.14); }

/* вход текста секции */
.tech .anim { transform: translateY(28px); }

.tech.in-view .anim { opacity: 1; transform: none; }
.tech.in-view .t1 { transition-delay: 0.1s; }
.tech.in-view .t2 { transition-delay: 0.22s; }
.tech.in-view .t3 { transition-delay: 0.34s; }
.tech.in-view .t4 { transition-delay: 0.5s; }
.tech.in-view .t5 { transition-delay: 0.66s; }

/* ================= Чертёж → дом ================= */
.bp {
  position: relative;
  width: 100%;
  aspect-ratio: 900 / 560;
  max-height: 74vh;
}

.bp__svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* линии чертежа рисуют сами себя */
.bp__strokes .d {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.9;
}

.bp__strokes .thin { stroke-width: 1; opacity: 0.55; }

.tech.in-view .bp__strokes .d {
  animation: draw 1.5s cubic-bezier(0.5, 0, 0.3, 1) forwards;
}

.tech.in-view .bp__strokes .d:nth-child(1) { animation-delay: 0.15s; }
.tech.in-view .bp__strokes .d:nth-child(2) { animation-delay: 0.3s; }
.tech.in-view .bp__strokes .d:nth-child(3) { animation-delay: 0.5s; }
.tech.in-view .bp__strokes .d:nth-child(4) { animation-delay: 0.62s; }
.tech.in-view .bp__strokes .d:nth-child(5) { animation-delay: 0.74s; }
.tech.in-view .bp__strokes .d:nth-child(6) { animation-delay: 0.9s; }
.tech.in-view .bp__strokes .d:nth-child(7) { animation-delay: 1s; }
.tech.in-view .bp__strokes .d:nth-child(8) { animation-delay: 1.1s; }
.tech.in-view .bp__strokes .d:nth-child(9) { animation-delay: 1.2s; }
.tech.in-view .bp__strokes .d:nth-child(10) { animation-delay: 1.3s; }
.tech.in-view .bp__strokes .d:nth-child(11) { animation-delay: 1.42s; }
.tech.in-view .bp__strokes .d:nth-child(12) { animation-delay: 1.54s; }
.tech.in-view .bp__strokes .d:nth-child(13) { animation-delay: 1.64s; }
.tech.in-view .bp__strokes .d:nth-child(14) { animation-delay: 1.74s; }
.tech.in-view .bp__strokes .d:nth-child(15) { animation-delay: 1.84s; }
.tech.in-view .bp__strokes .d:nth-child(16) { animation-delay: 1.94s; }

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

/* «реальный» дом проявляется слева направо */
.bp__real {
  position: absolute;
  inset: 0;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2.4s cubic-bezier(0.65, 0, 0.25, 1);
}

.tech.is-revealed .bp__real { clip-path: inset(0 0 0 0); }

/* сканирующая линия */
.bp__scanline {
  position: absolute;
  top: 4%;
  bottom: 4%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--gold-soft) 18%, var(--gold-soft) 82%, transparent);
  box-shadow: 0 0 22px 3px rgba(233, 207, 154, 0.5);
  opacity: 0;
}

.tech.is-revealed .bp__scanline {
  animation: scan 2.4s cubic-bezier(0.65, 0, 0.25, 1) forwards;
}

@keyframes scan {
  0% { left: 0%; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* --- Листайте вниз --- */
.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: clamp(28px, 5vh, 60px) auto 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue__mouse {
  display: flex;
  justify-content: center;
  width: 26px;
  height: 42px;
  border: 1.4px solid var(--line);
  border-radius: 14px;
  padding-top: 7px;
}

.scroll-cue__wheel {
  width: 2.6px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold-soft);
  animation: wheel 1.9s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  61% { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .anim, .win, .lamp { opacity: 1 !important; transform: none !important; }
  .bp__strokes .d { stroke-dashoffset: 0; }
  .bp__real { clip-path: inset(0 0 0 0); }
  html { scroll-behavior: auto; }
}

/* ================= Адаптив ================= */
@media (max-width: 1180px) {
  .nav { display: none; }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: 98px;
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    background: rgba(10, 14, 12, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open .nav__link {
    padding: 17px clamp(24px, 4vw, 64px);
    font-size: 15px;
    border-bottom: 1px solid rgba(236, 234, 226, 0.06);
  }

  .tech__inner { grid-template-columns: 1fr; }
  .tech__rings { display: none; }
  .bp { max-width: 760px; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .pager { display: none; }
  .header__contacts { display: none; }
  .hero__content { padding-top: 40px; }
}

@media (max-width: 560px) {
  .brand__tag { display: none; }
  .brand__divider { display: none; }

  .stats { grid-template-columns: 1fr; gap: 22px; margin-left: 16px; margin-right: 16px; }
  .stat__sub br { display: none; }

  .hero__cta { gap: 24px; }
  .hero__text br { display: none; }
  .tech__text br { display: none; }

  .eco-chip { margin-top: 32px; }
}
