/* ===========================================================
   M-INSTALACJE — DESIGN TOKENS
   Ciemna grafitowa baza + zielone CTA (kierunek zaakceptowany
   przez klienta), sygnatura dzień/noc zostaje w hero jako
   samodzielny, animowany diagram SVG.
   =========================================================== */

:root {
  /* tło i powierzchnie */
  --bg:           #071112;
  --bg-alt:       #0c191b;
  --panel:        #102225;
  --panel-2:      #142b2f;
  --line:         rgba(206,232,224,0.14);

  /* tekst */
  --ink:          #f5fbf8;
  --ink-rgb:      245,251,248;
  --muted:        #a9bbb8;

  /* akcent CTA */
  --green:        #1fc889;
  --green-rgb:    31,200,137;
  --green-dark:   #0f8a61;
  --mint:         #baf6dc;

  /* akcenty tematyczne (dach, słońce, magazyn) */
  --brick:        #d9764a;
  --brick-rgb:    217,118,74;
  --brick-dark:   #b85f39;
  --sun-gold:     #f5c45a;
  --sun-gold-rgb: 245,196,90;
  --storage-teal:       #3aa1c8;
  --storage-teal-rgb:   58,161,200;
  --storage-teal-light: #6cc2e0;

  /* typografia */
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  /* layout */
  --wrap: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --transition-slow: 900ms cubic-bezier(.4,0,.2,1);

  /* elevation */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 2px 10px rgba(0,0,0,0.25);
  --shadow-md: 0 10px 28px -8px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-lg: 0 28px 64px -16px rgba(0,0,0,0.6), 0 4px 14px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 18ch; }
h3 { font-size: 1.15rem; }

p { line-height: 1.6; margin: 0 0 1em; }

.section-eyebrow, .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(var(--green-rgb), 0.14);
  padding: 0.45em 0.9em;
  border-radius: 999px;
  margin-bottom: 1.1em;
}
.section-eyebrow::before, .eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 0.95em 1.7em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #04140f;
  box-shadow: 0 6px 20px -6px rgba(var(--green-rgb), 0.5);
}
.btn-primary:hover {
  box-shadow: 0 10px 28px -6px rgba(var(--green-rgb), 0.6);
}

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }

.btn-large { font-size: 1.1rem; padding: 1.1em 2.2em; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7,17,18,0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.logo-img {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(1);
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color .2s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: right .25s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { right: 0; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--green);
  color: #04140f;
  font-weight: 700;
  padding: 0.55em 1.1em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 4px 16px -6px rgba(var(--green-rgb), 0.5);
}
.header-phone:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -6px rgba(var(--green-rgb), 0.6); }

.menu-toggle { display: none; }

