/* ===== Parafia Pilica – arkusz stylów =====
   Biuletyn parafialny: hierarchia z linii, kolumn i typografii.
   Powierzchnie bez zaokrągleń i cieni; zaokrąglenie 2px tylko na kontrolkach. */
:root {
  /* paleta */
  --navy: #142a52;
  --navy-2: #1d3a6e;
  --navy-deep: #0d1d3b;
  --gold: #c99a3a;
  --gold-2: #d9b05a;
  --gold-soft: #f6ecd6;
  --cream: #faf7f1;
  --ink: #1f2430;
  --muted: #5d6474;
  --line: #e6e0d4;
  --white: #fff;
  /* role pochodne */
  --gold-ink: #8a6420;   /* złoty TEKST na bieli i kremie (5,35:1 / 5,0:1) */
  --gold-mark: #a97d2b;  /* złote ZNACZNIKI stanu: bieżąca pozycja, zakładka, święto, dziś (≥3:1) */
  --rubric: #b23a3a;     /* niedziele w kalendarzu */
  --ev: #3a5a94;         /* wydarzenia w kalendarzu */
  --line-2: #d8ccb4;     /* linia na kremie, passe-partout zdjęć */
  --field: #8c8170;      /* obramowanie pól formularza (≥3:1) */
  /* powierzchnie */
  --radius: 2px;
  --shadow-pop: 0 14px 28px -18px rgba(13, 29, 59, .45);
  --hair: 1px solid var(--line);
  --rule: 1px solid var(--navy);
  --rule-gold: 4px double var(--gold); /* 1px linia, 2px przerwy, 1px linia */
  /* typografia */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-1: clamp(2.5rem, 5vw, 4rem);
  --fs-2: clamp(2.125rem, 4.4vw, 3.25rem);
  --fs-3: clamp(1.875rem, 3.2vw, 2.375rem);
  --fs-4: 1.875rem;
  --fs-5: 1.5rem;
  --fs-6: 1.25rem;
  --fs-dek: 1.375rem;
  --fs-label: 1.125rem;
  --measure: 38rem;
  /* odstępy */
  --s-1: .25rem; --s0: .5rem; --s1: .75rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem; --s5: 3rem; --s6: 4.5rem; --s7: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font: 400 17px/1.65 var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* .btn i inne elementy z display nie wygrywają z atrybutem hidden */
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-feature-settings: "onum" 1; text-wrap: balance; }
h1 { line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: var(--fs-3); line-height: 1.1; letter-spacing: -.005em; }
h3 { font-size: var(--fs-5); }
b, strong { font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 2 * clamp(16px, 4vw, 48px)); margin-inline: auto; } /* 16px na telefonie, ok. 41px przy 1024, 48px od 1200 */
.i { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }
.nw, a[href^="tel:"] { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt { margin-top: 1.5rem; }
.skip { position: absolute; left: 16px; top: 16px; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; overflow: visible; clip-path: none; z-index: 100; background: var(--gold); color: #000; padding: 8px 14px; border-radius: var(--radius); }

/* ===== Fokus ===== */
:where(a, button, summary, input, textarea, select, [tabindex]):focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
:where(.topbar, .hero, .page-hero, .section--dark, .footer, .card--blue, .iban-box, .lightbox) :focus-visible { outline-color: var(--gold-2); }
.masscard :focus-visible { outline-color: var(--navy); }

/* ===== Etykieta (jeden głos: kapitaliki szeryfowe) ===== */
.eyebrow, .label, .masscard__lbl, .side-mass span, .mega__h, .footer h4, .contact__list small,
.cal__day h5, details.year h3, .priest small {
  display: block; font: 600 var(--fs-label)/1.2 var(--serif); font-variant-caps: all-small-caps;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; /* Cormorant nie ma cyfr kapitalikowych: cyfry wersalikowe czytają się obok kapitalików */
  letter-spacing: .06em; text-transform: none; color: var(--gold-ink); margin: 0 0 .35rem;
}
.footer h4, .card--blue .side-mass span, .card--blue .label, .iban-box .eyebrow, .topbar__name { color: var(--gold-2); }
.side-mass span, .cal__day h5 { font-size: 1rem; }

/* ===== Przyciski i odnośniki ===== */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .75em 1.35em; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: #fff; font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-2); border-color: var(--gold-2); }
.btn--sm { padding: .5em 1em; font-size: .95rem; }
.btn--text { background: none; border: 0; padding: 0; color: var(--navy-2); font-weight: 600; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.btn--text:hover { background: none; color: var(--navy); text-decoration-color: var(--navy); }
.link { font-weight: 600; color: var(--navy-2); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.link:hover { text-decoration-color: var(--navy); }
.link--light { color: var(--gold-2); text-decoration-color: rgba(217, 176, 90, .5); }
.link--light:hover { color: #fff; text-decoration-color: var(--gold-2); }
.hero__link { color: #fff; font-weight: 600; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold-2); text-underline-offset: .35em; }
.hero__link:hover { color: var(--gold-2); }

/* ===== Topbar ===== */
.topbar { background: var(--navy-deep); color: #cdd6ea; font-size: .88rem; }
.topbar__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; padding: .5rem 0; }
.topbar__name { font: 600 1rem/1.2 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .06em; color: #dfe5f2; }
.topbar__contact { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.topbar__contact > * { display: inline-flex; align-items: center; gap: .4em; }
.topbar .i { width: .95em; height: .95em; color: var(--gold-2); }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--gold-2); text-decoration-line: underline; }

/* ===== Nagłówek ===== */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: var(--hair); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand__logo { width: 50px; height: auto; flex: none; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__txt strong { font: 700 1.45rem/1.1 var(--serif); font-feature-settings: "onum" 1; }
.brand__txt small { font: italic 500 1rem/1.25 var(--serif); color: var(--muted); }

.nav > ul { display: flex; align-items: center; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.nav a, .nav button { white-space: nowrap; display: flex; align-items: center; gap: .3em; padding: .5rem 0; border: 0; border-radius: 0; background: none; color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer; }
.nav a:hover, .nav button:hover { background: none; color: var(--navy); box-shadow: inset 0 -1px 0 var(--gold); }
.nav a[aria-current="page"], .has-sub.is-active > button { background: none; color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold-mark); }
.nav .nav__cta { padding: .5rem 1rem; margin-left: 0; background: none; color: var(--navy); border: var(--rule); border-radius: var(--radius); }
.nav .nav__cta:hover, .nav .nav__cta[aria-current="page"] { background: var(--navy); color: #fff; box-shadow: none; }
.has-sub { position: relative; }
.sub { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: .75rem 1rem; background: #fff; border: var(--hair); border-top: 2px solid var(--navy); border-radius: 0; box-shadow: var(--shadow-pop); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.sub ul { list-style: none; margin: 0; padding: 0; }
.sub a { padding: .5rem 0; font-weight: 400; }
.sub a:hover { box-shadow: none; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.sub a[aria-current="page"] { box-shadow: none; font-weight: 600; color: var(--navy); text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold-mark); text-underline-offset: .25em; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; }
.mega { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: .5rem 2rem; padding: 1rem 1.5rem; left: auto; right: -140px; min-width: 820px; }
.mega__h { font-size: 1.05rem; margin: .25rem 0 .5rem; padding-bottom: .25rem; border-bottom: var(--hair); }
.mega a { padding: .25rem 0; font-size: .95rem; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ===== Hero (strona główna) ===== */
.hero { position: relative; min-height: 760px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 25%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 29, 59, .82) 0%, rgba(13, 29, 59, .62) 40%, rgba(13, 29, 59, .3) 72%, rgba(13, 29, 59, .15) 100%); }
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 6.5rem 0; }
@media (min-width: 981px) { .hero .masscard { position: relative; left: clamp(0rem, calc((100vw - 1200px) / 2 - 1.5rem), 7rem); } .hero__text { max-width: 36rem; } }  /* karta Mszy przesunięta w prawo (na drzewo), żeby nie zasłaniała kościoła */  /* karta Mszy lekko odsunięta od prawej krawędzi */
.hero h1 { color: #fff; font-size: var(--fs-1); line-height: 1.04; letter-spacing: -.012em; margin: 0 0 1.5rem; }
.h1-pre { display: block; font-size: .34em; font-variant-caps: all-small-caps; letter-spacing: .08em; line-height: 1; color: var(--gold-2); margin-bottom: .6em; }
.hero__lead { font: italic 500 var(--fs-dek)/1.45 var(--serif); color: #e4e9f4; max-width: 30em; margin: 0; }
.hero__lead::before { content: ""; display: block; width: 3.5rem; border-top: 1px solid var(--gold-2); margin-bottom: 1rem; }
.hero__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }

/* Tablica Mszy */
.masscard { background: var(--cream); color: var(--ink); border: 0; border-radius: 0; box-shadow: none; outline: 1px solid rgba(201, 154, 58, .85); outline-offset: -8px; padding: 2rem 2rem 1.5rem; }
.masscard h2 { display: block; font-size: var(--fs-4); margin: 0 0 .5rem; }
.masscard h2 .i { display: none; }
.masscard__row { padding: .75rem 0; border-top: 1px solid var(--line-2); }
.masscard__row p { margin: 0; font-weight: 400; color: var(--ink); }
.masscard__lbl { font-size: 1.05rem; margin-bottom: .25rem; }
.times { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: flex-start; }
.times span { background: none; color: var(--navy); padding: 0; border: 0; border-radius: 0; font: 600 1.5rem/1.15 var(--sans); font-variant-numeric: lining-nums tabular-nums; }
.times .times--alt { background: none; display: inline-flex; flex-direction: column; align-items: flex-start; }
.times em { width: 0; white-space: nowrap; font: italic 500 .95rem/1.1 var(--serif); color: var(--muted); } /* dopisek wisi pod 10:30, nie poszerza kolumny */
.masscard__link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--navy-2); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.masscard__link:hover { text-decoration-color: var(--navy); }



/* ===== Skróty ===== */
.quickbar { background: var(--cream); border-bottom: 1px solid var(--line-2); }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line-2); margin: 0 auto; position: static; }
.quick__item { display: flex; flex-direction: row; justify-content: center; align-items: center; padding: 1rem .5rem; background: var(--cream); border: 0; border-radius: 0; box-shadow: none; color: var(--navy); font: 600 .95rem/1.3 var(--sans); text-align: center; text-decoration: none; transition: none; }
.quick__item:hover { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .3em; }
.quick__item:focus-visible { outline-offset: -4px; } /* obwódka w środku komórki: hero i sąsiednia komórka jej nie zasłaniają */

/* ===== Sekcje ===== */
.section { padding: var(--s6) 0; }
.quickbar + .section { padding-top: 3rem; }
.section--tint { background: var(--cream); }
.section--dark { background: var(--navy); color: #dfe5f2; }
.section--dark h2, .section--dark h3 { color: #fff; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem 1.5rem; border-top: var(--rule); padding-top: .75rem; margin-bottom: 2rem; text-align: left; }
.sec-head h2 { margin: 0; }
.sec-head__more { font-weight: 600; font-size: .95rem; color: var(--navy-2); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.sec-head__more:hover { text-decoration-color: var(--navy); }
.sec-dek { font: italic 500 var(--fs-dek)/1.4 var(--serif); color: var(--muted); max-width: 36em; margin: -1rem 0 2rem; }
.section--dark .sec-head { border-top-color: rgba(255, 255, 255, .35); }
.section--dark .sec-head__more { color: var(--gold-2); text-decoration-color: rgba(217, 176, 90, .5); }
.section--dark .sec-head__more:hover { color: #fff; text-decoration-color: var(--gold-2); }

/* ===== Ogłoszenia (biuletyn) ===== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start; }
.ann-title, .prose .ann-title { text-align: left; font: italic 500 var(--fs-5)/1.25 var(--serif); letter-spacing: 0; color: var(--navy-2); margin: 0 0 1rem; }
.ann { list-style: none; counter-reset: a; margin: 0; padding: 0; display: block; border-bottom: var(--hair); }
.ann > li { counter-increment: a; position: relative; margin: 0; padding: 1.5rem 0 1.5rem 3rem; background: none; border: 0; border-top: var(--hair); border-radius: 0; }
.ann > li::before { content: counter(a) "."; position: absolute; left: 0; top: 1.5rem; display: block; font: 600 var(--fs-5)/1.2 var(--serif); font-feature-settings: "lnum" 1; color: var(--gold-ink); }
.ann > li > h3, .prose .ann > li > h3 { font-size: var(--fs-5); line-height: 1.2; margin: 0 0 .5rem; clear: none; }
.ann > li > :is(p, ul, ol, blockquote) { max-width: var(--measure); }
.ann p { text-wrap: pretty; }
.ann p:last-child { margin-bottom: 0; }
.dash, .prose .dash { list-style: none; margin: 0; padding-left: 0; }
.dash > li { position: relative; padding-left: 1.1em; }
.dash > li::before { content: "–"; position: absolute; left: 0; color: var(--gold-ink); }
blockquote, .prose blockquote { margin: 1.5rem 0; padding: .25rem 0 .25rem 1rem; border-left: 2px solid var(--gold); background: none; font: italic 500 var(--fs-dek)/1.45 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); }

.banns { margin-top: 2rem; padding: 1.5rem; background: var(--cream); border: 0; border-top: var(--rule-gold); border-bottom: var(--rule-gold); border-radius: 0; }
.banns h3, .prose .banns h3 { display: block; font-size: var(--fs-5); margin: 0 0 1rem; }
.banns h3 .i { display: none; }
.banns__pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.banns__pair + .banns__pair { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); }
.banns__pair p { margin: 0; }
.banns__amp { font: italic 500 3rem/1 var(--serif); color: var(--gold-ink); }
.blessing { text-align: center; margin: 2rem 0; color: var(--muted); }
.blessing span { display: block; font: italic 500 var(--fs-4)/1.2 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); margin-top: .25rem; }
.archive { border: 0; border-top: var(--hair); border-radius: 0; padding: .75rem 0; }
.archive summary { cursor: pointer; padding-left: 1.1em; text-indent: -1.1em; font: 600 var(--fs-6) var(--serif); font-feature-settings: "onum" 1; color: var(--navy); } /* znacznik wisi, zawinięty wiersz zaczyna się pod tekstem */
.archive summary::marker { color: var(--gold-ink); }
.archive h4 { font-size: var(--fs-6); margin: 1.5rem 0 .5rem; }
.archive ol { margin: .75rem 0 .25rem; padding-left: 1.5rem; color: var(--muted); }
.archive li { margin-bottom: .5rem; }
.archive > :is(h4, ol, p) { max-width: var(--measure); }
.archive ol > li::marker { font: 600 1.05rem var(--serif); font-feature-settings: "lnum" 1; color: var(--gold-ink); }

/* ===== Panel boczny ===== */
.intencje-lista { list-style: none; margin: 0; padding: 0; }
.intencje-lista li + li { border-top: 1px solid var(--line); }
.intencje-lista a { display: block; padding: .6rem 0; text-decoration: none; color: var(--ink); }
.intencje-lista b { display: block; font: 600 var(--fs-6)/1.25 var(--serif); color: var(--navy); }
.intencje-lista span { font-size: .9rem; color: var(--muted); }
.intencje-lista a:hover b { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .15em; }
.layout__side { display: grid; gap: var(--s4); position: static; }
.card { background: none; border: 0; border-top: var(--rule); border-radius: 0; padding: .75rem 0 0; }
.card__h { font-size: var(--fs-5); border: 0; padding: 0; margin: 0 0 .75rem; }
.card--blue { background: var(--navy); color: #fff; border: 0; padding: 1.5rem; outline: 1px solid rgba(217, 176, 90, .45); outline-offset: -7px; }
.card--blue .card__h { color: #fff; }
.iban { font: 600 1.1rem/1.4 var(--sans); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .01em; word-spacing: .2em; color: var(--navy); text-wrap: balance; } /* gdy numer się zawija, dzieli się na równe grupy, bez samotnego „0001” */
.card--blue .iban, .iban-box .iban { color: var(--gold-2); }
.check { list-style: none; padding: 0; margin: 0 0 1rem; }
.check li { position: relative; padding-left: 1.25rem; margin-bottom: .5rem; }
.check li::before { content: ""; position: absolute; left: .2rem; top: .65em; width: .36rem; height: .36rem; background: var(--gold); border: 0; transform: rotate(45deg); }

.poll label { display: flex; gap: .5rem; align-items: center; padding: .25rem 0; cursor: pointer; }
.poll input { accent-color: var(--navy); width: 1.1rem; height: 1.1rem; }
.poll__q { font-weight: 600; margin-bottom: .5rem; }
.poll .btn { margin-top: .75rem; }
.poll__msg { margin: .75rem 0 0; font-weight: 600; color: var(--navy-2); }

.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: block; margin: 0; padding: .5rem 0; border-bottom: var(--hair); border-radius: 0; color: var(--ink); font-weight: 400; line-height: 1.35; text-decoration: none; }
.side-list li:last-child a { border-bottom: 0; }
.side-list a:hover { background: none; color: var(--navy); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.side-mass { margin: 0 0 .75rem; color: #fff; line-height: 1.45; text-wrap: pretty; }
.side-mass small { font: italic 500 1.05rem/1 var(--serif); color: #a9b5d0; } /* ten sam głos co „Kocikowa” na tablicy Mszy */

/* ===== Msze, godziny, zakładki ===== */
.tile { background: none; box-shadow: none; border: 0; border-top: var(--rule); border-radius: 0; padding: 1rem 0 0; }
.tile h3, .grid2 .tile h3 { font-size: var(--fs-5); margin: 0 0 .5rem; }
.grid2 .tile h3.mt { margin-top: 1.5rem; }
.hours { --lbl: 4.75rem; list-style: none; margin: 0; padding: 0; }
.hours--days { --lbl: 7rem; }
.hours--wide { --lbl: 13.5rem; }
.hours li { display: flow-root; padding: .5rem 0 .5rem var(--lbl); border-bottom: var(--hair); }
.hours li:last-child { border-bottom: 0; }
.hours span { float: left; width: calc(var(--lbl) - 1rem); margin-left: calc(-1 * var(--lbl)); min-width: 0; font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.note { font-size: .95rem; margin: 1rem 0 0; }
.note--info { background: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0; padding: .25rem 0 .25rem 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .25rem 2rem; width: 100%; max-width: 100%; margin-bottom: 1.5rem; padding: 0; background: none; border-radius: 0; border-bottom: var(--hair); }
.tabs button { border: 0; background: none; border-radius: 0; padding: .5rem 0; font: 600 var(--fs-6)/1.2 var(--serif); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--navy); }
.tabs button[aria-selected="true"] { background: none; color: var(--navy); box-shadow: inset 0 -2px 0 var(--gold-mark); }

/* ===== Intencje – Kocikowa (ordo) ===== */
.intlist { display: grid; grid-template-columns: 1fr; gap: 0; border-top: var(--rule); }
.intlist article { display: grid; grid-template-columns: 8rem minmax(0, 1fr); column-gap: 1.5rem; padding: 1rem 0; border: 0; border-bottom: var(--hair); border-radius: 0; background: none; overflow: visible; }
.intlist header { display: block; background: none; color: var(--muted); padding: 0; }
.intlist time { display: block; font: 600 var(--fs-4)/1 var(--serif); font-feature-settings: "lnum" 1; color: var(--navy); }
.intlist header span { display: block; margin-top: .25rem; font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
.intlist ul, .prose .intlist ul { list-style: none; margin: 0; padding: 0; }
.intlist li { margin-bottom: .25rem; padding-left: .67em; text-indent: -.67em; } /* wcięcie wiszące: kolejne wiersze zaczynają się za „† ” */
.intlist li.bez-krzyza { text-indent: 0; } /* intencja bez krzyżyka zaczyna się na tej samej linii co imiona po „† ” */

/* ===== Kapłani, numer konta ===== */
.priests { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 2.5rem; padding: 0; background: none; border-radius: 0; }
.priests .priest, .priests .priest + .priest { display: flex; align-items: flex-start; gap: .6rem; border: 0; border-top: var(--rule); border-radius: 0; box-shadow: none; background: none; padding: 1rem 0; }
.priest__ic { display: inline-flex; width: auto; height: auto; flex: none; background: none; border-radius: 0; color: var(--gold); margin-top: .3rem; }
.priest__ic .i { width: 14px; height: 14px; }
.priest b { font: 600 var(--fs-4)/1.15 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); }
.iban-box { text-align: left; padding: 2rem 2.5rem; background: var(--navy); color: #dfe5f2; border-radius: 0; outline: 1px solid rgba(217, 176, 90, .45); outline-offset: -8px; }
.iban-box .iban { margin-bottom: 1.5rem; }
.iban--big { font-size: clamp(1.25rem, 3.2vw, 1.85rem); word-spacing: .25em; }
.iban-box .small { margin: 1.5rem 0 0; color: #a9b5d0; }
.members { columns: 2; column-gap: 2rem; }
.members li { break-inside: avoid; font-weight: 600; color: var(--navy); }
.poll-card { max-width: var(--measure); margin-top: 3rem; }
.prose .card__h { margin: 0 0 .75rem; } /* nagłówek karty w artykule nie dostaje marginesu .prose h3 */

/* ===== Galeria ===== */
.albums { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0 2rem; }
.albums a { display: flex; align-items: baseline; gap: .75rem; height: 100%; padding: .75rem 0; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); border-radius: 0; color: #e8ecf5; font-weight: 400; line-height: 1.35; text-decoration: none; transition: none; }
.albums a::before { content: none; }
.albums a::after { content: "↗"; content: "↗" / ""; margin-left: auto; color: var(--gold-2); font-size: .85em; }
.albums a:hover { background: none; color: #fff; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold-2); text-underline-offset: .22em; }
.page-body .albums a { color: var(--ink); border-bottom-color: var(--line); }
.page-body .albums a::after { color: var(--gold-ink); }
.page-body .albums a:hover { background: none; color: var(--navy); text-decoration-color: var(--gold); }
.year-tabs { display: flex; flex-wrap: wrap; gap: 0; position: sticky; top: 77px; z-index: 5; background: #fff; padding: .25rem 0; border-bottom: 1px solid var(--line-2); margin-bottom: 1.5rem; } /* przyklejony pasek ma własną linię i nie zlewa się z listą albumów */
.year-tabs a { padding: .5rem 1rem; border: 0; border-radius: 0; font: 600 var(--fs-6)/1.2 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); text-decoration: none; }
.year-tabs a:first-child { padding-left: 0; }
.year-tabs a + a { border-left: var(--hair); }
.year-tabs a:hover { background: none; color: var(--navy); text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.gal-year { margin-bottom: 3rem; scroll-margin-top: 150px; }
.gal-year h2 { font-size: var(--fs-3); border-top: var(--rule); padding-top: .75rem; }
.year-tabs + .gal-year > h2 { border-top: 0; padding-top: 0; } /* pierwszy rok: bez podwójnej linii pod paskiem lat */
.gal-year h2 small, .gal-year h3 small { font: italic 500 1.1rem var(--serif); color: var(--muted); margin-left: .5rem; }
.gal-year h3 { margin-top: 2rem; }
.gal-year + p.small { margin: -2rem 0 3rem; } /* dopisek należy do albumów nad nim, nie do archiwum */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.thumbs a { display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 0; background: var(--cream); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; transition: none; }

/* ===== Kontakt ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact__list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: block; border-top: var(--rule); }
.contact__list li { display: block; padding: .75rem 0; border-bottom: var(--hair); }
.contact__list .i { display: none; }
.contact__list small { margin-bottom: .25rem; }
.contact__list a { font-weight: 600; }
.contact__list a, .contact-strip a:not(.btn) { text-decoration-color: var(--gold); text-underline-offset: .22em; }
.contact__list a:hover, .contact-strip a:not(.btn):hover { text-decoration-color: var(--navy); }
.contact__list .btn--text { margin-left: .75rem; vertical-align: baseline; }
.contact__list div:has(> [data-copy]) { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; }
.contact__list div:has(> [data-copy]) small { flex-basis: 100%; }
.contact__list div:has(> [data-copy]) .btn--text { margin-left: 0; } /* po zawinięciu „Kopiuj” zaczyna się przy lewej krawędzi */
.contact__list--strip { border-top: var(--hair); margin-bottom: 2rem; }
.map { display: block; width: 100%; height: 300px; border: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
.form { display: grid; gap: 1rem; align-content: start; background: var(--cream); border-top: 2px solid var(--navy); border-radius: 0; padding: 2rem; }
.form label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
.form input:not([type=checkbox]), .form textarea { width: 100%; padding: .75rem 1rem; border: 1px solid var(--field); border-radius: var(--radius); font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form input[type=checkbox] { accent-color: var(--navy); width: 1.1rem; height: 1.1rem; }
.form__chk { display: flex !important; align-items: center; gap: .5rem; font-weight: 400 !important; }
.form .btn { justify-self: start; }
.contact .form h2 { margin-bottom: .25rem; }

/* ===== Stopka ===== */
.footer { background: var(--navy-deep); color: #a9b5d0; padding-top: 3rem; font-size: .95rem; border-top: var(--rule-gold); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 3rem; padding-bottom: 3rem; }
.footer__logo { width: 80px; height: auto; margin-bottom: 1rem; background: none; padding: 0; border-radius: 0; }
.footer__brand { font: 600 1.5rem/1.2 var(--serif); font-feature-settings: "onum" 1; color: #fff; }
.footer h4 { margin: 0 0 .75rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { color: #cdd6ea; text-decoration: none; }
.footer a:hover { color: var(--gold-2); text-decoration-line: underline; text-underline-offset: .2em; }
.footer li.bez-linku { color: #a9b5d0; }  /* pozycja bez strony internetowej – zwykły tekst */
.footer__iban { font-size: .9rem; color: #a9b5d0; font-variant-numeric: lining-nums tabular-nums; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid rgba(201, 154, 58, .35); padding: 1.5rem 0; font-size: .85rem; }

/* ===== Nagłówek podstrony ===== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy); padding: 3rem 0 2rem; border-bottom: var(--rule-gold); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/kolegiata-szkic.png") right max(16px, calc((100% - 1200px) / 2)) bottom -8px / auto 112% no-repeat; opacity: .18; }
.page-hero h1 { color: #fff; font-size: var(--fs-2); line-height: 1.06; letter-spacing: -.01em; margin: .5rem 0; max-width: 15em; }
.page-hero__lead { font: italic 500 var(--fs-dek)/1.4 var(--serif); color: #dfe5f2; margin: 0; max-width: 32em; }
.crumbs { font-size: .9rem; color: #b7c1d8; }
.crumbs a { color: var(--gold-2); text-decoration: none; }
.crumbs a:hover { text-decoration-line: underline; }
.crumbs__sep { margin: 0 .4rem; color: #8d9bbb; }
.crumbs [aria-current="page"] { color: #dfe5f2; white-space: nowrap; } /* nazwa bieżącej strony nie rozpada się na dwa wiersze */
.page-body { padding: 3rem 0 4.5rem; }
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; }
.page-side { display: grid; gap: var(--s4); position: static; }
@media (min-width: 1081px) and (min-height: 1060px) { .page-side { position: sticky; top: 100px; } } /* przykleja się tylko, gdy cały panel (do ok. 940px) mieści się w oknie */
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; margin: 0; padding: .5rem 0 .5rem .9rem; border-left: 1px solid var(--line-2); border-radius: 0; color: var(--ink); font-weight: 400; line-height: 1.35; text-decoration: none; }
.side-nav a:hover { background: none; color: var(--navy); border-left-color: var(--gold); }
.side-nav a[aria-current="page"] { background: none; color: var(--navy); font-weight: 600; border-left: 2px solid var(--gold-mark); padding-left: calc(.9rem - 1px); }

/* ===== Typografia artykułów ===== */
.prose { min-width: 0; font-size: 1.125rem; }
.prose > *:first-child { margin-top: 0; }
.prose > :is(p:not(.blessing), ul:not(.hours), ol:not(.ann), blockquote, h2, h3, h4, .sign, .check, .dash, .note, .notice),
.tabpanel > :is(p, ul, ol, h3, h4, .check, .note) { max-width: var(--measure); }
.prose p { text-wrap: pretty; }
.prose h2 { font-size: var(--fs-4); margin: 3rem 0 .75rem; }
.prose h3 { font-size: var(--fs-5); margin: 2rem 0 .5rem; }
.prose h4 { font-size: var(--fs-6); margin: 1.5rem 0 .5rem; color: var(--navy-2); }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .25rem; }
.prose .ann > li { margin-bottom: 0; }
.prose .hours, .prose .check, .prose .ann, .prose .albums, .prose .dash { padding-left: 0; }
/* zwykłe listy w artykułach: półpauza w kolorze złota, jak w ogłoszeniach */
.prose > ul:not([class]), .tabpanel > ul:not([class]) { list-style: none; padding-left: 1.1em; }
.prose > ul:not([class]) > li, .tabpanel > ul:not([class]) > li { position: relative; }
.prose > ul:not([class]) > li::before, .tabpanel > ul:not([class]) > li::before { content: "–"; position: absolute; left: -1.1em; color: var(--gold-ink); }
.prose a { font-weight: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose :is(.btn, .albums a, .toc a) { text-decoration-line: none; }
.prose img { height: auto; border-radius: 0; }
.prose figure { margin: 2rem 0; text-align: left; }
.prose > figure:not(.figure--doc) { max-width: var(--measure); } /* płyta nie wystaje poza szpaltę tekstu */
.prose > figure > img { max-width: 100%; }
.prose figure img { margin: 0; box-shadow: none; border: 1px solid var(--line-2); padding: 6px; background: #fff; cursor: zoom-in; }
.prose figcaption { font: italic 500 1.05rem/1.4 var(--serif); font-feature-settings: "onum" 1; color: var(--muted); margin-top: .5rem; max-width: var(--measure); }
.prose img.float { float: right; width: min(42%, 340px); margin: .25rem 0 1rem 1.5rem; box-shadow: none; border: 1px solid var(--line-2); padding: 5px; background: #fff; cursor: zoom-in; }
.prose p img:not(.float) { display: block; margin: 1.5rem 0; border: 1px solid var(--line-2); padding: 6px; background: #fff; }
.prose h2, .prose h3, .prose h4, .prose .gallery, .prose figure, .prose details, .prose table,
.prose .ann, .prose .grid2, .prose .tabs, .prose .callout, .prose .notice { clear: both; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.gallery figure { margin: 0; display: flex; flex-direction: column; }
.gallery figure img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }
.gallery--scans figure img { height: 380px; object-position: top; border: 1px solid var(--line-2); padding: 5px; background: #fff; }
.figure--doc img { width: 100%; max-width: 800px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 1rem; font-variant-numeric: lining-nums tabular-nums; }
.prose td, .prose th { border-bottom: var(--hair); padding: .5rem; text-align: left; vertical-align: top; }
.prose tr:first-child td { background: none; color: var(--navy); font: 600 1.05rem/1.2 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .05em; border: 0; border-bottom: 2px solid var(--navy); }
.prose tr:nth-child(even) td { background: none; }
.sign { text-align: right; font: italic 500 1.25rem/1.4 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); margin-top: 2rem; clear: both; }
.prose > .sign { margin-left: auto; }
.prose--hist strong.runin { font: 600 1.1em var(--serif); font-variant-caps: all-small-caps; letter-spacing: .04em; color: var(--navy); }
.prose .incipit::first-letter { float: left; font: 600 3.6em/.8 var(--serif); color: var(--gold-ink); margin: .06em .1em 0 0; }
.notice { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.5rem; padding: .25rem 0 .25rem 1rem; background: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0; }
.notice .i { width: 18px; height: 18px; color: var(--gold-ink); }
.notice p { margin: 0; }
.callout { background: var(--cream); border: 0; border-top: var(--rule); border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 1.5rem; margin: 2rem 0; }
.callout h2 { margin-top: 0; font-size: var(--fs-4); }
.callout p:last-child { margin-bottom: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; margin-bottom: 1.5rem; }
.grid2:last-child { margin-bottom: 0; }

/* spis treści */
.toc { background: var(--cream); border: 0; border-top: var(--rule); border-bottom: 1px solid var(--line-2); border-radius: 0; padding: 1rem 1.5rem; margin-bottom: 2rem; }
.toc summary { cursor: pointer; font: 600 var(--fs-6) var(--serif); font-feature-settings: "onum" 1; color: var(--navy); }
.toc summary::marker { color: var(--gold-ink); }
.toc ol { margin: .75rem 0 .25rem; padding-left: 1.5rem; columns: 2; column-gap: 2rem; }
.toc li { break-inside: avoid; font-size: .95rem; margin-bottom: .25rem; }
.toc a { font-weight: 400; text-decoration: none; }
.toc a:hover { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }

/* pogrzeby */
details.year { border: 0; border-top: var(--hair); border-radius: 0; background: none; margin: 0; }
details.year:last-of-type { border-bottom: var(--hair); }
details.year > summary { cursor: pointer; padding: 1rem 0; font: 600 var(--fs-5)/1.2 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details.year > summary::-webkit-details-marker { display: none; }
details.year > summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--gold-ink); }
details.year[open] > summary::after { content: "–"; }
details.year[open] > summary { border-bottom: 0; }
details.year > *:not(summary) { margin-left: 0; margin-right: 0; }
details.year > table { width: 100%; }
details.year td:first-child, details.year td:last-child { text-align: right; width: 3.5rem; }
details.year > table tr:last-child td { border-bottom: 0; } /* rejestr zamyka linia następnego roku */
details.year[open] > table { margin-bottom: 1rem; }
details.year h3 { margin: 1.5rem 0 .5rem; }
.obits { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(13.5rem, 100%), 1fr)); gap: 1rem 1.5rem; margin-bottom: 1rem; }
.obit { display: flex; flex-direction: column; margin: 0; padding: .1rem 0 .1rem .9rem; border: 0; border-left: 1px solid var(--gold); border-radius: 0; background: none; }
.obit b { font: 600 1.15rem/1.25 var(--serif); color: var(--navy); }
.obit > span { font-size: .9rem; line-height: 1.45; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.obit__cross { font: 400 .95em/1 var(--sans); color: var(--gold-ink); } /* krzyżyk pełnej wysokości (w Cormorant „†” wygląda jak odsyłacz) */

/* ===== Strona główna – intencje, historia, kontakt ===== */
.feature { display: flex; flex-direction: column; position: static; aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none; color: var(--ink); text-decoration: none; }
.feature img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; object-position: top; border: 1px solid var(--line-2); padding: 6px; background: #fff; transition: none; }
.feature:first-child img { filter: saturate(.35) sepia(.12); }
.feature span { position: static; display: flex; flex-direction: column; padding: .75rem 0 0; background: none; color: var(--muted); font-size: .95rem; }
.feature b { font: 600 var(--fs-5)/1.2 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); }
.feature:hover b { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .15em; }

.cards { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: start; }
.pcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 1rem; align-items: center; padding: .75rem 0; border-top: var(--hair); text-decoration: none; color: var(--navy); }
.pcard:last-child { border-bottom: var(--hair); }
.pcard img { grid-column: 1; grid-row: 1 / span 2; width: 64px; height: 64px; object-fit: cover; margin: 0; border-radius: 0; box-shadow: none; transition: none; }
.pcard b { grid-column: 2; align-self: end; font: 600 var(--fs-6)/1.2 var(--serif); font-feature-settings: "onum" 1; }
.tag { grid-column: 2; align-self: start; font: italic 500 1rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold-ink); font-feature-settings: "onum" 1; }
.pcard:hover b { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .15em; }
.pcard:first-child { grid-column: 1; grid-row: 1 / span 7; display: flex; flex-direction: column; align-items: stretch; gap: .25rem; padding: 0; border-top: 0; }
.pcard:first-child img { width: 100%; height: auto; aspect-ratio: 3/2; object-position: center 80%; margin: 0 0 .75rem; border: 1px solid var(--line-2); padding: 6px; background: #fff; }
.pcard:first-child b { align-self: auto; font-size: var(--fs-4); }
.pcard:first-child .tag { align-self: auto; font-size: 1.15rem; }
.more-h { margin: 3rem 0 0; padding-bottom: .5rem; border-bottom: var(--hair); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); gap: 0 2rem; margin: 0; justify-content: stretch; }
.chips a { display: block; padding: .75rem 0; border: 0; border-bottom: var(--hair); border-radius: 0; color: var(--navy); font-weight: 400; text-decoration: none; }
.chips a:hover { background: none; text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .22em; }
.contact-strip { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: start; }
.contact-strip img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; box-shadow: none; border: 1px solid var(--line-2); padding: 6px; background: #fff; }

/* ===== Lightbox / toast ===== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 12, 28, .94); display: grid; place-items: center; padding: 2rem 4rem; overflow: auto; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 0; margin: 0 auto; }
.lightbox figcaption { font: italic 500 1.1rem var(--serif); color: #dfe5f2; margin-top: .75rem; }
.lightbox__x { position: fixed; top: 14px; right: 18px; width: 48px; height: 48px; border: 0; border-radius: 0; background: none; color: #fff; font: 300 2.4rem/1 var(--sans); cursor: pointer; }
.lightbox__x:hover { color: var(--gold-2); }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 0; background: none; color: #fff; font-size: 2.6rem; cursor: pointer; }
.lightbox__nav:hover { background: none; color: var(--gold-2); }
.lightbox__prev { left: 10px; }
.lightbox__next { right: 10px; }
.lightbox__nav[hidden] { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: var(--radius); border-left: 3px solid var(--gold); box-shadow: var(--shadow-pop); z-index: 210; }

/* ===== Licznik odwiedzin ===== */
.licznik__cyfry { display: flex; justify-content: flex-start; gap: 2px; margin: .25rem 0 1rem; }
.licznik__cyfry span { width: auto; min-width: 1.1rem; height: auto; padding: 0 .05rem .15rem; background: none; border: 0; border-bottom: 1px solid var(--gold); border-radius: 0; box-shadow: none; color: var(--navy); font: 600 1.4rem/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; text-align: center; }
.licznik__lista { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.licznik__lista li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-bottom: var(--hair); }
.licznik__lista b { font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.licznik__suma { border-bottom: 0 !important; font-weight: 600; }
.licznik__online { margin: .75rem 0 .25rem; font-size: .95rem; display: flex; align-items: center; gap: .4rem; }
.licznik__online .dot { width: 9px; height: 9px; border-radius: 50%; background: #2bb36b; box-shadow: none; }
.licznik__od { margin: 0 0 .3rem; font-size: .8rem; color: var(--muted); }
.licznik__info { margin: .6rem 0 0; font-size: .8rem; color: var(--muted); font-style: italic; }
.licznik__ip { margin: 0; font-size: .8rem; color: var(--muted); }
.footer__licznik { font-size: .85rem; color: #a9b5d0; }
.footer__licznik b { color: #dfe5f2; font-weight: 600; }
[data-licznik][hidden] { display: none !important; }

/* ===== Kalendarz – dni i rozwinięcie ===== */
.cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.cal__head b { font: 600 var(--fs-6)/1.2 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); text-transform: capitalize; }
.cal__head button { width: 32px; height: 32px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--navy); font-size: 1.1rem; cursor: pointer; }
.cal__head button:hover { background: none; border-color: var(--navy); }
.cal table { width: 100%; border-collapse: collapse; text-align: center; font-size: .95rem; font-variant-numeric: lining-nums tabular-nums; }
.prose .cal table { margin: 0; font-size: .95rem; }
.prose .cal td, .prose .cal th, .prose .cal tr:first-child td, .prose .cal tr:nth-child(even) td { background: none; color: inherit; border: 0; padding: 0; text-align: center; font: inherit; font-variant-caps: normal; letter-spacing: 0; }
.cal th, .prose .cal th { font: 600 1rem/1 var(--serif); font-variant-caps: all-small-caps; letter-spacing: .05em; text-transform: none; color: var(--muted); padding: 0 0 .5rem; }
.cal td { padding: 0; height: 34px; }
.cal td button { position: relative; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; font: inherit; color: inherit; cursor: pointer; display: inline-grid; place-items: center; }
.cal td button:hover { background: var(--gold-soft); }
.cal td.sun button { color: var(--rubric); font-weight: 600; }
.cal td.feast button { box-shadow: inset 0 0 0 2px var(--gold-mark); }
.cal td.has-ev button::after { content: ""; position: absolute; bottom: 2px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--ev); }
.cal td.today button { background: none; font-weight: 600; color: var(--navy); text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold-mark); text-underline-offset: 4px; }
.cal td.sel button { background: var(--navy); color: #fff; box-shadow: none; text-decoration: none; }
.cal td.sel.has-ev button::after { background: var(--gold-2); }
.cal td button:focus-visible { outline: 2px solid var(--navy); outline-offset: 1px; }
.cal__legend { display: flex; align-items: center; gap: .35rem; justify-content: center; font-size: .875rem; color: var(--muted); margin: .5rem 0 0; }
.cal__legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 50%; }
.cal__legend .lg--feast { box-shadow: inset 0 0 0 2px var(--gold-mark); }
.cal__legend .lg--ev { width: 7px; height: 7px; background: var(--ev); margin-left: .6rem; }
.cal__day { margin-top: 1rem; padding-top: 1rem; border-top: var(--hair); font-size: .95rem; }
.cal__date { font: 600 var(--fs-6)/1.25 var(--serif); font-feature-settings: "onum" 1; color: var(--navy); margin: 0; }
.cal__names { margin: .25rem 0 0; font: italic 600 1.05rem/1.3 var(--serif); color: var(--gold-ink); }
.cal__day h5 { margin: 1rem 0 .25rem; }
.cal__list, .prose .cal__list { list-style: none; margin: 0; padding: 0; }
.cal__list > li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; padding: .35rem 0; border-bottom: var(--hair); line-height: 1.35; } /* jedna kolumna godzin dla Mszy, nabożeństw i wydarzeń */
.cal__list > li:last-child { border-bottom: 0; }
.cal__list b { font-weight: 600; color: var(--navy); font-variant-numeric: lining-nums tabular-nums; }
.cal__list--nab b, .cal__list--ev b { font-size: .85rem; }
.cal__list--ev > li span { color: var(--ink); }
.cal__list--ev > li, .cal__list--ev > li:last-child { grid-template-columns: calc(7rem - .5rem - 2px) minmax(0, 1fr); background: none; border: 0; border-left: 2px solid var(--ev); border-radius: 0; padding: .25rem 0 .25rem .5rem; margin-bottom: .25rem; }
.cal__list > li > b:empty { display: none; } /* wydarzenie bez godziny: tekst od razu przy niebieskiej linii, bez pustej kolumny */
.cal__list > li > b:empty + span { grid-column: 1 / -1; }
.cal__int summary { cursor: pointer; color: var(--navy-2); font-size: .85rem; font-weight: 600; margin-top: .15rem; }
.cal__int ul { margin: .25rem 0 0; padding-left: 1rem; font-size: .85rem; color: var(--muted); }
.cal__int li { margin-bottom: .2rem; line-height: 1.35; }
.cal__note { margin: .5rem 0 0; padding: .25rem 0 .25rem .75rem; background: none; border-radius: 0; border-left: 2px solid var(--gold); font-size: .85rem; }
.cal__empty { margin: 0; color: var(--muted); }
.cal__foot { margin: .75rem 0 0; font-size: .85rem; color: var(--muted); }
.cal-card { max-width: 560px; }
.cal--wide td button { width: 40px; height: 40px; border-radius: 50%; }

/* ===== Albumy zdjęć z panelu ===== */
.album { margin: 0 0 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.album h3 { margin: 0 0 .2rem; font-size: var(--fs-5); }
.album__meta { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); }
.album__opis { margin: 0 0 1rem; max-width: var(--measure); }
.album .thumbs { margin-bottom: 1rem; }
.album .thumbs a[hidden] { display: none; }
.album__wiecej { margin-bottom: .5rem; }

/* ===== Sonda – wyniki ===== */
.poll__wyniki { margin-top: .5rem; }
.poll__wynik { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; margin-bottom: .6rem; font-size: .92rem; }
.poll__wynik b { color: var(--navy); font-variant-numeric: tabular-nums; }
.poll__wynik i { grid-column: 1 / -1; display: block; height: 6px; background: var(--line); }
.poll__wynik s { display: block; height: 100%; background: var(--gold); text-decoration: none; }
.poll__suma { margin: .4rem 0 0; font-size: .8rem; color: var(--muted); }
.poll label[hidden] { display: none; }

/* ===== Aktualności ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* karta wpisu: zdjęcie w passe-partout, data kursywą, tytuł szeryfowy */
.news-card { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.news-card__img { display: block; aspect-ratio: 3/2; overflow: hidden; margin: 0 0 .5rem; border: 1px solid var(--line-2); padding: 5px; background: #fff; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__img--brak { display: grid; place-items: center; background: var(--cream); }
.news-card__img--brak img, .news-item img.news-card__logo { width: auto; height: 46%; object-fit: contain; opacity: .3; }
.news-card time, .news-item time { font: italic 500 1.05rem/1.3 var(--serif); font-feature-settings: "onum" 1; color: var(--gold-ink); }
.news-card h3 { font-size: var(--fs-6); line-height: 1.2; margin: 0; }
.news-card h3 a { color: var(--navy); text-decoration: none; }
.news-card h3 a:hover, .news-item:hover b { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .15em; }
.news-card__zaj { margin: 0; font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; margin: .25rem 0 0; font-size: .875rem; color: var(--muted); }
.news-meta__glosy, .news-meta__kom { display: inline-flex; align-items: center; gap: .3rem; }
.news-meta__glosy b { font-weight: 600; margin-right: .45rem; font-variant-numeric: tabular-nums; }
.news-meta .i { width: 1em; height: 1em; vertical-align: 0; }

/* strona główna: najnowszy wpis duży, cztery kolejne obok */
.news-front { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 3rem; align-items: start; }
.news-card--lead h3 { font-size: var(--fs-4); }
.news-card--lead .news-card__zaj { font-size: 1.075rem; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 1rem; align-items: center; padding: .9rem 0; border-top: var(--hair); color: var(--navy); text-decoration: none; }
.news-list li:first-child .news-item { padding-top: 0; border-top: 0; }
.news-list li:last-child .news-item { border-bottom: var(--hair); }
.news-item img { width: 104px; height: 78px; object-fit: cover; border: 1px solid var(--line-2); padding: 3px; background: #fff; }
.news-item img.news-card__logo { height: 78px; width: 104px; padding: 16px 30px; background: var(--cream); }
.news-item span { display: grid; gap: .15rem; min-width: 0; }
.news-item b { font: 600 var(--fs-6)/1.2 var(--serif); font-feature-settings: "onum" 1; overflow-wrap: anywhere; }
.news-more { margin: 2rem 0 0; }
.news-more__n { font-weight: 400; opacity: .85; }

/* strona „Aktualności” i archiwum lat */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17.5rem, 100%), 1fr)); gap: 2.75rem 2rem; }
.news-h { font-size: var(--fs-5); margin: 2.5rem 0 1rem; padding-top: .75rem; border-top: var(--rule); }
.year-tabs--news { position: static; margin-bottom: 2rem; }
.year-tabs--news a[aria-current="page"] { color: var(--gold-ink); text-decoration-line: underline; text-decoration-thickness: 2px; text-decoration-color: var(--gold-mark); text-underline-offset: .3em; }
.news-older { margin: 3rem 0 0; color: var(--muted); }
.news-search { display: flex; align-items: center; gap: .5rem; max-width: 42rem; border-bottom: 2px solid var(--navy); padding-bottom: .35rem; }
.news-search > .i { width: 1.3em; height: 1.3em; color: var(--navy); }
.news-search input { flex: 1; min-width: 0; border: 0; padding: .6rem .25rem; font: inherit; font-size: 1.1rem; background: none; color: var(--ink); }
.news-search input:focus { outline: 2px solid var(--navy); outline-offset: 2px; }
.news-wyniki { margin: 1.5rem 0 1rem; }
.news-wyniki__ile { margin: 0 0 1rem; color: var(--muted); }
.news-wyniki .news-h { margin-top: 1.5rem; }
.prose figure img[tabindex]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.news-wyniki .news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(26rem, 100%), 1fr)); column-gap: 2.5rem; }
.news-wyniki .news-list li .news-item { padding: .9rem 0; border-top: 0; border-bottom: var(--hair); }

/* strona wpisu */
.prose > figure.wpis__foto { max-width: none; margin: 0 0 2rem; }
.wpis__foto img { width: auto; max-width: 100%; max-height: 78vh; }
.wpis .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: 1.5rem 0 2rem; }
.wpis .gallery figure img { height: 150px; padding: 4px; }
.prose a.wideo, .wideo { position: relative; display: block; max-width: var(--measure); aspect-ratio: 16/9; margin: 1.5rem 0 2rem; overflow: hidden; background: var(--navy-deep); color: #fff; text-decoration: none; clear: both; }
.prose .wideo img { width: 100%; height: 100%; object-fit: cover; margin: 0; padding: 0; border: 0; background: none; opacity: .85; cursor: pointer; }
.wideo span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: .6rem; padding: .75rem 1.25rem; background: rgba(13, 29, 59, .88); border: 1px solid var(--gold-2); font: 600 1rem/1.2 var(--sans); white-space: nowrap; }
.wideo span::before { content: ""; border-left: 14px solid var(--gold-2); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.wideo:hover span, .wideo:focus-visible span { background: var(--navy); }
.wideo iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.glosy { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin: 3rem 0 0; padding: 1.25rem 0; border-top: var(--rule); border-bottom: var(--hair); clear: both; }
.glosy__pyt { margin: 0 auto 0 0; font: italic 500 var(--fs-6)/1.3 var(--serif); color: var(--navy); }
.glosy__btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--field); border-radius: var(--radius); background: #fff; color: var(--navy); font: 600 .95rem/1.2 var(--sans); cursor: pointer; }
.glosy__btn b { margin-left: .15rem; padding-left: .6rem; border-left: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.glosy__btn:hover { border-color: var(--navy); }
.glosy__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.glosy__btn[aria-pressed="true"] b { border-left-color: rgba(255, 255, 255, .35); }
.glosy__btn:disabled, .glosy__btn[aria-disabled="true"] { cursor: default; }
.glosy__btn[aria-disabled="true"]:not([aria-pressed="true"]) { opacity: .6; }
.glosy__btn[aria-disabled="true"]:hover { border-color: var(--field); }
.glosy__btn[aria-pressed="true"][aria-disabled="true"]:hover { border-color: var(--navy); }
.glosy__msg { flex-basis: 100%; margin: 0; font-size: .95rem; color: var(--muted); }

.komentarze { margin: 3rem 0 0; }
.prose .komentarze h2 { font-size: var(--fs-4); margin: 0 0 1rem; }
.komentarze h2 small { font-size: .7em; color: var(--muted); }
.kom-lista { list-style: none; margin: 0; padding: 0 !important; border-top: var(--hair); }
.kom { margin: 0 !important; padding: 1rem 0; border-bottom: var(--hair); }
.kom__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .75rem; margin: 0 0 .35rem; font-size: .9rem; color: var(--muted); }
.kom__meta b { color: var(--navy); font-size: 1rem; }
.kom__ocena { padding: 0 .4rem; border: 1px solid var(--line-2); font-size: .8rem; }
.kom__tresc { margin: 0; }
.kom-form { display: grid; gap: .9rem; max-width: var(--measure); margin-top: 2rem; padding: 1.5rem; background: var(--cream); border-top: 2px solid var(--navy); }
.prose .kom-form h3 { margin: 0; font-size: var(--fs-5); }
.kom-form label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }
.kom-form input, .kom-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid var(--field); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.kom-form input:focus, .kom-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.kom-form .kom-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kom-form__info { margin: 0; font-size: .9rem; color: var(--muted); }
.kom-form .btn { justify-self: start; }
.kom-form__msg { margin: 0; font-weight: 600; color: var(--navy); }
.kom-form__msg.is-err { color: var(--rubric); }

.wpis__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 3rem 0 0; padding-top: 1rem; border-top: var(--rule); }
.prose .wpis__nav a { display: grid; align-content: start; gap: .3rem; color: var(--navy); font: 600 var(--fs-6)/1.25 var(--serif); font-feature-settings: "onum" 1; text-decoration-line: none; }
.wpis__nav small { font: 600 .8rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink); }
.wpis__nav-nw { text-align: right; }
.prose .wpis__nav a:hover { text-decoration-line: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: .15em; }

/* ===== Responsywność ===== */
@media (max-width: 1180px) {
  .nav > ul { gap: 1rem; } /* 981–1180px: menu z pozycją Aktualności mieści się w jednym wierszu */
  .mega { right: -170px; min-width: 0; width: 860px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem 1.5rem; } /* 981–1180px: cała lista mieści się w oknie */
  .times { gap: .25rem 1rem; }
  .times span { font-size: 1.35rem; } /* pięć godzin niedzielnych mieści się w jednym wierszu tablicy */
}
@media (max-width: 1080px) {
  .layout, .page-layout { grid-template-columns: 1fr; row-gap: var(--s5); }
      .cal td { height: 42px; }
  .cal td button, .cal__head button { width: 40px; height: 40px; }
}
/* tablet: panel boczny płynie jak dwie szpalty gazety – bloki różnej wysokości nie zostawiają dziur */
@media (min-width: 601px) and (max-width: 1080px) {
  .layout__side, .page-side { display: block; columns: 2 17.5rem; column-gap: 3rem; }
  .layout__side > *, .page-side > * { break-inside: avoid; margin: 0 0 var(--s4); }
}
@media (max-width: 980px) {
  .hero__in { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0; }
  .hero__shade { background: linear-gradient(180deg, rgba(13, 29, 59, .8), rgba(13, 29, 59, .7) 55%, rgba(13, 29, 59, .55)); }
  .burger { display: block; }
  .nav { position: fixed; inset: 76px 0 0 0; background: #fff; padding: 1rem clamp(16px, 4vw, 48px) 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: var(--hair); }
  .nav > ul > li:last-child { border-bottom: 0; }
  .nav a, .nav button { font-size: 1.1rem; padding: .85rem 0; width: 100%; justify-content: space-between; }
  .nav a:hover, .nav button:hover { box-shadow: none; }
  .nav a[aria-current="page"], .has-sub.is-active > button { box-shadow: inset 3px 0 0 var(--gold-mark); padding-left: .85rem; }
  .sub a[aria-current="page"] { text-decoration-line: none; } /* w menu mobilnym bieżącą pozycję znaczy tylko złota belka */
  .nav .nav__cta { margin: .75rem 0 0; justify-content: center; padding: .85rem 1rem; }
  .sub, .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; display: none; min-width: 0; }
  .has-sub.open .sub { display: block; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open:hover .sub { display: block; }
  .has-sub > button .i { transition: transform .15s; }
  .has-sub.open > button .i { transform: rotate(180deg); }
  .mega__h { margin-left: 0; border-bottom: 0; }
  .mega a { font-size: 1rem; padding: .6rem 0; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .news-front { grid-template-columns: 1fr; }
  .news-front .news-list { margin-top: 2rem; }
  .pcard:first-child { grid-row: auto; margin-bottom: 1rem; }
  .contact, .contact-strip { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid > :first-child { grid-column: 1 / -1; }
  .toc ol { columns: 1; }
  .year-tabs { top: 76px; }
  .page-hero::before { opacity: .12; }
}
@media (min-width: 601px) and (max-width: 980px) {
  .masscard { max-width: 34rem; }
  .pcard:first-child img, .contact-strip img { aspect-ratio: 16/9; }
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 981px) and (max-width: 1100px) {
  .brand__txt small { display: none; } /* przy menu z Aktualnościami podtytuł pod logo łamałby się na dwa wiersze */
}
@media (min-width: 601px) and (max-width: 900px) {
  .topbar__addr { display: none; } /* nazwa, telefon i e-mail w jednym wierszu; adres jest w stopce */
}
@media (min-width: 601px) and (max-width: 660px) {
  .topbar__name { display: none; } /* tu nazwa z kontaktami już się nie mieści – jak na telefonie */
  .topbar__in { justify-content: center; }
}
@media (max-width: 600px) {
  :root { --fs-dek: 1.2rem; }
  body { font-size: 16px; }
  .prose { font-size: 1.0625rem; }
  .topbar__name, .topbar__addr { display: none; }
  .topbar__in { justify-content: center; padding: 0; }
  .topbar__contact a { padding: .5rem 0; }
  .brand__txt small { display: none; }
  .hero { min-height: 0; }
  .hero h1 { font-size: 2.35rem; }
  .hero h1 .nw { white-space: normal; }
  .h1-pre { font-size: 1rem; }
  .hero__link { padding: .5rem 0; }
  .masscard { padding: 1.5rem 1.25rem 1.25rem; outline-offset: -6px; }
  .masscard__link { margin-top: .5rem; padding: .5rem 0; }
  .times { gap: .25rem .75rem; }
  .times span { font-size: 1.25rem; }
  .quick { grid-template-columns: 1fr 1fr; }
  .section { padding: 3rem 0; }
  .quickbar + .section { padding-top: 2.5rem; }
  .ann > li { padding-left: 2.5rem; }
  .banns__pair { grid-template-columns: 1fr; gap: .5rem; text-align: center; }
  .banns h3 { text-align: center; }
  .grid2 { grid-template-columns: 1fr; }
  .intlist article { grid-template-columns: 1fr; }
  .intlist header { display: flex; gap: .75rem; align-items: baseline; margin-bottom: .5rem; }
  .hours--wide li { padding-left: 0; }
  .hours--wide span { float: none; display: block; width: auto; margin-left: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer ul { gap: 0; }
  .footer ul a { display: inline-block; padding: .45rem 0; }
  .footer li.bez-linku { padding: .45rem 0; }
  .btn--text[data-copy] { padding: .6rem 0; }
  /* pola dotyku ok. 40px i więcej; ujemny margines zostawia układ bez zmian */
  .crumbs a, .footer__bottom a, .link, .sec-head__more, .contact__list a, .contact-strip a:not(.btn) { display: inline-block; padding: .6rem 0; margin: -.6rem 0; }
  .poll label { padding: .45rem 0; }
  .form__chk { padding: .5rem 0; }
  .btn--sm { min-height: 44px; }
  .archive summary { padding-block: .5rem; margin-block: -.5rem; }
  .side-nav a, .side-list a { padding-top: .6rem; padding-bottom: .6rem; }
  .year-tabs { flex-wrap: wrap; overflow: visible; }
  .year-tabs--news { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); padding: 0; }
  .year-tabs--news a, .year-tabs--news a:first-child { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .4rem; border: 0; background: #fff; }
  .year-tabs--news a + a { border-left: 0; }
  .year-tabs a { flex: none; font-size: 1.125rem; padding: .6rem .5rem; }
  .year-tabs a:first-child { padding-left: 0; }
  .prose img.float { float: none; width: 100%; margin: 0 0 1rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .gallery figure img { height: 150px; }
  .gallery--scans { grid-template-columns: 1fr; }
  .gallery--scans figure img { height: 320px; }
  .members { columns: 1; }
  .news-item { grid-template-columns: 88px minmax(0, 1fr); gap: .85rem; }
  .news-item img, .news-item img.news-card__logo { width: 88px; height: 66px; }
  .news-item img.news-card__logo { padding: 12px 24px; }
  .news-grid { gap: 0; }
  /* na telefonie długa lista wpisów jest zwięzła: miniatura z boku, bez zajawki */
  .news-grid .news-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: .9rem; align-items: start; padding: 1rem 0; border-bottom: var(--hair); }
  .news-grid .news-card:first-child { padding-top: 0; }
  .news-grid .news-card__img { aspect-ratio: 4/3; margin: 0; padding: 3px; }
  .news-grid .news-card__txt { display: grid; gap: .2rem; }
  .news-grid .news-card__zaj { display: none; }
  .news-grid .news-card h3 { font-size: 1.15rem; }
  .wpis__nav { grid-template-columns: 1fr; }
  .wpis__nav-nw { text-align: left; }
  .glosy__pyt { flex-basis: 100%; }
  .kom-form { padding: 1.25rem 1rem; }
  .wpis .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; }
  .wpis .gallery figure img { height: 96px; padding: 2px; }
  .news-search input { font-size: 1rem; }
  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero::before { display: none; }
  .page-body { padding: 2rem 0 3rem; }
  .prose table { font-size: .875rem; }
  .prose td { padding: .35rem .4rem; }
  details.year td:first-child { width: 2rem; padding-left: 0; }
  details.year td:last-child { width: 2.25rem; padding-right: 0; }
  .obits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
  .obit { padding-left: .6rem; }
  .form { padding: 1.5rem 1.25rem; }
  .iban-box { padding: 1.75rem 1.5rem; }
  .tabs { gap: .25rem 1.25rem; }
  .lightbox { padding: 3.5rem .5rem; }
  .lightbox__nav { top: auto; bottom: 12px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
