/* ============================================================================
   APARTAMENTY SIEDLCE — style
   ========================================================================== */

/* ------------------------------------------------------------ 1. TOKENY */
:root {
  --paper:      #FAF7F2;
  --paper-2:    #F3EEE6;
  --surface:    #FFFFFF;
  --ink:        #1C1A17;
  --ink-2:      #5B5349;
  --ink-3:      #8A8177;
  --line:       #E5DDD0;
  --line-2:     #F0E9DE;
  --accent:     #8A6A45;
  --accent-2:   #6E5334;
  --accent-soft:#F0E7DA;
  --gold:       #B08D5B;

  --radius:     14px;
  --radius-lg:  22px;
  --shadow-sm:  0 1px 2px rgba(28,26,23,.05), 0 4px 14px rgba(28,26,23,.045);
  --shadow-md:  0 2px 6px rgba(28,26,23,.06), 0 18px 44px rgba(28,26,23,.09);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 74px;
}

/* -------------------------------------------------------------- 2. BASE */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked, body.nav-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

/* <picture> opakowuje każde zdjęcie (WebP + zapasowy JPEG) — ma wypełniać
   swój kontener, żeby kadrowanie przez object-fit działało jak wcześniej. */
picture { display: block; width: 100%; height: 100%; }

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }

/* Cormorant domyślnie używa cyfr nautycznych — dla liczb i ocen wymuszamy
   cyfry równej wysokości, żeby dane liczbowe czytały się jak dane. */
.hero-facts strong, .rating-score, .apt-facts dd, .section-title, h1, h2, h3, h4 {
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: 'lnum' 1, 'tnum' 1;
}
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4;
       stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 17px; height: 17px; }

.eyebrow {
  font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}

/* ------------------------------------------------------------ 3. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink-2); border-color: transparent; padding-inline: 6px; }
.btn-ghost::after { content: '→'; transition: transform .2s; }
.btn-ghost:hover { color: var(--accent-2); }
.btn-ghost:hover::after { transform: translateX(4px); }

@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ------------------------------------------------------------- 4. HEADER */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 20px rgba(28,26,23,.05); }

.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 11px; color: var(--accent); background: var(--surface);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: .01em; }
.brand-city {
  font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3);
}

.site-nav { display: flex; gap: 30px; }
.site-nav a {
  position: relative; font-size: 14.5px; color: var(--ink-2); padding: 4px 0;
  transition: color .2s;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent); transition: right .25s;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px;
  border: 1px solid var(--line); border-radius: 100px; padding: 3px; background: var(--surface);
}
/* Przełącznik języka: nieaktywny to <a> (Google musi móc po nim przejść),
   aktywny to <span> — nie jest klikalny, więc nie udaje przycisku. */
.lang-btn {
  display: inline-flex; align-items: center;
  border: 0; background: transparent; padding: 4px 11px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--ink-3);
  text-decoration: none; transition: background-color .2s, color .2s;
}
a.lang-btn { cursor: pointer; }
a.lang-btn:hover { color: var(--ink); background: var(--accent-soft); }
.lang-btn.is-active { background: var(--ink); color: var(--paper); cursor: default; }
.lang-sep { width: 1px; height: 13px; background: var(--line); }

.nav-toggle {
  display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); cursor: pointer; place-items: center;
}
.nav-toggle-bars { display: grid; gap: 4px; }
.nav-toggle-bars i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform .25s, opacity .2s; }
body.nav-open .nav-toggle-bars i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.nav-open .nav-toggle-bars i:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle-bars i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --------------------------------------------------------------- 5. HERO */
.hero { padding: clamp(48px, 8vw, 92px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(32px, 6vw, 76px); align-items: center;
}

.hero-title {
  font-size: clamp(40px, 6.2vw, 74px); line-height: 1.03; letter-spacing: -.022em;
  margin-bottom: 22px;
}
.hero-lede { max-width: 46ch; color: var(--ink-2); font-size: clamp(15.5px, 1.35vw, 17.5px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 30px; }

.hero-facts {
  display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px);
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; gap: 2px; }
.hero-facts strong { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.hero-facts span { font-size: 12.5px; color: var(--ink-3); max-width: 17ch; line-height: 1.4; }

.hero-media { position: relative; }
.hero-img { margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-2); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-a { aspect-ratio: 4 / 5; box-shadow: var(--shadow-md); }
.hero-img-b {
  position: absolute; right: -4%; bottom: -9%; width: 56%; aspect-ratio: 4 / 3;
  border: 7px solid var(--paper); box-shadow: var(--shadow-md); border-radius: 18px;
}

/* --------------------------------------------------------------- 6. STRIP */
.strip { padding: clamp(40px, 6vw, 68px) 0; border-block: 1px solid var(--line); background: var(--paper-2); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3.4vw, 48px); }
.strip-item .ico { color: var(--accent); margin-bottom: 14px; }
.strip-item h2 { font-size: 20px; margin-bottom: 7px; }
.strip-item p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ------------------------------------------------------------ 7. SECTIONS */
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-title { font-size: clamp(30px, 4.2vw, 47px); letter-spacing: -.018em; margin-bottom: 16px; }
.section-lede { color: var(--ink-2); font-size: clamp(15px, 1.25vw, 17px); max-width: 58ch; }

/* --------------------------------------------------------- 8. APARTMENTS */
.apartments { display: grid; gap: clamp(40px, 6vw, 80px); }

.apt {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(26px, 3.4vw, 48px); align-items: start;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow-sm);
}
/* co drugi apartament ma galerię po prawej stronie */
.apt:nth-child(even) .apt-gallery { order: 2; }

