/* =========================================================
   Natura Inwestycje - Dąbkowice (v2)
   One idea: the page is a sequence of photographs of the place
   and the apartments. Text is the caption, the image leads.
   Every image is a <figure class="frame">: a calm brand-colour
   placeholder now, a real photo (object-fit: cover) later.
   ========================================================= */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colours (pinned - do not add new ones) */
  --cream: #F4EFE6;      /* page ground */
  --sand: #E2E0DB;       /* data bands, plan card, placeholders */
  --navy: #143B63;       /* water bands, headings */
  --navy-2: #1F548A;     /* small accents on light backgrounds only */
  --navy-deep: #0B2440;  /* darker navy for photo overlays and scene shading (derived from --navy) */
  --teal: #39D5D6;       /* CTA background (always dark text on it) */
  --teal-hover: #2DAAAB; /* CTA hover (dark text) */
  --ink: #1A1A1A;        /* body text */
  --white: #FFFFFF;      /* text on navy and photos */
  --on-navy-2: #F4EFE6;  /* secondary text on navy = brand cream, never grey */

  /* Derived transparent versions of the same colours */
  --navy-line: rgba(20, 59, 99, 0.22);     /* hairlines on light */
  --cream-line: rgba(244, 239, 230, 0.3);  /* hairlines on navy */
  --ph-tint: rgba(20, 59, 99, 0.09);       /* placeholder highlight (navy tint, teal is reserved for CTA) */

  /* Type */
  --serif: "Hedvig Letters Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --nav-h: 76px;
  --section: clamp(88px, 11vw, 168px); /* one vertical rhythm for every section */

  /* Motion: exponential ease-out */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 24px); /* fixed nav must not cover section headings */
  scrollbar-color: var(--navy) var(--cream);
  accent-color: var(--navy);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.62;
  font-variant-numeric: lining-nums;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 1.2rem + 2.9vw, 3.5rem);
  max-width: 17ch;
}

h3 { font-size: clamp(1.4rem, 1.15rem + .7vw, 1.85rem); }

p { margin: 0 0 1em; max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}
a:hover { text-decoration-thickness: 2px; }

::selection { background: var(--teal); color: var(--ink); }

/* Focus: themed, visible, never removed */
:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.band-navy :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { outline-color: var(--teal); }

.wrap {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
/* Slightly wider than the text column: large photographs */
.wrap-wide {
  width: min(1440px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 2px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; outline-color: var(--teal); }

/* Section backgrounds */
.band-sand { background: var(--sand); }
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2,
.band-navy h3 { color: var(--white); }
.band-navy a { color: var(--white); }
.band-navy p { color: var(--white); }

.note {
  font-size: .9375rem;
  color: var(--ink);
}

/* ---------- 3. Text placeholders (client must replace) ----------
   Everything in [square brackets] uses .ph so it is easy to find. */
.ph {
  background: var(--ph-tint);
  border-bottom: 1px dotted var(--navy-2);
  padding: 0 .18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  overflow-wrap: anywhere; /* long placeholders must never cause horizontal scroll */
}
.band-navy .ph,
.site-footer .ph {
  background: rgba(244, 239, 230, .14);
  border-bottom-color: var(--cream);
  color: var(--white);
}

/* ---------- 4. Frames: photo slots with calm placeholder scenes ----------
   .frame        = the <figure>; ratio comes from --ratio (inline style)
   .frame > img  = the real photo, always cover
   .frame__ph    = placeholder scene, hidden as soon as a photo is present
   Scenes are only brand colours (and mixes of them), no drawn waves. */
.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: var(--ratio, auto);
  background: var(--sand);
  border-radius: 2px;
  isolation: isolate;
}
.frame > img,
.frame > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame:has(> img) .frame__ph,
.frame:has(> video) .frame__ph { display: none; }

.frame__ph {
  position: absolute;
  inset: 0;
  background: var(--sand);
}
/* Frame label: what photo goes here and in which proportions (the only content of a placeholder) */
.frame__tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 6px 10px;
  background: rgba(244, 239, 230, .94);
  color: var(--navy);
  font: 600 .75rem/1.4 var(--sans);
  letter-spacing: .01em;
  border-radius: 2px;
}

/* Placeholder tones: one brand tone per slot, flat or a soft two-stop gradient.
   No drawn horizon, glow or texture - the slot must read as "photo goes here", not as artwork. */
.frame--lake .frame__ph   { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%); }
.frame--dusk .frame__ph   { background: linear-gradient(180deg, color-mix(in oklab, var(--navy) 62%, var(--cream)) 0%, color-mix(in oklab, var(--navy) 82%, var(--cream)) 100%); }
.frame--aerial .frame__ph { background: linear-gradient(180deg, var(--navy) 0%, color-mix(in oklab, var(--navy) 80%, var(--navy-deep)) 100%); }
.frame--lake-day .frame__ph { background: linear-gradient(180deg, var(--sand) 0%, color-mix(in oklab, var(--sand) 88%, var(--navy)) 100%); }
.frame--interior .frame__ph { background: linear-gradient(180deg, color-mix(in oklab, var(--sand) 70%, var(--cream)) 0%, var(--sand) 100%); }
.frame--room .frame__ph   { background: linear-gradient(180deg, var(--cream) 0%, color-mix(in oklab, var(--cream) 75%, var(--sand)) 100%); }
.frame--sea .frame__ph    { background: linear-gradient(180deg, color-mix(in oklab, var(--navy) 22%, var(--cream)) 0%, color-mix(in oklab, var(--navy) 34%, var(--cream)) 100%); }
.frame--detail .frame__ph { background: linear-gradient(180deg, var(--cream) 0%, color-mix(in oklab, var(--cream) 70%, var(--sand)) 100%); }
.frame--site .frame__ph   { background: linear-gradient(180deg, color-mix(in oklab, var(--navy) 14%, var(--cream)) 0%, color-mix(in oklab, var(--navy) 24%, var(--cream)) 100%); }

