
/* =========================
   Design Tokens
   ========================= */
:root {
  /* Kolory - głęboki granatowy, lazurowy, ciepły akcent */
  --ink: #0a1929;
  --ink-2: #15293f;
  --navy: #1c3d5a;
  --azure: #4a9fd6;
  --azure-bright: #2e6591;
  --azure-light: #4a9fd6;
  --water: #e0f7fa;
  --sand: #fef9f3;
  --cream: #faf6ef;
  --accent: #f59e0b;     /* ciepły bursztyn - akcent */
  --accent-dark: #b45309;
  --success: #10b981;
  --danger: #dc2626;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-400: #94a3b8;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --shadow-sm: 0 1px 3px rgba(10,25,41,.08), 0 1px 2px rgba(10,25,41,.04);
  --shadow: 0 10px 30px rgba(10,25,41,.08), 0 2px 6px rgba(10,25,41,.04);
  --shadow-lg: 0 30px 60px rgba(10,25,41,.15), 0 10px 20px rgba(10,25,41,.08);

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================
   Top Bar - alarmowy
   ========================= */
.topbar {
  background: var(--ink);
  color: #cbd5e1;
  font-size: 13px;
  padding: 10px 0;
  position: relative;
  z-index: 40;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.topbar-left span { display: inline-flex; gap: 8px; align-items: center; }
.topbar-left svg { width: 14px; height: 14px; opacity: .7; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.emergency-pill {
  background: var(--danger);
  color: white;
  padding: 4px 12px 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: pulse 2.4s infinite;
}
.emergency-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: white;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); }
  50%      { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
}

/* =========================
   Navigation
   ========================= */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--azure) 0%, var(--navy) 100%);
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 8px 20px rgba(8,145,178,.25);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content:""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 60%);
}
.brand-mark svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.brand-text small {
  font-size: 11px;
  color: var(--gray-600);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}
.nav-menu a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-700);
  transition: all .2s var(--ease);
  position: relative;
}
.nav-menu a:hover { color: var(--azure); background: var(--water); }

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  transition: all .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
}
.btn-primary:hover {
  background: var(--azure);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(8,145,178,.3);
}
.btn-ghost {
  color: var(--ink);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; }

.burger { display: none; padding: 10px; border-radius: 10px; }
.burger svg { width: 26px; height: 26px; }

/* =========================
   Hero
   ========================= */
.hero {
  position: relative;
  padding: 100px 0 140px;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(103,232,249,.25), transparent 60%),
    radial-gradient(900px 400px at 0% 100%, rgba(8,145,178,.12), transparent 60%),
    linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
  overflow: hidden;
}

/* Dekoracyjna fala */
.hero::after {
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,48 C240,80 480,80 720,48 C960,16 1200,16 1440,48 L1440,80 L0,80 Z'/%3E%3C/svg%3E") center/cover no-repeat;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow-badge {
  background: var(--success);
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .98;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144;
}
.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--azure);
  position: relative;
}
.hero h1 em::after {
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 8px;
  background: var(--azure-light);
  z-index: -1;
  opacity: .4;
  border-radius: 4px;
}

.hero p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--gray-700);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-hero-primary {
  padding: 18px 32px;
  font-size: 16px;
  background: var(--ink);
  color: white;
  border-radius: 14px;
}
.btn-hero-primary:hover {
  background: var(--azure);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(8,145,178,.35);
}
.btn-hero-secondary {
  padding: 18px 28px;
  font-size: 16px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  border-radius: 14px;
}
.btn-hero-secondary:hover { background: var(--ink); color: white; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
  max-width: 560px;
}
.hero-stat strong {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-stat span {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 6px;
  display: block;
}

/* Hero visual - kolaż */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1.05;
}

.hero-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: white;
}
.hero-card img {
  width: 100%; height: 100%; object-fit: cover;
}

.hero-card-main {
  top: 0; right: 0;
  width: 82%; height: 68%;
  border-radius: 40px;
  transform: rotate(2deg);
  transition: transform .5s var(--ease);
}
.hero-card-main:hover { transform: rotate(0deg); }

.hero-card-sec {
  bottom: 4%; left: 0;
  width: 58%; height: 42%;
  border-radius: 32px;
  transform: rotate(-3deg);
  transition: transform .5s var(--ease);
}
.hero-card-sec:hover { transform: rotate(0deg); }

