/* ============================================================
   Zielone Elektrociepłownie — arkusz stylów
   Paleta: głęboki teal (dominanta) + kremowa biel + akcent limonkowy
   ============================================================ */

:root {
  --teal-950: #062e2c;
  --teal-900: #0a423f;
  --teal-800: #0e5652;
  --teal-700: #147069;
  --teal-600: #17827b;
  --teal-100: #d7ece9;
  --teal-50:  #eef7f5;
  --lime:     #a8c93a;
  --lime-dark:#7f9c22;
  --cream:    #faf9f4;
  --ink:      #12211f;
  --muted:    #4c625f;
  --line:     #dde7e4;
  --radius:   14px;
  --shadow:   0 10px 30px rgba(6, 46, 44, .10);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }

/* ---------- Pasek górny + nawigacja ---------- */
.topbar {
  background: var(--teal-950);
  color: #cfe3e0;
  font-size: 13.5px;
  padding: 7px 0;
}
.topbar .container { display: flex; gap: 28px; justify-content: flex-end; flex-wrap: wrap; }
.topbar a { color: #cfe3e0; text-decoration: none; }
.topbar a:hover { color: var(--lime); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 244, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { height: 52px; width: auto; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--teal-800); line-height: 1.1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--font-body); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.main-nav { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 15.5px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--teal-100); color: var(--teal-800); }
.main-nav a.active { background: var(--teal-800); color: #fff; }
.main-nav a.cta { background: var(--lime); color: var(--teal-950); }
.main-nav a.cta:hover { background: var(--lime-dark); color: #fff; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--teal-800); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(128deg, var(--teal-950) 0%, var(--teal-800) 55%, var(--teal-600) 100%);
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(168, 201, 58, .18), transparent 60%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgba(255,255,255,.035) 46px 48px);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-block: 96px 110px; }
.hero .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 17ch; margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--lime); }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 56ch; color: #d8e8e5; margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15.5px;
  padding: 14px 30px; border-radius: 999px; transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: var(--teal-950); }
