/* MT FORM — apartment page
   Variant 1a (desktop) + 2a (mobile), one responsive document.
   Breakpoint: 1024px. Mobile-first is NOT used here — the desktop layout is
   the base and the mobile layout is the override, matching the mock order. */

:root {
  --ink: #241F1B;
  --ink-soft: #4A423A;
  --ink-muted: #6B6259;
  --line-dark: #4A423A;
  --paper: #FDFCFA;
  --paper-warm: #F7F3EC;
  --paper-warm-2: #F2ECE3;
  --line: #EDE6DB;
  --line-strong: #E4DBCE;
  --line-mid: #DCD2C4;
  /* --stone / --stone-dark: warm muted text on light surfaces (WCAG AA ≥4.5:1). */
  --stone: #6B6259;
  --stone-dark: #574F48;
  --stone-light: #CFC6B9;
  --sand: #A79A88;
  --sand-pale: #CFC6B9;

  --serif: 'Cormorant Garamond', 'Cormorant Garamond Fallback', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Jost Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad-x: 56px;
  --pad-y: 96px;
  --gap: 16px;

  /* Checkbox/radio on light surfaces: dark fill, light mark, dark focus ring.
     Dark surfaces (--ink bg) override these; see .section--dark / .contact / … */
  --control-checked-bg: var(--ink);
  --control-focus-ring: var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
figure { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: #8A7A66; }
button { font-family: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: 66px; line-height: 1.04; }
h2 { font-size: 42px; line-height: 1.16; }
h3 { font-size: 26px; line-height: 1.2; }
p { margin: 0 0 20px; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--stone);
  margin: 0 0 22px;
}
.label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
}
.section { padding: var(--pad-y) var(--pad-x); }
.section--warm { background: var(--paper-warm); }
.section--dark {
  background: var(--ink); color: var(--paper);
  --control-checked-bg: var(--paper);
  --control-focus-ring: var(--paper);
}
.section--dark .eyebrow, .section--dark .label { color: var(--sand); }
.section--dark p { color: var(--sand-pale); }
/* Light panel inside dark section keeps ink/stone text (not sand tokens). */
.section--dark .panel {
  color: var(--ink);
  --control-checked-bg: var(--ink);
  --control-focus-ring: var(--ink);
}
.section--dark .panel .eyebrow,
.section--dark .panel .label {
  color: var(--stone);
}
.section--dark .panel p {
  color: inherit;
}
.section--dark .panel .stay__note {
  color: var(--stone);
}
.section--dark .panel .stay__sum {
  color: var(--ink);
}
/* Nested dark reservation strip inside the light panel. */
.section--dark .panel .reservation {
  color: var(--paper);
  --control-checked-bg: var(--paper);
  --control-focus-ring: var(--paper);
}
.section--dark .panel .reservation .eyebrow,
.section--dark .panel .reservation .label {
  color: var(--sand);
}
.section--dark .panel .reservation p {
  color: var(--sand-pale);
}
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 44px; }
.section__intro { font-size: 14px; line-height: 1.8; color: var(--ink-muted); max-width: 340px; }

/* buttons */
.btn {
  display: inline-block;
  padding: 17px 22px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: background .2s;
}
.btn:hover { background: #3D352D; color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: #EFE8DE; color: var(--ink); }
.btn--block { display: block; width: 100%; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--pad-x);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; white-space: nowrap; margin: 0; }
.brand__link { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 3px; }
.brand__link:hover { color: inherit; }
.brand__name { font-family: var(--serif); font-size: 26px; }
.brand__name span { font-family: var(--sans); font-weight: 300; letter-spacing: 0.34em; font-size: 18px; }
.brand__place { font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone); }

.nav { display: flex; flex-wrap: wrap; gap: 30px; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }
/* SSR renders nav[hidden] (mobile CLS); keep desktop nav visible pre-JS / no-JS */
@media (min-width: 1025px) {
  .nav[hidden] { display: flex !important; }
}
.masthead__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.masthead .btn { padding: 12px 22px; font-size: 11px; letter-spacing: 0.2em; }

.lang { display: flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.14em; }
.lang__sep { color: var(--stone); }
.lang button,
.lang a {
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 11px; letter-spacing: 0.14em; color: var(--stone);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.lang button[aria-pressed="true"],
.lang a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 660px; background: var(--ink); overflow: hidden; }
.hero picture { display: block; width: 100%; height: 100%; }
.hero img { opacity: 0.92; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,27,.32) 0%, rgba(36,31,27,.05) 45%, rgba(36,31,27,.55) 100%);
}
.hero__body {
  position: absolute; z-index: 1; inset: auto 56px 52px 56px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  color: var(--paper);
}
.hero__text { max-width: 640px; }
.hero__kicker { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 20px; opacity: .85; }