/* Live badge info */
.hero-float {
  position: absolute;
  background: white;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: center;
  animation: float 5s ease-in-out infinite;
}
.hero-float-1 {
  top: 5%; left: -4%;
  z-index: 3;
}
.hero-float-2 {
  bottom: 8%; right: -2%;
  z-index: 3;
  animation-delay: -2.5s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-float-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
}
.hero-float-icon.green { background: rgba(16,185,129,.12); color: var(--success); }
.hero-float-icon.blue  { background: rgba(8,145,178,.12); color: var(--azure); }
.hero-float-icon svg { width: 22px; height: 22px; }
.hero-float-text strong { font-size: 14px; display: block; }
.hero-float-text span { font-size: 12px; color: var(--gray-600); }

.hero-water-drop {
  position: absolute;
  width: 180px; height: 180px;
  bottom: -40px; right: 40%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255,255,255,.9), var(--azure-light) 60%, var(--azure) 100%);
  filter: blur(40px);
  opacity: .35;
  z-index: 0;
}

/* =========================
   Quick Actions (karty)
   ========================= */
.quick {
  padding: 80px 0 40px;
  background: white;
  position: relative;
}
.quick-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 20px;
}
.section-label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--azure);
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.section-label::before {
  content:""; width: 30px; height: 1px; background: var(--azure);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--ink);
  max-width: 700px;
}
.section-title em {
  font-style: italic;
  color: var(--azure);
  font-weight: 300;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.quick-card {
  padding: 28px 24px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: white;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.quick-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.quick-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--azure), var(--azure-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.quick-card:hover::before { transform: scaleX(1); }

.quick-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--water);
  color: var(--azure);
  display: grid; place-items: center;
}
.quick-icon svg { width: 26px; height: 26px; }

.quick-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--ink);
}
.quick-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  flex: 1;
}
.quick-card-arrow {
  margin-top: auto;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .25s var(--ease);
}
.quick-card:hover .quick-card-arrow { gap: 12px; color: var(--azure); }

/* =========================
   Water Quality status
   ========================= */
.status {
  padding: 80px 0;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}
.status::before {
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 10% 100%, rgba(8,145,178,.2), transparent 60%),
    radial-gradient(500px 400px at 90% 0%, rgba(103,232,249,.3), transparent 60%);
  pointer-events: none;
}
.status-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  position: relative;
  z-index: 1;
  align-items: center;
}
.status-panel {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.status-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 24px;
}
.status-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(16,185,129,.15);
  display: grid; place-items: center;
  color: var(--success);
  position: relative;
}
.status-dot::before {
  content:"";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--success);
  animation: ping 2.2s var(--ease) infinite;
  opacity: 0;
}
@keyframes ping {
  0% { transform: scale(.95); opacity: .8; }
  100% { transform: scale(1.3); opacity: 0; }
}
.status-dot svg { width: 24px; height: 24px; }
.status-top h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
}
.status-top span {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
}

.params {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.param {
  padding: 18px;
  border-radius: 14px;
  background: var(--gray-50);
}
.param-top {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--gray-600);
  margin-bottom: 10px;
}
.param-top strong { color: var(--ink); }
.param-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.param-unit { font-size: 14px; color: var(--gray-600); }
.param-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}
.param-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--success), #34d399);
  border-radius: 2px;
}
.param-range {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 6px;
}

.status-actions {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}
.status-action {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--azure);
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--water);
}
.status-action:hover { background: var(--azure); color: white; }

.status-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.status-text p {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* =========================
   Latest News
   ========================= */
.news { padding: 100px 0; }

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
}

.news-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--gray-200);
  transition: all .3s var(--ease);
  position: relative;
}
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.news-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--azure));
}
.news-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.news-card:hover .news-card-image img { transform: scale(1.05); }

.news-card-big { grid-row: span 2; }
.news-card-big .news-card-image { aspect-ratio: 4/3; }

.news-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: rgba(255,255,255,.95);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.news-tag.urgent { background: var(--danger); color: white; }
.news-tag.info   { background: var(--azure); color: white; }
.news-tag.invest { background: var(--accent); color: white; }

