/* ============================================================
   STAN WODY – system wizualny (minimal / „apple-like")
   Dużo powietrza · lekka typografia · jedna myśl na sekcję
   ============================================================ */

:root {
  /* Marka */
  --granat:       #165a72;
  --blekit:       #4c9ab3;
  --blekit-jasny: #bfdce7;
  --zolty:        #e9c35a;
  --zielony:      #6e8f55;
  --czerwony:     #c0492f;   /* wysoki stan / ostrzeżenie */
  --amber-txt:    #9a7415;   /* czytelny odcień żółtego na tekst */

  /* Neutralne (baza minimalistyczna) */
  --ink:      #16232a;   /* niemal czarny z nutą morza */
  --ink-soft: #5c6b71;   /* szary tekst pomocniczy      */
  --bg:       #f5f3ec;   /* krem – spójny z flagową stroną główną */
  --bg-alt:   #ffffff;   /* białe pasy/kafle na kremie             */
  --bg-dark:  #0f2a34;   /* ciemne tło sekcji           */
  --line:     rgba(20, 40, 48, 0.12);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --disp: "Fraunces", Georgia, "Times New Roman", serif;   /* krój nagłówków (flagowy) */

  --max: 1300px;   /* treść i nagłówek tej samej szerokości – spójne ze stroną główną */
  --wide: 1300px;
  --r: 3px;   /* minimalne zaokrąglenie narożników – przyjaźniej, lepiej na mobile */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 44px; }
.container-wide { max-width: var(--wide); }

/* Wspólne elementy typografii */
.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: none; color: var(--blekit); margin-bottom: 16px;
}
.display {
  font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink);
}

/* ============================================================
   NAGŁÓWEK
   ============================================================ */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--wide); margin: 0 auto; padding: 26px 44px; }
