/* ══════════════════════════════════════════════════════════
   МАЭСТРО СВЕТА — стили
   Палитра: тёплый чёрный / слоновая кость / золото
   Типографика: Cormorant (display) + Manrope (текст)
   ══════════════════════════════════════════════════════════ */

:root {
  --bg: #0b0a08;
  --bg-soft: #100e0b;
  --surface: #15120e;
  --surface-2: #1a1712;

  --text: #f2ede3;
  --text-soft: #c9c2b4;
  --muted: #8e8778;

  --gold: #c9a35e;
  --gold-bright: #e8cf9a;
  --gold-deep: #96713a;
  --gold-grad: linear-gradient(115deg, #e3c98b 0%, #c9a35e 45%, #a97e3f 100%);

  --line: rgba(201, 163, 94, 0.16);
  --line-soft: rgba(242, 237, 227, 0.08);

  --font-display: "Cormorant", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 64px);
  --section-gap: clamp(96px, 12vw, 180px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── База ─────────────────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: rgba(201, 163, 94, 0.35); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: calc(var(--section-gap) / 2); position: relative; }
.section + .section { margin-top: calc(var(--section-gap) / 2); }

section[id] { scroll-margin-top: 96px; }

/* ─── Зерно и световое пятно ───────────────────────────── */

.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -1%); }
  75% { transform: translate(-1%, -2%); }
  100% { transform: translate(2%, 1%); }
}

.spotlight {
  position: fixed;
  top: 0; left: 0;
  width: 46vmax; height: 46vmax;
  margin: -23vmax 0 0 -23vmax;
  pointer-events: none;
  z-index: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 163, 94, 0.065) 0%, rgba(201, 163, 94, 0.02) 40%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.is-loaded .spotlight { opacity: 1; }

/* ─── Кастомный курсор ─────────────────────────────────── */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  opacity: 0;
}

.cursor-dot {
  width: 6px; height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--gold-bright);
}

.cursor-ring {
  width: 38px; height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(201, 163, 94, 0.45);
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), background-color 0.35s ease, border-color 0.35s ease;
  display: grid;
  place-items: center;
}

