/* site.css — custom overrides on top of the prebuilt app.css.
   NOTE: the design's theme vars are FULL colors (e.g. --paper:#f4f2ec,
   --rust:#c8543b, --fg:#293f14) — use var(--x) directly, never hsl(var(--x)).
   For alpha use color-mix(in srgb, var(--x) N%, transparent). */

/* Header: transparent at the very top (homepage only), solid once scrolled. */
header.is-top {
  background: transparent !important;
  border-color: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* Hero parallax headroom (transform driven by site.js). */
#start img.object-cover { will-change: transform; }

/* ---------- Subpage mini-hero ----------
   The fixed h-16 (64px) header overlaps content; pt-28/pt-36 were tree-shaken
   out of app.css. This band guarantees top clearance + a consistent hero. */
.subpage-hero {
  position: relative;
  padding-top: 9.5rem;
  padding-bottom: 4.5rem;
  color: #f7f5ef;
  /* Same hero photo as the homepage, but the photo COLOR shows through a dark
     green scrim (legible light text) instead of a cream veil — so the band reads
     as a distinct, coloured header. Fixed colours = works in light AND dark mode. */
  background-image:
    linear-gradient(180deg, rgba(22,30,12,.62) 0%, rgba(22,30,12,.34) 46%, rgba(22,30,12,.72) 100%),
    url('../img/hero-wnetrze.jpg');
  background-size: cover;
  background-position: center 42%;
  border-bottom: 3px solid #c8543b;
}
@media (min-width: 640px) {
  .subpage-hero { padding-top: 11rem; padding-bottom: 5.5rem; }
}
.subpage-hero__back {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .85rem; font-weight: 500; margin-bottom: 1.1rem;
  color: rgba(247,245,239,.8); text-decoration: none;
}
.subpage-hero__back:hover { color: #fff; }
.subpage-hero__eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: #eaa993;
}
.subpage-hero__rule { display: inline-block; height: 2px; width: 3rem; background: #c8543b; }
.subpage-hero__title {
  margin-top: 1.25rem; font-weight: 600; font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; color: #f7f5ef;
}
.subpage-hero__sub { margin-top: 1rem; max-width: 42rem; font-size: 1.125rem; line-height: 1.6; color: rgba(247,245,239,.82); }

/* First content block on a subpage detail (article) still needs header clearance. */
main > article:first-child { padding-top: 6.5rem; }
@media (min-width: 640px) { main > article:first-child { padding-top: 7.5rem; } }

/* Guaranteed gap between the mini-hero band and the content below it
   (py-14/pb-28 utilities are tree-shaken out of app.css). */
.subpage-hero + section,
.subpage-hero + article { padding-top: 3.5rem; }
@media (min-width: 640px) {
  .subpage-hero + section,
  .subpage-hero + article { padding-top: 4rem; }
}

/* ---------- Main-nav dropdowns ---------- */
.nav-item { position: relative; display: inline-flex; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; margin-top: .4rem; min-width: 220px;
  background: var(--paper); border: 1px solid var(--edge);
  border-radius: 14px; padding: .4rem; z-index: 50;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: .55rem .7rem; border-radius: 9px; font-size: 13px;
  color: color-mix(in srgb, var(--fg) 80%, transparent); text-decoration: none; white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--surface); color: var(--fg); }
.nav-caret { transition: transform .16s ease; }
.nav-item:hover .nav-caret, .nav-item.is-open .nav-caret { transform: rotate(180deg); }

/* Rich dropdown (title + description + arrow) */
.nav-dropdown--rich { min-width: 340px; padding: .5rem; }
.nav-dd-item { display: block; padding: .65rem .85rem; border-radius: 11px; text-decoration: none; }
.nav-dd-item:hover { background: var(--surface); }
.nav-dd-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-dd-title { font-size: 14px; font-weight: 600; color: var(--fg); white-space: nowrap; }
.nav-dd-arrow { color: color-mix(in srgb, var(--fg) 35%, transparent); transition: transform .15s ease, color .15s ease; }
.nav-dd-item:hover .nav-dd-arrow { color: var(--rust); transform: translateX(3px); }
.nav-dd-desc { display: block; margin-top: .15rem; font-size: 12.5px; color: color-mix(in srgb, var(--fg) 55%, transparent); white-space: normal; line-height: 1.35; }

/* ---------- GDPR cookie banner ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60; display: flex; justify-content: center; }
.cookie-banner__inner {
  max-width: 680px; width: 100%; background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent);
  border-radius: 16px; box-shadow: 0 16px 48px -16px rgba(0,0,0,.4);
  padding: 18px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.cookie-banner__text { margin: 0; flex: 1 1 280px; font-size: .92rem; line-height: 1.5; color: color-mix(in srgb, var(--fg) 85%, transparent); }
.cookie-banner__text a { color: var(--rust); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; margin-left: auto; }
.cc-btn { padding: 9px 18px; border-radius: 999px; font-size: .9rem; font-weight: 600; cursor: pointer; border: 1px solid transparent; }
.cc-btn--ghost { background: transparent; border-color: color-mix(in srgb, var(--fg) 22%, transparent); color: color-mix(in srgb, var(--fg) 80%, transparent); }
.cc-btn--ghost:hover { border-color: color-mix(in srgb, var(--fg) 45%, transparent); }
.cc-btn--primary { background: var(--rust); color: #fff; border-color: var(--rust); }
.cc-btn--primary:hover { filter: brightness(.94); }

/* Site banner modal */
.site-banner { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.site-banner__overlay { position: absolute; inset: 0; background: rgba(20,16,10,.6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.site-banner__box { position: relative; z-index: 1; width: 100%; max-width: 460px; background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.5); }
.site-banner__x { position: absolute; top: 10px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0,0,0,.35); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.site-banner__x:hover { background: rgba(0,0,0,.55); }
.site-banner__img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.site-banner__content { padding: 22px 24px 26px; }
.site-banner__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: 0 0 .5rem; color: var(--fg); }
.site-banner__text { margin: 0 0 1.1rem; color: color-mix(in srgb, var(--fg) 75%, transparent); line-height: 1.55; }
.site-banner__btn { display: inline-flex; align-items: center; gap: .4rem; background: var(--rust); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.site-banner__btn:hover { filter: brightness(.94); }

/* ---------- Rich-text page bodies (.page-prose) ---------- */
.page-prose > :first-child { margin-top: 0; }
.page-prose p { margin: 0 0 1.1em; }
.page-prose h2 { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.7rem; line-height: 1.15; margin: 1.8em 0 .6em; color: var(--fg); }
.page-prose h3 { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.3rem; margin: 1.5em 0 .5em; color: var(--fg); }
.page-prose h4 { font-weight: 600; font-size: 1.1rem; margin: 1.3em 0 .4em; }
.page-prose ul, .page-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.page-prose li { margin: .3em 0; }
.page-prose ul { list-style: disc; }
.page-prose ol { list-style: decimal; }
.page-prose blockquote { border-left: 3px solid var(--rust); padding-left: 1.1em; margin: 1.2em 0; font-style: italic; color: color-mix(in srgb, var(--fg) 75%, transparent); }
.page-prose a { color: var(--rust); text-decoration: underline; text-underline-offset: 2px; }
.page-prose a:hover { opacity: .8; }
.page-prose hr { border: 0; border-top: 1px solid var(--edge); margin: 2em 0; }
.page-prose strong { font-weight: 600; color: var(--fg); }

/* ---------- Listy wpisów (ogłoszenia/intencje/głos/kalendarz/rozważania) ----------
   Wyróżniony najnowszy (featured) na 1. stronie + lista z ikonami i większym oddechem. */
.entry-list { display: flex; flex-direction: column; }
.entry-row {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.35rem 1rem; border-radius: 1rem;
  transition: background-color .18s ease; text-decoration: none;
}
.entry-row + .entry-row { border-top: 0.5px solid var(--edge-soft); }
.entry-row:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.entry-tile {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 2.75rem; height: 2.75rem; border-radius: .9rem;
  background: color-mix(in srgb, var(--rust) 10%, transparent); color: var(--rust);
}
.entry-tile svg { width: 1.25rem; height: 1.25rem; }
.entry-eyebrow { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: color-mix(in srgb, var(--rust) 90%, transparent); }
.entry-row__title { margin-top: .25rem; font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.15rem; line-height: 1.3; color: var(--fg); transition: color .15s ease; }
.entry-arrow { flex: none; font-size: 1.5rem; color: color-mix(in srgb, var(--fg) 35%, transparent); transition: color .15s ease; }
.entry-row:hover .entry-arrow { color: var(--rust); }
.entry-row:hover .entry-row__title { color: var(--rust); }

.entry-featured {
  display: flex; gap: 1.5rem; align-items: flex-start;
  background: var(--surface); border: 0.5px solid var(--edge);
  border-radius: 1.25rem; padding: 1.6rem; margin-bottom: 2.5rem;
  text-decoration: none; transition: border-color .18s ease;
}
.entry-featured:hover { border-color: color-mix(in srgb, var(--fg) 25%, transparent); }
.entry-featured .entry-tile { width: 4.1rem; height: 4.1rem; border-radius: 1.1rem; }
.entry-featured .entry-tile svg { width: 1.85rem; height: 1.85rem; }
.entry-featured__meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.entry-badge {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: .04em;
  text-transform: uppercase; font-weight: 500; background: var(--rust); color: var(--paper);
  padding: 3px 10px; border-radius: 999px;
}
.entry-featured__title {
  display: block; font-family: var(--font-fraunces, Georgia, serif); font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.2; color: var(--fg);
  margin: .35rem 0 1.1rem; transition: color .15s ease;
}
.entry-featured:hover .entry-featured__title { color: var(--rust); }
.entry-featured__cta {
  display: inline-flex; align-items: center; gap: .5rem; background: var(--main);
  color: var(--paper); font-size: 13px; font-weight: 500; padding: .6rem 1.1rem;
  border-radius: 999px; transition: background-color .15s ease;
}
.entry-featured:hover .entry-featured__cta { background: var(--rust); }
@media (max-width: 640px) {
  .entry-featured { flex-direction: column; gap: 1rem; padding: 1.25rem; }
}

/* ---------- Strona kontaktu ---------- */
.contact-grid { display: grid; gap: 2.25rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: .82fr 1.18fr; gap: 3.5rem; align-items: start; } }
.contact-aside {
  background: var(--surface); border: 0.5px solid var(--edge);
  border-radius: 1.25rem; padding: 2rem 1.85rem;
}
.contact-info-item { display: flex; gap: 1rem; align-items: flex-start; padding: .85rem 0; }
.contact-info-item + .contact-info-item { border-top: 0.5px solid var(--edge-soft); }
.contact-ico {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 2.6rem; height: 2.6rem; border-radius: .8rem;
  background: color-mix(in srgb, var(--rust) 10%, transparent); color: var(--rust);
}
.contact-ico svg { width: 1.2rem; height: 1.2rem; }
.contact-info-label { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: color-mix(in srgb, var(--fg) 50%, transparent); }
.contact-info-val { margin: .2rem 0 0; color: var(--fg); line-height: 1.5; }
.contact-info-val a { color: var(--fg); text-decoration: none; }
.contact-info-val a:hover { color: var(--rust); }
.contact-social { display: flex; gap: .6rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 0.5px solid var(--edge-soft); }
.contact-social a { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: .75rem; border: 1px solid var(--edge); color: color-mix(in srgb, var(--fg) 70%, transparent); transition: all .15s ease; }
.contact-social a:hover { border-color: var(--rust); color: var(--rust); background: color-mix(in srgb, var(--rust) 8%, transparent); }

.contact-formwrap {
  background: var(--paper); border: 0.5px solid var(--edge);
  border-radius: 1.25rem; padding: 2.25rem 2rem;
}
.contact-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.contact-field { margin-bottom: 1.1rem; }
.contact-field label { display: block; font-size: 13px; font-weight: 500; color: color-mix(in srgb, var(--fg) 75%, transparent); margin-bottom: .4rem; }
.contact-input, .contact-textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--edge);
  border-radius: .75rem; padding: .8rem 1rem; font: inherit; font-size: 15px;
  color: var(--fg); transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-textarea { resize: vertical; min-height: 8rem; }
.contact-input:focus, .contact-textarea:focus {
  outline: none; border-color: var(--rust);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--rust) 16%, transparent);
}
.contact-submit {
  display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
  background: var(--main); color: var(--paper); border: 0; font-weight: 500; font-size: 15px;
  padding: .85rem 1.6rem; border-radius: 999px; transition: background-color .15s ease;
}
.contact-submit:hover { background: var(--rust); }
.contact-submit svg { width: 1.1rem; height: 1.1rem; }
.contact-note { margin-top: 1.1rem; font-size: 12.5px; line-height: 1.5; color: color-mix(in srgb, var(--fg) 55%, transparent); }
.contact-note a { color: var(--rust); text-decoration: underline; }
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-alert { border-radius: .9rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: 14.5px; line-height: 1.5; border: 1px solid; }
.contact-alert--ok { background: color-mix(in srgb, #2e7d32 12%, var(--paper)); border-color: color-mix(in srgb, #2e7d32 40%, transparent); color: #245c28; }
.contact-alert--err { background: color-mix(in srgb, #c0392b 10%, var(--paper)); border-color: color-mix(in srgb, #c0392b 38%, transparent); color: #9a2c20; }

/* ============ System designu podstron treściowych (.sp-*) ============ */
.sp-section { padding: 3.5rem 0; }
@media (min-width: 640px) { .sp-section { padding: 5rem 0; } }
.sp-section--tint { background: var(--surface); }
.sp-wrap { margin: 0 auto; max-width: 64rem; padding: 0 1.5rem; }
@media (min-width: 1024px) { .sp-wrap { padding: 0 2.5rem; } }
.sp-wrap--wide { max-width: 80rem; }
.sp-eyebrow { display: inline-flex; align-items: center; gap: .65rem; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--rust); }
.sp-eyebrow::before { content: ""; display: inline-block; width: 2.2rem; height: 2px; background: var(--rust); }
.sp-h2 { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em; color: var(--fg); margin: 1rem 0 0; }
.sp-lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.65; color: color-mix(in srgb, var(--fg) 78%, transparent); margin: 1.25rem 0 0; max-width: 44rem; }
.sp-lead--center { margin-left: auto; margin-right: auto; text-align: center; }
.sp-center { text-align: center; }
.sp-center .sp-lead { margin-left: auto; margin-right: auto; }

/* Karty (sakramenty, grupy) */
.sp-cat { margin-top: 3rem; }
.sp-cat__label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: color-mix(in srgb, var(--fg) 55%, transparent); }
.sp-cat__label::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.sp-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .sp-grid--2 { grid-template-columns: repeat(2, 1fr); } .sp-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .sp-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.sp-card { position: relative; background: var(--paper); border: 0.5px solid var(--edge); border-radius: 1.1rem; padding: 1.6rem 1.5rem; transition: border-color .18s ease, transform .18s ease; }
.sp-section--tint .sp-card { background: var(--paper); }
.sp-card:hover { border-color: color-mix(in srgb, var(--rust) 45%, transparent); transform: translateY(-2px); }
.sp-card__ico { display: inline-flex; align-items: center; justify-content: center; width: 3.1rem; height: 3.1rem; border-radius: .9rem; background: color-mix(in srgb, var(--rust) 10%, transparent); color: var(--rust); margin-bottom: 1.1rem; }
.sp-card__ico svg { width: 1.5rem; height: 1.5rem; }
.sp-card__n { display: block; font-size: 11px; letter-spacing: .14em; color: color-mix(in srgb, var(--rust) 85%, transparent); font-weight: 600; margin-bottom: .35rem; }
.sp-card__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.2rem; color: var(--fg); margin: 0 0 .5rem; }
.sp-card__desc { font-size: .95rem; line-height: 1.6; color: color-mix(in srgb, var(--fg) 72%, transparent); margin: 0; }

