/* ===================== Fonts (self-hosted) ===================== */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url("/assets/fonts/unbounded-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; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/inter-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; }

/* ===================== Tokens ===================== */
:root {
  --bg: #111111;
  --bg-2: #171717;
  --bg-3: #1d1d1d;
  --line: #2a2a2a;
  --line-2: #3a3a3a;
  --text: #f3efe7;
  --muted: #aaa59b;
  --accent: #f5a400;
  --accent-2: #ff7a00;
  --grad: linear-gradient(100deg, #f5a400 0%, #ff7a00 100%);
  --ok: #3ddc84;
  --warn: #ffb547;
  --danger: #ff5a4e;

  --font-head: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1200px;
  --gutter: 16px;
  --radius: 14px;
  --header-h: 60px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ===================== Base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #ffc24d; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #111; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: #111; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.tbd {
  display: inline-block; font: 600 .72em/1 var(--font-body); letter-spacing: .02em;
  color: #ffd27a; background: rgba(245, 164, 0, .12); border: 1px dashed rgba(245, 164, 0, .55);
  padding: .35em .55em; border-radius: 6px; vertical-align: .1em; white-space: normal;
}
.tbd::before { content: "["; } .tbd::after { content: "]"; }

/* ===================== Buttons ===================== */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: var(--h); padding: 0 1.4em; border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn-sm { --h: 40px; padding: 0 1.1em; font-size: .9rem; }
.btn-lg { --h: 56px; padding: 0 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #111; box-shadow: 0 6px 24px -8px rgba(255, 122, 0, .6); }
.btn-primary:hover { color: #111; transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(255, 122, 0, .8); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-text { --h: 40px; padding: 0; background: none; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.btn-text:hover { color: #ffc24d; }
.btn-tg { background: var(--bg-3); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-tg:hover { color: var(--text); box-shadow: inset 0 0 0 1px #2aabee; }

.pulse { position: relative; }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(255, 122, 0, .55); animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 122, 0, .5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(255, 122, 0, 0); } }

/* ===================== Header ===================== */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(17, 17, 17, .82); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 12px; }
.wordmark {
  font: 800 1.25rem/1 var(--font-head); color: var(--text); text-decoration: none; letter-spacing: -.02em; margin-right: auto;
}
.wordmark span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wordmark:hover { color: var(--text); }
.header-nav { display: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600;
  min-width: 44px; min-height: 44px; justify-content: center;
}
.header-phone:hover { color: var(--accent); }
.header-phone-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 640px) {
  .header-phone-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (min-width: 1024px) {
  .header-nav { display: flex; gap: 28px; margin-right: auto; }
  .header-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
  .header-nav a:hover { color: var(--text); }
  .wordmark { margin-right: 48px; }
  .header-inner { gap: 24px; }
}

/* ===================== Sections ===================== */
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 3rem); }
.kicker { font: 600 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }

/* ===================== Hero ===================== */
.hero { position: relative; padding: 24px 0 56px; overflow: hidden; }
.hero::before { /* темна кімната: віньєтка */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(80% 60% at 70% 78%, rgba(255, 122, 0, .10), transparent 70%);
}
.hero-grid { position: relative; display: grid; gap: 24px; }
.hero-media { position: relative; order: -1; max-width: min(300px, 80vw); width: 100%; margin: 0 auto; }
@media (min-width: 600px) { .hero-media { max-width: 440px; } }
.hero-media img { position: relative; z-index: 2; width: 100%; aspect-ratio: 1; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.hero-glow {
  position: absolute; z-index: 1; left: 50%; bottom: 4%; width: 120%; aspect-ratio: 2 / 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 150, 20, .55), rgba(255, 122, 0, .22) 45%, transparent 75%);
  filter: blur(10px); animation: glow 6s ease-in-out infinite alternate;
}
.hero-floor {
  position: absolute; z-index: 1; left: 10%; right: 10%; bottom: 6%; height: 14%;
  background: radial-gradient(closest-side, rgba(255, 200, 120, .35), transparent); filter: blur(6px);
}
@keyframes glow { from { opacity: .8; transform: translateX(-50%) scale(.96); } to { opacity: 1; transform: translateX(-50%) scale(1.04); } }

