/* =========================================================
   SPATIAL — 3D-стиль
   глубокий космос, фоновая сцена из частиц, стеклянные панели,
   HUD-пометки, неоновые градиентные рамки
   ========================================================= */
:root {
  --bg: #05060a; --bg-2: #0d1018; --fg: #e9ecf5; --muted: #8a90a6; --line: rgba(233, 236, 245, .1);
  --accent: #6ae3ff; --accent-2: #a879ff; --accent-3: #ff7ad9;
  --font-d: 'Geologica', system-ui, sans-serif; --font-b: 'Geologica', system-ui, sans-serif; --font-m: 'JetBrains Mono', monospace;
  --radius: 20px; --ease: cubic-bezier(.16, 1, .3, 1); --curtain: #0d1018; --curtain-2: #6ae3ff; --cursor: #6ae3ff; --cursor-fg: #05060a;
}
body { background: radial-gradient(120% 80% at 50% 0%, #0c1224 0%, var(--bg) 60%) fixed, var(--bg); font-weight: 300; }
canvas[data-space] { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
main, footer, .nav { position: relative; z-index: 1; }
.nav { position: fixed; }
h1, h2, h3 { font-family: var(--font-d); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.h-xl { font-size: clamp(40px, min(6vw, 10vh), 104px); }
.h-lg { font-size: clamp(34px, 4.6vw, 72px); }
.h-md { font-size: clamp(22px, 2.2vw, 32px); }
.glow { background: linear-gradient(90deg, var(--accent), var(--accent-2) 55%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.glow * { background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 540px; }
.hud { font-family: var(--font-m); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); display: inline-flex; gap: 10px; align-items: center; }
.hud::before { content: ''; width: 18px; height: 1px; background: currentColor; box-shadow: 0 0 8px currentColor; }
.section { padding: clamp(90px, 12vw, 170px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 70px); max-width: 860px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------- Стекло с неоновой рамкой ---------- */
.glass {
  position: relative; border-radius: var(--radius); background: rgba(13, 16, 24, .55); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line); overflow: hidden;
}
.glass::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(135deg, rgba(106, 227, 255, .6), transparent 35%, transparent 65%, rgba(168, 121, 255, .6)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.glass::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(106, 227, 255, .12), transparent 60%); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 58px; padding: 0 28px; border-radius: 14px; font-weight: 600; font-size: 15px;
  background: var(--fg); color: var(--bg); overflow: hidden; isolation: isolate; box-shadow: 0 0 0 0 rgba(106, 227, 255, .5); transition: box-shadow .5s var(--ease);
}
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: translateX(-101%); transition: transform .6s var(--ease); }
.btn:hover::after { transform: none; }
.btn:hover { box-shadow: 0 0 40px 0 rgba(106, 227, 255, .45); }
.btn--ghost { background: rgba(255, 255, 255, .05); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { color: var(--bg); }

/* ---------- Навигация ---------- */
.nav { inset: 0 0 auto; z-index: 100; transition: transform .6s var(--ease), background .4s; }
.nav.is-scrolled { background: rgba(5, 6, 10, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__in { display: flex; justify-content: space-between; align-items: center; gap: 20px; height: 76px; }
.nav__logo { font-weight: 700; font-size: 20px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.nav__logo i { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 16px var(--accent); }
.nav__links { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.nav__links a:hover { color: var(--fg); }
.nav .btn { height: 46px; padding: 0 20px; font-size: 14px; }
@media (max-width: 900px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.sp-hero { min-height: 100svh; display: flex; align-items: center; padding: 110px 0 50px; }
.sp-hero__txt { display: grid; gap: clamp(14px, 2.2vh, 22px); justify-items: start; max-width: 680px; }
.sp-who { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-who span { padding: 8px 14px; border-radius: 10px; font-size: 13.5px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.sp-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(18px, 3vw, 44px); }
.sp-fact b { display: block; font-size: clamp(28px, 2.8vw, 42px); font-weight: 600; letter-spacing: -.04em; }
.sp-fact span { font-size: 12.5px; color: var(--muted); }
.sp-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-hook { font-size: 14px; color: var(--muted); }
.sp-scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-family: var(--font-m); font-size: 11px; color: var(--muted); letter-spacing: .14em; display: grid; justify-items: center; gap: 10px; }
.sp-scroll i { width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); animation: sp-drop 2s var(--ease) infinite; transform-origin: top; }
@keyframes sp-drop { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 900px) { .sp-facts { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Модули / фичи ---------- */
.sp-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.sp-feat { padding: 28px 26px; display: grid; gap: 12px; align-content: start; }
.sp-feat__n { font-family: var(--font-m); font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.sp-feat .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent); background: rgba(106, 227, 255, .08); }
.sp-feat h3 { font-size: 21px; }
.sp-feat p { color: var(--muted); font-size: 14.5px; }

/* ---------- Спецификации ---------- */
.sp-specs { display: grid; gap: 0; }
.sp-spec { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sp-spec span { color: var(--muted); }
.sp-spec b { font-weight: 600; text-align: right; }

/* ---------- Карточки товара ---------- */
.sp-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sp-product { display: grid; gap: 14px; padding: 14px 14px 22px; }
.sp-product__img { aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.sp-product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.sp-product:hover .sp-product__img img { transform: scale(1.06); }
.sp-product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 6px; }
.sp-product h3 { font-size: 20px; }
.sp-product__row b { color: var(--accent); font-weight: 600; white-space: nowrap; }
.sp-product p { padding: 0 6px; color: var(--muted); font-size: 14px; }
.sp-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; }
.sp-tags span { font-family: var(--font-m); font-size: 11px; padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--muted); }

/* ---------- Большая цифра ---------- */
.sp-big { font-size: clamp(90px, 18vw, 300px); font-weight: 700; letter-spacing: -.06em; line-height: .85; }

/* ---------- CTA ---------- */
.sp-cta-box { padding: clamp(30px, 6vw, 80px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.sp-form { display: grid; gap: 10px; }
.sp-form input { height: 58px; padding: 0 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--fg); }
.sp-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(106, 227, 255, .15); }
.form-ok { font-size: 24px; font-weight: 600; }
@media (max-width: 900px) { .sp-cta-box { grid-template-columns: 1fr; } }

.footer { padding: 50px 0 36px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer .container { display: grid; gap: 18px; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer__note { font-size: 12px; opacity: .7; }
