/* Parafia Krywałd – strona publiczna */
:root {
  --ground: #F7F4EE; --surface: #FFFFFF; --sand: #EFE7D6; --placeholder: #E9E3D6;
  --ink: #1B2333; --muted: #5A6170; --line: #E4DED2; --line-soft: #ECE6DA;
  --navy: #1F3A5F; --navy-dark: #142842; --gold: #A9812F; --gold-text: #7A5A17; --gold-light: #E2CB94;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap--narrow { max-width: 820px; }
.wrap--narrow-l { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.strong { font-weight: 600; }
.breakall { overflow-wrap: anywhere; }
.spaced { margin-top: 32px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Nagłówki */
.h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6vw, 60px); line-height: 1.05; }
.h1--page { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 4px 0 24px; }
.h2 { margin: 0 0 16px; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.15; }
.h2--lg { font-size: clamp(32px, 4vw, 40px); margin: 0; }
.kicker { display: block; margin: 0; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.kicker--light { color: var(--gold-light); }
.lead { font-size: 19px; color: var(--muted); max-width: 520px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 4px; }

/* Pasek górny i nagłówek */
.topbar { background: var(--navy); color: var(--ground); font-size: 14px; }
.topbar a { color: #fff; }
.topbar__in { display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.brand__place { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; }
.nav a { padding: 10px 14px; text-decoration: none; color: var(--ink); border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.nav a.is-active { color: var(--navy); font-weight: 600; border-bottom-color: var(--gold); }
.navtoggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* Przyciski */
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); background: var(--surface); }
.btn--outline:hover { background: #F0F3F7; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: #E8EDF3; color: var(--navy-dark); }
.btn--ghost { border-color: #D5DCE6; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 32px; }
.hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero__img { flex: 1 1 420px; min-width: 0; height: 380px; width: 100%; object-fit: cover; border-radius: var(--radius); }
.hero__img--empty { background: var(--placeholder); border: 1px dashed #B9AE97; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; color: var(--muted); font-size: 15px; }

/* Karty i układ */
.row { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 24px; padding-bottom: 24px; }
.row--top { align-items: flex-start; padding-top: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.card--navy { background: var(--navy); border-color: var(--navy); color: var(--ground); }
.card--sand { background: var(--sand); border-color: var(--sand); gap: 6px; }
.card--flush { padding: 0; overflow: hidden; gap: 0; }
.section { padding-top: 48px; padding-bottom: 24px; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 24px; }

.mass { flex: 2 1 560px; min-width: 0; }
.mass__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.mass__item { background: var(--ground); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.mass__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.mass__time { font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.mass__note { font-size: 14px; color: var(--muted); }
.mass p { margin: 4px 0 0; }

.ann { flex: 1 1 320px; min-width: 0; gap: 14px; }
.ann__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1.15; color: #fff; }
.ann__meta { font-size: 15px; color: #D5DCE6; }
.ann__btns { margin-top: auto; }
.ann__more { font-size: 15px; color: var(--gold-light); }
.ann__more:hover { color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.ncard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ncard__img { display: block; aspect-ratio: 16 / 9; background: var(--placeholder); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; }
.ncard__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.ncard__title { margin: 0; font-size: 21px; line-height: 1.3; }
.ncard__title a { color: var(--ink); text-decoration: none; }
.ncard__title a:hover { color: var(--navy); text-decoration: underline; }
.ncard p { margin: 0; font-size: 16px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.tiles--spaced { margin-top: 40px; }
.tile { min-height: 72px; padding: 0 20px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600; }
.tile:hover { border-color: var(--navy); color: var(--navy); }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 28px; background: var(--sand); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.banner > span:first-child { display: flex; flex-direction: column; }
.banner__title { font-weight: 600; font-size: 19px; }

.parish { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.parish__main { flex: 999 1 520px; min-width: 0; }
.parish .banner { flex: 1 1 100%; }
.liturgy { flex: 0 1 346px; max-width: 100%; min-width: 0; align-items: center; padding: 22px; }
.liturgy__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 26px; align-self: flex-start; }
.liturgy__frame, .liturgy iframe { display: block; width: 300px; max-width: 100%; height: 460px; border: 0; }
.liturgy__placeholder { background: var(--ground); border: 1px dashed #B9AE97; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; text-align: center; }
.liturgy__placeholder.is-loaded { padding: 0; border: 0; background: transparent; }
.contact { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.contact .h2--lg { margin-bottom: 12px; }
.map { flex: 2 1 520px; min-width: 0; min-height: 320px; border-radius: var(--radius); background: var(--placeholder); border: 1px dashed #B9AE97; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; overflow: hidden; }
.map.is-loaded { padding: 0; border: 0; }
.map iframe { width: 100%; height: 360px; border: 0; display: block; }

/* Ogłoszenia */
.pdf { flex: 999 1 600px; min-width: 0; }
.pdf__head { padding: 22px 28px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.pdf__title { margin: 0; font-size: 26px; line-height: 1.3; }
.pdf__view { background: #EDEAE3; }
.pdf__view iframe { display: block; width: 100%; height: 900px; border: 0; }
.pdf__mobile { display: none; padding: 16px 28px; margin: 0; }
.aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1px solid #C9C1AF; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); font-size: 15px; }
.pill.is-active { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 1px solid var(--line-soft); }
.list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; text-decoration: none; color: var(--ink); }
.list a:hover { color: var(--navy); }
.list a span:last-child { white-space: nowrap; }
.list li.muted { padding: 12px 0; }

/* Artykuł */
.article__img { border-radius: var(--radius); margin-bottom: 28px; width: 100%; }
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-size: 30px; margin: 1.2em 0 .4em; line-height: 1.2; }
.prose h3 { font-size: 21px; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose blockquote { margin: 1em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--gold); color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 32px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 32px; }
.notice { padding: 12px 16px; border-radius: 8px; }
.notice--info { background: #FDF1DC; color: #7A4B0A; }

/* Stopka */
.footer { background: var(--ink); color: #C9CED8; font-size: 15px; margin-top: 48px; }
.footer__in { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__name { font-family: var(--serif); font-size: 24px; color: #fff; font-weight: 600; }
.footer__head { color: #fff; font-weight: 600; }
.footer a { color: var(--gold-light); }
.footer a:hover { color: #fff; }

/* Telefon */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .navtoggle { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); padding-top: 8px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav a.is-active { border-bottom-color: var(--line-soft); }
  .hero { padding-top: 28px; gap: 24px; }
  .hero__img { height: 220px; }
  .card { padding: 20px; }
  .mass__time { font-size: 22px; }
  .pdf__view { display: none; }
  .pdf__mobile { display: block; }
  .pdf__head { padding: 18px 20px; }
}
@media print {
  .topbar, .header, .footer, .btnrow, .map { display: none; }
  body { background: #fff; }
}