/* Rozkład godzin (nabożeństwa, kancelaria) */
.sp-times { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .sp-times--2 { grid-template-columns: 1fr 1fr; } .sp-times--3 { grid-template-columns: repeat(3, 1fr); } }
.sp-panel { background: var(--paper); border: 0.5px solid var(--edge); border-radius: 1.1rem; padding: 1.75rem; }
.sp-section--tint .sp-panel { background: var(--paper); }
.sp-panel__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; padding-bottom: 1rem; border-bottom: 0.5px solid var(--edge); }
.sp-panel__head svg { width: 1.3rem; height: 1.3rem; color: var(--rust); flex: none; }
.sp-panel__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.15rem; color: var(--fg); }
.sp-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .5rem 0; }
.sp-row + .sp-row { border-top: 0.5px dashed color-mix(in srgb, var(--fg) 12%, transparent); }
.sp-row__t { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--rust); white-space: nowrap; }
.sp-row__l { color: color-mix(in srgb, var(--fg) 80%, transparent); text-align: right; }
.sp-note { margin-top: 1.1rem; font-size: .9rem; line-height: 1.55; color: color-mix(in srgb, var(--fg) 60%, transparent); }

/* Cytat / wyróżnienie (patronka, adoracja) */
.sp-quote { position: relative; max-width: 48rem; margin: 0 auto; text-align: center; }
.sp-quote__mark { font-family: var(--font-fraunces, Georgia, serif); font-size: 4rem; line-height: 1; color: color-mix(in srgb, var(--rust) 35%, transparent); }
.sp-quote__text { font-family: var(--font-fraunces, Georgia, serif); font-style: italic; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.32; color: var(--fg); margin: .5rem 0 1.25rem; }
.sp-quote__cite { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: color-mix(in srgb, var(--fg) 55%, transparent); font-weight: 500; }