/* Dark slots carry white text on top: dark base colour (also what contrast tools measure) */
.hero__media,
.bleed,
.aerial__frame { background-color: var(--navy-deep); }

/* Floor plan paper (plan slot only) */
.frame--plan .frame__ph {
  background:
    repeating-linear-gradient(0deg, rgba(20, 59, 99, .07) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(20, 59, 99, .07) 0 1px, transparent 1px 28px),
    var(--cream);
}

/* ---------- 5. Buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8em 1.45em;
  border: 1px solid transparent;
  border-radius: 2px; /* camping heritage: almost square */
  font: 600 1rem/1.2 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: translateY(1px); }

/* Primary: teal background, ALWAYS dark text */
.btn--primary { background: var(--teal); color: var(--ink); }
.btn--primary:hover { background: var(--teal-hover); color: #000; }
.btn--primary:disabled {
  background: var(--sand);
  color: rgba(26, 26, 26, .72);
  border-color: var(--navy-line);
  cursor: not-allowed;
  transform: none;
}

/* Line: navy outline on light backgrounds */
.btn--line {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--line:hover { background: var(--navy); color: var(--white); }

/* Ghost: quiet nav CTA - navy outline on cream, white outline over the hero photo */
.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.btn--small { min-height: 42px; padding: .55em 1.05em; font-size: .9375rem; }

.text-link {
  display: inline-block;
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .3em;
  padding-block: 10px; /* comfortable touch target */
}

/* ---------- 6. Navigation: transparent over the hero, solid after ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(244, 239, 230, .96);
  border-bottom: 1px solid var(--navy-line);
  transition: background-color .5s var(--ease), border-color .5s var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(244, 239, 230, .88);
    -webkit-backdrop-filter: blur(14px) saturate(1.15);
    backdrop-filter: blur(14px) saturate(1.15);
  }
}

.nav {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.nav__logo-img {
  display: block;
  height: 60px;
  width: auto;
}
.nav__logo-img--light { display: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 36px);
}
.nav__links {
  display: flex;
  gap: clamp(12px, 1.6vw, 28px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--navy);
  font-weight: 500;
  font-size: .9375rem;
  text-decoration: none;
  padding-block: 10px;
  background: linear-gradient(currentColor, currentColor) left bottom 6px / 0 1px no-repeat;
  transition: background-size .45s var(--ease), color .5s var(--ease);
}
.nav__links a:hover { background-size: 100% 1px; }

/* Over the hero photo: frosted glass (dark, blurred) instead of plain transparent, white text on top */
.js .site-header.is-over-hero:not(.is-open) {
  background: rgba(11, 36, 64, .55);
  border-bottom-color: rgba(255, 255, 255, .18);
}
@supports (backdrop-filter: blur(1px)) {
  .js .site-header.is-over-hero:not(.is-open) {
    background: rgba(11, 36, 64, .3);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
  }
}
.js .site-header.is-over-hero:not(.is-open) .nav__links a,
.js .site-header.is-over-hero:not(.is-open) .nav__burger { color: var(--white); }
.js .site-header.is-over-hero:not(.is-open) .nav__logo-img--dark { display: none; }
.js .site-header.is-over-hero:not(.is-open) .nav__logo-img--light { display: block; }
.js .site-header.is-over-hero:not(.is-open) .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .75);
}
.js .site-header.is-over-hero:not(.is-open) .btn--ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.js .site-header.is-over-hero:not(.is-open) :focus-visible { outline-color: var(--teal); }

/* Burger (hidden on wide screens) */
.nav__burger {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 12px;
  background: none;
  border: 0;
  color: var(--navy);
  font: 600 .9375rem var(--sans);
  cursor: pointer;
}
.nav__burger-lines,
.nav__burger-lines::before,
.nav__burger-lines::after {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.nav__burger-lines { position: relative; }
.nav__burger-lines::before,
.nav__burger-lines::after { content: ""; position: absolute; left: 0; }
.nav__burger-lines::before { top: -6px; }
.nav__burger-lines::after { top: 6px; }
.nav__burger[aria-expanded="true"] .nav__burger-lines { background: transparent; }
.nav__burger[aria-expanded="true"] .nav__burger-lines::before { transform: translateY(6px) rotate(45deg); }
.nav__burger[aria-expanded="true"] .nav__burger-lines::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .js .nav__burger { display: inline-flex; }

  /* JS on: menu becomes a full-width panel under the bar */
  .js .nav__menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 12px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--navy-line);
    box-shadow: 0 24px 40px -24px rgba(20, 59, 99, .45);
    max-height: calc(100svh - var(--nav-h));
    overflow-y: auto;
  }
  .js .site-header.is-open .nav__menu { display: flex; }
  .js .nav__links { flex-direction: column; gap: 0; }
  .js .nav__links a {
    display: block;
    padding: 12px 0;
    font-family: var(--serif);
    font-size: 1.375rem;
    border-bottom: 1px solid var(--navy-line);
    background: none;
  }
  .js .nav__cta { min-height: 48px; }

  /* No JS: links stay reachable as a scrollable row */
  html:not(.js) .nav { flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav__menu { width: 100%; overflow-x: auto; }
}

