/* ===========================================================
   M-INSTALACJE — DESIGN TOKENS
   Jasna, ciepła baza inspirowana stylistyką zrobsmart.pl:
   dużo światła, miękkie powierzchnie i oszczędny zielony akcent.
   =========================================================== */

:root {
  /* tło i powierzchnie */
  --bg:           #f8f7f2;
  --bg-alt:       #eef2ef;
  --panel:        #ffffff;
  --panel-2:      #f2f5f2;
  --line:         rgba(22,48,42,0.13);

  /* tekst */
  --ink:          #132c27;
  --ink-rgb:      19,44,39;
  --muted:        #64736f;

  /* akcent CTA */
  --green:        #25bd7f;
  --green-rgb:    31,200,137;
  --green-dark:   #11835b;
  --mint:         #0d7654;

  /* 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 2px 14px rgba(28,51,45,0.07);
  --shadow-md: 0 18px 38px -16px rgba(28,51,45,0.18);
  --shadow-lg: 0 30px 70px -24px rgba(28,51,45,0.24);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(248,247,242,.94), rgba(248,247,242,.94)),
    url("../assets/pv-background.webp");
  background-position: center top;
  background-size: auto, 860px auto;
  background-repeat: repeat, repeat;
  background-attachment: fixed;
  -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.72);
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; border-color: rgba(var(--ink-rgb),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(248,247,242,0.88);
  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: none;
}
.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(248,247,242,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.78);
    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: 66px 0 34px; position: relative; overflow: hidden; }
.hero-webgl {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
}
.webgl-preview .hero-webgl { opacity: 1; }
.webgl-preview .hero-inner { z-index: 1; }
.webgl-preview .hero-photo {
  transform:
    perspective(1300px)
    rotateX(var(--hero-rotate-x, 0deg))
    rotateY(var(--hero-rotate-y, 0deg))
    translateZ(0);
  transform-style: preserve-3d;
  transition: transform .22s ease-out;
}
.webgl-preview .hero-photo figure {
  transition: transform .28s ease, box-shadow .28s ease;
}
.webgl-preview .hero-photo-main { transform: translateZ(18px); }
.webgl-preview .hero-photo-detail { transform: translateZ(34px); }
.webgl-preview .hero-photo-badge {
  transform: translateZ(62px);
  box-shadow: 0 24px 54px -22px rgba(16, 58, 47, .44);
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -240px;
  border-radius: 50%;
  background: rgba(var(--green-rgb), .11);
  filter: blur(10px);
}
.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-copy { width: 100%; }
.hero h1 {
  max-width: none;
  margin: .16em 0 .28em;
  font-size: clamp(4.2rem, 9.5vw, 8.7rem);
  line-height: .88;
  letter-spacing: -.065em;
}
.hero-accent { color: var(--green-dark); }

.hero-bottom {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  align-items: end;
}
.hero-sub { max-width: 48ch; margin: 0; font-size: 1.1rem; color: var(--muted); }
.hero-ctas { display: flex; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin: 0; }
.hero-photo {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, .72fr);
  grid-template-rows: repeat(2, 165px);
  gap: 10px;
  margin-top: 46px;
}
.hero-photo figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--panel-2);
  box-shadow: var(--shadow-md);
}
.hero-photo-main {
  grid-column: 1;
  grid-row: 1 / -1;
  border-radius: 34px 14px 14px 34px;
}
.hero-photo-detail:nth-of-type(2) {
  grid-column: 2;
  grid-row: 1;
  border-radius: 14px 34px 14px 14px;
}
.hero-photo-detail:nth-of-type(3) {
  grid-column: 2;
  grid-row: 2;
  border-radius: 14px 14px 34px 14px;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo-main img { object-position: center 64%; }
.hero-photo-detail img { object-position: center; }
.hero-photo-badge {
  position: absolute;
  z-index: 1;
  left: 24px;
  bottom: 22px;
  max-width: 320px;
  padding: 15px 18px;
  border-radius: 17px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}
.hero-photo-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 4px;
}
.hero-photo-badge span { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .hero-bottom { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-ctas { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .hero { padding: 54px 0 48px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.2rem); line-height: .89; }
  .hero-photo {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 105px;
    gap: 8px;
    margin-top: 32px;
  }
  .hero-photo-main {
    grid-column: 1 / -1;
    grid-row: 1;
    border-radius: 24px 24px 10px 10px;
  }
  .hero-photo-detail:nth-of-type(2) {
    grid-column: 1;
    grid-row: 2;
    border-radius: 10px 10px 10px 24px;
  }
  .hero-photo-detail:nth-of-type(3) {
    grid-column: 2;
    grid-row: 2;
    border-radius: 10px 10px 24px 10px;
  }
  .hero-photo-main img { object-position: center 64%; }
  .hero-photo-badge {
    left: 16px;
    bottom: 119px;
    max-width: calc(100% - 32px);
  }
  .hero-photo-badge span { display: none; }
}

/* ===== TEST: PEŁNOEKRANOWE REALIZACJE ===== */
.gallery-preview .showcase {
  position: relative;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
  background: #071b17;
}
.gallery-preview .showcase > .wrap {
  width: 100%;
  max-width: none;
  padding: 0;
}
.gallery-preview .showcase-heading {
  position: absolute;
  z-index: 4;
  top: clamp(30px, 7vh, 76px);
  left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  right: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  color: #fff;
  pointer-events: none;
}
.gallery-preview .showcase-heading > *,
.gallery-preview .showcase-nav { pointer-events: auto; }
.gallery-preview .showcase-heading .section-eyebrow {
  color: #80e9bc;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.gallery-preview .showcase-heading h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-shadow: 0 3px 30px rgba(0,0,0,.3);
}
.gallery-preview .showcase-nav > span {
  color: rgba(255,255,255,.82);
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.gallery-preview .showcase-nav .slider-arrow {
  border-color: rgba(255,255,255,.38);
  background: rgba(245,250,247,.92);
  box-shadow: 0 12px 34px rgba(0,0,0,.2);
}
.gallery-preview .showcase-grid {
  width: 100vw;
  height: 100vh;
  gap: 0;
  padding: 0;
  overscroll-behavior-x: contain;
}
.gallery-preview .showcase-card,
.gallery-preview .showcase-card-wide {
  width: 100vw;
  height: 100vh;
  flex: 0 0 100vw;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  scroll-snap-align: center;
}
.gallery-preview .showcase-card::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,14,11,.55) 0%, transparent 34%, transparent 54%, rgba(2,14,11,.82) 100%),
    linear-gradient(90deg, rgba(2,14,11,.26), transparent 56%);
  pointer-events: none;
}
.gallery-preview .showcase-card::after {
  z-index: 1;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(2,13,10,.76));
}
.gallery-preview .showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}
.gallery-preview .showcase-card:hover img { transform: scale(1.025); }
.gallery-preview .showcase-copy {
  z-index: 2;
  left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  right: auto;
  bottom: clamp(62px, 10vh, 110px);
  max-width: min(680px, calc(100vw - 56px));
}
.gallery-preview .showcase-copy small {
  margin-bottom: 10px;
  color: #9cf2cc;
  font-size: clamp(.7rem, 1vw, .86rem);
}
.gallery-preview .showcase-copy strong {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-shadow: 0 3px 24px rgba(0,0,0,.34);
}
.gallery-preview .showcase-more {
  position: absolute;
  z-index: 4;
  right: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  bottom: clamp(62px, 10vh, 110px);
  margin: 0;
  padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(4,24,19,.48);
  color: #fff;
  backdrop-filter: blur(12px);
}

