/* ============================================================
   CYBERSIBERIA — дизайн-система v2 «Cinematic Premium»
   Кинематографичность ABYSS + неон NavikX + структура LUXORA
   Палитра бренда: лёд #7FB3C8 · золото #E8B84B · бирюза #5AC8AE
   ============================================================ */

/* Локальные OFL-шрифты: без блокирующего запроса к Google Fonts. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russo-one-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/russo-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2191, U+2193;
}

:root {
  --bg: #0D1418;
  --bg-2: #101A20;
  --bg-3: #15222B;
  --ice: #7FB3C8;
  --gold: #E8B84B;
  --gold-light: #F5D06F;
  --gold-dark: #C98A2E;
  --teal: #5AC8AE;
  --text: #F4F8F5;
  --text-dim: #9FB3C0;
  --edge: rgba(127, 179, 200, .14);
  --edge-gold: rgba(232, 184, 75, .28);
  --font-head: 'Russo One', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, .8, .26, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

::selection { background: rgba(232, 184, 75, .3); }

/* ---------- типографика ---------- */
h1, h2, h3, .head-font {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: 1.12;
}

.display {
  font-size: clamp(40px, 7.2vw, 92px);
  text-transform: uppercase;
  letter-spacing: .045em;
}

h2 { font-size: clamp(28px, 3.8vw, 48px); text-transform: uppercase; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.kicker::before {
  content: "";
  width: 44px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lead { color: var(--text-dim); font-size: clamp(16px, 1.5vw, 19px); max-width: 620px; }
.hero .lead { color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, .9); }
.accent-gold { color: var(--gold); }
.accent-teal { color: var(--teal); }
.accent-ice  { color: var(--ice); }

/* ---------- каркас ---------- */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 32px; }
section { position: relative; padding: 120px 0; }
.section-head { max-width: 760px; margin-bottom: 68px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::after {
  content: "";
  width: 44px; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section-head .lead { margin-top: 16px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s, box-shadow .4s;
}
.site-header.scrolled {
  background: rgba(13, 20, 24, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--edge);
  box-shadow: 0 14px 44px rgba(0, 0, 0, .4);
}
.header-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 50%; display: block; filter: drop-shadow(0 0 12px rgba(90, 200, 174, .4)); }
.brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-name b { color: var(--teal); font-weight: 400; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 10px 15px;
  border-radius: 8px;
  transition: color .3s, background .3s;
}
.nav a:hover { color: var(--gold-light); background: rgba(232, 184, 75, .07); }

/* ---------- бургер и мобильное меню ---------- */
.burger {
  display: none;
  margin-left: 12px;
  flex: 0 0 46px;
  width: 46px; height: 46px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(232, 184, 75, .06);
  border: 1px solid var(--edge-gold);
  border-radius: 12px;
  cursor: pointer;
  transition: background .3s;
}
.burger:hover { background: rgba(232, 184, 75, .12); }
.burger span {
  display: block;
  width: 20px; height: 2px;
  border-radius: 2px;
  background: var(--gold-light);
  transition: transform .35s var(--ease-out), opacity .25s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99;
  padding: 108px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(13, 20, 24, .92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--edge-gold);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5);
  transform: translateY(-110%);
  transition: transform .45s var(--ease-out);
  visibility: hidden;
}
.mobile-nav.open { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: .04em;
  padding: 15px 6px;
  border-bottom: 1px solid var(--edge);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .4s, transform .4s var(--ease-out), color .3s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--gold-light); }
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav.open a:nth-child(1) { transition-delay: .08s; }
.mobile-nav.open a:nth-child(2) { transition-delay: .15s; }
.mobile-nav.open a:nth-child(3) { transition-delay: .22s; }
.mobile-nav.open a:nth-child(4) { transition-delay: .29s; }
body.menu-open { overflow: hidden; }
@media (min-width: 641px) {
  .mobile-nav { display: none; }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 17px 34px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease-out), box-shadow .35s, background .3s, color .3s, border-color .3s;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  color: #000;
  box-shadow: 0 8px 30px rgba(232, 184, 75, .25);
}
/* повышенная специфичность: перебиваем .nav a в шапке */
.nav a.btn-gold, a.btn-gold, button.btn-gold, input.btn-gold { color: #000; }
.btn-gold:hover { color: #000; transform: translateY(-3px); box-shadow: 0 16px 44px rgba(232, 184, 75, .4); }
.btn-ghost {
  border-color: rgba(244, 248, 245, .3);
  color: var(--text);
  background: rgba(13, 20, 24, .25);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -12% 0 0 0;
  background: url('../brand/hero-bg.jpg') center 38% / cover no-repeat;
  will-change: transform;
  z-index: -2;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(13, 20, 24, .62) 0%, rgba(13, 20, 24, .18) 34%, rgba(13, 20, 24, .16) 58%, rgba(13, 20, 24, .94) 92%, var(--bg) 100%),
    radial-gradient(58% 46% at 50% 42%, transparent 40%, rgba(13, 20, 24, .5) 100%);
}
.hero-content { max-width: 980px; margin: 0 auto; padding: 0 28px; }
.hero .lead { margin: 26px auto 0; max-width: 640px; }
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 46px;
  flex-wrap: wrap;
}
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
}
.hero-scroll::after {
  content: "";
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scrollHint 2.2s var(--ease-out) infinite;
}
@keyframes scrollHint {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* строка статов поверх низа hero */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -58px;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: rgba(16, 26, 32, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.stat {
  padding: 30px 26px;
  text-align: center;
  border-right: 1px solid var(--edge);
  transition: background .3s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(232, 184, 75, .05); }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(26px, 3vw, 38px);
  color: var(--gold);
  letter-spacing: .03em;
}
.stat-num small { font-size: .55em; color: var(--gold-light); }
.stat-label { margin-top: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); }