.news-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.news-date {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-date::before {
  content:""; width: 4px; height: 4px; background: var(--azure); border-radius: 50%;
}
.news-body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  color: var(--ink);
}
.news-card-big .news-body h3 { font-size: 26px; }
.news-body p {
  font-size: 14.5px;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: 18px;
  flex: 1;
}
.news-read {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--azure);
  display: inline-flex;
  gap: 6px;
  align-items: center;
  transition: gap .25s var(--ease);
}
.news-card:hover .news-read { gap: 12px; }

/* =========================
   Investments
   ========================= */
.invest {
  padding: 100px 0;
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.invest::before {
  content:"";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 10%, rgba(8,145,178,.25), transparent 50%),
    radial-gradient(600px 400px at 90% 90%, rgba(245,158,11,.15), transparent 60%);
  pointer-events: none;
}
.invest .section-label { color: var(--azure-light); }
.invest .section-label::before { background: var(--azure-light); }
.invest .section-title { color: white; }
.invest .section-title em { color: var(--azure-light); }

.invest-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 54px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.invest-head-right {
  max-width: 420px;
  color: #94a3b8;
}

.invest-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.invest-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.invest-main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.invest-main::after {
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,25,41,.9) 100%);
}
.invest-main-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px;
  z-index: 1;
}
.invest-main-content .badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: 6px;
  margin-bottom: 14px;
}
.invest-main-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.invest-main-content p {
  color: #cbd5e1;
  max-width: 500px;
  font-size: 15px;
}

.invest-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.invest-item {
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  transition: all .3s var(--ease);
  display: flex;
  gap: 20px;
  align-items: start;
}
.invest-item:hover {
  border-color: var(--azure-light);
  background: rgba(8,145,178,.08);
  transform: translateX(4px);
}
.invest-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 40px;
  color: var(--azure-light);
  line-height: 1;
  letter-spacing: -.02em;
  flex-shrink: 0;
  min-width: 70px;
}
.invest-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  margin-bottom: 6px;
  letter-spacing: -.005em;
}
.invest-content p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 10px;
}
.invest-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--azure-light);
  font-weight: 600;
}
.invest-progress-bar {
  width: 80px; height: 4px;
  background: rgba(255,255,255,.15);
  border-radius: 2px;
  overflow: hidden;
}
.invest-progress-bar i {
  display: block; height: 100%;
  background: var(--azure-light);
}

/* =========================
   Education / Kropelka
   ========================= */
.edu {
  padding: 100px 0;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.edu-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.edu-visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 480px;
}
.edu-blob {
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 62% 38% / 52% 38% 62% 48%;
  background: linear-gradient(135deg, var(--azure) 0%, var(--navy) 100%);
  animation: blob 18s ease-in-out infinite;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 62% 38% / 52% 38% 62% 48%; }
  33% { border-radius: 62% 38% 46% 54% / 38% 62% 48% 52%; }
  66% { border-radius: 38% 62% 54% 46% / 62% 48% 38% 52%; }
}
.edu-blob-2 {
  position: absolute;
  inset: -8%;
  border-radius: 54% 46% 38% 62% / 48% 62% 38% 52%;
  background: linear-gradient(135deg, var(--azure-light) 0%, var(--azure) 100%);
  opacity: .15;
  animation: blob 22s ease-in-out infinite reverse;
}
.edu-image {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.edu-image img { width: 100%; height: 100%; object-fit: cover; }

.edu-float-badge {
  position: absolute;
  right: -8%;
  top: 12%;
  background: white;
  padding: 16px 22px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 4s ease-in-out infinite;
}
.edu-float-badge .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
}
.edu-float-badge strong { display: block; font-size: 15px; }
.edu-float-badge span { display: block; font-size: 12px; color: var(--gray-600); font-weight: 400; }

.edu-text h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.edu-text h2 em { font-style: italic; color: var(--azure); font-weight: 300; }
.edu-text > p {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 540px;
}

.edu-features {
  display: grid;
  gap: 16px;
  margin-bottom: 36px;
}
.edu-feat {
  display: flex;
  gap: 16px;
  align-items: start;
}
.edu-feat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: white;
  color: var(--azure);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}
