/* 14-200.pl – wspólny styl stron.
 * Kolory: granat (tekst, ciemne tło), żółty (akcent: tło pod granatowym tekstem, tekst tylko na granacie),
 * woda (Jeziorak: woda na mapie, odnośniki), ziemia (tło sekcji jak ląd na mapie).
 * Kroje: Overpass (nagłówki, interfejs), Source Serif 4 (dłuższy tekst). */
:root {
  --granat: #111827;
  --granat-2: #374151;
  --szary: #4b5563;
  --zolty: #ffca1a;
  --zolty-jasny: #ffe07a;
  --woda: #3f6d93;
  --woda-tafla: #8db4d6;
  --woda-jasna: #dce8f1;
  --ziemia: #eceeea;
  --ziemia-2: #e1e4de;
  --papier: #ffffff;
  --kreska: #d4d8d2;
  --f-ui: "Overpass", "Segoe UI", system-ui, sans-serif;
  --f-tekst: "Source Serif 4", Georgia, "Times New Roman", serif;
  --pasek: 72px;
  --szer: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--pasek); -webkit-text-size-adjust: 100%; }
body.nowy { margin: 0; background: var(--papier); color: var(--granat); font: 400 18px/1.6 var(--f-tekst); }
/* Strony w Tailwind: wspólny nagłówek i kroje, bez zmian w treści. */
body:not(.nowy) .top { font-size: 16px; line-height: 1.5; }
.nowy img, .nowy svg { max-width: 100%; }
.nowy a { color: var(--woda); text-underline-offset: 3px; }
.nowy a:hover { color: var(--granat); }
:focus-visible { outline: 3px solid var(--zolty); outline-offset: 2px; box-shadow: 0 0 0 5px var(--granat); border-radius: 4px; }
.nowy h1, .nowy h2, .nowy h3 { font-family: var(--f-ui); line-height: 1.12; letter-spacing: -0.015em; margin: 0; }
.nowy p { margin: 0 0 1em; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 2000; background: var(--zolty); color: var(--granat); padding: 14px 16px; min-height: 44px; font: 700 16px/1 var(--f-ui); }
.skip-link:focus { left: 8px; }
.wrap { max-width: var(--szer); margin: 0 auto; padding: 0 20px; }

/* Przyciski: jeden wypełniony na ekran, pozostałe z ramką. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 10px;
  font: 800 17px/1 var(--f-ui); text-decoration: none; white-space: nowrap; border: 2px solid transparent; cursor: pointer; }
.btn-main, .nowy .btn-main { background: var(--zolty); color: var(--granat); }
.btn-main:hover, .nowy .btn-main:hover { background: var(--zolty-jasny); color: var(--granat); }
.btn-line, .nowy .btn-line { border-color: var(--granat); color: var(--granat); background: transparent; }
.btn-line:hover, .nowy .btn-line:hover { background: var(--granat); color: var(--papier); }
.nowy .on-dark .btn-line { border-color: rgba(255,255,255,.6); color: #fff; }
.nowy .on-dark .btn-line:hover { background: #fff; color: var(--granat); }

/* Górny pasek */
.top { position: sticky; top: 0; z-index: 1100; background: var(--papier); border-bottom: 1px solid var(--kreska); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: var(--pasek); }
.top-logo { display: inline-flex; min-height: 44px; align-items: center; }
.top-logo img { height: 36px; width: auto; display: block; max-width: none; }
.top-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.top-nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font: 600 17px/1 var(--f-ui); color: var(--granat-2); text-decoration: none; border-radius: 8px; }
.top-nav a:not(.btn):hover { background: var(--ziemia); color: var(--granat); }
.top-nav a[aria-current="page"] { color: var(--granat); text-decoration: underline; text-decoration-color: var(--zolty); text-decoration-thickness: 4px; text-underline-offset: 8px; }
.top-nav .btn { margin-left: 12px; }
.top-menu { display: none; }
@media (max-width: 1023px) {
  .top .wrap { gap: 12px; }
  .top-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--papier); border-bottom: 1px solid var(--kreska); padding: 8px 20px 20px; box-shadow: 0 12px 24px rgba(17,24,39,.12); }
  .top-nav.open { display: flex; }
  .top-nav a:not(.btn) { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--ziemia); border-radius: 0; }
  .top-nav .btn { margin: 16px 0 0; }
  .top-menu { display: inline-flex; margin-left: auto; min-height: 44px; padding: 0 16px; align-items: center; gap: 8px;
    font: 700 17px/1 var(--f-ui); color: var(--granat); background: var(--ziemia); border: 0; border-radius: 10px; cursor: pointer; }
}

/* Sekcje */
.sec { padding: 72px 0; }
.sec-ziemia { background: var(--ziemia); }
.sec-granat { background: var(--granat); color: #e5e7eb; }
.sec-granat h2 { color: #fff; }
.sec h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin-bottom: 16px; }
.sec .lead { max-width: 62ch; color: var(--granat-2); }
.sec-granat .lead { color: #d1d5db; }

/* Stopka */
.foot { background: var(--granat); color: #d1d5db; padding: 48px 0 24px; font: 400 16px/1.5 var(--f-ui); }
.foot a, .nowy .foot a { color: #fff; }
.foot-last a { text-decoration: underline; }
.foot-top { display: flex; flex-wrap: wrap; gap: 32px 64px; justify-content: space-between; }
.foot-logo { height: 36px; width: auto; display: block; margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot li a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.foot li a:hover { text-decoration: underline; }
.foot-last { margin-top: 32px; padding-top: 20px; border-top: 1px solid #374151; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (max-width: 640px) { .foot-last { flex-direction: column; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