/* ---------- услуги ---------- */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 920px;
  margin: 0 auto;
}
.card {
  position: relative;
  border: 1px solid var(--edge);
  border-radius: 16px;
  padding: 42px 34px 36px;
  background: linear-gradient(180deg, rgba(21, 34, 43, .55), rgba(13, 20, 24, .75));
  transition: transform .45s var(--ease-out), border-color .45s, box-shadow .45s;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .45s;
}
.card:hover {
  transform: translateY(-10px);
  border-color: var(--edge-gold);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .5), 0 0 50px rgba(232, 184, 75, .06);
}
.card:hover::after { opacity: 1; }
.card-icon {
  width: 62px; height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
}
.card h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 12px; letter-spacing: .04em; }
.card p { color: var(--text-dim); font-size: 15.5px; }
.card ul { list-style: none; margin: 20px 0 26px; }
.card li {
  color: var(--text-dim);
  font-size: 14.5px;
  padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px dashed rgba(127, 179, 200, .1);
}
.card li:last-child { border-bottom: none; }
.card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 7px; height: 7px;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.card-price {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--gold-light);
  letter-spacing: .06em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.card-price small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- шаги (стиль NavikX) ---------- */
.process { background: linear-gradient(180deg, var(--bg) 0%, #0E171D 50%, var(--bg) 100%); }
.steps { display: flex; flex-direction: column; }
.step {
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 36px;
  align-items: center;
  padding: 40px 8px;
  border-top: 1px solid var(--edge);
  transition: background .35s, padding .35s var(--ease-out);
}
.step:last-child { border-bottom: 1px solid var(--edge); }
.step:hover { background: rgba(232, 184, 75, .03); padding-left: 22px; }
.step-num {
  font-family: var(--font-head);
  font-size: clamp(40px, 4.6vw, 62px);
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 184, 75, .8);
  letter-spacing: .04em;
}
.step h3 { font-size: clamp(20px, 2vw, 26px); text-transform: uppercase; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15.5px; max-width: 560px; }
.step-meta {
  justify-self: end;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(90, 200, 174, .35);
  border-radius: 999px;
  padding: 9px 20px;
  white-space: nowrap;
}

/* ---------- 3D-сцена ---------- */
.scene3d-wrap {
  position: relative;
  height: 560px;
  border: 1px solid var(--edge);
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 50% 60%, rgba(90, 200, 174, .06), transparent 65%),
    radial-gradient(50% 60% at 50% 30%, rgba(232, 184, 75, .05), transparent 60%),
    linear-gradient(180deg, #0E171D, var(--bg));
  overflow: hidden;
  cursor: pointer;
  transition: border-color .5s, box-shadow .5s;
}
.scene3d-wrap:hover, .scene3d-wrap.assembled {
  border-color: var(--edge-gold);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 70px rgba(232, 184, 75, .06);
}
.scene3d-wrap canvas { display: block; }
.scene3d-hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--edge-gold);
  background: rgba(13, 20, 24, .72);
  backdrop-filter: blur(10px);
  color: var(--gold-light);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .06em;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .5s, transform .5s var(--ease-out);
  animation: hintPulse 2.6s ease-in-out infinite;
}
.scene3d-hint.hidden { opacity: 0; transform: translateX(-50%) translateY(12px); }
/* На тач-устройствах нет курсора — меняем текст подсказки */
.scene3d-hint .hint-touch { display: none; }
@media (pointer: coarse) {
  .scene3d-hint .hint-desktop { display: none; }
  .scene3d-hint .hint-touch { display: inline; }
}
@keyframes hintPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 184, 75, .25); }
  50% { box-shadow: 0 0 0 12px rgba(232, 184, 75, 0); }
}
.scene3d-badge {
  position: absolute;
  top: 22px; right: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(90, 200, 174, .35);
  border-radius: 999px;
  padding: 7px 16px;
  background: rgba(13, 20, 24, .55);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* ---------- витрина (видео) ---------- */
.showcase-panel {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
  border: 1px solid var(--edge);
  border-radius: 22px;
  padding: 56px;
  background:
    radial-gradient(70% 90% at 12% 50%, rgba(90, 200, 174, .07), transparent 60%),
    linear-gradient(180deg, rgba(21, 34, 43, .5), rgba(13, 20, 24, .7));
  overflow: hidden;
}
.showcase-video {
  position: relative;
  display: flex;
  justify-content: center;
}
.showcase-video video {
  width: min(330px, 100%);
  border-radius: 20px;
  border: 1px solid var(--edge-gold);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 70px rgba(232, 184, 75, .08);
}
.showcase-text .tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(90, 200, 174, .35);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 24px;
}
.showcase-text h2 { margin-bottom: 18px; }
.showcase-text p { color: var(--text-dim); font-size: 16px; max-width: 520px; }