/* ---------- 7. Hero: one full-bleed visualisation ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}
.hero__media {
  position: absolute;
  inset: 0;
  border-radius: 0;
}
/* Readability overlay: darker under the nav and behind the whole text block, so a bright photo cannot swallow the H1.
   Lives inside the figure (above the photo, below the placeholder tag), because the figure's
   settle animation makes it its own stacking context. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 36, 64, .55) 0%, rgba(11, 36, 64, 0) 20%),
    linear-gradient(0deg, rgba(11, 36, 64, .85) 0%, rgba(11, 36, 64, .62) 40%, rgba(11, 36, 64, .3) 66%, rgba(11, 36, 64, 0) 84%),
    linear-gradient(90deg, rgba(11, 36, 64, .5) 0%, rgba(11, 36, 64, .25) 45%, rgba(11, 36, 64, 0) 70%);
}
.hero .frame__tag {
  top: calc(var(--nav-h) + 16px);
  right: var(--gutter);
  left: auto;
  bottom: auto;
  max-width: min(360px, calc(100% - 2 * var(--gutter)));
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(72px, 12vh, 132px);
}
.hero__title {
  color: var(--white);
  font-size: clamp(2.6rem, 1.15rem + 5.3vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}
.hero__lead {
  margin: clamp(18px, 2.2vw, 28px) 0 clamp(26px, 3vw, 40px);
  max-width: 40ch;
  color: var(--cream);
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem);
  line-height: 1.5;
}
.hero__credit {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: 22px;
  margin: 0;
  max-width: none;
  color: var(--on-navy-2);
  font-size: .8125rem;
  letter-spacing: .01em;
}

/* The one authored motion: the photograph settles into place on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__media { animation: hero-settle 2.4s var(--ease) both; }
}
@keyframes hero-settle {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}

@media (max-width: 700px) {
  .hero { height: 85svh; min-height: 544px; }
  .hero__content { padding-bottom: 76px; }
  .hero__credit { left: var(--gutter); right: auto; bottom: 22px; }
  .hero .frame__tag { left: var(--gutter); right: auto; }
}

/* Hero: second CTA ("domy na wodzie") needs a ghost button that reads on a dark photo.
   The CTAs sit below a divider line (former spot of the key-data strip, since removed). */
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid var(--cream-line);
}
.hero .btn--ghost { color: var(--white); border-color: rgba(255, 255, 255, .75); }
.hero .btn--ghost:hover { background: var(--white); color: var(--navy); }

/* ---------- 9. Split 50/50 (text | image, alternating) ---------- */
.split { padding-block: var(--section); }
.split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 7vw, 120px);
  align-items: center;
}
.split__text h2 { margin-bottom: clamp(20px, 2.2vw, 32px); }
.split__text p { max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); }
.split__text .text-link { margin-top: 12px; }
@media (max-width: 860px) {
  .split__grid { grid-template-columns: 1fr; }
  /* Stacked single column: full-height stretch has no row to stretch to, so the gallery needs its own height back */
  .standard__gallery { height: auto; }
  .standard__gallery-track { height: auto; }
  .standard__gallery .frame { aspect-ratio: 4 / 3; height: auto; }
}

/* ---------- 9b. Feature bleed: full-width photo background, text overlaid on the right ---------- */
.feature-bleed {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(440px, 48vw, 680px);
  overflow: hidden;
  padding-block: var(--section);
}
.feature-bleed__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 0;
}
/* Oversized and re-centred so the parallax translateY (±40px, see main.js) never reveals an edge.
   Generic - any [data-parallax] photo inside a .frame gets the same overscan. */
.frame > img[data-parallax] {
  top: -12%;
  height: 124%;
}
/* Subtle navy wash, strongest under the text on the right so white type stays readable */
.feature-bleed__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 36, 64, 0) 0%, rgba(11, 36, 64, .22) 50%, rgba(11, 36, 64, .58) 100%);
}
.feature-bleed__wrap { position: relative; z-index: 2; }
.feature-bleed__text { margin-left: auto; max-width: 46ch; }
.feature-bleed__text h2 { margin-bottom: clamp(20px, 2.2vw, 32px); }

@media (max-width: 860px) {
  .feature-bleed { min-height: clamp(380px, 85vw, 560px); align-items: flex-end; }
  .feature-bleed__media::after {
    background: linear-gradient(0deg, rgba(11, 36, 64, .78) 0%, rgba(11, 36, 64, .45) 55%, rgba(11, 36, 64, .08) 100%);
  }
  .feature-bleed__text { margin-left: 0; max-width: none; }
}

/* ---------- 10. Full-bleed panorama ---------- */
.bleed {
  aspect-ratio: 21 / 9;
  min-height: 380px;
  max-height: 88svh;
  width: 100%;
  border-radius: 0;
}
.bleed .frame__tag { top: 16px; bottom: auto; left: var(--gutter); }