.cursor-ring::after {
  content: "Смотреть";
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b0a08;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cursor-ring.is-link {
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  background: rgba(201, 163, 94, 0.12);
  border-color: rgba(201, 163, 94, 0.7);
}

.cursor-ring.is-view {
  width: 62px; height: 62px;
  margin: -31px 0 0 -31px;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

.cursor-ring.is-view::after {
  opacity: 1;
  font-size: 8px;
  letter-spacing: 0.1em;
}

body.has-custom-cursor.is-loaded .cursor-dot,
body.has-custom-cursor.is-loaded .cursor-ring { opacity: 1; }

body.has-custom-cursor,
body.has-custom-cursor a,
body.has-custom-cursor button,
body.has-custom-cursor label { cursor: none; }

@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring, .spotlight { display: none; }
}

/* ─── Прелоадер ────────────────────────────────────────── */

.preloader {
  position: fixed; inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.preloader__inner { text-align: center; }

.preloader__emblem {
  width: clamp(96px, 15vw, 140px);
  height: auto;
  margin: 0 auto 10px;
  mix-blend-mode: screen;
}

.preloader__logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.pl-char { display: inline-block; opacity: 0; }
.pl-gold { color: var(--gold); }

.preloader__bar {
  width: min(280px, 60vw);
  height: 1px;
  margin: 28px auto 0;
  background: var(--line-soft);
  overflow: hidden;
}

.preloader__bar-fill {
  display: block;
  width: 100%; height: 100%;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: left;
}

/* ─── Кнопки ───────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 36px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.btn--sm { padding: 14px 26px; font-size: 11px; }

.btn--gold {
  color: #171204;
  background: var(--gold-grad);
  box-shadow: 0 0 0 rgba(201, 163, 94, 0);
}

.btn--gold::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.5) 50%, transparent 80%);
  transform: translateX(-110%) skewX(-15deg);
  transition: transform 0.7s var(--ease-smooth);
}

.btn--gold:hover::before { transform: translateX(110%) skewX(-15deg); }
.btn--gold:hover { box-shadow: 0 8px 40px rgba(201, 163, 94, 0.35); }

.btn--ghost {
  color: var(--text);
  border: 1px solid rgba(242, 237, 227, 0.25);
  background: rgba(242, 237, 227, 0.02);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn__label { position: relative; z-index: 1; }

.btn__arrow {
  position: relative; z-index: 1;
  width: 14px; height: 14px;
  display: inline-flex;
}

.btn__arrow svg { width: 100%; height: 100%; transition: transform 0.4s var(--ease-out); }
.btn:hover .btn__arrow svg { transform: translate(2px, -2px); }

/* ─── Шапка ────────────────────────────────────────────── */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: transform 0.5s var(--ease-out), background-color 0.5s ease, border-color 0.5s ease;
  border-bottom: 1px solid transparent;
}

.header.is-scrolled {
  background: rgba(11, 10, 8, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line-soft);
}

.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  max-width: calc(var(--container) + 120px);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo__mark {
  width: 30px; height: 30px;
  color: var(--gold);
  transition: transform 0.7s var(--ease-out);
}

.logo:hover .logo__mark { transform: rotate(180deg) scale(1.08); }

.logo__emblem {
  width: 48px; height: 48px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
  transition: transform 0.6s var(--ease-out), filter 0.5s ease;
}

.logo:hover .logo__emblem {
  transform: scale(1.12);
  filter: brightness(1.3);
}

.logo__text { display: flex; flex-direction: column; line-height: 1.15; }

.logo__name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.logo__sub {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}

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

.nav__link {
  position: relative;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft);
  padding: 6px 0;
  transition: color 0.3s 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.45s var(--ease-out);
}

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

/* ─── Выпадающее подменю «Портфолио» ─────────────────────── */

.nav__item { position: relative; }

.nav__item > .nav__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav__caret {
  width: 9px;
  height: 6px;
  opacity: 0.55;
  transition: transform 0.3s var(--ease-out);
}

.nav__item:hover .nav__caret,
.nav__item:focus-within .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 14px);
  display: flex;
  flex-direction: column;
  min-width: 320px;
  padding: 10px;
  background: rgba(13, 12, 10, 0.94);
  border: 1px solid rgba(201, 164, 92, 0.2);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out), visibility 0.25s;
  z-index: 650;
}

/* «Мостик», чтобы ховер не срывался в зазоре между пунктом и подменю */
.nav__dropdown::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.nav__item:hover .nav__dropdown,
.nav__item:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 8px);
}

.nav__drop-link {
  padding: 11px 16px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text-soft);
  border-radius: 9px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__drop-link:hover {
  color: var(--gold);
  background: rgba(201, 164, 92, 0.08);
}

.burger {
  display: none;
  position: relative;
  z-index: 700;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.burger span {
  display: block;
  width: 26px; height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}

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

/* ─── Мобильное меню ───────────────────────────────────── */

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 600;
  background: rgba(11, 10, 8, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 48px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: clamp(32px, 9vw, 44px);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  color: var(--text);
  opacity: 0;
  transform: translateY(24px);
  transition: color 0.3s ease, opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.mobile-menu.is-open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-menu__link:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(4) { transition-delay: 0.26s; }
.mobile-menu.is-open .mobile-menu__link:nth-child(5) { transition-delay: 0.32s; }

.mobile-menu__link:hover { color: var(--gold); }

.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: -2px 0 8px;
}

.mobile-menu__link--sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
  padding: 5px 16px;
}

.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mobile-menu__contact {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ─── HERO ─────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg { position: absolute; inset: 0; }

.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: hero-zoom 24s ease-in-out infinite alternate;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 8, 0.62) 0%, rgba(11, 10, 8, 0.28) 40%, rgba(11, 10, 8, 0.86) 88%, var(--bg) 100%),
    linear-gradient(100deg, rgba(11, 10, 8, 0.82) 0%, rgba(11, 10, 8, 0.35) 55%, rgba(11, 10, 8, 0.15) 100%);
}