.edu-feat-icon svg { width: 20px; height: 20px; }
.edu-feat strong {
  font-weight: 600;
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}
.edu-feat span {
  font-size: 14px;
  color: var(--gray-600);
}

/* =========================
   eBOK + Contact
   ========================= */
.ebok {
  padding: 80px 0;
  background: white;
}
.ebok-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  border-radius: var(--radius-lg);
  padding: 64px;
  color: white;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.ebok-card::before {
  content:"";
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,.4), transparent 60%);
  pointer-events: none;
}
.ebok-card::after {
  content:"";
  position: absolute;
  bottom: -80px; left: 40%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103,232,249,.2), transparent 60%);
  pointer-events: none;
}

.ebok-content { position: relative; z-index: 1; }
.ebok-content h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.ebok-content h2 em { font-style: italic; color: var(--azure-light); font-weight: 300; }
.ebok-content p {
  font-size: 17px;
  color: #cbd5e1;
  margin-bottom: 32px;
  max-width: 500px;
}
.ebok-features {
  display: grid;
  gap: 12px;
  margin-bottom: 36px;
}
.ebok-features li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e2e8f0;
  font-size: 15px;
}
.ebok-features svg { width: 20px; height: 20px; color: var(--azure-light); flex-shrink: 0; }

.ebok-btn {
  display: inline-flex;
  padding: 18px 32px;
  background: white;
  color: var(--ink);
  border-radius: 14px;
  font-weight: 700;
  font-size: 16px;
  gap: 10px;
  align-items: center;
  transition: all .25s var(--ease);
}
.ebok-btn:hover {
  background: var(--azure-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(103,232,249,.3);
}

.ebok-visual {
  position: relative;
  z-index: 1;
}
.ebok-mockup {
  background: white;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  color: var(--ink);
  transform: rotate(3deg);
  transition: transform .5s var(--ease);
}
.ebok-mockup:hover { transform: rotate(0); }
.ebok-mockup-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
}
.ebok-mockup-top .avatar {
  width: 36px; height: 36px;
  background: var(--water);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--azure);
  font-weight: 700;
  font-size: 14px;
}
.ebok-mockup-top .dots { display: flex; gap: 4px; }
.ebok-mockup-top .dots span {
  width: 4px; height: 4px; background: var(--gray-400); border-radius: 50%;
}
.ebok-mockup-stat {
  padding: 16px;
  background: var(--gray-50);
  border-radius: 12px;
  margin-bottom: 12px;
}
.ebok-mockup-stat .label {
  font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: 6px;
}
.ebok-mockup-stat .value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}
.ebok-mockup-stat .value small { font-size: 13px; color: var(--gray-600); }
.ebok-mockup-chart {
  display: flex; gap: 4px; align-items: end;
  height: 54px;
  margin-top: 10px;
}
.ebok-mockup-chart i {
  flex: 1;
  background: linear-gradient(180deg, var(--azure-bright), var(--azure));
  border-radius: 3px 3px 0 0;
  opacity: .3;
}
.ebok-mockup-chart i:nth-child(1) { height: 40%; }
.ebok-mockup-chart i:nth-child(2) { height: 55%; }
.ebok-mockup-chart i:nth-child(3) { height: 45%; }
.ebok-mockup-chart i:nth-child(4) { height: 70%; }
.ebok-mockup-chart i:nth-child(5) { height: 60%; }
.ebok-mockup-chart i:nth-child(6) { height: 85%; opacity: 1; }
.ebok-mockup-chart i:nth-child(7) { height: 75%; opacity: .6; }

.ebok-mockup-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-100);
}
.ebok-mockup-row:last-child { border-bottom: none; }
.ebok-mockup-row .status {
  padding: 3px 10px;
  background: rgba(16,185,129,.12);
  color: var(--success);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

/* =========================
   Contact strip
   ========================= */
.contact {
  padding: 80px 0;
  background: var(--sand);
  border-top: 1px solid rgba(15,23,42,.06);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  padding: 32px 28px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all .3s var(--ease);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.contact-card.emergency {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}
.contact-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--water);
  color: var(--azure);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.contact-card.emergency .contact-card-icon {
  background: rgba(255,255,255,.2);
  color: white;
}
.contact-card h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  margin-bottom: 6px;
  letter-spacing: -.005em;
}
.contact-card small {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  display: block;
  margin-bottom: 14px;
}
.contact-card.emergency small { color: rgba(255,255,255,.8); }
.contact-info {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--ink);
  line-height: 1.2;
}
.contact-card.emergency .contact-info { color: white; }

