/* ===========================================
   Fotowoltaika i magazyny energii — style page-specific.
   Komponenty współdzielone podstron (hero, eyebrow, section-head, proc-timeline,
   faq, cta-benefits, breadcrumbs) są w subpages.css; design system + formularze
   w santier.css. Komponenty sekcji powtarzalnych (heat/offer/price/why) NIE są
   w subpages.css (siedzą w klimatyzacja.css, który tu się nie ładuje) — dlatego
   definiujemy je tu, w wariantach dopasowanych do tła tej strony.
   Tokeny: --navy, --navy-deep, --accent, --gray-*, --white, --gold.
   =========================================== */

/* --- 2. Dlaczego dziś PV + magazyn (split na JASNYM tle) --- */
.heat-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.heat-left h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -0.6px; color: var(--navy-deep, #0a1f38); margin-bottom: 16px; }
.heat-left .lead { font-size: 17px; line-height: 1.62; color: var(--gray-700, #3A4252); margin-bottom: 20px; max-width: 540px; }
.heat-note { font-size: 14px; line-height: 1.55; color: var(--gray-700, #3A4252); padding: 14px 18px; border-left: 3px solid var(--accent, #E84E1B); background: var(--gray-50, #f5f7fa); max-width: 540px; }
.heat-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; background: var(--gray-200, #e6e9ef); border: 1px solid var(--gray-200, #e6e9ef); }
.heat-points li { background: var(--white, #fff); padding: 22px 24px; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.heat-points .pt-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(232, 78, 27, 0.12); display: inline-flex; align-items: center; justify-content: center; color: var(--accent, #E84E1B); }
.heat-points .pt-icon svg { width: 22px; height: 22px; }
.heat-points strong { display: block; font-size: 15.5px; font-weight: 700; color: var(--navy-deep, #0a1f38); margin-bottom: 4px; }
.heat-points span { font-size: 14px; line-height: 1.55; color: var(--gray-700, #3A4252); }

/* --- 3. Diagram przepływu energii (łącznik liniowy jak .proc-timeline — czytelny) --- */
.energy-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.energy-flow .ef-node { position: relative; text-align: center; padding-top: 4px; }
.energy-flow .ef-icon { position: relative; z-index: 1; display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 999px; background: var(--navy, #0E2A4A); color: #fff; box-shadow: 0 0 0 6px var(--white, #fff); }
.energy-flow .ef-icon svg { width: 28px; height: 28px; }
.energy-flow .ef-node--grid .ef-icon { background: var(--accent, #E84E1B); }
.energy-flow h3 { margin: 14px 0 5px; font-size: 16px; color: var(--navy-deep, #0a1f38); }
.energy-flow p { margin: 0; color: #5a6677; font-size: 14px; line-height: 1.5; }
/* linia łącząca biegnie za węzłami (ring box-shadow „przebija" ją w okręgu) */
.energy-flow .ef-node::after { content: ""; position: absolute; top: 36px; left: calc(50% + 38px); width: calc(100% - 76px); height: 2px; background: var(--accent, #E84E1B); opacity: 0.45; z-index: 0; }
.energy-flow .ef-node:last-child::after { display: none; }
@media (max-width: 760px) {
  .energy-flow { grid-template-columns: 1fr; gap: 26px; }
  .energy-flow .ef-node::after { display: none; }
}

/* --- 4. Blok magazynu energii --- */
.mag-section { background: var(--white, #fff); }
.mag-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.mag-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.mag-content .eyebrow { margin-bottom: 14px; }
.mag-content h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.6px; color: var(--navy-deep, #0a1f38); margin: 0 0 16px; }
.mag-lead { font-size: 16px; line-height: 1.65; color: var(--gray-700, #3A4252); margin: 0 0 24px; }
.mag-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 24px; }
.mag-spec { background: var(--gray-50, #f5f7fa); border-left: 3px solid var(--accent, #E84E1B); padding: 14px 16px; }
.mag-spec .ms-val { display: block; font-size: 20px; font-weight: 700; color: var(--navy-deep, #0a1f38); }
.mag-spec .ms-lab { display: block; font-size: 13px; color: #5a6677; margin-top: 2px; }
.mag-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mag-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--gray-700, #3A4252); }
.mag-points .chk { flex: 0 0 auto; display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border-radius: 999px; background: rgba(232, 78, 27, 0.12); color: var(--accent, #E84E1B); margin-top: 1px; }
.mag-points .chk svg { width: 13px; height: 13px; }

/* --- 5. Co oferujemy (siatka kart, jasne tło) --- */
.offer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer-card { background: var(--white, #fff); border: 1px solid var(--gray-200, #e6e9ef); padding: 32px 28px; display: flex; flex-direction: column; gap: 14px; transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
.offer-card:hover { border-color: var(--gray-300, #d4d9e2); box-shadow: 0 16px 36px -24px rgba(10, 31, 56, 0.4); transform: translateY(-3px); }
.offer-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--navy-deep, #0a1f38); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.offer-icon svg { width: 24px; height: 24px; }
.offer-card h3 { font-size: 18px; font-weight: 700; color: var(--navy-deep, #0a1f38); letter-spacing: -0.2px; }
.offer-card p { font-size: 14.5px; line-height: 1.6; color: var(--gray-700, #3A4252); }

/* --- 6. Od czego zależy dobór i cena (zdjęcie + lista) --- */
.price-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.price-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 0; }
.price-list { margin-top: 4px; list-style: none; padding: 0; }
.price-row { display: grid; grid-template-columns: 38px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--gray-200, #e6e9ef); }
.price-row:first-child { padding-top: 0; }
.price-row:last-child { border-bottom: 0; padding-bottom: 0; }
.price-row .pn { font-size: 15px; font-weight: 700; color: var(--accent, #E84E1B); padding-top: 2px; font-feature-settings: "tnum"; }
.price-row h4 { font-size: 16.5px; font-weight: 700; color: var(--navy-deep, #0a1f38); margin-bottom: 5px; letter-spacing: -0.2px; }
.price-row p { font-size: 14px; line-height: 1.55; color: var(--gray-700, #3A4252); }
.price-cta { margin-top: 32px; }

/* --- 8. Panel dotacji (granat + kontrolowany akcent, bez full-bleed orange) --- */
.fin-section { background: var(--navy-deep, #0a1f38); }
.fin-panel { color: #fff; }
.fin-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.fin-head .eyebrow { justify-content: center; }
.fin-head .eyebrow span { color: #fff; }
.fin-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.6px; margin: 14px 0 14px; }
.fin-head p { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); margin: 0; }
.fin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fin-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 0; padding: 22px; }
.fin-card h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.fin-card p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); }

/* --- 9. Dlaczego Santier (zdjęcie + lista powodów) --- */
.why-split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: stretch; }
.why-reasons { display: flex; flex-direction: column; }
.why-reason { display: grid; grid-template-columns: 50px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--gray-200, #e6e9ef); }
.why-reason:first-child { padding-top: 0; }
.why-reason:last-child { border-bottom: 0; padding-bottom: 0; }
.why-reason .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--navy-deep, #0a1f38); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.why-reason .ic svg { width: 24px; height: 24px; }
.why-reason h3 { font-size: 17px; font-weight: 700; color: var(--navy-deep, #0a1f38); margin-bottom: 5px; letter-spacing: -0.2px; }
.why-reason p { font-size: 14px; line-height: 1.58; color: var(--gray-700, #3A4252); }
.why-media { position: relative; overflow: hidden; min-height: 400px; border-radius: 0; }
.why-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.why-rating { display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; margin-top: 32px; background: var(--white, #fff); border: 1px solid var(--gray-200, #e6e9ef); border-radius: 10px; padding: 14px 20px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.why-rating:hover { border-color: var(--gray-300, #d4d9e2); box-shadow: 0 14px 34px -22px rgba(10, 31, 56, 0.4); }
.why-rating .wr-num { font-size: 30px; font-weight: 700; color: var(--navy-deep, #0a1f38); line-height: 1; letter-spacing: -1px; }
.why-rating .wr-meta { display: flex; flex-direction: column; gap: 4px; }
.why-rating .wr-meta .stars { color: var(--gold, #f5a623); font-size: 14px; letter-spacing: 1.5px; line-height: 1; }
.why-rating .wr-sub { font-size: 13px; color: var(--gray-700, #3A4252); }

/* --- FAQ: odstęp pod intro, bo po akapicie jest przycisk „Masz inne pytanie?"
   (subpages.css ustawia .faq-intro p { margin:0 }) --- */
.faq-intro p { margin-bottom: 24px; }


/* --- Responsywność --- */
@media (max-width: 1024px) {
  .heat-grid { grid-template-columns: 1fr; gap: 40px; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .price-split { grid-template-columns: 1fr; gap: 36px; }
  .why-split { grid-template-columns: 1fr; gap: 36px; }
  .why-media { max-width: 460px; min-height: 280px; order: -1; }
  .fin-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .mag-split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; }
  .fin-grid { grid-template-columns: 1fr; }
}