.hero__particles {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 140px;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.hero__eyebrow-line {
  width: 56px; height: 1px;
  background: var(--gold);
  transform-origin: left;
}

.hero__eyebrow-text {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 8.4vw, 120px);
  line-height: 1.06;
  letter-spacing: 0.005em;
  max-width: 20ch;
}

.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line-inner { display: inline-block; will-change: transform; }

.hero__title-accent {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(100deg, #e8cf9a 0%, #c9a35e 50%, #e8cf9a 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 5s ease-in-out infinite;
}

@keyframes gold-shimmer {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.hero__sub {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 520px;
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(32px, 4vw, 48px);
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  max-width: 720px;
}

.hero__fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.hero__fact-mark { color: var(--gold); font-size: 10px; }

.hero__media-controls {
  position: absolute;
  left: clamp(20px, 4vw, 64px);
  bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.media-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201, 163, 94, 0.4);
  background: rgba(11, 10, 8, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  transition: border-color 0.35s ease, background-color 0.35s ease, transform 0.35s var(--ease-out);
}

.media-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 163, 94, 0.14);
  transform: scale(1.06);
}

.media-btn__icon { width: 17px; height: 17px; }
.media-btn__icon--b { display: none; }
.media-btn.is-alt .media-btn__icon--a { display: none; }
.media-btn.is-alt .media-btn__icon--b { display: block; }

.hero__watch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 8px;
  padding: 7px 26px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 94, 0.55);
  background: rgba(13, 11, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f5efe2;
  box-shadow: 0 0 26px rgba(201, 163, 94, 0.16);
  transition: border-color 0.35s ease, box-shadow 0.4s ease, background-color 0.35s ease;
}

.hero__watch:hover {
  border-color: var(--gold-bright);
  background: rgba(201, 163, 94, 0.12);
  box-shadow: 0 0 40px rgba(201, 163, 94, 0.35);
}

.hero__watch-ring {
  position: relative;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8cf9a 0%, #c9a35e 100%);
  display: grid;
  place-items: center;
  color: #17120b;
  transition: transform 0.35s var(--ease-out), box-shadow 0.4s ease;
}

.hero__watch-ring::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(232, 207, 154, 0.7);
  animation: watch-ping 2.6s ease-out infinite;
}

@keyframes watch-ping {
  0%   { transform: scale(0.82); opacity: 0.9; }
  70%, 100% { transform: scale(1.45); opacity: 0; }
}

.hero__watch-ring svg { width: 16px; height: 16px; margin-left: 2px; }

.hero__watch:hover .hero__watch-ring {
  transform: scale(1.07);
  box-shadow: 0 0 24px rgba(232, 207, 154, 0.55);
}

.hero__watch-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ─── Модальное окно с роликом ─────────────────────────── */

