/* Wspólny arkusz strony piracipary.eu.org (PL / EN / FR) */
@font-face { font-family: "Alfa Slab One"; src: url("fonts/alfa-slab-one.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("fonts/eb-garamond-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #111418;
  --surface: #1b2028;
  --surface-2: #222833;
  --text: #eae4d7;
  --muted: #9fa6b2;
  --brass: #c89b3c;
  --brass-soft: rgba(200, 155, 60, 0.3);
  --brass-faint: rgba(200, 155, 60, 0.12);
  --cta: #c8552e;
  --cta-hover: #e0673d;
  --cta-text: #fff8ee;
  --f-display: "Alfa Slab One", "Rockwell", Georgia, serif;
  --f-serif: "EB Garamond", "Garamond", Georgia, serif;
  --f-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 14px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1.2 var(--f-sans); letter-spacing: 0.01em;
  text-decoration: none; text-align: center;
  border: 1px solid transparent; border-radius: 3px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: var(--cta-hover); color: var(--cta-text); }
.btn-ghost { border-color: var(--brass-soft); color: var(--text); background: rgba(17, 20, 24, 0.35); }
.btn-ghost:hover { border-color: var(--brass); color: var(--text); background: var(--brass-faint); }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 20, 24, 0.88);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--brass-faint);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-mark {
  width: 34px; height: 24px; background: var(--brass);
  -webkit-mask: url("img/czaszka.svg") center / contain no-repeat;
  mask: url("img/czaszka.svg") center / contain no-repeat;
}
.brand-name { font: 600 1.25rem/1 var(--f-serif); letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 0.92rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--brass-soft); border-radius: 3px;
  background: transparent; color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-cta { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 16px;
    background: rgba(17, 20, 24, 0.97); border-bottom: 1px solid var(--brass-soft);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--brass-faint); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .mobile-cta { margin-top: 12px; }
  .nav-links .mobile-cta a { display: flex; border: 0; color: var(--cta-text); padding: 0 24px; }
}
@media (min-width: 861px) { .mobile-cta { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: center; }
.hero-img { position: absolute; inset: 0; z-index: -2; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.96) 0%, rgba(17, 20, 24, 0.86) 34%, rgba(17, 20, 24, 0.35) 62%, rgba(17, 20, 24, 0.05) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(17, 20, 24, 0) 26%);
}
.hero-content { padding-block: 72px 64px; max-width: 700px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font: 600 0.8rem/1.2 var(--f-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--brass);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--brass); }
.hero h1 {
  margin-top: 18px;
  font: 400 clamp(3.4rem, 11vw, 6.6rem)/0.95 var(--f-display);
  letter-spacing: 0.04em; color: var(--text);
}
.hero .tagline { margin-top: 14px; font: italic 400 clamp(1.35rem, 3vw, 1.75rem)/1.3 var(--f-serif); color: var(--text); }
.hero .lead { margin-top: 20px; max-width: 54ch; color: #d8d2c4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin: 36px 0 0; padding: 20px 0 0; list-style: none; border-top: 1px solid var(--brass-soft);
  font-size: 0.93rem; color: var(--muted);
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust svg { width: 22px; height: 22px; flex: none; color: var(--brass); }
.trust strong { color: var(--text); font-weight: 600; }
@media (min-width: 761px) { .trust li { white-space: nowrap; } }
.hero + section.block { padding-top: clamp(40px, 6vw, 72px); }
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; }
  .hero-img { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .hero-img img { object-position: 74% 50%; }
  .hero::before { display: none; }
  .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 20, 24, 0) 50%, var(--bg) 100%); }
  .hero-content { padding-block: 0 48px; margin-top: -10vw; position: relative; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { display: grid; grid-template-columns: 1fr 1fr; }
}