/* Oś czasu (historia) */
.sp-timeline { position: relative; margin-top: 2.5rem; padding-left: 2rem; }
.sp-timeline::before { content: ""; position: absolute; left: .35rem; top: .4rem; bottom: .4rem; width: 2px; background: linear-gradient(var(--rust), color-mix(in srgb, var(--rust) 20%, transparent)); }
.sp-tl { position: relative; padding-bottom: 2rem; }
.sp-tl:last-child { padding-bottom: 0; }
.sp-tl::before { content: ""; position: absolute; left: calc(-2rem + .05rem); top: .35rem; width: .65rem; height: .65rem; border-radius: 50%; background: var(--rust); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rust) 15%, transparent); }
.sp-tl__date { font-variant-numeric: tabular-nums; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--rust); }
.sp-tl__body { margin: .35rem 0 0; line-height: 1.6; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.sp-prose { font-size: 1.05rem; line-height: 1.75; color: color-mix(in srgb, var(--fg) 82%, transparent); }
.sp-prose p { margin: 0 0 1.1em; }
.sp-cta { display: inline-flex; align-items: center; gap: .5rem; background: var(--main); color: var(--paper); font-weight: 500; font-size: 14px; padding: .7rem 1.4rem; border-radius: 999px; text-decoration: none; transition: background-color .15s ease; }
.sp-cta:hover { background: var(--rust); }
@media (min-width: 768px) { .patron-cols { grid-template-columns: .8fr 1.2fr; } }

/* ============ Strona główna (4 bloki) i nowe podstrony ============ */

/* Hero z filmem */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-top-scrim { position: absolute; left: 0; right: 0; top: 0; height: 10rem; pointer-events: none; background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 78%, transparent), transparent); }
.hero-title { font-size: clamp(2.8rem, 8vw, 7.25rem); line-height: .94; }