.video-modal {
  position: fixed; inset: 0;
  z-index: 9500;
  background:
    radial-gradient(58% 48% at 50% 44%, rgba(201, 163, 94, 0.09), transparent 72%),
    rgba(8, 7, 5, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 56px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.video-modal.is-open { opacity: 1; visibility: visible; }

.video-modal__inner {
  /* Фолбэк для браузеров без поддержки dvh (старый WebKit / Яндекс) */
  width: min(1400px, 94vw, calc((100vh - 210px) * 1.7778));
  width: min(1400px, 94vw, calc((100dvh - 210px) * 1.7778));
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform 0.55s var(--ease-out), opacity 0.45s ease;
}

.video-modal.is-open .video-modal__inner { transform: none; opacity: 1; transition-delay: 0.08s; }

.video-modal__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
}

.video-modal__emblem {
  width: 46px; height: 46px;
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: screen;
}

.video-modal__titles {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.video-modal__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.video-modal__title {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-modal__close {
  margin-left: auto;
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.video-modal__close svg { width: 17px; height: 17px; }

.video-modal__close:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  transform: rotate(90deg);
}

.video-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(201, 163, 94, 0.35);
  box-shadow:
    0 30px 120px rgba(0, 0, 0, 0.65),
    0 0 90px rgba(201, 163, 94, 0.16);
}

.video-modal__frame video {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
}

.video-modal__frame:fullscreen video { object-fit: contain; }

/* Золотые уголки-визир */
.vm-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid var(--gold);
  z-index: 3;
  pointer-events: none;
}

.vm-corner--tl { top: -8px; left: -8px; border-right: none; border-bottom: none; }
.vm-corner--tr { top: -8px; right: -8px; border-left: none; border-bottom: none; }
.vm-corner--bl { bottom: -8px; left: -8px; border-right: none; border-top: none; }
.vm-corner--br { bottom: -8px; right: -8px; border-left: none; border-top: none; }

/* Кастомные контролы плеера */
.vp-controls {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.5vw, 18px);
  padding: 44px clamp(14px, 2vw, 24px) 16px;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.85), transparent);
}

.media-btn--sm { width: 40px; height: 40px; }
.media-btn--sm .media-btn__icon { width: 15px; height: 15px; }

.vp-timeline {
  position: relative;
  flex: 1;
  height: 22px;
  cursor: pointer;
}

.vp-timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: rgba(242, 237, 227, 0.16);
  border-radius: 2px;
}

.vp-timeline__fill {
  position: absolute;
  left: 0; top: 50%;
  height: 3px;
  transform: translateY(-50%);
  width: 0;
  background: var(--gold-grad);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(201, 163, 94, 0.6);
}

.vp-timeline__fill::after {
  content: "";
  position: absolute;
  right: -5px; top: 50%;
  width: 10px; height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(201, 163, 94, 0.9);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.vp-timeline:hover .vp-timeline__fill::after { opacity: 1; }

/* В полноэкранном режиме кастомный курсор сайта не отрисовывается:
   возвращаем системный и держим ползунок таймлайна постоянно видимым */
.video-modal__frame:fullscreen,
.video-modal__frame:fullscreen * { cursor: auto; }
.video-modal__frame:fullscreen video { cursor: default; }
.video-modal__frame:fullscreen .vp-timeline,
.video-modal__frame:fullscreen .vp-controls button { cursor: pointer; }
.video-modal__frame:fullscreen .vp-timeline__fill::after { opacity: 1; }

.video-modal__frame:-webkit-full-screen,
.video-modal__frame:-webkit-full-screen * { cursor: auto; }
.video-modal__frame:-webkit-full-screen video { cursor: default; }
.video-modal__frame:-webkit-full-screen .vp-timeline,
.video-modal__frame:-webkit-full-screen .vp-controls button { cursor: pointer; }
.video-modal__frame:-webkit-full-screen .vp-timeline__fill::after { opacity: 1; }

.viz-card__video:fullscreen { cursor: auto; }
.viz-card__video:-webkit-full-screen { cursor: auto; }

/* В полноэкранном режиме кастомный курсор не отрисовывается —
   на время возвращаем системный везде */
body.has-custom-cursor.is-fullscreen,
body.has-custom-cursor.is-fullscreen a,
body.has-custom-cursor.is-fullscreen button,
body.has-custom-cursor.is-fullscreen label { cursor: auto; }
body.has-custom-cursor.is-fullscreen video { cursor: default; }
body.has-custom-cursor.is-fullscreen .fs-close { cursor: pointer; }

/* ─── Кнопка «Назад» в полноэкранном просмотре видео ───── */

.fs-close {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 60;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 9, 7, 0.6);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.fs-close:hover {
  background: rgba(201, 164, 92, 0.25);
  border-color: rgba(201, 164, 92, 0.7);
}

.fs-close svg {
  width: 13px;
  height: 13px;
}

/* Контейнер видео в полноэкранном режиме */
.viz-card__media:fullscreen,
.show__media:fullscreen {
  background: #000;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-card__media:-webkit-full-screen,
.show__media:-webkit-full-screen {
  background: #000;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viz-card__media:fullscreen .viz-card__video,
.show__media:fullscreen .show__video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none !important;
}

.viz-card__media:-webkit-full-screen .viz-card__video,
.show__media:-webkit-full-screen .show__video {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  transform: none !important;
}

.viz-card__media:fullscreen .fs-close,
.show__media:fullscreen .fs-close { display: inline-flex; }

.viz-card__media:-webkit-full-screen .fs-close,
.show__media:-webkit-full-screen .fs-close { display: inline-flex; }

/* Бейдж и кнопка звука в полноэкране не нужны */
.viz-card__media:fullscreen::after { display: none; }
.viz-card__media:-webkit-full-screen::after { display: none; }
.show__media:fullscreen .show__sound { display: none; }
.show__media:-webkit-full-screen .show__sound { display: none; }

.vp-time {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.video-modal__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.video-modal__duration {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 640px) {
  .video-modal { padding: 14px; }
  .video-modal__title { font-size: 15px; }
  .video-modal__caption span:first-child { display: none; }
  .vp-time { display: none; }
}

.hero__scroll {
  position: absolute;
  right: clamp(20px, 4vw, 56px);
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero__scroll-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

.hero__scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  overflow: hidden;
  position: relative;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--gold-bright));
  animation: scroll-drop 2.2s var(--ease-smooth) infinite;
}

@keyframes scroll-drop {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ─── Бегущая строка клиентов ──────────────────────────── */

.clients {
  padding-block: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  overflow: hidden;
}

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }

.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  white-space: nowrap;
  animation: marquee-scroll 34s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.3s ease;
}

