/* Manrope (OFL), self-host: кирилиця + латиниця, змінна вага 400–800; optional = без пізньої підміни (CLS) */
@font-face { font-family: "Manrope"; src: url("fonts/manrope-cyrillic.woff2") format("woff2"); font-weight: 400 800; font-display: optional; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: optional; 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; }
/* Дизайн-система «Своя енергія» v2: світла основа + спокійний зелений «енергії».
   Бурштин — лише декоративний штрих (сонце в лого, галочки в блоці заявки). */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --tint: #e6f1ec;
  --ink: #13221e;
  --muted: #56655f;
  --line: #dce5e1;
  --primary: #0e7a5a;
  --primary-hover: #0b674c;
  --on-primary: #ffffff;
  --panel: #0f3d33;
  --on-panel: #eef6f2;
  --on-panel-muted: #a9c4ba;
  --sun: #e9b949;
  --ok: #0e7a5a;
  --ok-bg: #dff1e9;
  --wait: #8a5a00;
  --wait-bg: #fbefd2;
  --warn: #b3361f;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(19 34 30 / 5%), 0 10px 30px rgb(19 34 30 / 7%);
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1513;
    --surface: #14201c;
    --tint: #16271f;
    --ink: #e9f0ed;
    --muted: #9db0a9;
    --line: #24342f;
    --primary: #3fbf8c;
    --primary-hover: #57cf9e;
    --on-primary: #062016;
    --panel: #0f2a23;
    --ok: #6fd39c;
    --ok-bg: #12301f;
    --wait: #ffc766;
    --wait-bg: #33260b;
    --warn: #ff8a73;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 10px 30px rgb(0 0 0 / 35%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 17px/1.6 "Manrope", system-ui, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { padding-top: 0; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 52px; padding: 10px 24px; border-radius: 999px; border: 0;
  font-family: inherit; font-size: 1rem; font-weight: 700; line-height: 1.25; text-align: center;
  text-decoration: none; cursor: pointer; transition: transform .15s ease-out, background-color .15s ease-out;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--primary); }
.panel .btn-primary { background: var(--on-panel); color: var(--panel); }
.panel .btn-primary:hover { background: #ffffff; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.logo .ring { fill: var(--primary); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
.top .btn { min-height: 42px; padding: 6px 18px; font-size: .95rem; }
.phone { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* герой */
.hero { background: linear-gradient(180deg, var(--tint), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: grid; gap: 18px; }
.facts-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.facts-head b { font-size: 1.05rem; }
.facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.facts dl div { background: var(--bg); border-radius: 12px; padding: 14px; }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 1.35rem; font-weight: 800; white-space: nowrap; }
.facts-price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.facts-price b { font-size: 2rem; font-weight: 800; }
.facts-price span { color: var(--muted); font-size: .9rem; font-weight: 600; }

/* статуси */
.badge { flex-shrink: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: var(--ok-bg); }
.badge-wait { color: var(--wait); background: var(--wait-bg); }

/* переваги */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.benefit svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--tint); color: var(--primary); margin-bottom: 14px; }
.benefit p { color: var(--muted); margin: 0; font-size: .97rem; }