/* Bloki strony głównej */
.home-block { padding: 4.5rem 0; }
@media (min-width: 640px) { .home-block { padding: 6.5rem 0; } }
.home-block--tint { background: var(--surface); }
.home-head { margin-bottom: 2.5rem; }
.home-head--split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem; }
[id].home-block, .sp-section[id], .sp-panel[id], .sacr-card[id], .groups-item[id] { scroll-margin-top: 8.5rem; }

/* Blok 2: 3 kafelki */
.home-tiles { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .home-tiles { grid-template-columns: repeat(3, 1fr); } }
.home-tile { display: flex; flex-direction: column; background: var(--surface); border: 0.5px solid var(--edge); border-radius: 1.25rem; padding: 1.75rem 1.6rem; }
.home-tile__head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.home-tile__ico { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: .85rem; background: color-mix(in srgb, var(--rust) 10%, transparent); color: var(--rust); flex: none; }
.home-tile__ico svg { width: 1.35rem; height: 1.35rem; }
.home-tile__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.35rem; color: var(--fg); margin: 0; }
.home-tile__label { margin: 1rem 0 .45rem; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--fg) 50%, transparent); }
.home-tile__label:first-of-type { margin-top: 0; }
.home-tile__text { margin: 0; color: color-mix(in srgb, var(--fg) 80%, transparent); line-height: 1.55; }
.home-tile__lead { margin: 0; font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--fg); }
.home-tile__lead a { color: inherit; text-decoration: none; }
.home-tile__lead a:hover { color: var(--rust); }
.home-tile__row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed color-mix(in srgb, var(--fg) 12%, transparent); font-size: .95rem; color: color-mix(in srgb, var(--fg) 75%, transparent); }
.home-tile__row strong { color: var(--rust); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-tile__link { margin-top: auto; padding-top: 1.25rem; font-size: 14px; font-weight: 500; color: var(--rust); text-decoration: none; }
.home-tile__link:hover { text-decoration: underline; }
.home-tile__btn { align-self: flex-start; margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .4rem; background: var(--main); color: var(--paper); font-size: 14px; font-weight: 500; padding: .65rem 1.2rem; border-radius: 999px; text-decoration: none; transition: background-color .15s ease; }
.home-tile__btn:hover { background: var(--rust); }
.home-tile__list { list-style: none; margin: 1.25rem 0 0; padding: 1rem 0 0; border-top: 0.5px solid var(--edge); display: grid; gap: .55rem; }
.home-tile__list a { font-size: 14.5px; color: var(--fg); text-decoration: none; }
.home-tile__list a:hover { color: var(--rust); }
.time-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.time-chip { display: inline-flex; align-items: baseline; gap: .3rem; padding: .32rem .7rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--edge); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--fg); }
.time-chip em { font-style: normal; font-weight: 400; font-size: .78em; color: color-mix(in srgb, var(--fg) 55%, transparent); }