.btn-lime:hover { background: #bcd94e; }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-teal { background: var(--teal-800); color: #fff; }
.btn-teal:hover { background: var(--teal-700); }

/* Pas hero podstron */
.page-hero {
  background: linear-gradient(120deg, var(--teal-950), var(--teal-700));
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(168, 201, 58, .16), transparent 65%);
}
.page-hero .container { position: relative; z-index: 1; padding-block: 66px 72px; }
.page-hero .kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--lime); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); }
.page-hero p { max-width: 62ch; margin-top: 14px; color: #d8e8e5; }

/* ---------- Pas statystyk ---------- */
.stats {
  background: var(--teal-950); color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}
.stats .container {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding-block: 42px;
}
.stat b { font-family: var(--font-display); font-size: clamp(30px, 3vw, 42px); font-weight: 600; color: var(--lime); display: block; line-height: 1; }
.stat span { font-size: 14px; color: #b8d0cc; display: block; margin-top: 8px; max-width: 24ch; }

/* ---------- Sekcje ---------- */
.section { padding-block: 84px; }
.section.tinted { background: var(--teal-50); }
.section.dark { background: var(--teal-900); color: #fff; }

.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head .kicker { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-600); display: block; margin-bottom: 12px; }
.section.dark .section-head .kicker { color: var(--lime); }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.section-head p { color: var(--muted); }
.section.dark .section-head p { color: #c4dbd7; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: 0 2px 10px rgba(6,46,44,.04);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-100); color: var(--teal-800);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 10px; color: var(--teal-900); }
.card p { font-size: 15.5px; color: var(--muted); }
.card ul { margin: 12px 0 0 18px; font-size: 15px; color: var(--muted); }
.card ul li { margin-bottom: 7px; }
.card ul li::marker { color: var(--lime-dark); }

/* ---------- Sekcja dwukolumnowa ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 18px; }
.split p { color: var(--muted); margin-bottom: 14px; }
.section.dark .split p { color: #c4dbd7; }
.split figure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  background: #fff;
}
.split figure figcaption { font-size: 13px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--line); }

.checklist { list-style: none; margin-top: 20px; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 13px; color: var(--ink); }
.section.dark .checklist li { color: #e4f0ee; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 23px; height: 23px; border-radius: 50%;
  background: var(--lime); color: var(--teal-950);
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Oś czasu ---------- */
.timeline { list-style: none; position: relative; margin-top: 12px; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 2px; background: var(--teal-100); }
.timeline li { position: relative; padding: 0 0 30px 56px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 0; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-800); color: #fff; font-weight: 700; font-size: 14px;
  display: grid; place-items: center; font-family: var(--font-body);
}
.timeline h3 { font-size: 18px; color: var(--teal-900); margin-bottom: 5px; }
.timeline p { font-size: 15px; color: var(--muted); }

/* ---------- Wizytówka osoby ---------- */
.person {
  display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: end;
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  border-radius: 20px; overflow: hidden; color: #fff;
}
.person .photo { align-self: end; }
.person .photo img { width: 100%; height: auto; }
.person .bio { padding: 44px 44px 44px 0; }
.person .bio .kicker { color: var(--lime); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.person .bio h3 { font-size: 30px; margin: 8px 0 4px; }
.person .bio .role { color: #bcd8d4; font-weight: 600; margin-bottom: 18px; }
.person .bio p { color: #d8e8e5; font-size: 15.5px; }
.person .contact-lines { margin-top: 22px; display: grid; gap: 10px; }
.person .contact-lines a { color: #fff; text-decoration: none; font-weight: 600; }
.person .contact-lines a:hover { color: var(--lime); }
.person.no-photo { grid-template-columns: 1fr; }
.person.no-photo .bio { padding: 44px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: 0 2px 10px rgba(6,46,44,.04); }
.contact-card h3 { color: var(--teal-900); font-size: 21px; margin-bottom: 18px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-100); color: var(--teal-800); display: grid; place-items: center; }
.contact-row .icon svg { width: 21px; height: 21px; }
.contact-row b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.contact-row a, .contact-row span.val { font-size: 17px; color: var(--ink); text-decoration: none; font-weight: 600; }
.contact-row a:hover { color: var(--teal-600); }

form.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: 0 2px 10px rgba(6,46,44,.04); }
form.contact-form h3 { color: var(--teal-900); font-size: 21px; margin-bottom: 6px; }
form.contact-form .hint { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--teal-900); }
label.field input, label.field textarea {
  width: 100%; margin-top: 7px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15.5px; color: var(--ink); background: var(--cream);
  transition: border-color .2s;
}
label.field input:focus, label.field textarea:focus { outline: none; border-color: var(--teal-600); background: #fff; }
label.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Pas CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--teal-800), var(--teal-600)); color: #fff; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 52px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); max-width: 24ch; }
.cta-band p { color: #d8e8e5; margin-top: 8px; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--teal-950); color: #b8d0cc; font-size: 14.5px; }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-block: 56px 40px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b8d0cc; text-decoration: none; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: var(--lime); }
.site-footer .brand-foot { font-family: var(--font-display); color: #fff; font-size: 22px; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); padding-block: 18px; font-size: 13px; color: #7fa19c; }
.site-footer .legal .container { display: flex; justify-content: space-between; padding-block: 0; gap: 12px; flex-wrap: wrap; }

/* ---------- Animacja wejścia ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero .kicker, .hero h1, .hero p.lead, .hero-actions { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; }
.hero h1 { animation-delay: .08s; }
.hero p.lead { animation-delay: .16s; }
.hero-actions { animation-delay: .24s; }

/* ---------- Responsywność ---------- */
@media (max-width: 980px) {
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 34px; }
  .stats .container { grid-template-columns: 1fr 1fr; }
  .person { grid-template-columns: 1fr; }
  .person .photo { order: 2; max-width: 380px; margin-inline: auto; }
  .person .bio { padding: 40px 34px 8px; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 14px 4vw 20px; gap: 4px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { border-radius: 10px; }
}

@media (max-width: 720px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .site-footer .container { grid-template-columns: 1fr; }
}
