/* Podstrony MMZ: okruszki, obrazek strony, nawigacja działu, bogatsza typografia treści i bloki (ceny, kontakt, pliki). */

/* ---------------------------------------------------------------- okruszki */
.mmz-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0; padding: 0; list-style: none; font-family: var(--font-body, 'Figtree', sans-serif); font-size: 14px; }
.mmz-crumbs li { display: inline-flex; align-items: center; margin: 0; color: var(--ink-soft, #55554e); }
.mmz-crumbs li + li::before { content: ""; width: 6px; height: 6px; margin: 0 12px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; }
.mmz-crumbs a { color: var(--ink-soft, #55554e); text-decoration: none; }
.mmz-crumbs a:hover { color: var(--ink, #1a1a18); text-decoration: underline; text-underline-offset: 3px; }
.mmz-crumbs [aria-current] span { color: var(--ink, #1a1a18); font-weight: 600; }

/* ---------------------------------------------------------------- obrazek strony (z szewronem z logo) */
.mmz-visual { position: relative; margin: 0; isolation: isolate; }
.mmz-visual::before { content: ""; position: absolute; z-index: -1; top: 12%; right: -28px; width: 120px; height: 76%; background: var(--accent, #a5d063); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.mmz-visual__img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; box-shadow: 0 30px 60px rgb(26 26 24 / .14); }
@media (max-width: 1023px) { .mmz-visual::before { right: -12px; width: 64px; } }
@media (max-width: 767px) { .mmz-visual::before { display: none; } .mmz-visual__img { aspect-ratio: 16 / 10; border-radius: 16px; } }

/* ---------------------------------------------------------------- nawigacja działu */
.mmz-secnav { padding: 22px; border-radius: 18px; background: var(--surface, #fdfdfb); border: 1px solid var(--line, #deded5); }
.mmz-secnav__title { margin: 0 0 10px; font-family: var(--font-display, 'Cinzel', serif); font-size: 19px; font-weight: 600; color: var(--ink, #1a1a18); }
.mmz-secnav ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.mmz-secnav li { margin: 0; }
.mmz-secnav a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; font-family: var(--font-body, 'Figtree', sans-serif); font-size: 15px; color: var(--ink, #1a1a18); text-decoration: none; transition: background-color .15s; }
.mmz-secnav a::after { content: ""; flex: none; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .35; }
.mmz-secnav a:hover { background: var(--accent-wash, #edf5df); }
.mmz-secnav a.is-current { background: var(--ink, #1a1a18); color: #fafaf7; font-weight: 600; }
.mmz-secnav a.is-current::after { opacity: .8; }

/* ---------------------------------------------------------------- treść (.prose) - rozszerzenia */
.prose { font-size: 18px; }
.prose > p:first-child, .prose > p:first-of-type { font-size: 21px; line-height: 1.6; color: var(--ink, #1a1a18); }
.prose h2 { position: relative; font-size: 30px; padding-top: 22px; margin-top: 1.4em; }
.prose h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--accent, #a5d063); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body, 'Figtree', sans-serif); font-weight: 700; font-size: 21px; }
.prose ul:not([class]) { list-style: none; padding-left: 0; }
.prose ul:not([class]) > li { position: relative; padding-left: 26px; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, #a5d063); box-shadow: 0 0 0 3px var(--accent-wash, #edf5df); }
.prose blockquote { position: relative; padding: 26px 28px 26px 64px; border: 0; border-radius: 18px; background: var(--accent-wash, #edf5df); font-size: 1.1em; font-style: italic; }
.prose blockquote::before { content: "\201E"; position: absolute; left: 20px; top: 0; font-family: var(--font-display, 'Cinzel', serif); font-size: 72px; line-height: 1; color: var(--accent-strong, #3d6b12); }
.prose em { color: var(--ink, #1a1a18); }
.prose [style*="font-size"] { font-size: inherit !important; }
.prose img[class*="wp-image"], .prose .wp-caption img { box-shadow: 0 16px 40px rgb(26 26 24 / .10); }
.prose .gallery { gap: 14px; }
.prose .gallery-icon a { position: relative; }
.prose .gallery-icon a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgb(26 26 24 / 0); transition: background-color .3s; }
.prose .gallery-icon a:hover::after { background: rgb(26 26 24 / .12); }
.prose iframe { box-shadow: 0 16px 40px rgb(26 26 24 / .08); background: var(--surface, #fdfdfb); }
.prose table { border-radius: 14px; overflow: hidden; background: var(--surface, #fdfdfb); border: 1px solid var(--line, #deded5); }
.prose th { background: var(--surface-alt, #eceee5); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

/* linki do plików PDF jako "przyciski plików" */
.prose a[href$=".pdf"], .prose a[href$=".PDF"] { display: inline-flex; align-items: center; gap: 12px; margin: 4px 0; padding: 12px 18px 12px 12px; border-radius: 14px; border: 1px solid var(--line, #deded5); background: var(--surface, #fdfdfb); color: var(--ink, #1a1a18); font-weight: 600; font-size: 17px; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.prose a[href$=".pdf"]::before, .prose a[href$=".PDF"]::before { content: "PDF"; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink, #1a1a18); color: var(--accent, #a5d063); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.prose a[href$=".pdf"]:hover, .prose a[href$=".PDF"]:hover { border-color: var(--ink, #1a1a18); transform: translateY(-1px); box-shadow: 0 10px 24px rgb(26 26 24 / .08); }
.prose a[href$=".pdf"] img { display: none; }
/* plakat/okładka linkująca do PDF: zwykły obrazek, nie karta pliku (ikonkę PDF dalej ukrywamy) */
.prose a[href$=".pdf"]:has(img:not([src*="PDF_file_icon"])), .prose a[href$=".PDF"]:has(img:not([src*="PDF_file_icon"])) { display: inline; padding: 0; margin: 0; border: 0; background: none; box-shadow: none; transform: none; }
.prose a[href$=".pdf"]:has(img:not([src*="PDF_file_icon"]))::before, .prose a[href$=".PDF"]:has(img:not([src*="PDF_file_icon"]))::before { content: none; }
.prose a[href$=".pdf"] img:not([src*="PDF_file_icon"]), .prose a[href$=".PDF"] img:not([src*="PDF_file_icon"]) { display: inline-block; max-width: 100%; height: auto; }
.prose a[href$=".pdf"] img.aligncenter:not([src*="PDF_file_icon"]) { display: block; }
/* tabele na telefonie przewijane w poziomie zamiast rozpychać stronę */
@media (max-width: 767px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }
.prose p[style*="center"] { text-align: left !important; }

/* przycisk w treści */
.prose a.mmz-btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 999px; background: var(--accent, #a5d063); color: var(--ink, #1a1a18); font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color .2s, transform .15s; }
.prose a.mmz-btn:hover { background: var(--accent-hover, #93c04f); }
.prose a.mmz-btn:active { transform: scale(.98); }

/* ---------------------------------------------------------------- cennik */
.prose .mmz-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: none; margin: 1em 0 1.4em; }
.prose .mmz-price { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 140px; padding: 20px; border-radius: 18px; background: var(--surface, #fdfdfb); border: 1px solid var(--line, #deded5); }
.prose .mmz-price__name { font-size: 16px; font-weight: 600; color: var(--ink-soft, #55554e); line-height: 1.35; }
.prose .mmz-price__value { font-family: var(--font-display, 'Cinzel', serif); font-size: 38px; font-weight: 700; line-height: 1; color: var(--ink, #1a1a18); }
.prose .mmz-price:first-child { background: var(--ink, #1a1a18); border-color: var(--ink, #1a1a18); }
.prose .mmz-price:first-child .mmz-price__name { color: #d4d4cc; }
.prose .mmz-price:first-child .mmz-price__value { color: var(--accent, #a5d063); }
.prose .mmz-price--family { background: var(--accent-wash, #edf5df); border-color: transparent; }
.prose ul.mmz-checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose ul.mmz-checks li { position: relative; margin: 0; padding: 14px 16px 14px 52px; border-radius: 14px; background: var(--surface, #fdfdfb); border: 1px solid var(--line, #deded5); }
.prose ul.mmz-checks li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent, #a5d063); }
.prose ul.mmz-checks li::after { content: ""; position: absolute; left: 23px; top: 20px; width: 6px; height: 10px; border-right: 2px solid var(--ink, #1a1a18); border-bottom: 2px solid var(--ink, #1a1a18); transform: rotate(45deg); }
.prose .mmz-note { margin-top: 1.6em; padding: 24px 26px; border-radius: 18px; background: var(--accent-wash, #edf5df); border-left: 4px solid var(--accent, #a5d063); }
.prose .mmz-note p { margin-bottom: .5em; font-size: 18px; }
.prose .mmz-note ul { margin: 0; }

/* ---------------------------------------------------------------- kontakt */
.prose .mmz-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: none; }
.prose .mmz-contact__card { padding: 24px; border-radius: 18px; background: var(--surface, #fdfdfb); border: 1px solid var(--line, #deded5); font-size: 17px; }
.prose .mmz-contact__card:first-child { background: var(--ink, #1a1a18); border-color: var(--ink, #1a1a18); color: #e4e4dc; }
.prose .mmz-contact__card:first-child h3, .prose .mmz-contact__card:first-child strong { color: #fafaf7; }
.prose .mmz-contact__card:first-child a { color: var(--accent, #a5d063); }
.prose .mmz-contact__card h3 { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong, #3d6b12); }
.prose .mmz-contact__card:first-child h3 { color: var(--accent, #a5d063); }
.prose .mmz-contact__card p { margin: 0 0 .7em; font-size: 17px; line-height: 1.6; }
.prose .mmz-contact__card p:last-child { margin-bottom: 0; }

@media (max-width: 1023px) {
  .prose .mmz-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .prose > p:first-child, .prose > p:first-of-type { font-size: 19px; }
  .prose h2 { font-size: 25px; }
  .prose .mmz-price { min-height: 112px; padding: 16px; }
  .prose .mmz-price__value { font-size: 30px; }
  .prose .mmz-contact { grid-template-columns: minmax(0, 1fr); }
  .prose blockquote { padding: 22px 20px 22px 52px; }
}
@media (max-width: 479px) {
  .prose .mmz-prices { grid-template-columns: minmax(0, 1fr); }
}

/* puste miejsca po shortcode'ach (brak obrazka / brak działu) */
.pg-hero-visual:not(:has(.mmz-visual)) { display: none; }
.pg-secnav:not(:has(.mmz-secnav)) { display: none; }
.pg-crumbs .oxy-shortcode, .pg-hero-visual .oxy-shortcode { display: block; }

/* galerie: flex - ostatni rząd zawsze wypełnia szerokość (bez samotnych zdjęć i luk) */
.prose .gallery { display: flex; flex-wrap: wrap; gap: 14px; }
.prose .gallery .gallery-item { flex: 1 1 calc((100% - (var(--cols, 4) - 1) * 14px) / var(--cols, 4)); min-width: 0; }
/* jedna wysokość rzędu dla wszystkich zdjęć (szerokość kolumny x 3/4) - ostatni rząd poszerza kadr, nie wysokość */
.prose .gallery { container-type: inline-size; }
.prose .gallery .gallery-icon img { height: calc((100cqi - (var(--cols, 4) - 1) * 14px) / var(--cols, 4) * .75); aspect-ratio: auto !important; }
@media (max-width: 1023px) { .prose .gallery { --cols: 3 !important; } .prose .gallery-columns-1, .prose .gallery-columns-2 { --cols: 2 !important; } }
@media (max-width: 479px) { .prose .gallery { --cols: 2 !important; } }

/* hero podstron (desktop): zdjęcie wypełnia kolumnę, nie wydłuża karty */
@media (min-width: 1024px) {
  .pg-hero-visual .oxy-shortcode { position: absolute; inset: 0; }
}

/* ---------------------------------------------------------------- hero podstron: karta (ciemny panel + zdjęcie) */
.pg-hero .pg-title { color: #fafaf7; }
.pg-hero .mmz-crumbs li, .pg-hero .mmz-crumbs a { color: rgb(250 250 247 / .72); }
.pg-hero .mmz-crumbs a:hover { color: var(--accent, #a5d063); }
.pg-hero .mmz-crumbs [aria-current] span { color: var(--accent, #a5d063); }
.pg-hero-copy::before { content: ""; display: block; flex: none; width: 48px; height: 4px; margin-bottom: -4px; border-radius: 4px; background: var(--accent, #a5d063); }
.pg-hero-visual .oxy-shortcode, .pg-hero-visual .mmz-visual { height: 100%; }
.pg-hero-visual .mmz-visual { position: relative; margin: 0; overflow: hidden; }
.pg-hero-visual .mmz-visual::before { content: ""; position: absolute; z-index: 2; top: 50%; left: -1px; right: auto; width: 46px; height: 132px; transform: translateY(-50%); background: var(--accent, #a5d063); clip-path: polygon(0 0, 100% 50%, 0 100%); display: block; }
.pg-hero-visual .mmz-visual::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(26 26 24 / .35), rgb(26 26 24 / 0) 30%); pointer-events: none; }
.pg-hero-visual .mmz-visual__img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; box-shadow: none; animation: mmz-hero-zoom 14s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes mmz-hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* bez zdjęcia: jedna kolumna, niższa karta */
.pg-hero .pg-hero-grid:not(:has(.mmz-visual)) { grid-template-columns: minmax(0, 1fr); min-height: 280px; }
.pg-hero .pg-hero-grid:not(:has(.mmz-visual)) .pg-hero-copy { max-width: 860px; }
@media (max-width: 1023px) {
  .pg-hero-visual .mmz-visual { aspect-ratio: 16 / 9; height: auto; }
  .pg-hero-visual .mmz-visual::before { top: auto; bottom: -1px; left: 50%; width: 120px; height: 34px; transform: translateX(-50%); clip-path: polygon(0 100%, 50% 0, 100% 100%); }
  .pg-hero-visual .mmz-visual::after { background: linear-gradient(0deg, rgb(26 26 24 / .35), rgb(26 26 24 / 0) 35%); }
  .pg-hero .pg-hero-grid:not(:has(.mmz-visual)) { min-height: 220px; }
}
@media (max-width: 767px) {
  .pg-hero-visual .mmz-visual { aspect-ratio: 4 / 3; }
  .pg-hero-visual .mmz-visual::before { width: 84px; height: 24px; }
}
@media (prefers-reduced-motion: reduce) { .pg-hero-visual .mmz-visual__img { animation: none; } }

/* karta hero ma klasę .container: bez wewnętrznego paddingu, szerokość = kontener minus marginesy */
.pg-hero .pg-hero-grid.container { padding-left: 0; padding-right: 0; width: calc(100% - var(--gutter, 40px) * 2); max-width: var(--container, 1240px); }

/* galerie: 4 zdjęcia = 2x2; samotne zdjęcie w ostatnim rzędzie (7, 10...) = kadr panoramiczny */
.prose .gallery:has(> .gallery-item:nth-of-type(4):last-of-type) { --cols: 2 !important; }
.prose .gallery-columns-1 .gallery-icon img { height: auto; max-height: 80vh; }
/* obrazki linkujące do PDF (plakaty, rozkładówki katalogów na białym tle): bez cienia, żeby nie wyglądały jak karta */
.prose a[href$=".pdf"] img, .prose a[href$=".PDF"] img { box-shadow: none; }

/* ===== Strona główna: wstęp jako opowieść (treść ze strony 506) ===== */
.hm-intro-grid { display: block !important; }
.hm-intro-grid > .hm-intro-text { max-width: 760px; margin-inline: auto; }
.hm-intro-aside { display: none !important; }
.hm-intro-text article > h2 { text-align: center; margin-bottom: 2.2rem; }
.hm-intro-text article > h2::before { content: "Opowieść o muzeum"; display: block; margin-bottom: .9rem; font-family: var(--font-body); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-strong); }
.hm-intro-text .prose p { text-align: left !important; }
.hm-intro-text .prose .mmz-lead { font-size: clamp(1.2rem, 1rem + .8vw, 1.45rem); line-height: 1.65; color: var(--ink); margin-bottom: 2.6rem; }
.hm-intro-text .prose .mmz-lead::first-letter { float: left; font-family: var(--font-display); font-size: 4.4em; line-height: .82; padding: .06em .12em 0 0; color: var(--accent-strong); }
/* rozdziały na osi czasu */
.hm-intro-text .prose h3 { position: relative; margin: 2.2rem 0 .5rem; padding-left: 2.2rem; font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.hm-intro-text .prose h3::before { content: ""; position: absolute; left: 0; top: .35em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash, rgba(0,0,0,.06)); }
.hm-intro-text .prose h3 + p { position: relative; margin: 0; padding: 0 0 .4rem 2.2rem; }
.hm-intro-text .prose h3 + p::before { content: ""; position: absolute; left: calc(.4rem - 1px); top: -.2rem; bottom: -1.9rem; width: 2px; background: var(--line); }
.hm-intro-text .prose h3:last-of-type + p::before { bottom: .4rem; }
/* wirtualny spacer jako puenta */
.hm-intro-text .mmz-spacer { margin-top: 3.2rem; }
.hm-intro-text .mmz-spacer p { margin: 0; }
.hm-intro-text .mmz-spacer a img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg, 16px); box-shadow: 0 18px 40px -22px rgba(0,0,0,.45); transition: transform .3s ease; }
.hm-intro-text .mmz-spacer a:hover img { transform: translateY(-3px); }
.hm-intro-text .mmz-spacer__note { display: flex; align-items: center; gap: 1.2rem; margin-top: 1.1rem !important; font-size: .9rem; line-height: 1.5; color: var(--ink-soft); }
.hm-intro-text .mmz-spacer__note img { flex: 0 0 auto; width: 220px; height: auto; box-shadow: none; border-radius: 6px; background: #fff; }
@media (max-width: 767px) {
  .hm-intro-text .prose h3 { padding-left: 1.8rem; font-size: 1.2rem; }
  .hm-intro-text .prose h3 + p { padding-left: 1.8rem; }
  .hm-intro-text .mmz-spacer__note { flex-direction: column; align-items: flex-start; }
  .hm-intro-text .mmz-spacer__note img { width: 200px; }
}

/* ===== Akcenty: zabawki zamiast kropek na osi opowieści ===== */
.hm-intro-text .prose h3 { padding-left: 3rem; }
.hm-intro-text .prose h3 + p { padding-left: 3rem; }
.hm-intro-text .prose h3::before { top: -.25em; left: -.2rem; width: 2.1rem; height: 2.1rem; border-radius: 0; box-shadow: none; background: var(--accent-strong);
  -webkit-mask: var(--toy) center / contain no-repeat; mask: var(--toy) center / contain no-repeat; transition: transform .4s ease; }
.hm-intro-text .prose h3:hover::before { transform: rotate(-10deg) scale(1.1); }
.hm-intro-text .prose h3 + p::before { left: .83rem; top: .9rem; }
.hm-intro-text .prose h3:nth-of-type(1) { --toy: url(img/zabawka-lalka.webp); }
.hm-intro-text .prose h3:nth-of-type(2) { --toy: url(img/zabawka-bak.webp); }
.hm-intro-text .prose h3:nth-of-type(3) { --toy: url(img/zabawka-pajac.webp); }
.hm-intro-text .prose h3:nth-of-type(4) { --toy: url(img/zabawka-lokomotywa.webp); }
/* odręczne podkreślenie pod tytułem opowieści */
.hm-intro-text article > h2::after { content: ""; display: block; width: 150px; height: 14px; margin: .7rem auto 0; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'%3E%3Cpath d='M3 9c18-6 30 4 48-1s30-6 48 0 30 4 48-3' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 14'%3E%3Cpath d='M3 9c18-6 30 4 48-1s30-6 48 0 30 4 48-3' fill='none' stroke='%23000' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ===== Siedziba: dwie kolumny, bilet-pieczątka, lokomotywka na torach ===== */
.hm-seat { padding-bottom: 92px; overflow: hidden; }
.hm-seat > article { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hm-seat .hm-seat-media { aspect-ratio: 4 / 3 !important; height: 100%; max-height: 520px; box-shadow: 0 30px 60px -34px rgba(26,26,24,.55); }
.hm-seat .hm-seat-panel { width: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; gap: 20px; }
.hm-seat .hm-seat-panel::before { content: "Dworzec, który został muzeum"; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: -8px; }
.hm-seat > article::before { content: "ul. Kolejowa 3 · od 2012"; position: absolute; z-index: 2; left: 22px; top: 22px; padding: 10px 18px; font-family: var(--font-display); font-size: 1rem; letter-spacing: .04em; color: var(--ink);
  background: #fffdf5; border: 2px dashed var(--accent-strong); border-radius: 6px; transform: rotate(-5deg); box-shadow: 0 10px 24px -12px rgba(0,0,0,.45);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.hm-seat-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 10px; }
.hm-seat-fact { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: baseline; padding: 12px 0; border-top: 1px dashed var(--line); }
.hm-seat-fact:last-child { border-bottom: 1px dashed var(--line); }
.hm-seat-fact-k { font-family: var(--font-display); font-size: 1.05rem; color: var(--accent-strong); }
.hm-seat-fact-v { color: var(--ink-soft); }
/* tory + lokomotywka */
.hm-seat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 9px; opacity: .7;
  background: linear-gradient(var(--ink-soft), var(--ink-soft)) top / 100% 3px no-repeat,
              repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 26px) 0 3px / 100% 6px no-repeat; }
.hm-seat::before { content: ""; position: absolute; z-index: 1; bottom: 20px; left: -130px; width: 110px; aspect-ratio: 1200 / 667; background: var(--accent-strong);
  -webkit-mask: url(img/zabawka-lokomotywa.webp) center / 100% 100% no-repeat; mask: url(img/zabawka-lokomotywa.webp) center / 100% 100% no-repeat;
  transform: scaleX(-1); animation: mmz-ciuchcia 26s linear infinite, mmz-ciuchcia-bob .45s ease-in-out infinite alternate; }
@keyframes mmz-ciuchcia { from { left: -130px; } to { left: calc(100% + 20px); } }
@keyframes mmz-ciuchcia-bob { from { translate: 0 0; } to { translate: 0 -2px; } }
@media (prefers-reduced-motion: reduce) { .hm-seat::before { animation: none; left: 24px; } }
@media (max-width: 1023px) {
  .hm-seat > article { grid-template-columns: 1fr; }
  .hm-seat .hm-seat-media { height: auto; }
}
@media (max-width: 767px) {
  .hm-seat > article::before { left: 12px; top: 12px; font-size: .85rem; padding: 7px 13px; }
  .hm-seat-fact { grid-template-columns: 1fr; gap: 2px; }
  .hm-seat::before { width: 80px; }
}

/* ===== Strona główna: założyciel (cytat) + galeria (wachlarz zdjęć) ===== */
.hm-meet { display: grid; gap: clamp(56px, 7vw, 104px); }
.hm-quote { display: grid; grid-template-columns: 210px 1fr; column-gap: clamp(32px, 5vw, 64px); row-gap: 22px; align-items: center; max-width: 980px; margin: 0 auto; }
.hm-quote-img { grid-row: span 2; width: 210px; height: 210px; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05);
  outline: 2px dashed var(--accent-strong); outline-offset: 8px; }
.hm-quote-text { position: relative; margin: 0; padding-top: 2.2rem; font-family: var(--font-body); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.1vw, 1.8rem); line-height: 1.45; color: var(--ink); }
.hm-quote-text::before { content: "„"; position: absolute; left: -.06em; top: -.6rem; font-family: var(--font-display); font-style: normal; font-size: 5rem; line-height: 1; color: var(--accent); }
.hm-quote-cap { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hm-quote-name { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.hm-quote-role { color: var(--ink-soft); font-size: .95rem; }
.hm-quote-link { margin-top: 12px; }

.hm-gal { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); background: var(--accent-wash, #eef5e2); overflow: hidden; }
.hm-gal-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hm-gal-text { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; max-width: 42ch; }
.hm-gal-fan { position: relative; display: block; height: 380px; }
.hm-gal-photo { position: absolute; width: 40%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; background: #fff; border: 9px solid #fff; border-bottom-width: 30px; border-radius: 4px;
  box-shadow: 0 18px 34px -16px rgba(40, 60, 20, .45); transition: transform .55s cubic-bezier(.16, 1, .3, 1); }
.hm-gal-photo:nth-child(1) { left: 0;   top: 34px; z-index: 1; transform: rotate(-9deg); }
.hm-gal-photo:nth-child(2) { left: 20%; top: 0;    z-index: 2; transform: rotate(4deg); }
.hm-gal-photo:nth-child(3) { left: 40%; top: 44px; z-index: 3; transform: rotate(-3deg); }
.hm-gal-photo:nth-child(4) { left: 60%; top: 8px;  z-index: 2; transform: rotate(8deg); }
.hm-gal-fan:hover .hm-gal-photo:nth-child(1), .hm-gal-fan:focus-visible .hm-gal-photo:nth-child(1) { transform: translate(-18px, 6px) rotate(-13deg); }
.hm-gal-fan:hover .hm-gal-photo:nth-child(2), .hm-gal-fan:focus-visible .hm-gal-photo:nth-child(2) { transform: translate(-8px, -10px) rotate(2deg); }
.hm-gal-fan:hover .hm-gal-photo:nth-child(3), .hm-gal-fan:focus-visible .hm-gal-photo:nth-child(3) { transform: translate(8px, -6px) rotate(-1deg); }
.hm-gal-fan:hover .hm-gal-photo:nth-child(4), .hm-gal-fan:focus-visible .hm-gal-photo:nth-child(4) { transform: translate(18px, 4px) rotate(12deg); }
@media (prefers-reduced-motion: reduce) { .hm-gal-photo { transition: none; } }
@media (max-width: 1023px) {
  .hm-gal { grid-template-columns: 1fr; }
  .hm-gal-fan { height: 340px; max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 767px) {
  .hm-quote { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hm-quote-img { grid-row: auto; width: 140px; height: 140px; }
  .hm-quote-text::before { left: 50%; transform: translateX(-50%); }
  .hm-quote-cap { align-items: center; }
  .hm-gal-fan { height: 250px; }
  .hm-gal-photo { width: 44%; border-width: 6px; border-bottom-width: 20px; }
  .hm-gal-photo:nth-child(2) { left: 18%; } .hm-gal-photo:nth-child(3) { left: 36%; } .hm-gal-photo:nth-child(4) { left: 56%; }
}
.hm-quote-text { padding-top: 0 !important; }
.hm-quote-text::before { content: "\201C"; position: static; display: block; height: 2.4rem; margin: 0 0 .2rem -.04em; font-size: 5.5rem; line-height: 1; color: var(--accent); }
.hm-quote-cap, .hm-quote-cap * { font-style: normal; }
@media (max-width: 767px) { .hm-quote-text::before { transform: none; } }
@media (max-width: 767px) { .hm-gal-fan { height: 232px; } .hm-gal-photo { width: 40%; } .hm-gal-photo:nth-child(1) { left: 4%; } .hm-gal-photo:nth-child(2) { left: 21%; } .hm-gal-photo:nth-child(3) { left: 38%; } .hm-gal-photo:nth-child(4) { left: 56%; } }

/* ===== Siedziba v2: panorama + tekst + bilety kolejowe ===== */
.hm-seat > article { grid-template-columns: 1fr !important; gap: clamp(28px, 4vw, 48px) !important; }
.hm-seat > article::before { display: none !important; }
.hm-seat .hm-seat-media { aspect-ratio: 21 / 8 !important; height: auto !important; max-height: 460px; object-position: center 62%; }
.hm-seat .hm-seat-panel { display: grid !important; grid-template-columns: 1fr 1.2fr; column-gap: clamp(32px, 5vw, 72px); row-gap: 16px; align-items: start; }
.hm-seat .hm-seat-panel > * { grid-column: 1; }
.hm-seat .hm-seat-panel::before { grid-column: 1; margin-bottom: 0; }
.hm-seat .hm-seat-panel > .hm-seat-facts { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin: 0; }
.hm-seat .hm-seat-panel > a { justify-self: start; }
.hm-seat-facts { grid-template-columns: repeat(3, 1fr); gap: 14px !important; }
.hm-seat-fact { position: relative; display: flex !important; flex-direction: column; gap: 10px !important; padding: 0 0 18px !important; border: 0 !important; border-radius: 8px; background: #fffdf5;
  box-shadow: 0 14px 30px -18px rgba(40, 60, 20, .5); text-align: center; overflow: hidden;
  -webkit-mask: radial-gradient(circle 9px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 62%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.hm-seat-fact:nth-child(1) { transform: rotate(-2deg); }
.hm-seat-fact:nth-child(3) { transform: rotate(2deg); }
.hm-seat-fact:hover { transform: translateY(-4px) rotate(0); }
.hm-seat-fact-k { display: block; padding: 12px 10px; background: var(--accent); color: var(--ink) !important; font-size: 1rem !important; letter-spacing: .02em; }
.hm-seat-fact-v { display: block; padding: 6px 16px 0; border-top: 2px dashed var(--line); margin-top: 18px; padding-top: 16px; font-size: .95rem; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .hm-seat-fact { transition: none; } }
@media (max-width: 1023px) {
  .hm-seat .hm-seat-panel { grid-template-columns: 1fr; }
  .hm-seat .hm-seat-panel > .hm-seat-facts { grid-column: 1; grid-row: auto; margin-top: 8px; }
  .hm-seat .hm-seat-media { aspect-ratio: 16 / 9 !important; }
}
@media (max-width: 767px) {
  .hm-seat-facts { grid-template-columns: 1fr; }
  .hm-seat-fact, .hm-seat-fact:nth-child(n) { transform: none; }
  .hm-seat .hm-seat-media { aspect-ratio: 4 / 3 !important; }
}
.hm-seat .hm-seat-media { object-position: center 28%; }
.hm-seat-fact { align-items: stretch !important;
  -webkit-mask: radial-gradient(circle 9px at 0 62px, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62px, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 62px, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62px, #0000 98%, #000) right / 51% 100% no-repeat; }
.hm-seat-fact-k { min-height: 46px; display: flex !important; align-items: center; justify-content: center; }
.hm-seat-fact-v { margin-top: 6px !important; padding: 16px 16px 0 !important; }

/* ===== Lokomotywka jedzie przez całą szerokość ekranu ===== */
body { overflow-x: clip; }
.hm-seat { overflow: visible !important; }
.hm-seat::after { left: calc(50% - 50vw); right: auto; width: 100vw; background-size: 100% 3px, 100% 6px; }
.hm-seat::before { animation: mmz-ciuchcia-full 34s linear infinite, mmz-ciuchcia-bob .45s ease-in-out infinite alternate; }
@keyframes mmz-ciuchcia-full { from { left: calc(50% - 50vw - 130px); } to { left: calc(50% + 50vw + 20px); } }
@media (prefers-reduced-motion: reduce) { .hm-seat::before { animation: none; left: 24px; } }

/* ===== Podstrony O Muzeum: lead, daty, mozaika, timeline, założyciel, menu kawiarenki ===== */
.pg-prose .mmz-lead { font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); line-height: 1.65; color: var(--ink); margin-bottom: 1.6em; }
.pg-prose h2 { margin-top: 2.2em; }

/* trzy daty w rzędzie */
.prose .mmz-dates { list-style: none; margin: 2.4em 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); max-width: none; }
.prose .mmz-dates li { margin: 0; padding: 18px 0 0; border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 6px; }
.prose .mmz-dates li::before { display: none; }
.prose .mmz-dates b { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); line-height: 1; color: var(--accent-strong); font-weight: 700; }
.prose .mmz-dates span { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }

/* mozaika galerii: jedno duże zdjęcie + mniejsze */
.prose .mmz-mosaic { max-width: none; margin: 2em 0; }
.prose .mmz-mosaic .gallery { display: grid !important; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: clamp(140px, 16vw, 210px); gap: 12px; margin: 0; container-type: normal; }
.prose .mmz-mosaic .gallery .gallery-item { flex: none; width: auto !important; margin: 0 !important; min-width: 0; }
.prose .mmz-mosaic .gallery-item:first-of-type { grid-row: span 2; }
.prose .mmz-mosaic .gallery:has(> .gallery-item:nth-of-type(4):last-of-type) .gallery-item:nth-of-type(2) { grid-column: span 2; }
.prose .mmz-mosaic .gallery-icon, .prose .mmz-mosaic .gallery-icon a { height: 100%; }
.prose .mmz-mosaic .gallery .gallery-icon img { width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
@media (max-width: 599px) {
  .prose .mmz-mosaic .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
  .prose .mmz-mosaic .gallery-item:first-of-type { grid-column: span 2; grid-row: span 2; }
  .prose .mmz-mosaic .gallery:has(> .gallery-item:nth-of-type(4):last-of-type) .gallery-item:nth-of-type(2) { grid-column: span 1; }
  .prose .mmz-mosaic .gallery:has(> .gallery-item:nth-of-type(4):last-of-type) .gallery-item:nth-of-type(4) { grid-column: span 2; }
}

/* czytaj dalej: dwie karty */
.prose .mmz-next { max-width: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 3em 0 0; }
.prose .mmz-next__card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 56px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg, 18px); background: var(--surface, #fff); color: var(--ink); text-decoration: none !important; transition: transform .35s cubic-bezier(.16,1,.3,1), border-color .25s, box-shadow .35s; }
.prose .mmz-next__card::after { content: "\2192"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; font-size: 1.3rem; color: var(--accent-strong); transition: right .3s; }
.prose .mmz-next__card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 36px -24px rgb(40 60 20 / .45); }
.prose .mmz-next__card:hover::after { right: 16px; }
.mmz-next__kicker { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-strong); }
.mmz-next__title { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2; }
.mmz-next__text { color: var(--ink-soft); font-size: .95rem; line-height: 1.45; }
@media (max-width: 599px) { .prose .mmz-next { grid-template-columns: 1fr; } }

/* założyciel */
.prose .mmz-founder { display: flex; align-items: center; gap: 22px; margin: 0 0 2em; max-width: none; }
.prose .mmz-founder img { flex: none; width: clamp(96px, 12vw, 132px); height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: grayscale(1) contrast(1.05); box-shadow: 0 0 0 5px var(--surface, #fff), 0 0 0 6px var(--accent); margin: 0; }
.prose .mmz-founder figcaption { display: flex; flex-direction: column; gap: 4px; }
.mmz-founder__name { font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); color: var(--ink); line-height: 1.15; }
.mmz-founder__role { color: var(--ink-soft); font-size: .95rem; }

/* duży cytat */
.prose blockquote.mmz-pull { max-width: none; margin: 0 0 2.2em; padding: 8px 0 8px clamp(56px, 7vw, 84px); background: none; border-radius: 0; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.7rem); line-height: 1.45; color: var(--ink); }
.prose blockquote.mmz-pull::before { content: "\201C"; left: 0; top: -.08em; font-family: Georgia, serif; font-size: clamp(5rem, 4rem + 4vw, 7.5rem); color: var(--accent); }
.prose blockquote.mmz-pull p { margin: 0; }
.prose blockquote.mmz-pull--soft { margin-top: 2.6em; padding: 30px 32px 28px clamp(64px, 8vw, 96px); border-radius: var(--radius-lg, 18px); background: var(--accent-wash); font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
.prose blockquote.mmz-pull--soft::before { left: 22px; top: 6px; font-size: 5rem; color: var(--accent-strong); }
.prose blockquote.mmz-pull cite { display: block; margin-top: 14px; font-style: normal; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }

/* oś czasu */
.prose .mmz-timeline { list-style: none; margin: 1.6em 0 0; padding: 0; position: relative; max-width: none; }
.prose .mmz-timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; border-left: 2px dashed var(--line); }
.prose .mmz-timeline__item { position: relative; margin: 0; padding: 0 0 28px 48px; display: flex; flex-direction: column; gap: 4px; }
.prose .mmz-timeline__item:last-child { padding-bottom: 0; }
.prose .mmz-timeline__item::before { content: ""; position: absolute; left: 4px; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--surface, #fff); }
.mmz-timeline__date { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }
.mmz-timeline__title { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); line-height: 1.2; color: var(--ink); }
.mmz-timeline__text { color: var(--ink-soft); line-height: 1.6; }
/* wariant z sylwetkami zabawek zamiast kropek */
.prose .mmz-timeline--toys::before { left: 23px; top: 30px; }
.prose .mmz-timeline--toys .mmz-timeline__item { padding: 0 0 40px 76px; }
.prose .mmz-timeline--toys .mmz-timeline__item::before { left: 0; top: -2px; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-wash); box-shadow: 0 0 0 4px var(--surface, #fff); }
.prose .mmz-timeline--toys .mmz-timeline__item::after { content: ""; position: absolute; left: 8px; top: 6px; width: 32px; height: 32px; background: var(--accent-strong); -webkit-mask: var(--toy) center / contain no-repeat; mask: var(--toy) center / contain no-repeat; }
.mmz-timeline--toys .mmz-timeline__item:nth-child(5n+1) { --toy: url(img/zabawka-mis.webp); }
.mmz-timeline--toys .mmz-timeline__item:nth-child(5n+2) { --toy: url(img/zabawka-lalka.webp); }
.mmz-timeline--toys .mmz-timeline__item:nth-child(5n+3) { --toy: url(img/zabawka-konik.webp); }
.mmz-timeline--toys .mmz-timeline__item:nth-child(5n+4) { --toy: url(img/zabawka-lokomotywa.webp); }
.mmz-timeline--toys .mmz-timeline__item:nth-child(5n+5) { --toy: url(img/zabawka-pajac.webp); }

/* menu kawiarenki */
.prose .mmz-menu { max-width: none; margin: 2em 0 2.4em; padding: clamp(24px, 3vw, 36px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); background: #fffdf5; border: 2px dashed var(--accent); border-radius: var(--radius-lg, 18px); }
.prose .mmz-menu__head { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-strong); }
.prose .mmz-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.prose .mmz-menu__list li { margin: 0; padding: 0 0 0 22px; position: relative; color: var(--ink); }
.prose .mmz-menu__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
@media (max-width: 767px) { .prose .mmz-menu { grid-template-columns: 1fr; } .prose .mmz-dates { grid-template-columns: 1fr; gap: 14px; } .prose .mmz-founder { gap: 16px; } }
.prose .mmz-timeline--toys::before { bottom: 60px; }
.prose .mmz-timeline:not(.mmz-timeline--toys)::before { bottom: 40px; }
@media (max-width: 599px) { .prose blockquote.mmz-pull--soft { padding: 56px 22px 24px; } .prose blockquote.mmz-pull--soft::before { left: 18px; top: 4px; font-size: 4rem; } }

/* ikony social w górnym pasku: ciemna ikona na zielonym kółku po najechaniu */
.nb-social-link:hover, .nb-social-link:focus-visible { color: var(--ink) !important; background-color: var(--accent); }
.nb-social-link:hover svg, .nb-social-link:focus-visible svg { color: var(--ink) !important; fill: currentColor; }

/* ===== Menu mobilne: wyśrodkowany hamburger + lista w kolumnie ===== */
@media (max-width: 1023px) {
  .nb-burger { align-items: center; justify-content: center; padding: 0; line-height: 0; }
  .nb-burger-icon { display: block; margin: 0; }
  .nb-nav { flex-direction: column; align-items: stretch; gap: 2px; }
  .nb.is-open .nb-nav { display: flex; }
  .nb-nav > .nb-link, .nb-item > .nb-link { display: flex; width: 100%; white-space: normal; }
  .nb-item { width: 100%; }
  .nb-nav > .nb-link + .nb-link, .nb-nav > .nb-item + .nb-link, .nb-nav > .nb-link + .nb-item { border-top: 1px solid var(--line); border-radius: 0; }
  .nb-sub { transform: none !important; margin: 0 0 6px 12px; padding: 0 0 4px 10px !important; border-left: 2px solid var(--accent-wash) !important; }
  .nb-sub-link { padding: 10px 12px; }
  .nb-nav-cta { justify-content: center; }
}
@media (max-width: 1023px) { .nb-sub { border-radius: 0 !important; } .nb-nav-cta { align-self: stretch; } }

/* ===== Menu mobilne v2: panel na cały ekran pod nagłówkiem, blokada przewijania, X ===== */
@media (max-width: 1023px) {
  .nb.is-open .nb-nav { position: fixed; top: var(--nb-bottom, 110px); left: 0; right: 0; bottom: 0; z-index: 1000; max-height: none; height: auto;
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: calc(32px + env(safe-area-inset-bottom)); box-shadow: none; border-bottom: 0; }
  html.mmz-nav-open { overflow: hidden !important; }
  html.mmz-nav-open .nb { z-index: 2147483000 !important; }
  html.mmz-nav-open [class*="dl-bubble"] { display: none !important; }
  html.mmz-nav-open .dl-bubble, html.mmz-nav-open .droplabs, html.mmz-nav-open .trp-floating-switcher { display: none !important; }
  .nb-burger { position: relative; }
  .nb.is-open .nb-burger-icon svg { opacity: 0; }
  .nb.is-open .nb-burger-icon::before, .nb.is-open .nb-burger-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 1.8px; border-radius: 2px; background: currentColor; }
  .nb.is-open .nb-burger-icon::before { transform: translate(-50%, -50%) rotate(45deg); }
  .nb.is-open .nb-burger-icon::after { transform: translate(-50%, -50%) rotate(-45deg); }
  .nb.is-open .nb-burger { background: var(--ink); color: #fafaf7; border-color: var(--ink); }
}

/* ---------- przełącznik języka (1.5.18) ---------- */
.mmz-lang__list { list-style: none; margin: 0; padding: 0; }
.mmz-lang__opt { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mmz-lang__code { font-weight: 700; font-size: 12px; letter-spacing: .06em; min-width: 22px; }
.mmz-lang--dropdown { position: relative; }
.mmz-lang--dropdown > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--ink); background: var(--surface, #fff); transition: border-color .2s, background-color .2s; user-select: none; }
.mmz-lang--dropdown > summary::-webkit-details-marker { display: none; }
.mmz-lang--dropdown > summary svg { width: 16px; height: 16px; }
.mmz-lang--dropdown > summary .mmz-lang__caret { width: 10px; height: 10px; transition: transform .2s; }
.mmz-lang--dropdown[open] > summary .mmz-lang__caret { transform: rotate(180deg); }
.mmz-lang--dropdown > summary:hover, .mmz-lang--dropdown[open] > summary { border-color: var(--ink); }
.mmz-lang--dropdown > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; }
.mmz-lang--dropdown .mmz-lang__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(20, 56, 82, .12); z-index: 50; }
.mmz-lang--dropdown .mmz-lang__opt { padding: 9px 12px; border-radius: 9px; font-size: 14px; }
.mmz-lang--dropdown .mmz-lang__opt:hover, .mmz-lang--dropdown .mmz-lang__opt:focus-visible { background: var(--accent-wash); color: var(--ink); }
.mmz-lang--dropdown .mmz-lang__opt.is-current { background: var(--ink); color: #fafaf7; }
.mmz-lang--inline { display: none; }
@media (max-width: 1023px) {
  .nb-actions .mmz-lang--dropdown, .nb-actions .oxy-shortcode:has(.mmz-lang--dropdown) { display: none; }
  .mmz-lang--inline { display: block; padding: 18px 4px 6px; border-top: 1px solid var(--line); margin-top: 8px; }
  .mmz-lang--inline .mmz-lang__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .mmz-lang--inline .mmz-lang__opt { flex-direction: column; gap: 2px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
  .mmz-lang--inline .mmz-lang__code { min-width: 0; font-size: 14px; }
  .mmz-lang--inline .mmz-lang__name { font-size: 11px; color: var(--ink-soft); }
  .mmz-lang--inline .mmz-lang__opt.is-current { background: var(--ink); border-color: var(--ink); color: #fafaf7; }
  .mmz-lang--inline .mmz-lang__opt.is-current .mmz-lang__name { color: rgba(250, 250, 247, .75); }
}
@media (max-width: 1023px) { .nb-nav > .oxy-shortcode { width: 100%; align-self: stretch; } }

/* ---------- Projekty: kafelek z logo/plakatem w całości i nazwą pod spodem (1.5.20) ---------- */
.page-id-1391 .pg-sub-link { flex-direction: column; align-items: stretch; aspect-ratio: auto; height: 100%; padding: 0; background: var(--surface, #fff); color: var(--ink); border: 1px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .25s; }
.page-id-1391 .pg-sub-link:hover { border-color: var(--ink); box-shadow: 0 14px 34px rgba(26, 26, 24, .08); transform: translateY(-2px); }
.page-id-1391 .pg-sub-img { position: static; z-index: auto; display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; padding: 22px 26px; background: #fff; border-bottom: 1px solid var(--line); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.page-id-1391 .pg-sub-link:hover .pg-sub-img { transform: scale(1.03); }
.page-id-1391 .pg-sub-img[src^="data:"] { object-fit: none; background: var(--accent-wash); opacity: .55; }
.page-id-1391 .pg-sub-shade { display: none; }
.page-id-1391 .pg-sub-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 20px; color: var(--ink); font-size: 20px; line-height: 1.2; }
.page-id-1391 .pg-sub-title::after { content: "→"; flex: none; font-family: var(--font-body); font-size: 18px; color: var(--accent-strong); transition: transform .25s; }
.page-id-1391 .pg-sub-link:hover .pg-sub-title::after { transform: translateX(4px); }

/* ── Stopka: partner + dofinansowanie (1.5.23) – jasny pas nad stopką ── */
.ft > .oxy-shortcode { display: block; margin: -80px 0 72px; }
.mmz-fund { background: #fff; border-top: 1px solid var(--line, #e4e4de); }
.mmz-fund__in { max-width: 1320px; margin: 0 auto; padding: 32px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 56px; }
.mmz-fund__group { display: flex; align-items: center; gap: 24px; }
.mmz-fund__group--grants { padding-left: 56px; border-left: 1px solid var(--line, #e4e4de); }
.mmz-fund p.mmz-fund__label { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8a8a82; white-space: nowrap; }
.mmz-fund__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.mmz-fund__logo { display: block; line-height: 0; transition: opacity .2s; }
.mmz-fund__logo:hover { opacity: .75; }
.mmz-fund__logo img { display: block; width: auto; height: 48px; max-width: 100%; }
.mmz-fund__logo--jilm img { height: 52px; }
.mmz-fund__logo--interreg img { height: 58px; }
.mmz-fund__logo--nisa img { height: 40px; }
.mmz-fund__logo--mkidn img { height: 46px; }
@media (max-width: 1023px) {
  .mmz-fund__in { padding: 24px 24px; }
  .mmz-fund__group--grants { padding-left: 0; border-left: 0; }
}
@media (max-width: 767px) {
  .ft > .oxy-shortcode { margin-bottom: 56px; }
  .mmz-fund__in { flex-direction: column; align-items: flex-start; gap: 20px; padding: 24px 16px; }
  .mmz-fund__group { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mmz-fund__logos { gap: 16px 24px; }
  .mmz-fund__logo--interreg img { height: 42px; }
  .mmz-fund__logo--nisa img { height: 34px; }
  .mmz-fund__logo--mkidn img { height: 40px; }
}
/* Strony projektów: logotypy i plakat */
.mmz-fund-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin: 0 0 28px; padding: 22px 28px; background: #fff; border: 1px solid var(--line, #e4e4de); border-radius: 10px; }
.mmz-fund-logos img { display: block; height: 72px; width: auto; max-width: 100%; }
.mmz-fund-poster { margin: 32px 0 0; }
.mmz-fund-poster img { display: block; width: 100%; max-width: 620px; height: auto; border: 1px solid var(--line, #e4e4de); border-radius: 10px; }
.mmz-fund-logos img.mmz-fund-logos__eu { height: 120px; }
.mmz-fund-logos img.mmz-fund-logos__nisa { height: 64px; }
@media (max-width: 767px) { .mmz-fund-logos img.mmz-fund-logos__eu { height: auto; width: 100%; max-width: 420px; } .mmz-fund-logos img.mmz-fund-logos__nisa { height: 52px; } }
/* Henryk Tomaszewski – twarz poza strzałką (1.5.26) */
.page-id-19 .pg-hero-visual .mmz-visual__img { object-position: 2% 40%; }
.page-id-2267 .pg-hero-visual .mmz-visual::after { display: none; }