/* galeria */
.apt-gallery { display: grid; gap: 10px; position: sticky; top: calc(var(--header-h) + 24px); }
.apt-main-photo, .thumb {
  display: block; padding: 0; border: 0; background: var(--paper-2); cursor: pointer;
  overflow: hidden; border-radius: var(--radius); position: relative;
}
.apt-main-photo { aspect-ratio: 4 / 3; width: 100%; }
.apt-main-photo img, .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.3,1);
}
.apt-main-photo:hover img, .thumb:hover img { transform: scale(1.045); }

.photo-count {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(28,26,23,.72); color: #fff; font-size: 11.5px; font-weight: 500;
  padding: 6px 11px; border-radius: 100px; backdrop-filter: blur(4px); pointer-events: none;
}
.photo-count .ico { stroke-width: 1.6; }

.apt-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { aspect-ratio: 1 / 1; }
.thumb-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(28,26,23,.55); color: #fff; font-size: 14px; font-weight: 500;
  letter-spacing: .02em; backdrop-filter: blur(1.5px);
}

/* treść */
.apt-body { padding: clamp(4px, 1vw, 14px) clamp(0px, 1vw, 10px); }
.apt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.apt-name { font-size: clamp(26px, 3vw, 35px); letter-spacing: -.015em; }
.apt-tagline { color: var(--accent); font-size: 14px; margin-top: 7px; }

.rating { display: flex; align-items: center; gap: 10px; flex: none; }
.rating-score {
  display: grid; place-items: center; min-width: 50px; height: 44px; padding-inline: 10px;
  background: var(--ink); color: var(--paper); border-radius: 12px 12px 12px 3px;
  font-family: var(--serif); font-size: 21px; font-weight: 600;
}
.rating-meta { display: flex; flex-direction: column; line-height: 1.3; }
.rating-meta strong { font-size: 13px; font-weight: 600; }
.rating-meta em { font-style: normal; font-size: 11.5px; color: var(--ink-3); }

.apt-address {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 14px; color: var(--ink-2);
}
.apt-address .ico { color: var(--accent); }

.apt-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px;
  margin: 22px 0; padding: 16px 0; border-block: 1px solid var(--line-2);
}
.apt-facts dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.apt-facts dd { font-family: var(--serif); font-size: 20px; }

.apt-desc { color: var(--ink-2); font-size: 15px; line-height: 1.72; }

.apt-sub {
  font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3); margin: 26px 0 14px;
}
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 18px; }
.amenities li { display: flex; align-items: center; gap: 9px; font-size: 13.8px; color: var(--ink-2); }
.amenities .ico { color: var(--accent); }

/* przyciski rezerwacji: pełna szerokość, Booking.com jako główny */
.apt-actions { display: grid; gap: 10px; margin-top: 28px; }
.apt-note { font-size: 12px; color: var(--ink-3); margin-top: 12px; }

/* --------------------------------------------------------- 9. LOCATION */
.location-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }

.location-map {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm);
}
.location-map iframe { display: block; width: 100%; height: clamp(300px, 42vw, 440px); border: 0; filter: saturate(.82); }

/* --- zasłona w miejscu mapy (dopóki gość nie zgodzi się na treści Google) ---
   Rysowana w całości lokalnie: umowna mapka w tle + karta z akcją na wierzchu.
   Ma wyglądać na celowo zasłoniętą, a nie na element, który się nie wczytał. */
/* min-height zamiast height: na wąskich ekranach karta jest wyższa niż
   300 px i przy sztywnej wysokości była przycinana przez overflow. */
.map-placeholder {
  position: relative; display: grid; place-items: center;
  min-height: clamp(300px, 42vw, 440px); padding: 24px; overflow: hidden;
}

