/* Generator dostępności. Styl dostępny z założenia:
   wysoki kontrast, widoczny fokus, cele dotykowe minimum 44 px. */

:root {
  --atrament: #12233d;
  --tekst: #1a1a1a;
  --tlo: #ffffff;
  --akcent: #1d4ed8;
  --akcent-ciemny: #163aa6;
  --ostrzezenie: #8a2f0b;
  --ostrzezenie-tlo: #fdf0ea;
  --szary: #eef1f6;
  --obrys: #c4ccd8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--tekst);
  background: var(--tlo);
}

.pomin {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--atrament);
  color: #fff;
  padding: 0.8rem 1.2rem;
  z-index: 10;
}
.pomin:focus { left: 0; }

a { color: var(--akcent); text-underline-offset: 3px; }
a:hover { color: var(--akcent-ciemny); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--akcent);
  outline-offset: 2px;
  border-radius: 2px;
}

.naglowek {
  background: var(--atrament);
  padding: 0.6rem 1rem;
}
.naglowek nav {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}
.marka {
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  padding: 0.6rem 0;
}
.marka:hover, .marka:focus { text-decoration: underline; color: #fff; }
.menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.2rem;
  margin: 0;
  padding: 0;
}
.menu a {
  color: #dbe4f5;
  text-decoration: none;
  display: inline-block;
  padding: 0.7rem 0.2rem; /* cel dotykowy */
}
.menu a:hover, .menu a:focus { color: #fff; text-decoration: underline; }

.tresc {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

h1 { font-size: 1.7rem; line-height: 1.25; color: var(--atrament); }
h2 { font-size: 1.3rem; margin-top: 2.2rem; color: var(--atrament); }
h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.lead { font-size: 1.12rem; }
.postep { color: #3c4a61; font-weight: 600; margin-bottom: 0.2rem; }
.link-roboczy { background: var(--szary); padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.98rem; overflow-wrap: anywhere; }

ul { padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }

fieldset {
  border: 1px solid var(--obrys);
  border-radius: 8px;
  padding: 0.9rem 1.1rem 0.6rem;
  margin: 0 0 1.4rem;
}
legend { font-weight: 700; padding: 0 0.4rem; }

.pole { margin: 0 0 1.4rem; }
.pole label { display: block; font-weight: 700; margin-bottom: 0.25rem; }
.pomoc { display: block; color: #3c4a61; font-size: 0.95rem; margin-bottom: 0.4rem; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], textarea {
  width: 100%;
  font: inherit;
  color: var(--tekst);
  border: 2px solid var(--obrys);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  min-height: 44px;
  background: #fff;
}
textarea { resize: vertical; }
input:focus, textarea:focus { border-color: var(--akcent); }

.opcja { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0 0 0.35rem; }
.opcja input[type="radio"], .opcja input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  margin-top: 0.15rem;
  accent-color: var(--akcent);
}
.opcja label { padding: 0.35rem 0; cursor: pointer; }

.przycisk {
  display: inline-block;
  background: var(--akcent);
  color: #fff;
  border: 2px solid var(--akcent);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  min-height: 48px;
  text-decoration: none;
  cursor: pointer;
  margin: 0.3rem 0.6rem 0.3rem 0;
}
.przycisk:hover { background: var(--akcent-ciemny); border-color: var(--akcent-ciemny); color: #fff; }
.przycisk.drugi { background: #fff; color: var(--akcent); }
.przycisk.drugi:hover { background: var(--szary); color: var(--akcent-ciemny); }

.pasek-akcji { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; }

.bledy {
  background: var(--ostrzezenie-tlo);
  border: 2px solid var(--ostrzezenie);
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0;
}
.bledy h2 { margin-top: 0; font-size: 1.1rem; color: var(--ostrzezenie); }
.bledy a { color: var(--ostrzezenie); font-weight: 700; }

.stopka {
  border-top: 1px solid var(--obrys);
  background: var(--szary);
  padding: 1.2rem 1rem 2rem;
}
.stopka p { max-width: 46rem; margin: 0.4rem auto; font-size: 0.95rem; color: #33415c; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

@media print {
  .naglowek, .stopka, .przycisk, .pasek-akcji { display: none; }
}