.hero h1 { font-size: clamp(1.9rem, 1.1rem + 3.6vw, 4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.eyebrow { display: block; font: 600 .78rem/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero-lead { color: var(--muted); font-size: 1.08rem; margin-top: 20px; max-width: 560px; }
.hero-buy { margin-top: 28px; }
.price-block { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.price { font: 800 clamp(2rem, 1.5rem + 2vw, 2.8rem)/1 var(--font-head); letter-spacing: -.02em; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--ok);
  padding: 6px 12px; border-radius: 999px; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .3); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 132, .2); }
.sku { color: var(--muted); font-size: .88rem; margin-top: 10px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-cta .btn { flex: 1 1 180px; }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: .9rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 14px; height: 2px; background: var(--accent); }

@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
  .hero-media { order: 0; max-width: none; }
  .hero-cta .btn { flex: 0 0 auto; }
}

/* ===================== Figures ===================== */
.figures { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.figures-grid { display: grid; }
.fig { padding: 28px 0; }
.fig + .fig, .fig-side .fig { border-top: 1px solid var(--line); }
.fig-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; font: 800 3rem/1 var(--font-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fig-main .fig-num { font-size: clamp(4rem, 2rem + 10vw, 9.5rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fig-sep { opacity: .45; font-weight: 500; }
.fig-unit { font: 600 1rem/1 var(--font-body); letter-spacing: .02em; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.fig-main .fig-unit { font-size: 1.4rem; color: var(--text); -webkit-text-fill-color: var(--text); }
.fig-label { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.fig-wave { align-items: center; }
.fig-wave svg { width: 120px; height: 36px; }
@media (min-width: 960px) {
  .figures-grid { grid-template-columns: 1.35fr 1fr; }
  .fig-main { padding: 56px 48px 56px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
  .fig-side { padding-left: 48px; }
  .fig-side .fig:first-child { border-top: 0; }
  .fig-side .fig { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 16px; padding: 24px 0; }
  .fig-side .fig-label { margin-top: 0; }
}

/* ===================== Calculator ===================== */
.calc-grid { display: grid; gap: 24px; align-items: start; }
.calc-list { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.dev {
  position: relative; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.dev:hover { border-color: var(--line-2); }
.dev input { appearance: none; -webkit-appearance: none; margin: 0; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #6b675f; display: grid; place-content: center; cursor: pointer; }
.dev input::before { content: ""; width: 12px; height: 12px; clip-path: polygon(14% 44%, 0 59%, 40% 100%, 100% 21%, 86% 7%, 40% 70%); background: #111; transform: scale(0); transition: transform .15s var(--ease); }
.dev input:checked { background: var(--accent); border-color: var(--accent); }
.dev input:checked::before { transform: scale(1); }
.dev input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.dev:has(input:checked) { border-color: rgba(245, 164, 0, .6); background: linear-gradient(90deg, rgba(245, 164, 0, .08), transparent 70%), var(--bg-2); }
.dev-name { font-weight: 500; }
.dev-w { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; }

.calc-panel { padding: 24px; border-radius: var(--radius); background: var(--bg-3); border: 1px solid var(--line); }
.calc-total { font: 800 clamp(3rem, 2rem + 4vw, 4.5rem)/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-total span { font-size: .4em; color: var(--muted); letter-spacing: 0; }
.calc-of { color: var(--muted); margin-top: 8px; }

.meter { --pct: 0%; --start: 0%; --c: var(--accent); position: relative; height: 18px; margin: 48px 0 20px; border-radius: 999px; background: #262626; box-shadow: inset 0 0 0 1px var(--line); }
.meter-fill, .meter-start { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; transition: width .45s var(--ease), background-color .3s; }
.meter-fill { width: var(--pct); background: var(--c); }
.meter-start { width: var(--start); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .16) 0 6px, transparent 6px 12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.meter-mark { position: absolute; top: -10px; bottom: -10px; width: 2px; background: var(--text); }
.meter-mark span { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; font-size: .75rem; color: var(--muted); }
.meter-mark--rated { left: calc(3000 / 3300 * 100%); }
.meter-mark--rated span { transform: translateX(-80%); }
.meter-mark--peak { right: 0; background: var(--danger); }
.meter-mark--peak span { transform: translateX(-100%); left: 2px; bottom: auto; top: calc(100% + 6px); }
.calc-panel[data-state="ok"] .meter { --c: var(--accent); }
.calc-panel[data-state="high"] .meter { --c: var(--accent-2); }
.calc-panel[data-state="over-rated"] .meter { --c: #ff6a2b; }
.calc-panel[data-state="overload"] .meter { --c: var(--danger); }
.calc-panel[data-state="overload"] .calc-total { color: var(--danger); }

.calc-status { margin-top: 28px; font-weight: 600; min-height: 3.2em; }
.calc-panel[data-state="high"] .calc-status, .calc-panel[data-state="over-rated"] .calc-status { color: var(--warn); }
.calc-panel[data-state="overload"] .calc-status { color: #ff8a80; }
.calc-start { color: var(--muted); font-size: .92rem; margin-top: 6px; }
.calc-start strong { color: var(--text); }
.calc-start.is-warn strong { color: #ff8a80; }
#calc-reset { margin-top: 12px; }

.note { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--muted); font-size: .95rem; max-width: 880px; }
.note strong { color: var(--text); }

@media (min-width: 960px) {
  .calc-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .calc-list { grid-template-columns: 1fr; }
  .calc-panel { position: sticky; top: calc(var(--header-h) + 24px); padding: 36px; }
}

/* ===================== Inverter ===================== */
.inverter { background: var(--bg-2); }
.inv-grid { display: grid; gap: 40px; margin-bottom: 56px; }
.waves { display: grid; gap: 20px; }
.wave { margin: 0; padding: 20px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.wave svg { width: 100%; height: auto; overflow: visible; }
.wave path { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.wave--good path { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(245, 164, 0, .5)); }
.wave--bad path { stroke: #77726a; }
.wave figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
.wave--good figcaption { color: var(--text); font-weight: 600; }
.inv-points { list-style: none; padding: 0; margin: 0; counter-reset: inv; display: grid; gap: 28px; }
.inv-points li { counter-increment: inv; position: relative; padding-left: 64px; }
.inv-points li::before { content: counter(inv, decimal-leading-zero); position: absolute; left: 0; top: -2px; font: 800 1.6rem/1 var(--font-head); color: var(--accent); }
.inv-points h3 { font-size: 1.2rem; margin-bottom: 8px; }
.inv-points p { color: var(--muted); }
@media (min-width: 960px) { .inv-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.cmp { width: 100%; border-collapse: collapse; font-size: .88rem; }
@media (min-width: 600px) { .cmp { font-size: .95rem; } }
.cmp caption { text-align: left; padding: 16px 10px 4px; font: 700 1.15rem/1.3 var(--font-head); }
.cmp th, .cmp td { padding: 12px 10px; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.cmp thead th { border-top: 0; color: var(--muted); font-weight: 600; font-size: .85rem; }
.cmp tbody th { font-weight: 500; color: var(--muted); width: 28%; }
.cmp .col-hl { background: rgba(245, 164, 0, .06); color: var(--text); }
@media (min-width: 600px) { .cmp th, .cmp td { padding: 14px 20px; } .cmp caption { padding: 20px 20px 4px; } }
.cmp thead .col-hl { color: var(--accent); }
.cmp td:not(.col-hl) { color: var(--muted); }

/* ===================== Specs ===================== */
.specs-grid { display: grid; gap: 8px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 14px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); width: 48%; padding-right: 16px; }
.spec-table strong { font-family: var(--font-head); color: var(--accent); }
@media (min-width: 960px) {
  .specs-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
  .specs .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
  .spec-table th { width: 42%; }
}

/* ===================== Scenarios ===================== */
.scenarios { background: var(--bg-2); }
.sc-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.sc { display: grid; grid-template-columns: 64px 1fr; gap: 8px 20px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.sc-idx { font: 800 2.2rem/1 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.sc h3 { font-size: 1.25rem; margin-bottom: 10px; }
.sc p { color: var(--muted); }
.sc .sc-devs { margin-top: 12px; color: var(--text); font-size: .92rem; font-weight: 500; }
.sc-try { grid-column: 2; justify-self: start; }
@media (min-width: 960px) {
  .sc { grid-template-columns: 140px 1fr 260px; gap: 32px; align-items: center; padding: 40px 0; }
  .sc-idx { font-size: 5rem; }
  .sc h3 { font-size: 1.5rem; }
  .sc-try { grid-column: 3; justify-self: end; }
  .sc:hover .sc-idx { color: var(--accent); }
  .sc-idx { transition: color .3s; }
}

/* ===================== Delivery ===================== */
.del-grid { display: grid; gap: 32px; }
.del-col { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.del-col h3 { font-size: 1.3rem; margin-bottom: 20px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 28px; color: var(--muted); }
.ticks li strong { color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (min-width: 960px) { .del-grid { grid-template-columns: 1fr 1fr; } .del-col { padding: 40px; } }

/* ===================== Trust ===================== */
.trust { padding-top: 0; }
.trust-row { display: grid; gap: 0; border-top: 1px solid var(--line); }
.trust-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.trust-big { font: 800 clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem)/1 var(--font-head); letter-spacing: -.02em; margin-bottom: 14px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.trust-item p:not(.trust-big) { color: var(--muted); }
@media (min-width: 960px) {
  .trust-row { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
  .trust-item { padding: 40px 32px; border-bottom: 0; }
  .trust-item:first-child { padding-left: 0; }
  .trust-item + .trust-item { border-left: 1px solid var(--line); }
}

/* ===================== FAQ ===================== */
.faq { background: var(--bg-2); }
.faq-grid { display: grid; gap: 8px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font: 600 1.05rem/1.4 var(--font-body);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2);
  background: linear-gradient(var(--accent), var(--accent)) center / 12px 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 12px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-a { padding: 0 0 24px; color: var(--muted); display: grid; gap: 12px; max-width: 680px; }
.faq-a strong { color: var(--text); }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; } }

/* ===================== Order ===================== */
.order { position: relative; overflow: hidden; }
.order::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 70%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 122, 0, .16), transparent); }
.order-grid { position: relative; display: grid; gap: 32px; }
.order-copy h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); }
.order-price { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; font: 800 2rem/1 var(--font-head); }
.order-media { display: none; }
.order-box { padding: 24px; border-radius: 20px; background: var(--bg-3); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.order-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: .95rem; }
.opt { color: var(--muted); font-weight: 400; font-size: .85rem; margin-left: 6px; }
.field input[type="text"], .field input[type="tel"], .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #8a867e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 164, 0, .2); }
.field [aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { color: #ff8a80; font-size: .88rem; min-height: 0; }
.field-error:empty { display: none; }
.field-check { grid-template-columns: 24px 1fr; align-items: start; column-gap: 12px; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.field-check label { font-weight: 400; color: var(--muted); font-size: .92rem; }
.field-check .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#f-submit .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(17, 17, 17, .3); border-top-color: #111; animation: spin .8s linear infinite; }
#f-submit[aria-busy="true"] .spinner { display: inline-block; }
#f-submit[aria-busy="true"] { cursor: progress; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #ff8a80; padding: 12px 14px; border-radius: 10px; background: rgba(255, 90, 78, .08); border: 1px solid rgba(255, 90, 78, .3); }
.order-success { padding: 8px 0; outline: none; }
.success-title { font: 700 1.5rem/1.3 var(--font-head); color: var(--ok); margin-bottom: 10px; }
.order-success p:not(.success-title) { color: var(--muted); }
.order-alt { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.order-alt .btn { flex: 1; }

@media (min-width: 960px) {
  .order-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .order-box { padding: 40px; }
  .order-media { display: block; max-width: 380px; margin-top: 32px; }
  .order-media img { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
}

/* ===================== Footer ===================== */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 24px; background: #0c0c0c; font-size: .92rem; }
.footer-grid { display: grid; gap: 32px; }
.footer-tag { color: var(--muted); margin-top: 14px; max-width: 300px; }
.footer-h { font: 600 .78rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list a { color: var(--text); text-decoration: none; }
.footer-list a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #8f8a81; font-size: .8rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ===================== Mobile bar ===================== */
.mobile-bar {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(20, 20, 20, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar-price { font: 800 1.3rem/1 var(--font-head); }
.mobile-bar .btn { flex: 0 0 auto; min-width: 150px; }
@media (max-width: 767px) { body { padding-bottom: 76px; } }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ===================== Reveal (лише з JS) ===================== */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}

/* ===================== Reduced motion ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .pulse::after, .hero-glow { animation: none; }
}

/* ===================== Sub-pages (privacy / offer / 404) ===================== */
.page { padding: 48px 0 96px; }
.page .wrap { max-width: calc(800px + 2 * var(--gutter)); }
.page h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.6rem); margin-bottom: 12px; }
.page h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.page p, .page li { color: #d4cfc6; }
.page p + p { margin-top: 12px; }
.page ul, .page ol { padding-left: 1.3em; display: grid; gap: 8px; }
.page-meta { color: var(--muted); font-size: .9rem; }
.page-note { margin: 24px 0; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--bg-2); border-radius: 0 12px 12px 0; color: var(--muted); font-size: .92rem; }
.err { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.err-code { font: 800 clamp(6rem, 4rem + 12vw, 12rem)/1 var(--font-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; }
.err p { color: var(--muted); margin: 16px auto 32px; max-width: 420px; }