/* price with a struck-through original (booking bar) */
.price { display: flex; align-items: baseline; gap: 10px; }
.price__was { font-size: 16px; text-decoration: line-through; opacity: .7; }
.price__now { font-family: var(--serif); font-size: 46px; line-height: 1; }

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.facts > div { padding: 26px 28px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: none; }
.facts dt { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1; }

/* ---------- two-column blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.split--sidebar { grid-template-columns: 320px 1fr; }
.split--form { grid-template-columns: 1fr 380px; }

.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.spec li { list-style: none; }
ul.plain { margin: 0; padding: 0; list-style: none; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.pair figure { width: 100%; overflow: hidden; }
.pair picture { display: block; width: 100%; height: 280px; }
.pair img { width: 100%; height: 280px; object-fit: cover; }

.figure--natural picture { display: block; width: 100%; height: auto; }
.figure--natural img,
img.img--natural {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}

/* ---------- gallery mosaic ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: var(--gap); }
.mosaic picture { display: block; width: 100%; height: 100%; }
.mosaic figure { cursor: zoom-in; }
.mosaic figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.mosaic figure:nth-child(2) { grid-row: span 2; }
.mosaic figure:nth-child(6),
.mosaic figure:nth-child(8) { grid-column: span 2; }

/* ---------- amenities ---------- */
.amenity-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.amenity-groups h3 { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.amenity-groups ul { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--ink-soft); }

/* ---------- booking panel ---------- */
.panel { background: var(--paper); color: var(--ink); padding: 34px; }

#dostepnosc .split { align-items: center; }

/* ---------- single rate (availability intro) ---------- */
.rate-single {
  margin-top: 34px;
  padding: 24px 26px;
  border: 1px solid var(--line-dark);
}
.rate-single__name { font-size: 17px; margin: 0 0 10px; }
.rate-single__note { font-size: 13px; color: var(--sand); line-height: 1.7; margin: 0 0 16px; }
.rate-single__terms { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--sand-pale); line-height: 1.6; }
.rate-single__discount { font-size: 13px; color: var(--sand-pale); line-height: 1.6; margin: 14px 0 0; }

/* ---------- reservation summary (under calendar) ---------- */
.reservation {
  background: var(--ink);
  color: var(--paper);
  margin: 26px -34px -34px;
  padding: 28px 34px 34px;
  border-top: 1px solid var(--line-dark);
  --control-checked-bg: var(--paper);
  --control-focus-ring: var(--paper);
}
.reservation__title {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 20px;
}
.reservation__meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 18px;
}
.reservation__meta div {
  border: 1px solid var(--line-dark);
  padding: 10px 12px;
}
.reservation__meta dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 4px;
}
.reservation__meta dd { margin: 0; font-size: 14px; }
.reservation__guests {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.reservation__guests label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sand);
}
.reservation__guests select {
  width: 100%;
  max-width: 160px;
  background: transparent;
  border: 1px solid var(--line-dark);
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  color-scheme: dark;
}
.reservation__guests select:focus { outline: 1px solid var(--sand); outline-offset: -1px; }
.reservation__rate { margin-bottom: 18px; }
.reservation__rate .label { display: block; margin-bottom: 6px; color: var(--sand); }
.reservation__rate-name { font-size: 15px; margin: 0 0 6px; }
.reservation__rate-note { font-size: 12px; color: var(--sand-pale); line-height: 1.6; margin: 0; }
.reservation__long-stay,
.reservation__discount-excluded { font-size: 13px; color: var(--sand); line-height: 1.6; margin: 0 0 14px; }
.reservation__breakdown { margin-bottom: 10px; }
.reservation__subtotal,
.reservation__discount { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin: 0 0 6px; color: var(--sand); }
.reservation__discount { color: var(--sand-pale); }
.reservation__total { text-align: right; margin: 0 0 18px; }
.reservation__total .label { display: block; margin-bottom: 4px; color: var(--sand); }
.reservation__sum { font-family: var(--serif); font-size: 34px; line-height: 1; }
.reservation__cta[aria-disabled="true"] { opacity: .45; pointer-events: none; cursor: default; }
.reservation__question { font-size: 13px; color: var(--sand); margin: 14px 0 0; line-height: 1.6; }
.reservation__question a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(253, 252, 250, 0.5); text-underline-offset: 3px; }