/* =========================
   Footer
   ========================= */
footer {
  background: var(--ink);
  color: #cbd5e1;
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: white; margin-bottom: 20px; }
.footer-brand .brand-text strong { color: white; }
.footer-brand .brand-text small { color: #94a3b8; }
.footer-brand p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 24px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.footer-socials a:hover { background: var(--azure); transform: translateY(-3px); }
.footer-socials svg { width: 18px; height: 18px; }

.footer-col h5 {
  font-family: var(--font-display);
  font-weight: 500;
  color: white;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: -.005em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: #94a3b8;
  transition: color .2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  color: #64748b;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: white; }

.footer-partners {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-partners small {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: 12px;
}
.partner-logo {
  padding: 8px 18px;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: .03em;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .burger { display: grid; place-items: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { max-width: 500px; margin: 0 auto; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-big { grid-column: span 2; grid-row: auto; }
  .news-card-big .news-card-image { aspect-ratio: 16/9; }
  .invest-grid { grid-template-columns: 1fr; }
  .status-inner { grid-template-columns: 1fr; gap: 40px; }
  .edu-inner { grid-template-columns: 1fr; gap: 50px; }
  .edu-visual { margin: 0 auto; }
  .ebok-card { grid-template-columns: 1fr; padding: 44px 32px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar-left { font-size: 12px; }
  .topbar-left span:nth-child(2) { display: none; }
  .hero { padding: 50px 0 80px; }
  .hero-stats { grid-template-columns: repeat(3,1fr); gap: 12px; }
  .hero-stat strong { font-size: 28px; }
  .hero-float { padding: 12px 14px; }
  .hero-float-text strong { font-size: 12px; }
  .hero-float-text span { font-size: 11px; }
  .hero-float-icon { width: 36px; height: 36px; }
  .quick-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card-big { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .ebok-card { padding: 36px 24px; }
  .invest::before, .status::before { opacity: .6; }
  .section-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .nav-cta .btn-ghost { display: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================
   SUBPAGE STYLES
   ========================= */

/* Subpage Hero — realistyczna imitacja wody */
.subpage-hero {
  position: relative;
  background: linear-gradient(175deg, #03111f 0%, #062340 25%, #093d6a 55%, #0d5284 78%, #116298 100%);
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}
/* Kaustyczne refleksy świetlne — migoczące plamki jak światło przechodzące przez toń */
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: -30px;
  background:
    radial-gradient(ellipse 55% 35% at 18% 38%, rgba(30,150,255,.32) 0%, transparent 70%),
    radial-gradient(ellipse 40% 25% at 72% 18%, rgba(0,185,245,.24) 0%, transparent 65%),
    radial-gradient(ellipse 65% 40% at 48% 72%, rgba(15,130,230,.18) 0%, transparent 70%),
    radial-gradient(ellipse 30% 20% at 88% 62%, rgba(60,200,255,.26) 0%, transparent 60%),
    radial-gradient(ellipse 50% 30% at  8% 62%, rgba(40,165,240,.20) 0%, transparent 65%),
    radial-gradient(ellipse 35% 22% at 55% 10%, rgba(90,210,255,.22) 0%, transparent 60%);
  filter: blur(28px);
  animation: waterShimmer 5s ease-in-out infinite;
  pointer-events: none;
}
.subpage-hero::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--white));
  pointer-events: none;
}
@keyframes waterShimmer {
  0%   { transform: translate(  0%,   0%) scale(1);    opacity: 1;   }
  20%  { transform: translate(  2%,  -1%) scale(1.04); opacity: .88; }
  40%  { transform: translate( -1%,   2%) scale(.97);  opacity: .94; }
  60%  { transform: translate(  3%,   1%) scale(1.03); opacity: .86; }
  80%  { transform: translate( -2%,  -2%) scale(1.05); opacity: .92; }
  100% { transform: translate(  0%,   0%) scale(1);    opacity: 1;   }
}
.subpage-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.subpage-hero .section-label {
  color: rgba(255,255,255,.7);
  margin-bottom: 18px;
}
.subpage-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin-bottom: 24px;
}
.subpage-hero h1 em {
  font-style: italic;
  color: var(--azure-light);
  font-weight: 300;
}
.subpage-hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  max-width: 680px;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 30px;
  color: rgba(255,255,255,.6);
}
.breadcrumbs a {
  color: rgba(255,255,255,.75);
  transition: color .2s var(--ease);
}
.breadcrumbs a:hover { color: white; }
.breadcrumbs .sep { opacity: .4; }
.breadcrumbs .current { color: white; }

/* Subpage content */
.subpage-content {
  padding: 80px 0;
  background: var(--white);
}
.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 980px) {
  .content-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Side navigation (sticky) */
.side-nav {
  position: sticky;
  top: 110px;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 26px;
}
.side-nav h4 {
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gray-600);
  margin-bottom: 14px;
  font-weight: 600;
}
.side-nav ul { list-style: none; }
.side-nav li { margin-bottom: 2px; }
.side-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--gray-700);
  font-weight: 500;
  transition: all .2s var(--ease);
  border-left: 3px solid transparent;
}
.side-nav a:hover { background: white; color: var(--azure); }
.side-nav a.active {
  background: white;
  color: var(--azure);
  border-left-color: var(--azure);
  font-weight: 600;
}

/* Content prose */
.prose {
  font-size: 17px;
  line-height: 1.75;
  color: var(--gray-700);
  max-width: 780px;
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 48px 0 18px;
  scroll-margin-top: 100px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
  margin: 36px 0 14px;
  scroll-margin-top: 100px;
}
.prose p { margin-bottom: 18px; }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--azure); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--azure-bright); }
.prose blockquote {
  border-left: 4px solid var(--azure);
  padding: 8px 0 8px 22px;
  margin: 26px 0;
  font-style: italic;
  color: var(--gray-700);
  background: var(--water);
  border-radius: 0 12px 12px 0;
}