/* ---------- 11. Apartments ---------- */
.units { padding-block: var(--section); }
.units__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.units__filter { display: flex; gap: 8px; }
.units__cta { margin-top: clamp(24px, 3vw, 40px); }
.chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: transparent;
  color: var(--navy);
  font: 600 .9375rem var(--sans);
  cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}
.chip:hover { background: rgba(20, 59, 99, .08); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--white); }

.units__table {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.units__table th,
.units__table td {
  text-align: left;
  vertical-align: middle;
  padding: 18px 12px;
  border-bottom: 1px solid var(--navy-line);
}
.units__table thead th {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom-color: var(--navy);
  padding-block: 10px;
}
.units__table tbody th {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--navy);
}
.units__table tbody tr { transition: background-color .3s var(--ease); }
.units__table tbody tr:hover,
.units__table tbody tr.is-selected { background: rgba(244, 239, 230, .6); }
.units__table td:last-child { text-align: right; }
.units__table tr[hidden] { display: none !important; }

/* Status: always TEXT + a symbol, never colour alone */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 8px;
  border: 1px solid var(--navy);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--navy);
}
.status--available::before { background: var(--navy); }
.status--reserved::before { background: linear-gradient(90deg, var(--navy) 50%, transparent 50%); }
.status--sold { border-style: dashed; }
.status--sold::before { background: transparent; }

.units__live { margin-top: 12px; font-size: .875rem; min-height: 1.5em; }

/* Mobile: every row becomes a card */
@media (max-width: 880px) {
  .units__table thead {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .units__table,
  .units__table tbody { display: block; }
  .units__table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    padding: 18px 16px;
    margin-bottom: 12px;
    background: var(--cream);
    border: 1px solid var(--navy-line);
    border-radius: 2px;
  }
  .units__table tbody th,
  .units__table tbody td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .units__table tbody th { grid-column: 1 / -1; }
  .units__table tbody td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--navy);
  }
  .units__table td:last-child { grid-column: 1 / -1; text-align: left; }
  .units__table td:last-child::before { content: none; }
  .units__table .btn { width: 100%; }
}
/* Table view: keep short values on one line; only the two price columns may wrap */
@media (min-width: 1100px) {
  .units__table tbody th,
  .units__table td:not([data-label^="Cena"]) { white-space: nowrap; }
}

/* Plan card: floor plan + data of the chosen unit */
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(16px, 2.4vw, 32px);
  background: var(--cream);
  border: 1px solid var(--navy-line);
  border-radius: 2px;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.plan:focus { outline: none; }