.cal-guests {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 22px;
}
.cal-guests label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
}
.cal-guests select {
  width: 100%; max-width: 160px;
  background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
  padding: 12px 14px; font-family: var(--sans); font-size: 14px; font-weight: 300;
  color-scheme: light;
}
.cal-guests select:focus { outline: 1px solid var(--ink); outline-offset: -1px; }

.cal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cal__guests {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.cal__guests label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.cal__guests select {
  width: 100%;
  max-width: 160px;
  background: var(--paper);
  border: 1px solid var(--line-mid);
  color: var(--ink);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
}
.cal__guests select:focus { outline: 1px solid var(--ink); outline-offset: -1px; }
.cal__month { font-family: var(--serif); font-size: 26px; }
.cal__nav { display: flex; gap: 8px; }
.cal__nav button {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-mid); background: transparent; color: var(--ink);
  font-size: 15px; cursor: pointer; transition: background .2s;
}
.cal__nav button:hover { background: #EFE8DE; }
.cal__nav button:disabled { opacity: .35; cursor: default; }

table.cal { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
table.cal th {
  font-size: 11px; font-weight: 400; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone); padding-bottom: 6px;
}
table.cal td { padding: 0; }
.day {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; height: 52px; padding: 2px 0;
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 14px; letter-spacing: 0.02em; cursor: pointer;
  transition: background .18s, color .18s;
  line-height: 1.1;
}
.day__num { display: block; }
.day__price {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0;
  color: var(--stone-dark);
  font-weight: 300;
}
.day:hover:not([disabled]) { background: #EFE8DE; }
.day[data-state="past"] { border-color: transparent; background: none; color: var(--stone); cursor: default; }
.day[data-state="booked"] {
  background: repeating-linear-gradient(135deg, #EDE5D9 0 5px, #E3DACD 5px 10px);
  border-color: #E3DACD; color: var(--stone-dark); text-decoration: line-through; cursor: not-allowed;
}
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.day[aria-pressed="true"] .day__price { color: var(--sand-pale); }
.day[data-state="between"] { background: #EFE8DE; border-color: #EFE8DE; }
.cal__empty { height: 52px; }

.legend { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--stone); margin: 22px 0; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; display: block; }
.swatch--free { border: 1px solid var(--line-mid); background: var(--paper); }
.swatch--booked { background: repeating-linear-gradient(135deg, #EDE5D9 0 5px, #E3DACD 5px 10px); }
.swatch--picked { background: var(--ink); }

.stay { border-top: 1px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.stay__dates { display: flex; gap: 14px; }
.stay__date { flex: 1; border: 1px solid var(--line-strong); background: var(--paper); padding: 12px 14px; }
.stay__date dt { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 6px; }
.stay__date dd { margin: 0; font-size: 15px; }
.stay__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.stay__note { font-size: 13px; color: var(--stone); line-height: 1.6; max-width: 220px; }
.stay__long-stay,
.stay__discount-excluded { font-size: 13px; color: var(--stone); line-height: 1.6; margin: 0; flex: 1 1 100%; }
.stay__breakdown { flex: 1 1 100%; margin: 0; }
.stay__subtotal,
.stay__discount { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; margin: 0 0 4px; color: var(--stone); }
.stay__discount { color: var(--ink-soft); }
.stay__total { text-align: right; margin-left: auto; }
.stay__total .label { display: block; margin-bottom: 4px; }
.stay__sum { font-family: var(--serif); font-size: 34px; line-height: 1; }
.stay__reset {
  align-self: flex-start; background: none; border: none; padding: 0; cursor: pointer;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--stone); border-bottom: 1px solid var(--line-mid);
}

/* ---------- distances ---------- */
.distances { display: flex; flex-direction: column; gap: 34px; }
.distances h3 { font-family: var(--sans); font-size: 11px; font-weight: 400; letter-spacing: 0.2em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--ink); margin-bottom: 6px; }
.distances dl { margin: 0; }
.distances div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.distances dt { flex: 1; }
.distances dd { margin: 0; color: var(--stone-dark); flex-shrink: 0; }
.nearby { background: var(--paper-warm); padding: 26px 28px; }
.nearby p { font-size: 15px; color: var(--ink-soft); line-height: 1.9; margin: 14px 0 0; }
.section--dark .distances h3 { border-bottom-color: var(--line-dark); }
.section--dark .distances div { border-bottom-color: var(--line-dark); }
.section--dark .distances dd { color: var(--sand); }

/* ---------- review ---------- */
.review { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: center; }
.review__score { font-family: var(--serif); font-size: 64px; line-height: 1; }
.review__word { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone-dark); margin-top: 6px; }
.review__count { font-size: 13px; color: var(--stone); margin-top: 4px; }
.review blockquote { margin: 0 0 22px; font-family: var(--serif); font-size: 30px; line-height: 1.5; text-wrap: pretty; }
.review figcaption { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-dark); }

/* ---------- house rules ---------- */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); margin: 0; }
.rules > div { background: var(--paper); padding: 28px 30px; }
.rules dt { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.rules dd { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- contact / footer ---------- */
.contact {
  padding: 88px var(--pad-x) 44px; background: var(--ink); color: var(--paper);
  --control-checked-bg: var(--paper);
  --control-focus-ring: var(--paper);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding-bottom: 64px; border-bottom: 1px solid var(--line-dark); }
.contact address { font-style: normal; margin-top: 36px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--sand-pale); }
.contact__details {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  padding: 64px 0; border-bottom: 1px solid var(--line-dark);
}
.contact__details .eyebrow { color: var(--sand); }
.contact__details h2 { margin-bottom: 20px; }
.contact__details p { color: var(--sand-pale); }
.contact__details-address {
  font-style: normal; margin-top: 28px; display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; color: var(--sand-pale);
}
.contact__details-invoice {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: 12px; margin-bottom: 12px;
}
.contact__details-address a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(253, 252, 250, 0.5); text-underline-offset: 3px; }
.contact__details-address a:hover { color: var(--sand-pale); }
.contact__map {
  position: relative; width: 100%; aspect-ratio: 21 / 9;
  background: #1a1714; overflow: hidden;
}
.contact__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.35) sepia(0.25) hue-rotate(10deg) brightness(0.92) contrast(0.95);
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form__row { display: flex; gap: 14px; }
.form__row > * { flex: 1; min-width: 0; }
.form input:not([type="checkbox"]):not([type="radio"]), .form textarea {
  background: transparent; border: 1px solid var(--line-dark); color: var(--paper);
  padding: 15px 16px; font-family: var(--sans); font-size: 14px; font-weight: 300;
}
.form textarea { resize: vertical; }
.form input:not([type="checkbox"]):not([type="radio"])::placeholder, .form textarea::placeholder { color: #8A8073; }
.form input:not([type="checkbox"]):not([type="radio"]):focus, .form textarea:focus { outline: 1px solid var(--sand); outline-offset: -1px; }
.form input[type="date"] { color-scheme: dark; }
.form input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; }
.form button:disabled { opacity: .45; cursor: default; }

