@charset "UTF-8";
/* ==========================================================================
   PKZ Poznań – Werkstätten für Denkmalpflege / Pracownie Konserwacji Zabytków
   Single modern stylesheet. Mobile-first, no external dependencies.
   ========================================================================== */

:root {
  --brand:        #1d4e6b;
  --brand-dark:   #143a51;
  --brand-soft:   #eef3f7;
  --accent:       #b07d3a;
  --accent-dark:  #8d6229;
  --accent-soft:  #f6efe3;
  --ink:          #1f2a35;
  --body:         #3a4653;
  --muted:        #6b7784;
  --sand:         #faf8f4;
  --surface:      #ffffff;
  --line:         #e3ded4;
  --line-soft:    #efeae0;
  --shadow-sm:    0 1px 2px rgba(31, 42, 53, .06), 0 1px 3px rgba(31, 42, 53, .05);
  --shadow-md:    0 4px 12px rgba(31, 42, 53, .08), 0 1px 3px rgba(31, 42, 53, .06);
  --shadow-lg:    0 14px 34px rgba(31, 42, 53, .13);
  --radius:       10px;
  --radius-lg:    16px;
  --wrap:         1120px;
  --wrap-narrow:  760px;
  --font-body:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-head:    "Iowan Old Style", "Palatino Linotype", Palatino, Palladio, Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--body);
  font: 400 17px/1.7 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: .002em;
}
h1 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 2.9rem); line-height: 1.14; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.95rem); margin-top: 2.1em; }
h3 { font-size: clamp(1.13rem, 1rem + .5vw, 1.35rem); margin-top: 1.7em; }
h4 { font-size: 1.02rem; margin-top: 1.4em; }
h2:first-child, h3:first-child { margin-top: 0; }

p { margin: 0 0 1.05em; }
p.lede { font-size: 1.15rem; line-height: 1.65; color: var(--ink); }
strong { color: var(--ink); font-weight: 650; }

a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, .card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

img { max-width: 100%; height: auto; border: 0; }
figure { margin: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.25em; }
li { margin: .35em 0; }
li::marker { color: var(--accent); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
main { display: block; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0; text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 60;
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 72px; padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 42px; height: 42px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.06rem; color: var(--ink); }
.brand-sub { font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--sand); }
.lang-switch a {
  display: block; padding: 5px 13px; border-radius: 999px; font-size: .84rem;
  font-weight: 600; text-decoration: none; color: var(--muted); letter-spacing: .03em;
}
.lang-switch a:hover { color: var(--brand); background: #fff; }
.lang-switch a[aria-current="true"] { background: var(--brand); color: #fff; }

.nav-toggle {
  display: none; align-items: center; gap: 8px;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  padding: 9px 14px; border-radius: 999px; font: inherit; font-size: .87rem; font-weight: 600;
}
.nav-toggle:hover { background: var(--brand-dark); }
.nav-toggle svg { width: 16px; height: 16px; }

.main-nav { border-top: 1px solid var(--line-soft); background: var(--surface); }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 2px; padding-block: 6px;
}
.main-nav a {
  display: block; padding: 9px 13px; border-radius: 7px;
  text-decoration: none; color: var(--body); font-size: .93rem; font-weight: 550;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--brand-soft); color: var(--brand-dark); }
.main-nav a[aria-current="page"] { background: var(--brand); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding-block: 8px; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; white-space: normal; }
  .brand-sub { display: none; }
}

/* ---------- breadcrumbs ---------- */
.breadcrumb { padding-top: 18px; }
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
  gap: 6px; font-size: .82rem; color: var(--muted);
}
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "›"; color: var(--line); font-size: 1rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- page hero ---------- */
.page-head { padding: 26px 0 6px; }
.page-head .eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--accent-dark); font-weight: 700; margin-bottom: 12px;
}
.page-head p.lede { max-width: 68ch; margin-bottom: 0; }
.page-head::after { content: ""; display: block; width: 68px; height: 3px; background: var(--accent); margin-top: 22px; }

/* ---------- content ---------- */
.content { padding-bottom: 8px; }
.content > * { max-width: 74ch; }
.content > .grid, .content > .gallery, .content > .card-grid,
.content > .facts, .content > .table-wrap, .content > .cta-band,
.content > .cols, .content > .figure-wide { max-width: none; }