/* kolory mapki są w atrybutach SVG (index.php), nie tutaj — dzięki temu
   grafika wygląda poprawnie nawet zanim arkusz stylów się wczyta */
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; }

/* delikatne przyciemnienie brzegów, żeby karta nie zlewała się z mapką */
.map-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 45%, rgba(250,247,242,.55) 0%, rgba(240,233,221,.15) 70%);
}

.map-card {
  position: relative; z-index: 1; text-align: center;
  width: min(320px, 100%); padding: 26px 24px 22px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.map-card-pin {
  display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 14px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-2);
}
.map-card-pin .ico { width: 22px; height: 22px; }
/* text-wrap: balance wyrównuje długość linii — bez tego w notce zostaje
   samotne słowo w drugim wierszu. */
.map-card-address {
  font-family: var(--serif); font-size: 19px; line-height: 1.25;
  margin-bottom: 18px; text-wrap: balance;
}
.map-card .btn { width: 100%; }
.map-card-note {
  margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.5;
  text-wrap: balance;
}
.map-card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--line-2); width: 100%;
  justify-content: center; font-size: 13px; color: var(--ink-2);
  transition: color .2s;
}
.map-card-link:hover { color: var(--accent-2); }
.map-card-link .ico { width: 13px; height: 13px; }
.map-link {
  display: inline-flex; align-items: center; gap: 7px;
  position: absolute; right: 14px; bottom: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 100px;
  padding: 9px 15px; font-size: 13px; box-shadow: var(--shadow-sm); transition: color .2s, border-color .2s;
}
.map-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-link:hover { color: var(--accent-2); border-color: var(--accent); }