/* ---------- checkbox / radio (shared: site + admin) ----------
   Border uses --stone (not --line-mid): line-mid on --paper is ~1.5:1,
   below the 3:1 non-text UI contrast requirement. */
input[type="checkbox"],
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  vertical-align: middle;
  border: 1px solid var(--stone);
  background-color: var(--paper);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  color: var(--ink);
  cursor: pointer;
  border-radius: 2px;
}
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:hover:not(:disabled),
input[type="radio"]:hover:not(:disabled) { border-color: var(--ink-soft); }
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
  outline: 2px solid var(--control-focus-ring);
  outline-offset: 2px;
}
input[type="checkbox"]:checked {
  background-color: var(--control-checked-bg);
  border-color: var(--control-checked-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.5 10.5L8 14L15.5 6' stroke='%23FDFCFA' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
input[type="radio"]:checked {
  background-color: var(--control-checked-bg);
  border-color: var(--control-checked-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23FDFCFA'/%3E%3C/svg%3E");
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Dark-surface mark (ink glyph on paper fill). Fill/focus use --control-* set on
   .section--dark / .contact / .consent-banner / .reservation. */
.section--dark input[type="checkbox"]:checked,
.contact input[type="checkbox"]:checked,
.consent-banner input[type="checkbox"]:checked,
.reservation input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.5 10.5L8 14L15.5 6' stroke='%23241F1B' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
.section--dark input[type="radio"]:checked,
.contact input[type="radio"]:checked,
.consent-banner input[type="radio"]:checked,
.reservation input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23241F1B'/%3E%3C/svg%3E");
}
/* Light panel inside dark: restore light mark (tokens already reset on .panel) */
.section--dark .panel input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.5 10.5L8 14L15.5 6' stroke='%23FDFCFA' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
.section--dark .panel input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23FDFCFA'/%3E%3C/svg%3E");
}
/* Reservation strip inside panel is dark again */
.section--dark .panel .reservation input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M4.5 10.5L8 14L15.5 6' stroke='%23241F1B' stroke-width='2' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
.section--dark .panel .reservation input[type="radio"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='4' fill='%23241F1B'/%3E%3C/svg%3E");
}

.alert { font-size: 14px; line-height: 1.6; margin: 0; }
.alert--success { color: var(--sand-pale); }
.alert--error { color: #E8C4B8; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.colophon { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 12px; color: var(--sand); letter-spacing: 0.06em; flex-wrap: wrap; }
.colophon__legal { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.colophon__legal a { color: var(--sand-pale); text-decoration: underline; text-decoration-color: rgba(207, 198, 185, 0.5); text-underline-offset: 3px; }
.colophon__legal a:hover { color: var(--paper); }
.colophon__consent {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; letter-spacing: inherit; color: var(--sand-pale);
  text-decoration: underline; text-decoration-color: rgba(207, 198, 185, 0.5); text-underline-offset: 3px; cursor: pointer;
}
.colophon__consent:hover { color: var(--paper); }
.colophon__credit {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.55;
  text-decoration: none;
  background: none;
  border: 0;
  transition: opacity 150ms ease;
}
.colophon__credit:hover,
.colophon__credit:focus-visible { opacity: 1; }
.colophon__credit:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}
.colophon__credit svg {
  display: block;
  height: 16px;
  width: auto;
}

/* ---------- legal pages ---------- */
.page-legal .legal { padding-top: 72px; padding-bottom: 88px; }
.legal__article { max-width: 720px; }
.legal__article h1 { font-size: 42px; margin: 0 0 28px; }
.legal__lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 36px; }
.legal__article h2 {
  font-family: var(--serif); font-size: 26px; font-weight: 300;
  margin: 36px 0 14px; letter-spacing: 0.005em;
}
.legal__article p { color: var(--ink-soft); line-height: 1.75; }
.legal__article ul { margin: 0 0 20px; padding-left: 1.2em; color: var(--ink-soft); line-height: 1.75; }
.legal__article li { margin-bottom: 6px; }
.legal__article a { text-decoration: underline; text-decoration-color: rgba(74, 66, 58, 0.5); text-underline-offset: 3px; }

/* ---------- consent banner ---------- */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--ink); color: var(--paper);
  border-top: 1px solid var(--line-dark);
  max-height: min(70vh, 520px); overflow-y: auto;
  box-shadow: 0 -8px 32px rgba(36, 31, 27, 0.18);
  --control-checked-bg: var(--paper);
  --control-focus-ring: var(--paper);
}
.consent-banner__inner {
  padding: 28px var(--pad-x) 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px 48px;
  align-items: end;
}
.consent-banner__title {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  margin: 0 0 12px; letter-spacing: 0.005em;
}
.consent-banner__body {
  margin: 0; font-size: 14px; line-height: 1.7; color: var(--sand-pale);
}
.consent-banner__privacy { margin: 12px 0 0; font-size: 13px; }
.consent-banner__privacy a { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(253, 252, 250, 0.5); text-underline-offset: 3px; }
.consent-banner__actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
.consent-banner__btn {
  width: 100%; text-align: center; padding: 14px 12px;
  font-size: 11px; letter-spacing: 0.14em;
  background: var(--paper) !important;
  color: var(--ink) !important;
}
.consent-banner__btn:hover {
  background: #EFE8DE !important;
  color: var(--ink) !important;
}
.consent-banner__panel {
  grid-column: 1 / -1;
  display: flex; flex-direction: column; gap: 14px;
  padding-top: 8px; border-top: 1px solid var(--line-dark);
}
.consent-banner__panel[hidden] { display: none !important; }
.consent-banner__opt {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; line-height: 1.55; color: var(--sand-pale); cursor: pointer;
}
.consent-banner__opt input { margin-top: 2px; flex-shrink: 0; }
.consent-banner__opt strong { display: block; color: var(--paper); font-weight: 400; margin-bottom: 2px; }
.consent-banner__hint { display: block; font-size: 13px; color: var(--stone-light); }
.consent-banner__panel-actions { display: flex; justify-content: flex-end; }
.consent-banner__panel-actions .consent-banner__btn { width: auto; min-width: 180px; }