/* ---------- заявка ---------- */
.contact { padding-bottom: 140px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; }
.contact-points { list-style: none; margin-top: 34px; }
.contact-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px dashed rgba(127, 179, 200, .12);
  color: var(--text-dim);
  font-size: 15.5px;
}
.contact-points li:last-child { border-bottom: none; }
.contact-points svg { flex: none; margin-top: 3px; }
.contact-points b { color: var(--text); }

.form-card {
  border: 1px solid var(--edge-gold);
  border-radius: 20px;
  padding: 46px 42px;
  background: rgba(16, 26, 32, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .5), 0 0 80px rgba(232, 184, 75, .05);
}
.form-card h3 { font-size: 24px; text-transform: uppercase; margin-bottom: 8px; }
.form-card .sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 30px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: rgba(13, 20, 24, .65);
  border: 1px solid var(--edge);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 15px 17px;
  outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 184, 75, .12);
}
.field textarea { min-height: 116px; resize: vertical; }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 16px; text-align: center; }
.form-success {
  border: 1px solid rgba(90, 200, 174, .45);
  background: rgba(90, 200, 174, .08);
  color: var(--teal);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 22px;
  font-weight: 600;
}

/* ---------- фирменная сцена: снег, код и северное сияние ---------- */
.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .08;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 28% 16%, rgba(90, 200, 174, .13), transparent 48%),
    radial-gradient(ellipse at 75% 25%, rgba(127, 179, 200, .1), transparent 46%);
  transition: opacity 2.6s var(--ease-out);
}
.hero.aurora-active .hero-aurora { opacity: .82; }
.hero-slogan-space {
  position: relative;
  width: 100%;
  height: clamp(150px, 18vw, 230px);
  min-height: 150px;
  isolation: isolate;
}
.hero-title-fallback,
.hero-title-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-title-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #EAF5F6;
  font-family: var(--font-head);
  font-size: clamp(38px, 7.5vw, 104px);
  line-height: 1;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(127, 179, 200, .22);
  transition: opacity .45s ease;
}
.hero-title-fallback span { color: var(--teal); }
.hero-title-canvas {
  display: block;
  pointer-events: none;
  opacity: 0;
}
.hero-slogan-space.is-enhanced .hero-title-canvas { opacity: 1; }
.hero-slogan-space.is-enhanced .hero-title-fallback { opacity: 0; }
@media (max-width: 640px) {
  .hero-slogan-space { height: 148px; }
  .hero-title-fallback { font-size: clamp(32px, 10.5vw, 44px); letter-spacing: .01em; }
  .hero.aurora-active .hero-aurora { opacity: .68; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-aurora { opacity: .58; transition: none; }
  .hero-title-canvas { display: none; }
  .hero-slogan-space.is-enhanced .hero-title-fallback { opacity: 1; }
}

/* ---------- цены на разработку сайтов ---------- */
.service-prices { margin: 28px 0 12px; border-top: 1px solid var(--edge); }
.service-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--edge);
}
.service-price-row b { color: var(--text); font-size: 15px; font-weight: 700; }
.service-price-row span { color: var(--gold-light); font-family: var(--font-head); font-size: 15px; white-space: nowrap; }
.card .price-note { margin-top: 14px; color: var(--ice); font-size: 13.5px; }