/* Blok 3: wspólnoty 2×2 */
.group-grid { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .group-grid { grid-template-columns: 1fr 1fr; } }
.group-card { display: flex; flex-direction: column; background: var(--surface); border: 0.5px solid var(--edge); border-radius: 1.25rem; padding: 1.75rem 1.6rem; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.group-card:hover { border-color: color-mix(in srgb, var(--rust) 45%, transparent); transform: translateY(-2px); }
.group-card__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.3rem; color: var(--fg); margin: 0 0 .5rem; }
.group-card:hover .group-card__title { color: var(--rust); }
.group-card__desc { margin: 0; font-size: .95rem; line-height: 1.6; color: color-mix(in srgb, var(--fg) 72%, transparent); }
.group-card__meta { margin: 1.1rem 0 0; padding-top: 1rem; border-top: 1px dashed color-mix(in srgb, var(--fg) 14%, transparent); display: grid; gap: .4rem; }
.group-card__meta div { display: flex; gap: .75rem; font-size: .9rem; }
.group-card__meta dt { flex: none; min-width: 7.5rem; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--fg) 50%, transparent); padding-top: .15rem; }
.group-card__meta dd { margin: 0; color: var(--fg); }

/* Blok 4: duszpasterze, dane, mapa */
.home-contact { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 1024px) { .home-contact { grid-template-columns: 1.1fr .9fr; } }
.home-card { background: var(--paper); border: 0.5px solid var(--edge); border-radius: 1.25rem; padding: 1.75rem 1.6rem; }
.home-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.home-card__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.35rem; color: var(--fg); margin: 0 0 1rem; }
.home-card__head .home-card__title { margin: 0; }
.home-card__more { font-size: 14px; font-weight: 500; color: var(--rust); text-decoration: none; white-space: nowrap; }
.priest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.priest-row { display: flex; align-items: center; gap: .9rem; padding: .6rem .5rem; border-radius: .9rem; text-decoration: none; transition: background-color .15s ease; }
.priest-row:hover { background: color-mix(in srgb, var(--fg) 4%, transparent); }
.priest-row__img { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 999px; overflow: hidden; background: var(--surface-2); }
.priest-row__img img { width: 100%; height: 100%; object-fit: cover; }
.priest-row__body { display: flex; flex-direction: column; min-width: 0; }
.priest-row__name { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.02rem; color: var(--fg); }
.priest-row__name em { font-family: Inter, system-ui, sans-serif; font-style: normal; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--rust); margin-left: .35rem; vertical-align: 2px; }
.priest-row__duties { font-size: .86rem; line-height: 1.4; color: color-mix(in srgb, var(--fg) 62%, transparent); }
.home-data { margin: 0; display: grid; gap: .9rem; }
.home-data dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--fg) 50%, transparent); }
.home-data dd { margin: .2rem 0 0; color: var(--fg); line-height: 1.5; }
.home-data dd a { color: var(--fg); text-decoration: none; }
.home-data dd a:hover { color: var(--rust); }
.home-data__account { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.home-data__account span { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.home-map { margin-top: 1.5rem; }

/* Przycisk kopiowania */
.copy-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .8rem; border: 1px solid var(--edge); border-radius: 999px; background: transparent; color: color-mix(in srgb, var(--fg) 80%, transparent); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s ease; }
.copy-btn svg { width: 1rem; height: 1rem; }
.copy-btn:hover, .copy-btn.is-copied { border-color: var(--rust); color: var(--rust); }

/* Mapa ładowana po kliknięciu */
.map-frame { position: relative; aspect-ratio: 16 / 10; border-radius: 1rem; overflow: hidden; border: 0.5px solid var(--edge);
  background: radial-gradient(circle at 30% 40%, color-mix(in srgb, var(--rust) 10%, transparent) 0 8%, transparent 9%), repeating-linear-gradient(45deg, transparent 0 22px, color-mix(in srgb, var(--fg) 4%, transparent) 22px 23px), var(--surface-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame__load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; border: 0; background: transparent; cursor: pointer; color: var(--fg); text-align: center; }
.map-frame__pin { display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 3.2rem; border-radius: 999px; background: var(--rust); color: #fff; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.map-frame__pin svg { width: 1.5rem; height: 1.5rem; }
.map-frame__addr { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.05rem; }
.map-frame__cta { display: inline-flex; background: var(--main); color: var(--paper); font-size: 13.5px; font-weight: 500; padding: .5rem 1.1rem; border-radius: 999px; transition: background-color .15s ease; }
.map-frame__load:hover .map-frame__cta { background: var(--rust); }
.map-frame__note { font-size: 12px; color: color-mix(in srgb, var(--fg) 52%, transparent); }
.map-route { display: inline-block; margin-top: .8rem; font-size: 14px; font-weight: 500; color: var(--rust); text-decoration: none; }
.map-route:hover { text-decoration: underline; }
.kanc-map { margin-top: 1.75rem; }
@media (min-width: 900px) { .kanc-map .map-frame { aspect-ratio: 21 / 9; } }

/* Podstrony: wspólne elementy */
.sub-nav { position: sticky; top: 4rem; z-index: 30; display: flex; justify-content: center; gap: .25rem; overflow-x: auto; background: color-mix(in srgb, var(--paper) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--edge); }
.sub-nav a { flex: none; padding: .9rem 1rem; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--fg) 72%, transparent); text-decoration: none; white-space: nowrap; }
.sub-nav a:hover { color: var(--rust); }
@media (max-width: 640px) { .sub-nav { justify-content: flex-start; } }
.sp-panel__text { margin: 0; line-height: 1.6; color: color-mix(in srgb, var(--fg) 80%, transparent); }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem 2rem; }
@media (min-width: 640px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--fg); line-height: 1.5; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--rust); font-weight: 700; }
.street-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.street-list li { padding: .3rem .75rem; border: 1px solid var(--edge); border-radius: 999px; background: var(--paper); font-size: 13.5px; color: color-mix(in srgb, var(--fg) 85%, transparent); }