.plan:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.plan__name { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); margin-bottom: 20px; }
.plan__data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
  margin: 0 0 28px;
  border-top: 1px solid var(--navy);
}
.plan__data > div { padding: 12px 0; border-bottom: 1px solid var(--navy-line); min-width: 0; }
.plan__data dt { font-size: .8125rem; font-weight: 600; color: var(--navy); }
.plan__data dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.plan__pdf { margin: 0; font-size: .875rem; }
@media (max-width: 860px) {
  .plan { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .plan__data { grid-template-columns: 1fr; }
  .plan__actions .btn { width: 100%; }
}

/* ---------- 12. Gallery: mosaic of large frames ---------- */
.gallery { padding-block: clamp(48px, 6vw, 96px); }
.gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.gallery__head h2 { max-width: none; }
.gallery__head p { margin: 0; max-width: 34ch; color: var(--cream); }
@media (max-width: 460px) {
  /* Below this width the heading no longer fits on one line - let it wrap again instead of overflowing */
  .gallery__head h2 { max-width: 17ch; }
}

.mosaic {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(77px, 8.4vw, 125px);
  gap: clamp(8px, 1.1vw, 16px);
}
.mosaic__item .frame { width: 100%; height: 100%; }
/* Hover/focus: the photo zooms in slightly, clipped by the frame's own overflow:hidden */
.mosaic__item .frame img { transition: transform .5s var(--ease); }
.mosaic__item:hover .frame img,
.mosaic__item:focus-within .frame img { transform: scale(1.06); }
.mosaic__item--a { grid-column: 1 / 9; grid-row: span 4; }
.mosaic__item--b { grid-column: 9 / 13; grid-row: span 4; }
.mosaic__item--c { grid-column: 1 / 5; grid-row: span 3; }
.mosaic__item--d { grid-column: 5 / 9; grid-row: span 3; }
.mosaic__item--e { grid-column: 9 / 13; grid-row: span 3; }
@media (max-width: 760px) {
  .mosaic .frame__ratio { display: none; }
  .mosaic .frame__tag { left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 4px 8px; font-size: .6875rem; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 35.2vw; }
  .mosaic__item--a { grid-column: 1 / -1; grid-row: span 1; }
  .mosaic__item--b { grid-column: 1; grid-row: span 2; }
  .mosaic__item--c { grid-column: 2; grid-row: span 1; }
  .mosaic__item--d { grid-column: 2; grid-row: span 1; }
  .mosaic__item--e { grid-column: 1 / -1; grid-row: span 1; }
  .mosaic__item--a .frame img,
  .mosaic__item--c .frame img { object-position: bottom; }
}

/* ---------- 13. Location: drone frame with markers ---------- */
.location { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.location__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(36px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.location__head p { margin: 0; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); max-width: 46ch; }
@media (max-width: 860px) {
  .location__head { grid-template-columns: 1fr; }
}

.aerial { margin-block: 0 clamp(40px, 5vw, 72px); }
.aerial__frame { aspect-ratio: 16 / 9; }
.aerial__cap { margin-top: 12px; font-size: .8125rem; }

/* Markers sit on the photo; --x / --y are percentages of the frame */
.markers { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; z-index: 3; }
.marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: .875rem;
  line-height: 1.3;
  white-space: nowrap;
}
/* Water names: quiet serif lettering, like a map label on the photo */
.marker--water {
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1rem, .85rem + .6vw, 1.5rem);
  letter-spacing: .01em;
}
/* Pins: a dot at the exact point, label to the right */
.marker--pin {
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translate(-7px, -50%);
  font-weight: 600;
  color: var(--navy);
}
.marker--pin::before {
  content: "";
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--navy);
  box-shadow: 0 0 0 2px var(--cream), 0 4px 12px rgba(11, 36, 64, .45);
}
.marker__label {
  padding: 5px 10px;
  background: rgba(244, 239, 230, .94);
  border-radius: 2px;
  font-size: .8125rem;
}
.marker--main::before {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
  background: var(--navy);
  border-color: var(--cream);
  box-shadow: 0 0 0 3px var(--navy), 0 4px 12px rgba(11, 36, 64, .45);
}
.marker--road {
  transform: translate(-100%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(244, 239, 230, .94);
  color: var(--navy);
  font-weight: 600;
  font-size: .8125rem;
  border-radius: 2px;
}
.marker--road::after {
  content: "";
  width: 16px;
  height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 10'%3E%3Cpath d='M0 5h14M10 1l4 4-4 4' fill='none' stroke='%23143B63' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: stretch;
}
.distances {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0 0 20px;
  border-top: 1px solid var(--navy);
}
.distances > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--navy-line);
  min-width: 0;
}
.distances dt { font-weight: 600; color: var(--navy); }
.distances dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Map column matches the height of the distances list beside it, instead of its own fixed ratio */
.map { position: relative; height: 100%; min-height: 320px; }
.map__idle {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  height: 100%;
  padding: clamp(20px, 3vw, 40px);
  background: var(--sand);
  border-radius: 2px;
}
.map__title { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); margin: 0; }
.map__note { font-size: .9375rem; margin: 0; max-width: 40ch; }
.map__frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 2px;
}
@media (max-width: 860px) {
  .location__grid { grid-template-columns: 1fr; }
  .aerial__frame { aspect-ratio: 4 / 5; }
  /* portrait crop shows only ~45% of the photo's width - shift it left so the sea and the
     main pin (otherwise cropped off by default center framing) stay in view */
  .aerial__frame img { object-position: 20% center; }
  /* portrait crop: markers use their phone coordinates when given */
  .marker { left: var(--mx, var(--x)); top: var(--my, var(--y)); }
  /* stacked single column: no row to stretch to, so the map needs its own ratio back */
  .map { height: auto; }
  .map__idle { aspect-ratio: 4 / 3; height: auto; }
  .map__frame { aspect-ratio: 4 / 3; height: auto; }
}
@media (max-width: 520px) {
  .map__idle { aspect-ratio: auto; }
  .marker--water { font-size: 1rem; }
  /* narrow phones: the "Natura Inwestycje" pin label runs into "Jezioro Bukowo" - give
     markers a phone-only position when one is set, otherwise keep the tablet position */
  .marker { left: var(--mxs, var(--mx, var(--x))); top: var(--mys, var(--my, var(--y))); }
}

/* ---------- 14. Details (shared: standard + FAQ) ---------- */
details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}
details > summary::-webkit-details-marker { display: none; }

/* Plus / minus drawn with two CSS lines */
details > summary::after {
  content: "";
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(currentColor, currentColor) center / 16px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 16px no-repeat;
  transition: background-size .45s var(--ease);
}
details[open] > summary::after {
  background-size: 16px 1.5px, 1.5px 0;
}

/* Smooth open/close where the browser supports ::details-content */
@supports selector(::details-content) {
  :root { interpolate-size: allow-keywords; }
  details::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size .55s var(--ease), content-visibility .55s allow-discrete;
  }
  details[open]::details-content { block-size: auto; }
}

/* ---------- 15. Standard ---------- */
.standard { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
/* Hover: the photo zooms in slightly, clipped by the frame's own overflow:hidden */
.standard .frame img { transition: transform .5s var(--ease); }
.standard .frame:hover img { transform: scale(1.06); }
/* Gallery: photo fills the full height of the row (matches the taller list column), dots overlaid on its bottom edge */
.standard .split__grid { align-items: stretch; }
.standard__gallery { position: relative; height: 100%; }
.standard__gallery-track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.standard__gallery-track::-webkit-scrollbar { display: none; }
.standard__gallery-item { flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
.standard__gallery .frame { aspect-ratio: auto; height: 100%; }
.standard__gallery-dots {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: clamp(16px, 2vw, 28px);
  display: flex;
  justify-content: center;
  gap: 4px;
  pointer-events: none;
}
.standard__gallery-dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}
.standard__gallery-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--white);
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 1px 5px rgba(11, 36, 64, .55);
  transition: background-color .3s var(--ease);
}
.standard__gallery-dot:hover::before { background: rgba(255, 255, 255, .3); }
.standard__gallery-dot.is-active::before { background: var(--white); }
.standard__list h2 { margin-bottom: 28px; }
.standard__list details { border-bottom: 1px solid var(--navy-line); }
.standard__list details:first-of-type { border-top: 1px solid var(--navy); }
.standard__list summary {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
}
.standard__list details p { padding-bottom: 20px; }

