:root {
  --text: #111827;
  --muted: #5f6876;
  --line: #e6e9ee;
  --yellow: #f8c900;
  --yellow-dark: #d8a800;
  --accent: #f8c900;
  --accent-dark: #c99700;
  --tech: #31495c;
  --tech-soft: #f3f7fa;
  --ink: #17212b;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(22, 31, 45, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--white); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[id] { scroll-margin-top: 96px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: white; padding: 10px; z-index: 20; }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand-logo {
  width: 180px;
  height: auto;
  display: block;
}
.site-nav { display: flex; justify-content: center; gap: 32px; font-size: 14px; font-weight: 650; }
.site-nav a:hover { color: var(--accent-dark); }
.header-phone { color: var(--accent-dark); font-weight: 750; white-space: nowrap; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 22px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}
.button-primary { background: var(--yellow); color: #141414; box-shadow: 0 10px 24px rgba(248,201,0,.28); }
.button-primary:hover { background: #ffd71a; }
.button-secondary { background: var(--ink); color: white; }
.button-dark { background: var(--ink); color: white; width: max-content; }
.button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid rgba(248,201,0,.55);
  outline-offset: 3px;
}
.button:disabled {
  cursor: not-allowed;
  opacity: .62;
}
.nav-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 6px 7px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  min-height: calc(100vh - 78px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-copy { align-self: center; padding: clamp(38px, 7vw, 90px) clamp(20px, 5vw, 72px); }
.hero h1 { margin: 0; font-size: clamp(42px, 6.2vw, 86px); line-height: .98; letter-spacing: 0; max-width: 760px; }
.hero p { margin: 24px 0 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 21px); max-width: 650px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-points { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 38px 0 0; }
.hero-points div { border-left: 3px solid var(--accent); padding-left: 12px; }
.hero-points dt { font-weight: 850; }
.hero-points dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.hero-media { min-height: 560px; position: relative; background: linear-gradient(90deg, #fff 0%, #f4f7fa 100%); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media picture { display: block; }
.hero-media img { object-fit: cover; object-position: center; }

.trust-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-band div { background: var(--white); padding: 26px clamp(18px, 4vw, 54px); }
.trust-band strong { display: block; }
.trust-band span { color: var(--muted); font-size: 14px; }
.section { padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px); }
.section-heading { text-align: center; max-width: 820px; margin: 0 auto 42px; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: 0; }
.section-heading p, .energy-system p, .contact p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #7a5a00;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.services article {
  min-height: 230px;
  padding: 30px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.service-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto;
  border: 1px solid rgba(248,201,0,.62);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(248,201,0,.22), rgba(255,255,255,.78)),
    #fffdf0;
  box-shadow: 0 12px 28px rgba(22, 31, 45, 0.08);
}
.service-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-icon .icon-accent {
  stroke: var(--accent-dark);
}
.services h3 { margin: 18px 0 8px; font-size: 18px; overflow-wrap: anywhere; }
.services p { margin: 0; color: var(--muted); font-size: 15px; }

.process { background: #fbfcfd; }
.project-flow {
  max-width: 1120px;
  margin: 0 auto;
}
.progress-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 50px rgba(22, 31, 45, 0.07);
}
.progress-rail li {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  min-height: 118px;
  padding: 18px 16px;
  color: var(--muted);
  border-left: 1px solid var(--line);
}
.progress-rail li:first-child { border-left: 0; }
.progress-rail li.is-active {
  background: var(--accent);
  color: var(--ink);
}
.progress-rail li.is-active::after {
  content: "";
  position: absolute;
  top: 0;
  right: -28px;
  z-index: 2;
  width: 0;
  height: 0;
  border-top: 59px solid transparent;
  border-bottom: 59px solid transparent;
  border-left: 28px solid var(--accent);
}
.progress-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}
.progress-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.progress-rail strong {
  font-size: 15px;
  line-height: 1.2;
  text-align: center;
}
.flow-detail {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 28px;
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.flow-summary span {
  display: inline-block;
  margin-bottom: 12px;
  color: #7a5a00;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.flow-summary h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}
.flow-summary p {
  margin: 14px 0 0;
  color: var(--muted);
}
.flow-cards {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.flow-cards li {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.flow-cards li::before {
  counter-increment: flow;
  content: counter(flow);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}
.flow-cards strong { display: block; }
.flow-cards span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}

.energy-system {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: linear-gradient(90deg, #f7fafc 0%, #ffffff 72%);
}
.energy-system ul { list-style: none; padding: 0; margin: 26px 0 0; }
.energy-system li { margin: 12px 0; padding-left: 28px; position: relative; }
.energy-system li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}
.system-visual {
  position: relative;
  aspect-ratio: 15 / 8;
  border: 1px solid rgba(49,73,92,.14);
  border-radius: 8px;
  overflow: hidden;
  background: var(--tech-soft);
  box-shadow: var(--shadow);
}
.system-visual picture,
.system-visual img {
  display: block;
  width: 100%;
  height: 100%;
}
.system-visual img {
  object-fit: cover;
  object-position: center;
}
.system-callout {
  position: absolute;
  min-width: 142px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(23,33,43,.12);
  box-shadow: 0 12px 32px rgba(23,33,43,.14);
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}
.system-callout::before {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.callout-pv { top: 10%; right: 6%; }
.callout-storage { left: 30%; bottom: 10%; }
.callout-inverter { left: 52%; bottom: 10%; }
.callout-wallbox { top: 48%; left: 12%; }
.callout-pv::before { right: 100%; }
.callout-storage::before,
.callout-inverter::before,
.callout-wallbox::before { left: 100%; }

.funding {
  background: #fbfcfd;
}
.funding-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}
.funding-grid article {
  min-height: 230px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(22, 31, 45, 0.06);
}
.funding-grid span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 900;
}
.funding-grid h3 { margin: 18px 0 8px; font-size: 22px; }
.funding-grid p { margin: 0; color: var(--muted); }
.lead-magnet {
  max-width: 1120px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(248,201,0,.6);
  border-radius: 8px;
  background: #fff8cf;
}
.lead-magnet strong { display: block; font-size: 20px; }
.lead-magnet p { margin: 4px 0 0; color: #57450b; }

.comparison-table {
  max-width: 1080px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.comparison-table div { display: grid; grid-template-columns: 1.1fr 1fr 1.1fr; border-top: 1px solid var(--line); }
.comparison-table div:first-child { border-top: 0; background: #fbfcfd; }
.comparison-table span, .comparison-table strong, .comparison-table b, .comparison-table em { padding: 18px; font-style: normal; }
.comparison-table b { background: #fff8cf; color: #7a5a00; }
.comparison-table em { color: var(--muted); }

.review-carousel {
  position: relative;
}
.quotes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, calc((100% - 36px) / 3));
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
blockquote {
  min-height: 174px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--text);
  background: white;
  scroll-snap-align: start;
}
cite { display: block; color: var(--muted); font-style: normal; font-weight: 800; margin-top: 18px; }
.review-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}
.review-control {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(22,31,45,.08);
}
.review-control:hover { background: #fff8cf; }
.review-control:focus-visible {
  outline: 3px solid rgba(248,201,0,.55);
  outline-offset: 3px;
}
.review-control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.review-source {
  margin: 18px auto 0;
  max-width: 820px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.review-source a {
  color: var(--accent-dark);
  font-weight: 800;
}
.faq { background: #fbfcfd; }
details { max-width: 980px; margin: 0 auto 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 800; }
details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.contact {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
  background: var(--yellow);
}
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(23,33,43,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.42);
  box-shadow: 0 18px 50px rgba(22, 31, 45, 0.09);
}
label { display: grid; gap: 7px; font-weight: 750; }
input, select, textarea { width: 100%; border: 1px solid rgba(23,33,43,.25); border-radius: 8px; min-height: 46px; padding: 10px 12px; font: inherit; background: white; }
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23,33,43,.18);
  border-color: rgba(23,33,43,.55);
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.configurator {
  background: linear-gradient(135deg, var(--yellow) 0%, #ffe16a 100%);
}
.config-benefits {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.config-benefits li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
  font-weight: 750;
}
.config-benefits li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}
.config-fieldset {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(23,33,43,.25);
  border-radius: 8px;
  background: rgba(255,255,255,.55);
}
.config-fieldset legend {
  padding: 0 6px;
  font-weight: 900;
}
.config-fieldset label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(23,33,43,.14);
  border-radius: 8px;
  background: white;
  min-width: 0;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.spam-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 24px;
  margin: 0;
  color: #17212b;
  font-weight: 750;
}
.form-status.is-error { color: #7f1d1d; }
.form-status.is-success { color: #064e3b; }

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr;
  gap: 40px;
  padding: 44px clamp(20px, 5vw, 72px);
  background: var(--ink);
  color: white;
}
.site-footer p, .site-footer a, address { color: rgba(255,255,255,.78); }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
address { font-style: normal; }
.footer-brand { margin-bottom: 14px; }

.return-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.95);
  border-radius: 50%;
  background: var(--yellow);
  color: white;
  box-shadow: 0 14px 32px rgba(22,31,45,.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}
.return-top.is-visible {
  opacity: .9;
  pointer-events: auto;
  transform: translateY(0);
}
.return-top:hover { background: #ffd71a; opacity: 1; }
.return-top:focus-visible {
  outline: 3px solid rgba(23,33,43,.35);
  outline-offset: 3px;
  opacity: 1;
}
.return-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-page {
  background: #f7fafc;
  padding: clamp(48px, 7vw, 90px) clamp(20px, 5vw, 72px);
}
.legal-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 50px rgba(22, 31, 45, 0.08);
}
.legal-shell h1 {
  margin: 0 0 30px;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.legal-shell h2 {
  margin: 38px 0 14px;
  font-size: clamp(24px, 3vw, 34px);
  overflow-wrap: anywhere;
}
.legal-shell h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  overflow-wrap: anywhere;
}
.legal-shell p,
.legal-shell li {
  color: #334155;
  overflow-wrap: anywhere;
}
.legal-shell a {
  color: #7a5a00;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.legal-shell ol,
.legal-shell ul {
  padding-left: 22px;
}
.legal-shell li {
  margin: 10px 0;
}
.legal-back {
  margin: 0 0 20px;
}
.legal-nav {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle { display: block; }
  .site-nav, .header-phone, .site-header > .button { display: none; }
  .site-header.nav-open .site-nav { display: grid; grid-column: 1 / -1; justify-content: stretch; gap: 0; padding-bottom: 16px; }
  .site-nav a { padding: 14px 0; border-top: 1px solid var(--line); }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media { min-height: 390px; }
  .hero-points, .trust-band, .energy-system, .funding-grid, .contact, .site-footer { grid-template-columns: 1fr; }
  .lead-magnet { align-items: flex-start; flex-direction: column; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-auto-columns: minmax(280px, calc((100% - 18px) / 2)); }
  .progress-rail,
  .flow-detail { grid-template-columns: 1fr; }
  .progress-rail li {
    min-height: 84px;
    justify-items: start;
    grid-template-columns: 44px 1fr;
    align-content: center;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .progress-rail li:first-child { border-top: 0; }
  .progress-rail li.is-active::after { display: none; }
  .progress-rail strong { text-align: left; }
  .comparison-table div { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { min-height: 68px; padding-inline: 16px; }
  .brand-logo { width: 150px; }
  .hero-copy, .section, .energy-system, .contact, .site-footer { padding-inline: 16px; }
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-points {
    gap: 10px;
    margin-top: 26px;
  }
  .hero-points div {
    padding-left: 10px;
  }
  .hero-points dd {
    font-size: 13px;
  }
  .services { grid-template-columns: 1fr; }
  .services article { border-left: 0; border-top: 1px solid var(--line); min-height: auto; }
  .quotes { grid-auto-columns: minmax(260px, 86vw); }
  .contact-form { grid-template-columns: 1fr; }
  .config-fieldset { grid-template-columns: 1fr; }
  .return-top {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
}