.marquee__item:hover { color: var(--gold-bright); }

.marquee__star { color: var(--gold); font-size: 13px; opacity: 0.7; }

/* ─── Заголовки секций ─────────────────────────────────── */

.s-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

.s-head__index {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.s-head__line {
  width: 48px; height: 1px;
  background: var(--line);
}

.s-head__label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.s-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.08;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  max-width: 18ch;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.s-title .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.s-title .word-inner { display: inline-block; will-change: transform; }

/* ─── Услуги ───────────────────────────────────────────── */

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background-color 0.5s ease;
}

.card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(201, 163, 94, 0.1), transparent 65%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }
.card:hover { background: var(--bg-soft); }

.card__num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 32px;
  transition: color 0.4s ease;
}

.card:hover .card__num { color: var(--gold); }

.card__icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: auto;
  opacity: 0.85;
  transition: transform 0.6s var(--ease-out), opacity 0.4s ease, filter 0.5s ease;
}

.card__icon svg { width: 100%; height: 100%; }

.card:hover .card__icon {
  transform: translateY(-4px) scale(1.06);
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(201, 163, 94, 0.55));
}

.card__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  margin-top: 40px;
  margin-bottom: 12px;
}

.card__text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
  transition: color 0.4s ease;
}

.card:hover .card__text { color: var(--text-soft); }

/* ─── Как мы работаем ──────────────────────────────────── */

.process__timeline {
  position: relative;
  max-width: 820px;
  margin-left: auto;
  padding-left: clamp(36px, 5vw, 64px);
}

.process__track {
  position: absolute;
  left: 0;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line-soft);
}

.process__progress {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--gold-bright), var(--gold));
  transform: scaleY(0);
  transform-origin: top;
  box-shadow: 0 0 12px rgba(201, 163, 94, 0.5);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 3.5vw, 48px);
  padding-block: clamp(28px, 3.5vw, 44px);
}

.step + .step { border-top: 1px solid var(--line-soft); }

.step::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(36px, 5vw, 64px) - 3.5px);
  top: clamp(40px, 5vw, 60px);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--gold);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.step:hover::before {
  background: var(--gold);
  box-shadow: 0 0 16px rgba(201, 163, 94, 0.8);
}