/* калькулятор */
.calc { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; margin-top: 36px; align-items: start; }
.devices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.device { position: relative; }
.device input { position: absolute; opacity: 0; }
.device label { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 2px solid var(--line); cursor: pointer; font-weight: 600; transition: border-color .15s ease-out, background-color .15s ease-out; }
.device label small { color: var(--muted); font-weight: 600; white-space: nowrap; }
.device input:checked + label { border-color: var(--primary); background: var(--tint); }
.device input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.panel { background: var(--panel); color: var(--on-panel); }
.result { position: sticky; top: 92px; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.result h3 { color: var(--on-panel-muted); font-size: .95rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.res-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
.res-row span { font-weight: 600; }
.res-row b { font-size: 1.9rem; font-weight: 800; }
.res-row.off b { color: #ffc2b5; font-size: 1rem; }
.res-load { color: var(--on-panel-muted); font-size: .95rem; margin: 14px 0 18px; }
.res-note { color: var(--on-panel-muted); font-size: .82rem; margin: 14px 0 0; opacity: .85; }
.result .btn { width: 100%; }

/* моделі */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 36px; }
.model { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; align-content: start; box-shadow: var(--shadow); }
.model-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.model-head p { color: var(--muted); margin: 0; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0; }
.specs div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .85rem; }
.specs dd { margin: 0; font-weight: 700; }
.model-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.model-price { font-size: 2rem; font-weight: 800; }
.model-price small { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* порівняння */
.compare { width: 100%; border-collapse: collapse; margin-top: 32px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--tint); font-size: .95rem; }
.compare thead th:nth-child(2) { color: var(--primary); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 28%; }
.compare td:nth-child(2) { font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* кроки */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; counter-reset: s; padding: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tint); color: var(--primary); font-weight: 800; margin-bottom: 16px; }
.steps p { color: var(--muted); margin: 0; }

