:root {
  --bg: #f6efe2;
  --surface: #fffaf1;
  --surface-strong: #fffdf8;
  --ink: #35261c;
  --muted: #756554;
  --brand: #4a3525;
  --brand-2: #6f4f31;
  --accent: #9a6b2d;
  --accent-dark: #7d4d19;
  --gold: #d3aa5b;
  --gold-soft: #ead6a9;
  --danger: #a11d1d;
  --ok: #166534;
  --line: #e5d2b4;
  --shadow: 0 18px 45px rgba(78, 52, 28, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 225, 147, .22), transparent 34%),
    radial-gradient(circle at 90% 40%, rgba(154, 107, 45, .10), transparent 38%),
    linear-gradient(180deg, #fbf5eb 0%, #f1e4d1 62%, #ead9bd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(110, 74, 34, .035) 0, rgba(110, 74, 34, .035) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(0deg, rgba(110, 74, 34, .025) 0, rgba(110, 74, 34, .025) 1px, transparent 1px, transparent 42px);
  opacity: .65;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255,255,255,.72), transparent 45%),
    radial-gradient(ellipse at 50% 100%, rgba(99, 67, 34, .08), transparent 55%);
}

.container { width: min(1360px, 96vw); margin: 0 auto; }
h1, h2, h3 { font-family: "Cormorant Garamond", serif; line-height: 1.05; letter-spacing: .2px; }

.poster-hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255,255,255,.72) 0%, rgba(255,250,239,.92) 34%, rgba(244,230,204,.94) 100%),
    radial-gradient(circle at 13% 22%, rgba(255, 206, 104, .66) 0%, rgba(255, 214, 123, .28) 17%, transparent 38%),
    radial-gradient(circle at 50% 7%, rgba(255,255,255,.92) 0%, transparent 34%),
    linear-gradient(105deg, #efe0c5 0%, #fff8ed 40%, #ead9bd 100%);
  border-bottom: 1px solid rgba(178, 132, 54, .25);
}

.sacred-light {
  position: absolute;
  left: -80px;
  top: -120px;
  width: 760px;
  height: 760px;
  z-index: -2;
  background:
    conic-gradient(from 205deg at 34% 38%, rgba(255,255,255,0) 0deg, rgba(255,235,166,.70) 12deg, rgba(255,255,255,0) 28deg, rgba(255,245,194,.45) 42deg, rgba(255,255,255,0) 60deg, rgba(255,232,160,.42) 82deg, rgba(255,255,255,0) 108deg, transparent 360deg),
    radial-gradient(circle at 34% 38%, rgba(255,244,197,.95) 0%, rgba(255,221,126,.56) 13%, rgba(255,255,255,0) 45%);
  filter: blur(.2px);
  opacity: .95;
}

.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255,255,255,.34) 8% 8.3%, transparent 8.3% 100%),
    radial-gradient(circle at 10% 18%, rgba(255, 213, 118, .30), transparent 22%),
    radial-gradient(circle at 92% 18%, rgba(107, 82, 54, .08), transparent 23%);
}

.poster-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255,255,255,.82), transparent 34%),
    radial-gradient(ellipse at 50% 74%, rgba(190, 137, 57, .16), transparent 45%),
    linear-gradient(180deg, transparent 0%, rgba(83, 52, 25, .05) 100%);
}

.hero-cross {
  position: absolute;
  width: 210px;
  height: 330px;
  opacity: .27;
  filter: drop-shadow(0 0 32px rgba(214, 167, 75, .65));
  z-index: -1;
}
.hero-cross::before,
.hero-cross::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(90, 63, 34, .62), rgba(90, 63, 34, .22));
  border-radius: 2px;
}
.hero-cross::before { width: 58px; height: 330px; }
.hero-cross::after { width: 210px; height: 48px; top: 124px; }
.hero-cross-left { left: max(36px, calc((100vw - 1320px) / 2 - 10px)); top: 110px; }