/* ---------- grid helpers ---------- */
.grid { display: grid; gap: 22px; margin: 1.6em 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin: 1.6em 0; }
.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8e0; }
.card-media { background: var(--brand-soft); aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-media.is-thumb { padding: 14px; background: var(--sand); }
.card-media.is-thumb img { width: auto; height: auto; max-width: 100%; max-height: 100%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3, .card h4 { margin: 0; font-size: 1.1rem; }
.card p { margin: 0; font-size: .93rem; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 10px; font-size: .87rem; font-weight: 650; color: var(--accent-dark); }
.card .more::after { content: " →"; }

/* icon feature list */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.6em 0; }
.feature { background: var(--sand); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 18px 20px; }
.feature h3 { margin: 0 0 .35em; font-size: 1.06rem; }
.feature p { margin: 0; font-size: .93rem; }
.feature .num {
  font-family: var(--font-head); font-size: 1.9rem; line-height: 1; color: var(--accent);
  display: block; margin-bottom: 8px; font-weight: 700;
}

/* two column text */
.cols { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 1.6em 0; }

/* ---------- checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 1.2em 0; display: grid; gap: 8px; }
.checklist li { position: relative; padding-left: 30px; margin: 0; }
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: .52em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent);
}

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); margin: 1.7em 0; }
.gallery a, .gallery figure {
  display: flex; flex-direction: column; margin: 0; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8e0; }
.gallery .thumb {
  display: grid; place-items: center; aspect-ratio: 4 / 3;
  padding: 12px; background: var(--sand); border-bottom: 1px solid var(--line-soft);
}
.gallery img { width: auto; height: auto; max-width: 100%; max-height: 100%; display: block; }
.gallery .thumb.is-empty {
  font-size: .78rem; color: var(--muted); text-align: center; letter-spacing: .04em;
  text-transform: uppercase; border-bottom: 1px dashed var(--line);
}
.gallery figcaption, .gallery .cap {
  padding: 11px 13px; font-size: .82rem; line-height: 1.45; color: var(--muted);
}
.gallery a .cap { color: var(--body); font-weight: 550; }

/* ---------- single figure ---------- */
/* Photographs in this archive are low-resolution originals, so images are shown
   at their own pixel size inside a framed panel instead of being upscaled. */
.figure-wide { margin: 1.8em 0; }
.figure-wide .frame {
  display: inline-block; padding: 14px; background: var(--sand);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  max-width: 100%;
}
.figure-wide .frame img { display: block; width: auto; height: auto; max-width: 100%; }
.figure-wide figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); max-width: 62ch; }

.shot { margin: 1.8em 0; display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 800px) { .shot { grid-template-columns: minmax(0, auto) minmax(0, 1fr); align-items: start; } }
.shot .frame {
  padding: 14px; background: var(--sand); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md); justify-self: start;
}
.shot .frame img { display: block; width: auto; height: auto; max-width: 100%; }
.shot figcaption { margin-top: 10px; font-size: .87rem; color: var(--muted); }

