/* =========================================================
   Parafia Najświętszej Maryi Panny Matki Miłosierdzia — Stegny
   Szkic prezentacyjny v0.1 (kierunek: synodwarszawa.pl)
   Paleta: granat sakralny + błękit + złoto liturgiczne
   ========================================================= */

:root {
  --granat: #16243f;
  --granat-2: #1f335c;
  --blekit: #2f6bd4;
  --blekit-jasny: #4f86e6;
  --zloto: #c2992f;
  --zloto-jasny: #d9b85a;
  --tekst: #25303f;
  --tekst-2: #5a6573;
  --tlo: #ffffff;
  --tlo-soft: #f6f3ea;        /* ciepły pergamin — nuta wydawnicza, dostojność */
  --tlo-soft-2: #efeadc;
  --krem: #faf7ef;
  --linia: #e6e1d4;           /* cieplejsza linia pod pergamin */
  --linia-zimna: #e2e8f1;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 14px 34px rgba(22, 36, 63, 0.07);
  --shadow-lg: 0 26px 60px rgba(22, 36, 63, 0.13);
  --maxw: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--tekst);
  background: var(--tlo);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.12;
  color: var(--granat);
  font-weight: 600;
  letter-spacing: 0.2px;
}

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--zloto), var(--zloto-jasny));
  color: #2a2208;
  box-shadow: 0 8px 20px rgba(194, 153, 47, 0.35);
}
.btn-gold:hover { box-shadow: 0 12px 28px rgba(194, 153, 47, 0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-outline {
  background: transparent;
  color: var(--granat);
  border: 1.5px solid var(--linia);
}
.btn-outline:hover { border-color: var(--blekit); color: var(--blekit); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linia);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand-mark {
  font-size: 1.7rem;
  color: var(--zloto);
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; }
.brand-short { display: none; } /* domyślnie pełna nazwa; krótszą włącza media query mobile */
.brand-text strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--granat);
  letter-spacing: 0.2px;
}
.brand-text small {
  font-size: 0.72rem;
  color: var(--tekst-2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.main-nav { display: flex; gap: 26px; }
.main-nav a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--tekst);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--zloto);
  transition: width .25s ease;
}
.main-nav a:hover { color: var(--granat); }
.main-nav a:hover::after { width: 100%; }
.header-cta { padding: 9px 22px; font-size: 0.9rem; }
.nav-toggle {
  display: none;
  background: none;
  font-size: 1.5rem;
  color: var(--granat);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  /* TODO: dodać realne zdjęcie kościoła jako pierwszą warstwę:
     url("img/hero.jpg") center/cover, ... (gradient zostaje jako przyciemnienie) */
  background:
    radial-gradient(circle at 22% 18%, rgba(79,134,230,0.28), transparent 55%),
    linear-gradient(160deg, #131f37 0%, #1f335c 55%, #2a4980 100%);
  overflow: hidden;
}
/* Zdjęcie kościoła w tle + efekt Kena Burnsa (powolne zbliżanie) */
.hero-media {
  position: absolute; inset: 0; z-index: 0;
  background: url('img/hero.jpg') center/cover no-repeat;
  animation: kenburns 40s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}
.hero::before {
  /* delikatny znak wodny — krzyż maryjny po prawej, dodaje sakralnego charakteru */
  content: '☩';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 34rem;
  line-height: 1;
  color: rgba(217, 184, 90, 0.06);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  /* subtelny wzór światła, imituje witraż/promienie */
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 40px);
  opacity: 0.6;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(120deg, rgba(16,26,46,0.88) 0%, rgba(20,33,58,0.74) 48%, rgba(31,51,92,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 84px 24px 134px;
  max-width: 820px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  color: var(--zloto-jasny);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-kicker::before {
  content: '';
  width: 38px;
  height: 1.5px;
  background: var(--zloto-jasny);
  display: inline-block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.8rem, 5.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}
.hero-sub {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 34px;
  max-width: 620px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== QUICK INFO ===== */
.quickinfo {
  margin-top: -64px;
  position: relative;
  z-index: 5;
  padding: 0 0 10px;
}
.quickinfo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.qi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--linia);
  transition: transform .25s ease, box-shadow .25s ease;
}
.qi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.qi-card--accent {
  background: linear-gradient(160deg, #1f335c, #16243f);
  border: none;
}
.qi-card--accent h3,
.qi-card--accent li,
.qi-card--accent .qi-link { color: #fff; }
.qi-card--accent li span { color: var(--zloto-jasny); }
.qi-icon {
  font-size: 1.8rem;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tlo-soft-2);
  border-radius: 50%;
  margin-bottom: 16px;
}
.qi-card--accent .qi-icon { background: rgba(255,255,255,0.12); }
.qi-card h3 { font-size: 1.5rem; margin-bottom: 14px; }
.qi-card ul { list-style: none; margin-bottom: 16px; }
.qi-card li {
  display: flex;
  flex-direction: column;
  padding: 7px 0;
  font-size: 0.98rem;
  font-weight: 500;
  border-bottom: 1px dashed var(--linia);
}
.qi-card--accent li { border-bottom: 1px dashed rgba(255,255,255,0.18); }
.qi-card li:last-child { border-bottom: none; }
.qi-card li span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--tekst-2);
  font-weight: 600;
  margin-bottom: 2px;
}
.qi-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blekit);
}
.qi-link:hover { color: var(--granat); }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }
.section--soft { background: var(--tlo-soft); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 54px; }
.section-head h2 { position: relative; padding-bottom: 18px; }
.section-head h2::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 2px;
  background: linear-gradient(90deg, var(--zloto), var(--zloto-jasny));
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--zloto);
  margin-bottom: 12px;
}
.eyebrow--light { color: var(--zloto-jasny); }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-lead { color: var(--tekst-2); margin-top: 12px; font-size: 1.05rem; }
.section-foot { text-align: center; margin-top: 44px; }

