/* StormNova.ru — storm / lightning design (no assets from .space brand kit) */
:root {
  --bg: #05060a;
  /* body / titles — a bit closer to white */
  --text: #ececec;
  --text-strong: #f5f5f5;
  --muted: #c4c4c4;
  --faint: #9a9a9a;
  /* section kicker: 01 — Система … almost black (very dim on dark bg) */
  --eyebrow: #1a1a1a;
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.16);
  --glass: rgba(12, 14, 20, 0.48);
  --glass-strong: rgba(10, 12, 18, 0.58);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, sans-serif;
  --bolt: #c8d4e8;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}
main, .nav, .foot { position: relative; z-index: 2; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* —— Video background (seamless dual stack) —— */
.bg-video {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #020308;
  pointer-events: none;
}
.bg-v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.85s ease;
  filter: brightness(0.72) contrast(1.08) saturate(0.95);
}
.bg-v.is-on { opacity: 1; }
.bg-dim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(2,3,8,0.55) 0%, rgba(2,3,8,0.35) 40%, rgba(2,3,8,0.72) 100%),
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 20%, rgba(0,0,0,0.55) 100%);
}
.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 90% 80% at 50% 45%, transparent 30%, rgba(0,0,0,0.65) 100%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) {
  .bg-v { display: none; }
  .bg-video { background: #05060a url('/assets/hero-ref.jpg') center/cover no-repeat; }
}

/* brand bolt (CSS, no old logo files) */
.brand-bolt {
  display: inline-block;
  width: 14px; height: 18px;
  background: linear-gradient(165deg, #fff 0%, var(--bolt) 45%, #8aa0c0 100%);
  clip-path: polygon(55% 0%, 20% 52%, 48% 52%, 40% 100%, 80% 42%, 52% 42%);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(180, 200, 255, 0.35));
}
.brand-bolt.sm { width: 11px; height: 14px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(to bottom, rgba(0,0,0,0.75), transparent);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.nav-links {
  display: none;
  gap: 1.5rem;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links a:hover { color: var(--text); }
@media (min-width: 768px) {
  .nav { padding: 1.25rem 2.5rem; }
  .nav-links { display: flex; }
}

/* HERO */
.hero {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative;
  padding: 6rem 1.25rem 4rem;
  text-align: center;
}
.hero-copy {
  max-width: 40rem;
  margin: 0 auto;
  animation: fade-up 1.2s ease both;
}
.eyebrow {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--eyebrow);
  margin: 0 0 1rem;
  /* almost black — dim on storm background */
  opacity: 1;
  text-shadow: none;
}
.section-head > .eyebrow,
.section-contact > .wrap > .eyebrow {
  color: var(--eyebrow);
}
.wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 5rem);
  letter-spacing: 0.2em;
  margin: 0 0 1rem;
  color: #fafafa;
  text-shadow: 0 0 40px rgba(160, 190, 255, 0.22), 0 2px 24px rgba(0,0,0,0.6);
}
.tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 400;
  font-style: italic;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 2rem;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 1.4rem;
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn-solid {
  background: #fff; color: #000; border: 1px solid #fff;
}
.btn-solid:hover { background: #e8e8e8; transform: translateY(-1px); }
.btn-ghost {
  background: rgba(0,0,0,0.35); color: var(--text);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.45); transform: translateY(-1px); }
/* dark glass CTAs — not pure black, slight transparency (site glass style) */
.btn-glass {
  background: rgba(28, 30, 36, 0.55);
  color: #e4e4e4;
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px rgba(0, 0, 0, 0.28);
}
.btn-glass:hover {
  background: rgba(36, 38, 46, 0.62);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f5f5f5;
  transform: translateY(-1px);
}

.scroll-hint {
  position: absolute; bottom: 1.75rem; left: 50%;
  transform: translateX(-50%);
  opacity: 0.4;
}
.scroll-hint span {
  display: block; width: 1px; height: 42px;
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  animation: pulse-line 2.4s ease-in-out infinite;
}