.holy-medallion {
  position: absolute;
  right: max(36px, calc((100vw - 1320px) / 2));
  top: 76px;
  width: 270px;
  height: 270px;
  border: 1px solid rgba(158, 115, 51, .17);
  border-radius: 50%;
  z-index: -1;
  opacity: .42;
  background:
    radial-gradient(circle, rgba(255,255,255,.88), rgba(244,228,200,.30) 55%, transparent 70%);
}
.holy-medallion::before {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 46% 28%, rgba(98, 72, 43, .18) 0 12%, transparent 13%),
    radial-gradient(ellipse at 53% 48%, rgba(98, 72, 43, .16) 0 18%, transparent 19%),
    linear-gradient(115deg, transparent 47%, rgba(98, 72, 43, .13) 48% 55%, transparent 56%);
  filter: blur(.1px);
}
.holy-medallion span {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 30px;
  height: 145px;
  transform: translateX(-50%) rotate(-7deg);
  background: rgba(123, 91, 55, .13);
}
.holy-medallion span::after {
  content: "";
  position: absolute;
  left: -47px;
  top: 52px;
  width: 125px;
  height: 24px;
  background: rgba(123, 91, 55, .12);
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 0 4px;
}
.brand {
  color: #49382a;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .95rem;
}
.admin-link {
  color: #594332;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(139, 104, 50, .25);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 253, 248, .70);
  box-shadow: 0 8px 20px rgba(92, 61, 28, .08);
}

.poster-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 34px 0 34px;
}
.eyebrow,
.section-kicker {
  margin: 0;
  color: #9a6b2d;
  font-weight: 900;
  letter-spacing: 7px;
  text-transform: uppercase;
  font-size: .82rem;
}
.poster-content h1 {
  margin: 14px 0 6px;
  font-size: clamp(3.2rem, 5.4vw, 5.9rem);
  font-weight: 600;
  color: #39271d;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(255,255,255,.54), 0 16px 28px rgba(67, 42, 24, .15);
  letter-spacing: .12em;
}
.poster-content h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(2.5rem, 4.4vw, 4.8rem);
  letter-spacing: .08em;
}
.title-rule {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: #bc8a39;
  margin: 8px auto 8px;
}
.title-rule::before,
.title-rule::after {
  content: "";
  width: min(170px, 20vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185, 138, 57, .65), transparent);
}
.motto {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: #a37331;
  font-weight: 700;
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
}
.lead {
  margin: 8px auto 0;
  max-width: 760px;
  color: #6e5b4b;
  font-size: 1.08rem;
}
.hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 21px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  border: 1px solid rgba(148, 106, 47, .22);
}
.cta.primary {
  color: #fffaf0;
  background: linear-gradient(135deg, #d2a65a, #a86e25);
  box-shadow: 0 13px 24px rgba(148, 93, 30, .22);
}
.cta.ghost {
  color: #5f432b;
  background: rgba(255,253,248,.78);
  box-shadow: 0 10px 22px rgba(90, 58, 25, .08);
}

.poster-gallery {
  margin: 16px auto 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 132px;
  gap: 12px;
  max-width: 1320px;
}
.poster-photo {
  margin: 0;
  overflow: hidden;
  border: 2px solid rgba(202, 164, 93, .92);
  background: #efe0c5;
  box-shadow: 0 13px 30px rgba(57, 35, 18, .18), inset 0 0 0 1px rgba(255,255,255,.52);
}
.poster-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.poster-photo-1 { grid-column: 1 / span 4; grid-row: span 2; }
.poster-photo-2 { grid-column: 5 / span 4; grid-row: span 2; }
.poster-photo-3 { grid-column: 9 / span 4; grid-row: span 2; }
.poster-photo-4 { grid-column: 1 / span 2; }
.poster-photo-5 { grid-column: 3 / span 3; }
.poster-photo-6 { grid-column: 6 / span 3; }
.poster-photo-7 { grid-column: 9 / span 4; }
.hero-quote {
  position: relative;
  margin: 16px auto 0;
  padding: 10px 78px 0;
  max-width: 980px;
  color: #5b412d;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
}
.hero-quote::before,
.hero-quote::after {
  content: "❦";
  position: absolute;
  top: 14px;
  color: #c99d4c;
  font-size: 2.2rem;
  opacity: .85;
}
.hero-quote::before { left: 8px; }
.hero-quote::after { right: 8px; transform: scaleX(-1); }
.hero-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 1.2rem;
  font-style: italic;
}