.booking-bar { display: none; }

/* ---------- booking page ---------- */
.page-booking .section { padding-top: 72px; padding-bottom: 88px; }
.booking-layout { display: grid; grid-template-columns: 1fr 420px; gap: 64px; align-items: start; }
.booking-summary {
  background: var(--paper-warm);
  padding: 32px;
  position: sticky;
  top: 24px;
}
.booking-summary h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 24px; }
.booking-summary dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.booking-summary div { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.booking-summary dt { color: var(--stone); }
.booking-summary dd { margin: 0; text-align: right; }
.booking-summary__total { margin-top: 20px; text-align: right; }
.booking-summary__total .label { display: block; margin-bottom: 6px; color: var(--stone); }
.booking-summary__sum { font-family: var(--serif); font-size: 36px; line-height: 1; }
.booking-summary__rate { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.booking-summary__rate-name { font-size: 15px; margin: 0 0 6px; }
.booking-summary__rate-note { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 0; }
.booking-summary__long-stay,
.booking-summary__discount-excluded { font-size: 13px; color: var(--ink-soft); line-height: 1.6; margin: 16px 0 0; }
.booking-summary__breakdown { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.booking-summary__subtotal,
.booking-summary__discount { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.booking-summary__subtotal .label,
.booking-summary__discount .label { color: var(--stone); }
.booking-summary__discount { color: var(--ink-soft); }

.booking-form { display: flex; flex-direction: column; gap: 14px; }
.booking-form input:not([type="checkbox"]):not([type="radio"]),
.booking-form textarea {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  padding: 15px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 300;
  width: 100%;
}
.booking-form textarea { resize: vertical; min-height: 96px; }
.booking-form input:not([type="checkbox"]):not([type="radio"]):focus,
.booking-form textarea:focus { outline: 1px solid var(--ink); outline-offset: -1px; }
.booking-form fieldset { border: 0; margin: 0; padding: 0; }
.booking-form legend {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
}
.booking-form__invoice { display: none; flex-direction: column; gap: 14px; margin-top: 4px; }
.booking-form__invoice.is-open { display: flex; }
.booking-form__company { display: none; flex-direction: column; gap: 14px; }
.booking-form__company.is-open { display: flex; }
.booking-form__choices { display: flex; flex-direction: column; gap: 10px; }
.booking-form__choice {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.6; color: var(--ink-soft);
  min-height: 24px; cursor: pointer;
}
.booking-form__choice input { flex-shrink: 0; margin-top: 2px; }
.booking-form__choice a { color: var(--ink); }
.booking-form__hold { font-size: 13px; color: var(--stone-dark); line-height: 1.6; margin: 4px 0 0; }
.booking-form .alert { color: var(--ink-soft); }
.booking-form .alert--error { color: #8B3A32; }
.booking-status { max-width: 640px; }
.booking-status h1 { font-family: var(--serif); font-size: 40px; margin: 0 0 16px; }
.booking-status p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 24px; }
.booking-status dl { margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; }
.booking-status div { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.booking-status dt { color: var(--stone); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.booking-status dd { margin: 0; text-align: right; }
.booking-status__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.booking-transfer {
  margin: 0 0 24px;
  padding: 20px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
}
.booking-transfer dl { margin: 0; }
.booking-transfer dd {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 15px;
  color: var(--ink);
  word-break: break-all;
}

.page-change .change-current,
.page-change .change-rules,
.page-change .change-picker { margin-bottom: 40px; }
.page-change .change-current h2,
.page-change .change-rules h2,
.page-change .change-picker h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 0 0 16px;
}
.page-change .change-current dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.page-change .change-current div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.page-change .change-current dt { color: var(--stone); }
.page-change .change-current dd { margin: 0; text-align: right; }
.page-change .change-rules ul { margin: 0; line-height: 1.7; color: var(--ink-soft); }
.page-change .change-form { margin-top: 8px; }
.page-change .change-summary { position: sticky; top: 96px; }

/* ---------- gallery lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(36, 31, 27, 0.92);
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(96vw, 1200px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(253, 252, 250, 0.35);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, border-color .2s;
}
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(253, 252, 250, 0.1);
  border-color: var(--paper);
}
.lightbox__close { top: 20px; right: 20px; font-size: 22px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }

body.lightbox-open { overflow: hidden; }

/* =========================================================
   MOBILE — variant 2a
   ========================================================= */
/* narrow desktops: keep the nav on one line */
@media (min-width: 1025px) and (max-width: 1240px) {
  :root { --pad-x: 36px; }
  .nav { gap: 20px; font-size: 11px; }
  .masthead .btn { padding: 12px 16px; letter-spacing: 0.16em; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .split, .split--form { gap: 48px; }
}

@media (max-width: 1024px) {
  :root { --pad-x: 20px; --pad-y: 44px; --gap: 12px; }

  h1 { font-size: 34px; line-height: 1.12; }
  h2 { font-size: 29px; line-height: 1.2; }
  p { font-size: 15px; line-height: 1.8; }
  .eyebrow { font-size: 9px; letter-spacing: 0.26em; margin-bottom: 16px; }

  /* masthead collapses to brand + language + burger; nav is a disclosure */
  .masthead { padding: 16px var(--pad-x); flex-wrap: wrap; }
  .brand__name { font-size: 23px; }
  .brand__name span { font-size: 16px; }
  .masthead .btn { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 34px; height: 34px; padding: 0;
    background: none; border: none; cursor: pointer;
  }
  .nav-toggle span { display: block; height: 1px; background: var(--ink); }
  .nav {
    order: 3; flex-basis: 100%;
    flex-direction: column; gap: 0;
    font-size: 15px; letter-spacing: 0.06em; text-transform: none;
  }
  .nav[hidden] { display: none !important; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line-strong); }

  .hero { height: 440px; }
  .hero__body { inset: auto 20px 24px 20px; flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__kicker { font-size: 9px; letter-spacing: 0.26em; margin-bottom: 14px; }

  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding: 18px 20px; border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(even) { border-right: none; }
  .facts > div:nth-last-child(-n+2) { border-bottom: none; }
  .facts dt { font-size: 9px; margin-bottom: 6px; }
  .facts dd { font-size: 22px; }

  .split, .split--sidebar, .split--form, .review, .contact__grid, .contact__details { grid-template-columns: 1fr; gap: 30px; }
  .spec, .pair { grid-template-columns: 1fr; }
  .spec { gap: 10px; }
  .pair picture { height: 220px; }
  .pair img { height: 220px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
  .section__intro { max-width: none; }

  /* gallery: horizontal filmstrip, then a 2-up grid */
  .mosaic {
    display: flex; gap: var(--gap);
    grid-auto-rows: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .mosaic figure { flex: 0 0 250px; height: 300px; scroll-snap-align: start; }
  .mosaic figure:nth-child(1), .mosaic figure:nth-child(2),
  .mosaic figure:nth-child(6), .mosaic figure:nth-child(8) { grid-column: auto; grid-row: auto; }

  .amenity-groups { grid-template-columns: 1fr; gap: 26px; }
  .rules { grid-template-columns: 1fr; }
  .rules > div { padding: 20px 22px; }

  .panel { padding: 20px; }
  .reservation { margin: 20px -20px -20px; padding: 22px 20px 24px; }
  .reservation__meta { grid-template-columns: 1fr; }
  .booking-layout { grid-template-columns: 1fr; gap: 30px; }
  .booking-summary { position: static; }
  .page-change .change-summary { position: static; }
  table.cal { border-spacing: 4px; }
  .day, .cal__empty { height: 48px; }
  .day__price { font-size: 8px; }
  .review__score { font-size: 44px; }
  .review blockquote { font-size: 21px; line-height: 1.55; }
  .distances div { font-size: 14px; }

  .contact { padding: 44px var(--pad-x) 24px; }
  .contact__grid, .contact__details { padding-bottom: 30px; }
  .contact__details { padding-top: 30px; }
  .contact__map { aspect-ratio: 16 / 9; }
  .colophon { flex-direction: column; align-items: flex-start; gap: 8px; }

  .consent-banner {
    max-height: 35vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }
  /* atrybut hidden musi wygrac z display: flex powyzej */
  .consent-banner[hidden] { display: none !important; }
  /* klasa i :has() osobno — bez :has() cały grupowany selektor byłby odrzucony */
  .consent-banner--panel-open {
    max-height: 70vh;
    overflow-y: auto;
  }
  .consent-banner:has([data-consent-panel]:not([hidden])) {
    max-height: 70vh;
    overflow-y: auto;
  }
  .consent-banner__inner {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px var(--pad-x) 12px;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    align-items: stretch;
  }
  .consent-banner--panel-open .consent-banner__inner {
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .consent-banner:has([data-consent-panel]:not([hidden])) .consent-banner__inner {
    grid-template-rows: auto auto auto;
    overflow: visible;
  }
  .consent-banner__copy {
    min-height: 0;
    overflow-y: auto;
  }
  .consent-banner__title { font-size: 17px; margin: 0 0 4px; }
  .consent-banner__body {
    font-size: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
  }
  .consent-banner__privacy { margin: 4px 0 0; font-size: 11px; }
  .consent-banner__actions {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    align-self: end;
  }
  .consent-banner__btn {
    min-height: 44px;
    padding: 10px 4px;
    letter-spacing: 0.06em;
    box-sizing: border-box;
  }
  .consent-banner__panel { gap: 10px; padding-top: 6px; }
  .consent-banner__panel-actions .consent-banner__btn { width: 100%; min-width: 0; }

  /* sticky booking bar, mobile only */
  .booking-bar {
    position: sticky; bottom: 0; z-index: 9;
    display: flex; align-items: center; justify-content: center;
    padding: 14px var(--pad-x);
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .booking-bar .btn { display: block; width: 100%; text-align: center; padding: 15px 26px; }
}

/* najwęższe telefony: układ przycisków 2+1, jeśli trzy w rzędzie się nie mieszczą */
@media (max-width: 360px) {
  .consent-banner__actions { grid-template-columns: 1fr 1fr; }
}

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

@media print {
  .masthead, .booking-bar, .lang, .nav-toggle, .cal__nav, .consent-banner { display: none; }
  .hero { height: 380px; }
}

/* ---------- landing pages (lp-*) ---------- */
:root {
  /* Label color for LP only; --stone stays unchanged (AA on --paper / --paper-warm). */
  --lp-label: #6B6259;
}

.page-lp .eyebrow,
.page-lp .label,
.page-lp .lp-crumbs,
.page-lp .lp-facts dt,
.page-lp .lp-faq summary,
.page-lp .lp-practical dt {
  color: var(--lp-label);
}

.page-lp .section--dark .eyebrow,
.page-lp .section--dark .label,
.page-lp .contact .eyebrow,
.page-lp .contact__details .eyebrow {
  color: var(--sand);
}

.lp-crumbs {
  padding: 28px var(--pad-x) 0;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.lp-crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--stone-light);
}
.lp-crumbs a:hover { color: var(--ink); }

.lp-hero {
  padding-top: 48px;
  padding-bottom: 56px;
}
.lp-hero h1 {
  max-width: 18ch;
  margin-bottom: 24px;
}
.lp-hero__lede {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.lp-hero__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin: 0;
}
.lp-hero__price .price__unit {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--lp-label);
}

.lp-facts {
  grid-template-columns: repeat(4, 1fr);
}

.lp-callout {
  margin: 32px 0 0;
  padding: 28px 32px;
  background: var(--paper-warm);
  border-left: 3px solid var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
}

.lp-practical { margin-top: 28px; }
.lp-practical dl { margin: 0; }

.lp-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  max-width: 720px;
}
.lp-faq__item {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  padding: 0;
}
.lp-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.lp-faq__item summary::-webkit-details-marker { display: none; }
.lp-faq__item summary::after {
  content: "+";
  float: right;
  color: var(--lp-label);
}
.lp-faq__item[open] summary::after { content: "–"; }
.lp-faq__item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.lp-book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 48px;
}
.lp-book__rules h3 {
  margin: 8px 0 28px;
  color: var(--paper);
}
/* Solid dark cells: sand tokens stay on dark; no translucent bleed of light grid. */
.lp-book .rules {
  background: var(--line-dark);
}
.lp-book .rules > div {
  background: var(--ink);
  color: var(--paper);
}
.lp-book .rules dt { color: var(--sand); }
.lp-book .rules dd { color: var(--sand-pale); }

.lp-related {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  max-width: 720px;
}
.lp-related a {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
}
.lp-related a:hover {
  background: var(--paper-warm);
  color: var(--ink);
}

.lp-hub-group + .lp-hub-group {
  padding-top: 0;
}
.lp-hub-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  max-width: 720px;
  list-style: none;
  padding: 0;
}
.lp-hub-list a {
  display: block;
  padding: 18px 22px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  color: inherit;
}
.lp-hub-list a:hover {
  background: var(--paper-warm);
  color: var(--ink);
}
.lp-hub-list__title {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.lp-hub-list__kicker {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--lp-label);
}
.lp-hub-other .btn {
  margin-top: 8px;
}

/* Panel admin — wiersz rezerwacji po terminie wpłaty */
.admin-table tr.admin-row--overdue td {
  background: #FBF1EE;
}
.admin-table tr.admin-row--overdue td:first-child {
  box-shadow: inset 3px 0 0 #5C3228;
}

@media (max-width: 1024px) {
  .lp-crumbs { padding: 20px var(--pad-x) 0; }
  .lp-hero { padding-top: 28px; padding-bottom: 36px; }
  .lp-hero h1 { font-size: 36px; max-width: none; }
  .lp-hero__lede { font-size: 16px; }
  .lp-facts { grid-template-columns: 1fr 1fr; }
  .lp-callout { font-size: 20px; padding: 22px 20px; }
  .lp-book__actions { margin-bottom: 36px; }
  .lp-hub-list__title { font-size: 18px; }
}