/* SECTIONS */
.section {
  padding: 6.5rem 1.25rem;
  position: relative; z-index: 1;
}
.section-dim {
  background: rgba(0, 0, 0, 0.38);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(3px);
}
.wrap { width: min(1080px, 100%); margin: 0 auto; }
.wrap.narrow { width: min(640px, 100%); }
.section-head { max-width: 36rem; margin-bottom: 3rem; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin: 0 0 1.25rem;
  color: #ececec;
  text-shadow: 0 2px 18px rgba(0,0,0,0.45);
}
.lede {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  margin: 0;
}
.lede.center { text-align: center; }

.metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 768px) {
  .metrics { grid-template-columns: repeat(4, 1fr); }
}
.metric {
  background: var(--glass-strong);
  padding: 1.75rem 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.metric-n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
  color: #f0f0f0;
}
.metric-l {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.pair-board {
  border: 1px solid var(--line);
  padding: 1.75rem 1.25rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
}
.pair-caption {
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 1rem;
}
.pairs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pairs li {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(0,0,0,0.25);
}
.pairs li.pair-new {
  color: var(--text);
  border-color: rgba(255,255,255,0.28);
}
.pair-note {
  margin: 1.15rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
}

.cards { display: grid; gap: 1rem; }
.cards.six { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .cards.six { grid-template-columns: repeat(3, 1fr); }
}
.card {
  border: 1px solid var(--line);
  padding: 1.5rem 1.35rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.65rem;
  letter-spacing: 0.03em;
  color: #eeeeee;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.65;
}

.principles { display: grid; gap: 0; }
.principles li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.principles li:last-child { border-bottom: 1px solid var(--line); }
.p-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--faint);
  letter-spacing: 0.08em;
  padding-top: 0.15rem;
}
.principles h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
  color: #eeeeee;
}
.principles p {
  margin: 0;
  color: var(--muted);
  font-weight: 400;
  font-size: 0.95rem;
}

.doc-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .doc-list { grid-template-columns: repeat(3, 1fr); }
}
.doc-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 1.6rem 1.4rem 1.4rem;
  background: var(--glass);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, transform 0.3s ease;
  min-height: 11rem;
}
.doc-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.doc-kicker {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--faint);
  margin-bottom: 0.85rem;
}
.doc-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin: 0 0 0.5rem;
  letter-spacing: 0.03em;
  color: #eeeeee;
}
.doc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  flex: 1;
}
.doc-open {
  margin-top: 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.section-contact {
  text-align: center;
  padding-bottom: 7rem;
}
.contact-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.12em;
  margin: 0 0 1.25rem;
  color: #ffffff;
}
.contact-row {
  display: flex; flex-wrap: wrap; gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem;
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
}
.foot-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--faint);
  text-transform: uppercase;
}
.foot-inner.foot-center {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
}
.foot-brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--muted);
}

/* sound: pure white speaker icon only */
.sound-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 120;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.sound-toggle:hover { opacity: 1; transform: scale(1.06); }
.sound-toggle:focus-visible { outline: 1px solid rgba(255,255,255,0.5); outline-offset: 3px; }
.sound-svg { display: block; width: 22px; height: 22px; }
/* muted (default): show crossed speaker, hide waves */
.sound-toggle .spk-wave { display: none; }
.sound-toggle .spk-mute { display: block; }
.sound-toggle .spk { display: none; }
/* sound on: open speaker + wave, hide mute slash */
.sound-toggle[aria-pressed="true"] .spk { display: block; }
.sound-toggle[aria-pressed="true"] .spk-wave { display: block; }
.sound-toggle[aria-pressed="true"] .spk-mute { display: none; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-line {
  0%, 100% { opacity: 0.25; transform: scaleY(0.85); }
  50% { opacity: 0.85; transform: scaleY(1); }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 1.1rem; }
}