/* ---------- стек технологий ---------- */
.stack-section {
  padding: 100px 0;
  background: linear-gradient(110deg, rgba(127, 179, 200, .045), transparent 55%);
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}
.stack-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.stack-copy .lead { margin-top: 24px; }
.stack-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.stack-list li { padding: 18px 0; border-bottom: 1px solid var(--edge); }
.stack-list b { display: block; color: var(--teal); font-family: var(--font-head); font-size: 17px; font-weight: 400; letter-spacing: .04em; }
.stack-list span { display: block; margin-top: 5px; color: var(--text-dim); font-size: 13.5px; }

/* ---------- миссия ---------- */
.mission-text { max-width: 850px; line-height: 1.7; }
.mission-text strong { color: var(--gold-light); font-weight: 700; }

/* ---------- 3D: статичная заглушка и финальная надпись ---------- */
.scene3d-wrap canvas { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; }
.scene3d-wrap:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
.scene3d-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  opacity: 1;
  transition: opacity .35s ease;
}
.scene3d-wrap.webgl-ready .scene3d-fallback { opacity: 0; }
.fallback-window {
  position: relative;
  width: 58%;
  height: 52%;
  border: 1px solid rgba(127, 179, 200, .45);
  border-top: 24px solid rgba(90, 200, 174, .16);
  background: rgba(13, 20, 24, .8);
  box-shadow: 0 0 60px rgba(90, 200, 174, .08);
}
.fallback-window span { position: relative; display: inline-block; width: 6px; height: 6px; margin: -17px 0 0 8px; border-radius: 50%; background: var(--gold); }
.fallback-window span:nth-child(2) { background: var(--teal); }
.fallback-window span:nth-child(3) { background: var(--ice); }
.fallback-window i { position: absolute; display: block; background: rgba(127, 179, 200, .18); border: 1px solid rgba(127, 179, 200, .25); }
.fallback-window i:nth-of-type(1) { left: 8%; top: 20%; width: 35%; height: 8%; }
.fallback-window i:nth-of-type(2) { left: 8%; top: 36%; width: 22%; height: 8%; background: rgba(232, 184, 75, .3); }
.fallback-window i:nth-of-type(3) { right: 8%; top: 18%; width: 35%; height: 40%; background: rgba(90, 200, 174, .12); }
.fallback-window i:nth-of-type(4) { left: 8%; bottom: 10%; width: 84%; height: 18%; }
.scene3d-hint, .scene3d-badge { z-index: 3; }
.scene3d-complete {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 40px);
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: clamp(19px, 3vw, 36px);
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
  text-shadow: 0 0 28px rgba(232, 184, 75, .45);
  pointer-events: none;
  transition: opacity .7s ease, transform .7s var(--ease-out);
}
.scene3d-wrap.is-complete .scene3d-complete { opacity: 1; transform: translateX(-50%) translateY(0); }
.scene3d-wrap.is-complete .scene3d-complete::after {
  content: "";
  display: block;
  width: 46%;
  height: 1px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

/* ---------- подвал ---------- */
.site-footer {
  border-top: 1px solid var(--edge);
  padding: 44px 0 36px;
  background: #0B1115;
}
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-inner img { width: 38px; height: 38px; border-radius: 50%; }
.footer-tag { color: var(--text-dim); font-size: 14px; }
.footer-tag b { color: var(--gold); font-weight: 600; }
.footer-copy { margin-left: auto; color: var(--text-dim); font-size: 13px; }

/* ---------- появление ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .14s; }
.reveal[data-delay="2"] { transition-delay: .28s; }
.reveal[data-delay="3"] { transition-delay: .42s; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .cards-3 { grid-template-columns: 1fr; }
  .showcase-panel { grid-template-columns: 1fr; padding: 40px 30px; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 90px 1fr; }
  .step-meta { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--edge); }
  .stack-grid { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 640px) {
  section { padding: 84px 0; }
  .wrap { padding: 0 22px; }
  .header-inner { padding-left: 22px; padding-right: 22px; }
  .hero-slogan-space { min-height: 112px; }
  .scene3d-wrap { height: 420px; }
  .scene3d-hint { font-size: 12px; padding: 10px 18px; }
  .scene3d-badge { top: 16px; right: 16px; font-size: 9px; padding: 6px 11px; }
  .scene3d-complete { bottom: 30px; max-width: calc(100% - 32px); }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .burger { display: flex; margin-left: auto; }
  .hero .kicker { display: block; max-width: 100%; font-size: 10px; letter-spacing: .16em; line-height: 1.8; }
  .hero .kicker::before { display: none; }
  .form-card { padding: 32px 24px; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .hero-scroll { display: none; }
  .stack-section { padding: 84px 0; }
  .stack-list { grid-template-columns: 1fr; }
  .service-price-row { flex-direction: column; gap: 5px; }
  .service-price-row span { font-size: 14px; }
}
@media (max-width: 390px) {
  .stat { padding: 24px 12px; }
  .stat-label { font-size: 11px; letter-spacing: .08em; }
  .scene3d-hint { max-width: calc(100% - 28px); white-space: normal; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll::after, .scene3d-hint { animation: none; }
  .btn, .card, .step, .scene3d-complete { transition-duration: .01ms; }
}

/* ---------- избранные работы: липкая стопка кейсов ---------- */
.works-section {
  position: relative;
  padding: 112px 0 130px;
  background: #091116;
  border-top: 1px solid var(--edge);
  border-radius: 64px 64px 0 0;
}
.works-heading {
  position: sticky;
  top: 92px;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 82px;
  pointer-events: none;
}
.works-heading h2 { font-size: clamp(38px, 5vw, 66px); }
.works-heading > p {
  max-width: 340px;
  padding-bottom: 8px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.7;
}
.works-stack {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 52px;
  padding-top: 20px;
}
.work { position: sticky; top: clamp(88px, 14vh, 150px); }
.work-card {
  position: relative;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(127, 179, 200, .24);
  border-radius: 24px;
  background: #111E25;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .34);
  transform: scale(var(--stack-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
.work-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 38px;
}
.work-topline {
  margin-bottom: 42px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  line-height: 1.6;
  text-transform: uppercase;
}
.work-topline.work-real { color: var(--gold); }
.work-copy h3 {
  margin-bottom: 24px;
  color: var(--text);
  font-size: 37px;
  letter-spacing: .01em;
  text-transform: none;
}
.work-copy > p {
  max-width: 350px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
}
.work-tags {
  display: block;
  margin: 22px 0;
  color: var(--ice);
  font-size: 11px;
  line-height: 1.8;
}
.work-open {
  align-self: flex-start;
  gap: 16px;
  min-height: 46px;
  margin-top: auto;
  padding: 12px 17px;
  font-size: 11px;
  letter-spacing: .08em;
}
.work-media {
  position: relative;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  margin: 7px;
  overflow: hidden;
  border: 1px solid rgba(127, 179, 200, .14);
  border-radius: 18px;
  background: #0C161B;
  color: var(--text);
  isolation: isolate;
  text-decoration: none;
}
.work-media:focus-visible { outline: 2px solid var(--gold); outline-offset: -5px; }
.work-browser {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(127, 179, 200, .12);
  background: #101D23;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: .06em;
}
.work-browser > span:first-child { display: flex; gap: 6px; }
.work-browser > span:last-child { justify-self: end; color: var(--gold); font-size: 15px; }
.work-browser i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.work-browser i:nth-child(2) { background: var(--teal); }
.work-browser i:nth-child(3) { background: var(--ice); }
.work-browser b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.work-shot {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(.72) brightness(.82);
  transform: scale(1.001);
  transition: filter .55s ease, transform .8s var(--ease-out);
  user-select: none;
}
.work-card:hover .work-shot,
.work-card:focus-within .work-shot { filter: grayscale(0) brightness(1); transform: scale(1.025); }
.work-media-label {
  position: absolute;
  right: 17px;
  bottom: 17px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid rgba(232, 184, 75, .26);
  border-radius: 100px;
  background: rgba(9, 17, 22, .88);
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 700;
  transition: transform .25s ease;
}
.work-media:hover .work-media-label { transform: translateY(-4px); }
.work-dim {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: #050B0E;
  opacity: var(--stack-dim, 0);
  pointer-events: none;
}
@media (max-width: 1150px) and (min-width: 901px) {
  .work-card { height: 490px; grid-template-columns: .88fr 1.12fr; }
  .work-copy { padding: 30px; }
  .work-topline { margin-bottom: 30px; }
  .work-copy h3 { font-size: 32px; }
  .work-copy > p { font-size: 14px; }
}
@media (max-width: 900px) {
  .works-section { padding: 86px 0; border-radius: 46px 46px 0 0; }
  .works-heading { position: relative; top: auto; display: block; margin-bottom: 52px; pointer-events: auto; }
  .works-heading > p { margin-top: 24px; }
  .works-stack { display: block; padding-top: 0; }
  .work { position: relative; top: auto; margin-bottom: 34px; }
  .work:last-child { margin-bottom: 0; }
  .work-card { height: auto; min-height: 0; grid-template-columns: 1fr; transform: none; will-change: auto; }
  .work-copy { padding: 30px; }
  .work-topline { margin-bottom: 24px; }
  .work-copy > p { max-width: 680px; }
  .work-open { margin-top: 10px; }
  .work-media { aspect-ratio: 1.45; margin: 0 6px 6px; }
  .work-dim { display: none; }
  .work-shot { filter: none; }
}
@media (max-width: 640px) {
  .works-section { padding: 72px 0; border-radius: 32px 32px 0 0; }
  .works-heading h2 { font-size: 34px; }
  .works-heading > p { font-size: 14px; }
  .work { margin-bottom: 28px; }
  .work-card { border-radius: 18px; }
  .work-copy { padding: 24px; }
  .work-copy h3 { margin-bottom: 18px; font-size: 30px; }
  .work-copy > p { font-size: 14px; }
  .work-tags { margin: 17px 0; font-size: 10px; }
  .work-open { min-height: 44px; font-size: 10px; }
  .work-media { aspect-ratio: 1.2; grid-template-rows: 36px minmax(0, 1fr); border-radius: 12px; }
  .work-browser { padding: 0 12px; font-size: 9px; }
  .work-media-label { right: 11px; bottom: 11px; padding: 8px 11px; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .works-heading { position: relative; top: auto; }
  .work { position: relative; top: auto; }
  .work-card { transform: none !important; will-change: auto; }
  .work-dim { display: none; }
  .work-shot, .work-media-label { transition: none; }
}
