/* GEOSPES — strona geospes.pl: wygląd wszystkich podstron (opis: OPIS-KODU.md) */
/* ---------- Kolory, czcionki, wymiary ---------- */
:root {
  --bg: #0a0e13;
  --bg-panel: #12181f;
  --bg-elevated: #1a222b;
  --bg-input: #0e1319;
  --border: #232d38;
  --border-strong: #33404d;
  --text: #eaf0f5;
  --text-muted: #a9b4c0;
  --text-faint: #7c8896;
  --accent: #f3501c;
  --accent-hover: #f5734a;
  --accent-soft: rgba(243, 80, 28, 0.14);
  --teal: #2fa8a0;

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius: 10px;
  --radius-sm: 7px;
  --max: 1080px;
}

/* ---------- Podstawy: pasek przewijania, body, linki, ograniczenie animacji ---------- */
* { box-sizing: border-box; }
* { scrollbar-width: thin; scrollbar-color: var(--border-strong) var(--bg-input); }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--bg-input); }
*::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *:not(.timeline *):not(.hero-video) { animation: none !important; transition: none !important; }
}

/* ---------- Tło z delikatnym wzorem ---------- */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 15% 20%, rgba(243,80,28,0.05) 0, rgba(243,80,28,0.05) 1px, transparent 1px, transparent 68px),
    repeating-radial-gradient(circle at 85% 80%, rgba(243,80,28,0.04) 0, rgba(243,80,28,0.04) 1px, transparent 1px, transparent 84px);
  background-size: 68px 68px, 84px 84px;
}
.bg-pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 900px 600px at 50% 0%, rgba(243,80,28,0.07), transparent 60%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nagłówek: logo, menu, przełącznik języka ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 14, 19, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand img { height: 34px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--bg-elevated); }
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav .btn-login {
  margin-left: 8px;
  background: var(--accent);
  color: #17130a;
  font-weight: 600;
}
.nav .btn-login:hover { background: var(--accent-hover); color: #17130a; }

.nav { margin-left: auto; }
.header-tools { display: flex; align-items: center; gap: 8px; }

.lang { position: relative; }
.lang:empty { display: none; }
.lang .flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 36px; padding: 0 10px 0 10px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.lang-btn:hover, .lang-btn[aria-expanded="true"] { border-color: var(--accent); background: var(--accent-soft); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--text-muted); transition: transform .15s ease; }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 190px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
  z-index: 20;
}
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px;
  background: transparent; border: 0; border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: var(--font-body); font-size: 14px; text-align: left;
  cursor: pointer;
}
.lang-menu button span { flex: 1; }
.lang-menu button small { color: var(--text-faint); font-size: 12px; }
.lang-menu button:hover { background: var(--bg-elevated); color: var(--text); }
.lang-menu button[aria-checked="true"] { background: var(--accent-soft); color: var(--accent); }
.lang-menu button[aria-checked="true"] small { color: var(--accent); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-sm);
  width: 40px; height: 36px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Menu rozwijane na telefonie ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .btn-login { margin: 8px 0 0; text-align: center; }
  .lang-btn .chev { display: none; }
  .brand img { height: 28px; }
  .wrap { padding: 0 16px; }
}

/* ---------- Sekcje i nagłówki ---------- */
main { flex: 1; position: relative; z-index: 1; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(26px, 5vw, 48px); letter-spacing: -0.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 20px; }
h3 { font-size: 18px; }
.lead { font-size: 17px; color: var(--text-muted); max-width: 680px; }

/* ---------- Intro: film w tle, logo, motto, przyciski ---------- */
.hero { padding: 96px 0 80px; text-align: center; position: relative; overflow: hidden; isolation: isolate; }

.hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .6;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(10,14,19,.55), rgba(10,14,19,.2) 70%, transparent),
    linear-gradient(to bottom, rgba(10,14,19,.85) 0%, rgba(10,14,19,.15) 22%, rgba(10,14,19,.15) 70%, var(--bg) 100%);
}
.hero.no-video .hero-video { display: none; }
.hero .motto, .hero .lead { text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.hero .lead { color: #c4cdd6; }

.video-toggle {
  position: absolute; right: 20px; bottom: 20px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(18,24,31,.7);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .15s ease, border-color .15s ease;
}
.video-toggle:hover { color: var(--text); border-color: var(--accent); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle.is-paused .i-pause, .video-toggle.is-paused .lbl-pause,
.video-toggle:not(.is-paused) .i-play, .video-toggle:not(.is-paused) .lbl-play { display: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero .logo-big { width: min(420px, 80%); height: auto; margin: 0 auto 28px; display: block; }
.hero .motto {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 20px;
}
.hero .motto b { color: var(--accent); font-weight: 600; }
.hero .lead { margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  font-size: 14.5px; font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--accent); color: #17130a; }
.btn-primary:hover { background: var(--accent-hover); color: #17130a; }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--text-faint); color: var(--text); }

/* ---------- Karta (panel) ---------- */
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.6);
}

/* ---------- Oś czasu (Krótka historia) z animacją pojawiania ---------- */
.timeline { list-style: none; margin: 32px 0 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 19px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border-strong));
}
.timeline li { position: relative; padding-left: 56px; margin-bottom: 20px; }
.timeline li:last-child { margin-bottom: 0; }
.timeline .dot {
  position: absolute; left: 10px; top: 22px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.timeline li:last-child .dot { background: var(--accent); }
.timeline .panel {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 24px;
  align-items: center;
  padding: 20px 24px;
}
.timeline .year {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  line-height: 1; margin-bottom: 8px;
}
.timeline p { margin: 0; color: var(--text-muted); }
.timeline img { width: 100%; height: auto; display: block; }
.timeline .panel { overflow: hidden; }

.timeline li.reveal .panel {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.timeline li.reveal .dot {
  transform: scale(0);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.timeline li.reveal img {
  opacity: 0;
  filter: blur(6px);
  transform: translateX(160px);
  transition: opacity 1.1s ease .25s, filter 1.1s ease .25s, transform 1.1s cubic-bezier(.16,1,.3,1) .25s;
}
.timeline li.reveal.in .panel { opacity: 1; transform: none; }
.timeline li.reveal.in .dot { transform: none; }
.timeline li.reveal.in img { opacity: 1; filter: none; transform: none; }

@media (max-width: 720px) {
  .timeline .panel { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .timeline img { max-width: 280px; }
}

/* ---------- Współpraca ---------- */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.partner { padding: 24px; display: flex; align-items: center; gap: 16px; }
.partner .ico {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.partner .ico svg { width: 22px; height: 22px; }
.partner small { display: block; color: var(--text-faint); font-size: 13px; }

/* ---------- Kontakt ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.contact-card { padding: 24px; }
.contact-card .ico {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 16px;
}
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.contact-card p { margin: 0; font-size: 15.5px; }
.contact-card a { color: var(--text); }
.contact-card a:hover { color: var(--accent); }

/* ---------- Polityka prywatności ---------- */
.prose { max-width: 760px; overflow-wrap: anywhere; }
.prose h2 { font-size: 20px; margin: 36px 0 10px; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--text-muted); margin: 0 0 14px; }
.prose-panel { padding: 36px 40px; }
@media (max-width: 600px) { .prose-panel { padding: 24px 20px; } }

/* ---------- Stopka ---------- */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 32px 0;
  font-size: 13.5px;
  color: var(--text-faint);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer img { height: 26px; width: auto; display: block; margin-bottom: 10px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--text-muted); }
.site-footer nav a:hover { color: var(--accent); }

/* ---------- Smartfony: mniejsze odstępy, zwarte karty ---------- */
@media (max-width: 600px) {
  section { padding: 52px 0; }
  .hero { padding: 64px 0 56px; }
  .hero .logo-big { margin-bottom: 22px; }
  .video-toggle { right: 10px; bottom: 10px; width: 34px; height: 34px; }
  .lead { font-size: 16px; }
  h2 { margin-bottom: 16px; }

  .timeline::before { left: 11px; }
  .timeline li { padding-left: 36px; }
  .timeline .dot { left: 2px; width: 20px; height: 20px; }
  .timeline .panel { padding: 16px; }
  .timeline .year { font-size: 24px; }
  .timeline img {
    max-width: 100%;
    aspect-ratio: 24 / 7;
    object-fit: cover;
    object-position: left center;
  }

  .contact-grid { gap: 10px; }
  .contact-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; padding: 18px; }
  .contact-card .ico { margin: 0; grid-row: span 2; }
  .contact-card h3 { margin: 2px 0 4px; }

  .partner { padding: 18px; }

  .site-footer .wrap { flex-direction: column; gap: 20px; }
  .site-footer nav { gap: 0 18px; }
  .site-footer nav a { padding: 8px 0; }
}

/* ---------- Zakładki z panelu admina 2: wspólne ---------- */
[hidden] { display: none !important; }

.page-title { margin-bottom: 14px; }
.page-lead { margin: 0 0 32px; }
.empty-note { color: var(--text-faint); margin: 8px 0 0; }
.unavailable { padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.unavailable p { margin: 0; color: var(--text-muted); }

/* ---------- Menu w jednej linii (7 pozycji) ---------- */
.nav a { white-space: nowrap; }
.site-header .wrap { max-width: 1240px; }

/* ---------- Certyfikaty ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cert-card { display: flex; flex-direction: column; overflow: hidden; }
.cert-thumb {
  display: grid; place-items: center;
  height: 240px;
  background: var(--bg-input);
  border: 0; border-bottom: 1px solid var(--border);
  padding: 14px; cursor: pointer; width: 100%;
}
div.cert-thumb { cursor: default; }
.cert-thumb img { max-width: 100%; max-height: 212px; object-fit: contain; display: block; box-shadow: 0 10px 30px -12px rgba(0,0,0,.7); transition: transform .2s ease; }
.cert-thumb:hover img { transform: scale(1.02); }
.cert-pdf { display: grid; justify-items: center; gap: 6px; color: var(--accent); }
.cert-pdf svg { width: 54px; height: 54px; }
.cert-pdf small { font-weight: 600; letter-spacing: .12em; color: var(--text-faint); }
.cert-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cert-body h3 { font-size: 17px; }
.cert-meta, .well-meta { margin: 0; display: grid; gap: 4px; font-size: 13.5px; }
.cert-meta div, .well-meta div { display: flex; gap: 8px; }
.cert-meta dt, .well-meta dt { color: var(--text-faint); min-width: 104px; flex: none; }
.cert-meta dd, .well-meta dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.cert-desc, .well-desc { margin: 0; color: var(--text-muted); font-size: 14px; }
.cert-open, .well-gmaps { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.cert-open svg, .well-gmaps svg { width: 12px; height: 12px; }

/* ---------- Galeria (kolumny typu masonry, proporcje zdjęć zachowane) ---------- */
.gallery-grid { columns: 3 280px; column-gap: 14px; }
.gallery-item { break-inside: avoid; margin: 0 0 14px; }
.gallery-item button {
  display: block; width: 100%; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-panel); cursor: zoom-in;
  aspect-ratio: var(--ar, 4 / 3);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item button:hover img { transform: scale(1.03); }
.gallery-item figcaption { font-size: 13px; color: var(--text-muted); padding: 7px 2px 0; }

/* ---------- Lightbox ---------- */
html.lb-open, html.lb-open body { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 7, 10, .94);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 56px 16px 24px;
}
.lb-fig { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 6px; display: block; }
.lb-fig figcaption { color: var(--text-muted); font-size: 14px; text-align: center; }
.lb-btn {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(18, 24, 31, .8); border: 1px solid var(--border-strong);
  color: var(--text); cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { position: absolute; top: 10px; right: 12px; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { position: absolute; bottom: 14px; }
  .lb-prev { left: calc(50% - 54px); }
  .lb-next { right: calc(50% - 54px); }
  .lightbox { padding-bottom: 72px; }
}

/* ---------- Mapa otworów ---------- */
.wells-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.wells-filter button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--border);
  color: var(--text-muted); font: 500 13.5px var(--font-body); cursor: pointer;
}
.wells-filter button:hover { color: var(--text); border-color: var(--border-strong); }
.wells-filter button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.wells-filter i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.wells-filter small { color: var(--text-faint); }
.wells-map { height: min(560px, 68vh); overflow: hidden; position: relative; z-index: 0; }
.wells-map.is-leaflet { background: #11161c; }
.map-error { padding: 24px; color: var(--text-muted); }
.wells-list-title { margin: 40px 0 16px; font-size: 22px; }
.wells-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.well-card { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.well-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.well-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--text); text-align: left; overflow-wrap: anywhere; }
button.well-name { background: none; border: 0; padding: 0; cursor: pointer; }
button.well-name:hover { color: var(--accent); }
.wp-status {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 600; color: var(--c);
  padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
}
.leaflet-popup-content .wp-status { margin-left: 8px; }
.wells-map.is-leaflet .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.6); }
.wells-map .leaflet-popup-content-wrapper, .wells-map .leaflet-popup-tip { background: var(--bg-elevated); color: var(--text); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.wells-map .leaflet-popup-content { font: 13.5px/1.6 var(--font-body); margin: 12px 16px; }
.wells-map .leaflet-container a.leaflet-popup-close-button { color: var(--text-faint); }
.wells-map .leaflet-control-attribution { background: rgba(10,14,19,.75); color: var(--text-faint); }
.wells-map .leaflet-control-attribution a { color: var(--text-muted); }
.wells-map .leaflet-bar a { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.wells-map .leaflet-popup-content a { color: var(--accent); font-weight: 600; }

/* ---------- Znacznik podglądu (?preview=1) ---------- */
.preview-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 90;
  background: var(--bg-elevated); border: 1px solid var(--accent);
  color: var(--text-muted); font-size: 12.5px;
  padding: 7px 12px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.preview-badge a { margin-left: 8px; font-weight: 600; }

@media (max-width: 600px) {
  .cert-grid, .wells-list { grid-template-columns: 1fr; }
  .cert-meta dt, .well-meta dt { min-width: 92px; }
  .gallery-grid { columns: 2 150px; column-gap: 10px; }
  .gallery-item { margin-bottom: 10px; }
  .wells-map { height: 60vh; }
}

/* ---------- Menu rozwijane, gdy nie mieści się w linii (klasę ustawia js/site.js) ---------- */
html.nav-compact .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
html.nav-compact .nav {
  position: absolute;
  top: 64px; left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  padding: 12px 16px 16px;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--border);
  display: none;
}
html.nav-compact .nav.open { display: flex; }
html.nav-compact .nav a { padding: 11px 12px; }
html.nav-compact .nav .btn-login { margin: 8px 0 0; text-align: center; }

/* ---------- Oś czasu bez obrazka, formatowanie polityki z edytora ---------- */
.timeline .panel.no-img { grid-template-columns: 1fr; }
.prose h3 { font-size: 16.5px; margin: 22px 0 8px; color: var(--text); }
.prose ul, .prose ol { color: var(--text-muted); margin: 0 0 14px; padding-left: 22px; }
.prose li { margin: 0 0 6px; }
.prose b, .prose strong { color: var(--text); }
