/*
Theme Name: M&M Flak
Theme URI: https://zakladpogrzebowyflak.pl
Author: AURUM IT
Author URI: https://aurumit.pl
Description: Elegancki, responsywny motyw dla zakładu pogrzebowego M&M Flak.
Version: 2.4.5
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: mm-flak
*/

:root {
  --ink: #1f201f;
  --paper: #fff;
  --cream: #f7f4ef;
  --cream-2: #fbfaf7;
  --gold: #bd811c;
  --gold-dark: #9e6811;
  --line: #e7e1d8;
  --muted: #66635e;
  --footer: #202220;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
.container { width: min(1240px, calc(100% - 72px)); margin-inline: auto; }
.section { padding: 70px 0; }
.eyebrow {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  margin: 0 0 18px;
}

.local-service-area { padding: 54px 0; background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.local-service-area-inner { display: grid; grid-template-columns: minmax(300px, .95fr) minmax(320px, 1.05fr) auto; gap: 44px; align-items: center; }
.local-service-area h2 { max-width: 570px; margin: 0; font: 36px/1.16 Georgia, "Times New Roman", serif; }
.local-service-area p:not(.eyebrow) { max-width: 610px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.local-service-area .button { white-space: nowrap; }

.topbar { background: #f1eee9; min-height: 40px; font-size: 10px; letter-spacing: .08em; color: #5e5c58; }
.topbar-inner { min-height: 40px; display: flex; align-items: center; justify-content: space-between; }
.topbar-phones { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.topbar-phones a { font: 20px/1 Georgia, serif; letter-spacing: 0; white-space: nowrap; }
.topbar-phones > span { color: var(--gold-dark); font-size: 12px; }
.topbar svg { width: 18px; color: var(--gold); }
.topbar em { border: 1px solid var(--gold); color: var(--gold-dark); border-radius: 20px; padding: 3px 5px; font-family: Arial, sans-serif; font-size: 12px; font-style: normal; }
.topbar strong { font-weight: 400; }

.header { height: 116px; background: rgba(255,255,255,.97); position: relative; z-index: 10; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.logo-image { display: block; width: 230px; height: auto; }
.logo-light .logo-image { width: 210px; }
.logo-main { font: 39px/1 Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.logo-sub { margin-top: 7px; font: 11px/1.2 Georgia, serif; letter-spacing: .16em; }
.logo-flourish { color: var(--gold); font-size: 12px; margin-top: 4px; letter-spacing: .12em; }
.desktop-nav { display: flex; align-self: stretch; align-items: center; gap: 28px; font-size: 11px; text-transform: uppercase; }
.desktop-nav .menu { height: 100%; margin: 0; padding: 0; list-style: none; display: flex; align-items: center; gap: 28px; }
.desktop-nav .menu > li { position: relative; height: 100%; margin: 0; display: flex; align-items: center; }
.desktop-nav a { position: relative; white-space: nowrap; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--gold-dark); }
.desktop-nav a.active::after { content: ""; position: absolute; height: 1px; left: 0; right: 0; bottom: -16px; background: var(--gold); }
.desktop-nav .menu > .menu-item-has-children > a { display: inline-flex; align-items: center; gap: 7px; }
.desktop-nav .menu > .menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; margin-top: -4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.desktop-nav .menu > .menu-item-has-children:hover > a::after,
.desktop-nav .menu > .menu-item-has-children:focus-within > a::after { transform: translateY(3px) rotate(225deg); }
.desktop-nav .sub-menu {
  position: absolute;
  top: calc(100% - 12px);
  left: 50%;
  width: min(720px, calc(100vw - 42px));
  margin: 0;
  padding: 22px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255,255,255,.99);
  border: 1px solid var(--line);
  box-shadow: 0 24px 54px rgba(37,31,24,.15);
  transform: translate(-50%, 10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.desktop-nav .sub-menu::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.desktop-nav .menu > li:hover > .sub-menu,
.desktop-nav .menu > li:focus-within > .sub-menu { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.desktop-nav .sub-menu li { margin: 0; }
.desktop-nav .sub-menu a { min-height: 58px; padding: 11px 13px; display: flex; align-items: center; gap: 13px; white-space: normal; color: #403d39; text-transform: none; font-size: 12px; line-height: 1.35; transition: background .2s ease, color .2s ease; }
.desktop-nav .sub-menu a:hover,
.desktop-nav .sub-menu a:focus { color: var(--gold-dark); background: var(--cream-2); outline: none; }
.mega-menu-icon { width: 28px; height: 28px; flex: 0 0 28px; color: var(--gold); }
.mobile-menu { display: none; position: static; }
.mobile-menu > summary { position: relative; z-index: 122; width: 46px; height: 46px; display: grid; place-items: center; list-style: none; cursor: pointer; border: 1px solid var(--line); background: #fff; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.mobile-menu > summary::-webkit-details-marker { display: none; }
.mobile-menu > summary svg { width: 25px; height: 25px; }
.mobile-menu[open] > summary { color: var(--gold-dark); border-color: #ddc79f; background: var(--cream-2); }
.mobile-menu[open]::before { content: ""; position: fixed; z-index: 118; inset: 78px 0 0; background: rgba(31,32,31,.22); backdrop-filter: blur(2px); }
.mobile-menu nav { position: fixed; z-index: 120; top: 78px; left: 0; right: 0; width: 100%; max-height: calc(100dvh - 78px); overflow-y: auto; padding: 10px max(20px, calc((100vw - 600px)/2)); background: rgba(255,255,255,.99); border-top: 1px solid var(--line); box-shadow: 0 22px 38px rgba(31,27,23,.16); }
.mobile-menu .menu { display: grid; width: 100%; list-style: none; margin: 0; padding: 0; }
.mobile-menu nav > .menu > li { margin: 0; padding: 0; }
.mobile-menu nav > .menu > li > a { min-height: 58px; padding: 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .045em; }
.mobile-menu nav > .menu > li > a::after { content: "→"; color: var(--gold-dark); font-size: 15px; font-weight: 400; }
.mobile-menu nav > .menu > li:last-child > a { border-bottom: 0; }
.mobile-menu .sub-menu { display: none; }

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: #f7f5f1;
  background-image:
    linear-gradient(90deg, #fff 0%, rgba(255,255,255,.98) 27%, rgba(255,255,255,.68) 49%, rgba(255,255,255,0) 68%),
    url("assets/hero-lilies.png");
  background-size: cover;
  background-position: center;
}
.hero-content { padding-block: 90px; }
.hero .eyebrow {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-left: -10px;
  padding: 7px 10px 6px;
  color: #684207;
  background: rgba(255,255,255,.82);
  border-left: 3px solid var(--gold);
  box-shadow: 0 4px 18px rgba(255,255,255,.52);
  text-shadow: 0 1px 0 rgba(255,255,255,.95);
}
.hero h1 { margin: 0; font: 56px/1.14 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.hero-copy { margin: 34px 0 38px; font-size: 15px; line-height: 1.75; color: #454543; }
.hero-actions { display: flex; gap: 18px; }
.button { min-height: 50px; padding: 0 28px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #7d7b76; font-size: 11px; font-weight: 700; letter-spacing: .015em; transition: .2s ease; }
.button svg { width: 16px; }
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,.1); }
.button-gold { background: linear-gradient(135deg, #c69334, #b27613); border-color: transparent; color: #fff; }
.button-outline { background: rgba(255,255,255,.45); }
.button.small { min-height: 36px; padding: 0 22px; font-size: 10px; }

.services { padding: 72px 0 78px; }
.service-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.service-card { min-height: 310px; padding: 38px 22px 30px; border: 1px solid #eee9e2; text-align: center; display: flex; flex-direction: column; align-items: center; background: #fff; box-shadow: 0 10px 36px rgba(47,41,34,.035); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 16px 42px rgba(47,41,34,.08); }
.service-icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 22px; }
.service-card h2 { margin: 0 0 18px; min-height: 48px; font: 20px/1.22 Georgia, serif; }
.service-card p { margin: 0; font-size: 12px; line-height: 1.75; color: #5b5853; }
.service-card a { margin-top: auto; color: var(--gold-dark); font-size: 10px; font-weight: 700; }
.service-card a span, .section-heading a span { margin-left: 4px; }

.obituaries { background: linear-gradient(100deg, #f8f5f0, #fff, #f6f2ed); }
.obituaries > .container { width: min(1440px, calc(100% - 72px)); }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.section-heading h2, .gallery h2 { margin: 0; font: 36px/1.15 Georgia, serif; }
.section-heading a { color: var(--gold-dark); font-size: 10px; font-weight: 700; }
.obituary-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.obituary-card { min-width: 0; min-height: 278px; position: relative; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,.86); border: 1px solid #ebe7e1; text-align: center; overflow: hidden; box-shadow: 0 8px 28px rgba(38,34,29,.035); }
.obituary-card.has-portrait { min-height: 350px; }
.obituary-portrait { width: 64px; height: 82px; flex: 0 0 auto; margin: 0 auto 13px; padding: 5px; background: #fff; border: 1px solid #d8d0c4; box-shadow: 0 5px 16px rgba(36,31,26,.055); }
.obituary-portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; background: #f6f4f0; }
.memorial-cross { display: block; fill: none; stroke: currentColor; }
.obituary-card .memorial-cross-top { display: block; width: 108px; height: auto; margin: 0 auto 4px; }
.obituary-card.has-portrait .memorial-cross-top { width: 98px; }
.obituary-card .late { margin: 3px 0 3px; font-family: Georgia, serif; }
.obituary-card h3,
.obituary-card h2 {
  width: 100%;
  max-width: 100%;
  min-height: 2.5em;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 17px/1.25 Georgia, serif;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  text-wrap: balance;
}
.obituary-card p { margin: 8px 0; font-size: 11px; line-height: 1.6; color: #484642; }
.obituary-card .divider { display: block; width: 30px; height: 1px; margin: 13px auto 12px; background: var(--gold); }
.obituary-card a { position: relative; z-index: 1; display: inline-block; margin-top: 13px; color: var(--gold-dark); font-size: 9.5px; font-weight: 700; }

.trust { border-top: 12px solid rgba(255,255,255,.7); background: #fff; padding: 76px 0; }
.trust-grid { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 32px; min-height: 280px; }
.about-copy { padding: 34px 20px 30px 4px; }
.about-copy .eyebrow { margin-bottom: 10px; }
.about-copy h2, .support-card h2 { margin: 0 0 20px; font: 30px/1.2 Georgia, serif; }
.about-copy > p:not(.eyebrow) { font-size: 12px; line-height: 1.75; color: #55514d; max-width: 350px; margin: 0 0 26px; }
.support-card { min-height: 280px; color: white; padding: 48px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(90deg, rgba(8,9,9,.96), rgba(8,9,9,.7) 46%, rgba(8,9,9,.08)), url("assets/support-lilies-candles.png") right center / cover no-repeat; }
.support-card p { margin: 0 0 18px; font-size: 12px; line-height: 1.55; }
.support-phone-list { display: grid; gap: 8px; }
.support-card a { display: flex; align-items: center; gap: 14px; color: #d29a31; font: 24px Georgia, serif; }
.support-card a svg { width: 20px; flex: 0 0 20px; }
.trust-points { padding: 20px 6px 16px 10px; }
.trust-points article { display: flex; gap: 22px; padding: 20px 0 30px; border-bottom: 1px solid var(--line); }
.trust-points article:last-child { border: 0; }
.trust-points svg { width: 40px; min-width: 40px; color: var(--gold); }
.trust-points h3 { margin: 0 0 8px; font: 17px Georgia, serif; }
.trust-points p { margin: 0; font-size: 10.5px; line-height: 1.5; color: #514f4b; }

.gallery { padding-block: 68px; }
.gallery-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.gallery-intro p { font-size: 11px; line-height: 1.65; color: #555; margin: 13px 0 24px; }
.gallery-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.gallery-photo { aspect-ratio: 1.35/1; min-height: 125px; overflow: hidden; background-position: center; background-size: cover; }
.gallery-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-photo:hover img { transform: scale(1.04); }
.gallery-wreath { background-image: url("assets/white-wreath.png"); }
.gallery-candle { background-image: url("assets/support-lilies-candles.png"); background-position: 18% center; }
.gallery-car { background-image: linear-gradient(145deg, rgba(0,0,0,.1), rgba(0,0,0,.6)), url("assets/hero-lilies.png"); filter: grayscale(1); }
.gallery-lily { background-image: url("assets/hero-lilies.png"); background-position: 76% center; }
.gallery-urn { background-image: url("assets/white-wreath.png"); background-position: 70% center; filter: sepia(.25); }

.footer { background: radial-gradient(circle at 40% 0, #30322f, #1c1e1c 60%); color: #eee; padding: 62px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .75fr .95fr 1.55fr; gap: 48px; padding-bottom: 45px; }
.footer .logo { align-items: flex-start; color: #fff; margin-bottom: 13px; }
.footer .logo-image { width: 210px; max-width: 100%; }
.footer .logo-main { font-size: 31px; }
.footer .logo-sub { font-size: 8px; }
.footer p, .footer a { font-size: 11px; line-height: 2; }
.footer h3 { margin: 1px 0 10px; font-size: 10px; }
.footer-grid > div:not(.footer-brand) > a { display: block; color: #e5e5e5; }
.footer .menu { list-style: none; margin: 0; padding: 0; }
.footer .menu a { display: block; color: #e5e5e5; }
.footer-contact-row { display: flex !important; align-items: flex-start; gap: 12px; width: 100%; margin: 0 0 8px; }
.footer-contact-row svg { width: 17px; min-width: 17px; height: 17px; margin-top: 3px; color: #d39a30; }
.footer-contact-row > span { display: block; min-width: 0; overflow-wrap: anywhere; line-height: 1.75; }
.footer-contact-row br { content: ""; display: block; margin-bottom: 4px; }
.footer-address-list { display: grid; gap: 6px; margin-bottom: 11px; }
.footer-address-list .footer-contact-row { margin-bottom: 0; }
.footer-address-link > span { line-height: 1.5; }
.footer-address-link:hover > span, .footer-address-link:focus-visible > span { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.25); padding-top: 22px; display: flex; justify-content: space-between; font-size: 9.5px; color: #c6c6c6; }
.footer-bottom a { margin-left: 35px; font-size: inherit; }
.footer-credits { display: flex; align-items: center; justify-content: flex-end; gap: 35px; }
.footer-credits a { margin-left: 0; }
.floating-call { display: none; }

.content-page { background: #fff; min-height: 70vh; }
.content-page-soft { background: linear-gradient(120deg, #f8f5f0, #fff, #f6f2ed); }
.page-hero { padding: 76px 0 66px; background: #f7f4ef; border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1, .article-header h1, .necrology-header h1 { margin: 0; font: 48px/1.16 Georgia, "Times New Roman", serif; }
.page-hero > .container > p:last-child { margin: 18px auto 0; color: #64615c; font-size: 14px; line-height: 1.7; }
.narrow { width: min(820px, calc(100% - 40px)); }
.empty-list { grid-column: 1 / -1; padding: 34px; background: #fff; border: 1px solid var(--line); text-align: center; }
.necrology-search { margin: 0 0 22px; padding: 24px; display: grid; grid-template-columns: minmax(250px, 1.35fr) minmax(190px, .75fr) auto auto; gap: 16px; align-items: end; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(37,33,28,.045); }
.necrology-search label { display: grid; gap: 8px; min-width: 0; }
.necrology-search label > span { color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.necrology-search input { width: 100%; height: 50px; padding: 0 15px; border: 1px solid #d8d2c9; background: #fff; color: var(--ink); font: 14px/1.3 Arial, sans-serif; }
.necrology-search input:focus { outline: 2px solid rgba(189,129,28,.28); outline-offset: 1px; border-color: var(--gold); }
.necrology-search .button { cursor: pointer; font-family: inherit; }
.necrology-search-reset { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; color: var(--gold-dark); font-size: 10px; font-weight: 700; }
.necrology-search-reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.necrology-search-count { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.obituary-archive-grid { grid-template-columns: repeat(4, 1fr); }
.obituary-archive-grid .obituary-card { min-height: 286px; }
.obituary-archive-grid .obituary-card.has-portrait { min-height: 350px; }
.pagination { padding: 40px 0 0; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 38px; min-height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; }
.pagination .current { background: var(--gold); color: #fff; border-color: var(--gold); }

.necrology-header { padding: 76px 0 36px; text-align: center; }
.necrology-header .memorial-cross-single { width: min(180px, 64vw); height: auto; margin: 0 auto 22px; color: #171614; }
.necrology-header .late { margin: 0 0 8px; font: 18px Georgia, serif; }
.necrology-age { color: #5f5b56; margin: 12px 0; }
.necrology-header .divider { display: block; width: 44px; height: 1px; margin: 24px auto 0; background: var(--gold); }
.necrology-body, .article-body { padding-bottom: 84px; text-align: center; }
.article-image { margin: 0 0 34px; }
.article-image img { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.ceremony-box { margin: 0 0 38px; padding: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(37,33,28,.04); }
.ceremony-box div { display: grid; gap: 9px; }
.ceremony-box div + div { border-left: 1px solid var(--line); }
.ceremony-box span { color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.ceremony-box strong { font: 18px/1.5 Georgia, serif; }
.entry-content { margin: 0 auto 38px; text-align: left; color: #403e3a; font-size: 15px; line-height: 1.9; }
.entry-content h2, .entry-content h3 { font-family: Georgia, serif; font-weight: 400; }
.entry-content img { max-width: 100%; height: auto; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(37,33,28,.045); }
.post-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; background: #eee9e2; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-thumb img { transform: scale(1.03); }
.post-thumb-placeholder { width: 100%; height: 100%; display: block; background: linear-gradient(135deg, #eee9e2, #faf8f4); }
.post-card-body { padding: 28px; }
.post-meta { margin: 0 0 12px; color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.post-card h2 { margin: 0 0 14px; font: 25px/1.25 Georgia, serif; }
.post-card-body > p:not(.post-meta) { margin: 0 0 22px; color: #5b5853; font-size: 13px; line-height: 1.75; }
.read-more { color: var(--gold-dark); font-size: 10px; font-weight: 700; }
.article-header { padding: 76px 0 42px; background: #f7f4ef; text-align: center; }
.article-header .post-meta { margin-top: 20px; }
.article-body { padding-top: 52px; }

@media (max-width: 1020px) {
  .desktop-nav { gap: 19px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .service-card { border-right: 1px solid #eee9e2; }
  .obituary-grid { grid-template-columns: repeat(3, 1fr); }
  .obituary-card:nth-child(n+4) { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-points { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; padding: 10px 25px; }
  .footer-grid { gap: 28px; }
  .obituary-archive-grid { grid-template-columns: repeat(3, 1fr); }
  .obituary-archive-grid .obituary-card:nth-child(n+4) { display: block; }
  .necrology-search { grid-template-columns: 1fr 1fr; }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .local-service-area-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .local-service-area .button { width: max-content; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 600px); }
  .local-service-area { padding: 44px 0; }
  .local-service-area-inner { grid-template-columns: 1fr; gap: 22px; }
  .local-service-area h2 { font-size: 29px; }
  .local-service-area .button { width: 100%; }
  .obituaries > .container { width: min(100% - 28px, 600px); }
  .topbar { display: none; }
  .header { height: 78px; position: sticky; z-index: 120; top: 0; }
  .admin-bar .header { top: 46px; }
  .header .logo-image { width: 176px; }
  .footer .logo-image { width: 200px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  body:has(.mobile-menu[open]) { overflow: hidden; }
  .admin-bar .mobile-menu[open]::before { inset: 124px 0 0; }
  .admin-bar .mobile-menu nav { top: 124px; max-height: calc(100dvh - 124px); }
  .hero {
    min-height: 550px;
    align-items: flex-end;
    background-image:
      linear-gradient(180deg, rgba(255,255,255,.03) 20%, rgba(255,255,255,.72) 60%, #fff 84%),
      url("assets/hero-lilies.png");
    background-position: 67% center;
  }
  .hero-content { padding: 235px 0 42px; }
  .hero .eyebrow {
    color: #513303;
    background: rgba(255,255,255,.9);
    box-shadow: 0 4px 20px rgba(255,255,255,.68);
  }
  .hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .hero-copy { font-size: 13px; }
  .hero-actions { gap: 10px; flex-wrap: wrap; }
  .button { padding-inline: 15px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .service-card { min-height: 240px; padding-inline: 12px; }
  .obituary-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 5px; }
  .obituary-card { display: flex !important; flex: 0 0 73%; scroll-snap-align: start; }
  .trust-grid { display: block; width: 100%; }
  .about-copy, .support-card, .trust-points { padding: 28px max(20px, calc((100vw - 600px)/2)); }
  .trust-points { display: block; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(5, 160px); overflow-x: auto; padding-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 8px; line-height: 1.5; }
  .footer-bottom a { margin: 0 24px 0 0; }
  .footer-credits { justify-content: flex-start; flex-wrap: wrap; gap: 8px 24px; }
  .footer-credits a { margin: 0; }
  .floating-call { position: fixed; z-index: 20; right: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 25px rgba(0,0,0,.3); }
  .floating-call svg { width: 24px; }
  .page-hero { padding: 54px 0 46px; }
  .page-hero h1, .article-header h1, .necrology-header h1 { font-size: 38px; }
  .obituary-archive-grid { display: grid; grid-template-columns: 1fr; overflow: visible; }
  .obituary-archive-grid .obituary-card { width: 100%; }
  .necrology-search { grid-template-columns: 1fr; padding: 20px; }
  .necrology-search .button, .necrology-search-reset { width: 100%; }
  .posts-grid { grid-template-columns: 1fr; }
  .ceremony-box { grid-template-columns: 1fr; }
  .ceremony-box div + div { border: 0; border-top: 1px solid var(--line); padding-top: 20px; }
}

@media (max-width: 420px) {
  .hero-actions .button { width: 100%; }
  .service-card h2 { font-size: 17px; }
  .footer-grid { display: block; }
  .footer-grid > div { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Offer archive and single service pages */
.services-more { margin-top: 38px; text-align: center; }
.page-hero { padding: 112px 0 102px; background: linear-gradient(110deg, #f7f4ef 0%, #fff 70%); text-align: center; }
.page-hero h1 { margin: 0 0 22px; font: 58px/1.08 Georgia, serif; }
.page-hero > .container > p:last-child { max-width: 690px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.8; }
.offer-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.offer-card { min-height: 390px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 40px rgba(40,34,28,.04); transition: .2s ease; }
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(40,34,28,.09); }
.offer-card-media { position: relative; height: 205px; display: block; overflow: hidden; background: var(--cream); }
.offer-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(27,24,20,.2)); }
.offer-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.offer-card:hover .offer-card-media img { transform: scale(1.035); }
.offer-card-icon { position: absolute; z-index: 1; left: 28px; bottom: 18px; width: 52px; height: 52px; padding: 11px; display: grid; place-items: center; color: var(--gold); background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(31,27,23,.16); }
.offer-card-icon svg, .service-title-icon svg { width: 100%; height: 100%; }
.service-title-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 28px; color: var(--gold); }
.offer-card-content { padding: 30px 32px 33px; }
.offer-card h2 { margin: 0 0 16px; font: 26px/1.2 Georgia, serif; }
.offer-card p { margin: 0 0 27px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.read-more { color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .03em; }
.offer-contact-band { padding: 72px 0; background: var(--cream); }
.offer-contact-band .container { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.offer-contact-band h2 { margin: 0 0 12px; font: 34px/1.2 Georgia, serif; }
.offer-contact-band p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.service-single-hero { min-height: 500px; display: flex; align-items: center; background: linear-gradient(110deg, #f7f4ef 0%, #fff 72%); background-position: center; background-size: cover; }
.service-single-title { max-width: 690px; padding: 90px 0; }
.service-single-title h1 { margin: 0 0 23px; font: 54px/1.1 Georgia, serif; }
.service-single-title > p:not(.eyebrow) { max-width: 620px; margin: 0 0 34px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.service-single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 90px; padding-top: 95px; padding-bottom: 105px; }
.entry-content { font-size: 15px; line-height: 1.85; color: #4e4b46; }
.entry-content h2 { margin: 48px 0 19px; color: var(--ink); font: 34px/1.2 Georgia, serif; }
.entry-content h2:first-child { margin-top: 0; }
.entry-content h3 { margin: 32px 0 14px; color: var(--ink); font: 24px/1.25 Georgia, serif; }
.entry-content p { margin: 0 0 22px; }
.entry-content ul { margin: 0 0 28px; padding-left: 22px; }
.entry-content li { margin-bottom: 10px; }
.page-manual-content {
  padding-top: 58px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.page-manual-content .entry-content { max-width: 980px; margin-bottom: 0; }
.service-reassurance { display: flex; gap: 24px; margin-top: 55px; padding: 30px; background: var(--cream); }
.service-reassurance > svg { width: 42px; min-width: 42px; color: var(--gold); }
.service-reassurance h3 { margin: 0 0 8px; font-size: 20px; }
.service-reassurance p { margin: 0; font-size: 13px; }
.service-sidebar { align-self: start; position: sticky; top: 30px; padding: 33px 30px; border: 1px solid var(--line); }
.service-sidebar h3 { margin: 0 0 18px; font: 24px Georgia, serif; }
.service-sidebar a { display: flex; justify-content: space-between; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); color: #4e4b46; font-size: 12px; line-height: 1.35; }
.service-sidebar a:last-child { border: 0; }
.service-sidebar a:hover, .service-sidebar a.current { color: var(--gold-dark); }
.service-cta { padding: 95px 0; text-align: center; background: linear-gradient(110deg, #f7f4ef, #fff); }
.container.narrow { max-width: 760px; }
.service-cta h2 { margin: 0 0 18px; font: 40px/1.2 Georgia, serif; }
.service-cta > .container > p:not(.eyebrow) { margin: 0 auto 32px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.service-cta .hero-actions { justify-content: center; }

@media (max-width:1020px) {
  .offer-archive-grid { grid-template-columns: repeat(2, 1fr); }
  .service-single-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 45px; }
}
@media (max-width:760px) {
  .page-hero { padding: 76px 0 68px; }
  .page-hero h1, .service-single-title h1 { font-size: 42px; }
  .offer-archive-grid { grid-template-columns: 1fr; }
  .offer-card { min-height: 0; }
  .offer-card-media { height: 220px; }
  .offer-contact-band .container { display: block; }
  .offer-contact-band .button { margin-top: 28px; }
  .service-single-hero { min-height: 0; }
  .service-single-title { padding: 70px 0; }
  .service-single-layout { display: block; padding-top: 65px; padding-bottom: 70px; }
  .service-sidebar { position: static; margin-top: 50px; }
  .service-cta { padding: 72px 0; }
  .service-cta h2 { font-size: 34px; }
}

.necrology-residence { margin: 12px 0 0; font: italic 16px/1.5 Georgia, serif; color: var(--muted); }
.necrology-death-date { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.ceremony-box div { padding: 18px; border: 1px solid var(--line); }
.ceremony-box div + div { border-left: 1px solid var(--line); }
.ceremony-box small { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.page-content-section > .container { max-width: 1120px; }

/*
 * Strona „O nas” składa się z rozbudowanych, edytowalnych grup Gutenberga.
 * Dla tej podstrony używamy pełnej szerokości motywu i wyłączamy automatyczne
 * zwężanie bloków nadrzędnych przez style układu WordPressa/Kadence.
 */
.about-page-content > .container {
  width: min(1280px, calc(100% - 72px));
  max-width: none;
}
.about-page-content .entry-content {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}
.about-page-content .entry-content > .wp-block-group,
.about-page-content .entry-content > section {
  width: 100%;
  max-width: none !important;
  margin-left: 0;
  margin-right: 0;
}
.about-page-content .entry-content > .is-layout-constrained,
.about-page-content .entry-content > .wp-block-group-is-layout-constrained,
.about-page-content .entry-content > .wp-block-kadence-rowlayout,
.about-page-content .entry-content > .kt-row-layout-inner,
.about-page-content .entry-content > .kb-row-layout-wrap {
  width: 100% !important;
  max-width: none !important;
}
.about-page-content .about-story > *,
.about-page-content .about-values > *,
.about-page-content .about-facebook > * {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.about-page-content .kt-row-column-wrap,
.about-page-content .kb-row-layout-wrap > .kt-row-column-wrap {
  width: 100% !important;
  max-width: none !important;
}
.content-intro { max-width: 680px; margin: 0 auto 54px; text-align: center; }
.content-intro h2, .contact-page-intro h2 { margin: 0 0 18px; font: 36px/1.2 Georgia, serif; color: var(--ink); }
.content-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.content-gallery figure { margin: 0; aspect-ratio: 1.35/1; overflow: hidden; background: var(--cream); }
.content-gallery figure a { display: block; width: 100%; height: 100%; }
.content-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.content-gallery figure:hover img { transform: scale(1.035); }
.gallery-sections { display: grid; gap: 96px; }
.gallery-category { scroll-margin-top: 30px; }
.gallery-category-heading { max-width: 720px; margin: 0 auto 34px; text-align: center; }
.gallery-category-heading h3 { margin: 0 0 14px; color: var(--ink); font: 34px/1.2 Georgia, serif; }
.gallery-category-heading > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.service-photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-photo-gallery figure { aspect-ratio: 4/3; border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(40,34,28,.045); }
.service-photo-gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.service-photo-gallery-flowers figure { aspect-ratio: 4/5; }
.service-photo-gallery-flowers figure:first-child { aspect-ratio: 4/3; }
.service-photo-gallery-interiors { grid-template-columns: .72fr 1.28fr; grid-template-rows: repeat(2, minmax(225px, 1fr)); }
.service-photo-gallery-interiors figure { min-height: 225px; aspect-ratio: auto; }
.service-photo-gallery-interiors figure:first-child { grid-column: 1; grid-row: 1 / span 2; }
.service-photo-gallery-interiors figure:nth-child(2) { grid-column: 2; grid-row: 1; }
.service-photo-gallery-interiors figure:nth-child(3) { grid-column: 2; grid-row: 2; }
.service-single-content .service-photo-gallery { margin: 38px 0 58px; }
.service-single-content .service-photo-gallery figure:first-child { grid-column: span 2; grid-row: auto; }
.contact-page-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.contact-page-intro > p:last-child { color: var(--muted); font-size: 14px; line-height: 1.8; }
.contact-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-details > * { min-height: 145px; padding: 28px; display: flex; flex-direction: column; justify-content: center; border: 1px solid var(--line); background: #fff; }
.contact-details span { margin-bottom: 12px; color: var(--gold-dark); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.contact-details strong { font: 18px/1.55 Georgia, serif; color: var(--ink); }
.contact-phone-list { display: grid; gap: 2px; }
.contact-phone-list a { color: var(--ink); }
.urn-page-section { background: #fbfaf7; }
.urn-catalog-intro { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.urn-catalog-intro h2 { margin: 0 0 18px; font: 38px/1.2 Georgia, serif; }
.urn-catalog-intro > p:not(.eyebrow) { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.urn-category-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 80px; }
.urn-category-nav a { padding: 11px 15px; border: 1px solid var(--line); background: #fff; color: #5d5953; font-size: 10px; text-transform: uppercase; transition: .2s ease; }
.urn-category-nav a:hover { border-color: var(--gold); color: var(--gold-dark); }
.urn-catalog-group { padding: 0 0 85px; scroll-margin-top: 30px; }
.urn-catalog-heading { margin-bottom: 30px; text-align: center; }
.urn-catalog-heading h2 { margin: 0; font: 36px/1.2 Georgia, serif; }
.urn-catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; max-width: 980px; margin: 0 auto; }
.urn-catalog-sheet { position: relative; padding: 18px 18px 48px; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 36px rgba(41,35,28,.04); transition: .2s ease; }
.urn-catalog-sheet:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(41,35,28,.09); }
.urn-catalog-sheet img { display: block; width: 100%; height: auto; }
.urn-catalog-sheet span { position: absolute; left: 18px; right: 18px; bottom: 17px; color: var(--gold-dark); font-size: 9px; font-weight: 700; text-align: center; text-transform: uppercase; }
.urn-service-link { margin: 48px 0; padding: 38px; border: 1px solid var(--line); background: var(--cream); }
.urn-service-link h3 { margin: 0 0 12px; }
.urn-service-link p:not(.eyebrow) { margin-bottom: 24px; }
.catalog-link-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.coffin-page-section { background: #fbfaf7; }
.coffin-catalog-intro { margin-bottom: 70px; }
.coffin-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.coffin-catalog-card { overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 38px rgba(41,35,28,.045); transition: transform .25s ease, box-shadow .25s ease; }
.coffin-catalog-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(41,35,28,.1); }
.coffin-catalog-card > a { display: flex; height: 100%; flex-direction: column; }
.coffin-catalog-photo { display: block; aspect-ratio: 1.22/1; overflow: hidden; background: #ede8df; }
.coffin-catalog-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.coffin-catalog-card:hover img { transform: scale(1.035); }
.coffin-catalog-copy { display: flex; min-height: 160px; padding: 27px 26px 24px; flex-direction: column; }
.coffin-catalog-copy .eyebrow { margin-bottom: 12px; }
.coffin-catalog-copy strong { color: var(--ink); font: 21px/1.35 Georgia, serif; }
.coffin-catalog-copy small { margin-top: auto; padding-top: 20px; color: var(--gold-dark); font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.catalog-availability-note { max-width: 760px; margin: 55px auto 0; color: var(--muted); font-size: 12px; line-height: 1.75; text-align: center; }
@media (max-width:760px) {
  .content-gallery { grid-template-columns: 1fr; }
  .gallery-sections { gap: 72px; }
  .gallery-category-heading h3 { font-size: 29px; }
  .service-photo-gallery figure:first-child,
  .service-single-content .service-photo-gallery figure:first-child { grid-column: auto; grid-row: auto; }
  .service-photo-gallery-interiors { grid-template-columns: 1fr; grid-template-rows: none; }
  .service-photo-gallery-interiors figure,
  .service-photo-gallery-interiors figure:first-child,
  .service-photo-gallery-interiors figure:nth-child(2),
  .service-photo-gallery-interiors figure:nth-child(3) { min-height: 0; grid-column: auto; grid-row: auto; aspect-ratio: 4/3; }
  .service-photo-gallery-interiors figure:first-child { aspect-ratio: 3/4; }
  .contact-page-grid { grid-template-columns: 1fr; gap: 45px; }
  .contact-details { grid-template-columns: 1fr; }
  .urn-category-nav { margin-bottom: 55px; }
  .urn-catalog-grid { grid-template-columns: 1fr; }
  .urn-catalog-group { padding-bottom: 60px; }
  .urn-service-link { padding: 28px 22px; }
  .coffin-catalog-grid { grid-template-columns: 1fr; }
  .coffin-catalog-intro { margin-bottom: 50px; }
  .catalog-link-actions .button { width: 100%; }
}

/* O nas, kontakt i mapy */
.about-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 84px; align-items: center; padding-bottom: 95px; }
.about-story-copy h2, .about-section-heading h2 { margin: 0 0 24px; color: var(--ink); font: 42px/1.16 Georgia, serif; }
.about-story-copy > p:not(.eyebrow), .about-section-heading > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.about-story-copy .button { margin-top: 14px; }
.about-photo-collage { min-height: 560px; position: relative; }
.about-photo { position: absolute; overflow: hidden; margin: 0; background: var(--cream); box-shadow: 0 20px 55px rgba(39,33,27,.12); }
.about-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.about-photo-1 { inset: 0 16% 14% 0; }
.about-photo-2 { width: 46%; height: 43%; right: 0; bottom: 0; border: 9px solid #fff; }
.about-photo-3 { width: 36%; height: 32%; right: 0; top: 5%; border: 9px solid #fff; }
.about-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 55px; background: var(--cream); }
.about-values article { min-height: 190px; padding: 32px; background: #fff; border: 1px solid var(--line); }
.about-values svg { width: 40px; height: 40px; color: var(--gold); }
.about-values h3 { margin: 24px 0 12px; color: var(--ink); font: 22px Georgia, serif; }
.about-values p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.about-interiors, .about-video-section, .about-locations { padding: 105px 0 15px; }
.about-section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.about-section-heading > p:not(.eyebrow) { margin-inline: auto; }
.about-video { max-width: 1040px; aspect-ratio: 16/8.3; margin: 0 auto; overflow: hidden; background: #242522; box-shadow: 0 24px 70px rgba(31,27,23,.13); }
.about-video iframe, .about-video video, .about-video .wp-video, .about-video .mejs-container { width: 100% !important; height: 100% !important; }
.video-placeholder { width: 100%; height: 100%; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 35px; color: #e7dfd3; text-align: center; background: linear-gradient(120deg, rgba(14,15,14,.94), rgba(14,15,14,.63)), url("assets/support-lilies-candles.png") center/cover; }
.video-placeholder svg { width: 72px; height: 72px; color: var(--gold); }
.video-placeholder span { font-size: 12px; letter-spacing: .04em; }
.location-card-grid, .contact-locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.location-card { display: flex; gap: 22px; min-height: 210px; padding: 32px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 35px rgba(40,34,28,.045); }
.location-card > svg, .location-icon { width: 38px; min-width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); }
.location-icon svg, .location-icon-svg { width: 100%; height: 100%; }
.location-card .eyebrow { margin-bottom: 8px; }
.location-card h3 { margin: 0 0 12px; color: var(--ink); font: 24px Georgia, serif; }
.location-card p { margin: 0 0 23px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.location-card a { color: var(--gold-dark); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; }
.about-facebook { display: flex; align-items: center; justify-content: space-between; gap: 60px; margin-top: 100px; padding: 55px 65px; background: linear-gradient(110deg, #f7f4ef, #fff); border: 1px solid var(--line); }
.about-facebook h2 { margin: 0 0 12px; color: var(--ink); font: 32px Georgia, serif; }
.about-facebook p:last-child { margin: 0; color: var(--muted); font-size: 13px; }
.about-facebook .button svg { width: 18px; }
.contact-page-grid { grid-template-columns: .8fr 1.2fr; gap: 70px; }
.contact-quick-links { display: grid; gap: 12px; margin-top: 34px; }
.contact-quick-links > a { display: flex; align-items: center; gap: 17px; padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.contact-quick-links svg { width: 25px; min-width: 25px; color: var(--gold); }
.contact-quick-links span, .contact-quick-links small, .contact-quick-links strong { display: block; }
.contact-quick-links small { margin-bottom: 5px; color: var(--gold-dark); font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.contact-quick-links strong { color: var(--ink); font: 17px/1.35 Georgia, serif; overflow-wrap: anywhere; }
.contact-locations { grid-template-columns: 1fr; }
.contact-locations .location-card { min-height: 0; padding: 27px 29px; }
.maps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 75px; }
.map-card { overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 38px rgba(41,35,28,.05); }
.map-card iframe { display: block; width: 100%; height: 310px; border: 0; filter: saturate(.82) contrast(.95); }
.map-card > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; }
.map-card strong { color: var(--ink); font: 17px Georgia, serif; }
.map-card a { color: var(--gold-dark); font-size: 9px; font-weight: 700; }

@media (max-width:1020px) {
  .about-story { gap: 45px; }
  .about-photo-collage { min-height: 470px; }
  .about-values { padding: 30px; }
  .location-card-grid, .maps-grid { grid-template-columns: 1fr 1fr; }
  .contact-page-grid { gap: 45px; }
}
@media (max-width:760px) {
  .about-page-content > .container { width: min(100% - 28px, 600px); }
  .about-story { display: flex; flex-direction: column; gap: 50px; padding-bottom: 65px; }
  .about-story-copy h2, .about-section-heading h2 { font-size: 34px; }
  .about-photo-collage { width: 100%; min-height: 420px; }
  .about-values { grid-template-columns: 1fr; padding: 18px; }
  .about-values article { min-height: 0; }
  .about-interiors, .about-video-section, .about-locations { padding-top: 72px; }
  .about-video { aspect-ratio: 16/10; }
  .about-facebook { display: block; margin-top: 70px; padding: 38px 28px; }
  .about-facebook .button { margin-top: 28px; }
  .location-card-grid, .maps-grid { grid-template-columns: 1fr; }
  .contact-page-grid { grid-template-columns: 1fr; }
  .maps-grid { margin-top: 55px; }
}

/* Nekrologi: jednolite portrety oraz kompletne kafelki ceremonii. */
.obituary-portrait {
  width: 82px;
  height: 106px;
  margin: 0 auto 14px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cec5b8;
  box-shadow: 0 6px 18px rgba(36,31,26,.07);
}
.obituary-portrait img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.16);
  transform-origin: 50% 18%;
  background: transparent;
  border: 0;
}
.obituary-card.has-portrait { min-height: 370px; }

@media (max-width:760px) {
  .necrology-body {
    width: min(calc(100% - 24px), 600px);
    max-width: none;
  }
  .ceremony-box {
    width: 100%;
    min-width: 0;
    margin-bottom: 32px;
    padding: 12px;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    overflow: visible;
  }
  .ceremony-box > div,
  .ceremony-box > div + div {
    width: 100%;
    min-width: 0;
    min-height: 150px;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line);
    overflow: visible;
  }
  .ceremony-box span,
  .ceremony-box strong,
  .ceremony-box small {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
  }
  .ceremony-box span { font-size: 11px; line-height: 1.4; }
  .ceremony-box strong { font-size: clamp(19px, 5.4vw, 24px); line-height: 1.35; }
  .ceremony-box small { margin-top: 2px; font-size: clamp(14px, 3.8vw, 17px); line-height: 1.5; }

  .obituary-portrait {
    width: 92px;
    height: 118px;
    padding: 0;
  }
  .obituary-card.has-portrait { min-height: 390px; }
}