.brand-logo { height: 52px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: 13.5px; font-weight: 500; letter-spacing: .04em; color: #fff; opacity: 0.9; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.nav-cta { color: #fff !important; font-weight: 600; opacity: 1 !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; color: #fff; cursor: pointer; }

/* ============================================================
   PRZYCISKI / LINKI
   ============================================================ */
.btn {
  display: inline-block; padding: 12px 24px; border-radius: 0;
  font-size: 15px; font-weight: 500; cursor: pointer; border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.btn-primary { background: var(--granat); color: #fff; }
.btn-primary:hover { background: #12495c; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 500; color: var(--granat);
}
.link-arrow::after { content: "›"; font-size: 19px; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }
.link-arrow.on-dark { color: #7fc4dd; }

/* ============================================================
   HERO (masthead)
   ============================================================ */
.masthead {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; text-align: center;
}
.masthead-bg { position: absolute; inset: 0; background: url('assets/hero-biebrza.jpg?v=20') center/cover no-repeat; }
/* Gradient: góra czysta (jasne niebo), dół przyciemniony pod napisem */
.masthead-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(15,42,52,0) 0%,
    rgba(15,42,52,0) 34%,
    rgba(15,42,52,0.12) 52%,
    rgba(15,42,52,0.48) 74%,
    rgba(15,42,52,0.86) 100%);
}
.masthead-inner { position: relative; z-index: 2; width: 100%; max-width: 820px; margin: 0 auto; padding: 100px 28px 92px; }
.masthead .kicker { color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; }
.masthead h1 { font-size: clamp(44px, 8vw, 92px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 22px; }
.masthead .sub { font-size: clamp(19px, 2.4vw, 26px); font-weight: 400; color: rgba(255,255,255,0.92); max-width: 620px; margin: 0 auto; letter-spacing: -0.01em; }
.masthead-tagline { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.masthead-links { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SEKCJE – rytm i „powietrze"
   ============================================================ */
.section { padding: 120px 0; }
.section-tight { padding: 90px 0; }
.section-flush { padding-top: 44px; }
.feed-title { text-align: center; font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 44px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: #fff; }

.block-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.block-head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; margin-bottom: 18px; }
.block-head p { font-size: clamp(18px, 2vw, 22px); color: var(--ink-soft); font-weight: 400; }
.section-dark .block-head p { color: rgba(255,255,255,0.72); }

/* Nagłówek z linkiem (listy) */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.025em; }
.section-link { color: var(--granat); font-weight: 500; font-size: 16px; }
.section-link:hover { text-decoration: underline; }

/* ============================================================
   RAMKA: SPRAWDŹ STAN WODY (minimal)
   ============================================================ */
.hydro { }
.hydro-box { max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.hydro-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; }
.hydro-header h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; }
.hydro-sub { color: var(--ink-soft); font-size: 17px; margin-top: 8px; max-width: 460px; }
.hydro-search-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.hydro-search { width: 100%; max-width: 480px; }
.hydro-search input {
  width: 100%; padding: 13px 20px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.hydro-search input:focus { outline: none; border-color: var(--blekit); box-shadow: 0 0 0 4px rgba(76,154,179,0.12); }
.hydro-hint { font-size: 14px; font-weight: 500; color: var(--ink-soft); margin: 26px 0 18px; }

/* Stan wody: klikalna tabela wierszy (kompaktowo, wiersz = rzeka → artykuł, gdy istnieje) */
.hydro-grid { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; }
.hydro-loading, .hydro-empty { text-align: center; padding: 44px 20px; color: var(--ink-soft); font-size: 16px; }

.hydro-row { display: grid; grid-template-columns: minmax(110px,1.1fr) 76px minmax(150px,1.4fr) minmax(150px,1.7fr) 18px; align-items: center; gap: 20px; padding: 15px 20px; border-top: 1px solid var(--line); border-left: 4px solid transparent; color: inherit; text-decoration: none; }
.hydro-row:first-child { border-top: 0; }
.hydro-row.v-good { border-left-color: var(--zielony); }
.hydro-row.v-low  { border-left-color: var(--zolty); }
.hydro-row.v-high { border-left-color: var(--czerwony); }
.hydro-row.v-info { border-left-color: #9aa9ad; }
.hydro-row.is-link { cursor: pointer; transition: background .15s ease; }
.hydro-row.is-link:hover { background: var(--krem, #f5f3ec); }
.hr-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.hr-level { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; text-align: right; }
.hr-level span { font-size: 12px; font-weight: 400; color: var(--ink-soft); margin-left: 2px; }
.hr-verdict { font-size: 14px; font-weight: 600; line-height: 1.25; }
.hr-verdict small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-soft); }
.hydro-row.v-good .hr-verdict { color: var(--zielony); }
.hydro-row.v-low  .hr-verdict { color: #9a7b1e; }
.hydro-row.v-high .hr-verdict { color: var(--czerwony); }
.hydro-row.v-info .hr-verdict { color: var(--ink-soft); }
/* Alert: przekroczony stan ostrzegawczy (bursztyn) / alarmowy (czerwony) IMGW */
.hydro-row.is-warn  { border-left-color: var(--amber-txt); }
.hydro-row.is-warn  .hr-verdict { color: var(--amber-txt); }
.hydro-row.is-alarm { border-left-color: var(--czerwony); background: rgba(192,73,47,.05); }
.hydro-row.is-alarm .hr-verdict { color: var(--czerwony); font-weight: 700; }
.hr-station { font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }
.hr-arrow { color: var(--granat); font-weight: 600; text-align: right; opacity: 0; transition: opacity .15s ease; }
.hydro-row.is-link:hover .hr-arrow { opacity: 1; }

/* Objaśnienie „co to jest wodowskaz" + disclaimer + źródło */
.hydro-disclaimer { font-size: 13px; color: var(--ink-soft); margin-top: 10px; max-width: 560px; line-height: 1.5; }
.hydro-explainer { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.hydro-explainer summary { cursor: pointer; font-size: 14px; font-weight: 500; color: var(--granat); list-style: none; }
.hydro-explainer summary::-webkit-details-marker { display: none; }
.hydro-explainer summary::before { content: "+ "; font-weight: 600; }
.hydro-explainer[open] summary::before { content: "– "; }
.hydro-explainer-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin: 12px 0 0; max-width: 760px; }
.hydro-source { font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; }

/* ============================================================
   KAFLE GRUP DOCELOWYCH
   ============================================================ */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; }
.tile-media { position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; transition: transform .6s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,42,52,0.05) 30%, rgba(15,42,52,0.82) 100%); }
.tile:hover .tile-media { transform: scale(1.05); }
.tile-body { position: relative; z-index: 2; padding: 32px; }
.tile-body .tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.tile-body h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.tile-body p { font-size: 15px; color: rgba(255,255,255,0.9); line-height: 1.5; }

/* ============================================================
   KARTY ARTYKUŁÓW
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,40,48,0.05); transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { box-shadow: 0 10px 28px rgba(20,40,48,0.11); }
.card:hover { transform: translateY(-5px); }
.card:hover .card-media { transform: scale(1.04); }
.card-media { height: 220px; background-size: cover; background-position: center; transition: transform .5s ease; }
.card-body { padding: 22px 20px 24px; }
.card-feature { grid-column: span 3; flex-direction: row; gap: 44px; align-items: center; }
.card-feature .card-media { width: 55%; height: 400px; }
.card-feature .card-body { width: 45%; padding: 0; }
.card-feature h3 { font-size: clamp(28px, 3vw, 40px); }
.card-feature p { font-size: 18px; margin: 14px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--blekit); margin-bottom: 12px; }
.card h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 0; }
.card-meta { font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; margin-top: 14px; }
.cards-all .card { height: 100%; }

/* ============================================================
   TRASY WG TRUDNOŚCI
   ============================================================ */
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.route { border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; transition: transform .25s ease, box-shadow .25s ease; background: #fff; }
.route:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,40,48,0.08); }
.route h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 6px; }
.route p { font-size: 14px; color: var(--ink-soft); }
.route-badge, .art-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.01em; padding: 5px 12px; border-radius: 0; color: #fff; }
.badge-easy { background: var(--zielony); }
.badge-mid { background: var(--zolty); color: #4a3d12; }
.badge-hard { background: var(--blekit); }

/* ============================================================
   WARTOŚCI (bezpieczeństwo + ekologia)
   ============================================================ */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 60px; max-width: 900px; margin: 0 auto; }
.value h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.value p { color: rgba(255,255,255,0.72); font-size: 16px; line-height: 1.6; }
.value .ico { font-size: 26px; margin-bottom: 14px; display: block; }

/* ============================================================
   O NAS
   ============================================================ */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: center; max-width: var(--max); }
