/* =========================================================
   Neurolog Opole – lek. Robert Zdanowski
   Ciemny, grafitowy motyw „premium”
   ========================================================= */

/* ---------- Fonty (self-hosted, licencja SIL OFL) ---------- */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("../fonts/cormorant-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Zmienne ---------- */
:root {
  --bg: #0b0c0e;
  --bg-2: #101114;
  --surface: #15171a;
  --surface-2: #1b1e22;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eceef0;
  --muted: #a2a7ae;
  --dim: #8a9098;
  --accent: #c8b68e;
  --accent-soft: rgba(200, 182, 142, 0.12);
  --silver: linear-gradient(135deg, #f4f5f6 0%, #b9bdc3 45%, #7d828a 100%);

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1160px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(200, 182, 142, 0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 350;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1; }

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
a:hover { color: #fff; text-decoration-color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: #111; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.55rem; }

p { margin: 0 0 1.1em; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.silver {
  background: var(--silver);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 38em;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  transform: translateY(-1px);
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: linear-gradient(180deg, #f1f2f4, #c4c8ce);
  border-color: transparent;
  color: #0d0e10;
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.btn--primary:hover {
  background: linear-gradient(180deg, #ffffff, #d4d7dc);
  color: #000;
}

.btn--small { padding: 0.6rem 1.1rem; font-size: 0.875rem; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 14, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav { display: flex; align-items: center; gap: 0.4rem; }
.nav a:not(.btn) {
  position: relative;
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.25rem;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:not(.btn):hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { margin-left: 0.6rem; }

/* ---------- Hero (strona główna) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero h1 { margin-bottom: 0.4em; }
.hero h1 small {
  display: block;
  margin-bottom: 0.35em;
  font-family: var(--sans);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}
.hero__art {
  position: relative;
  aspect-ratio: 1;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.hero__art img { width: 100%; height: 100%; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.4rem;
  margin-top: 3.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.fact__value {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-variant-numeric: lining-nums;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
}
.fact__label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Banner podstron ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(11, 12, 14, 0) 0%, var(--bg) 100%),
    url("../img/banner-eeg.svg") center / cover no-repeat;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); margin: 0; }
.page-hero .lead { margin-top: 1rem; margin-bottom: 0; }

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  color: var(--dim);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.5; }
.breadcrumbs a { text-decoration: none; color: var(--muted); }

/* ---------- Sekcje ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.section__head h2 { margin: 0; }
.section__head p { margin: 0; max-width: 32em; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 500; }

/* ---------- Karty ---------- */
.card {
  position: relative;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card__label {
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Lista schorzeń ---------- */
.conditions {
  columns: 2;
  column-gap: clamp(2.5rem, 6vw, 5.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.conditions li {
  position: relative;
  display: flex;
  gap: 1.1rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
  font-size: 1.12rem;
  color: var(--text);
  transition: padding-left 0.35s var(--ease), border-color 0.35s var(--ease);
}
.conditions li::before {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  transform: translateY(-0.35em);
  background: var(--accent);
  opacity: 0.8;
  transition: width 0.35s var(--ease);
}
.conditions li:hover::before { width: 24px; }
.conditions li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.conditions li:hover { padding-left: 0.5rem; }
.conditions li:hover::after { transform: scaleX(1); }
.conditions a { text-decoration-color: rgba(200, 182, 142, 0.45); }

.note {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
.note__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--accent-soft);
  color: var(--accent);
}
.note__icon svg { width: 24px; height: 24px; }
.note h3 { margin-bottom: 0.3em; }
.note p { margin: 0; color: var(--muted); }

/* ---------- Kontakt ---------- */
.locations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.location h3 { font-size: 1.9rem; margin-bottom: 0.2em; }
.location address {
  font-style: normal;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.7rem 1.5rem;
  margin: 0 0 1.8rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.dl dt { color: var(--dim); }
.dl dd { margin: 0; }
.dl a { text-decoration: none; }
.dl a:hover { text-decoration: underline; }

.map {
  margin-top: 1.4rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.85);
}
.map__more {
  display: block;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.contact-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.contact-strip h2 { margin-bottom: 0.3em; }
.contact-strip p { color: var(--muted); margin: 0; }
.contact-strip__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.phone-big {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}

/* ---------- Stopka ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #08090a;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}
.site-footer h2 {
  margin-bottom: 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--dim);
}
.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  cursor: pointer;
}
.linklike:hover { color: var(--text); }

/* ---------- Pasek zgody na cookies ---------- */
.consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  max-width: 760px;
  margin-inline: auto;
  padding: 1.2rem 1.4rem;
  background: rgba(23, 25, 28, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  color: var(--muted);
}
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; margin: 0; }
.consent__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- Animacja wejścia ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 0.9s var(--ease) both; }
  .reveal--2 { animation-delay: 0.12s; }
  .reveal--3 { animation-delay: 0.24s; }
  @keyframes reveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

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

/* ---------- Responsywność ---------- */
@media (max-width: 960px) {
  .hero .container,
  .split,
  .contact-strip { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 380px; order: -1; }
  .contact-strip__actions { justify-content: flex-start; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .conditions { columns: 1; }
  .locations { grid-template-columns: 1fr; }
  .site-header .container { flex-wrap: wrap; justify-content: center; padding: 0.8rem 0; gap: 0.6rem; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .nav .btn { margin-left: 0.2rem; }
  .site-header { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .hero__art { max-width: 280px; }
  .facts { gap: 1.8rem; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .nav a:not(.btn) { padding: 0.4rem 0.6rem; }
  .hero__actions .btn { width: 100%; }
  .dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .dl dd { margin-bottom: 0.6rem; }
  .note { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .consent, .hero__art, .map, .nav { display: none !important; }
  body { background: #fff; color: #000; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* =========================================================
   UŁATWIENIA DOSTĘPU (panel „Dostępność”)
   ========================================================= */

/* ---------- Przycisk i panel ---------- */
.a11y { position: relative; }
.a11y__toggle svg { width: 20px; height: 20px; }

.a11y__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 60;
  width: min(360px, calc(100vw - 2rem));
  padding: 1.3rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}
.a11y__panel[hidden] { display: none; }
.a11y__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
}
.a11y__close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.a11y__group { margin-bottom: 1.1rem; }
.a11y__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.a11y__opts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}
.a11y__opt,
.a11y__switch,
.a11y__reset {
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.a11y__opt:hover,
.a11y__switch:hover,
.a11y__reset:hover { border-color: var(--text); }
.a11y__opt[aria-pressed="true"],
.a11y__switch[aria-pressed="true"] {
  border: 2px solid var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}
.a11y__opt--size { font-family: var(--serif); font-weight: 600; }
.a11y__opt--size:nth-child(1) { font-size: 1rem; }
.a11y__opt--size:nth-child(2) { font-size: 1.25rem; }
.a11y__opt--size:nth-child(3) { font-size: 1.5rem; }
.a11y__swatch {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.2rem;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
}
.a11y__opt--contrast { display: flex; flex-direction: column; align-items: center; font-size: 0.8rem; line-height: 1.2; }
.a11y__switches { display: grid; gap: 0.5rem; }
.a11y__switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.a11y__switch::after {
  content: "wył.";
  font-size: 0.78rem;
  color: var(--dim);
}
.a11y__switch[aria-pressed="true"]::after { content: "wł."; color: var(--text); }
.a11y__reset { width: 100%; text-decoration: underline; }

/* ---------- Wielkość tekstu ---------- */
html[data-size="2"] { font-size: 125%; }
html[data-size="3"] { font-size: 150%; }
html[data-size="2"] .hero .container,
html[data-size="3"] .hero .container { grid-template-columns: 1fr; }
html[data-size="2"] .hero__art,
html[data-size="3"] .hero__art { display: none; }
html[data-size="3"] .conditions,
html[data-size="3"] .locations,
html[data-size="3"] .split,
html[data-size="3"] .contact-strip { columns: 1; grid-template-columns: 1fr; }

/* ---------- Podkreślone linki ---------- */
html[data-links="on"] a:not(.btn):not(.brand) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-decoration-color: currentColor !important;
}
html[data-links="on"] .btn { outline: 2px solid currentColor; outline-offset: 2px; }

/* ---------- Większe odstępy ---------- */
html[data-spacing="on"] body { line-height: 1.95; letter-spacing: 0.03em; word-spacing: 0.12em; }
html[data-spacing="on"] p { margin-bottom: 1.6em; }
html[data-spacing="on"] h1,
html[data-spacing="on"] h2,
html[data-spacing="on"] h3 { line-height: 1.3; letter-spacing: 0.01em; }

/* ---------- Bez animacji ---------- */
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
}

/* ---------- Wysoki kontrast: żółty na czarnym ---------- */
html[data-contrast="high"] {
  --bg: #000;
  --bg-2: #000;
  --surface: #000;
  --surface-2: #000;
  --line: #ffff00;
  --line-strong: #ffff00;
  --text: #ffff00;
  --muted: #ffff00;
  --dim: #ffff00;
  --accent: #ffff00;
  --accent-soft: #000;
  --shadow: none;
  color-scheme: dark;
}
html[data-contrast="high"] body { background: #000; }
html[data-contrast="high"] .hero::before,
html[data-contrast="high"] .card::before,
html[data-contrast="high"] .hero__art { display: none; }
html[data-contrast="high"] .page-hero { background: #000; }
html[data-contrast="high"] .site-header,
html[data-contrast="high"] .site-footer,
html[data-contrast="high"] .consent { background: #000; -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-contrast="high"] .silver { background: none; color: var(--text); }
html[data-contrast="high"] a:not(.brand) { color: #ffff00; text-decoration: underline; text-decoration-color: #ffff00; }
html[data-contrast="high"] .brand { color: #ffff00; }
html[data-contrast="high"] .btn { border: 2px solid #ffff00; color: #ffff00; background: #000; box-shadow: none; }
html[data-contrast="high"] .btn--primary,
html[data-contrast="high"] .btn:hover { background: #ffff00; color: #000; }
html[data-contrast="high"] .card,
html[data-contrast="high"] .a11y__panel { border: 2px solid #ffff00; background: #000; }
html[data-contrast="high"] .map iframe { filter: none; }
html[data-contrast="high"] .brand__mark { filter: grayscale(1) contrast(2); }
html[data-contrast="high"] :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
html[data-contrast="high"] ::selection { background: #fff; color: #000; }

/* ---------- Jasny motyw: czarny na białym ---------- */
html[data-contrast="light"] {
  --bg: #ffffff;
  --bg-2: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f7f7f8;
  --line: rgba(0, 0, 0, 0.14);
  --line-strong: rgba(0, 0, 0, 0.35);
  --text: #111111;
  --muted: #333333;
  --dim: #555555;
  --accent: #6b5010;
  --accent-soft: rgba(107, 80, 16, 0.1);
  --shadow: 0 20px 50px -30px rgba(0, 0, 0, 0.35);
  color-scheme: light;
}
html[data-contrast="light"] body { background: #fff; }
html[data-contrast="light"] .site-header { background: rgba(255, 255, 255, 0.94); }
html[data-contrast="light"] .site-footer { background: var(--bg-2); }
html[data-contrast="light"] .page-hero { background: var(--bg-2); }
html[data-contrast="light"] .hero__art img { filter: invert(1) hue-rotate(180deg); }
html[data-contrast="light"] .silver { background: none; color: var(--text); }
html[data-contrast="light"] a:hover { color: #000; }
html[data-contrast="light"] .btn:hover { color: #000; background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.5); }
html[data-contrast="light"] .btn--primary { background: #111; color: #fff; box-shadow: none; }
html[data-contrast="light"] .btn--primary:hover { background: #000; color: #fff; }
html[data-contrast="light"] .card::before { display: none; }
html[data-contrast="light"] .map iframe { filter: none; }
html[data-contrast="light"] .consent { background: rgba(255, 255, 255, 0.97); }
html[data-contrast="light"] ::selection { background: #111; color: #fff; }

/* ---------- Panel na telefonie ---------- */
@media (max-width: 760px) {
  .a11y__panel {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    bottom: 1rem;
    width: auto;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