/* ---------- sekcje ---------- */
section.block { padding-block: clamp(64px, 9vw, 112px); }
section.alt { background: linear-gradient(180deg, #151920 0%, #13171c 100%); border-block: 1px solid var(--brass-faint); }
.head { max-width: 720px; margin-bottom: 44px; }
.head h2 { margin-top: 14px; font: 600 clamp(2rem, 4.5vw, 2.9rem)/1.1 var(--f-serif); color: var(--text); }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }
.rule { display: flex; align-items: center; gap: 14px; color: var(--brass); margin: 0 auto; max-width: 240px; }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: var(--brass-soft); }
.rule span { width: 8px; height: 8px; transform: rotate(45deg); border: 1px solid var(--brass); }

/* czym jest */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillar { background: var(--surface); border: 1px solid var(--brass-faint); border-top: 2px solid var(--brass); padding: 26px 24px 28px; }
.pillar .num { font: 600 0.78rem/1 var(--f-sans); letter-spacing: 0.2em; color: var(--brass); }
.pillar h3 { margin-top: 12px; font: 600 1.55rem/1.15 var(--f-serif); }
.pillar p { margin-top: 12px; color: #cfc9bc; font-size: 0.98rem; }
@media (max-width: 1020px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* kroki */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; margin: 0; padding: 0; counter-reset: krok; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: calc(33.33% - 28px);
  height: 1px; background: repeating-linear-gradient(90deg, var(--brass) 0 6px, transparent 6px 12px); opacity: 0.6;
}
.step { position: relative; counter-increment: krok; }
.step::before {
  content: counter(krok); display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--bg); border: 1px solid var(--brass); color: var(--brass);
  font: 400 1.5rem/1 var(--f-display); position: relative;
}
section.alt .step::before { background: #141820; }
.step h3 { margin-top: 20px; font: 600 1.5rem/1.2 var(--f-serif); }
.step p { margin-top: 10px; color: #cfc9bc; }
.step .time { display: inline-block; margin-top: 14px; padding: 4px 10px; font-size: 0.85rem; color: var(--brass); border: 1px solid var(--brass-soft); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto;
    background: repeating-linear-gradient(180deg, var(--brass) 0 6px, transparent 6px 12px); }
  .step { padding-left: 80px; min-height: 56px; }
  .step::before { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 10px; }
}

/* podręczniki */
.books { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.book { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--brass-faint); }
.book.featured { border-color: var(--brass-soft); box-shadow: 0 0 0 1px var(--brass-soft), 0 24px 60px rgba(0, 0, 0, 0.35); }
.book-cover { position: relative; display: block; padding: 28px 28px 0; background: linear-gradient(180deg, #232a35, var(--surface)); }
.book-cover img { width: 100%; max-width: 280px; margin-inline: auto; aspect-ratio: 640 / 906; object-fit: cover; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.label {
  position: absolute; top: 16px; left: 16px;
  padding: 6px 10px; font: 600 0.75rem/1 var(--f-sans); letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--bg); color: var(--brass); border: 1px solid var(--brass-soft);
}
.featured .label { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.book-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.book h3 { font: 600 1.7rem/1.1 var(--f-serif); }
.book .sub { margin-top: 6px; font: italic 400 1.15rem/1.3 var(--f-serif); color: var(--brass); }
.book .desc { margin-top: 14px; color: #cfc9bc; font-size: 0.97rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 18px 0 20px; padding: 0; list-style: none; font-size: 0.86rem; color: var(--muted); }
.meta li + li::before { content: "·"; margin-right: 14px; color: var(--brass); }
.book .btn { margin-top: auto; width: 100%; }
.note { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.more-files { margin-top: 28px; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 1020px) { .books { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .book { flex-direction: row; } .book-cover { flex: 0 0 210px; padding: 24px 0 24px 24px; background: none; }
  .label { top: 32px; left: 32px; } }
@media (max-width: 600px) { .book { flex-direction: column; } .book-cover { flex: none; padding: 24px 24px 0; }
  .book-cover img { max-width: 220px; } .label { top: 14px; left: 14px; } }

/* świat */
.map {
  margin: 0 0 56px; background: var(--surface); border: 1px solid var(--brass-faint);
  display: grid; grid-template-columns: 1.7fr 1fr; align-items: stretch;
}
.map a.map-img { display: block; overflow: hidden; }
.map a.map-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.map a.map-img:hover img { transform: scale(1.03); }
.map figcaption { padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.map h3 { font: 600 1.8rem/1.1 var(--f-serif); }
.map p { color: #cfc9bc; font-size: 0.97rem; }
.map .btn { align-self: flex-start; margin-top: 6px; }
@media (max-width: 860px) { .map { grid-template-columns: 1fr; } .map figcaption { padding: 22px; } .map .btn { align-self: stretch; } }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.gallery figure { margin: 0; }
.gallery button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; overflow: hidden;
  border: 1px solid var(--brass-faint);
}
.gallery button img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 400ms ease, filter 400ms ease; filter: saturate(0.92); }
.gallery button:hover img { transform: scale(1.04); filter: none; }
.gallery figcaption { margin-top: 12px; font-size: 0.93rem; color: var(--muted); }
.gallery figcaption strong { display: block; font: 600 1.2rem/1.2 var(--f-serif); color: var(--text); margin-bottom: 4px; }
@media (max-width: 1020px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }

.quote {
  margin: 64px auto 0; max-width: 820px; padding: 40px clamp(22px, 5vw, 56px) 36px; position: relative;
  border: 1px solid var(--brass-soft); background: radial-gradient(ellipse at top, rgba(200, 155, 60, 0.07), transparent 70%);
}
.quote::before {
  content: "„"; position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  padding: 0 14px; background: var(--bg); color: var(--brass); font: 400 4.5rem/1 var(--f-serif);
}
.quote p { font: italic 400 clamp(1.25rem, 2.6vw, 1.55rem)/1.5 var(--f-serif); color: var(--text); text-align: center; }
.quote footer { margin-top: 18px; text-align: center; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }

/* lightbox */
dialog.lightbox {
  width: min(1400px, 100vw - 24px); max-width: none; max-height: calc(100vh - 24px); padding: 0;
  border: 1px solid var(--brass-soft); background: var(--bg); color: var(--text);
}
dialog.lightbox::backdrop { background: rgba(8, 10, 12, 0.9); }
.lb-figure { margin: 0; display: flex; flex-direction: column; }
.lb-figure img { width: 100%; max-height: calc(100vh - 150px); object-fit: contain; background: #0b0d10; }
.lb-bar { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.lb-bar p { flex: 1; font-size: 0.93rem; color: var(--muted); }
.lb-bar p strong { color: var(--text); font: 600 1.1rem var(--f-serif); margin-right: 8px; }
.lb-btn { width: 44px; height: 44px; display: grid; place-items: center; background: transparent; color: var(--text); border: 1px solid var(--brass-soft); border-radius: 3px; cursor: pointer; flex: none; }
.lb-btn:hover { border-color: var(--brass); background: var(--brass-faint); }
.lb-btn svg { width: 20px; height: 20px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--brass-faint); }
.faq details:first-of-type { border-top: 1px solid var(--brass-faint); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font: 600 1.3rem/1.3 var(--f-serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(45deg) translateY(-3px); transition: transform 200ms ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 22px; color: #cfc9bc; max-width: 68ch; }

/* archiwum */
.archive { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.arch-group { background: var(--surface); border: 1px solid var(--brass-faint); padding: 24px; }
.arch-group h3 { font: 600 1.4rem/1.2 var(--f-serif); }
.arch-group > p { margin-top: 6px; color: var(--muted); font-size: 0.93rem; }
.files { list-style: none; margin: 16px 0 0; padding: 0; columns: 2; column-gap: 24px; }
.arch-group.simple .files { columns: 1; }
.files li { break-inside: avoid; }
.files a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--brass-faint); color: var(--text); text-decoration: none; font-size: 0.96rem; }
.files a:hover { color: var(--brass); }
.files .fm { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
@media (max-width: 860px) { .archive { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .files { columns: 1; } }

/* finał */
.final { text-align: center; padding-block: clamp(72px, 10vw, 120px); position: relative; isolation: isolate; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.18;
  background: url("img/hero-1600.webp") center 60% / cover no-repeat;
}
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--bg), rgba(17, 20, 24, 0.6) 50%, var(--bg)); }
.final h2 { margin-top: 18px; font: 400 clamp(2rem, 5vw, 3.2rem)/1.1 var(--f-display); letter-spacing: 0.02em; }
.final p { margin: 16px auto 0; max-width: 56ch; color: #cfc9bc; }
.final .hero-actions { justify-content: center; }

/* stopka */
.footer { border-top: 1px solid var(--brass-faint); padding-block: 40px 48px; font-size: 0.9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 28px 48px; }
.footer .brand-name { color: var(--text); }
.footer p + p { margin-top: 8px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--brass); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- wersje językowe ---------- */
.nav-links { order: 1; }
.nav-cta { order: 2; }
.langs { order: 3; display: flex; align-items: center; gap: 2px; margin-left: -8px; }
.nav-toggle { order: 4; }
.langs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 7px; border-radius: 3px;
  color: var(--muted); text-decoration: none; font: 600 0.8rem/1 var(--f-sans); letter-spacing: 0.08em;
}
.langs a:hover { color: var(--text); }
.langs a[aria-current="page"] { color: var(--brass); }
@media (max-width: 860px) { .langs { margin-left: 0; } .langs a { min-height: 44px; padding: 0 8px; } }
.isbn { font-variant-numeric: tabular-nums; }
.map-alt-link { font-size: 0.85rem; }
.map-alt-link a { color: var(--muted); }
.map-alt-link a:hover { color: var(--brass); }
.meta li.isbn { flex-basis: 100%; }
.meta li.isbn::before { content: none; }

/* ---------- mapa z powiększaniem (OpenSeadragon) ---------- */
.map.zoomable { display: block; }
.map-viewer { position: relative; aspect-ratio: 9600 / 4896; background: #0e2433; overflow: hidden; }
.map-osd { position: absolute !important; inset: 0; width: 100%; height: 100%; } /* OSD wpisuje position:relative */
.map-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity 400ms ease; }
.map-viewer.ready .map-poster { opacity: 0; pointer-events: none; }
.map-tools { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.map-tools .grp { display: flex; gap: 2px; padding: 2px; background: rgba(17, 20, 24, 0.82); border: 1px solid var(--brass-soft); border-radius: 3px; }
.map-tools button {
  min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center;
  background: transparent; color: var(--text); border: 0; border-radius: 2px; cursor: pointer;
  font: 600 0.82rem/1 var(--f-sans); letter-spacing: 0.06em;
}
.map-tools button svg { width: 18px; height: 18px; }
.map-tools button:hover { background: var(--brass-faint); color: var(--brass); }
.map-tools button[aria-pressed="true"] { color: var(--brass); background: var(--brass-faint); }
.map-viewer.is-full, .map-viewer.map-full { aspect-ratio: auto; }
.map-viewer.map-full { position: fixed; inset: 0; z-index: 200; height: 100vh; height: 100dvh; }
.map-viewer:fullscreen { width: 100vw; height: 100vh; }
.map.zoomable figcaption { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; padding: 24px 28px; }
.map.zoomable figcaption .map-text { display: flex; flex-direction: column; gap: 10px; }
.map.zoomable figcaption .map-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.map-hint { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .map-viewer { aspect-ratio: auto; height: min(62vh, 460px); }
  .map.zoomable figcaption { grid-template-columns: 1fr; padding: 20px; }
  .map.zoomable figcaption .map-actions { align-items: stretch; }
}

/* archiwum PP 2015 – zwinięte */
.arch-details { border-top: 1px solid var(--brass-faint); border-bottom: 1px solid var(--brass-faint); }
.arch-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font: 600 1.15rem/1.3 var(--f-serif); color: var(--text);
}
.arch-details > summary::-webkit-details-marker { display: none; }
.arch-details > summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.5px solid var(--brass); border-bottom: 1.5px solid var(--brass); transform: rotate(45deg) translateY(-3px); transition: transform 200ms ease; }
.arch-details[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
.arch-details .archive { grid-template-columns: 1fr 1fr; padding-bottom: 24px; }
.arch-details .files { columns: 1; }
@media (max-width: 860px) { .arch-details .archive { grid-template-columns: 1fr; } }