.step__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 163, 94, 0.45);
  transition: color 0.5s ease;
  min-width: 2ch;
}

.step:hover .step__num { color: var(--gold); }

.step__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.step__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  max-width: 52ch;
}

/* ─── Надёжность ───────────────────────────────────────── */

.reliability__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.reliability__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.reliability__img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--line);
  pointer-events: none;
}

.reliability__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.reliability__media:hover .reliability__img { transform: scale(1.05); }

.reliability__list {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3vw, 40px);
}

.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}

.fact__marker {
  color: var(--gold);
  font-size: 13px;
  margin-top: 6px;
}

.fact__title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fact__text {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat {
  padding: clamp(28px, 3.5vw, 48px) clamp(16px, 2vw, 32px);
  text-align: center;
}

.stat + .stat { border-left: 1px solid var(--line-soft); }

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 300;
  line-height: 1;
  color: var(--gold-bright);
  margin-bottom: 12px;
}

.stat__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── Портфолио ────────────────────────────────────────── */

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.filter {
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.filter:hover { color: var(--text); border-color: var(--line); }

.filter.is-active {
  color: #171204;
  background: var(--gold-grad);
  border-color: transparent;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.project {
  position: relative;
  display: block;
}

.project.is-filtered-out { display: none; }

.project__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface);
}

.project__img-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11, 10, 8, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.project:hover .project__img-wrap::after { opacity: 1; }

.project__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s ease;
}

.project:hover .project__img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.project__meta { padding-top: 20px; }

.project__tag {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.project__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.35s ease;
}

.project:hover .project__title { color: var(--gold-bright); }

.project__desc {
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted);
}

.project__arrow {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(11, 10, 8, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 163, 94, 0.35);
  display: grid;
  place-items: center;
  color: var(--gold-bright);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.project__arrow svg { width: 13px; height: 13px; }

.project:hover .project__arrow { opacity: 1; transform: translateY(0); }

/* ─── 3D визуализация ──────────────────────────────────── */

.viz__lead {
  max-width: 620px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--muted);
  margin: calc(-1 * clamp(24px, 3vw, 44px)) 0 clamp(36px, 4.5vw, 56px);
}

/* Кнопка ролика в блоке «Интеллектуальные светодиодные решения» */
.twinkly__watch {
  margin: calc(-1 * clamp(16px, 2vw, 28px)) 0 clamp(36px, 4.5vw, 56px) 0;
}

.viz__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}

.viz-card { margin: 0; }

.viz-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface);
}

.viz-card__media::after {
  content: "3D";
  position: absolute;
  top: 12px; right: 12px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  background: rgba(11, 10, 8, 0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 163, 94, 0.35);
  border-radius: 100px;
  pointer-events: none;
}