/* ---------- 16. Who builds + timeline ---------- */
.builder { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.builder__head { margin-bottom: clamp(32px, 4vw, 56px); }

.builder__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.team { margin: 0; border-top: 1px solid var(--navy); }
.team > div {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 6px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--navy-line);
}
.team dt { font-weight: 600; color: var(--navy); font-size: .9375rem; padding-top: 3px; }
.team dd { margin: 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; color: var(--navy); min-width: 0; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--sans); font-size: 1rem; color: var(--ink); }
.docs li { display: flex; align-items: flex-start; gap: 10px; }
.docs li > span { min-width: 0; }
.docs__icon {
  flex: 0 0 14px;
  width: 14px;
  height: 18px;
  margin-top: 3px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.3;
}
/* Builder gallery: horizontally scrollable, one photo snaps into place at a time.
   The scrollbar is hidden - dots below the track are the visible scroll control. */
.builder__gallery-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.builder__gallery-track::-webkit-scrollbar { display: none; }
.builder__gallery-item {
  flex: 0 0 min(420px, 85%);
  scroll-snap-align: start;
  min-width: 0;
}
.builder__gallery-dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.builder__gallery-dot {
  position: relative;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.builder__gallery-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  background: transparent;
  transition: background-color .3s var(--ease);
}
.builder__gallery-dot:hover::before { background: rgba(20, 59, 99, .15); }
.builder__gallery-dot.is-active::before { background: var(--navy); }
@media (max-width: 860px) {
  .builder__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .team > div { grid-template-columns: 1fr; }
}

/* Timeline: horizontal on desktop, vertical on phones; the line fills on scroll */
.timeline { margin-top: clamp(64px, 8vw, 120px); }
.timeline__title { margin-bottom: 8px; }
.timeline__track { position: relative; margin-top: 36px; --fill: 0; }
.timeline__track::before,
.timeline__line {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 7px;
  height: 1px;
  background: var(--navy-line);
}
.timeline__line {
  background: var(--navy);
  height: 2px;
  top: 6.5px;
  transform-origin: left center;
  transform: scaleX(var(--fill));
}
.timeline__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.timeline__step { position: relative; padding-top: 36px; min-width: 0; }
.timeline__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid var(--navy);
  transition: background-color .5s var(--ease);
}
.timeline__step.is-reached::before { background: var(--navy); }
.timeline__date { font-size: .875rem; font-weight: 600; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.timeline__step h4 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 6px; }
.timeline__status { font-size: .875rem; }
@media (max-width: 860px) {
  .timeline__track::before,
  .timeline__line {
    left: 7px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
  }
  .timeline__line {
    width: 2px;
    left: 6.5px;
    transform-origin: center top;
    transform: scaleY(var(--fill));
  }
  .timeline__list { grid-template-columns: 1fr; gap: 28px; }
  .timeline__step { padding: 0 0 0 40px; }
}

/* ---------- 17. Two paths: own use / investment ---------- */
.paths { padding-block: var(--section); }
#model { padding-top: clamp(48px, 6vw, 96px); }
.paths__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px clamp(36px, 7vw, 120px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.paths__head p { margin: 0; font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); max-width: 44ch; }
.paths__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
}
.path h3 { margin: clamp(24px, 2.5vw, 36px) 0 14px; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); }
.path p { max-width: 44ch; }
/* Hover/focus: the photo zooms in slightly, clipped by the frame's own overflow:hidden */
#model .path .frame img { transition: transform .5s var(--ease); }
#model .path:hover .frame img,
#model .path:focus-within .frame img { transform: scale(1.06); }

/* Title + lead text move onto the photo itself, bottom-aligned, same navy wash as the routes tiles */
#model .path .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 36, 64, .88) 0%, rgba(11, 36, 64, .55) 38%, rgba(11, 36, 64, 0) 70%);
}
#model .path__overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 3vw, 32px);
}
/* Text sits on the photo itself, so it stays white regardless of the section's own (light) background */
#model .path__overlay h3 { margin: 0 0 10px; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); color: var(--white); }
#model .path__overlay p { margin: 0; max-width: 32ch; color: var(--cream); }
/* Terms as a "+" accordion, same mechanism as the FAQ (details > summary, shared rule in section 14) */
.path__terms { margin: 24px 0 0; border-top: 1px solid var(--navy-line); }
.path__terms details { border-bottom: 1px solid var(--navy-line); }
.path__terms summary { font-weight: 600; font-size: 1rem; color: var(--navy); }
.path__terms summary:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.path__terms-answer { padding-bottom: 16px; color: var(--ink); }
.path__terms-answer p { margin: 0; }
.paths__disclaimer {
  margin-top: clamp(36px, 4vw, 56px);
  font-size: .875rem;
  color: var(--ink);
  max-width: none;
}
@media (max-width: 860px) {
  .paths__head,
  .paths__grid { grid-template-columns: 1fr; }
}

