@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url(/assets/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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* CIS w Chełmie – WCAG 2.1 AA. Kontrasty: --fiolet 10.3:1, --tekst-2 7.0:1 na białym. */
:root {
  --fiolet: #4b2c7f;
  --fiolet-ciemny: #351d5e;
  --fiolet-jasny: #efe9f8;
  --tekst: #1b1a1f;
  --tekst-2: #4b4a55;
  --tlo: #ffffff;
  --tlo-2: #f5f3f9;
  --ramka: #cfc8dc;
  --fokus: #ffb000;
  --r: 12px;
  --szer: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.tekst-1 { font-size: 118.75%; }
html.tekst-2 { font-size: 137.5%; }
body { margin: 0; background: var(--tlo); color: var(--tekst); font: 400 1.0625rem/1.7 "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--fiolet); text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fiolet-ciemny); text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--tekst); border-radius: 4px; }
h1, h2, h3 { color: var(--fiolet-ciemny); line-height: 1.25; }
h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); font-weight: 800; margin: .3em 0 .5em; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-weight: 700; margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; margin: 1.3em 0 .5em; }
address { font-style: normal; }
code { background: var(--tlo-2); padding: .1em .35em; border-radius: 4px; }
.w { max-width: var(--szer); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.js-only { display: none !important; }
html.js .js-only { display: flex !important; }
.skip { position: absolute; left: .5rem; top: -6rem; z-index: 100; background: var(--fiolet-ciemny); color: #fff; padding: .7rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { top: .5rem; color: #fff; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem 1.3rem; border-radius: 999px; background: var(--fiolet); color: #fff; font-weight: 700; text-decoration: none; border: 2px solid var(--fiolet); }
.btn:hover { background: var(--fiolet-ciemny); border-color: var(--fiolet-ciemny); color: #fff; text-decoration: none; }
.btn-obrys { background: #fff; color: var(--fiolet); }
.btn-obrys:hover { background: var(--fiolet-jasny); color: var(--fiolet-ciemny); }
.btn-jasny { background: #fff; color: var(--fiolet-ciemny); border-color: #fff; }
.btn-jasny:hover { background: var(--fiolet-jasny); color: var(--fiolet-ciemny); border-color: var(--fiolet-jasny); }
.przyciski { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Pasek górny */
.topbar { background: var(--fiolet-ciemny); color: #fff; font-size: .9rem; }
.topbar-w { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; min-height: 2.8rem; padding-top: .3rem; padding-bottom: .3rem; }
.topbar-adres { margin: 0 auto 0 0; }
.topbar a { color: #fff; }
.topbar-linki { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.topbar-linki img { background: #fff; padding: 3px 6px; border-radius: 4px; box-sizing: content-box; }
.ikona-link { display: inline-block; padding: .15rem .55rem; border: 2px solid #fff; border-radius: 6px; font-weight: 800; text-decoration: none; font-size: .8rem; }
.dostepnosc { gap: .35rem; }
.dostepnosc button { font: inherit; font-weight: 700; min-height: 36px; padding: .2rem .7rem; border-radius: 6px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.dostepnosc button[aria-pressed="true"] { background: #fff; color: var(--fiolet-ciemny); }

/* Nagłówek i menu */
.naglowek { background: #fff; border-bottom: 1px solid var(--ramka); }
.naglowek-w { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: 1rem; padding-bottom: 1rem; }
.logo { display: flex; align-items: center; gap: 1rem; text-decoration: none; }
.logo .herb { width: 36px; }
.logo img:last-child { width: 220px; }
.naglowek-kontakt { display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .95rem; }
.naglowek-kontakt p { margin: 0; }
.naglowek-kontakt span { display: block; font-size: .8rem; color: var(--tekst-2); }
.naglowek-kontakt a { font-weight: 700; }
.menu-glowne { background: var(--tlo-2); border-top: 1px solid var(--ramka); }
.menu-glowne:focus { outline: none; }
.menu-desktop > ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu-glowne ul ul { list-style: none; margin: 0; padding: 0; }
.menu-glowne a { display: block; padding: .8rem .9rem; color: var(--tekst); font-weight: 600; text-decoration: none; }
.menu-glowne a:hover { color: var(--fiolet-ciemny); text-decoration: underline; }
.menu-glowne a[aria-current], .menu-glowne a.w-sekcji { color: var(--fiolet-ciemny); box-shadow: inset 0 -4px 0 var(--fiolet); }
.z-podmenu { position: relative; }
.menu-desktop .podmenu { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 260px; background: #fff; border: 1px solid var(--ramka); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 10px 30px rgba(20,10,40,.15); display: none; }
.menu-desktop .z-podmenu:hover .podmenu, .menu-desktop .z-podmenu:focus-within .podmenu { display: block; }
.menu-desktop .podmenu a { font-weight: 500; }
.menu-desktop .podmenu a[aria-current] { box-shadow: inset 4px 0 0 var(--fiolet); }
.menu-mobilne { display: none; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--fiolet-jasny), #fff 70%); border-bottom: 1px solid var(--ramka); }
.hero-w { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { margin-top: 0; }
.lead { font-size: 1.15rem; color: var(--tekst-2); max-width: 62ch; }
.hero-img img { border-radius: 18px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Sekcje */
.naglowek-strony { background: var(--tlo-2); border-bottom: 1px solid var(--ramka); padding: 1.25rem 0 1.5rem; }
.naglowek-strony h1 { margin-bottom: .2em; }
.sekcja { padding: 2.5rem 0; }
.sekcja > .w > h2:first-child { margin-top: 0; }
.sekcja-szara { background: var(--tlo-2); }
.sekcja-kolor { background: var(--fiolet-ciemny); color: #fff; }
.sekcja-kolor h2 { color: #fff; margin-top: 0; }
.sekcja-nagl { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.sekcja-nagl h2 { margin: 0 0 1rem; }
.okruszki ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 .5rem; padding: 0; font-size: .92rem; color: var(--tekst-2); }
.okruszki li + li::before { content: "›"; margin: 0 .5rem; }
.data { color: var(--tekst-2); font-size: .92rem; margin: .2rem 0 .8rem; }

/* Karty */
.karty { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.25rem; }
.karta article { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ramka); border-radius: var(--r); overflow: hidden; }
.karta article:focus-within, .karta article:hover { box-shadow: 0 8px 24px rgba(40,20,80,.14); border-color: var(--fiolet); }
.karta-img { aspect-ratio: 16/9; background: var(--tlo-2); border-bottom: 1px solid var(--ramka); }
.karta-img picture, .karta-img img { width: 100%; height: 100%; object-fit: contain; }
.karta-txt { padding: 1rem 1.2rem 1.2rem; }
.karta h2, .karta h3 { font-size: 1.1rem; margin: 0 0 .3rem; }
.karta h2 a, .karta h3 a { text-decoration: none; color: var(--fiolet-ciemny); }
.karta h2 a::after, .karta h3 a::after { content: ""; position: absolute; inset: 0; }
.karta h2 a:hover, .karta h3 a:hover { text-decoration: underline; }
.karta p { margin: .2rem 0 0; font-size: .95rem; }
.karta-prosta article { border-left: 5px solid var(--fiolet); }
.sekcja-kolor .karta article { border-color: transparent; }

/* Treść */
.tresc { max-width: 78ch; }
.tresc img { border-radius: 8px; margin: 1rem 0; }
.art-foto { margin: 0 0 1.5rem; }
.art-foto img { border-radius: 12px; width: 100%; }
.tresc table { border-collapse: collapse; width: 100%; margin: 1rem 0; display: block; overflow-x: auto; }
.tresc th, .tresc td { border: 1px solid var(--ramka); padding: .5rem .7rem; text-align: left; vertical-align: top; }
.tresc th { background: var(--tlo-2); }
.etr { font-size: 1.2rem; line-height: 1.8; }
.etr li { margin: .4rem 0; }
.podstrony ul, .lista-linkow { list-style: none; padding: 0; margin: 1.5rem 0; }
.lista-linkow li { padding: .7rem 0; border-bottom: 1px solid var(--ramka); }
.lista-linkow .data { display: block; margin: .15rem 0 0; }
.podstrony ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.podstrony a { display: block; padding: .6rem 1rem; border: 2px solid var(--fiolet); border-radius: 999px; font-weight: 600; text-decoration: none; }
.podstrony a:hover { background: var(--fiolet-jasny); }
.pliki { list-style: none; padding: 0; margin: 0; max-width: 78ch; }
.pliki li { border-bottom: 1px solid var(--ramka); }
.pliki a { display: block; padding: .8rem .2rem .8rem 2.2rem; position: relative; font-weight: 600; }
.pliki a::before { content: ""; position: absolute; left: .3rem; top: .95rem; width: 1.1rem; height: 1.35rem; border: 2px solid currentColor; border-radius: 2px; }
.plik-info { font-weight: 400; color: var(--tekst-2); }
.mapa { columns: 2 22rem; padding-left: 1.2rem; }
.mapa li { margin: .25rem 0; break-inside: avoid; }

/* Galeria i lightbox */
.galeria ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.galeria a { display: block; border-radius: 8px; overflow: hidden; }
.galeria img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin: 0; border-radius: 0; }
dialog#lightbox { border: 0; padding: 0; max-width: min(96vw, 1200px); max-height: 94vh; background: #111; color: #fff; border-radius: 12px; }
dialog#lightbox::backdrop { background: rgba(0,0,0,.85); }
dialog#lightbox figure { margin: 0; }
dialog#lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
dialog#lightbox figcaption { padding: .6rem 1rem; font-size: .95rem; }
.lb-przyciski { display: flex; justify-content: center; gap: .5rem; padding: 0 1rem 1rem; }
.lb-przyciski button { font: inherit; font-weight: 700; min-height: 44px; padding: .4rem 1rem; border-radius: 8px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }

/* Film PJM */
.film { position: relative; max-width: 640px; border-radius: 12px; overflow: hidden; background: #000; aspect-ratio: 16/9; }
.film img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play { position: absolute; inset: auto 1rem 1rem 1rem; justify-content: center; font: inherit; font-weight: 700; min-height: 48px; border: 0; border-radius: 999px; background: #fff; color: var(--fiolet-ciemny); cursor: pointer; padding: .6rem 1rem; }

/* Kafelki, kontakt, nawigacja */
.kafelki { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.kafelki a { display: block; height: 100%; padding: 1rem 1.1rem; border: 1px solid var(--ramka); border-radius: var(--r); text-decoration: none; background: #fff; }
.kafelki a:hover { border-color: var(--fiolet); background: var(--fiolet-jasny); }
.kafelki strong { display: block; color: var(--fiolet-ciemny); }
.kafelki span { color: var(--tekst-2); font-size: .92rem; }
.dwie-kol { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.dwie-kol h2:first-child { margin-top: 0; }
.kontakt-siatka { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.kontakt-duzy { display: block; padding: 1.3rem 1.4rem; border-radius: var(--r); background: var(--fiolet-ciemny); color: #fff; text-decoration: none; }
a.kontakt-duzy:hover { background: var(--fiolet); color: #fff; }
.kontakt-duzy span { display: block; font-size: .85rem; color: #e4dcf2; }
.kontakt-duzy strong { font-size: 1.25rem; word-break: break-word; }
.art-nawigacja { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; max-width: 78ch; }
.art-nawigacja a { display: block; padding: 1rem; border: 1px solid var(--ramka); border-radius: var(--r); text-decoration: none; }
.art-nawigacja a:hover { border-color: var(--fiolet); }
.art-nawigacja span { display: block; font-size: .85rem; color: var(--tekst-2); }
.nav-nast { text-align: right; grid-column: 2; }
.paginacja ul { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 2rem 0 0; }
.paginacja a { display: block; min-width: 44px; min-height: 44px; line-height: 44px; text-align: center; border: 1px solid var(--ramka); border-radius: 8px; text-decoration: none; font-weight: 600; }
.paginacja a[aria-current] { background: var(--fiolet); color: #fff; border-color: var(--fiolet); }

/* Stopka */
.stopka { background: var(--fiolet-ciemny); color: #fff; margin-top: 2rem; }
.stopka-w { display: grid; grid-template-columns: 1.2fr 1.2fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 1.5rem; }
.stopka h2 { color: #fff; font-size: 1.05rem; margin: 0 0 .7rem; }
.stopka ul { list-style: none; padding: 0; margin: 0; }
.stopka li { margin: .35rem 0; }
.stopka a { color: #fff; }
.stopka-dol { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px solid rgba(255,255,255,.3); padding-top: 1rem; padding-bottom: 1rem; font-size: .9rem; }
.stopka-dol p { margin: 0; }

/* Wysoki kontrast */
html.kontrast { --fiolet: #ffff00; --fiolet-ciemny: #ffff00; --fiolet-jasny: #000; --tekst: #fff; --tekst-2: #fff; --tlo: #000; --tlo-2: #000; --ramka: #ffff00; --fokus: #00ffff; }
html.kontrast body, html.kontrast .naglowek, html.kontrast .karta article, html.kontrast .kafelki a, html.kontrast .btn-obrys, html.kontrast .menu-desktop .podmenu { background: #000; color: #fff; }
html.kontrast .topbar, html.kontrast .stopka, html.kontrast .sekcja-kolor, html.kontrast .kontakt-duzy, html.kontrast .hero { background: #000; border-block: 2px solid #ffff00; }
html.kontrast a, html.kontrast h1, html.kontrast h2, html.kontrast h3, html.kontrast .topbar a, html.kontrast .stopka a, html.kontrast .menu-glowne a { color: #ffff00; }
html.kontrast .btn, html.kontrast .paginacja a[aria-current] { background: #ffff00; color: #000; border-color: #ffff00; }
html.kontrast .logo, html.kontrast .topbar-linki img { background: #fff; border-radius: 6px; padding: 4px; }
html.kontrast img { filter: grayscale(.3) contrast(1.1); }

/* Responsywność */
@media (max-width: 960px) {
  .menu-desktop { display: none; }
  .menu-mobilne { display: block; }
  .menu-mobilne summary { list-style: none; cursor: pointer; font-weight: 700; padding: .8rem 0; min-height: 44px; }
  .menu-mobilne summary::-webkit-details-marker { display: none; }
  .menu-mobilne summary::before { content: "☰ "; }
  .menu-mobilne[open] summary::before { content: "✕ "; }
  .menu-mobilne > ul { list-style: none; margin: 0; padding: 0 0 1rem; }
  .menu-mobilne .podmenu a { padding-left: 2rem; font-weight: 500; }
  .hero-w, .dwie-kol, .stopka-w { grid-template-columns: 1fr; }
  .kontakt-siatka { grid-template-columns: 1fr; }
  .naglowek-kontakt { font-size: .9rem; }
}
@media (max-width: 560px) {
  .kafelki, .art-nawigacja { grid-template-columns: 1fr; }
  .nav-nast { grid-column: auto; text-align: left; }
  .logo img:last-child { width: 170px; }
  .naglowek-kontakt { display: none; }
  .topbar-adres { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .menu-glowne, .stopka, .skip, .art-nawigacja, dialog { display: none !important; } a { color: #000; } }
html.kontrast .dostepnosc button { border-color: #ffff00; color: #ffff00; }
html.kontrast .dostepnosc button[aria-pressed="true"] { background: #ffff00; color: #000; }
html.kontrast .ikona-link { border-color: #ffff00; }