.viz-card__video {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.viz-card:hover .viz-card__video { transform: scale(1.04); }

.viz-card__meta { padding-top: 16px; }

.viz-card__tag {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.viz-card__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.9vw, 23px);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ─── Интеллектуальные светодиодные решения ───────────── */

.twinkly .viz-card__media::after { content: "LIVE"; }

/* Длинные слова «Интеллектуальные»/«Индивидуальные» не влезают на узких экранах */
@media (max-width: 640px) {
  .twinkly .s-title,
  .portfolio .s-title {
    max-width: none;
    font-size: clamp(22px, 8vw, 34px);
  }
}

/* ─── Шоу и инсталляции ────────────────────────────────── */

.show__frame {
  position: relative;
  margin: 0;
}

.show__frame + .show__frame { margin-top: clamp(36px, 5vw, 64px); }

.show__media {
  position: relative;
}

.show__video {
  display: block;
  width: 100%;
  aspect-ratio: 13 / 6;
  height: auto;
  object-fit: cover;
  border: 1px solid rgba(201, 163, 94, 0.2);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.show__sound {
  position: absolute;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 2;
}

.show__sound:hover {
  border-color: rgba(201, 163, 94, 0.8);
  background: rgba(11, 10, 8, 0.7);
}

.show__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 18px;
}

.show__caption .viz-card__tag { margin-bottom: 0; }

@media (max-width: 640px) {
  .show__video { aspect-ratio: 16 / 9; }
}

/* ─── Отзывы ───────────────────────────────────────────── */

.reviews__slider {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 4vw, 72px);
  border: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.reviews__quote-mark {
  position: absolute;
  top: -10px;
  left: clamp(20px, 3.5vw, 56px);
  font-family: var(--font-display);
  font-size: 130px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.35;
  pointer-events: none;
}

.reviews__viewport {
  position: relative;
  min-height: 240px;
}

.review {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease-out), visibility 0.6s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.review.is-active { opacity: 1; visibility: visible; transform: translateY(0); position: relative; }

.review__text {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 28px;
}

.review__author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.review__place {
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.reviews__controls {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: clamp(28px, 3vw, 40px);
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.reviews__btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--text-soft);
  transition: border-color 0.35s ease, color 0.35s ease, background-color 0.35s ease;
}

.reviews__btn svg { width: 18px; height: 18px; }

.reviews__btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(201, 163, 94, 0.07);
}

.reviews__counter {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-left: auto;
}

#reviewIndex { color: var(--gold-bright); }

/* ─── Контакты ─────────────────────────────────────────── */

.contacts {
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(201, 163, 94, 0.06), transparent 60%),
    var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  padding-block: var(--section-gap) calc(var(--section-gap) * 0.7);
  margin-top: calc(var(--section-gap) / 2);
}

.contacts__layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.contacts .s-title { margin-bottom: clamp(20px, 2.5vw, 32px); }

.contacts__lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 44ch;
  margin-bottom: clamp(36px, 4vw, 56px);
}

.contacts__list { display: flex; flex-direction: column; gap: 28px; }

.contacts__item { display: flex; flex-direction: column; gap: 6px; width: fit-content; }

.contacts__item-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.contacts__item-value {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--text);
  transition: color 0.35s ease;
}

.contacts__item:hover .contacts__item-value { color: var(--gold-bright); }

.contacts__messengers { display: flex; gap: 12px; margin-top: 6px; }

/* ─── Форма ────────────────────────────────────────────── */

.form {
  position: relative;
  padding: clamp(28px, 3.5vw, 52px);
  background: rgba(21, 18, 14, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form__field { position: relative; margin-bottom: 26px; }

.form__input {
  width: 100%;
  padding: 14px 2px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  transition: border-color 0.4s ease;
  border-radius: 0;
}

.form__input:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.form__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' stroke='%23c9a35e' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
}

.form__select option { background: var(--surface); color: var(--text); }

.form__textarea { resize: vertical; min-height: 90px; }

.form__label {
  position: absolute;
  left: 2px; top: 14px;
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  pointer-events: none;
  transition: transform 0.35s var(--ease-out), font-size 0.35s ease, color 0.35s ease;
  transform-origin: left top;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label,
.form__select:valid ~ .form__label {
  transform: translateY(-22px);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.form__turnstile:empty { display: none; }
.form__turnstile:not(:empty) { margin: 12px 0 4px; min-height: 65px; }

.form__submit { width: 100%; justify-content: center; margin-top: 8px; }

.form__note {
  margin-top: 16px;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--muted);
  text-align: center;
}

.form__error {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(214, 110, 100, 0.95);
  text-align: center;
}

.form__error a {
  color: inherit;
  text-decoration: underline;
}

.form__success {
  position: absolute; inset: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s;
}

.form.is-sent .form__success { opacity: 1; visibility: visible; }

.form__success-mark {
  font-size: 30px;
  color: var(--gold);
  margin-bottom: 18px;
  animation: success-pulse 2.4s ease-in-out infinite;
}

@keyframes success-pulse {
  0%, 100% { text-shadow: 0 0 8px rgba(201, 163, 94, 0.3); transform: scale(1); }
  50% { text-shadow: 0 0 28px rgba(201, 163, 94, 0.9); transform: scale(1.12); }
}

.form__success-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.form__success-text {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--muted);
  max-width: 34ch;
}

/* ─── Футер ────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
  padding-block: clamp(40px, 5vw, 64px) 32px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: clamp(28px, 3.5vw, 44px);
  border-bottom: 1px solid var(--line-soft);
}

.footer__nav { display: flex; flex-wrap: wrap; gap: clamp(18px, 2.5vw, 36px); }

.footer__link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s ease;
}

.footer__link:hover { color: var(--gold-bright); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
}

.footer__copy, .footer__policy {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.footer__policy { transition: color 0.3s ease; }
.footer__policy:hover { color: var(--gold-bright); }

/* ─── Адаптив ──────────────────────────────────────────── */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .viz__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line-soft); }
  .reliability__layout { grid-template-columns: 1fr; }
  .reliability__media { max-width: 640px; }
  .contacts__layout { grid-template-columns: 1fr; }
  .header__cta { display: none; }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hero__content { padding-top: 140px; padding-bottom: 120px; }
  .hero__scroll { display: none; }
  .process__timeline { margin-left: 0; }
}

