@font-face {
  font-family: Onest;
  src: url('assets/onest-cyrillic.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest;
  src: url('assets/onest-latin.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  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 {
  color-scheme: dark;
  --text: #fbecdf;
  --paper: #211810;
  --panel: #2c2017;
  --surface: #271c14;
  --muted: #d3bca9;
  --line: #624531;
  --accent: #ff883d;
  --light: #ffde93;
  font-family: Onest, 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.52;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; }
.landing {
  --battery-fill: #ffcb60;
  background:
    radial-gradient(ellipse 24rem 44rem at left 24%, #ae5e2526, transparent),
    radial-gradient(ellipse 25rem 42rem at right 46%, #ae5e2526, transparent);
}
.landing-rails { display: none; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { line-height: 1.04; letter-spacing: -.056em; font-weight: 750; }
img { display: block; width: 100%; height: auto; }
:focus-visible { outline: 2px solid #ffad73; outline-offset: 4px; }
.wrap { width: min(100% - 88px, 1280px); margin-inline: auto; }
.section-space { padding-block: clamp(48px, 6.5vw, 97px); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; top: 8px; left: 8px; z-index: 9; padding: 10px 16px; background: var(--panel); }
.topbar { background: var(--paper); }
.topbar-inner, .footer-inner { display: flex; justify-content: space-between; gap: 18px; align-items: center; min-height: 77px; }
.topbar-inner { border-bottom: 1px solid var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 14px; line-height: 1; text-decoration: none; white-space: nowrap; }
.brand-name { display: block; font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 800; letter-spacing: -.05em; }
.brand-name::first-letter { color: #ff883d; }
.brand-description { padding: 4px 0 4px 14px; border-left: 1px solid var(--accent); font-size: .94rem; font-weight: 540; }
.topbar-link { color: var(--accent); font-weight: 650; text-underline-offset: .25em; text-align: right; }

.hero { display: grid; grid-template: 'intro demo' / minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 3.4vw, 50px); align-items: center; padding-block: clamp(24px, 3vw, 44px); border-bottom: 1px solid var(--accent); }
.hero-copy { grid-area: intro; }
.hero-copy h1 { font-size: clamp(2.95rem, 4.8vw, 4.85rem); max-width: 15ch; text-wrap: balance; }
.hero-copy h1::after { content: ''; display: block; width: 66px; height: 4px; margin-top: 19px; background: var(--accent); }
.hero-copy p { max-width: 35ch; color: var(--muted); font-size: clamp(1.05rem, 1.35vw, 1.25rem); margin-top: 23px; }
.hero-copy .button { margin-top: 22px; }
.hero-copy .hero-hint { margin-top: 14px; color: var(--text); font-size: .93rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 23px; border: 1px solid transparent; border-radius: 5px; font-size: 1rem; font-weight: 740; text-decoration: none; text-align: center; }
.button-primary { background: var(--accent); color: #211810; }
.button-primary:hover { background: #ffac75; }
.button-quiet { background: transparent; border-color: #987051; color: var(--text); }
.button-quiet:hover { border-color: var(--text); }

.demo { grid-area: demo; position: relative; isolation: isolate; overflow: hidden; color: #fffaf0; background: #251a12; min-width: 0; }
.demo::before, .demo::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 17%; z-index: 5; pointer-events: none; }
.demo::before { background: var(--paper); clip-path: polygon(0 0, 94% 0, 0 100%); }
.demo::after { background: var(--accent); clip-path: polygon(94% 0, 100% 0, 6% 100%, 0 100%); }
.inverter-stage { position: relative; container-type: inline-size; aspect-ratio: 4 / 3; width: 100%; }
.inverter-photo { position: absolute; inset: 0; height: 100%; object-fit: fill; filter: brightness(.66) saturate(.88) sepia(.13); transition: filter 750ms ease; }
.inverter-stage::after { content: ''; position: absolute; inset: auto 0 0; height: 29%; background: linear-gradient(transparent,#251a12); pointer-events: none; z-index: 1; }
.hero[data-power='on'] .inverter-photo { filter: brightness(1) saturate(1); }
.inverter-hook { position: absolute; left: 30.2%; top: 17.4%; width: 41%; color: #2b1e16; transform: skewY(7deg); font-size: clamp(.95rem, 5.9cqw, 2.9rem); font-weight: 790; letter-spacing: -.065em; line-height: .97; }
.hero[data-power='on'] .inverter-hook { color: #513614; }
.inverter-display { position: absolute; top: 43.7%; left: 51.7%; width: 11%; height: 9.6%; transform: translate(-50%, -50%) skewY(4deg); color: #ffe3a0; background: radial-gradient(ellipse, #4b3c23, #282a23 95%); box-shadow: 0 0 13px #ffd17642; }
.inverter-display svg { display: block; width: 100%; height: 100%; }
.power-switch { isolation: isolate; position: absolute; z-index: 4; left: 31.2%; top: 83.1%; width: max(8.7%, 44px); height: max(8%, 44px); transform: translate(-50%, -50%); border: 0; padding: 0; color: #fff9e6; background: transparent; }
.power-switch::before { content: ''; position: absolute; inset: 23% 5%; border: 2px solid var(--light); border-radius: 8px; box-shadow: 0 0 13px #ffd76755; transition: box-shadow 180ms ease; }
.power-switch:focus-visible { outline-color: var(--light); }
.power-switch:hover::before, .power-switch:focus-visible::before { box-shadow: 0 0 0 3px #f9c75a55, 0 0 17px #ffc25b99; }
.switch-cue { position: absolute; top: 50%; left: calc(100% + 19px); transform: translateY(-50%); padding: 5px 9px; border-radius: 6px; color: #fff5e1; background: #2b1d13f2; font-size: .95rem; font-weight: 650; white-space: nowrap; }
.switch-cue::before { content: ''; position: absolute; right: 100%; top: 50%; width: 17px; border-top: 1px solid var(--light); }
.power-switch[aria-checked='true'] .switch-cue { color: var(--light); }

.energy-wash, .energy-map { position: absolute; inset: 0; pointer-events: none; }
.energy-wash { --source: var(--energy-x, 31%) var(--energy-y, 72%); z-index: 2; opacity: 0; mix-blend-mode: screen; background: radial-gradient(ellipse 56% 55% at var(--source), #ffbb464e, #e6a0461c 50%, transparent 91%); }
.hero[data-power='on'] .energy-wash { animation: spread-light 1.15s cubic-bezier(.17,.72,.3,1) both; }
.energy-map { z-index: 3; width: 100%; height: 100%; }
.energy-map path { fill: none; stroke: #ffe1a0; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; filter: drop-shadow(0 0 4px #ffbd54); }
.hero[data-power='on'] .energy-trunk { animation: send-power 520ms cubic-bezier(.32,.02,.51,1) both; }
.hero[data-power='on'] .energy-branch { animation: send-power 420ms calc(470ms + var(--load-order, 0) * 110ms) ease-out both; }
.energy-branch:nth-of-type(3), .loads li:nth-child(2) { --load-order: 1; }
.energy-branch:nth-of-type(4), .loads li:nth-child(3) { --load-order: 2; }
@keyframes spread-light {
  0% { opacity: 0; clip-path: circle(0 at var(--source)); }
  34% { opacity: 1; }
  100% { opacity: .68; clip-path: circle(125% at var(--source)); }
}
@keyframes send-power {
  0% { opacity: .88; stroke-dashoffset: 1; }
  73% { opacity: 1; }
  100% { opacity: .43; stroke-dashoffset: 0; }
}

.loads { position: relative; z-index: 4; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 0; padding: 0 12% 18px; list-style: none; color: #f3e8d8; }
.loads li { display: grid; justify-items: center; gap: 5px; text-align: center; padding: 0 6px; font-size: .9rem; border-left: 1px solid #b486625f; }
.loads li:first-child { border-left: 0; }
.device-icon { width: 27px; height: 27px; display: block; }
.loads .device-icon { color: var(--accent); transition: color 220ms ease, filter 220ms ease; }
.hero[data-power='on'] .loads .device-icon { color: var(--light); filter: drop-shadow(0 0 5px #ffbf68c0); transition-delay: calc(740ms + var(--load-order, 0) * 110ms); }

.process, .work, .quiz-main { background: var(--panel); }
.booking { margin-block: clamp(16px, 2vw, 28px) 0; }
.booking-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .93fr); align-items: center; gap: clamp(20px, 3vw, 44px); padding: clamp(20px, 3.2vw, 47px); border: 1px solid var(--accent); background: var(--surface); }
.booking h2 { font-size: clamp(1.85rem, 3.5vw, 3.25rem); }
.booking-price { width: fit-content; margin-top: 14px; padding: 7px 11px; border-left: 3px solid var(--accent); background: #ff883d19; color: var(--light); line-height: 1.35; }
.booking-intro { margin-top: 11px; color: var(--muted); max-width: 50ch; }
.booking-contacts { display: flex; flex-wrap: wrap; gap: 3px 18px; margin-top: 14px; }
.booking-contacts span { flex-basis: 100%; color: var(--muted); font-size: .8rem; }
.booking-contacts a { color: var(--accent); font-weight: 650; text-underline-offset: .2em; white-space: nowrap; }
.booking-card { min-width: 0; padding-left: clamp(20px, 3vw, 44px); border-left: 1px solid var(--line); }
.booking-card form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; align-items: start; }
.booking-card label { grid-column: 1 / -1; font-weight: 650; }
.booking-card input { width: 100%; min-height: 51px; padding: 10px 14px; border: 1px solid #93694b; border-radius: 5px; background: var(--paper); color: var(--text); }
.booking-card input[aria-invalid='true'] { border-color: #ff9c8d; }
.booking-card .button { justify-self: start; padding-inline: 15px; }
.booking-card .button:disabled { opacity: .65; cursor: wait; }
.booking-card .form-error { grid-column: 1 / -1; margin-top: 0; }
.booking-success strong { font-size: 1.34rem; }
.booking-success p { margin-top: 6px; color: var(--muted); }
.section-heading { display: flex; gap: 25px; justify-content: space-between; align-items: end; margin-bottom: 27px; }
.section-heading h2, .service-proof h2, .faq h2, .next-step h2 { font-size: clamp(2.25rem, 4.65vw, 4.3rem); }
.section-heading p { color: var(--muted); max-width: 32ch; }
.service-proof { display: grid; align-items: center; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 6vw, 86px); padding-top: clamp(44px, 4.7vw, 68px); }
.service-proof img { border-radius: 6px; background: #37271a; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: center 58%; }
.service-proof h2 { max-width: 13ch; }
.service-steps { margin-top: 19px; }
.service-steps > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.service-steps > div:last-child { border-bottom: 0; }
.service-steps dt { font-weight: 730; font-size: 1.12rem; }
.service-steps dd { margin-top: 2px; color: var(--muted); }
.solutions { background: var(--surface); }
.solution-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.solution { padding: clamp(21px,3vw,37px); border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.solution-expanded { background: #302117; border-color: #986340; }
.solution-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .91rem; font-weight: 640; }
.solution-meta span:last-child { white-space: nowrap; }
.solution-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 22px; }
.product-photo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; background: #f8f7f3; }
.product-photo img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.model-name { display: block; font-size: 1.04rem; letter-spacing: 0; }
.model-power { display: block; font-size: clamp(3rem, 6.6vw, 5.9rem); margin-top: 8px; }
.model-power small { font-size: .50em; letter-spacing: -.04em; }
.solution p { color: var(--muted); margin-top: 15px; max-width: 43ch; }
.solution-expanded .solution-meta, .solution-expanded p { color: #e0c4ac; }
.solution-expanded .model-power { color: #ffda83; }
.estimate-link { display: inline-block; color: var(--accent); margin-top: 19px; font-weight: 650; text-underline-offset: .23em; }
.schedule-wrap { padding-block: clamp(32px, 4vw, 56px); }
.schedule-panel { padding: clamp(15px, 3vw, 32px); border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.schedule-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 20px; }
.schedule-header h2 { font-size: clamp(1.55rem, 3.1vw, 2.8rem); letter-spacing: -.052em; }
.schedule-meta { display: flex; flex-wrap: wrap; column-gap: 12px; margin-top: 8px; color: var(--muted); font-size: .86rem; }
.schedule-meta a { color: var(--light); text-underline-offset: .18em; }
.schedule-all { min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); background: var(--paper); font-size: .88rem; font-weight: 650; }
.schedule-all:hover { border-color: var(--accent); }

.schedule-chart { --group-width: clamp(32px, 4.5vw, 53px); position: relative; margin-top: 17px; }
.schedule-chart:focus-visible { outline-offset: 5px; }
.schedule[data-backup='off'] .schedule-chart::before {
  content: '';
  position: absolute;
  inset: 24px 0 0;
  z-index: 1;
  border-radius: 5px;
  background: linear-gradient(90deg, #2c20171a, #2c201785 35% 65%, #2c20171a);
  pointer-events: none;
}
.schedule-trigger {
  position: absolute;
  z-index: 2;
  top: calc(50% + 12px);
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: min(100% - 24px, 420px);
  min-height: 54px;
  padding: 9px clamp(12px, 2.5vw, 24px);
  border: 1px solid #ffbc8d;
  border-radius: 5px;
  color: #211810;
  background: linear-gradient(115deg, #ffae73, var(--accent) 70%);
  box-shadow: 0 5px 18px #170e09a6;
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.schedule-trigger:hover { background: #ffb079; }
.schedule-trigger span:last-child { font-size: 1.2em; line-height: 1; }
.schedule-times { position: relative; height: 21px; margin: 0 0 3px var(--group-width); color: var(--muted); font-size: clamp(.68rem, 1.2vw, .83rem); font-variant-numeric: tabular-nums; }
.schedule-times span { position: absolute; }
.schedule-times span:first-child { left: 0; }
.schedule-times span:nth-child(2) { left: 25%; transform: translateX(-50%); }
.schedule-times span:nth-child(3) { left: 50%; transform: translateX(-50%); }
.schedule-times span:nth-child(4) { left: 75%; transform: translateX(-50%); }
.schedule-times span:last-child { right: 0; }
.schedule-row { position: relative; display: grid; grid-template-columns: var(--group-width) minmax(0, 1fr); align-items: center; margin-top: 7px; }
.schedule-group { font-variant-numeric: tabular-nums; font-size: .91rem; font-weight: 710; }
.schedule-slots { position: relative; display: grid; grid-template-columns: repeat(48, minmax(0, 1fr)); min-height: clamp(25px, 2.8vw, 33px); overflow: hidden; border-radius: 5px; }
.schedule-slots::after { content: ''; position: absolute; inset: 0 1px 0 0; background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), #fbecdf33 calc(25% - 1px) 25%); pointer-events: none; }
.schedule-slot { background: #eae4da; }
.schedule-slot.switching { background: repeating-linear-gradient(-45deg, #b8aea1 0 2px, #ded5c8 2px 5px); }
.schedule-slot.outage { background: #e87b6e; border-bottom: 3px solid #ac4b40; transition: background-color 210ms ease, border-color 210ms ease; }
.schedule[data-backup='on'] .schedule-slot.outage { background-color: var(--battery-fill); border-bottom-color: #a87316; transition-delay: var(--slot-delay, 0ms); }
.schedule-message { position: absolute; inset: 0 0 3px var(--group-width); display: none; grid-template-columns: repeat(48, minmax(0, 1fr)); align-items: center; pointer-events: none; }
.schedule[data-backup='on'] .schedule-message { display: grid; }
.schedule-phrase { grid-column: var(--word-column) / span var(--word-span); display: flex; justify-content: center; gap: 4px; }
.schedule-word { color: #2c1a0e; font-size: clamp(.66rem, 1.25vw, .84rem); font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; overflow: hidden; }
.schedule-message.is-caption { position: static; grid-column: 2; margin-top: 4px; }
.schedule-message.is-caption .schedule-phrase { grid-column: 1 / -1; justify-content: start; }
.schedule-message.is-caption .schedule-word { padding: 3px 7px; border-radius: 3px; background: var(--battery-fill); }
.schedule-word-label { display: block; }
.schedule[data-backup='on'] .schedule-word-label { animation: reveal-schedule-word 420ms var(--word-delay) ease-out both; }
@keyframes reveal-schedule-word {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: translateY(0); }
}
.work {
  background:
    radial-gradient(ellipse 25rem 100% at left center, #a958263b, transparent),
    radial-gradient(ellipse 25rem 100% at right center, #a958263b, transparent),
    var(--panel);
}
.work-heading { align-items: center; }
.work-controls { display: flex; gap: 8px; }
.work-controls button, .work-close { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 50%; font-size: 1.35rem; line-height: 1; cursor: pointer; }
.work-controls button:hover:enabled, .work-close:hover { background: var(--light); color: var(--paper); }
.work-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px; overflow-x: auto; padding: 4px 4px 10px; margin-inline: -4px; scroll-padding-inline: 4px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; user-select: none; }
.work-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.work-card { position: relative; display: block; padding: 0; overflow: hidden; text-align: left; border: 0; border-radius: 6px; background: #302117; color: var(--text); cursor: pointer; scroll-snap-align: start; -webkit-tap-highlight-color: transparent; }
.work-track.is-dragging .work-card { cursor: grabbing; }
.work-card:focus-visible { outline-color: var(--light); outline-offset: -4px; }
.work-card img { aspect-ratio: 1.45; height: auto; object-fit: contain; background: #39291e; pointer-events: none; }
.work-caption { display: flex; align-items: center; min-height: 65px; padding: 11px 17px; font-weight: 690; }
.work-hint { position: absolute; top: 11px; right: 11px; padding: 5px 10px; border: 1px solid #ffb57c; border-radius: 4px; color: var(--text); background: #211810eb; font-size: .82rem; font-weight: 690; opacity: 0; transform: translateY(-4px); transition: opacity 160ms ease, transform 160ms ease; pointer-events: none; }
.work-card:is(:hover, :focus-visible) .work-hint { opacity: 1; transform: none; }
.work-card:is(:hover, :focus-visible) .work-caption { color: var(--light); }
@media (hover: none) {
  .work-hint { opacity: 1; transform: none; }
}
.work-track.is-dragging .work-hint { opacity: 0; }
.work-dialog { inset: 0; margin: auto; padding: 0; max-width: min(calc(100% - 28px), 720px); max-height: 88dvh; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--panel); overscroll-behavior: contain; }
.work-dialog::backdrop { background: #140d08d9; }
.work-dialog form { position: sticky; top: 0; height: 0; z-index: 2; }
.work-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; background: #211810ed; }
.work-close svg { display: block; }
.work-close:focus-visible { border-color: transparent; outline-offset: 1px; }
.work-detail-media { position: relative; isolation: isolate; overflow: hidden; background: #302117; }
.work-detail-media::before { content: ''; position: absolute; z-index: -1; inset: -18px; background: var(--case-photo) center / cover no-repeat; filter: blur(17px) brightness(.54); opacity: .78; }
.work-detail-photo { width: 100%; height: min(36dvh, 340px); object-fit: contain; }
.work-detail-copy { padding: clamp(18px, 4vw, 33px); }
.work-detail-copy h3 { font-size: clamp(1.45rem, 3vw, 2.2rem); }
.work-detail-copy dl { margin-top: 14px; }
.work-detail-copy dt { padding-top: 12px; border-top: 1px solid var(--line); font-weight: 730; }
.work-detail-copy dd + dt { margin-top: 12px; }
.work-detail-copy dd { margin-top: 3px; color: var(--muted); }
.faq-inner { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(24px,5vw,74px); }
.faq-items { border-top: 1px solid var(--line); }
.faq-items details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.faq-items summary { cursor: pointer; font-size: 1.13rem; font-weight: 700; }
.faq-items p { margin-top: 8px; color: var(--muted); max-width: 54ch; }
.next-step { margin-bottom: clamp(40px,6vw,76px); padding: clamp(24px,4vw,53px); display: flex; align-items: center; justify-content: space-between; gap: 22px; border-radius: 6px; color: var(--text); background: #302117; }
.next-step .button { flex: none; }
.footer { border-top: 1px solid var(--accent); background: var(--surface); }
.footer-inner { flex-wrap: wrap; padding-block: clamp(21px, 3vw, 34px); }
.footer p, .footer-contacts span { color: var(--muted); font-size: .9rem; }
.footer-brand p { margin-top: 7px; }
.footer-contacts { display: grid; gap: 5px; font-style: normal; }
.footer-contacts div { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-contacts a { color: var(--light); font-weight: 650; text-underline-offset: .2em; white-space: nowrap; }
.footer-legal { padding-block: 12px 15px; border-top: 1px solid var(--line); }
.footer-legal p { font-size: .8rem; }

.quiz-main { padding: clamp(36px, 6vw, 84px) 22px; min-height: calc(100svh - 155px); }
.quiz-inner { width: min(100%, 820px); margin-inline: auto; }
.quiz-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 25px; color: var(--muted); font-size: .91rem; }
.progress-line { flex: 1; height: 4px; background: #583d2b; border-radius: 8px; overflow: hidden; }
.progress-line > span { display: block; width: 50%; height: 100%; background: #ff883d; transition: width 220ms ease; }
.quiz-progress[data-step='hours'] .progress-line > span, .quiz-progress[data-step='result'] .progress-line > span { width: 100%; }
.quiz-main h1 { font-size: clamp(2.55rem, 6vw, 4.65rem); max-width: 17ch; }
.quiz-main h1:focus { outline: none; }
.quiz-lead { color: var(--muted); font-size: 1.08rem; margin: 15px 0 25px; }
#hours-step h1 { margin-bottom: 25px; }
.choice-grid { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 14px; border-radius: 6px; border: 1px solid var(--line); background: #37271b; cursor: pointer; font-weight: 670; }
.choice:hover, .choice:has(input:checked) { border-color: #ff9b59; }
.choice:has(input:checked) { background: #5b331c; }
.choice input { margin: 0; width: 17px; height: 17px; flex: none; accent-color: #ff883d; }
.device-choice-grid .choice { display: grid; gap: 8px; min-height: 109px; align-content: end; justify-items: start; font-size: 1.11rem; }
.device-choice-grid .choice > input { position: absolute; top: 16px; right: 15px; }
.device-choice-grid .device-icon { width: 32px; height: 32px; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 25px; }
.form-error { margin-top: 12px; color: #ff9c8d; }
.number-field { display: grid; gap: 8px; margin-top: 14px; max-width: 280px; font-weight: 650; }
.number-field input { width: 100%; padding: 10px 12px; border: 1px solid #93694b; border-radius: 8px; background: var(--panel); color: var(--text); }
.watts-details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.watts-details summary { cursor: pointer; width: fit-content; font-weight: 660; }
.watts-details p, .result-note { margin-top: 9px; color: var(--muted); }
.result-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; padding: 24px; border-radius: 6px; background: #302117; color: white; }
.result-panel p { margin-bottom: 8px; color: #e5cbb8; font-size: .94rem; }
.result-panel h2, .result-panel strong { font-size: clamp(1.4rem, 3vw, 2.45rem); line-height: 1.14; letter-spacing: -.04em; }
.result-panel strong { color: var(--light); }
.price-note { margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--line); font-weight: 660; }

@media (min-width: 1100px) {
  .topbar-inner, .hero, .booking-inner, .schedule-wrap { width: min(100% - 112px, 1480px); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(25px, 3vw, 54px); padding-block: 26px 23px; }
  .hero-copy h1 { max-width: none; font-size: clamp(3rem, 4vw, 4.35rem); }
  .demo { width: 100%; max-width: 665px; justify-self: end; }
  .demo::before, .demo::after { width: 23%; }
  .loads { margin-top: -32px; }
  .booking h2 { font-size: clamp(1.95rem, 2.65vw, 2.85rem); }
}
@media (min-width: 1240px) and (min-height: 560px) {
  .landing {
    --rail-width: clamp(112px, 10.4vw, 184px);
    --rail-edge: clamp(14px, 1.45vw, 27px);
    --rail-gutter: calc(var(--rail-width) + var(--rail-edge) + 21px);
  }
  .landing .wrap { width: min(100% - var(--rail-gutter) - var(--rail-gutter), 1480px); }
  .landing-rails {
    position: fixed;
    display: flex;
    justify-content: space-between;
    inset: clamp(101px, 14vh, 152px) var(--rail-edge) auto;
    pointer-events: none;
  }
  .landing-rail {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: var(--rail-width);
    height: clamp(350px, 68vh, 620px);
    border: 1px solid #7a5034;
    border-radius: 5px;
    background: #211810;
    box-shadow: 0 18px 45px #120b0866;
  }
  .landing-rail::before, .landing-rail::after { content: ''; position: absolute; inset: 0; }
  .landing-rail::before {
    z-index: -1;
    background: var(--rail-image) var(--rail-position) / cover no-repeat;
    filter: saturate(.72) brightness(.77);
  }
  .landing-rail::after {
    background:
      linear-gradient(var(--rail-angle), #23180fee 0 10%, #de7735a8 10.2% 10.55%, transparent 10.8% 88%, #de7735a8 88.2% 88.55%, #23180fe8 88.8%),
      linear-gradient(180deg, #23180fc0, #23180f08 29% 65%, #23180fca);
  }
  .landing-rail-installation {
    --rail-image: url('assets/installation-luxpower.webp');
    --rail-position: 51% center;
    --rail-angle: 152deg;
  }
  .landing-rail-switchboard {
    --rail-image: url('assets/installation-panel-detail.webp');
    --rail-position: 48% center;
    --rail-angle: 208deg;
  }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 54px); }
  .hero { gap: 22px; }
  .hero-copy h1 { font-size: clamp(2.73rem, 5.7vw, 4.4rem); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .topbar-inner { min-height: 60px; }
  .brand { display: inline-grid; gap: 3px; }
  .brand-name { font-size: 1.75rem; }
  .brand-description { border: 0; padding: 0; font-size: .72rem; }
  .topbar-link { font-size: .88rem; }
  .hero { grid-template: 'intro' 'demo' / minmax(0,1fr); gap: 24px; padding-block: 30px 35px; }
  .hero-copy h1 { font-size: clamp(2.45rem, 10.15vw, 3.7rem); max-width: 15ch; text-wrap: initial; }
  .hero-copy p { margin-top: 12px; font-size: 1rem; }
  .hero-copy .button { margin-top: 17px; min-height: 49px; }
  .hero-copy h1::after { width: 44px; height: 3px; margin-top: 12px; }
  .hero-copy .hero-hint { margin-top: 9px; font-size: .84rem; }
  .demo::before, .demo::after { width: 12%; }
  .switch-cue { left: calc(100% + 13px); padding: 3px 6px; font-size: .79rem; }
  .switch-cue::before { width: 11px; }
  .loads { padding: 0 7% 12px; }
  .loads li { font-size: .8rem; gap: 3px; padding-inline: 3px; }
  .loads .device-icon { width: 23px; height: 23px; }
  .section-heading { display: grid; gap: 12px; margin-bottom: 21px; }
  .booking-inner, .service-proof, .solution-grid, .faq-inner { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .booking-card { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .service-proof h2 { max-width: 16ch; }
  .schedule-message { position: static; grid-column: 2; margin-top: 4px; }
  .schedule-phrase { grid-column: 1 / -1; justify-content: start; }
  .schedule-word { padding: 3px 7px; border-radius: 3px; background: var(--battery-fill); }
  .work-heading { display: flex; flex-wrap: wrap; }
  .work-track { grid-auto-columns: 85%; }
  .work-card img { aspect-ratio: 1.28; }
  .work-detail-photo { height: min(34dvh, 310px); }
  .next-step { align-items: start; flex-direction: column; }
  .footer-inner { flex-direction: column; align-items: start; gap: 16px; }
  .quiz-main { padding-inline: 18px; }
  .choice-grid { grid-template-columns: 1fr; }
  .device-choice-grid .choice { display: flex; min-height: 61px; align-items: center; padding-right: 44px; gap: 12px; }
  .device-choice-grid .choice > input { top: 22px; }
  .device-choice-grid .device-icon { width: 27px; height: 27px; }
  .hour-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .result-panel { grid-template-columns: 1fr; }
}
@media (max-width: 485px) {
  .booking-card form { grid-template-columns: minmax(0, 1fr); }

}
@media (max-width: 350px) {
  .hero { gap: 18px; padding-top: 24px; }
  .hero-copy h1 { font-size: 2.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .inverter-photo, .power-switch::before, .loads .device-icon, .progress-line > span { transition: none; }
  .schedule-slot.outage, .work-hint { transition: none; }
  .schedule[data-backup='on'] .schedule-word-label { animation: none; }
  .hero[data-power='on'] .energy-wash { animation: none; opacity: .68; }
  .hero[data-power='on'] .energy-map path { animation: none; stroke-dashoffset: 0; opacity: .43; }
}