/* FAQ */
.faq { max-width: 820px; margin-top: 28px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* заявка */
.order .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.order .eyebrow { color: var(--sun); }
.order .lead { color: var(--on-panel-muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 9px; border-left: 3px solid var(--sun); border-bottom: 3px solid var(--sun); transform: rotate(-45deg); }
form.lead-form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); }
form.lead-form .btn-primary { background: var(--primary); color: var(--on-primary); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.field input, .field textarea { font: inherit; color: inherit; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 52px; }
.field input:focus, .field textarea:focus { border-color: var(--primary); outline: none; }
.field textarea { min-height: 96px; resize: vertical; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.radios input { position: absolute; opacity: 0; }
.radios label { display: grid; place-items: center; min-height: 52px; padding: 8px; text-align: center; border-radius: 12px; border: 2px solid var(--line); cursor: pointer; font-weight: 600; font-size: .9rem; line-height: 1.25; }
.radios input:checked + label { border-color: var(--primary); background: var(--tint); }
.radios input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.calc-attached { font-size: .9rem; color: var(--muted); background: var(--bg); border-radius: 10px; padding: 10px 14px; margin: 0; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-weight: 700; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--warn); }
.consent { font-size: .82rem; color: var(--muted); margin: 0; }

footer { padding: 40px 0 110px; color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.mbar { display: none; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .top .phone { margin-left: auto; }
  .hero .wrap, .calc, .order .wrap { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .models { grid-template-columns: 1fr; }
  .result { position: static; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top .wrap > .btn { display: none; }
  .benefits, .devices, .specs, .radios { grid-template-columns: 1fr; }
  .compare th, .compare td { padding: 12px 14px; font-size: .92rem; }
  .compare thead tr, .compare tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .compare thead th:first-child { display: none; }
  .compare tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0; border-bottom: 0; }
  .res-row b { font-size: 1.4rem; }
  .facts { padding: 20px; }
  .facts dd { font-size: 1.1rem; }
  .model-head { flex-wrap: wrap; }
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; min-height: 48px; padding: 6px 12px; font-size: .95rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .device label { transition: none; }
}

.section.panel { padding-top: clamp(56px, 8vw, 104px); }

/* ---- v3: правки за дебатами критиків (UX/доступність) ---- */
:root { --field-line: #7f908a; }
@media (prefers-color-scheme: dark) { :root { --field-line: #5f746d; --panel: #13382f; } }
.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: 50; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.logo, .top .btn { min-height: 44px; }
.hero + .section { padding-top: clamp(40px, 5vw, 64px); }
.facts-price .btn { min-height: 44px; padding: 6px 20px; }
fieldset.devices { border: 0; padding: 0; margin: 0; min-width: 0; }
/* рамки полів ≥ 3:1 */
.field input, .field textarea, .device label, .radios label { border-color: var(--field-line); }
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field-err { margin: 0; color: var(--warn); font-weight: 700; font-size: .92rem; }
::placeholder { color: var(--muted); opacity: 1; }
/* чекбокс: стан не лише кольором + вся картка — ціль фокусу */
.device input { inset: 0; width: 100%; height: 100%; margin: 0; }
.device label { justify-content: flex-start; }
.device label small { margin-left: auto; }
.device label::before { content: ""; flex: none; width: 20px; height: 20px; border: 2px solid var(--field-line); border-radius: 6px; }
.device input:checked + label::before { border-color: var(--primary); background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat; }
.radios input:checked + label { box-shadow: inset 0 0 0 1px var(--primary); }
/* фокус на темно-зеленій панелі */
.panel :focus-visible { outline-color: var(--on-panel); }
form.lead-form :focus-visible { outline-color: var(--primary); }
/* результат калькулятора */
.res-fit { margin: 14px 0 0; font-weight: 700; color: var(--sun); }
.res-fit:empty { display: none; }
/* моделі: бейдж над заголовком — однакова ширина опису */
.model-head { flex-direction: column; align-items: flex-start; gap: 8px; }
.model-head h3 { margin: 0; }
@media (max-width: 960px) {
  .hero .wrap, .calc, .order .wrap { grid-template-columns: minmax(0, 1fr); }
  .result { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; z-index: 5; padding: 14px 18px; }
  .result h3, .res-note, .res-load { display: none; }
  .res-row { padding: 6px 0; }
  .result .btn { margin-top: 10px; min-height: 44px; }
}
@media (max-width: 600px) {
  html { scroll-padding-bottom: 88px; }
  .hide-mbar .mbar { display: none; }
}
@media (max-width: 960px) { .models { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 360px) { .model, .facts { padding: 18px; } .badge { white-space: normal; } }

/* ==== v4: «вау»-шар — анімуємо лише transform/opacity; усе вимикається під reduced-motion ==== */
/* герой */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 140%; pointer-events: none; z-index: 0;
  background: radial-gradient(40% 40% at 75% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
              radial-gradient(30% 30% at 15% 80%, color-mix(in srgb, var(--sun) 18%, transparent), transparent 70%);
}
@keyframes drift { to { transform: translate3d(-4%, 3%, 0) scale(1.05); } }
.hero .wrap { position: relative; z-index: 1; grid-template-columns: 1.05fr .95fr; }
.kinetic span { display: inline-block; animation: rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 90ms + 100ms); }
.kinetic .hl { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--sun))); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(.6em); } }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.proof li { display: flex; align-items: center; gap: 8px; }
.proof svg { width: 20px; height: 20px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-media { position: relative; }
.media-frame { border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgb(19 34 30 / 18%); aspect-ratio: 1; background: var(--tint); animation: rise .9s .2s cubic-bezier(.2,.7,.2,1) both; }
.media-frame img, .media-frame video { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: var(--shadow); animation: rise .8s .5s cubic-bezier(.2,.7,.2,1) both; }
.chip b { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.chip span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.chip .badge { color: var(--ok); }
.chip-a { left: -18px; top: 14%; }
.chip-b { right: -14px; bottom: 10%; animation-delay: .7s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* цифри */
.stats { padding: 8px 0 clamp(40px, 6vw, 72px); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; color: var(--primary); line-height: 1.1; }
.stat > span { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* схема енергопотоку */
.flow-card { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg); border-radius: 999px; }
.tabs button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--primary); color: var(--on-primary); }
.flow { display: block; width: 100%; height: auto; margin-top: 12px; }
.flow .wire { fill: none; stroke: var(--line); stroke-width: 4; stroke-linecap: round; transition: stroke .3s; }
.flow .node circle { fill: var(--bg); stroke: var(--field-line); stroke-width: 2; }
.flow .node-main circle { fill: var(--tint); stroke: var(--primary); stroke-width: 3; }
.flow .ico, .flow .ico * { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.flow text { fill: var(--ink); font: 700 15px Manrope, system-ui, sans-serif; text-anchor: middle; }
.flow .wire.on { stroke: var(--primary); stroke-dasharray: 10 14; animation: flowdash 1s linear infinite; }
@keyframes flowdash { to { stroke-dashoffset: -24; } }
.flow[data-s="day"] #p-sun-home, .flow[data-s="day"] #p-sun-bat,
.flow[data-s="evening"] #p-bat-home, .flow[data-s="night"] #p-grid-bat,
.flow[data-s="backup"] #p-bat-backup { stroke: var(--primary); stroke-dasharray: 10 14; }
/* «потік» анімується лише коли схема в полі зору (клас live ставить app.js) */
.flow.live[data-s="day"] #p-sun-home, .flow.live[data-s="day"] #p-sun-bat,
.flow.live[data-s="evening"] #p-bat-home, .flow.live[data-s="night"] #p-grid-bat,
.flow.live[data-s="backup"] #p-bat-backup { animation: flowdash 1s linear infinite; }
.flow-cap { margin: 8px 0 0; font-weight: 600; font-size: 1.05rem; }

/* bento */
.bento { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px;
  grid-template-areas: "award award ports plug" "award award ports ip" "back back sun cyc"; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: relative; color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / 45%); }
.tile figcaption::before { content: ""; position: absolute; inset: -60px -22px -22px; z-index: -1; background: linear-gradient(transparent, rgb(8 20 16 / 78%)); }
.tile figcaption b, .tile .big { display: block; font-size: 1.35rem; font-weight: 800; }
.tile .big { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--primary); letter-spacing: -.02em; }
.tile p { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.t-award { grid-area: award; } .t-ports { grid-area: ports; } .t-plug { grid-area: plug; } .t-ip { grid-area: ip; }
.t-back { grid-area: back; } .t-sun { grid-area: sun; } .t-cyc { grid-area: cyc; }
.t-award img, .t-back img { object-position: center 40%; }

/* швидкий підбір */
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; }
.chipbtn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.chipbtn[aria-pressed="true"] { border-color: var(--primary); background: var(--tint); color: var(--primary); }

/* моделі з фото */
.model-img { border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.model-img img { width: 78%; height: 100%; object-fit: contain; }

/* блог-тизер */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 24px; }
.post { display: grid; gap: 8px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .2s ease-out, box-shadow .2s ease-out; }
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post b { font-size: 1.1rem; line-height: 1.3; }
.post span { color: var(--muted); font-size: .95rem; }

/* поява при прокрутці — лише там, де браузер уміє, і лише без reduced-motion */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(28px) scale(.98); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .kinetic span, .media-frame, .chip, .flow .wire, .flow [id] { animation: none !important; }
  .tile img { transition: none; }
}
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 520px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; grid-template-areas: "award award" "award award" "ports plug" "ports ip" "back back" "sun cyc"; }
  .posts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .chip-a { left: 8px; } .chip-b { right: 8px; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 220px; grid-template-areas: "award" "ports" "plug" "ip" "back" "sun" "cyc"; }
  .flow text { font-size: 18px; }
}
/* bento: предметні фото на білому тлі — фото цілим, підпис темним під ним */
.tile.light { background: #fff; }
.tile.light img { inset: 12px 12px auto 12px; width: calc(100% - 24px); height: calc(100% - 110px); object-fit: contain; }
.tile.light figcaption { color: #13221e; text-shadow: none; }
.tile.light figcaption::before { display: none; }
.tile.light figcaption b { color: #0e7a5a; }
.t-back img { inset: 10px 10px 10px auto; width: 46%; height: calc(100% - 20px); }
.t-back figcaption { max-width: 50%; }
@media (max-width: 600px) { .t-back img { width: 50%; } .t-back figcaption { max-width: 48%; } }

/* ==== промо-ролик ==== */
.video-frame { position: relative; margin-top: 28px; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgb(19 34 30 / 16%); aspect-ratio: 16 / 9; background: #0f3d33; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vbtn { position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 0; background: rgb(15 61 51 / 82%); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.vbtn:focus-visible { outline-color: #fff; }
@media (max-width: 600px) { .video-frame { aspect-ratio: 9 / 16; max-height: 78vh; margin-inline: auto; } }

/* ==== блог ==== */
.narrow { max-width: 760px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--primary); text-decoration: none; font-weight: 600; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.meta-line { color: var(--muted); font-weight: 600; font-size: .92rem; margin-bottom: 28px; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); margin: 2em 0 .6em; }
.prose h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--tint); }
.article-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 48px; padding: 28px; border-radius: var(--radius); }
.article-cta b { font-size: 1.25rem; }
.article-cta p { margin: 4px 0 0; color: var(--on-panel-muted); }
.cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.article-cta .btn-ghost { color: var(--on-panel); box-shadow: inset 0 0 0 2px var(--on-panel-muted); }
@media (max-width: 600px) {
  .hero-media { order: -1; }
  .hero .wrap { gap: 24px; padding-top: 20px; }
  .media-frame { aspect-ratio: 4 / 3; border-radius: 20px; }
  .media-frame img { object-position: center 62%; }
  .chip { padding: 8px 12px; } .chip b { font-size: 1.15rem; }
  .chip-a { top: 10px; left: 10px; } .chip-b { bottom: 10px; right: 10px; }
  .flow text { font-size: 28px; }
}
.flow { overflow: visible; }
@media (max-width: 600px) { .flow text { font-size: 24px; } }