.location-info h3 { font-size: 24px; margin-bottom: 18px; }
.dist-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.dist-name { font-size: 14.5px; }
.dist-val { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.note { margin-top: 20px; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ------------------------------------------------------------- 10. CTA */
.cta-panel {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--ink); color: var(--paper-2);
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 62px);
}
.cta-panel .eyebrow { color: var(--gold); }
.cta-panel .section-title { color: var(--paper); }
.cta-panel .section-lede { color: rgba(250,247,242,.68); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta-panel .btn-primary { background: var(--paper); color: var(--ink); }
.cta-panel .btn-primary:hover { background: #fff; }
.cta-panel .btn-outline { color: var(--paper-2); border-color: rgba(250,247,242,.28); }
.cta-panel .btn-outline:hover { background: rgba(250,247,242,.09); border-color: rgba(250,247,242,.5); color: #fff; }

.cta-side { border-left: 1px solid rgba(250,247,242,.16); padding-left: clamp(20px, 3vw, 40px); }
.cta-side-label {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.cta-side-text { font-size: 14px; color: rgba(250,247,242,.66); line-height: 1.65; }

/* ---------------------------------------------------------- 11. FOOTER */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; background: var(--paper-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.footer-brand { margin-right: auto; }
.footer-brand .brand-name { display: block; font-size: 18px; }
.footer-brand p { font-size: 13px; color: var(--ink-3); }
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 13.5px; color: var(--ink-2); }
.footer-nav a:hover { color: var(--accent-2); }
.footer-copy { width: 100%; font-size: 12px; color: var(--ink-3); padding-top: 20px; border-top: 1px solid var(--line); }

/* -------------------------------------------------------- 12. LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(20,18,16,.94);
  animation: lb-in .22s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lb-figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; gap: 14px; }
/* w galerii zdjęcie skalujemy do okna, więc <picture> nie może narzucać rozmiaru */
.lb-figure picture { display: contents; }
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 150px); width: auto; margin-inline: auto;
  object-fit: contain; border-radius: 10px; background: #2a2724;
}
.lb-figure figcaption { text-align: center; color: rgba(255,255,255,.72); font-size: 13px; }

.lb-close, .lb-nav {
  display: grid; place-items: center; flex: none; cursor: pointer;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: #fff;
  transition: background-color .2s, transform .2s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-close { position: absolute; top: clamp(14px, 3vw, 26px); right: clamp(14px, 3vw, 26px); }
.lb-close svg, .lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------------------- 13. REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ------------------------------------------------------ 14. RESPONSIVE */
@media (max-width: 1020px) {
  .apt { grid-template-columns: 1fr; }
  .apt:nth-child(even) .apt-gallery { order: 0; }
  .apt-gallery { position: static; }
  .location-grid { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-side { border-left: 0; border-top: 1px solid rgba(250,247,242,.16); padding-left: 0; padding-top: 26px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 520px; margin-top: 12px; }
  .hero-img-a { aspect-ratio: 3 / 2; }
  .hero-img-b { width: 46%; right: -2%; bottom: -12%; }
  .hero-facts { margin-top: 34px; }

  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 99;
    flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 22px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 22px 40px rgba(28,26,23,.09);
  }
  body.nav-open .site-nav { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--line-2); font-size: 17px; }
  .site-nav a::after { display: none; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .strip-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-facts { gap: 18px 26px; }
  .hero-facts strong { font-size: 25px; }
  .apt-head { flex-direction: column; }
  .apt-facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .amenities { grid-template-columns: 1fr; }
  .apt-actions .btn { flex: 1 1 100%; }
  .apt-thumbs { grid-template-columns: repeat(4, 1fr); gap: 7px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { left: 22px; }
  .lb-next { right: 22px; }
  .lb-figure img { max-height: calc(100vh - 190px); }
}

/* ------------------------------------------------- 15. BANER ZGÓD (RODO) */
.consent {
  position: fixed; z-index: 400;
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; justify-content: center;
  pointer-events: none;
}
.consent[hidden] { display: none; }

.consent-card {
  pointer-events: auto;
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 4px 12px rgba(28,26,23,.08), 0 24px 60px rgba(28,26,23,.16);
  opacity: 0; transform: translateY(14px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.2,.7,.3,1);
  max-height: calc(100vh - 32px); overflow-y: auto;
}
.consent.is-open .consent-card { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .consent-card { transition: none; opacity: 1; transform: none; }
}

.consent-title { font-size: 22px; margin-bottom: 10px; }
.consent-title:focus { outline: none; }
.consent-text { font-size: 14px; color: var(--ink-2); line-height: 1.62; }

.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* „Akceptuję" i „Odrzucam" mają ten sam rozmiar i tę samą wagę wizualną —
   odrzucenie zgody nie może być trudniejsze niż jej udzielenie. */
.btn-consent-accept, .btn-consent-reject {
  flex: 1 1 0; min-width: 150px; padding: 13px 20px;
  font-size: 14px; font-weight: 500; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--ink); transition: background-color .2s, color .2s;
}
.btn-consent-accept { background: var(--ink);   color: var(--paper); }
.btn-consent-accept:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-consent-reject { background: var(--surface); color: var(--ink); }
.btn-consent-reject:hover { background: var(--paper-2); }

.btn-consent-more {
  flex: 0 0 auto; background: transparent; border: 0; cursor: pointer;
  padding: 13px 14px; font-size: 13.5px; color: var(--ink-2);
  text-decoration: underline; text-underline-offset: 3px;
}
.btn-consent-more:hover { color: var(--accent-2); }

.consent-privacy {
  display: inline-block; margin-top: 14px; font-size: 12.5px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.consent-privacy:hover { color: var(--accent-2); }

/* --- lista kategorii --- */
.consent-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--line-2);
}
.consent-row:first-of-type { margin-top: 6px; }
.consent-row input { position: absolute; opacity: 0; width: 0; height: 0; }

.consent-box {
  flex: none; width: 40px; height: 23px; margin-top: 2px; border-radius: 100px;
  background: var(--line); position: relative; transition: background-color .2s;
}
.consent-box::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.consent-row input:checked + .consent-box { background: var(--accent); }
.consent-row input:checked + .consent-box::after { transform: translateX(17px); }
.consent-row input:focus-visible + .consent-box { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Niezbędne: przełącznik w pozycji włączonej, ale wyraźnie przygaszony —
   ma czytać się jako „włączone i nie do zmiany", a nie jako „wyłączone". */
.consent-box.is-locked { background: var(--accent); opacity: .42; }
.consent-box.is-locked::after { transform: translateX(17px); }

.consent-row-locked { cursor: default; }
.consent-row-text { display: flex; flex-direction: column; gap: 3px; }
.consent-row-text strong { font-size: 14px; font-weight: 600; }
.consent-row-text small {
  font-weight: 500; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-left: 6px;
}
.consent-row-text em { font-style: normal; font-size: 12.5px; color: var(--ink-2); line-height: 1.55; }

/* odnośnik w stopce otwierający baner ponownie */
.footer-consent {
  background: none; border: 0; padding: 0; margin-left: 10px; cursor: pointer;
  font-size: 12px; color: var(--ink-3);
  text-decoration: underline; text-underline-offset: 3px;
}
.footer-consent:hover { color: var(--accent-2); }

@media (max-width: 520px) {
  .consent-actions { flex-direction: column; }
  .btn-consent-accept, .btn-consent-reject, .btn-consent-more { flex: 1 1 auto; width: 100%; }
}

/* ------------------------------------------------------------ 16. PRINT */
@media print {
  .site-header, .lightbox, .consent, .hero-actions, .apt-actions, .cta-panel, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .apt { break-inside: avoid; box-shadow: none; }
}