/* Msze i Sakramenty */
.sacr-card { display: flex; flex-direction: column; }
.sacr-details { margin-top: 1rem; }
.sacr-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--rust); }
.sacr-details ul { margin: .6rem 0 0; padding-left: 1.1rem; list-style: disc; }
.sacr-details li { font-size: .9rem; line-height: 1.5; margin: .3rem 0; color: color-mix(in srgb, var(--fg) 78%, transparent); }
.sacr-btn { align-self: flex-start; margin-top: 1.1rem; display: inline-flex; font-size: 14px; font-weight: 600; color: var(--rust); text-decoration: none; padding: .55rem 1rem; border: 1px solid color-mix(in srgb, var(--rust) 45%, transparent); border-radius: 999px; transition: all .15s ease; }
.sacr-btn:hover { background: var(--rust); color: #fff; border-color: var(--rust); }

/* Ogłoszenia i Intencje */
.news-body { margin-top: 1.75rem; }
.news-more { margin-top: 2rem; }
.news-extra { margin-top: 3rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .news-extra { grid-template-columns: 1fr 1fr; } }
.news-extra a { display: block; padding: 1.25rem 1.5rem; border: 0.5px solid var(--edge); border-radius: 1rem; background: var(--surface); text-decoration: none; transition: border-color .15s ease; }
.news-extra a:hover { border-color: var(--rust); }
.news-extra strong { display: block; font-family: var(--font-fraunces, Georgia, serif); font-size: 1.15rem; color: var(--fg); }
.news-extra span { font-size: 14px; color: var(--rust); }

/* Parafia: duszpasterze, sekcje z obrazem, relikwie */
.priest-grid { margin-top: 2.5rem; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .priest-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .priest-grid { grid-template-columns: repeat(3, 1fr); } }
.priest-card { display: flex; flex-direction: column; border: 0.5px solid var(--edge); border-radius: 1.25rem; overflow: hidden; background: var(--surface); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.priest-card:hover { border-color: color-mix(in srgb, var(--rust) 45%, transparent); transform: translateY(-3px); }
.priest-card__img { aspect-ratio: 1 / 1; overflow: hidden; background: #8f8f8f; }
.priest-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.priest-card:hover .priest-card__img img { transform: scale(1.04); }
.priest-card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.35rem 1.5rem 1.6rem; flex: 1; }
.priest-card__role { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--rust); }
.priest-card__name { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.25rem; color: var(--fg); }
.priest-card__tag { font-family: var(--font-fraunces, Georgia, serif); font-style: italic; font-size: 1rem; line-height: 1.4; color: color-mix(in srgb, var(--fg) 72%, transparent); }
.priest-card__duties { margin-top: .35rem; font-size: .88rem; line-height: 1.5; color: color-mix(in srgb, var(--fg) 65%, transparent); }
.priest-card__more { margin-top: auto; padding-top: .75rem; font-size: 14px; font-weight: 500; color: var(--rust); }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 768px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split--rev .split__img { order: 2; } }
.split__img { border-radius: 1.25rem; overflow: hidden; border: 0.5px solid var(--edge); aspect-ratio: 16 / 10; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.split__img--tall { aspect-ratio: 3 / 4; max-width: 26rem; justify-self: center; width: 100%; }
.relic-card { display: flex; flex-direction: column; gap: 1.25rem; padding: 2.25rem 2rem; border: 0.5px solid var(--edge); border-radius: 1.5rem; background: var(--paper); }
@media (min-width: 640px) { .relic-card { flex-direction: row; align-items: flex-start; gap: 1.75rem; } }

/* Grupy i wspólnoty (archiwum) */
.groups-list { display: grid; gap: 1.25rem; padding-top: .5rem; }
@media (min-width: 900px) { .groups-list { grid-template-columns: 1fr 1fr; } }
.groups-item { display: flex; flex-direction: column; border: 0.5px solid var(--edge); border-radius: 1.25rem; padding: 1.75rem 1.6rem; background: var(--surface); }
.groups-item__title { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.35rem; color: var(--fg); margin: 0 0 .75rem; }
.groups-item__desc { color: color-mix(in srgb, var(--fg) 78%, transparent); line-height: 1.65; font-size: .98rem; }
.groups-item__desc p { margin: 0 0 .8em; }
.groups-item .group-card__meta { margin-top: auto; }

/* Duszpasterz — biogram */
.priest-bio { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 768px) { .priest-bio { grid-template-columns: 17rem 1fr; } }
.priest-bio__img { aspect-ratio: 1 / 1; border-radius: 1.25rem; overflow: hidden; border: 0.5px solid var(--edge); background: #8f8f8f; max-width: 20rem; }
.priest-bio__img img { width: 100%; height: 100%; object-fit: cover; }

/* RODO */
.rodo h2 { font-family: var(--font-fraunces, Georgia, serif); font-weight: 600; font-size: 1.35rem; margin: 2.2rem 0 .6rem; color: var(--fg); }
.rodo h2:first-child { margin-top: 0; }
.rodo ul { padding-left: 1.2rem; list-style: disc; margin: 0 0 1.1em; }
.rodo li { margin: .3em 0; }

/* Czytelność tekstu Hero na filmie: rozjaśnienie po lewej, pod tekstem (kościół po prawej zostaje widoczny). */
.hero-text-scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--paper) 78%, transparent) 0%, color-mix(in srgb, var(--paper) 45%, transparent) 42%, transparent 72%); }
@media (max-width: 767px) { .hero-text-scrim { background: linear-gradient(to top, color-mix(in srgb, var(--paper) 85%, transparent) 20%, color-mix(in srgb, var(--paper) 35%, transparent) 70%, transparent); } }