.legacy-menu {
  margin-top: -12px;
  position: relative;
  z-index: 8;
  background: rgba(255, 253, 248, .96);
  border: 1px solid rgba(209, 178, 121, .65);
  border-radius: 20px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.legacy-menu a {
  text-decoration: none;
  color: #4a3829;
  background: linear-gradient(180deg, #fffdf8, #f8eddd);
  border: 1px solid #e0c798;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 800;
  text-align: center;
}
.legacy-menu a:hover { background: #f1dfc2; }

.menu-dropdown {
  position: relative;
}

.menu-dropdown summary {
  list-style: none;
  min-height: 54px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #d8be8a;
  background: linear-gradient(180deg, #fffdf8, #f8eddd);
  color: #4a3829;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.menu-dropdown summary::-webkit-details-marker { display: none; }

.menu-dropdown[open] summary {
  background: #f1dfc2;
}

.menu-dropdown-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 100%;
  z-index: 20;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #d8be8a;
  border-radius: 14px;
  background: rgba(255, 253, 248, .98);
  box-shadow: var(--shadow);
}

.menu-dropdown-panel a {
  min-height: 44px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.footer-links a {
  color: #f4c77c;
  text-decoration: none;
  font-weight: 800;
}

.section { padding: 46px 0; }
.spotlight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 22px;
  align-items: start;
}
.spotlight-main,
.spotlight-side,
.parish-panel,
.news-card,
.empty-card,
.quick-box,
.admin-card {
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(224, 199, 152, .78);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.spotlight-main,
.spotlight-side { padding: 26px; }
.section-head h2,
.spotlight-side h2 {
  margin: 8px 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #4a3322;
}
.section-head p:not(.section-kicker) { color: var(--muted); margin: 0; }
.section-head.centered { text-align: center; margin-bottom: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.filter-chip {
  text-decoration: none;
  color: #60452d;
  border: 1px solid #d9bd84;
  border-radius: 999px;
  padding: 9px 15px;
  font-weight: 900;
  background: #fff7e9;
}
.filter-chip.active {
  background: linear-gradient(135deg, #d2a65a, #a86e25);
  color: #fffaf2;
  border-color: transparent;
}
.news-grid { display: grid; gap: 16px; margin-top: 20px; }
.news-card,
.empty-card { padding: 18px; }
.news-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; margin-bottom: 12px; border: 1px solid #e2c992; }
.news-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .88rem; }
.badge { margin: 10px 0 7px; display: inline-block; font-size: .78rem; font-weight: 900; color: #6d3d20; background: #f2dfbc; border-radius: 999px; padding: 5px 11px; }
.news-card h3, .empty-card h3 { margin: 5px 0 8px; font-size: clamp(1.55rem, 3vw, 2.1rem); }
.news-card p, .empty-card p { color: #4b3b2d; }
.quick-info-grid { display: grid; gap: 12px; margin-top: 16px; }
.quick-box {
  padding: 16px;
  text-align: center;
}
.quick-box h3 {
  margin: 0 0 7px;
  font-size: 1.45rem;
}
.quick-box p {
  margin: 0;
  color: #554434;
}
.parishes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(315px, 1fr)); gap: 18px; }
.parish-panel { padding: 20px; }
.parish-photo-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}
.parish-photo-main {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 0;
  border: 1px solid #d9bd84;
}
.parish-photo-strip {
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 0;
  height: 100%;
}
.parish-photo-thumb-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
}
.parish-photo-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e1c895;
}
.parish-panel h3 { margin: 0 0 13px; font-size: 1.9rem; }
.parish-sections-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1.22fr) minmax(0, 1.12fr);
  gap: 10px;
}
.parish-section {
  background: #fffefb;
  border: 1px solid #eadccd;
  border-radius: 12px;
  padding: 10px 10px 11px;
}
.parish-section h4 { margin: 0 0 8px; font-family: "Manrope", sans-serif; text-transform: uppercase; font-size: .78rem; letter-spacing: 1.3px; color: #946322; }
.parish-section ul { margin: 0; padding-left: 16px; display: grid; gap: 3px; font-size: .92rem; }
.parish-section a { color: #4d3828; text-decoration: none; font-weight: 700; line-height: 1.28; }
.parish-section a:hover { text-decoration: underline; }
.footer { padding: 30px 0; margin-top: 20px; background: #33251b; color: #f7ead8; }
.footer-inner { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.footer a { color: #f4c77c; text-decoration: none; font-weight: 800; }
.footer-meta {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(244, 199, 124, .25);
}
.footer-meta p {
  margin: 0;
  color: #e8d2af;
  font-size: .88rem;
}

.admin-body { background: linear-gradient(180deg, #f2ece3 0%, #f9f5ef 100%); }
.admin-wrapper { padding: 40px 0; max-width: 860px; }
.back-link { text-decoration: none; color: #7d4d19; font-weight: 800; }
.admin-card { margin-top: 16px; padding: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.logout { text-decoration: none; color: var(--danger); font-weight: 800; }
.form { display: grid; gap: 14px; margin-top: 14px; }
label { display: grid; gap: 8px; font-weight: 800; color: #47362c; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid #dbc9b5; border-radius: 10px; background: #fffdf9; }
button { border: 0; background: linear-gradient(135deg, #d2a65a, #a86e25); color: #fff8ef; font-weight: 900; padding: 12px 16px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
button:hover { filter: brightness(1.05); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button-link { display: inline-flex; align-items: center; justify-content: center; padding: 12px 16px; border-radius: 10px; text-decoration: none; background: #f3e4d3; color: #4d372a; font-weight: 800; }
.inline-form { margin: 0; }
.danger-btn { background: linear-gradient(130deg, #c03a3a, #a11d1d); }
.manage-list { margin-top: 14px; display: grid; gap: 12px; }
.manage-item { border: 1px solid #eadccd; border-radius: 14px; padding: 14px; background: #fffefb; }
.manage-item h3 { margin: 0; font-size: 1.4rem; }
.manage-meta { color: var(--muted); font-size: .9rem; }
.manage-item p { margin: 6px 0; }
.manage-thumb { width: min(280px, 100%); border-radius: 12px; margin: 8px 0; border: 1px solid #e1cfbb; display: block; }
.image-preview-box p { margin: 0; color: var(--muted); font-weight: 600; }
.checkbox-row { grid-template-columns: auto 1fr; align-items: center; gap: 10px; font-weight: 800; }
.checkbox-row input[type="checkbox"] { width: 18px; height: 18px; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-weight: 800; }
.error { background: #fbe6e6; color: #8e1d1d; }
.success { background: #e9f7ec; color: #1b6c3b; }
.tip { color: var(--muted); margin-top: 12px; font-size: .92rem; }

.page-hero {
  min-height: 420px;
}

.page-title-wrap h1 {
  margin-bottom: 10px;
}

.page-shell {
  padding-bottom: 30px;
}

.page-card {
  padding: 24px;
}

.page-meta {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.page-sections {
  display: grid;
  gap: 12px;
}

.page-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.page-gallery-card p {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
  word-break: break-word;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  background: rgba(41, 29, 19, 0.96);
  color: #fff7ea;
  border: 1px solid rgba(236, 189, 117, .35);
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .28);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.cookie-banner p {
  margin: 0;
  line-height: 1.45;
}

.cookie-banner a {
  color: #ffd98f;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-actions .cookie-reject {
  background: #f3e4d3;
  color: #4d372a;
  border: 0;
}

.cookie-banner.is-hidden {
  display: none;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 118px;
  z-index: 35;
  border-radius: 999px;
  padding: 10px 16px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1080px) {
  .poster-hero { min-height: auto; }
  .holy-medallion { opacity: .22; right: -80px; }
  .hero-cross-left { left: -28px; opacity: .18; }
  .poster-gallery { grid-auto-rows: 126px; }
  .spotlight-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .topbar, .footer-inner, .admin-head { flex-direction: column; align-items: flex-start; }
  .poster-content { padding: 28px 0 40px; }
  .poster-content h1 { font-size: clamp(3rem, 15vw, 4.6rem); letter-spacing: .08em; }
  .poster-content h1 span { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .eyebrow, .section-kicker { letter-spacing: 3px; }
  .motto { letter-spacing: .14em; }
  .poster-gallery { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 10px; }
  .poster-photo, .poster-photo-1, .poster-photo-2, .poster-photo-3, .poster-photo-4, .poster-photo-5, .poster-photo-6, .poster-photo-7 { grid-column: auto; grid-row: auto; aspect-ratio: 16 / 10; }
  .hero-quote { padding: 12px 18px 0; }
  .hero-quote::before, .hero-quote::after { display: none; }
  .legacy-menu { margin-top: -10px; }
  .spotlight-main, .spotlight-side { padding: 18px; }
  .parish-photo-strip { grid-template-columns: repeat(2, 1fr); }
  .parish-sections-grid { grid-template-columns: 1fr; }
  .admin-actions, .button-link, .admin-actions button { width: 100%; }
  .cookie-actions { width: 100%; }
  .cookie-actions button,
  .cookie-actions .button-link { width: 100%; }
  .back-to-top { bottom: 136px; }
}


/* V2: pocztówkowy header jak z makiety — mniej pustki, zdjęcia w pierwszym ekranie */
.poster-hero {
  min-height: 760px;
  background:
    radial-gradient(circle at 12% 19%, rgba(255, 211, 99, .72) 0%, rgba(255, 229, 160, .42) 16%, transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.56) 0%, rgba(255,250,240,.88) 32%, rgba(244,229,200,.97) 100%),
    linear-gradient(105deg, #ead8b7 0%, #fff8ed 44%, #ead9bd 100%);
}
.poster-hero::before {
  background:
    linear-gradient(90deg, transparent 0 6.5%, rgba(255,255,255,.32) 6.5% 6.8%, transparent 6.8% 100%),
    radial-gradient(circle at 10% 17%, rgba(255, 213, 118, .38), transparent 22%),
    radial-gradient(circle at 91% 19%, rgba(107, 82, 54, .08), transparent 22%);
}
.sacred-light {
  left: -110px;
  top: -150px;
  width: 720px;
  height: 720px;
  opacity: 1;
}
.hero-cross-left {
  left: max(44px, calc((100vw - 1360px) / 2 + 8px));
  top: 88px;
  transform: scale(.82);
  opacity: .30;
}
.holy-medallion {
  width: 230px;
  height: 230px;
  top: 72px;
  right: max(50px, calc((100vw - 1360px) / 2 + 10px));
  opacity: .34;
}
.poster-content {
  padding-top: 30px;
}
.poster-content h1 {
  line-height: .98;
}
.hero-actions {
  display: none;
}
.poster-gallery {
  margin-top: 22px;
  grid-auto-rows: 126px;
  gap: 10px;
}
.poster-photo {
  border-radius: 0;
  box-shadow: 0 9px 22px rgba(57, 35, 18, .16), inset 0 0 0 1px rgba(255,255,255,.60);
}
.hero-quote {
  margin-top: 14px;
  padding-top: 6px;
}
@media (min-width: 1180px) {
  .poster-photo-1, .poster-photo-2, .poster-photo-3 { grid-row: span 2; }
  .poster-photo-4, .poster-photo-5, .poster-photo-6, .poster-photo-7 { grid-row: span 1; }
}
@media (max-width: 1080px) {
  .poster-hero { min-height: auto; }
  .poster-gallery { grid-auto-rows: 118px; }
}

/* V3: przebudowana góra z heroChurch */
.poster-hero {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(178, 132, 54, .25);
  background:
    linear-gradient(112deg, rgba(35, 22, 11, .24) 0%, rgba(35, 22, 11, .10) 34%, rgba(244, 230, 204, .03) 100%),
    radial-gradient(circle at 75% 18%, rgba(255, 241, 202, .52) 0%, transparent 38%),
    linear-gradient(180deg, rgba(40, 25, 12, .22), rgba(40, 25, 12, .08)),
    url('../fotoWiki/heroChurch.png') 22% 24% / cover no-repeat;
}

.poster-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24, 14, 8, .12) 0%, rgba(24, 14, 8, .16) 42%, rgba(24, 14, 8, .06) 72%, rgba(24, 14, 8, .18) 100%),
    linear-gradient(180deg, rgba(255, 227, 156, .14) 0%, transparent 42%, rgba(19, 10, 4, .12) 100%);
}

.topbar {
  position: relative;
  z-index: 3;
  padding-top: 24px;
}

.brand {
  color: #fff2db;
  text-shadow: 0 3px 14px rgba(0, 0, 0, .45);
}

.admin-link {
  color: #fff7ec;
  border-color: rgba(255, 209, 128, .36);
  background: rgba(58, 35, 15, .45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.poster-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 16px 0 12px;
  max-width: 760px;
  margin: 0 auto;
  transform: translateX(52px);
}

.eyebrow {
  color: #f6c36d;
  letter-spacing: 4px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .22);
  font-size: .76rem;
}

.poster-content h1 {
  margin: 10px 0 8px;
  color: #fff9f0;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .38);
  letter-spacing: .07em;
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
}

.poster-content h1 span {
  margin-top: 2px;
  color: #ffe5bc;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
}

.motto {
  color: #ffd189;
  font-size: clamp(1rem, 1.5vw, 1.5rem);
  letter-spacing: .18em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .14);
}

.lead {
  margin: 8px 0 0;
  max-width: 560px;
  color: #fff6e8;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .14);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  margin-top: 12px;
  justify-content: center;
}

.cta.primary {
  border-color: transparent;
  background: linear-gradient(135deg, #efbe6a, #b7782a);
  color: #2d1909;
}

.cta.ghost {
  color: #fff1dc;
  border-color: rgba(255, 208, 126, .48);
  background: rgba(66, 41, 19, .43);
}

.hero-quote {
  margin: 6px 0 0;
  max-width: 620px;
  padding: 0;
  color: #fff2dc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .14);
  font-size: clamp(1rem, 1.35vw, 1.25rem);
}

.lead,
.hero-quote {
  margin-left: auto;
  margin-right: auto;
}

.hero-quote::before,
.hero-quote::after {
  display: none;
}

.hero-quote cite {
  color: #ffd08d;
}

.legacy-menu {
  margin-top: -14px;
  padding: 8px;
  gap: 6px;
  border-radius: 16px;
  background: rgba(255, 251, 243, .92);
  border-color: rgba(209, 178, 121, .52);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.legacy-menu a {
  min-height: 54px;
  padding: 8px 12px;
  font-size: clamp(.82rem, .9vw, .95rem);
  border-radius: 10px;
  border-color: #d8be8a;
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .poster-content {
    margin: 0 auto;
    padding-bottom: 18px;
    transform: translateX(28px);
  }
}

@media (max-width: 760px) {
  .poster-hero {
    min-height: auto;
    background-position: 28% 20%;
  }

  .topbar {
    gap: 12px;
  }

  .poster-content {
    padding: 16px 0 20px;
    margin: 0 auto;
    max-width: 100%;
    transform: none;
  }

  .eyebrow {
    letter-spacing: 3px;
  }

  .hero-actions {
    width: 100%;
    gap: 8px;
  }

  .hero-actions .cta {
    width: 100%;
  }

  .legacy-menu {
    margin-top: -2px;
    padding: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-menu a {
    min-height: 48px;
    font-size: .9rem;
  }

  .menu-dropdown-panel {
    position: static;
    min-width: 0;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .footer-meta {
    margin-top: 12px;
  }

  .parish-photo-strip {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .parish-photo-gallery {
    grid-template-columns: 1fr;
  }

  .parish-photo-thumb-button {
    width: 30%;
    min-width: 92px;
  }

}
