/* Arenda Sieraków — demo redesign */
:root {
  --paper: #f6f7f3;
  --white: #ffffff;
  --mist: #e4ebe4;
  --mist-2: #d6e0d7;
  --ink: #17302a;
  --ink-2: #2b433c;
  --muted: #55665d;
  --line: #cdd7cf;
  --accent: #2d7a3f;
  --accent-ink: #205c2e;
  --focus: #e0a526;
  --radius-s: 6px;
  --radius-m: 14px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --f-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 650; line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 4.4vw + .5rem, 4.1rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 2.4vw + .6rem, 2.6rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-s); }
.skip:focus { top: 12px; color: #fff; }
.lead { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.3em;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--mist); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 247, 243, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { background: var(--mist); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--mist); }
.header-call { flex: none; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
  .header-in { min-height: 64px; gap: 12px; }
  .brand img { height: 38px; }
  .header-call .lbl { display: none; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin-left: auto; border: 0; border-radius: 999px;
    background: var(--mist); color: var(--ink); cursor: pointer;
  }
  .menu-toggle span[aria-hidden] { position: relative; width: 20px; height: 2px; background: currentColor; }
  .menu-toggle span[aria-hidden]::before, .menu-toggle span[aria-hidden]::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
  .menu-toggle span[aria-hidden]::before { top: -6px; }
  .menu-toggle span[aria-hidden]::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden] { background: transparent; }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span[aria-hidden]::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; display: none;
  }
  .main-nav[data-open="true"] { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 14px 12px; border-radius: var(--radius-s); font-size: 1.125rem; }
  .header-call { order: 3; }
}
@media (max-width: 520px) {
  .header-call { display: none; }
}

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-text { padding-bottom: clamp(0px, 2vw, 24px); }
.hero-place { font-weight: 600; color: var(--accent-ink); margin-bottom: 1.1rem; }
.hero h1 { max-width: 12.5em; }
.hero .lead { margin-top: 1.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.75rem 0 2rem; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.hero-facts li { padding: 16px 16px 0 0; font-size: .9375rem; color: var(--muted); line-height: 1.45; }
.hero-facts strong { display: block; font-family: var(--f-head); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin-bottom: 2px; }
.hero-photo { margin: 0; position: relative; }
.hero-photo .frame { aspect-ratio: 4 / 5; border-radius: var(--radius-m); overflow: hidden; background: var(--mist-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero-photo figcaption { margin-top: 10px; font-size: .875rem; color: var(--muted); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo .frame { aspect-ratio: 4 / 3.4; }
  .hero-photo img { object-position: 50% 40%; }
}
@media (max-width: 520px) {
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .hero-facts li:last-child { grid-column: 1 / -1; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Sections */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #e9efe9; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: #fff; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; max-width: 16em; }
.section-head p { margin: 0; color: var(--muted); max-width: 34em; }
.section-ink .section-head p { color: #c4d1c7; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* Intro split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.split-photos figure { margin: 0; border-radius: var(--radius-m); overflow: hidden; background: var(--mist-2); }
.split-photos img { width: 100%; height: 100%; object-fit: cover; }
.split-photos .tall { grid-row: span 2; aspect-ratio: 3 / 4; }
.split-photos .short { aspect-ratio: 4 / 3; }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0; }
.checklist li { padding: 12px 0 12px 30px; border-top: 1px solid var(--line); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 20px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Price board */
.season-note { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 18px; font-size: .9375rem; color: var(--muted); }
.season-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.season-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.board { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius-m); overflow: hidden; }
.board caption { text-align: left; }
.board th, .board td { text-align: left; vertical-align: middle; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.board thead th { font-size: .875rem; font-weight: 600; color: var(--muted); background: var(--white); line-height: 1.3; }
.board thead th small { display: block; font-weight: 400; }
.board tbody tr:last-child > * { border-bottom: 0; }
.board .b-unit { display: flex; align-items: center; gap: 16px; min-width: 0; }
.board .thumb { flex: none; width: 92px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--mist-2); }
.board .thumb img { width: 100%; height: 100%; object-fit: cover; }
.board .b-unit a { font-family: var(--f-head); font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.board .b-unit a:hover { color: var(--accent); text-decoration: underline; }
.board .b-unit span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.board .price { font-family: var(--f-head); font-weight: 600; font-size: 1.2rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.board .price small { font-family: var(--f-body); font-weight: 400; font-size: .8125rem; color: var(--muted); }
.board .is-now { background: #f0f6f0; }
.board thead .is-now { color: var(--accent-ink); }
.board-foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 32px; margin-top: 18px; font-size: .9375rem; color: var(--ink-2); }
.board-foot p { margin: 0; padding-left: 14px; border-left: 2px solid var(--mist-2); }
@media (max-width: 760px) {
  .board, .board tbody, .board tr, .board td { display: block; width: 100%; }
  .board thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 14px 14px 12px; }
  .board tbody tr:last-child { border-bottom: 0; }
  .board td { border: 0; padding: 0; }
  .board td.cell-unit { grid-column: 1 / -1; margin-bottom: 12px; }
  .board td.cell-beds { display: none; }
  .board td.cell-price { padding: 8px 10px; border-radius: 8px; }
  .board td.cell-price::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--muted); line-height: 1.25; margin-bottom: 2px; }
  .board .thumb { width: 76px; }
}

/* Unit details (domki.html) */
.unit-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.unit-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.unit-nav a:hover { border-color: var(--ink); color: var(--ink); }
.unit { padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line); }
.unit:first-of-type { border-top: 0; }
.unit-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery button { display: block; padding: 0; border: 0; background: var(--mist-2); border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery button:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery button:hover img { transform: scale(1.03); }
.unit-info h2 { font-size: clamp(1.6rem, 2vw + .6rem, 2.2rem); margin-bottom: .3em; }
.unit-tagline { color: var(--muted); margin-bottom: 1.2rem; }
.unit-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 1.25rem; }
.unit-prices div { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.unit-prices div.is-now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.unit-prices dt { font-size: .8125rem; color: var(--muted); line-height: 1.3; }
.unit-prices dd { margin: 4px 0 0; font-family: var(--f-head); font-weight: 600; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.unit-prices dd small { font-family: var(--f-body); font-weight: 400; font-size: .8125rem; color: var(--muted); }
.unit-prices .wide { grid-column: 1 / -1; }
.specs { list-style: none; padding: 0; margin: 0 0 1.4rem; columns: 2; column-gap: 24px; font-size: .9688rem; }
.specs li { break-inside: avoid; padding: 6px 0 6px 18px; position: relative; line-height: 1.4; }
.specs li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 960px) { .unit-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .specs { columns: 1; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button, .gallery button:first-child { flex: 0 0 84%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
}

/* Common fees */
.fees { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; margin: 0; }
.fees div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fees dt { color: var(--ink-2); }
.fees dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }

/* Attractions */
.amen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.amen h3 { padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }
.amen ul { list-style: none; padding: 0; margin: 0; }
.amen li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.amen li span { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.section-ink .amen h3 { border-color: #fff; }
.section-ink .amen li { border-color: rgba(255,255,255,.16); }
.section-ink .amen li span { color: #a9bbae; }
@media (max-width: 860px) { .amen { grid-template-columns: 1fr; } }

.photo-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; margin-top: clamp(32px, 4vw, 56px); }
.photo-row figure { margin: 0; }
.photo-row .frame { border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 4 / 3; background: var(--mist-2); }
.photo-row img { width: 100%; height: 100%; object-fit: cover; }
.photo-row figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }
.section-ink .photo-row figcaption { color: #a9bbae; }
@media (max-width: 760px) {
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row figure:first-child { grid-column: 1 / -1; }
}

/* Reviews */
.reviews { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.score { font-family: var(--f-head); font-weight: 600; font-size: clamp(4rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -0.04em; color: var(--ink); }
.score-meta { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.quotes blockquote { margin: 0; padding: 20px 0; border-top: 1px solid var(--line); }
.quotes blockquote:first-child { grid-column: 1 / -1; }
.quotes blockquote:first-child p { font-family: var(--f-head); font-size: clamp(1.3rem, 1.4vw + .8rem, 1.75rem); line-height: 1.3; letter-spacing: -0.01em; font-weight: 500; max-width: 30em; }
.quotes p { margin: 0 0 10px; }
.quotes footer { font-size: .9rem; color: var(--muted); }
@media (max-width: 760px) { .reviews, .quotes { grid-template-columns: 1fr; } }

/* Booking steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid rgba(255,255,255,.3); }
.steps li::before { content: counter(step); display: block; font-family: var(--f-head); font-weight: 600; font-size: 2.2rem; line-height: 1; margin-bottom: 12px; color: #9fd0a9; }
.steps strong { display: block; color: #fff; font-size: 1.0625rem; margin-bottom: 4px; }
.steps span { color: #c4d1c7; font-size: .9688rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

/* Contact block */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list div { padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list dt { font-size: .875rem; color: var(--muted); margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: 1.125rem; }
.contact-list dd a.big { font-family: var(--f-head); font-weight: 600; font-size: clamp(1.5rem, 2vw + .6rem, 2rem); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.contact-list dd a.big:hover { color: var(--accent); }
.contact-list .acct { font-variant-numeric: tabular-nums; word-break: break-word; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 36px); }
.form h2, .form h3 { margin-bottom: .25em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  border: 1px solid #b7c4ba; border-radius: 8px; background: var(--paper);
  font: inherit; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }
.form-status { margin: 0; font-weight: 600; color: var(--accent-ink); min-height: 1.5em; }
@media (max-width: 520px) { .form-grid { grid-template-columns: 1fr; } .form-actions .btn { width: 100%; } }

/* Page head (subpages) */
.page-head { padding: clamp(32px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.page-head h1 { font-size: clamp(2.1rem, 3.6vw + .5rem, 3.4rem); max-width: 16em; }
.page-head .lead { margin-top: 1rem; }

/* Regulamin */
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.legal-toc { position: sticky; top: 96px; font-size: .9375rem; }
.legal-toc ol { padding-left: 1.4em; margin: 0; }
.legal-toc li { margin: 6px 0; }
.legal-body { max-width: 44em; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body ol { padding-left: 1.4em; }
.legal-body li { margin-bottom: .6em; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } .legal-toc { position: static; } }

/* CTA band */
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band h2 { margin: 0; max-width: 18em; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-footer { background: #10231e; color: #c4d1c7; padding: 56px 0 28px; font-size: .9688rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { font-size: 1rem; font-family: var(--f-body); font-weight: 600; color: #fff; margin-bottom: 10px; letter-spacing: 0; }
.footer-grid p { margin: 0 0 6px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0 0 6px; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; color: #9fb0a4; }
.credit { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.credit img { display: inline-block; vertical-align: middle; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile action bar */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 247, 243, .97); border-top: 1px solid var(--line);
  }
  .action-bar .btn { min-height: 50px; padding-inline: .8em; font-size: .9688rem; }
  body { padding-bottom: 76px; }
}

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(10, 22, 18, .92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 64px 16px 24px; max-width: 1400px; width: 100%; display: grid; justify-items: center; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border-radius: 8px; }
.lightbox figcaption { color: #d6e0d7; margin-top: 12px; font-size: .9375rem; text-align: center; }
.lb-btn { position: fixed; z-index: 2; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Missing images keep their frame */
img.is-missing { visibility: hidden; }

/* One reveal: hero only */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-text > * { opacity: 0; transform: translateY(12px); animation: rise .6s ease forwards; }
  .js .hero-text > *:nth-child(2) { animation-delay: .06s; }
  .js .hero-text > *:nth-child(3) { animation-delay: .12s; }
  .js .hero-text > *:nth-child(4) { animation-delay: .18s; }
  .js .hero-text > *:nth-child(5) { animation-delay: .24s; }
  .js .hero .hero-photo { opacity: 0; animation: fade .9s ease .1s forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* Fixes after first review */
.score { margin: 0; }
.section-ink .btn-light, .section-ink .btn-light:hover { color: var(--ink); }
@media (max-width: 760px) {
  .board tr.apt td[data-period="off"] { display: none; }
  .board tr.apt td[data-period="season"] { grid-column: 1 / -1; }
}
.gallery button { position: relative; }
.gallery button.more { display: none; }
.gallery button[data-more]::after {
  content: attr(data-more) " zdjęć"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(23, 48, 42, .55); color: #fff; font: 600 1.05rem/1 var(--f-body);
}
@media (max-width: 520px) {
  .gallery button.more { display: block; }
  .gallery button[data-more]::after { content: none; }
}