/* ===== NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--linia);
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-thumb { height: 180px; background-size: cover; background-position: center; position: relative; }
.fb-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  color: #1a4ba0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 5px 11px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.news-thumb--1 { background: linear-gradient(135deg, #1f335c, #2a4980); }
.news-thumb--2 { background: linear-gradient(135deg, #c2992f, #d9b85a); }
.news-thumb--3 { background: linear-gradient(135deg, #1f335c, #2a4980); }
.news-body { padding: 24px 24px 28px; }
.news-date {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blekit);
}
.news-body h3 { font-size: 1.5rem; margin: 8px 0 10px; }
.news-body p { color: var(--tekst-2); font-size: 0.96rem; margin-bottom: 14px; }
.news-more { font-weight: 600; color: var(--granat); font-size: 0.9rem; }
.news-more:hover { color: var(--blekit); }

/* ===== OGŁOSZENIA PARAFIALNE (duszpasterskie) ===== */
.ogl-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 36px;
  align-items: start;
}
.ogl-list {
  background: #fff;
  border: 1px solid var(--linia);
  border-left: 5px solid var(--zloto);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.ogl-week {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--granat);
  padding-bottom: 16px;
  margin-bottom: 22px;
  border-bottom: 2px solid var(--tlo-soft-2);
}
.ogl-items { padding-left: 22px; }
.ogl-items li {
  padding: 10px 0 10px 8px;
  color: var(--tekst);
  font-size: 1rem;
  line-height: 1.6;
  border-bottom: 1px dashed var(--linia);
}
.ogl-items li::marker { color: var(--zloto); font-weight: 700; }
.ogl-items li:last-child { border-bottom: none; }
.ogl-pdf {
  position: relative;
  background: linear-gradient(160deg, #1f335c, #16243f);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ogl-propozycja {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(194,153,47,0.18);
  color: var(--zloto-jasny);
  border: 1px solid rgba(217,184,90,0.4);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 3px 10px;
  border-radius: 30px;
}
.ogl-pdf-icon { font-size: 2.6rem; margin-bottom: 12px; }
.ogl-pdf h3 { color: #fff; font-size: 1.7rem; margin-bottom: 12px; }
.ogl-pdf p { color: rgba(255,255,255,0.82); font-size: 0.95rem; margin-bottom: 22px; }
.ogl-archive {
  display: inline-block;
  margin-top: 16px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--zloto-jasny);
}
.ogl-archive:hover { color: #fff; }

/* ===== PASEK DUCHOWY ===== */
.duchowy {
  background: linear-gradient(160deg, #16243f, #1f335c);
  color: #fff;
  padding: 80px 0;
}
.duchowy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.duchowy-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 38px 36px;
}
.duchowy-box h3 { color: #fff; font-size: 1.8rem; margin-bottom: 18px; }
.duchowy-box blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 10px;
}
.duchowy-ref { color: var(--zloto-jasny); font-weight: 600; letter-spacing: 1px; }
.duchowy-note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.opoka-widget {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
.opoka-widget iframe {
  width: 300px;
  height: 615px; /* dopasowane do realnej treści liturgii — mniej pustego miejsca (780 zostawiało lukę) */
  border: 0;
  max-width: 100%;
}

.vatican-list { list-style: none; }
.vatican-list li {
  padding: 11px 0 11px 26px;
  position: relative;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.vatican-list li::before {
  content: '☩';
  position: absolute;
  left: 0;
  color: var(--zloto-jasny);
}

/* ===== WSPÓLNOTY ===== */
.wspolnoty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.wsp-tile {
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--granat);
  transition: all .25s ease;
}
.wsp-tile:hover {
  background: var(--granat);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.wsp-note {
  text-align: center;
  margin-top: 22px;
  font-size: 0.85rem;
  color: var(--tekst-2);
  font-style: italic;
}

/* ===== TRANSMISJE YOUTUBE ===== */
.transmisje {
  background: linear-gradient(160deg, #16243f, #1f335c);
  color: #fff;
  padding: 84px 0;
}
.transmisje-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.transmisje-text h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.transmisje-text p { color: rgba(255,255,255,0.82); font-size: 1.05rem; margin-bottom: 26px; }
.screen-frame {
  position: relative;
  background: #0c1322;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.screen-live {
  position: absolute;
  top: 16px; left: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(220,38,38,0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 11px;
  border-radius: 30px;
}
.live-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.screen-play {
  font-size: 3rem;
  color: #fff;
  width: 86px; height: 86px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(194,153,47,0.92);
  border-radius: 50%;
  padding-left: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.screen-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.78);
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  text-align: center;
}

/* ===== eTACA ===== */
.etaca {
  background:
    linear-gradient(135deg, rgba(194,153,47,0.12), rgba(47,107,212,0.08)),
    var(--tlo-soft-2);
  padding: 80px 0;
}
.etaca-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.etaca-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.etaca-text p { color: var(--tekst-2); margin-bottom: 26px; font-size: 1.05rem; }
.etaca-konta {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--linia);
}
.etaca-konta h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  color: var(--tekst-2);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.etaca-konta p { margin-bottom: 16px; font-size: 0.95rem; color: var(--tekst); }
.etaca-konta strong { color: var(--granat); }

/* ===== FOOTER ===== */
.site-footer { background: var(--granat); color: rgba(255,255,255,0.78); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 68px 24px 48px;
}
.footer-col h3 { color: #fff; font-size: 1.5rem; margin-bottom: 14px; }
.footer-col h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-col p { font-size: 0.92rem; margin-bottom: 12px; line-height: 1.7; }
.brand-mark--footer { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.footer-crest { height: 130px; width: auto; display: block; margin-top: 24px; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a { font-size: 0.92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--zloto-jasny); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-legal a:hover { color: var(--zloto-jasny); }

/* ===== CZYTELNIA PARAFIALNA ===== */
.czytelnia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}
.czyt-card {
  display: flex;
  gap: 22px;
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.czyt-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.czyt-cover {
  flex: 0 0 96px;
  height: 132px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  letter-spacing: .5px;
  /* placeholder do czasu wgrania realnych okładek (img/czytelnia/) */
}
.czyt-cover--przewodnik { background: linear-gradient(160deg, #1f335c, #16243f); }
.czyt-cover--stegna { background: linear-gradient(160deg, #2f6bd4, #1f335c); }
.czyt-body h3 { font-size: 1.45rem; margin-bottom: 8px; }
.czyt-body p { color: var(--tekst-2); font-size: 0.96rem; margin-bottom: 16px; }

/* ===== RODZINA MARIAŃSKA / PARTNERZY ===== */
.partnerzy { background: var(--tlo-soft); padding: 56px 0; border-top: 1px solid var(--linia); }
.partnerzy-eyebrow { text-align: center; margin-bottom: 28px; }
.partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}
.partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--linia);
  border-radius: var(--radius-sm);
  text-align: center;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  /* TODO: po wgraniu logotypów (img/partnerzy/) podmienić tekst na <img> */
}
.partner-card:hover { border-color: var(--blekit); transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--granat); line-height: 1.25; }
.partner-logo { max-height: 66px; max-width: 100%; width: auto; display: block; }
.czyt-cover-img { flex: 0 0 104px; width: 104px; height: auto; align-self: flex-start; border-radius: var(--radius-sm); box-shadow: 0 6px 16px rgba(22,36,63,0.18); }

/* ===== ZŁOTY AKCENT NA KARTACH (premium hover) ===== */
.qi-card:not(.qi-card--accent),
.news-card,
.czyt-card { border-top: 3px solid transparent; }
.qi-card:not(.qi-card--accent):hover,
.news-card:hover,
.czyt-card:hover { border-top-color: var(--zloto); }

/* ===== TOPBAR (social + dostępność + szukaj) ===== */
.topbar { background: var(--granat); color: rgba(255,255,255,0.78); font-size: 0.8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 18px; }
.topbar-social a { color: rgba(255,255,255,0.78); transition: color .2s; }
.topbar-social a:hover { color: var(--zloto-jasny); }
.topbar-tools { display: flex; align-items: center; gap: 16px; }
.a11y { display: flex; align-items: center; gap: 4px; }
.a11y-btn { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.18); border-radius: 5px; cursor: pointer; font-size: 0.72rem; line-height: 1; padding: 5px 8px; transition: background .2s; }
.a11y-btn:hover { background: rgba(255,255,255,0.24); }
.a11y-contrast { font-size: 0.85rem; }
.topbar-search { display: flex; }
.topbar-search input { border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.96); color: var(--tekst); border-radius: 5px 0 0 5px; padding: 5px 10px; font-size: 0.8rem; width: 150px; outline: none; }
.topbar-search button { border: none; background: var(--zloto); color: #2a2208; border-radius: 0 5px 5px 0; padding: 0 11px; cursor: pointer; }

/* ===== MASTHEAD (wyśrodkowana winieta) ===== */
.masthead { background: #fff; text-align: center; padding: 24px 0 20px; }
.masthead-brand { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.masthead-logo { height: 74px; width: auto; margin-bottom: 6px; }
.masthead-mark { font-size: 2.2rem; color: var(--zloto); line-height: 1; margin-bottom: 2px; }
.masthead-name { font-family: 'Cormorant Garamond', serif; font-weight: 700; color: var(--granat); font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: 0.3px; max-width: 780px; }
.masthead-sub { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 2px; color: var(--tekst-2); font-weight: 600; }

/* ===== NAVBAR (pełna szerokość, sticky) ===== */
.navbar { background: var(--granat); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 14px rgba(22,36,63,0.15); }
.navbar-inner { display: flex; align-items: center; justify-content: center; position: relative; min-height: 54px; }
.navbar .main-nav { display: flex; gap: 30px; }
.navbar .main-nav a { color: rgba(255,255,255,0.9); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.3px; padding: 6px 0; position: relative; transition: color .2s; }
.navbar .main-nav a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--zloto); transition: width .25s; }
.navbar .main-nav a:hover { color: #fff; }
.navbar .main-nav a:hover::after { width: 100%; }
.navbar-cta { position: absolute; right: 0; padding: 8px 20px; font-size: 0.86rem; }
.navbar .nav-toggle { color: #fff; }
.navbar-logo { display: none; }                  /* na desktopie ukryte — winieta wyżej; pokazuje się na mobilce */
.navbar-logo img { height: 42px; display: block; }
.nav-etaca { display: none; }                     /* na desktopie eTaca jako złoty pill; na mobilce wskakuje do menu */

/* Tryb wysokiego kontrastu (demo — w WP obsłuży wtyczka dostępności) */
body.hc { color: #000; }
body.hc p, body.hc li, body.hc .section-lead, body.hc .news-body p,
body.hc .stream-title, body.hc .lead-body p, body.hc .sw-ogl-list li { color: #000 !important; }
body.hc .section--soft, body.hc .frontpage, body.hc .partnerzy { background: #fff !important; }
body.hc a:not(.btn):not(.cat-chip) { text-decoration: underline; }

/* ===== FRONT PAGE MAGAZYNU ===== */
.fp-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--granat);
}
.fp-head .eyebrow { margin-bottom: 6px; }
.fp-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.fp-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-filter {
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 30px;
  border: 1px solid var(--linia); background: #fff; color: var(--tekst-2);
  font-family: inherit; cursor: pointer; transition: all .2s;
}
.cat-filter:hover { border-color: var(--blekit); color: var(--blekit); }
.cat-filter.is-active { background: var(--granat); border-color: var(--granat); color: #fff; }

.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; }
.fp-main { display: flex; flex-direction: column; gap: 30px; }

/* LEAD STORY */
.lead-story {
  background: #fff; border: 1px solid var(--linia); border-top: 3px solid transparent;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.lead-story:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-top-color: var(--zloto); }
.lead-thumb { height: 340px; position: relative; background-size: cover; background-position: center; }
.lead-thumb--piknik { background: linear-gradient(135deg, #2f8f6b, #1f335c); }
.lead-body { padding: 28px 30px 32px; }
.story-meta { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--blekit); }
.lead-title { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 8px 0 12px; }
.lead-body p { color: var(--tekst-2); margin-bottom: 16px; }

/* SECONDARY 2-up */
.story-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* STREAM (gęsta lista z kategoriami) */
.news-stream { display: flex; flex-direction: column; border-top: 1px solid var(--linia); }
.stream-item { display: flex; align-items: center; gap: 16px; padding: 16px 6px; border-bottom: 1px solid var(--linia); transition: background .15s; }
.stream-item:hover { background: var(--krem); }
.stream-date { font-size: 0.8rem; color: var(--tekst-2); font-weight: 600; min-width: 64px; }
.stream-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--granat); line-height: 1.2; }
.fp-main-foot { margin-top: 6px; }

/* CATEGORY CHIPS — stonowane: jasne tło + kolor tekstu w tej samej barwie */
.cat-chip { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 4px 11px; border-radius: 30px; }
.lead-thumb .cat-chip, .news-thumb .cat-chip { position: absolute; top: 16px; left: 16px; }
.cat-chip--parafia { background: #f1e1e3; color: #8c2f39; }      /* bordo stonowane */
.cat-chip--wspolnoty { background: #e6edfb; color: #2c5fc0; }    /* błękit stonowany */
.cat-chip--diecezja { background: #f6edd6; color: #8a6a18; }     /* złoto stonowane */
.cat-chip--miasto { background: #e3f0ea; color: #256b52; }       /* zieleń stonowana */
.stream-item .cat-chip { min-width: 104px; text-align: center; }

/* ===== SIDEBAR WIDGETY ===== */
.fp-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 92px; }
.sidebar-widget { background: #fff; border: 1px solid var(--linia); border-radius: var(--radius); padding: 22px 22px 24px; box-shadow: var(--shadow); }
.sw-head { border-bottom: 2px solid var(--zloto); padding-bottom: 10px; margin-bottom: 16px; }
.sw-kicker { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--zloto); margin-bottom: 4px; }
.sw-head h4 { font-size: 1.5rem; }
.sw-ogl-week { font-size: 0.82rem; font-weight: 600; color: var(--blekit); margin-bottom: 10px; }
.sw-ogl-list { margin: 0 0 18px; padding-left: 18px; }
.sw-ogl-list li { font-size: 0.92rem; color: var(--tekst-2); margin-bottom: 8px; line-height: 1.5; }
.btn-sm { padding: 11px 18px; font-size: 0.88rem; display: block; text-align: center; }
.sw-link { display: inline-block; margin-top: 12px; font-size: 0.86rem; font-weight: 600; color: var(--granat); }
.sw-link:hover { color: var(--blekit); }
.sw-opoka .opoka-widget { box-shadow: none; padding: 0; background: transparent; }
.sw-note { font-size: 0.78rem; color: var(--tekst-2); margin-top: 12px; }
.sw-vatican .vatican-list li { color: var(--tekst); }
.sw-vatican .vatican-list li::before { color: var(--zloto); }

/* ===== RESPONSYWNOŚĆ ===== */
@media (max-width: 920px) {
  .navbar .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .navbar-inner { position: static; justify-content: space-between; gap: 14px; }
  .navbar-cta { display: none; }                 /* pill chowamy — eTaca jest w menu */
  .navbar-logo { display: flex; align-items: center; }
  .nav-toggle { font-size: 1.7rem; line-height: 1; padding: 4px 6px; }
  /* rozwijane menu mobilne — pełna szerokość pod paskiem */
  .navbar.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--granat-2);
    padding: 4px 0 8px;
    box-shadow: var(--shadow-lg);
    z-index: 60;
  }
  .navbar.nav-open .main-nav a {
    color: #fff;
    font-size: 1rem;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .navbar.nav-open .main-nav a:active,
  .navbar.nav-open .main-nav a:hover { background: rgba(255,255,255,0.08); }
  .navbar.nav-open .main-nav a::after { display: none; }
  .navbar .main-nav .nav-etaca { display: block; }
  .navbar.nav-open .main-nav .nav-etaca { color: var(--zloto-jasny); font-weight: 700; }
  .quickinfo-grid,
  .news-grid,
  .czytelnia-grid,
  .partner-grid,
  .fp-grid,
  .story-cards,
  .wspolnoty-grid { grid-template-columns: 1fr; }
  .fp-sidebar { position: static; }
  .lead-thumb { height: 220px; }
  .duchowy-grid,
  .etaca-inner,
  .ogl-grid,
  .transmisje-inner,
  .footer-grid { grid-template-columns: 1fr; }
  .ogl-list { padding: 28px 24px; }
  .quickinfo { margin-top: -30px; }
  .footer-grid { gap: 28px; }
}
@media (max-width: 520px) {
  .header-inner { height: 64px; }
  .brand-text small { display: none; }
  .brand-full { display: none; }       /* na mobilce krótsza nazwa, bez zawijania */
  .brand-short { display: block; }
  .brand-text strong { font-size: 1.1rem; }
  .hero { min-height: 480px; }
  .section { padding: 60px 0; }
  .topbar-inner { flex-direction: column; gap: 8px; padding: 8px 0; }
  .topbar-social, .topbar-tools { justify-content: center; flex-wrap: wrap; }
  .topbar-search input { width: 150px; }
  .masthead { padding: 16px 0 14px; }
  .masthead-mark { font-size: 1.9rem; }
  .masthead-logo { height: 54px; margin-bottom: 4px; }
  .masthead-name { font-size: 1.3rem; }
  .a11y-btn { padding: 5px 7px; }
  .stream-item { flex-wrap: wrap; gap: 8px; }
  .stream-date { min-width: auto; }
}