@media (max-width: 760px) {
  .main-nav { display: none; }
  .site-header.menu-open .main-nav {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 0;
    padding: 10px 20px 18px;
    background: rgba(7,17,18,0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-header.menu-open .main-nav a {
    padding: 12px 8px;
    font-size: 1rem;
  }
  .menu-toggle {
    display: inline-grid;
    gap: 4px;
    width: 42px;
    height: 42px;
    place-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: rgba(255,255,255,0.04);
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-phone { margin-left: auto; }
}

@media (max-width: 430px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .header-inner { gap: 10px; }
  .logo-img { height: 38px; }
  .page-hero h1 { font-size: 2.05rem; }
  .header-phone {
    font-size: 0.76rem;
    padding: 0.55em 0.8em;
  }
}

/* ===== HERO ===== */
.hero { padding: 72px 0 48px; position: relative; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-accent { color: var(--sun-gold); }

.hero-sub { max-width: 42ch; font-size: 1.1rem; color: var(--muted); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.7em; }

.hero-visual {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-md);
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(var(--sun-gold-rgb),0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.mode-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
  gap: 4px;
}
.mode-btn {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  background: transparent;
  border: none;
  color: var(--muted);
  padding: 0.5em 1.1em;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.8;
  transition: background .2s ease, opacity .2s ease, color .2s ease;
}
.mode-btn.is-active {
  background: var(--green);
  color: #04140f;
  opacity: 1;
}
.mode-btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

/* ===== SVG FLOW DIAGRAM ===== */
.flow-diagram {
  width: 100%;
  height: auto;
  max-width: 480px;
  display: block;
}

.sun {
  fill: var(--sun-gold);
  filter: drop-shadow(0 0 22px rgba(245,196,90,0.55));
  transition: opacity var(--transition-slow);
  opacity: 1;
}
.moon-group { opacity: 0; transition: opacity var(--transition-slow); }
.moon { fill: #d8dfe6; }
.moon-crater { fill: var(--bg); opacity: 0.35; }

.stars circle { fill: #cfe0e6; opacity: 0; transition: opacity var(--transition-slow); }

.roof { fill: var(--brick); transition: fill var(--transition-slow); }
.panel { fill: #0d1b24; stroke: #2b4250; stroke-width: 1; }

.house-body { fill: #f5f1e6; stroke: rgba(7,17,18,0.2); stroke-width: 1.5; transition: fill var(--transition-slow); }
.house-window { fill: #b9c8c4; transition: fill 400ms ease; }
.house-door { fill: var(--storage-teal); opacity: 0.85; }

.battery-body { fill: none; stroke: var(--green); stroke-width: 2; }
.battery-cap { fill: var(--green); }
.battery-fill { fill: var(--green); transition: height 900ms ease, y 900ms ease, opacity 400ms ease; }
.battery-label {
  font-family: var(--font-mono);
  font-size: 11px;
  fill: var(--ink);
  opacity: 0.7;
}

.flow-path {
  fill: none;
  stroke: var(--sun-gold);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  opacity: 0;
  transition: opacity 400ms ease;
}
.flow-path.is-active {
  opacity: 0.9;
  animation: dash-flow 1.1s linear infinite;
}
.flow-battery-house.is-active { stroke: var(--green); }

@keyframes dash-flow {
  to { stroke-dashoffset: -28; }
}

/* --- NIGHT MODE state (dotyczy tylko diagramu SVG) --- */
body[data-mode="night"] .sun { opacity: 0; }
body[data-mode="night"] .moon-group { opacity: 1; }
body[data-mode="night"] .stars circle { opacity: 0.8; }
body[data-mode="night"] .roof { fill: #5a3222; }
body[data-mode="night"] .house-body { fill: #1a2a26; }
body[data-mode="night"] .house-window { fill: var(--sun-gold); opacity: 0.85; }

.visual-caption { font-size: 0.92rem; color: var(--muted); max-width: 40ch; margin-top: 16px; margin-bottom: 0; }
[data-caption-night] { display: none; }
body[data-mode="night"] [data-caption-day] { display: none; }
body[data-mode="night"] [data-caption-night] { display: block; }

/* ===== BRANDS / SYSTEMS CAROUSEL ===== */
.brands-strip {
  padding: 34px 0 38px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.brands-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.brands-heading .section-eyebrow { margin: 0; }
.brands-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.brands-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: brands-scroll 90s linear infinite;
}
.brands-strip:hover .brands-track { animation-play-state: paused; }
.brand-card {
  position: relative;
  width: 360px;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.46) saturate(1.05);
  transition: transform .5s ease, filter .5s ease;
}
.brand-card:hover img { transform: scale(1.035); filter: brightness(.55) saturate(1.1); }
.brand-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.brand-card span small {
  display: block;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  margin-top: 4px;
}

@keyframes brands-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== MOBILE ACTION BAR ===== */
.mobile-action-bar { display: none; }

@media (max-width: 900px) {
  .brands-heading { align-items: start; flex-direction: column; gap: 5px; }
  .brand-card { width: 300px; height: 180px; }
}

@media (max-width: 560px) {
  .brand-card { width: 260px; height: 160px; }
}

/* ===== PROBLEM ===== */
.problem { padding: 96px 0; background: var(--bg-alt); }
.problem h2 { max-width: 22ch; }
.problem-text { max-width: 58ch; font-size: 1.05rem; color: var(--muted); }

/* ===== DOTACJE ===== */
.dotacje { padding: 96px 0; }
.dotacje h2 { max-width: 20ch; margin-bottom: 0.8em; }
.dotacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.dotacja-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 26px 30px;
  position: relative;
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.dotacja-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.dotacja-media {
  margin: -26px -26px 18px;
  height: 150px;
  overflow: hidden;
}
.dotacja-media img { width: 100%; height: 100%; object-fit: cover; }
.dotacja-card-featured {
  border-color: var(--green);
  box-shadow: 0 10px 30px -10px rgba(var(--green-rgb),0.35);
}
.dotacja-card-featured:hover { box-shadow: 0 20px 44px -12px rgba(var(--green-rgb),0.45); }
.dotacja-card-featured::before {
  content: "Najczęściej wybierane";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--green);
  color: #04140f;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  z-index: 1;
}
.dotacja-stamp {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #04140f;
  background: linear-gradient(135deg, var(--mint), var(--green));
  border-radius: 999px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.dotacja-card p { font-size: 0.96rem; color: var(--muted); min-height: 4.8em; }
.dotacja-link { font-weight: 600; text-decoration: none; color: var(--mint); font-size: 0.94rem; display: inline-flex; align-items: center; gap: 4px; transition: gap .2s ease; }
.dotacja-link:hover { gap: 9px; }

.dotacje-note {
  font-size: 0.9rem;
  color: var(--muted);
  opacity: 0.8;
  max-width: 60ch;
  margin-top: 34px;
}

@media (max-width: 900px) {
  .dotacje-grid { grid-template-columns: 1fr; }
}

/* ===== TECH (Sigenergy/Deye) ===== */
.tech { padding: 96px 0; background: var(--bg-alt); }
.tech-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.tech-copy p { max-width: 44ch; color: var(--muted); }
.tech-cards { display: grid; gap: 20px; }
.tech-card {
  background: var(--panel);
  border-radius: var(--radius-md);
  padding: 0 0 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tech-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tech-media { height: 170px; overflow: hidden; }
.tech-media img { width: 100%; height: 100%; object-fit: cover; }
.tech-card > p, .tech-card > dl { padding-left: 28px; padding-right: 28px; }
.tech-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  margin: 22px 0 0.4em;
  color: var(--mint);
}
.tech-desc { font-size: 0.95rem; color: var(--muted); }
.tech-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
  padding-top: 18px !important;
  border-top: 1px solid var(--line);
}
.tech-specs dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  opacity: 0.8;
  margin-bottom: 4px;
}
.tech-specs dd { margin: 0; font-size: 0.88rem; font-weight: 500; color: var(--ink); }

@media (max-width: 860px) {
  .tech-inner { grid-template-columns: 1fr; }
  .tech-specs { grid-template-columns: 1fr; }
}

/* ===== REALIZACJE / SHOWCASE ===== */
.showcase { padding: 62px 0; background: var(--bg-alt); }
.showcase-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 30px;
}
.showcase-heading h2 { margin-bottom: 0; }
.showcase-heading > p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 245px;
  gap: 16px;
  max-width: 860px;
}
.showcase-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow-sm);
  color: #fff;
}
.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease, filter .55s ease;
}
.showcase-card::after {
  content: "";
  position: absolute;
  inset: 36% 0 0;
  background: linear-gradient(transparent, rgba(3, 13, 10, .88));
  pointer-events: none;
}
.showcase-card:hover img { transform: scale(1.025); filter: saturate(1.06); }
.showcase-copy {
  position: absolute;
  z-index: 1;
  left: 20px;
  right: 20px;
  bottom: 18px;
}
.showcase-copy small {
  display: block;
  margin-bottom: 5px;
  color: var(--sun-gold);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.showcase-copy strong {
  display: block;
  max-width: 32ch;
  font-size: 1rem;
  line-height: 1.3;
}
.showcase-more {
  display: inline-flex;
  margin-top: 24px;
  color: var(--mint);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .showcase-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 235px; }
}
@media (max-width: 600px) {
  .showcase { padding: 54px 0; }
  .showcase-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .showcase-grid {
    display: flex;
    gap: 12px;
    padding-right: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .showcase-grid::-webkit-scrollbar { display: none; }
  .showcase-card,
  .showcase-card-wide {
    width: min(78vw, 300px);
    height: 245px;
    flex: 0 0 auto;
    grid-column: auto;
    scroll-snap-align: start;
  }
}

/* ===== PROCES ===== */
.proces { padding: 72px 0; }
.process-layout {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 2fr);
  gap: 48px;
  align-items: start;
}

@media (max-width: 720px) {
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .mobile-action-bar {
    position: fixed;
    z-index: 1000;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8px;
    padding: 7px;
    border: 1px solid color-mix(in srgb, var(--line) 70%, white);
    border-radius: 18px;
    background: color-mix(in srgb, var(--panel) 90%, transparent);
    box-shadow: 0 12px 38px rgba(4, 20, 15, .22);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  .mobile-action-bar a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
  }
  .mobile-action-call {
    color: var(--ink);
    border: 1px solid var(--line);
    background: var(--panel);
  }
  .mobile-action-quote {
    color: #04140f;
    background: linear-gradient(135deg, var(--sun-gold), var(--brick));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brands-track { animation: none; }
  .brand-card img { transition: none; }
}
.process-intro { position: sticky; top: 112px; }
.process-intro > p:last-child {
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 38ch;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #04140f;
  background: linear-gradient(135deg, var(--sun-gold), var(--brick));
  border-radius: 999px;
  margin-bottom: 14px;
}
.step p { font-size: 0.92rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .process-layout { grid-template-columns: 1fr; gap: 28px; }
  .process-intro { position: static; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .proces { padding: 54px 0; }
  .steps { grid-template-columns: 1fr; }
}

/* ===== PROOF / TESTIMONIALS ===== */
.proof { padding: 72px 0; background: var(--bg-alt); }
.proof-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 36px;
  align-items: stretch;
}
.proof-copy {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: center;
}
.proof-photo {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.proof-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.proof-list li {
  padding-left: 22px;
  position: relative;
  font-size: 0.98rem;
  color: var(--ink);
  opacity: 0.92;
}
.proof-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.testimonials {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  align-content: stretch;
}
.google-rating {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel) 88%, var(--sun-gold));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.rating-score {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1;
}
.google-rating strong {
  display: block;
  color: var(--sun-gold);
  letter-spacing: .08em;
}
.google-rating small { display: block; color: var(--muted); margin-top: 2px; }
.testimonials blockquote {
  margin: 0;
  padding: 30px 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.testimonials blockquote[hidden] { display: none; }
.testimonials blockquote::before {
  content: "“";
  position: absolute;
  top: -6px; left: 20px;
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--green);
  opacity: 0.18;
  line-height: 1;
}
.testimonials p { font-style: italic; color: var(--ink); opacity: 0.92; margin-bottom: 0.5em; position: relative; }
.testimonials cite { font-size: 0.85rem; color: var(--muted); font-style: normal; }
.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}
.carousel-btn:hover, .carousel-btn:focus-visible {
  border-color: var(--green);
  outline: none;
}
.carousel-status {
  min-width: 42px;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .proof-inner { grid-template-columns: 1fr; }
  .proof-copy { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); }
}
@media (max-width: 600px) {
  .proof { padding: 54px 0; }
  .proof-copy { grid-template-columns: 1fr; gap: 22px; }
  .proof-photo { min-height: 220px; height: 220px; }
  .testimonials blockquote { min-height: 0; }
}

/* ===== FAQ ===== */
.faq { padding: 96px 0; }
.faq-list { margin-top: 32px; display: grid; gap: 12px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--green);
  flex-shrink: 0;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-item p { margin: 14px 0 0; color: var(--muted); font-size: 0.95rem; }

/* ===== FINAL CTA ===== */
.final-cta {
  width: calc(100% - 48px);
  max-width: calc(var(--wrap) + 24px);
  margin: 0 auto 64px;
  padding: clamp(64px, 9vw, 100px) clamp(24px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel) 0%, var(--bg-alt) 55%, var(--green-dark) 150%);
  color: var(--ink);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.final-cta .wrap { max-width: none; padding: 0; }
.final-cta-inner h2 { max-width: 26ch; margin: 0 auto 0.7em; color: inherit; }
.final-cta-note { color: var(--muted); margin-top: 1em; font-size: 0.92rem; }
.final-cta-contact { font-family: var(--font-mono); margin-top: 0.4em; }
.final-cta-contact a { text-decoration: none; color: var(--mint); }

@media (max-width: 560px) {
  .final-cta { width: calc(100% - 24px); border-radius: var(--radius-md); }
}

/* ===== CONTACT FORM ===== */
.contact-section { padding: 96px 0; background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-copy h2 { max-width: 14ch; }
.contact-copy > p { color: var(--muted); }
.contact-direct {
  display: grid;
  gap: 8px;
  margin-top: 26px;
}
.contact-direct a { color: var(--mint); text-decoration: none; }
.contact-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: grid; gap: 7px; text-align: left; }
.form-field label { font-size: .9rem; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.form-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.form-consent input { margin-top: 3px; }
.form-note { color: var(--muted); font-size: .78rem; margin: 0; }
.form-honeypot { position: absolute; left: -9999px; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
}

/* ===== FOOTER ===== */
.site-footer { padding: 32px 0; font-size: 0.85rem; color: var(--muted); border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-social { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

/* ===== PODSTRONY (fotowoltaika, dotacje szczegółowe) ===== */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color .2s ease;
}
.back-link:hover { color: var(--mint); }

.page-hero { padding: 40px 0 56px; }
.page-hero .wrap { max-width: 760px; }
.page-hero .eyebrow { margin-top: 24px; }
.page-hero h1 { max-width: 20ch; }
.page-lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
.page-hero .hero-ctas { margin-top: 1.6em; }

.content-section { padding: 64px 0; }
.content-section.alt { background: var(--bg-alt); }
.content-section .wrap { max-width: 860px; }
.content-section h2 { max-width: 30ch; }
.content-section > .wrap > p.section-eyebrow { margin-top: 0; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}
.fact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.fact-card .fact-value {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--mint);
  margin-bottom: 0.2em;
}
.fact-card .fact-label { font-size: 0.88rem; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .fact-grid { grid-template-columns: 1fr; }
}

.detail-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-top: 28px;
}
.detail-card img {
  border-radius: var(--radius-md);
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.detail-card h3 { color: var(--mint); }
.detail-card .tech-specs { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }

@media (max-width: 700px) {
  .detail-card { grid-template-columns: 1fr; }
}

.condition-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.condition-list li {
  padding-left: 28px;
  position: relative;
  color: var(--ink);
  opacity: 0.92;
}
.condition-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
}

.disclaimer {
  font-size: 0.88rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 28px;
}

/* ===== KALKULATOR OPŁACALNOŚCI ===== */
.calc-wrap { max-width: 720px; }
.calc-step-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6em;
}

.calc-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}
.calc-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.calc-option:hover { transform: translateY(-2px); border-color: rgba(31,200,137,0.4); }
.calc-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.calc-option-icon { font-size: 1.6rem; }
.calc-option-label { font-weight: 600; }
.calc-option-sub { display: block; font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: 2px; }
.calc-option:has(input:checked) {
  border-color: var(--green);
  background: rgba(31,200,137,0.09);
}
.calc-option:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }

@media (max-width: 600px) {
  .calc-options { grid-template-columns: 1fr; }
}

.calc-field { margin-bottom: 28px; }
.calc-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-field input[type="number"],
.calc-field select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85em 1em;
}
.calc-field input[type="number"]:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--green);
}
.calc-hint { font-size: 0.85rem; color: var(--muted); margin: 8px 0 0; }

.calc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}
.calc-nav .btn { margin-left: 0; }
.calc-nav:has(.calc-next:only-child) { justify-content: flex-end; }

.calc-error {
  color: var(--sun-gold);
  font-size: 0.88rem;
  margin: -18px 0 20px;
}

.result-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.result-card h3 {
  color: var(--mint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 14px;
}
.result-numbers div { background: rgba(255,255,255,0.03); border-radius: var(--radius-sm); padding: 14px 16px; }
.result-value { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--ink); display: block; }
.result-label { font-size: 0.8rem; color: var(--muted); }
.result-note { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 640px) {
  .result-numbers { grid-template-columns: 1fr; }
}

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 36px;
}
.blog-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card-body { padding: 22px 24px 26px; }
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6em;
}
.blog-card h3 { margin-bottom: 0.4em; }
.blog-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }

@media (max-width: 760px) {
  .blog-grid { grid-template-columns: 1fr; }
}

.article-hero-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  border: 1px solid var(--line);
}
.article-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1em;
}
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 1.3em; color: var(--ink); }
.article-body li { margin-bottom: 0.5em; }
.article-body p { color: var(--ink); opacity: 0.92; }

/* ===== scroll reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== responsive hero ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