@media (max-width: 680px) {
  .gallery-preview .showcase-heading {
    top: 28px;
    left: 20px;
    right: 20px;
    align-items: flex-start;
  }
  .gallery-preview .showcase-heading h2 { max-width: 7ch; font-size: clamp(2.25rem, 12vw, 3.7rem); }
  .gallery-preview .showcase-nav { margin-top: 4px; }
  .gallery-preview .showcase-nav > span { display: none; }
  .gallery-preview .showcase-nav .slider-arrow { width: 42px; height: 42px; }
  .gallery-preview .showcase-copy {
    left: 20px;
    bottom: 74px;
    max-width: calc(100vw - 40px);
  }
  .gallery-preview .showcase-copy strong { font-size: clamp(1.75rem, 9vw, 3rem); }
  .gallery-preview .showcase-more { display: none; }
}

/* ===== 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: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.brands-heading .section-eyebrow { margin: 0 0 4px; }
.brands-heading > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}
.slider-controls,
.showcase-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--panel);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.slider-arrow:hover { border-color: var(--green); background: var(--bg); transform: translateY(-2px); }
.slider-arrow:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.brands-track {
  display: flex;
  gap: 18px;
  width: 100%;
  padding: 0 max(24px, calc((100vw - 1180px) / 2)) 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.brands-track::-webkit-scrollbar { display: none; }
.brand-card {
  position: relative;
  width: 360px;
  height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.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;
}

/* ===== 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;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.dotacja-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.dotacja-card:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 4px;
}
.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-nav { justify-content: flex-end; }
.showcase-nav > span {
  min-width: 54px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: .82rem;
  text-align: center;
}
.showcase-grid {
  display: flex;
  gap: 16px;
  padding: 0 2px 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.showcase-grid::-webkit-scrollbar { display: none; }
.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;
  width: min(40vw, 470px);
  height: 310px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}
.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-card { width: min(62vw, 410px); height: 280px; }
}
@media (max-width: 600px) {
  .showcase { padding: 54px 0; }
  .showcase-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 24px; }
  .showcase-nav { justify-content: flex-start; }
  .showcase-card,
  .showcase-card-wide {
    width: min(82vw, 315px);
    height: 260px;
  }
}

/* ===== 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; }
.label-optional { color: var(--muted); font-weight: 400; }
.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-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .88rem;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status-error {
  color: #7d1d1d;
  background: #fff0f0;
  border: 1px solid #f0b8b8;
}
.form-status-error a { color: inherit; font-weight: 700; }
.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; }
}

/* ===== INTERAKTYWNA INSTALACJA 3D ===== */
.energy-story {
  position: relative;
  height: 340vh;
  background: #dceee8;
  isolation: isolate;
}