/* ---------- 17b. Routes tiles ("Wybierz swój sposób na odpoczynek"): heading, copy and CTA sit on the photo ---------- */
.routes { padding-block: clamp(48px, 6vw, 96px); }
.routes .path {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
}
.routes .path .frame {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
}
.routes .path::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(11, 36, 64, .88) 0%, rgba(11, 36, 64, .55) 38%, rgba(11, 36, 64, 0) 70%);
}
.routes .path__overlay {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: clamp(20px, 3vw, 32px);
}
.routes .path h3 { margin: 0 0 10px; color: var(--white); font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
.routes .path p { margin: 0 0 20px; max-width: 32ch; color: var(--cream); }

/* Hover/focus: the photo zooms in slightly, clipped by the tile's own overflow:hidden */
.routes .path img { transition: transform .5s var(--ease); }
.routes .path:hover img,
.routes .path:focus-within img { transform: scale(1.06); }

/* ---------- 18. FAQ ---------- */
.faq { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.faq__grid h2 { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__list { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--navy-line); }
.faq summary {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--navy);
}
.faq summary:hover { text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.faq__answer { padding-bottom: 22px; }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid h2 { position: static; }
}

/* ---------- 19. Contact + form ---------- */
.contact { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.contact__info h2 { margin-bottom: 20px; }
.contact__data {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  border-top: 1px solid var(--navy);
}
.contact__data li {
  display: grid;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(20, 59, 99, .3);
  overflow-wrap: anywhere;
}
.contact__label { font-size: .8125rem; font-weight: 600; color: var(--navy); }
.contact__phone {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.contact__phone:hover { text-decoration: underline; text-decoration-thickness: 1px; }

.contact__form-wrap {
  background: var(--cream);
  border: 1px solid var(--navy-line);
  border-radius: 2px;
  padding: clamp(20px, 3.5vw, 44px);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 18px;
}
.field { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; }
.field--half { grid-column: span 1; }
.field label { font-weight: 600; font-size: .9375rem; color: var(--navy); }
.field__opt { font-weight: 400; color: var(--ink); }

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(20, 59, 99, .5);
  border-radius: 2px;
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  caret-color: var(--navy);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 112px; }
.field select {
  appearance: none;
  padding-right: 40px;
  /* Chevron drawn as inline SVG */
  background: rgba(255, 255, 255, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23143B63' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat;
}
.field input:not([type="checkbox"]):hover,
.field select:hover,
.field textarea:hover { border-color: var(--navy); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

/* Error state: thicker ink border + message with a drawn icon (not colour alone) */
.field [aria-invalid="true"] {
  border-color: var(--ink) !important;
  box-shadow: inset 0 0 0 1px var(--ink);
}
.field__error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 2px 0 0;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.field__error[hidden] { display: none; }
.field__error::before {
  /* authored SVG icon (circle + exclamation) instead of a text glyph */
  content: "";
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 4.5v5.5' stroke='%23F4EFE6' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13' r='1' fill='%23F4EFE6'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.field--check {
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
}
.field--check input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.field--check label { font-weight: 400; color: var(--ink); font-size: .9375rem; line-height: 1.5; cursor: pointer; }
.field--check .field__error { grid-column: 2; }

.form__submit {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}
.form__help { margin: 0; font-size: .875rem; flex: 1 1 220px; }
.form__help[hidden] { display: none; }

.form__legal {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--navy-line);
  font-size: .8125rem;
}
.form__legal p { margin-bottom: .4em; }

.form-success { padding: 12px 0; }
.form-success:focus { outline: none; }
.form-success__mark {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.4;
}
.form-success__mark path { stroke-width: 2; }
.form-success h3 { margin-bottom: 12px; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); }

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .form__submit .btn { width: 100%; }
}

/* ---------- 20. Footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-block: clamp(56px, 7vw, 88px) 28px;
  font-size: .9375rem;
}
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px clamp(24px, 4vw, 64px);
}
.footer__logo {
  margin-bottom: 10px;
}
.footer__logo img {
  display: block;
  height: 70px;
  width: auto;
}
.footer__tagline { color: var(--on-navy-2); margin: 0; }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__nav a { display: inline-block; padding-block: 6px; }
.footer__contact p { margin-bottom: .5em; overflow-wrap: anywhere; }
.footer__cookies {
  margin-top: 8px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--white);
  font: 500 .9375rem var(--sans);
  text-decoration: underline;
  text-underline-offset: .25em;
  cursor: pointer;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-line);
  color: var(--on-navy-2);
  font-size: .8125rem;
}
.footer__legal p { margin: 0; max-width: none; }
@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- 21. Cookie banner ---------- */
.cookie {
  position: fixed;
  right: 16px; /* right side: keeps the hero's text and CTA visible on first visit */
  bottom: 16px;
  z-index: 60;
  width: min(420px, calc(100% - 32px));
  padding: 22px 22px 20px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--navy);
  border-radius: 2px;
}
.cookie[hidden] { display: none; }
.cookie__title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin: 4px 0 8px;
}
.cookie__text { font-size: .9375rem; }
.cookie__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
/* Both choices look the same (RODO: no nudging) */
.btn--cookie {
  background: var(--navy);
  color: var(--white);
  font-size: .9375rem;
  padding-inline: .8em;
}
.btn--cookie:hover { background: var(--navy-2); }
.cookie :focus-visible { outline-color: var(--navy); }
@media (max-width: 700px) {
  /* compact and under the nav, so the hero H1 and CTA stay visible on a first visit */
  .cookie {
    top: calc(var(--nav-h) + 8px);
    bottom: auto;
    left: 12px;
    right: 12px;
    width: auto;
    padding: 14px 14px 12px;
  }
  .cookie__title { display: none; }
  .cookie__text { font-size: .8125rem; line-height: 1.45; }
  .cookie__actions { margin-top: 10px; gap: 8px; }
  .cookie .btn { min-height: 44px; font-size: .875rem; padding-inline: .5em; }
}

