/* Parafie Bańgów - wspólny arkusz strony.
 * Baza: html/wariant-c/*.html (podstrony). Hero: html/wariant-d/index.html.
 * Reguły .hero-* występują tylko na stronie głównej, więc nie wymagają zawężania.
 * Zawężone selektorem .home są WYŁĄCZNIE te, które na głównej mają inną wartość
 * niż na podstronach (odstępy sekcji, wyrównanie .split, wyśrodkowany .note-box).
 */

:root {
--granat: #1E2A44;
    --ink: #191B20;
    --paper: #FFFFFF;
    --paper-alt: #F5F6F8;
    --line: #E4E6EB;
    --muted: #6B7078;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0; background: var(--paper); color: var(--ink);
    font-family: 'Inter', -apple-system, sans-serif; font-size: 18px; line-height: 1.65; font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Inter', sans-serif; margin: 0 0 0.4em; line-height: 1.2; font-weight: 400; }
p { margin: 0 0 1em; max-width: 62ch; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--granat); color: #fff; padding: 14px 20px; z-index: 1000; font-weight: 600; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--granat); outline-offset: 3px; }
header.site { position: relative; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; max-width: 1180px; margin: 0 auto; position: relative; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand-logo { height: 42px; width: auto; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text .l1, .brand-text .l3 { font-size: 0.66rem; color: var(--muted); letter-spacing: 0.04em; }
.brand-text .l2 { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
nav.primary > ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
nav.primary a {
display: flex; align-items: center; min-height: 44px; text-decoration: none;
    font-size: 0.92rem; font-weight: 500; color: var(--muted);
}
nav.primary a:hover { color: var(--ink); }
nav.primary a[aria-current="page"] { color: var(--ink); font-weight: 700; }
li.has-dropdown { position: relative; }
.nav-drop-toggle {
display: flex; align-items: center; gap: 6px; min-height: 44px; background: transparent; border: none;
    font-family: inherit; font-size: 0.92rem; font-weight: 500; color: var(--muted); cursor: pointer; padding: 0;
}
.nav-drop-toggle:hover, .nav-drop-toggle[aria-expanded="true"] { color: var(--ink); }
.nav-drop-toggle .caret { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; transition: transform 0.2s ease; }
.nav-drop-toggle[aria-expanded="true"] .caret { transform: rotate(-135deg); margin-top: 3px; }
.dropdown { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 32px -12px rgba(0,0,0,0.18); display: none; }
.has-dropdown.is-open .dropdown, .has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: flex; min-height: 40px; align-items: center; padding: 0 10px; border-radius: 6px; font-size: 0.9rem; }
.dropdown a:hover { background: var(--paper-alt); }
.nav-toggle { display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ink); margin: 3px 0; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.page-header { background: var(--granat); color: #fff; padding: 72px 0 56px; }
.page-header .eyebrow { color: rgba(255,255,255,0.75); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.page-header h1 { color: #fff; font-weight: 300; font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.2em; }
.page-header p { color: #C7CCDA; font-weight: 300; max-width: 60ch; margin-bottom: 0; }
section { padding: 88px 0; }
section.alt { background: var(--paper-alt); }
.section-head { max-width: 640px; margin: 0 0 40px; }
.section-head .eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 300; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split img { border-radius: 8px; }
.split figure { margin: 0; }
.split figcaption { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.timeline { list-style: none; margin: 28px 0 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--granat); border: 3px solid var(--paper); }
.timeline .rok { font-weight: 700; font-size: 0.9rem; color: var(--granat); display: block; margin-bottom: 2px; }
.timeline .opis { font-weight: 300; color: #3A3D45; margin: 0; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 28px 30px; margin-top: 36px; }
.info-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.info-card p { font-size: 0.95rem; font-weight: 300; color: #3A3D45; margin-bottom: 0; }
.info-card a { color: var(--granat); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
footer.site { background: var(--paper); color: var(--muted); padding: 28px 0 18px; font-size: 0.88rem; border-top: 1px solid var(--line); }
footer.site .foot-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
footer.site strong { color: var(--ink); }
footer.site a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.tresc-blok { max-width: 76ch; }
.tresc-blok p { font-weight: 300; color: #3A3D45; }
.tresc-blok h3 { font-size: 1.2rem; font-weight: 600; margin: 32px 0 8px; }
.lista-def { margin: 0; }
.lista-def dt { font-weight: 700; margin-top: 22px; font-size: 1.05rem; }
.lista-def dt:first-child { margin-top: 0; }
.lista-def dd { margin: 6px 0 0; color: #3A3D45; font-weight: 300; }
.lista-def dd ul { margin: 8px 0 0; padding-left: 20px; }
.lista-def dd li { margin-bottom: 4px; }
.karta-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.karta { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 30px 28px; flex: 1 1 280px; max-width: 360px; }
.karta h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 6px; }
.karta .meta { font-size: 0.82rem; font-weight: 600; color: var(--granat); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.karta p { font-size: 0.94rem; font-weight: 300; color: #3A3D45; margin-bottom: 0; }
table.harmonogram { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 0.96rem; }
table.harmonogram caption { text-align: left; font-weight: 700; font-size: 1.05rem; padding: 26px 0 10px; color: var(--granat); }
table.harmonogram th, table.harmonogram td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.harmonogram th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
table.harmonogram td.data { font-weight: 700; white-space: nowrap; width: 130px; }
table.harmonogram td.kto { font-weight: 300; color: #3A3D45; }
.foto-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 12px; }
.foto-grid figure { margin: 0; }
.foto-grid img { width: 100%; border-radius: 8px; }
.foto-grid figcaption { margin-top: 8px; font-size: 0.85rem; color: var(--muted); }
.kontakt-box { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 26px 28px; margin-top: 26px; max-width: 620px; }
.kontakt-box h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.kontakt-box ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 300; }
.kontakt-box li { padding: 4px 0; }
.kontakt-box a { color: var(--granat); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.dokument { max-width: 820px; }
.dokument .naglowek-mies { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--granat); margin-bottom: 6px; }
.dokument ul { padding-left: 20px; font-weight: 300; color: #3A3D45; }
.dokument li { margin-bottom: 10px; }
.dzien { border-bottom: 1px solid var(--line); padding: 16px 0; }
.dzien:last-child { border-bottom: none; }
.dzien .data-dnia { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.dzien .msza { display: flex; gap: 14px; font-size: 0.94rem; font-weight: 300; color: #3A3D45; padding: 3px 0; }
.dzien .godz { font-weight: 600; color: var(--ink); white-space: nowrap; min-width: 118px; }
.dzien .nabo { font-size: 0.88rem; font-style: italic; color: var(--muted); padding: 4px 0 0 0; }
.btn-map { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; font-size: 0.85rem; font-weight: 600; text-decoration: none; border-radius: 6px; border: 1.5px solid var(--granat); color: var(--granat); }
.note-box { margin-top: 40px; background: var(--paper-alt); border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; font-size: 0.95rem; color: #4A4D54; }
.community-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.community-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 34px 32px; flex: 1 1 300px; max-width: 380px; }
.community-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 6px; }
.community-card .meta { font-size: 0.85rem; font-weight: 600; color: var(--granat); margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.community-card p { font-size: 0.95rem; font-weight: 300; color: #3A3D45; margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 840px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px -12px rgba(0,0,0,0.12); max-height: calc(100svh - 64px); overflow-y: auto; }
  nav.primary.is-open { display: block; }
  nav.primary > ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  nav.primary a { min-height: 56px; font-size: 1.02rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; min-height: 56px; font-size: 1.02rem; border-bottom: 1px solid var(--line); padding: 0; }
  .dropdown { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; background: transparent; min-width: 0; }
  .has-dropdown:not(.is-open) .dropdown { display: none; }
  .has-dropdown.is-open .dropdown { display: block; }
  .dropdown a { min-height: 48px; }
  .hero-medal { width: 130px; height: 130px; margin-bottom: 12px; }
  .page-header { padding: 48px 0 40px; }
}

/* ---------- Strona główna: hero wariantu D ---------- */
.hero { position: relative; height: calc(100svh - 64px); min-height: 480px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; }
.hero-collage { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.hero-collage img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 65% at center, rgba(0,0,0,0.60) 0%, rgba(0,0,0,0.46) 45%, rgba(0,0,0,0.24) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 20px 24px; display: flex; flex-direction: column; align-items: center; }
.hero-medal { width: 190px; height: 190px; border-radius: 50%; overflow: hidden; margin-bottom: 18px; border: 4px solid rgba(255,255,255,0.9); box-shadow: 0 16px 40px rgba(0,0,0,0.5); }
.hero-medal img { width: 100%; height: 100%; object-fit: cover; }
.hero-kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin-bottom: 10px; opacity: 0.92; }
.hero h1 { font-size: clamp(1.7rem, 4.4vw, 2.9rem); font-weight: 400; color: #fff; margin-bottom: 0.25em; }
.hero p.sub { font-size: 0.98rem; font-weight: 300; color: #EDEDEF; max-width: 46ch; }
.btn {
display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px;
    font-size: 0.85rem; font-weight: 600; text-decoration: none; border-radius: 6px; cursor: pointer; border: 1.5px solid transparent;
}
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.75); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.intro-text { max-width: 76ch; font-size: 1.08rem; font-weight: 300; color: #3A3D45; }
.parish-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.parish-card { background: var(--paper); padding: 40px 36px; }
.parish-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.parish-card h3 { font-size: 1.5rem; font-weight: 600; margin: 8px 0 4px; }
.parish-card .addr { color: var(--muted); font-size: 0.95rem; margin-bottom: 26px; }
.mass-list { list-style: none; margin: 0 0 22px; padding: 0; }
.mass-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
.mass-list .days { color: #4A4D54; font-weight: 300; }
.mass-list .times { font-weight: 600; text-align: right; white-space: nowrap; }
.mass-list .uwaga { display: block; font-size: 0.82rem; color: var(--muted); }
.odpust { font-size: 0.9rem; color: var(--muted); }
.odpust strong { color: var(--ink); font-weight: 600; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-card { background: var(--paper); padding: 32px; }
.contact-card h3 { font-size: 1.1rem; font-weight: 600; }
.contact-card ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
.contact-card li { padding: 6px 0; }
.contact-card a { color: var(--granat); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 840px) {
  .parish-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-height: 700px) {
  .hero-medal { width: 120px; height: 120px; margin-bottom: 10px; }
  .hero h1 { font-size: clamp(1.4rem, 4vw, 2.4rem); }
  .hero-kicker { margin-bottom: 6px; }
}

/* ---------- Strona główna: nadpisania wspólnych reguł ---------- */
.home section { padding: 96px 0; }
.home .section-head { max-width: 640px; margin: 0 0 46px; }
.home .note-box { margin: 40px auto 0; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px 26px; font-size: 0.95rem; color: #4A4D54; }
.home .split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
