/* SunRisePower: one stylesheet for every page. Light page, dawn-coloured hero, the 3D scene on a
   fixed canvas behind the hero, the module and the calculator. No inline styles anywhere: the
   Content-Security-Policy forbids them. */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(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(manrope-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(manrope-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night: #0b1324;
  --night-2: #121d36;
  --ink: #0f1b2d;
  --ink-2: #3a4a60;
  --ink-3: #5f6f85;
  --line: #e1e7ef;
  --line-2: #cdd6e2;
  --bg: #ffffff;
  --bg-soft: #f3f6fa;
  --sun: #ff9f1c;
  --sun-2: #ffc857;
  --sun-deep: #a95200;
  --sky: #2fa8f0;
  /* Chart colours, checked with the dataviz palette validator (light surface, colour-blind safe). */
  --self: #f08c00;
  --export: #2a8fd6;
  --ok: #0f7a47;
  --radius: 20px;
  --radius-s: 12px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.05), 0 10px 30px rgba(15, 27, 45, 0.08);
  --shadow-l: 0 2px 6px rgba(15, 27, 45, 0.06), 0 24px 60px rgba(15, 27, 45, 0.14);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 72px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --logo-cut: var(--bg);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg-soft);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- The 3D canvas ---------- */
#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  pointer-events: none;
}
#scene.ready { opacity: 1; }
main, .footer, .nav { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sun); color: var(--ink); box-shadow: 0 6px 18px rgba(255, 159, 28, 0.32); }
.btn-primary:hover { background: #ffb13f; box-shadow: 0 8px 24px rgba(255, 159, 28, 0.42); }
.btn-glass { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.18); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.btn .icon { width: 1.1em; height: 1.1em; }
.link-button { background: none; border: 0; padding: 4px 0; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 0.92rem; justify-self: start; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-h);
  color: #fff;
  --logo-cut: var(--night);
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}
.nav.scrolled, .nav.nav-solid, .nav.open {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15, 27, 45, 0.06);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  --logo-cut: var(--bg);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 600; }
.logo b { font-weight: 800; }
.logo-mark { width: 36px; height: 36px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.86; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current] { opacity: 1; border-bottom-color: var(--sun); }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 2px; opacity: 0.9; }
.lang a { text-decoration: none; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 999px; opacity: 0.7; }
.lang a[aria-current] { background: currentColor; opacity: 1; }
.lang a[aria-current] { color: inherit; }
.nav .lang a[aria-current], .footer .lang a[aria-current] { background: var(--sun); color: var(--ink); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: 12px; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1080px) {
  .nav-links { gap: 18px; }
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    color: var(--ink);
    box-shadow: 0 18px 40px rgba(15, 27, 45, 0.12);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 700; opacity: 1; }
  .nav-tools { margin-left: auto; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-3d { background: transparent; }
.section-plain { background: var(--bg); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--night); color: rgba(255, 255, 255, 0.78); --logo-cut: var(--night); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
.section-head .lead { margin-top: 18px; font-size: 1.15rem; color: var(--ink-2); }
.section-dark .section-head .lead { color: rgba(255, 255, 255, 0.74); }
.eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-deep); margin-bottom: 14px; }
.section-dark .eyebrow, .hero .eyebrow { color: var(--sun-2); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.fine { font-size: 0.85rem; color: var(--ink-3); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-self { background: var(--self); }
.dot-export { background: var(--export); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 48px;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 60% at 72% 100%, rgba(255, 140, 70, 0.55), rgba(255, 140, 70, 0) 60%),
    linear-gradient(180deg, #070d1c 0%, #111a3a 42%, #2b2b5c 70%, #6b3e63 88%, #b8604f 100%);
  transition: opacity 1.2s ease;
}
html[data-scene="ready"] .hero-sky { opacity: 0; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: 1.03; letter-spacing: -0.03em; text-shadow: 0 2px 28px rgba(4, 8, 20, 0.45); }
.hero .lead { margin-top: 22px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.86); max-width: 560px; text-shadow: 0 1px 16px rgba(4, 8, 20, 0.55); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.facts li { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 2px solid rgba(255, 200, 87, 0.7); }
.facts strong { font-size: 1.5rem; color: #fff; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); }
.hero-visual { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(72vh, 680px); }
.stage { position: relative; }
.stage-hero { flex: 1; min-height: 320px; }
.stage-fallback { display: none; }

.hud {
  position: relative;
  z-index: 2;
  align-self: flex-end;
  width: min(100%, 330px);
  margin-top: -40px;
  padding: 18px 20px 16px;
  border-radius: 18px;
  background: rgba(10, 18, 38, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}
.hud-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.hud-head strong { display: block; color: #fff; font-size: 0.98rem; }
.hud-head small { display: block; color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; }
.hud-sun { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff3c4 0, #ffc857 38%, #ff9f1c 70%, rgba(255, 159, 28, 0) 72%); box-shadow: 0 0 22px rgba(255, 180, 60, 0.7); flex: none; }
.hud-rows { margin: 0; display: grid; gap: 6px; }
.hud-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hud-rows dt { color: rgba(255, 255, 255, 0.66); }
.hud-rows dd { margin: 0; color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.hud-value dd { font-size: 1.35rem; color: var(--sun-2); }
.hud-bar { width: 100%; height: 6px; margin: 12px 0 8px; border-radius: 3px; overflow: hidden; }
.hud-bar .bar-self { fill: var(--self); }
.hud-bar .bar-export { fill: var(--export); }
.hud-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.72); }
.hud-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hud-legend b { font-weight: 700; color: rgba(255, 255, 255, 0.92); font-variant-numeric: tabular-nums; }
.hud-legend .dot { width: 8px; height: 8px; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; padding-bottom: 28px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-visual { min-height: 0; }
  .stage-hero { flex: none; min-height: 0; height: 40svh; }
  .hud { align-self: stretch; width: auto; margin-top: -28px; }
  .hero h1 { font-size: clamp(2rem, 9.4vw, 2.7rem); }
  .hero .lead { margin-top: 14px; font-size: 1rem; }
  .hero-actions { margin-top: 22px; flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 0; padding: 0 14px; font-size: 0.95rem; }
  .hero-actions .btn .icon { display: none; }
  .facts { margin-top: 22px; flex-wrap: nowrap; gap: 10px; }
  .facts li { padding-left: 10px; min-width: 0; }
  .facts strong { font-size: 1.1rem; }
  .facts span { font-size: 0.74rem; line-height: 1.3; }
}

/* ---------- Module ---------- */
.module-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.stage-module { position: sticky; top: calc(var(--nav-h) + 4vh); height: min(78vh, 760px); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { background: rgba(255, 255, 255, 0.86); border: 1px solid var(--line); border-radius: 16px; padding: 20px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.feature h3 { font-size: 1.08rem; margin: 12px 0 6px; letter-spacing: -0.01em; }
.feature p { font-size: 0.95rem; line-height: 1.55; }
.feature-icon { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(135deg, #fff4dd, #ffe2b0); color: var(--sun-deep); }
.feature-icon .icon { width: 22px; height: 22px; }
.specs { margin-top: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.specs > summary, .params > summary, .qa > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--ink);
}
.specs > summary::-webkit-details-marker, .params > summary::-webkit-details-marker, .qa > summary::-webkit-details-marker { display: none; }
.specs > summary { padding: 18px 20px; }
details[open] > summary .icon { transform: rotate(180deg); }
summary .icon { transition: transform 0.2s ease; color: var(--ink-3); }
.specs-body { padding: 0 20px 20px; display: grid; gap: 18px; }
.spec-block h3 { font-size: 0.95rem; margin-bottom: 8px; }
.spec-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.spec-table th, .spec-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table thead th { color: var(--ink); font-weight: 800; white-space: nowrap; }
.spec-table tbody th { font-weight: 600; color: var(--ink-2); }
.spec-table td { color: var(--ink); }
.spec-pairs th { width: 46%; }
.specs .btn { justify-self: start; }

@media (max-width: 980px) {
  .module-grid { grid-template-columns: 1fr; }
  .stage-module { position: relative; top: 0; height: 52svh; order: -1; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; }
  .spec-cols { grid-template-columns: 1fr; }
}

/* ---------- Calculator ---------- */
.calc-top { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.calc-form { padding: 24px; display: grid; gap: 18px; align-content: start; }
.stage-calc { min-height: 420px; }
.field { display: grid; gap: 7px; }
.field-label { font-size: 0.86rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.est { font-weight: 700; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sun-deep); background: #fff3df; border-radius: 6px; padding: 2px 6px; }
.field select, .field input[type="number"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 20px) 20px, calc(100% - 15px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.field input::placeholder { color: var(--ink-3); font-weight: 500; }
.field select:hover, .field input[type="number"]:hover { border-color: var(--ink-3); }
.range-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; align-items: center; }
.range-row input[type="number"] { text-align: center; padding: 0 8px; }
.range-hint { font-size: 0.86rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; --fill: 15%; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sun) var(--fill), var(--line) var(--fill)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sun); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 2px solid var(--sun); box-shadow: 0 2px 8px rgba(15, 27, 45, 0.25); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--sun); box-shadow: 0 2px 8px rgba(15, 27, 45, 0.25); }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 7px; }
.seg-options { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border-radius: 14px; padding: 4px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px; font-weight: 700; font-size: 0.94rem; color: var(--ink-2); transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.seg input:checked + span { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 27, 45, 0.1), 0 4px 10px rgba(15, 27, 45, 0.08); }
.seg input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 1px; }
.seg-small span { min-height: 36px; font-size: 0.9rem; }
.params { border-top: 1px solid var(--line); padding-top: 14px; }
.params > summary { font-size: 0.95rem; padding: 4px 0; }
.params-body { display: grid; gap: 14px; padding-top: 14px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 0.94rem; color: var(--ink); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--sun); }

.calc-results { margin-top: clamp(20px, 3vw, 32px); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-label { font-size: 0.84rem; color: var(--ink-3); font-weight: 600; }
.kpi-value { font-size: clamp(1.25rem, 2.1vw, 1.6rem); color: var(--ink); font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-main { grid-column: 4; grid-row: 1 / span 2; background: linear-gradient(160deg, #10203f 0%, #0b1324 100%); border-color: transparent; color: rgba(255, 255, 255, 0.78); justify-content: center; }
.kpi-main .kpi-label { color: rgba(255, 255, 255, 0.72); }
.kpi-main .kpi-value { color: var(--sun-2); font-size: clamp(1.7rem, 3vw, 2.4rem); }
.kpi-sub { font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); font-variant-numeric: tabular-nums; }
.split { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.14); display: grid; gap: 6px; font-size: 0.88rem; }
.split li { display: flex; align-items: center; gap: 8px; }
.split b { margin-left: auto; color: #fff; font-variant-numeric: tabular-nums; }
.calc-warn { margin-top: 14px; padding: 12px 16px; border-left: 4px solid var(--sun); background: #fff7e8; border-radius: 0 12px 12px 0; color: var(--ink); font-size: 0.94rem; }
.charts { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.chart { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 12px; min-width: 0; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.legend { display: inline-flex; gap: 14px; font-weight: 600; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-box { position: relative; height: 230px; }
.chart-box svg { width: 100%; height: 100%; overflow: visible; }
.chart-box .grid line { stroke: var(--line); stroke-width: 1; }
.chart-box .axis text, .chart-box .label { fill: var(--ink-3); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart-box .zero { stroke: var(--ink-3); stroke-width: 1; }
.chart-box .bar-self { fill: var(--self); }
.chart-box .bar-export { fill: var(--export); }
.chart-box .area-pos { fill: rgba(19, 138, 82, 0.12); }
.chart-box .area-neg { fill: rgba(194, 94, 0, 0.1); }
.chart-box .line { fill: none; stroke: var(--ink); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart-box .marker { fill: var(--sun); stroke: var(--bg); stroke-width: 2; }
.chart-box .marker-label { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--font); paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.chart-box .hover-col { fill: transparent; }
.chart-tip { position: absolute; pointer-events: none; background: var(--ink); color: #fff; font-size: 0.8rem; line-height: 1.4; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: 0 6px 18px rgba(15, 27, 45, 0.25); font-variant-numeric: tabular-nums; z-index: 3; }
.chart-tip[hidden] { display: none; }
.calc-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.copied { font-size: 0.92rem; font-weight: 700; color: var(--ok); }
.calc-note { margin-top: 16px; font-size: 0.82rem; line-height: 1.55; color: var(--ink-3); max-width: 980px; }

@media (max-width: 980px) {
  .calc-top { grid-template-columns: 1fr; }
  .stage-calc { order: -1; min-height: 0; height: 34svh; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-main { grid-column: 1 / -1; grid-row: auto; order: -1; }
  .charts { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .calc-form { padding: 18px; }
  .kpi { padding: 14px; }
}

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.step { position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 28px 24px; }
.step-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 16px; align-items: center; justify-content: center; background: var(--night); color: var(--sun-2); }
.step-icon .icon { width: 26px; height: 26px; }
.step-num { position: absolute; top: 24px; right: 24px; font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--line-2); }
.step h3 { font-size: 1.2rem; margin: 18px 0 8px; }
.step p { font-size: 0.98rem; }
.how-note { margin-top: 24px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 0.96rem; max-width: 900px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 24px); }
.faq-list { display: grid; gap: 10px; }
.qa { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; }
.qa > summary { padding: 18px 20px; font-size: 1.02rem; }
.qa p { padding: 0 20px 20px; font-size: 0.98rem; }
.qa[open] { box-shadow: var(--shadow); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.contact-card { display: grid; gap: 4px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); align-content: start; }
.contact-icon { color: var(--sun-2); margin-bottom: 8px; }
.contact-icon .icon { width: 24px; height: 24px; }
.contact-label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: rgba(255, 255, 255, 0.55); }
.contact-value { color: #fff; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-value a { text-decoration: none; }
.contact-value a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-more { margin-top: 6px; font-size: 0.9rem; color: var(--sun-2); }
.contact-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.contact-soon { align-content: center; }
.contact-soon .contact-value { font-weight: 600; font-size: 1rem; color: rgba(255, 255, 255, 0.86); }
.requisites { padding: 24px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.requisites h3 { font-size: 1.1rem; margin-bottom: 14px; }
.req { margin: 0; display: grid; gap: 10px; font-size: 0.92rem; }
.req div { display: grid; gap: 2px; }
.req dt { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; }
.req dd { margin: 0; color: rgba(255, 255, 255, 0.9); }
.req .req-name dd { font-weight: 800; color: #fff; font-size: 1rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: #070d1b; color: rgba(255, 255, 255, 0.66); padding: 48px 0 28px; font-size: 0.92rem; --logo-cut: #070d1b; }
.footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; gap: 24px 48px; align-items: start; }
.footer-brand p { margin-top: 12px; max-width: 360px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: rgba(255, 255, 255, 0.8); }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.24); background: none; color: rgba(255, 255, 255, 0.8); cursor: pointer; font-weight: 700; font-size: 0.85rem; }
.motion-toggle .icon { width: 18px; height: 18px; }
.motion-toggle[aria-pressed="true"] { border-color: var(--sun); color: #fff; }
.motion-toggle[aria-pressed="true"] .icon { color: var(--sun-2); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.84rem; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.perf-note {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 60;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 10px 10px 10px 18px;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 0.92rem;
  box-shadow: var(--shadow-l);
}
.perf-note[hidden] { display: none; }
.perf-close { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 1.3rem; cursor: pointer; }

/* ---------- Text pages ---------- */
.doc { padding: calc(var(--nav-h) + 56px) 0 96px; background: var(--bg); }
.doc-wrap { max-width: calc(780px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; }
.doc-updated { margin-top: 10px; color: var(--ink-3); }
.doc h2 { font-size: 1.25rem; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 22px; display: grid; gap: 8px; }
.doc .req { margin: 28px 0; padding: 22px; border-radius: 16px; background: var(--bg-soft); color: var(--ink); }
.doc .req dt { color: var(--ink-3); }
.doc .req dd { color: var(--ink); }
.doc .req .req-name dd { color: var(--ink); }
.doc-404 { min-height: 70svh; }
.doc-code { font-size: 5rem; font-weight: 800; color: var(--sun); line-height: 1; margin-bottom: 8px; }
.doc-links { list-style: none; padding: 0; margin-top: 24px; }
.doc-links a { font-weight: 700; color: var(--ink); }

/* ---------- Without the 3D scene ---------- */
/* The still picture sits inside its stage and never makes it grow. */
html[data-scene="off"] .stage-fallback { display: block; position: absolute; inset: 0; margin: auto; height: 90%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(15, 27, 45, 0.25)); }
html[data-scene="off"] .stage-hero .stage-fallback { height: 78%; transform: perspective(900px) rotateY(-16deg) rotateX(6deg); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5)); }
html[data-scene="off"] .stage-calc { display: none; }
html[data-scene="off"] .calc-top { grid-template-columns: minmax(0, 560px); }
@media (max-width: 980px) { html[data-scene="off"] .stage-module { height: 40svh; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  #scene, .hero-sky { transition: none; }
}