/* Treści z edytora (m.in. intencje ze starej strony z tabelami) nie mogą rozpychać strony na telefonie. */
.page-prose { overflow-wrap: anywhere; }
.page-prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.page-prose td, .page-prose th { padding: .35rem .6rem; vertical-align: top; }
.page-prose img { max-width: 100%; height: auto; }

/* Linki prawne w stopce (gap-x-6/gap-y-2 nie ma w prebuildowanym app.css). */
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Terminy w kartach sakramentów (bierzmowanie, I Komunia) */
.sacr-dates { margin: 1rem 0 0; padding: .85rem 1rem; border-radius: .8rem; background: color-mix(in srgb, var(--rust) 7%, transparent); display: grid; gap: .55rem; }
.sacr-dates dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: color-mix(in srgb, var(--fg) 55%, transparent); }
.sacr-dates dd { margin: .1rem 0 0; font-weight: 600; color: var(--fg); font-size: .93rem; }

/* Grupy i Wspólnoty: dwie sekcje (grupy / nabożeństwa) pod podnawigacją */
.sub-nav + .archive-body { padding-top: 3.5rem; }
@media (min-width: 640px) { .sub-nav + .archive-body { padding-top: 4.5rem; } }
.groups-section[id] { scroll-margin-top: 8.5rem; }
.groups-section + .groups-section { margin-top: 5rem; padding-top: 3.5rem; border-top: 1px solid var(--edge); }
.groups-section .sp-lead { margin-bottom: 2rem; }

/* Rada Parafialna */
.rada-list { margin: .75rem 0 0; padding-left: 1.3rem; list-style: decimal; display: grid; gap: .35rem; }
.rada-list li { color: color-mix(in srgb, var(--fg) 85%, transparent); line-height: 1.45; }
.rada-list li::marker { color: var(--rust); font-weight: 600; }