.energy-story-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  color: #f7fffc;
  background: #112d28;
}

.energy-story-canvas,
.energy-story-fallback,
.energy-story-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.energy-story-canvas {
  display: block;
  z-index: 1;
}

.energy-story-fallback {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(9,35,30,.22), rgba(9,35,30,.05)),
    url("../assets/realizacje/fotowoltaika-dach-z-drona.webp") center / cover no-repeat;
}

.energy-story-shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5,25,21,.65) 0%, rgba(5,25,21,.12) 44%, rgba(5,25,21,.2) 100%),
    linear-gradient(180deg, rgba(6,29,24,.18), transparent 45%, rgba(4,20,17,.48));
}

.energy-story-intro,
.energy-story-card,
.energy-story-progress,
.energy-story-hint {
  position: absolute;
  z-index: 3;
}

.energy-story-intro {
  left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  top: 50%;
  width: min(560px, calc(100vw - 56px));
  transform: translateY(-50%);
  transition: opacity .2s linear, transform .2s linear;
}

.energy-story-intro .section-eyebrow { color: #7df0c1; }
.energy-story-intro h2 {
  max-width: 12ch;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.055em;
}
.energy-story-intro > p:last-child {
  max-width: 46ch;
  color: rgba(244,255,251,.78);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.energy-story-card {
  right: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  top: 50%;
  width: min(390px, calc(100vw - 56px));
  padding: 26px 28px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 24px;
  background: rgba(248,252,249,.91);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(3,20,16,.28);
  backdrop-filter: blur(16px);
  transform: translate3d(55px,-42%,0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s linear, transform .15s linear;
}
.energy-story-card.is-active {
  transform: translate3d(0,-50%,0);
  opacity: 1;
  pointer-events: auto;
}
.energy-story-step {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font: 600 .72rem/1 var(--font-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.energy-story-card h3 { margin: 0 0 10px; font-size: clamp(1.35rem, 2vw, 1.75rem); }
.energy-story-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.energy-story-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
}

.energy-story-progress {
  left: 50%;
  bottom: 28px;
  width: min(420px, 52vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  transform: translateX(-50%);
}
.energy-story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7df0c1, #f5c45a);
  transform: scaleX(0);
  transform-origin: left;
}
.energy-story-hint {
  left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  bottom: 25px;
  margin: 0;
  color: rgba(255,255,255,.72);
  font: 500 .72rem/1.3 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .energy-story { height: 310vh; }
  .energy-story-sticky { min-height: 560px; }
  .energy-story-intro { top: 34%; }
  .energy-story-intro h2 { font-size: clamp(2.35rem, 12vw, 4rem); }
  .energy-story-card {
    top: auto;
    right: 18px;
    bottom: 62px;
    width: calc(100vw - 36px);
    padding: 20px 21px;
    transform: translate3d(0,30px,0);
  }
  .energy-story-card.is-active { transform: translate3d(0,0,0); }
  .energy-story-card h3 { font-size: 1.25rem; }
  .energy-story-card p { font-size: .9rem; }
  .energy-story-hint { left: 18px; bottom: 26px; font-size: .62rem; }
  .energy-story-progress { right: 18px; left: auto; bottom: 29px; width: 34vw; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .energy-story { height: auto; }
  .energy-story-sticky { position: relative; height: 760px; }
  .energy-story-canvas { display: none; }
  .energy-story-intro { top: 30%; }
  .energy-story-card-panels,
  .energy-story-card-flow { display: none; }
  .energy-story-card-storage { opacity: 1; transform: translate3d(0,0,0); }
  .energy-story-progress,
  .energy-story-hint { display: none; }
}

@media print {
  body { background-image: none; }
}