@media (max-width: 640px) {
  .services__grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card__icon { margin-bottom: 0; }
  .card__title { margin-top: 24px; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .viz__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .reviews__viewport { min-height: 320px; }
}

/* ─── Портфолио: полное портфолио по запросу ───────────── */

.portfolio__more {
  margin-top: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3.5vw, 44px);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 140% at 0% 50%, rgba(201, 163, 94, 0.07), transparent 60%),
    rgba(242, 237, 227, 0.015);
}

.portfolio__more-text {
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 300;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  max-width: 560px;
}

/* ─── Частный сектор: управляемая гирлянда ─────────────── */

.private__layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  margin-top: clamp(32px, 4vw, 56px);
}

.private__lead {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: clamp(28px, 3.5vw, 44px);
}

.private__lead em {
  font-style: normal;
  color: var(--gold-bright);
}

.private__features {
  list-style: none;
  display: grid;
  gap: clamp(18px, 2.5vw, 26px);
}

.private__features li {
  padding-left: 20px;
  border-left: 1px solid rgba(201, 163, 94, 0.45);
}

.private__feature-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 20px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.private__feature-desc {
  display: block;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
}

.private__media {
  position: relative;
  padding-bottom: clamp(48px, 6vw, 72px);
}

.private__photo {
  margin: 0;
  border: 1px solid rgba(201, 163, 94, 0.3);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.private__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.private__photo:not(.private__photo--small) { aspect-ratio: 4 / 3; }

.private__photo--small {
  position: absolute;
  width: 46%;
  aspect-ratio: 4 / 3;
  left: clamp(-40px, -3vw, -24px);
  bottom: 0;
  border-color: var(--gold);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 50px rgba(201, 163, 94, 0.12);
}

.private__projects {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.mini-project {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  background: rgba(242, 237, 227, 0.015);
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}

.mini-project:hover { border-color: var(--gold); transform: translateY(-4px); }

.mini-project img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out), opacity 0.35s ease;
  opacity: 0.88;
}

.mini-project:hover img { transform: scale(1.06); opacity: 1; }

.mini-project__meta {
  display: block;
  padding: 12px 14px 14px;
}

.mini-project__meta strong {
  display: block;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mini-project__meta em {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 3px;
}

@media (max-width: 1100px) {
  .private__projects { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .private__layout { grid-template-columns: 1fr; }
  .portfolio__more { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .private__projects { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .private__photo--small { left: 0; }
}

/* ─── Reduced motion ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__img { animation: none; }
  .marquee__track { animation-duration: 60s !important; animation-iteration-count: infinite !important; }
  .grain { animation: none; }
}