/* ---------- 21b. Listing subpages (apartamenty.html, domy-na-wodzie.html): head without a hero photo ---------- */
.page-intro { padding-block: calc(var(--nav-h) + 48px) clamp(40px, 5vw, 64px); }
.page-intro__back { display: inline-block; margin-bottom: 20px; font-size: .9375rem; }
.page-intro h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 14px; }
.page-intro p { max-width: 60ch; margin: 0; }

/* ---------- 22. Privacy policy page ---------- */
.policy {
  padding-block: calc(var(--nav-h) + 72px) clamp(72px, 9vw, 120px);
}
.policy__head {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--navy);
}
.policy h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem);
  margin-bottom: 20px;
}
.policy__warning {
  display: inline-block;
  padding: 10px 14px;
  background: var(--sand);
  border: 1px dashed var(--navy);
  border-radius: 2px;
  font-weight: 600;
  font-size: .9375rem;
}
.policy__body { max-width: 72ch; }
.policy__body h2 {
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.9rem);
  max-width: none;
  margin: 48px 0 16px;
}
.policy__body ul { padding-left: 1.2em; margin: 0 0 1em; }
.policy__body li { margin-bottom: .45em; }

/* ---------- 24. Highlights ("dlaczego tu") ---------- */
.highlights { padding-block: clamp(48px, 6vw, 96px); }
.highlights__head { margin-bottom: clamp(32px, 4vw, 56px); }
.highlights__head h2 { margin-bottom: 16px; }
.highlights__head p { font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); max-width: 46ch; }
.highlights__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(28px, 3.5vw, 48px);
  border-top: 1px solid var(--navy);
}
.highlight { padding-top: 24px; min-width: 0; }
.highlight__num { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy-2); margin-bottom: 10px; }
.highlight h3 { font-size: 1.3rem; margin-bottom: 10px; }
.highlight p { font-size: .9375rem; }

/* ---------- 25. Opinions (testimonials, waiting state) ---------- */
.opinions { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.opinions h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.opinions__list {
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 56px);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}
.opinion {
  padding: clamp(24px, 3vw, 40px);
}
.opinion__quote { font-family: var(--serif); font-size: clamp(1.0625rem, 1rem + .15vw, 1.1875rem); margin-bottom: 16px; }
.opinion__author { margin: 0; font-size: .9375rem; color: var(--ink); }
@media (max-width: 900px) {
  .opinions__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .opinions__list { grid-template-columns: 1fr; }
}
/* ---------- 26. Process ("jak wygląda zakup") ---------- */
.process { padding-top: clamp(48px, 6vw, 96px); padding-bottom: var(--section); }
.process__head { margin-bottom: clamp(32px, 4vw, 56px); }
.process__head h2 { margin-bottom: 16px; }
.process__head p { font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); max-width: 46ch; }
/* Track: same two-layer "water line" mechanism as the Harmonogram timeline (shared --fill, driven by main.js),
   but with no step dots - just the line itself thickens in as you scroll. */
.process__track { position: relative; --fill: 0; }
.process__track::before,
.process__line {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: var(--navy-line);
}
.process__line {
  background: var(--navy);
  height: 2px;
  top: -0.5px;
  transform-origin: left center;
  transform: scaleX(var(--fill));
}
.process__list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.process__list li { padding-top: 24px; min-width: 0; }
.process__num { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy-2); margin-bottom: 8px; }
.process__list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.process__list p { font-size: .9375rem; }
@media (max-width: 860px) {
  .process__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .process__list { grid-template-columns: 1fr; }
}

/* ---------- 27. Schedule (harmonogram, standalone section) ---------- */
.schedule { position: relative; overflow: hidden; padding-block: var(--section); }
.schedule__bg { position: absolute; inset: 0; z-index: 0; }
.schedule__bg img { width: 100%; height: 100%; object-fit: cover; }
/* Lighter wash for roughly the top 30% (photo reads a bit brighter there), full strength below */
.schedule__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 36, 64, .25) 0%, rgba(11, 36, 64, .55) 30%, rgba(11, 36, 64, .55) 100%);
}
.schedule > .wrap { position: relative; z-index: 1; }
.schedule__head { margin-bottom: clamp(32px, 4vw, 56px); }
.schedule__head h2 { margin-bottom: 16px; }
.schedule__head p { font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); max-width: 46ch; }
.schedule .timeline { margin-top: 0; }

/* Harmonogram sits on band-navy: the timeline's colours assume a light background, so invert them here */
.schedule.band-navy .timeline__step h4 { color: var(--white); }
.schedule.band-navy .timeline__track::before { background: rgba(244, 239, 230, .3); }
.schedule.band-navy .timeline__line { background: var(--cream); }
.schedule.band-navy .timeline__step::before { background: var(--navy); border-color: var(--cream); }
.schedule.band-navy .timeline__step.is-reached::before { background: var(--cream); }

/* ---------- 23. Reduced motion: switch everything off ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