/* ---------- facts table ---------- */
.facts { margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.facts dl { margin: 0; display: grid; grid-template-columns: minmax(150px, 34%) 1fr; }
.facts dt, .facts dd { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: .94rem; }
.facts dt { background: var(--sand); font-weight: 650; color: var(--ink); }
.facts dd { color: var(--body); }
.facts dl > :nth-last-child(-n+2) { border-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 1.6em 0; }
table.data { border-collapse: collapse; width: 100%; font-size: .93rem; background: var(--surface); }
table.data caption { text-align: left; font-weight: 650; color: var(--ink); padding-bottom: 8px; }
table.data th, table.data td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
table.data thead th { background: var(--brand); color: #fff; font-weight: 600; }
table.data tbody tr:nth-child(even) { background: var(--sand); }

/* ---------- callout / CTA ---------- */
.callout {
  margin: 1.8em 0; padding: 18px 22px; border-left: 4px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }

.cta-band {
  margin: 2.6em 0 0; padding: 30px 32px; border-radius: var(--radius-lg);
  background: var(--brand); color: #dfe8ef;
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.cta-band h2 { color: #fff; margin: 0 0 .35em; font-size: 1.4rem; }
.cta-band p { margin: 0; max-width: 56ch; color: #cfdce6; }
.cta-band .btn { flex: none; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4em 0; }

/* ---------- FAQ ---------- */
.faq-list { margin: 1.6em 0; display: grid; gap: 10px; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 15px 46px 15px 18px; position: relative;
  font-weight: 650; color: var(--ink); font-family: var(--font-head); font-size: 1.06rem;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; color: var(--accent); font-family: var(--font-body); line-height: 1;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details[open] summary { background: var(--sand); }
.faq-list .answer { padding: 4px 18px 18px; }
.faq-list .answer p:last-child { margin-bottom: 0; }

/* ---------- reference list ---------- */
.ref-list {
  list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.ref-list li {
  margin: 0; padding: 10px 14px; background: var(--sand);
  border: 1px solid var(--line-soft); border-radius: 8px; font-size: .94rem;
  break-inside: avoid;
}
.ref-list li strong { display: block; }
.ref-list li span { color: var(--muted); font-size: .88rem; }

.linkgrid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); margin: 1.6em 0; }
.linkgrid a {
  display: block; padding: 15px 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.linkgrid a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.linkgrid strong { display: block; color: var(--ink); margin-bottom: 3px; }
.linkgrid span { font-size: .87rem; color: var(--muted); }

.prevnext { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin: 2.2em 0 0; }
.prevnext a {
  flex: 1 1 240px; padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; background: var(--sand); font-size: .9rem;
}
.prevnext a:hover { border-color: var(--accent); background: var(--accent-soft); }
.prevnext .dir { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prevnext .next { text-align: right; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); margin: 1.6em 0; }
.contact-card { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.contact-card h3 { margin-top: 0; }
.contact-card address { font-style: normal; line-height: 1.75; }
.contact-card a { word-break: break-word; }
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--sand); margin: 1.6em 0; }
.map-frame img { display: block; width: 100%; height: auto; }

/* ---------- footer ---------- */
.site-footer { margin-top: 60px; background: var(--brand-dark); color: #c3d2dd; font-size: .93rem; }
.site-footer a { color: #dce7ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding: 44px 0 34px; }
.footer-main h2, .footer-main h3 {
  color: #fff; font-size: .8rem; letter-spacing: .13em; text-transform: uppercase;
  font-family: var(--font-body); font-weight: 700; margin: 0 0 14px;
}
.footer-main ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.footer-main p { margin: 0 0 10px; }
.footer-brand img { width: 46px; height: 46px; margin-bottom: 12px; }
.footer-brand strong { display: block; color: #fff; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding: 18px 0 26px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; justify-content: space-between;
  font-size: .85rem;
}
.footer-bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }

/* ---------- language portal (root) ---------- */
.portal-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 62%, #2a6383 100%);
  color: #dbe7ef; padding: 72px 0 64px; text-align: center;
}
.portal-hero h1 { color: #fff; margin-bottom: .3em; }
.portal-hero p { max-width: 62ch; margin: 0 auto 1.6em; font-size: 1.1rem; color: #cfdde8; }
.portal-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); margin: -40px 0 0; }
.portal-card {
  display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 24px; text-decoration: none; box-shadow: var(--shadow-lg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.portal-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(31,42,53,.18); }
.portal-card .flag { font-size: 1.6rem; line-height: 1; }
.portal-card strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--ink); margin: 10px 0 6px; }
.portal-card span { color: var(--muted); font-size: .94rem; }
.portal-card .go { display: block; margin-top: 14px; font-weight: 650; color: var(--accent-dark); font-size: .9rem; }

/* ---------- misc ---------- */
.section-intro { display: grid; gap: 26px; grid-template-columns: minmax(0,1fr); margin: 1.8em 0; }
@media (min-width: 820px) { .section-intro.has-media { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; } }
.section-intro img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-md); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: .4em 0 1.4em; padding: 0; list-style: none; }
.tag-row li {
  margin: 0; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 5px 13px; font-weight: 600;
}

.stat-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.8em 0; }
.stat { text-align: center; padding: 20px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand); }
.stat b { display: block; font-family: var(--font-head); font-size: 2.1rem; color: var(--brand); line-height: 1.05; }
.stat span { font-size: .87rem; color: var(--muted); }

.note { font-size: .88rem; color: var(--muted); }
.center { text-align: center; }
.top-link { margin: 2.4em 0 0; font-size: .88rem; }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle, .breadcrumb, .prevnext { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: none; }
  .content > * { max-width: none; }
}