/* Info Cards / Highlights */
.info-card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 30px;
  margin: 26px 0;
  box-shadow: var(--shadow-sm);
}
.info-card.highlight {
  background: linear-gradient(135deg, var(--water) 0%, var(--cream) 100%);
  border-color: rgba(74,159,214,.3);
}
.info-card-icon {
  width: 48px; height: 48px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.info-card-icon svg { width: 24px; height: 24px; }
.info-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 22px;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 36px 0;
}
.stat-box {
  background: var(--cream);
  padding: 26px;
  border-radius: var(--radius);
  text-align: left;
}
.stat-box-value {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--azure-bright);
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-box-label {
  font-size: 14px;
  color: var(--gray-600);
}

/* Timeline */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--azure), var(--accent));
}
.timeline-item {
  position: relative;
  padding-bottom: 30px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--azure);
  box-shadow: 0 0 0 4px var(--water);
}
.timeline-year {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--azure);
  margin-bottom: 6px;
}
.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}
.timeline-item p { margin: 0; color: var(--gray-700); }

/* Accordion (FAQ / Taryfy archiwalne) */
.accordion-item {
  border-bottom: 1px solid var(--gray-200);
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.accordion-trigger:hover { color: var(--azure); }
.accordion-trigger .acc-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--water);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: all .25s var(--ease);
}
.accordion-trigger .acc-icon svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.accordion-item.open .acc-icon { background: var(--azure); color: white; }
.accordion-item.open .acc-icon svg { transform: rotate(45deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.accordion-content-inner {
  padding: 0 0 20px;
  color: var(--gray-700);
  line-height: 1.7;
}
.accordion-item.open .accordion-content { max-height: 1200px; }

/* Tariff Table */
.tariff-table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.tariff-table thead {
  background: var(--ink);
  color: white;
}
.tariff-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
}
.tariff-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 15px;
}
.tariff-table tbody tr:hover { background: var(--gray-50); }
.tariff-table tbody tr:last-child td { border-bottom: none; }
.tariff-table .price {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--azure-bright);
}

/* Step Cards (formalności / podłączenie) */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 30px 0;
}
.step-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 22px;
  padding: 26px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  position: relative;
  transition: all .3s var(--ease);
}
.step-card:hover {
  border-color: var(--azure);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.step-card::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--azure);
  line-height: 1;
}
.step-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.step-card p { color: var(--gray-700); margin: 0; line-height: 1.6; }