/* ==== v5: шапка з меню, гарантія, комплектуючі, доставка/оплата, футер ==== */
.top .nav { gap: 20px; }
.top .phone { color: var(--ink); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); display: grid; gap: 2px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.menu nav a:hover { background: var(--tint); }
.menu nav .btn { justify-content: center; margin-top: 6px; color: var(--on-primary, #fff); }
@media (max-width: 1180px) { .top .nav { display: none; } .top .phone { margin-left: auto; } .menu { display: block; } }
@media (max-width: 600px) { .top .wrap { gap: 12px; } .logo { font-size: 1rem; } }
@media (max-width: 360px) { .logo svg { display: none; } }

.proof .proof-main { color: var(--ok); background: var(--ok-bg); padding: 6px 14px 6px 10px; border-radius: 999px; font-weight: 700; }
.proof .proof-main svg { stroke: currentColor; }
.warranty { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-weight: 700; color: var(--primary); }
.warranty svg, .kit svg, .mbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.warranty-note { margin: 20px 0 0; color: var(--muted); max-width: 820px; }

.kit { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kit li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; }
.kit li svg { width: 34px; height: 34px; color: var(--primary); }
.kit li b { font-size: 1.1rem; }
.kit li span { color: var(--muted); }
.kit-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding: 22px; border-radius: var(--radius); background: var(--tint); }
.kit-cta p { margin: 0; font-weight: 600; max-width: 620px; }

.deliv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.deliv-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.deliv-card h3 { margin: 0 0 4px; }
.deliv-card .ticks { margin-top: 14px; }
.muted { color: var(--muted); font-size: .92rem; }
.pickup { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 4px; }
.pickup li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.pickup a { color: var(--primary); font-weight: 600; text-underline-offset: 3px; }
.req { margin: 14px 0; display: grid; gap: 10px; }
.req dt { color: var(--muted); font-size: .82rem; font-weight: 600; }
.req dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.copy { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--primary); background: transparent; color: var(--primary); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; }
.copy.done { background: var(--primary); color: var(--on-primary); }
@media (max-width: 1100px) { .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); } .deliv { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .kit { grid-template-columns: minmax(0, 1fr); } }

footer .foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
footer .foot b { color: var(--ink); }
footer .foot p { margin: 6px 0 0; }
footer .foot a { color: var(--primary); font-weight: 600; display: inline-block; padding: 6px 0; }
footer .foot-note { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 16px; }
@media (max-width: 960px) { footer .foot { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .mbar .btn { gap: 6px; padding: 6px 8px; } }
/* цілі дотику ≥ 44 px для пунктів шапки й телефону */
.top .nav a, .top .phone { display: inline-flex; align-items: center; min-height: 44px; }