.about-text h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 20px; line-height: 1.08; }
.about-text p { font-size: 18px; color: var(--ink-soft); margin-bottom: 26px; line-height: 1.6; }
.about-mark img { max-width: 200px; margin: 0 auto; opacity: 0.9; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { text-align: center; }
.newsletter-inner { max-width: 600px; margin: 0 auto; }
.newsletter h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 14px; }
.newsletter p { color: var(--ink-soft); font-size: 19px; margin-bottom: 30px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto 14px; }
.newsletter-form input { flex: 1; padding: 14px 22px; border-radius: 0; border: 1px solid var(--line); font-size: 15px; font-family: inherit; }
.newsletter-form input:focus { outline: none; border-color: var(--blekit); box-shadow: 0 0 0 4px rgba(76,154,179,0.12); }
.newsletter-note { font-size: 13px; color: var(--ink-soft); }

/* ============================================================
   STOPKA
   ============================================================ */
.site-footer { background: var(--bg); color: var(--ink-soft); padding-top: 70px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 2fr; gap: 50px; padding-bottom: 46px; max-width: var(--max); margin: 0 auto; padding-left: 44px; padding-right: 44px; }
.footer-mark { width: 74px; margin-bottom: 16px; opacity: 0.7; }
.footer-brand p { font-size: 16px; color: var(--ink); max-width: 240px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { color: var(--ink); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.footer-cols a { display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; transition: color .2s; }
.footer-cols a:hover { color: var(--granat); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); max-width: var(--max); }

/* ============================================================
   STRONY ARTYKUŁÓW + LISTA
   ============================================================ */
.art-hero { position: relative; min-height: 66vh; display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; }
.art-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,42,52,0.9) 0%, rgba(15,42,52,0.35) 55%, rgba(15,42,52,0.2) 100%); }
.art-hero-inner { position: relative; z-index: 2; padding: 56px 44px 60px; width: 100%; max-width: 800px; }
.art-back { display: inline-block; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.85); margin-bottom: 22px; }
.art-back:hover { color: #fff; }
.art-tag { display: inline-block; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; letter-spacing: 0.03em; padding: 6px 14px; border-radius: 0; margin-bottom: 18px; }
.art-hero h1 { font-size: clamp(40px, 6.5vw, 76px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.03; margin-bottom: 16px; }
.art-lead { font-size: clamp(20px, 2.4vw, 24px); color: rgba(255,255,255,0.92); max-width: 640px; margin-bottom: 22px; font-weight: 400; }
.art-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: rgba(255,255,255,0.82); }

/* Plakietki charakteru pod leadem: trudność (subtelny kolor) + grupy docelowe (neutralne) */
.art-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pill { display: inline-block; padding: 5px 12px; font-size: 12.5px; font-weight: 500; border-radius: 0; line-height: 1.35; backdrop-filter: blur(6px); }
.pill-group { background: rgba(255,255,255,0.16); color: #fff; }
.pill-diff { font-weight: 600; }
.pill-diff.diff-easy { background: rgba(110,143,85,0.92); color: #fff; }
.pill-diff.diff-mid  { background: rgba(233,195,90,0.94); color: #3a2e08; }
.pill-diff.diff-hard { background: rgba(176,74,58,0.92); color: #fff; }
/* plakietki są klikalne (link do listy filtrowanej) */
a.pill { text-decoration: none; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
a.pill:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.22); }
a.pill-group:hover { background: rgba(255,255,255,0.28); }

/* Plakietka trudności na karcie (nad zdjęciem) */
.card-media { position: relative; }
.card-diff { position: absolute; top: 10px; left: 10px; font-size: 11.5px; font-weight: 600; padding: 4px 9px; color: #fff; letter-spacing: .01em; }
.card-diff.diff-easy { background: rgba(110,143,85,0.95); }
.card-diff.diff-mid  { background: rgba(233,195,90,0.96); color: #3a2e08; }
.card-diff.diff-hard { background: rgba(176,74,58,0.95); }

/* Pasek filtrów na stronie „Wszystkie artykuły" */
.filters { margin-bottom: 34px; border: 1px solid var(--line); border-top: 3px solid var(--granat); background: var(--bg-alt); padding: 26px 28px 22px; }
.filters-head { margin-bottom: 20px; }
.filters-head h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.filters-head p { font-size: 15px; color: var(--ink-soft); margin-top: 6px; max-width: 620px; }
.filter-row { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.filter-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); padding-top: 8px; min-width: 74px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { font-family: inherit; font-size: 13px; font-weight: 500; padding: 6px 13px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; border-radius: 0; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.fchip:hover { border-color: var(--blekit); }
.fchip.on { background: var(--granat); border-color: var(--granat); color: #fff; }
.fchip-diff.diff-easy.on { background: #6e8f55; border-color: #6e8f55; }
.fchip-diff.diff-mid.on  { background: #e9c35a; border-color: #e9c35a; color: #3a2e08; }
.fchip-diff.diff-hard.on { background: #b04a3a; border-color: #b04a3a; }
.filter-status { display: flex; align-items: center; gap: 16px; margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.freset { font-family: inherit; font-size: 13px; color: var(--granat); background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0; }

.art-credit { font-size: 12.5px; color: var(--ink-soft); padding: 14px 0 0; }
.art-credit a { color: var(--granat); text-decoration: underline; }

.art-body { max-width: 800px; padding-top: 40px; padding-bottom: 30px; }
.art-body h2 { font-family: var(--sans); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.025em; margin: 46px 0 16px; }
.art-body h2:first-child { margin-top: 8px; }
.art-body p { font-family: var(--serif); font-size: 21px; line-height: 1.72; color: #26343a; margin-bottom: 22px; letter-spacing: 0; }

/* ── Flagowy krój nagłówków (Fraunces) – spójnie ze stroną główną ── */
.art-hero h1, .page-hero h1, .block-head h2, .section-head h2, .feed-title,
.filters-head h2, .card h3, .card-feature h3, .rel-body h3, .guide-card h3,
.newsletter h2, .about-text h2, .value h3, .route h3,
.art-body h2, .prose h2 {
  font-family: var(--disp);
}

/* ── Placeholder karty, gdy rzeka nie ma zdjęcia (zamiast brzydkiej grafiki-fali) ── */
.card-media.media-ph, .rel-media.media-ph { background: var(--bg-dark); display: flex; align-items: center; justify-content: center; }
.media-ph .ph-name { font-family: var(--disp); font-style: italic; font-weight: 500; font-size: 30px; color: rgba(245,243,236,0.55); padding: 0 16px; text-align: center; }
/* Równe karty: opis przycięty do 3 linii */
.card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rel-body p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Mapa w treści artykułu — facade (klik → iframe) */
.trail-embed { margin: 40px 0 8px; }
.trail-embed-facade { display: block; position: relative; width: 100%; height: clamp(280px, 42vw, 460px);
  padding: 0; border: 1px solid var(--line); background-size: cover; background-position: center;
  cursor: pointer; overflow: hidden; font-family: inherit; }
.trail-embed-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,32,40,.28), rgba(11,32,40,.62)); transition: background .2s ease; }
.trail-embed-facade:hover .trail-embed-overlay { background: linear-gradient(180deg, rgba(11,32,40,.34), rgba(11,32,40,.68)); }
.trail-embed-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px; color: #fff; }
.trail-embed-icon { font-size: 40px; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); transition: transform .2s ease; }
.trail-embed-facade:hover .trail-embed-icon { transform: scale(1.08); }
.trail-embed-title { font-family: var(--sans); font-size: clamp(18px, 2.4vw, 23px); font-weight: 600; letter-spacing: -0.01em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.trail-embed-sub { font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.9); text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.trail-embed-frame { display: block; width: 100%; height: clamp(440px, 72vh, 720px); border: 1px solid var(--line); background: #eef2f3; }
.trail-embed-cap { padding: 12px 2px 0; font-size: 14px; }
.trail-embed-cap a { color: var(--granat); font-weight: 500; text-decoration: none; }
.trail-embed-cap a:hover { text-decoration: underline; }

/* ---------- Logistyka: „W skrócie: jak popłynąć" ---------- */
.logistyka { margin: 14px 0 56px; border: 1px solid var(--line); border-left: 4px solid var(--granat); background: var(--bg-alt); padding: 26px 28px 24px; }
.section-related { padding-top: 88px; }
/* Czerwona pinezka „start" w podsumowaniu (nawiązuje do pinezek trasy na mapie) */
.log-pin { display: inline-block; width: 13px; height: 13px; background: var(--czerwony); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); position: relative; }
.log-pin::after { content: ""; position: absolute; top: 3px; left: 3px; width: 7px; height: 7px; background: #fff; border-radius: 50%; }
.logistyka-title { font-family: var(--sans); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--granat); margin-bottom: 18px; }
.logistyka-grid { display: flex; gap: 0 34px; align-items: flex-start; }
.log-col { flex: 1 1 0; min-width: 0; }
.log-item { margin-bottom: 18px; }
.log-col .log-item:last-child { margin-bottom: 0; }
.log-item dt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin-bottom: 4px; }
.log-ico { font-size: 15px; line-height: 1; }
.log-item dd { font-size: 15.5px; color: var(--ink); line-height: 1.5; }
.logistyka-uwaga { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.logistyka-uwaga strong { color: var(--czerwony); }
@media (max-width: 560px) { .logistyka-grid { flex-direction: column; gap: 18px 0; } .logistyka { padding: 22px 20px; } }

.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rel-card { border-radius: var(--r); overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,40,48,0.05); transition: transform .25s ease, box-shadow .25s ease; }
.rel-card:hover { transform: translateY(-5px); box-shadow: 0 10px 28px rgba(20,40,48,0.11); }
.rel-media { height: 170px; background-size: cover; background-position: center; }
.rel-body { padding: 18px 20px 20px; }
.rel-body h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }

.page-hero { position: relative; color: #fff; padding: 150px 0 60px; min-height: clamp(480px, 52vh, 540px); display: flex; align-items: flex-end; overflow: hidden; background: var(--bg-dark) center/cover no-repeat; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15,42,52,0.60) 0%, rgba(15,42,52,0.24) 42%, rgba(15,42,52,0.80) 100%); }
.page-hero > .container { position: relative; z-index: 2; width: 100%; }
.page-hero .kicker { color: rgba(255,255,255,0.82); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 16px; color: #fff; text-shadow: 0 1px 20px rgba(12,28,35,0.28); }
.page-hero-lead { font-size: 20px; color: rgba(255,255,255,0.92); max-width: 620px; text-shadow: 0 1px 14px rgba(12,28,35,0.3); }
/* Subtelny podpis autora „z boku" na zdjęciu (hero podstron i artykułów) */
.hero-credit { position: absolute; right: 10px; bottom: 16px; z-index: 3; writing-mode: vertical-rl; transform: rotate(180deg); font: 500 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.55); text-shadow: 0 1px 4px rgba(12,28,35,0.6); pointer-events: none; white-space: nowrap; }
/* Mapa szlaku wkomponowana w środek treści artykułu (w kolumnie tekstu) */
.trail-embed-inline { margin: 32px 0; }

/* ---------- Sygnały zaufania (O nas) ---------- */
.trust-badges { list-style: none; margin: 24px 0 26px; display: flex; flex-direction: column; gap: 10px; }
.trust-badges li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.tb-ico { font-size: 17px; line-height: 1; }

/* ---------- Strona „O danych" ---------- */
.prose { max-width: 800px; }
.prose p { font-size: 17px; color: var(--ink-soft); line-height: 1.7; margin-bottom: 18px; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose a { color: var(--granat); }
.src-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 8px 0 6px; }
.src-item { border: 1px solid var(--line); border-left: 4px solid var(--blekit); background: #fff; padding: 20px 22px; }
.src-item h3 { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.src-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.src-item .src-lic { display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 500; color: var(--granat); }
.src-item.soon { border-left-color: var(--zolty); }
.src-item.soon .src-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--amber-txt); }
.attrib-list { list-style: none; margin: 8px 0 0; border-top: 1px solid var(--line); }
.attrib-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); line-height: 1.55; }
.attrib-list a { color: var(--granat); }
@media (max-width: 640px) { .src-grid { grid-template-columns: 1fr; } }

/* ---------- Korona Polskich Rzek ---------- */
.soon-badge { display: inline-block; margin-left: 14px; padding: 5px 11px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--amber-txt); background: rgba(233,195,90,.20); vertical-align: middle; }
.medals { list-style: none; margin: 12px 0 0; }
.medals li { display: flex; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.medals li:last-child { border-bottom: 1px solid var(--line); }
.medals .medal { font-size: 15px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; min-width: 108px; }
.medals .m-bron { color: #a9713b; }
.medals .m-srebr { color: #7d8a92; }
.medals .m-zlot { color: #b8912e; }
.river-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 4px; }
.river-chip { font-size: 14.5px; font-weight: 500; padding: 8px 15px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
a.river-chip:hover { border-color: var(--blekit); }
.river-chip.soon { color: var(--ink-soft); background: var(--bg-alt); }

/* ---------- Poradniki (karty) ---------- */
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; padding: 26px 26px 22px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,40,48,.10); border-color: var(--blekit); }
.guide-ico { font-size: 30px; line-height: 1; margin-bottom: 14px; }
.guide-card h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.guide-card p { font-size: 15px; color: var(--ink-soft); line-height: 1.55; margin-bottom: 16px; }
.guide-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--granat); }
@media (max-width: 640px) { .guide-grid { grid-template-columns: 1fr; } }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .header-inner { padding: 20px 24px; }
  .footer-inner { padding-left: 24px; padding-right: 24px; }
  .art-hero-inner { padding: 48px 24px 52px; }
  .nav { display: none; position: absolute; top: 92px; left: 0; right: 0; background: rgba(12,28,35,0.97); backdrop-filter: blur(20px); flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; width: 100%; }
  .nav-toggle { display: block; }
  .section { padding: 84px 0; }
  .hydro-row { grid-template-columns: minmax(90px,1fr) 68px minmax(130px,1.3fr) minmax(120px,1.5fr) 16px; gap: 14px; padding: 14px 16px; }
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card-feature { flex-direction: column; grid-column: span 2; gap: 0; }
  .card-feature .card-media, .card-feature .card-body { width: 100%; }
  .card-feature .card-body { padding: 22px 20px 24px; }
  .routes { grid-template-columns: repeat(2, 1fr); }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-mark { order: -1; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .masthead { min-height: 82vh; }
  .hydro-row { grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 16px; }
  .hr-verdict, .hr-station { grid-column: 1 / -1; }
  .hr-arrow { display: none; }
  .hr-level { font-size: 20px; }
  .hydro-header { flex-direction: column; align-items: stretch; }
  .hydro-search { max-width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .card-feature { grid-column: span 1; }
  .routes { grid-template-columns: 1fr; }
  .rel-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; gap: 40px; }
  .newsletter-form { flex-direction: column; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
}

/* ============================================================
   DUŻA MAPA POLSKI (planowanie spływu)
   ============================================================ */
.mapa-wrap { position: relative; }
#mapa-polski {
  height: 620px; width: 100%;
  position: relative; z-index: 0; isolation: isolate;
  background: var(--blekit-jasny); border: 1px solid var(--line);
}
.mapa-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 12px; max-width: 920px; line-height: 1.5; }
.mapa-note a { color: var(--granat); text-decoration: underline; }

/* legenda + kontrolka warstw */
.mapa-legenda { background: rgba(255,255,255,0.95); padding: 10px 13px; font-size: 12px; line-height: 1.6; color: var(--ink); box-shadow: 0 2px 12px rgba(20,40,48,0.15); }
.mapa-legenda strong { display: block; margin-bottom: 5px; }
.mapa-legenda span { display: flex; align-items: center; gap: 7px; }
.mapa-legenda i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.18); display: inline-block; flex: 0 0 auto; }
.lc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.leaflet-control-layers { font-size: 13px; padding: 6px 8px; }
.leaflet-control-layers label { margin: 3px 0; }

/* popup */
.mapa-pop { font-size: 13px; line-height: 1.55; }
.mapa-pop b { font-size: 14px; color: var(--granat); }
.mapa-pop-sub { color: var(--ink-soft); font-size: 12px; }
.mapa-pop-lvl { font-weight: 600; }
.mapa-pop-date { color: var(--ink-soft); font-size: 11px; }

@media (max-width: 700px) { #mapa-polski { height: 480px; } }

/* ===== PLANER TRASY (mapa) ===== */
.mapa-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.map-btn { padding: 11px 22px; background: var(--granat); color: #fff; border: none; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background .2s; }
.map-btn:hover { background: #12495c; }
.map-btn.active { background: var(--czerwony); }
.map-btn-ghost { padding: 9px 15px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 13px; cursor: pointer; font-family: inherit; transition: border-color .2s; }
.map-btn-ghost:hover { border-color: var(--blekit); }
.mapa-hint { font-size: 13px; color: var(--ink-soft); }
.mapa-actions { display: inline-flex; gap: 8px; }
.leaflet-container.planning { cursor: crosshair; }
.route-wp { background: var(--granat); color: #fff; font-size: 12px; font-weight: 600; line-height: 22px; text-align: center; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.35); }

.mapa-summary { margin-top: 16px; background: #fff; border: 1px solid var(--line); padding: 22px 24px; }
.ms-stats { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 16px; }
.ms-stats > div { display: flex; flex-direction: column; }
.ms-num { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--granat); line-height: 1.1; }
.ms-lab { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.ms-counts { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink); margin-bottom: 14px; }
.ms-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; margin: 0 0 14px; }
.ms-list li { font-size: 13px; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 6px 0; }
.ms-list li span { color: var(--ink-soft); flex: 0 0 auto; }
.ms-note { font-size: 12px; color: var(--ink-soft); margin: 0; }
@media (max-width: 640px) { .ms-list { grid-template-columns: 1fr; } .ms-stats { gap: 24px; } }

/* ikony udogodnień/utrudnień (emoji) + ostrzeżenia planera */
.amen-ico { background: transparent; border: none; font-size: 15px; line-height: 20px; text-align: center; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.4)); }
.hint-warn { color: var(--czerwony) !important; font-weight: 500; }
.ms-warn { background: #fbeae6; color: #7a2e1e; padding: 9px 13px; font-size: 13px; margin-bottom: 12px; border-left: 3px solid var(--czerwony); }

/* legenda: kreska rzeki + wielokolorowy swatch wodowskazów + bogatsze popupy */
.lc-line { display: inline-block; width: 16px; height: 0; border-top: 3px solid #1e88e5; margin-right: 6px; vertical-align: middle; }
.lc-multi { display: inline-flex; gap: 2px; margin-right: 6px; vertical-align: middle; }
.lc-multi i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mapa-pop-name { font-weight: 600; color: var(--ink); }
.mapa-pop-link { color: var(--granat); text-decoration: underline; font-size: 12.5px; display: inline-block; margin-top: 3px; }
.mapa-legenda .lg-sep { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(0,0,0,.08); }