/* Download/Docs cards */
.doc-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--cream);
  border-radius: 14px;
  transition: all .25s var(--ease);
  border: 1px solid transparent;
}
.doc-row:hover {
  background: white;
  border-color: var(--azure);
  transform: translateX(4px);
}
.doc-row-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: white;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--azure);
}
.doc-row-icon svg { width: 22px; height: 22px; }
.doc-row-content { flex: 1; }
.doc-row-content strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 2px;
}
.doc-row-content span {
  font-size: 13px;
  color: var(--gray-600);
}
.doc-row-arrow {
  color: var(--gray-400);
  transition: all .25s var(--ease);
}
.doc-row:hover .doc-row-arrow { color: var(--azure); transform: translateX(4px); }

/* Two-column grid (e.g. Sierakowice vs Sulęczyno regulamin) */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 30px 0;
}
@media (max-width: 780px) { .split-grid { grid-template-columns: 1fr; } }

/* Featured image / hero with image */
.hero-with-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
@media (max-width: 980px) { .hero-with-image { grid-template-columns: 1fr; } }
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--azure), var(--navy));
  position: relative;
}
.hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(10,25,41,.3));
}

/* Tabs */
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.tab-btn:hover { color: var(--azure); }
.tab-btn.active {
  color: var(--azure);
  border-bottom-color: var(--azure);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--ink) 0%, var(--navy) 100%);
  color: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  margin: 50px 0;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,159,214,.3), transparent 70%);
  border-radius: 50%;
}
.cta-box-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-box h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin-bottom: 8px;
}
.cta-box p { color: rgba(255,255,255,.8); margin: 0; }
.cta-box .btn-primary { background: var(--accent); color: var(--ink); }
.cta-box .btn-primary:hover { background: white; box-shadow: 0 10px 25px rgba(0,0,0,.3); }

/* Education hero image area */
.edu-program-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 36px 0;
}
.edu-program-card {
  padding: 28px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all .3s var(--ease);
}
.edu-program-card:hover {
  border-color: var(--azure);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}
.edu-program-card .badge {
  display: inline-block;
  padding: 5px 12px;
  background: var(--water);
  color: var(--azure-bright);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.edu-program-card h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--ink);
}

/* Contact methods (subpage) */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin: 36px 0;
}
.contact-method {
  padding: 28px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-method.urgent {
  background: linear-gradient(135deg, #fef2f2 0%, white 100%);
  border-color: rgba(220,38,38,.3);
}
.contact-method-icon {
  width: 48px; height: 48px;
  background: var(--ink);
  color: white;
  border-radius: 12px;
  display: grid; place-items: center;
}
.contact-method.urgent .contact-method-icon { background: var(--danger); }
.contact-method-icon svg { width: 22px; height: 22px; }
.contact-method small {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-600);
  font-weight: 600;
}
.contact-method strong {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}
.contact-method a { color: var(--azure-bright); font-weight: 600; }
.contact-method .small-info {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 4px;
}

/* Hours table */
.hours-list { margin: 12px 0; }
.hours-list-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--gray-200);
  font-size: 14px;
}
.hours-list-row:last-child { border-bottom: none; }
.hours-list-row span:first-child { color: var(--gray-700); }
.hours-list-row span:last-child { color: var(--ink); font-weight: 600; }

/* Map embed */
.map-frame {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  border: 0;
  margin-top: 30px;
  box-shadow: var(--shadow);
}

/* Water-quality params grid (subpage) */
.params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.params-grid .param { background: white; border: 1px solid var(--gray-200); }

/* Pill list */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.pill-list li {
  padding: 8px 16px;
  background: var(--water);
  color: var(--azure-bright);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

/* Responsive subpage */
@media (max-width: 780px) {
  .subpage-hero { padding: 60px 0 80px; }
  .subpage-content { padding: 50px 0; }
  .cta-box { padding: 32px; }
  .cta-box-inner { flex-direction: column; align-items: flex-start; }
  .tariff-table { font-size: 13px; }
  .tariff-table th, .tariff-table td { padding: 12px 14px; }
}

