/* CBIK – Centrum Bibliotek i Kultury Gminy Chełm
   Kolory marki z logo; wszystkie pary tekst/tło spełniają WCAG 2.1 AA. */

@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/garamond-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/garamond-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: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/garamond-latin-ext-italic.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url(/static/fonts/garamond-latin-italic.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: 100 900; font-display: swap;
  src: url(/static/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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/static/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; }

:root {
  --ink: #16122b;
  --ink-2: #463f5c;
  --paper: #faf7f2;
  --paper-2: #f3eee5;
  --surface: #ffffff;
  --line: #e7e0d4;
  --brand: #5b21b6;
  --brand-d: #3b0f7a;
  --brand-l: #efe8fb;
  --accent: #b23a08;
  --logo-1: #a12acb; --logo-2: #0000ff; --logo-3: #ff0000; --logo-4: #ff6600;
  --focus: #ffbf00;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(22, 18, 43, .05), 0 8px 28px rgba(22, 18, 43, .08);
  --shadow-lg: 0 2px 6px rgba(22, 18, 43, .06), 0 22px 50px rgba(22, 18, 43, .14);
  --wrap: 1240px;
  --serif: "EB Garamond", Garamond, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
html[data-font="1"] { font-size: 112.5%; }
html[data-font="2"] { font-size: 125%; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 7px var(--ink); border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--ink); font-feature-settings: "kern", "liga", "onum" 0, "lnum"; }
h1 { font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 1.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.wrap--text { max-width: calc(780px + 2 * clamp(16px, 4vw, 40px)); }
.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; }
main { display: block; padding-bottom: 4rem; }
main:focus { outline: none; }
.ico { flex: none; vertical-align: middle; }
.kicker { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.kicker--light { color: #ffc89e; }

/* --- przyciski --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: 600 1rem/1.2 var(--sans); text-decoration: none; padding: .85rem 1.4rem; border-radius: 999px; border: 2px solid var(--ink); color: var(--ink); background: transparent; min-height: 48px; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--ink); color: #fff; }
.btn .ico { width: 20px; height: 20px; transition: transform .15s; }
.btn:hover .ico { transform: translateX(3px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.btn--light { background: #fff; border-color: #fff; color: var(--ink); }
.btn--light:hover { background: var(--paper-2); border-color: var(--paper-2); color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: .55rem 1.1rem; min-height: 42px; font-size: .95rem; }

/* --- linki „przejdź do” --- */
.skip { list-style: none; margin: 0; padding: 0; }
.skip a { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: 0 0 10px 10px; font-weight: 600; }
.skip a:focus { top: 0; }

/* --- pasek narzędzi --- */
.topbar { background: var(--ink); color: #ece8f6; font-size: .85rem; position: relative; }
.topbar::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--logo-1) 0 37%, var(--logo-2) 37% 74%, var(--logo-3) 74% 81%, var(--logo-4) 81%); }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1.5rem; padding-block: .55rem .4rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__links { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.bip { display: inline-flex; align-items: center; gap: .45rem; }
.bip__mark { background: #d4213d; color: #fff; font-weight: 800; font-size: .68rem; padding: .12rem .38rem; border-radius: 4px; letter-spacing: .05em; }
.a11y { display: flex; align-items: center; gap: .3rem; }
.a11y button { font: 700 .85rem var(--sans); color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: .15rem .55rem; cursor: pointer; min-height: 32px; min-width: 32px; }
.a11y button:hover { border-color: #fff; }
.a11y button[data-font="1"] { font-size: .95rem; }
.a11y button[data-font="2"] { font-size: 1.05rem; }
.a11y button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.a11y__contrast { margin-left: .4rem; }

/* --- nagłówek --- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; gap: 1.5rem; min-height: 84px; }
.brand { display: block; flex: none; }
.brand img { width: clamp(118px, 12vw, 160px); height: auto; display: block; }
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: .6rem .7rem; border-radius: 10px; }
.nav__item > a:hover { background: var(--paper-2); color: var(--ink); }
.nav__item > a[aria-current], .nav__item > a.is-active { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); border-radius: 0; }
.sub-toggle { background: transparent; border: 0; color: var(--ink); cursor: pointer; padding: .5rem .35rem; margin-left: -.45rem; border-radius: 8px; }
.sub-toggle:hover { background: var(--paper-2); }
.sub-toggle::after { content: ""; display: block; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::after { transform: translateY(20%) rotate(-135deg); }
.nav__sub { display: none; position: absolute; top: calc(100% + 10px); left: -.5rem; z-index: 60; min-width: 17rem; list-style: none; margin: 0; padding: .6rem; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__sub a { display: block; padding: .6rem .85rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--brand-l); color: var(--brand-d); }
.has-sub.is-open > .nav__sub { display: block; }
@media (hover: hover) and (min-width: 1101px) { .has-sub:hover > .nav__sub { display: block; } }
.nav__search { display: none; }
.header__tools { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 1100px) {
  .header__tools { margin-left: auto; }
  .nav-toggle { display: inline-flex; align-items: center; gap: .6rem; font: 700 .95rem var(--sans); background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .65rem 1.1rem; cursor: pointer; min-height: 44px; }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; border-radius: 2px; }
  .nav-toggle__bars::before { position: absolute; top: -6px; } .nav-toggle__bars::after { position: absolute; top: 6px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 84px); overflow-y: auto; padding: .75rem clamp(16px, 4vw, 40px) 1.5rem; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item > a { flex: 1; padding: .85rem .25rem; font-size: 1.05rem; }
  .nav__item > a[aria-current], .nav__item > a.is-active { box-shadow: none; }
  .sub-toggle { padding: .9rem 1rem; margin: 0; }
  .nav__sub { position: static; width: 100%; box-shadow: none; border: 0; background: var(--paper); margin: 0 0 .75rem; }
  .nav__sub::before { display: none; }
  .nav__search { display: flex; gap: .5rem; margin-top: 1rem; }
  .nav__search input { flex: 1; min-width: 0; font: inherit; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 999px; }
}
@media (max-width: 560px) { .header__cta { display: none; } .nav-toggle__label { display: none; } .nav-toggle { padding: .65rem .8rem; } }

/* --- okruszki --- */
.crumbs { font-size: .88rem; padding-top: 1.5rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin: 0 .5rem 0 .25rem; color: #9a91ad; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* --- baner --- */
.hero { position: relative; isolation: isolate; min-height: clamp(460px, 68vh, 680px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(16,11,34,.88) 0%, rgba(16,11,34,.62) 45%, rgba(16,11,34,.15) 100%),
  linear-gradient(0deg, rgba(16,11,34,.75) 0%, rgba(16,11,34,0) 55%); }
.hero__in { padding-block: 4rem 7.5rem; width: 100%; }
.hero__in > * { max-width: 46rem; }
.hero__kicker { display: flex; align-items: center; gap: .75rem; font-size: .85rem; font-weight: 600; margin: 0 0 1rem; }
.hero__kicker span { background: var(--logo-4); color: var(--ink); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; padding: .3rem .6rem; border-radius: 999px; }
.hero__title { font-size: clamp(2.3rem, 1.3rem + 3.8vw, 4.3rem); color: #fff; margin-bottom: 1rem; text-wrap: balance; }
.hero__title--long { font-size: clamp(1.95rem, 1.15rem + 2.7vw, 3.3rem); }
.hero__title a { color: #fff; text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.hero__lead { font-size: 1.15rem; color: #efeaf8; max-width: 38rem; margin: 0 0 1.75rem; }

/* --- wyszukiwanie pod banerem --- */
.finder { position: relative; z-index: 2; margin-top: -4.5rem; }
.finder__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 0; max-width: calc(var(--wrap) - 2 * clamp(16px, 4vw, 40px)); }
.finder__col { padding: 1.75rem 2rem; }
.finder__col + .finder__col { border-left: 1px solid var(--line); }
.finder__h { display: flex; align-items: center; gap: .6rem; font-size: 1.55rem; margin-bottom: .4rem; }
.finder__h .ico { color: var(--brand); }
.finder__col p { color: var(--ink-2); margin: 0 0 1rem; }
.finder__row { display: flex; gap: .5rem; margin-top: 1rem; }
.finder__row input { flex: 1; min-width: 0; font: inherit; padding: .8rem 1.2rem; border: 2px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); min-height: 48px; }
.finder__row input:focus { border-color: var(--brand); outline: none; background: #fff; }
@media (max-width: 820px) {
  .finder { margin-top: -3rem; }
  .finder__in { grid-template-columns: minmax(0, 1fr); margin-inline: clamp(16px, 4vw, 40px); }
  .finder__col + .finder__col { border-left: 0; border-top: 1px solid var(--line); }
  .finder__col { padding: 1.4rem; }
}

/* --- na skróty --- */
.quick { margin-top: 2.5rem; }
.quick__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.quick__list a { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; height: 100%; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.3; transition: transform .15s, box-shadow .15s, border-color .15s; }
.quick__list .ico { width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--brand-l); color: var(--brand); transition: background .15s, color .15s; }
.quick__list a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.quick__list a:hover .ico { background: var(--brand); color: #fff; }
@media (max-width: 1000px) { .quick__list { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .quick__list { grid-template-columns: repeat(2, 1fr); } }

/* --- sekcje --- */
.news { margin-top: 5rem; }
.news--more { margin-top: 4rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 2px solid var(--brand); padding-bottom: .15rem; }
.more .ico { width: 20px; height: 20px; color: var(--brand); transition: transform .15s; }
.more:hover { color: var(--brand); }
.more:hover .ico { transform: translateX(3px); }

.mag { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2.5rem; }
.mag__side { display: flex; flex-direction: column; }
.row { position: relative; display: grid; grid-template-columns: 132px 1fr; gap: 1.1rem; align-items: center; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; padding-top: 0; }
.row__media { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--brand-l); }
.row__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.row:hover .row__media img { transform: scale(1.05); }
.row__title { font-size: 1.3rem; margin: 0; line-height: 1.22; }
.row__title a { color: var(--ink); text-decoration: none; }
.row__title a::after { content: ""; position: absolute; inset: 0; }
.row:hover .row__title a { color: var(--brand); text-decoration: underline; }
.row .card__date { margin-bottom: .25rem; }
@media (max-width: 900px) { .mag { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; }
.grid3--list { margin-top: 2rem; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }

.card { position: relative; display: flex; flex-direction: column; }
.card__media { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--brand-l); }
.card--big .card__media { aspect-ratio: 16 / 10; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__ph { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, #2a1459, var(--brand) 55%, #8a3fd1); }
.card__ph span { color: rgba(255,255,255,.9); font-family: var(--serif); font-weight: 500; font-size: 2.8rem; letter-spacing: .04em; }
.card__body { padding: 1.1rem .15rem 0; display: flex; flex-direction: column; gap: .4rem; }
.card__date { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.card__title { margin: 0; font-size: 1.5rem; line-height: 1.18; }
.card--big .card__title { font-size: clamp(1.85rem, 1.35rem + 1.4vw, 2.55rem); }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card__title a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; }
.card__excerpt { margin: .2rem 0 0; color: var(--ink-2); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card--big .card__excerpt { font-size: 1.05rem; -webkit-line-clamp: 4; }

/* --- wyróżnienie: konkurs --- */
.feature { margin-top: 5rem; background: var(--ink); color: #ece8f6; overflow: hidden; }
.feature__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; padding-block: 4.5rem; }
.feature__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); display: block; box-shadow: 0 30px 60px rgba(0,0,0,.35); }
.feature h2 { color: #fff; font-style: italic; font-weight: 400; }
.feature__text > p { font-size: 1.1rem; max-width: 36rem; }
.feature__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 860px) { .feature__in { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; } }

/* --- świetlice --- */
.places { margin-top: 5rem; background: var(--brand-l); padding-block: 4rem; }
.places__lead { font-size: 1.15rem; color: var(--ink-2); max-width: 44rem; margin: -1rem 0 1.75rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips a { display: inline-block; padding: .6rem 1.15rem; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid transparent; transition: background .15s, color .15s; }
.chips a:hover, .chips a[aria-current] { background: var(--brand); color: #fff; }

/* --- odwiedź nas --- */
.visit { margin-top: 5rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.75rem; }
.visit__card, .visit__hours { background: var(--surface); border-radius: var(--r); padding: 2.25rem; box-shadow: var(--shadow); }
.visit__addr { display: flex; gap: .9rem; align-items: flex-start; font-size: 1.08rem; }
.visit__addr .ico { color: var(--brand); margin-top: .2rem; }
.visit__card p:last-child { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; }
.visit__hours h3 { display: flex; align-items: center; gap: .6rem; }
.visit__hours h3 .ico { color: var(--brand); }
@media (max-width: 860px) { .visit { grid-template-columns: 1fr; } }
.hours { width: 100%; border-collapse: collapse; font-size: .98rem; }
.hours th, .hours td { text-align: left; padding: .55rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours th { font-weight: 600; padding-right: 1rem; white-space: nowrap; }

/* --- filmy --- */
.videos-sec { margin-top: 5rem; }
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.video-card { margin: 0; }
.video-card .embed { margin: 0; }
.video-card figcaption { font-family: var(--serif); font-size: 1.4rem; font-weight: 500; margin-top: .9rem; }
@media (max-width: 700px) { .videos { grid-template-columns: 1fr; } }

/* --- osadzenia ładowane na żądanie --- */
.embed { position: relative; background: radial-gradient(circle at 30% 20%, #2e2352, #120d24); color: #fff; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 1rem; margin: 1.5rem 0; text-align: center; }
.embed--map { aspect-ratio: 4 / 3; background: radial-gradient(circle at 30% 20%, #1d4040, #0c1f1f); }
.embed__play { font: 700 1rem var(--sans); background: #fff; color: var(--ink); border: 0; border-radius: 999px; padding: .95rem 1.5rem .95rem 3.3rem; cursor: pointer; position: relative; max-width: 100%; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .15s; }
.embed__play::before { content: ""; position: absolute; left: 1.35rem; top: 50%; transform: translateY(-50%); border-left: 13px solid #d4213d; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.embed--map .embed__play::before { border: 0; width: 13px; height: 13px; border-radius: 50% 50% 50% 0; background: #d4213d; transform: translateY(-60%) rotate(-45deg); }
.embed__play:hover { transform: scale(1.04); }
.embed__note { position: absolute; bottom: .6rem; left: 1rem; right: 1rem; margin: 0; font-size: .78rem; color: #d9d3ea; }
.embed__note a { color: #fff; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-link a { display: inline-flex; gap: .6rem; align-items: center; font-weight: 600; padding: .7rem 1.1rem; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; text-decoration: none; }
.embed-link--fb a::before { content: "f"; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #1b4fb8; color: #fff; font-weight: 800; font-family: var(--sans); }

/* --- artykuł i podstrony --- */
.article__head { max-width: 980px; padding-top: 2.5rem; margin-bottom: 2rem; }
.article__head h1 { text-wrap: balance; }
.article__lead { max-width: 1160px; margin: 0 auto 3rem; }
.article__lead img { width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r); display: block; }
.article-simple { padding-top: 2.5rem; }
.list-head { padding-top: 2.5rem; }
.prose { font-size: 1.1rem; line-height: 1.78; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: 2.05rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.6rem; margin-top: 1.7em; }
.prose h4 { font-size: 1.3rem; margin-top: 1.5em; }
.prose img { border-radius: var(--r-sm); margin: .6rem 0; }
.prose img[data-zoom], .prose a img { cursor: zoom-in; }
.prose blockquote { margin: 2rem 0; padding: .5rem 0 .5rem 1.5rem; border-left: 4px solid var(--brand); font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose .ta-center { text-align: center; } .prose .ta-right { text-align: right; } .prose .ta-justify { text-align: left; }
.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
.prose table { border-collapse: collapse; min-width: 60%; font-size: .98rem; background: var(--surface); }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; vertical-align: top; }
.prose th { background: var(--paper-2); text-align: left; }
.article__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 3.5rem 0 0; }
.article__nav a { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); text-decoration: none; font-family: var(--serif); font-weight: 500; font-size: 1.22rem; line-height: 1.25; color: var(--ink); }
.article__nav a:hover { border-color: var(--brand); color: var(--brand); }
.article__nav span { font-family: var(--sans); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.article__prev { grid-column: 2; text-align: right; }
@media (max-width: 600px) { .article__nav { grid-template-columns: 1fr; } .article__prev { grid-column: auto; text-align: left; } }
.related { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.back { margin-top: 2rem; font-weight: 700; }

.subnav, .years ul { list-style: none; margin: 0 0 2.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.subnav a, .years a { display: inline-block; padding: .5rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); color: var(--ink); font-weight: 600; font-size: .95rem; }
.subnav a:hover, .years a:hover { border-color: var(--brand); color: var(--brand); }
.subnav a[aria-current], .years a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.years { margin-top: 1.25rem; }

.localities { margin-top: 3.5rem; padding: 2rem; background: var(--brand-l); border-radius: var(--r); }
.localities h2 { font-size: 1.5rem; }
.localities ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.localities a { display: block; padding: .55rem 1rem; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 600; color: var(--ink); }
.localities a:hover, .localities a[aria-current] { background: var(--brand); color: #fff; }

.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: var(--surface); padding: 2rem; border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 2.5rem; }
.contact-box h2 { font-size: 1.35rem; }
.contact-box address { font-style: normal; margin-bottom: 1rem; }
@media (max-width: 700px) { .contact-box { grid-template-columns: 1fr; } }

.section-list { list-style: none; padding: 0; display: grid; gap: .75rem; margin-top: 2rem; }
.section-list a { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-family: var(--serif); font-weight: 500; font-size: 1.5rem; text-decoration: none; color: var(--ink); }
.section-list a::after { content: "→"; color: var(--brand); font-family: var(--sans); }
.section-list a:hover { border-color: var(--brand); color: var(--brand); }

/* --- pliki --- */
.files h2 { font-size: 1.5rem; margin-top: 2rem; }
.files ul { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .6rem; }
.file { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.file:hover { border-color: var(--brand); color: var(--brand); }
.file__ext { flex: none; display: grid; place-items: center; width: 3rem; height: 3.4rem; border-radius: 8px; background: #b91c1c; color: #fff; font-weight: 800; font-size: .72rem; clip-path: polygon(0 0, 72% 0, 100% 22%, 100% 100%, 0 100%); }
.file__name { font-weight: 600; }
.file__meta { margin-left: auto; color: var(--ink-2); font-size: .85rem; white-space: nowrap; }

/* --- galeria --- */
.albums { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 2rem; }
.album { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.album img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); transition: transform .3s; }
.album:hover img { transform: scale(1.02); }
.album__t { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; padding-top: .9rem; line-height: 1.3; }
.album:hover .album__t { color: var(--brand); text-decoration: underline; }
.album__m { color: var(--ink-2); font-size: .88rem; }
.photos { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.photos a { display: block; border-radius: var(--r-sm); overflow: hidden; }
.photos img { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; transition: transform .25s; }
.photos a:hover img { transform: scale(1.05); }
.meta { color: var(--ink-2); }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(12, 8, 24, .94); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 3.5rem 4.5rem; }
.lightbox img { max-height: calc(100vh - 8rem); max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: #fff; text-align: center; margin-top: .5rem; }
.lightbox button { position: fixed; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 50%; width: 3.2rem; height: 3.2rem; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* --- stronicowanie --- */
.pager ul { list-style: none; padding: 0; margin: 3.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 2.9rem; height: 2.9rem; padding: 0 .9rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--ink); }
.pager a:hover { border-color: var(--brand); color: var(--brand); }
.pager [aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- wyszukiwarka --- */
.search-big label { font-weight: 700; display: block; margin-bottom: .5rem; }
.search-big__row { display: flex; gap: .5rem; }
.search-big input { flex: 1; min-width: 0; font: inherit; padding: .8rem 1.2rem; border: 2px solid var(--ink-2); border-radius: 999px; min-height: 52px; background: #fff; }
.search-status { margin: 1.5rem 0; font-weight: 600; }
.search-results { padding-left: 1.25rem; }
.search-results li { margin-bottom: 1.5rem; }
.search-results a { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.search-results p { margin: .3rem 0 0; color: var(--ink-2); }
.tree, .tree ul { list-style: square; }
.tree > li { margin-bottom: .6rem; }
.notfound ul { line-height: 2.1; }

/* --- stopka --- */
.footer { background: var(--ink); color: #d9d3ea; margin-top: 3rem; }
.footer a { color: #fff; }
.footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr 1fr; gap: 2.5rem; padding-block: 4rem 3rem; }
.footer__name { font-family: var(--serif); font-size: 1.85rem; font-weight: 500; line-height: 1.2; color: #fff; margin: 0 0 .75rem; }
.footer__tag { margin: 0 0 1.5rem; }
.footer h2 { font-family: var(--sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 1.1rem; }
.footer address { font-style: normal; margin-bottom: .75rem; }
.footer .hours th, .footer .hours td { border-color: rgba(255,255,255,.12); padding: .35rem .9rem .35rem 0; font-size: .92rem; }
.footer .btn--light { color: var(--ink); }
.footer .btn--light:hover { color: var(--ink); }
.footer .links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer .links a { text-decoration: none; }
.footer .links a:hover { text-decoration: underline; }
.partners { border-top: 1px solid rgba(255,255,255,.12); padding-block: 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.partners__h { font-family: var(--sans); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin: 0; }
.partners ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; align-items: center; }
.partner { display: inline-flex; align-items: center; gap: .6rem; color: #d9d3ea !important; text-decoration: none; font-size: .9rem; }
.partner:hover { color: #fff !important; text-decoration: underline; }
.partner__logo { display: inline-grid; place-items: center; width: 34px; height: 34px; background: #fff; border-radius: 8px; flex: none; }
.partner__logo img { height: 24px; width: auto; display: block; }
.footer__bottom { background: #0d0a1c; font-size: .85rem; padding-block: 1.1rem; color: #bdb5d6; }
.footer__bottom-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; }
@media (max-width: 1000px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__top { grid-template-columns: 1fr; } }

/* --- wysoki kontrast --- */
html[data-contrast="high"] { --ink: #fff; --ink-2: #fff; --paper: #000; --paper-2: #000; --surface: #000; --line: #ffff00; --brand: #ffff00; --brand-d: #ffff00; --brand-l: #000; --accent: #ffff00; --shadow: none; --shadow-lg: none; }
html[data-contrast="high"] body { background: #000; color: #fff; }
html[data-contrast="high"] a, html[data-contrast="high"] .card__title a, html[data-contrast="high"] .row__title a,
html[data-contrast="high"] .hero__title a, html[data-contrast="high"] .nav__item > a, html[data-contrast="high"] .chips a,
html[data-contrast="high"] .quick__list a, html[data-contrast="high"] .more { color: #ffff00 !important; text-decoration: underline; }
html[data-contrast="high"] .header, html[data-contrast="high"] .topbar, html[data-contrast="high"] .footer, html[data-contrast="high"] .footer__bottom,
html[data-contrast="high"] .feature, html[data-contrast="high"] .places, html[data-contrast="high"] .hero, html[data-contrast="high"] .nav { background: #000 !important; }
html[data-contrast="high"] .hero__bg, html[data-contrast="high"] .hero__shade { display: none; }
html[data-contrast="high"] .hero { min-height: 0; }
html[data-contrast="high"] .finder__in, html[data-contrast="high"] .quick__list a, html[data-contrast="high"] .visit__card, html[data-contrast="high"] .visit__hours,
html[data-contrast="high"] .file, html[data-contrast="high"] .contact-box, html[data-contrast="high"] .nav__sub, html[data-contrast="high"] .section-list a,
html[data-contrast="high"] .article__nav a, html[data-contrast="high"] .chips a, html[data-contrast="high"] .localities, html[data-contrast="high"] .subnav a,
html[data-contrast="high"] .years a, html[data-contrast="high"] .pager a { border: 2px solid #ffff00; background: #000; }
html[data-contrast="high"] .btn, html[data-contrast="high"] .btn--primary, html[data-contrast="high"] .btn--light, html[data-contrast="high"] .nav-toggle { background: #000 !important; color: #ffff00 !important; border: 2px solid #ffff00 !important; }
html[data-contrast="high"] .card__ph, html[data-contrast="high"] .topbar::before { background: #000; }
html[data-contrast="high"] .a11y button[aria-pressed="true"], html[data-contrast="high"] [aria-current] { background: #ffff00 !important; color: #000 !important; }
html[data-contrast="high"] .nav__item > a[aria-current], html[data-contrast="high"] .nav__sub a[aria-current], html[data-contrast="high"] a[aria-current] { color: #000 !important; background: #ffff00 !important; }
html[data-contrast="high"] input { background: #000 !important; color: #fff !important; border-color: #ffff00 !important; }
html[data-contrast="high"] .bip__mark, html[data-contrast="high"] .file__ext, html[data-contrast="high"] .hero__kicker span { background: #ffff00; color: #000; }
html[data-contrast="high"] .brand { background: #fff; border-radius: 6px; }
html[data-contrast="high"] .partner { color: #ffff00 !important; }
html[data-contrast="high"] .quick__list .ico { background: #000; color: #ffff00; }

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

@media print {
  .topbar, .nav, .header__tools, .footer, .crumbs, .article__nav, .related, .back, .skip, .embed__play, .lightbox, .finder, .quick { display: none !important; }
  .header { position: static; border: 0; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero { min-height: 0; color: #000; background: #fff; }
  .hero__bg, .hero__shade { display: none; }
  .hero__title a { color: #000; }
  a { color: #000; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
