/* =================================================================
   KRASNE Residence — design system
   Brand: Onyks + Champagne + Linen + Forest + Bark
   Typografia: Cormorant Garamond (display) + Inter (body)
   Anti-AI: ostre rogi, brak transparent shadows, brak gradientów na UI,
            różne grubości czcionek, animacje powolne, hover effects,
            subtle 3D background details
   ================================================================= */

/* Skip link — niewidoczny dopóki użytkownik klawiatury go nie zafocuje (Tab) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: var(--onyks, #0A0A0A);
  color: var(--champagne, #C49538);
  padding: 12px 20px;
  font-family: var(--font-body, system-ui), sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--champagne, #C49538);
  transition: top 200ms ease;
}
.skip-link:focus {
  top: 16px;
  outline: none;
}

:root {
  /* Palette — KIERUNEK B+ "Las nad jeziorem" (mocniejszy pivot, ~85% różnicy od Claude)
     Lean into lokalizację: jezioro Krasne + Pojezierze + Park Krajobrazowy.
     Kluczowe odcięcie od "warm cream + champagne" Claude'a:
       1) tło COOL limestone (chłodne, lekki niebieski podton) zamiast warm linen
       2) dark sections mają LAKE BLUE undertone zamiast czystej czerni
       3) amber + LAKE BLUE jako dual primary (był tylko amber)
     Nazwy zmiennych legacy zostają. */
  --onyks:          #0A0A0A;  /* tylko text/border — w bg wyparte przez --ink */
  --ink:            #0E1B2A;  /* NOWY: deep blue-black — primary dark dla section bg */
  --champagne:      #C49538;  /* głęboki bursztyn (Polish brass) */
  --champagne-soft: #DAB36A;  /* jaśniejszy bursztyn dla hover */
  --linen:          #E8E5DD;  /* COOL limestone — chłodne kremowe (był warm F0EBE0) */
  --forest:         #1A2B1F;  /* głęboka forest, bez zmian */
  --moss:           #4A5D45;  /* głębsza zieleń mchu */
  --bark:           #5A4030;  /* głębsza ziemia */
  --mist:           #A8AFA9;  /* COOL stone — chłodniejsza (był B5BAB0) */
  --slate:          #5C6770;  /* chłodniejszy steel-grey z lake undertone */
  --granite:        #1F2A35;  /* deep blue-grey (był forest podton) */
  --charcoal:       #15212C;  /* lake-tinted dark (był forest podton 1A1F1B) */
  --snow:           #F2F0EB;  /* cool off-white (był F8F6F1) */
  /* Lake — secondary primary obok amber */
  --lake:           #2C4456;  /* deep lake blue */
  --lake-soft:      #4A6478;  /* lighter lake — hover/borders */

  /* Typography — KIERUNEK B
     EB Garamond zamiast Cormorant Garamond: klasyczny garamond, mocny polski/europejski feel
     (Cormorant ma soft-italic vibe, Claude-like; EB jest bardziej "stary druk").
     Outfit zamiast Inter: geometryczny modern sans, ZUPEŁNIE inny od Inter (Claude/SaaS standard). */
  /* Po feedbacku klienta: Outfit przejmuje display + body (jeden font, różne grubości
     dają hierarchię). Klasyczny garamond italic zbyt kojarzył się z Claude.ai. */
  --font-display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 24px;  --space-6: 32px;
  --space-7: 40px; --space-8: 56px;  --space-9: 72px;
  --space-10: 96px;

  --container-max: 1440px;
  --container-pad: 80px;

  /* Transitions */
  --t-fast: 200ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-base: 450ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-slow: 800ms cubic-bezier(0.22, 1, 0.36, 1);
  --t-extra-slow: 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 960px) {
  :root { --container-pad: 24px; }
}

/* =================================================================
   RESET / BASE
   ================================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--onyks);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "kern", "liga", "ss01", "calt";
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
strong { font-weight: 600; }
em { font-style: italic; }
em.accent {
  color: var(--champagne);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 500;
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */
.display {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.display--xl  { font-size: clamp(24px, 3.5vw, 48px);  font-weight: 200; }
.display--lg  { font-size: clamp(18px, 2.5vw, 32px);  font-weight: 200; }
.display--md  { font-size: clamp(20px, 2.7vw, 36px);  font-weight: 200; }
/* Dawniej italic — Outfit nie ma italic glyphów. Klient wybrał Outfit + "różną grubością"
   przeważać na całej stronie, więc emphasis odbywa się przez weight (extra-light 200 vs
   light 300 vs medium 500). Klasa `.display--italic` zostaje w templates, ale teraz
   tworzy delikatne wzbogacenie wagi zamiast skewu. */
.display--italic { font-style: normal; font-weight: 300; }

/* Eyebrow tylko jako label/kategoria (NIE nad H1) — dyskretny */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bark);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--granite);
}
.lead strong { font-weight: 600; color: var(--onyks); }

.body-text {
  font-size: 15px;
  line-height: 1.7;
  font-weight: 400;
  color: var(--charcoal);
}

/* Underline link (dyskretny, animowany) */
.link-underline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--bark);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--t-fast);
}
.link-underline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.4);
  transform-origin: left;
  transition: transform var(--t-base);
}
.link-underline:hover { color: var(--onyks); }
.link-underline:hover::after { transform: scaleX(1); }

/* =================================================================
   LAYOUT
   ================================================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-7);
  position: relative;
}
.section--tight { padding-top: var(--space-7); padding-bottom: var(--space-7); }
.section--dark {
  /* Lake-tinted: charcoal #15212C → ink #0E1B2A (oba w blue-grey spectrum, nie czysta czerń) */
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--ink) 100%);
  color: var(--linen);
}
.section--linen  { background: var(--linen); color: var(--onyks); }
.section--linen-warm {
  background: linear-gradient(180deg, var(--linen) 0%, #FAF6EC 50%, var(--linen) 100%);
  color: var(--onyks);
}
.section--snow   { background: var(--snow); color: var(--onyks); }
.section--forest { background: var(--forest); color: var(--linen); }
.section--forest-warm {
  background: linear-gradient(135deg, var(--forest) 0%, var(--charcoal) 70%, #25342B 100%);
  color: var(--linen);
}

/* === Subtle 3D background — radial veil + textured noise === */
.with-bg-veil {
  position: relative;
  overflow: hidden;
}
.with-bg-veil::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(228,196,153,0.12), transparent 60%),
    radial-gradient(ellipse 800px 400px at 10% 110%, rgba(107,79,58,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.with-bg-veil > * { position: relative; z-index: 1; }

/* === HOUSE SKETCHES — kanciaste sylwetki domków rozsiane po tle === */
.house-sketches {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.house-sketch {
  position: absolute;
  display: block;
}

/* === Inwentarz section — leśne 3D tło z dekoracjami SVG === */
.inwentarz-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(228, 196, 153, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(90, 107, 79, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(107, 79, 58, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, var(--linen) 0%, #FAF6EC 50%, #F1ECE0 100%);
  padding-top: var(--space-5);
  padding-bottom: var(--space-8);
}
.inwentarz-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 5 L33 9 L31 9 L34 13 L31 13 L36 17 L24 17 L29 13 L26 13 L29 9 L27 9 Z' fill='%236B4F3A' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  background-repeat: repeat;
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}
.inwentarz-deco {
  position: absolute;
  pointer-events: none;
  color: var(--moss);
  z-index: 1;
  opacity: 0.18;
}
.inwentarz-deco--left {
  top: -80px;
  left: -120px;
  width: 580px !important;
  height: 580px !important;
}
.inwentarz-deco--right {
  bottom: -120px;
  right: -140px;
  width: 520px !important;
  height: 520px !important;
  color: var(--bark);
  opacity: 0.14;
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.inwentarz-container {
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) {
  .inwentarz-deco { display: none; }
}

.with-bg-noise {
  position: relative;
  overflow: hidden;
}
.with-bg-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='1' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
  z-index: 0;
}
.with-bg-noise > * { position: relative; z-index: 1; }

/* Grid */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* Cards carousel — na mobile 2 kolumny w wierszu (po 2 obok siebie, kolejne pary pod sobą).
   Klient widzi pary domków stacked vertically — każdy bliźniak (parter+piętro) jeden pod drugim
   po lewej i po prawej. Mniejsze karty żeby zmieścić 2 w wierszu na <=768px. */
@media (max-width: 768px) {
  .cards-carousel {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: row;
    gap: 12px;
    padding: 0;
    margin: 0;
    overflow: visible;
  }
  /* Mniejsze karty dopasowane do 2-col grid na mobile */
  .cards-carousel .apartment-card__img-wrap {
    aspect-ratio: 4 / 3;
  }
  .cards-carousel .apartment-card__name {
    font-size: 9px;
    letter-spacing: 0.4px;
  }
  .cards-carousel .apartment-card__type {
    font-size: 7.5px;
    letter-spacing: 1.3px;
  }
  .cards-carousel .apartment-card__specs {
    font-size: 9px;
  }
  .cards-carousel .apartment-card__price {
    font-size: 13px;
  }
  .cards-carousel .apartment-card__price-sqm {
    font-size: 8px;
  }
  .cards-carousel .apartment-card__btn {
    font-size: 8px;
    letter-spacing: 0.8px;
    padding: 5px 0;
    gap: 6px;
  }
  .cards-carousel .apartment-card__btn svg {
    width: 16px;
    height: 16px;
    padding: 3.5px;
  }
  .cards-carousel .apartment-card__body {
    padding: 11px 11px 13px;
    gap: 6px;
  }
}
/* Bardzo wąskie ekrany — zostaje 2-col ale jeszcze mniejsze */
@media (max-width: 380px) {
  .cards-carousel { gap: 8px; }
  .cards-carousel .apartment-card__name { font-size: 8px; }
  .cards-carousel .apartment-card__body { padding: 10px 10px 14px; }
}

/* Split grids — responsive 2-col layouts that stack na mobile (<=768px).
   Zastępują dawne inline `style="display:grid; grid-template-columns:..."` które
   nie miały media queries — strony pękały na 375px (kontakt do 1067px). */
.split-2,
.split-1-2,
.split-2-1,
.split-60-40 { display: grid; gap: var(--space-6); }
.split-2     { grid-template-columns: 1fr 1fr; }
.split-1-2   { grid-template-columns: 1fr 2fr; }
.split-2-1   { grid-template-columns: 2fr 1fr; }
.split-60-40 { grid-template-columns: 60% 40%; }
.split-hero       { min-height: 480px; }
.split-hero--tall { min-height: 600px; }
@media (max-width: 768px) {
  /* minmax(0, 1fr) zamiast 1fr — pozwala track'om kurczyć się poniżej min-content
     dziecka. Bez tego długie słowa typu "współwłasności" wymuszają track > viewport. */
  .split-2, .split-1-2, .split-2-1, .split-60-40 { grid-template-columns: minmax(0, 1fr); }
  .split-hero, .split-hero--tall { min-height: auto; }
}

.flex { display: flex; gap: var(--space-4); }
.flex--between { justify-content: space-between; }
.flex--center  { align-items: center; justify-content: center; }
.flex--col     { flex-direction: column; }

/* =================================================================
   BUTTONS — sharp corners, subtle hover lift
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t-base), color var(--t-fast), background var(--t-fast);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity var(--t-fast);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary  { background: var(--champagne); color: var(--onyks); }
.btn--primary:hover { background: var(--champagne-soft); }
.btn--secondary {
  background: transparent;
  color: var(--linen);
  border: 1px solid var(--champagne);
}
.btn--secondary:hover { background: var(--champagne); color: var(--onyks); }
.btn--secondary.on-light { color: var(--onyks); border-color: var(--onyks); }
.btn--secondary.on-light:hover { background: var(--onyks); color: var(--linen); }

/* Lake variant — secondary primary brand color (deep lake blue obok amber) */
.btn--lake { background: var(--lake); color: var(--linen); }
.btn--lake:hover { background: var(--lake-soft); }
.btn--lake-outline {
  background: transparent;
  color: var(--lake);
  border: 1px solid var(--lake);
}
.btn--lake-outline:hover { background: var(--lake); color: var(--linen); }
.btn--lake-outline.on-dark { color: var(--lake-soft); border-color: var(--lake-soft); }
.btn--lake-outline.on-dark:hover { background: var(--lake-soft); color: var(--ink); }
.btn--ghost {
  background: transparent;
  color: var(--champagne);
  border: 1px solid var(--champagne);
}
.btn--block { width: 100%; justify-content: center; }
.btn--lg { padding: 20px 32px; font-size: 14px; }

/* Arrow shift on hover */
.btn span.arrow,
.btn::after { transition: transform var(--t-fast); display: inline-block; }
.btn:hover { letter-spacing: 1.7px; }

/* =================================================================
   HEADER + NAV
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Lake-tinted dark — był (10,10,10) pure black; teraz subtle blue undertone */
  background: rgba(14, 27, 42, 0.94);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  color: var(--linen);
  /* Border w lake-soft (był champagne 10% — mocniejszy lake separator) */
  border-bottom: 1px solid rgba(74, 100, 120, 0.18);
  transition: box-shadow var(--t-base), background var(--t-base), border-color var(--t-base);
  overflow: hidden;
}
.site-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, 0.98);
  border-bottom-color: rgba(228, 196, 153, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.site-header__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 10px clamp(16px, 3vw, 40px);
  max-width: 1600px;
  margin: 0 auto;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-height: 44px; /* tap target — logo image jest 32-38px, padding via min-height */
  transition: opacity var(--t-fast);
}
.brand-logo:hover { opacity: 0.85; }
.brand-logo picture { display: block; }
.brand-logo__img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
/* Fallback text (na wypadek gdyby obraz nie zadziałał) */
.brand-logo__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 3px;
  color: var(--champagne);
  line-height: 1;
}
.brand-logo__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--linen);
  text-transform: uppercase;
  opacity: 0.7;
}
@media (max-width: 1080px) {
  .brand-logo__img { height: 32px; }
}

.site-nav {
  display: flex;
  gap: clamp(4px, 1vw, 14px);
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.site-nav a {
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--linen);
  position: relative;
  padding: 12px 14px;
  border: 1px solid transparent;
  transition: color var(--t-base), background-color var(--t-base), border-color var(--t-base), letter-spacing var(--t-base);
  overflow: hidden;
}
/* Subtelna linia pod tekstem (pod-pin animowany od środka) */
.site-nav a::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: var(--champagne);
  transition: width 320ms cubic-bezier(0.22, 1, 0.36, 1), left 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.site-nav a:hover {
  color: var(--champagne);
  letter-spacing: 1.9px;
}
.site-nav a:hover::before {
  width: calc(100% - 24px);
  left: 12px;
}
/* ACTIVE — wyraźny stan obecnej strony */
.site-nav a.active {
  color: var(--onyks);
  background: var(--champagne);
  border-color: var(--champagne);
  box-shadow: 0 6px 18px rgba(228, 196, 153, 0.35), inset 0 0 0 1px rgba(10, 10, 10, 0.1);
}
.site-nav a.active::before { display: none; }
.site-nav a.active:hover {
  background: var(--champagne-soft);
  border-color: var(--champagne-soft);
  letter-spacing: 1.6px;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
  /* Na mobile: dociśnij burger do prawej krawędzi okna */
  justify-content: flex-end;
  margin-left: auto;
}
.header-phone {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--onyks);
  position: relative;
  background: var(--champagne);
  padding: 10px 18px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.header-phone::before {
  content: '';
  width: 14px; height: 14px;
  background-color: var(--onyks);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/></svg>") center / contain no-repeat;
}
.header-phone:hover {
  background: var(--champagne-soft);
  transform: translateY(-1px);
  color: var(--onyks);
  box-shadow: 0 6px 20px rgba(228, 196, 153, 0.4);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--mist);
  letter-spacing: 1px;
}
.lang-switcher a { padding: 4px 6px; transition: color var(--t-fast); }
.lang-switcher .active { color: var(--champagne); font-weight: 700; }
.lang-switcher .sep { color: rgba(228, 196, 153, 0.3); font-weight: 300; }
.lang-switcher a:hover { color: var(--champagne); }

.burger {
  /* Mocno powiększony hamburger na mobile — prominentny CTA do menu.
     Visual 56×56, wewnątrz grube bary 36×4. Tap area 56×56. */
  display: none;
  width: 56px;
  height: 56px;
  padding: 14px 10px;
  box-sizing: border-box;
  background: rgba(196, 149, 56, 0.08);
  border: 1.5px solid rgba(196, 149, 56, 0.4);
  position: relative;
  cursor: pointer;
  transition: background 280ms ease, border-color 280ms ease, transform 280ms ease;
}
.burger:hover { background: rgba(196, 149, 56, 0.18); border-color: var(--champagne); }
.burger:active { transform: scale(0.94); }
.burger span {
  display: block;
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3.5px; /* z 1.5px → 3.5px (~2.3× grubsze) */
  background: var(--champagne);
  border-radius: 1px;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), top 320ms cubic-bezier(0.22, 1, 0.36, 1), bottom 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 16px; }
/* Krzyżyk gdy menu jest otwarte (parent ma aria-expanded="true") */
.burger[aria-expanded="true"] span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* Header phone — kompakt na średnich ekranach */
@media (max-width: 1280px) {
  .site-header__inner { gap: 24px; padding: 14px 24px; }
  .site-nav { gap: clamp(8px, 1.2vw, 16px); }
  .site-nav a { font-size: 11px; letter-spacing: 1.2px; }
  .header-phone { padding: 9px 14px; font-size: 12px; }
  .header-phone .header-phone__label { display: none; }
}

/* Mobile — burger zamiast nawigacji */
@media (max-width: 1080px) {
  /* 2 columns na mobile (brand + right) — 1fr pushes burger flush do prawej.
     Wcześniej `auto 1fr auto` z 3 grid-itemów ale na mobile site-nav ma display:none,
     więc grid widzi tylko 2 dzieci → site-header__right siedział w środkowej (1fr)
     kolumnie zamiast prawej (auto). */
  .site-header__inner { grid-template-columns: auto 1fr; padding: 14px 20px; }
  .site-nav, .header-phone, .lang-switcher { display: none; }
  .burger { display: block; }
  .site-header__right { justify-self: end; }
  .brand-logo__sub { display: none; }
}

.mobile-menu {
  position: fixed;
  inset: 0;
  /* Lake-tinted full-screen overlay — głęboka noc nad jeziorem */
  background: linear-gradient(180deg, var(--ink) 0%, var(--lake) 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 96px 28px 40px;
  overflow-y: auto;
  /* Animowany overlay — zawsze w DOM, kontrolowany opacity + transform */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px) scale(0.985);
  pointer-events: none;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 520ms;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0s;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--linen);
  padding: 18px 0;
  border-bottom: 1px solid rgba(74, 100, 120, 0.4);
  /* Każdy item slide-in z opóźnieniem (stagger) gdy menu się otwiera */
  opacity: 0;
  transform: translateX(-20px);
  transition:
    color var(--t-fast),
    padding-left var(--t-fast),
    opacity 480ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.mobile-menu.is-open a { opacity: 1; transform: translateX(0); }
.mobile-menu.is-open a:nth-child(1) { transition-delay: 200ms; }
.mobile-menu.is-open a:nth-child(2) { transition-delay: 260ms; }
.mobile-menu.is-open a:nth-child(3) { transition-delay: 320ms; }
.mobile-menu.is-open a:nth-child(4) { transition-delay: 380ms; }
.mobile-menu.is-open a:nth-child(5) { transition-delay: 440ms; }
.mobile-menu.is-open a:nth-child(6) { transition-delay: 500ms; }
.mobile-menu.is-open a:nth-child(7) { transition-delay: 560ms; }
.mobile-menu.is-open a:nth-child(8) { transition-delay: 620ms; }
.mobile-menu a:hover {
  color: var(--champagne);
  padding-left: 12px;
}

/* =================================================================
   HERO
   ================================================================= */
.hero {
  min-height: 720px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
}
.hero__half {
  position: relative;
  padding: var(--space-9) var(--space-9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-5);
  background-size: cover;
  background-position: center;
  min-height: 600px;
  transition: transform var(--t-extra-slow);
}
.hero__half::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.85) 100%);
  pointer-events: none;
  transition: opacity var(--t-base);
}
.hero__half--right { background-color: var(--forest); }
.hero__half--right::before {
  background: linear-gradient(180deg, rgba(26,42,31,0.5) 0%, rgba(10,10,10,0.85) 100%);
}
.hero__half:hover::before { opacity: 0.85; }
.hero__half > * { position: relative; z-index: 1; }

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: var(--champagne);
  letter-spacing: -0.01em;
}
.hero__headline--right { color: var(--linen); }
.hero__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--linen);
  font-weight: 400;
  max-width: 480px;
}
.hero__sub strong { font-weight: 600; color: var(--champagne); }

/* =================================================================
   HERO FULLSCREEN — slider z 4 zdjęciami + Ken Burns + mocny shadow
   ================================================================= */
.hero-fullscreen {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--onyks);
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2.2s cubic-bezier(0.45, 0, 0.55, 1), transform 14s ease-out;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Split lato/zima — dwa zdjęcia obok siebie z białą kreską między */
.hero-split {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.hero-split__half {
  position: relative;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero-split__half--lato { background-position: center 35%; }
.hero-split__half--zima { background-position: center 50%; }

/* Biała kreska między ujęciami — z ozdobnym kółkiem w środku */
.hero-split::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 6px;
  margin-left: -3px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.92) 12%,
    rgba(255, 255, 255, 0.96) 50%,
    rgba(255, 255, 255, 0.92) 88%,
    rgba(255, 255, 255, 0.0) 100%
  );
  box-shadow:
    0 0 24px rgba(255, 255, 255, 0.35),
    0 0 60px rgba(255, 255, 255, 0.15);
  z-index: 2;
  pointer-events: none;
}
.hero-split-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  padding: 32px 44px;
  background:
    radial-gradient(ellipse at center, rgba(20, 14, 8, 0.95) 0%, rgba(10, 8, 5, 0.98) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(196, 149, 56, 0.85);
  box-shadow:
    inset 0 0 40px rgba(196, 149, 56, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 0 8px rgba(10, 8, 5, 0.45),
    0 30px 80px rgba(0, 0, 0, 0.7);
}
.hero-split-logo__img {
  display: block;
  height: 88px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
@media (max-width: 960px) {
  .hero-split-logo { padding: 22px 30px; }
  .hero-split-logo__img { height: 64px; }
}
@media (max-width: 640px) {
  .hero-split::before { width: 4px; margin-left: -2px; }
  .hero-split-logo { padding: 16px 22px; }
  .hero-split-logo__img { height: 46px; }
}
.hero-split__season {
  position: absolute;
  top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  font-weight: 400;
  color: var(--linen);
  letter-spacing: 0.08em;
  padding: 8px 18px;
  background: rgba(14, 27, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 3;
}
.hero-split__half--lato .hero-split__season { left: 28px; }
.hero-split__half--zima .hero-split__season { right: 28px; }
@media (max-width: 640px) {
  .hero-split__season {
    font-size: 13px;
    top: 16px;
    padding: 6px 12px;
    letter-spacing: 0.05em;
  }
  .hero-split__half--lato .hero-split__season { left: 14px; }
  .hero-split__half--zima .hero-split__season { right: 14px; }
}

.hero-fullscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    /* Scrim pod tekstem (lewa-srodek): ciemne za headline + sub */
    radial-gradient(ellipse 75% 75% at 28% 62%, rgba(10,8,5,0.72) 0%, rgba(10,8,5,0.45) 35%, transparent 70%),
    /* Dolny ciemny pas pod CTA i sub */
    linear-gradient(180deg, rgba(10,8,5,0.4) 0%, rgba(10,8,5,0.25) 30%, rgba(10,8,5,0.5) 60%, rgba(10,8,5,0.88) 100%),
    /* Lewa krawedz mocniejsza */
    linear-gradient(95deg, rgba(10,8,5,0.55) 0%, rgba(10,8,5,0.25) 35%, rgba(10,8,5,0.05) 60%, transparent 100%);
  pointer-events: none;
}
.hero-fullscreen__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 140px var(--container-pad) var(--space-9);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 720px;
  gap: var(--space-5);
}
.hero-fullscreen__headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--linen);
  letter-spacing: -0.02em;
  max-width: 760px;
  margin: 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.7),
    0 12px 32px rgba(0, 0, 0, 0.5);
}
.hero-fullscreen__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--linen);
  font-weight: 500;
  max-width: 640px;
  margin: 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 3px 8px rgba(0, 0, 0, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.7);
}
.hero-fullscreen__sub strong { color: var(--champagne); font-weight: 600; }
.hero-fullscreen__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-fullscreen__ctas .btn--secondary {
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-fullscreen__ctas .btn--secondary:hover {
  background: var(--champagne);
  color: var(--onyks);
  border-color: var(--champagne);
}
.hero-fullscreen__dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}
.hero-dot {
  width: 32px;
  height: 2px;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: background 300ms ease;
}
.hero-dot.is-active { background: var(--champagne); }
.hero-dot:hover { background: rgba(228, 196, 153, 0.7); }
@media (max-width: 960px) {
  .hero-fullscreen { min-height: 560px; }
  .hero-fullscreen__inner { padding: 96px var(--container-pad) var(--space-7); min-height: 560px; }
  .hero-fullscreen__sub { font-size: 16px; }
}

/* =================================================================
   INWENTARZ — intro paragraphs (3 columns, full width)
   ================================================================= */
.inwentarz-intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 48px;
  max-width: 100%;
}
.inwentarz-intro p {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--granite);
}
.inwentarz-intro p strong { font-weight: 600; color: var(--bark); }
@media (max-width: 1100px) {
  .inwentarz-intro { grid-template-columns: repeat(2, 1fr); gap: 24px 32px; }
}
@media (max-width: 720px) {
  /* Horizontal carousel — 3 paragrafy jako karty obok siebie, swajpowalne */
  .inwentarz-intro {
    grid-template-columns: none;
    grid-template-rows: 1fr;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-4);
    gap: 12px;
    padding: 4px var(--space-4) 16px;
    margin: 0 calc(var(--space-4) * -1);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .inwentarz-intro::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .inwentarz-intro p {
    scroll-snap-align: start;
    background: var(--snow);
    padding: 18px;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 2px 12px rgba(14, 27, 42, 0.05);
  }
}

.inwentarz-cards-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: var(--space-9) 0 var(--space-6) 0;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(107, 79, 58, 0.18);
}
.inwentarz-cards-header h3 {
  margin: 0;
  max-width: 760px;
}
.inwentarz-cards-header__count {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bark);
  white-space: nowrap;
  padding-bottom: 8px;
}
@media (max-width: 720px) {
  .inwentarz-cards-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .inwentarz-cards-header__count { padding-bottom: 0; }
}

/* =================================================================
   SITE PLAN — stylizowany plan WPP (układ inwestycji)
   ================================================================= */
.site-plan-section { padding: var(--space-4) 0 var(--space-7); }
.site-plan {
  margin: 0;
  background: linear-gradient(155deg, #F8F6F1 0%, #F2EAD9 100%);
  border: 1px solid rgba(107, 79, 58, 0.12);
  padding: clamp(20px, 3vw, 48px);
  position: relative;
  overflow: hidden;
}
.site-plan::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(228, 196, 153, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 100% 100%, rgba(90, 107, 79, 0.12), transparent 60%);
  pointer-events: none;
}
.site-plan__svg {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.site-plan__svg .plot {
  fill: #C49538;
  stroke: #5A4030;
  stroke-width: 1.5;
  fill-opacity: 0.55;
  transition: fill-opacity var(--t-base), stroke-width var(--t-base);
}
.site-plan__svg .plot--available { fill: #C49538; }
.site-plan__svg .plot--reserved { fill: #B5BAB0; fill-opacity: 0.4; }
.site-plan__svg .plot--spa {
  fill: #4A5D45;
  fill-opacity: 0.18;
  stroke: #4A5D45;
  stroke-dasharray: 6 4;
  stroke-width: 1.4;
}
.site-plan__svg .plot-link { cursor: pointer; outline: none; }
.site-plan__svg .plot-link:hover .plot--clickable {
  fill-opacity: 0.92;
  stroke-width: 2.4;
}
.site-plan__svg .plot-link:focus-visible .plot--clickable {
  stroke: #1A2B1F;
  stroke-width: 2.6;
}
.site-plan__svg .plot-link .plot-name,
.site-plan__svg .plot-link .plot-meta,
.site-plan__svg .plot-link .plot-num {
  transition: fill var(--t-base);
}
.site-plan__svg .plot-link:hover .plot-name { fill: #0A0A0A; }
.site-plan__svg .plot-link:hover .plot-num { fill: #1A2B1F; }
.site-plan__svg .plot-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  fill: #5A4030;
  letter-spacing: 1px;
}
.site-plan__svg .plot-num--dark { fill: #1A2B1F; }
.site-plan__svg .plot-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 300;
  fill: #1A2B1F;
  text-anchor: middle;
  letter-spacing: -0.01em;
}
.site-plan__svg .plot-name--reserved { fill: #7A7A7A; }
.site-plan__svg .plot-meta {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 500;
  fill: #5A4030;
  text-anchor: middle;
  letter-spacing: 0.4px;
  opacity: 0.7;
}
.site-plan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(107, 79, 58, 0.15);
  font-size: 13px;
  color: var(--granite);
  font-weight: 500;
  letter-spacing: 0.3px;
}
.site-plan__legend .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.site-plan__legend .legend-swatch {
  display: inline-block;
  width: 18px;
  height: 14px;
  border: 1px solid #5A4030;
}
.legend-swatch--available { background: rgba(228, 196, 153, 0.55); }
.legend-swatch--reserved {
  background: rgba(196, 191, 182, 0.4);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(107,79,58,0.4) 3px, rgba(107,79,58,0.4) 4px);
}
.legend-swatch--spa { background: rgba(90, 107, 79, 0.18); border-style: dashed; border-color: #4A5D45; }
.legend-swatch--road { background: rgba(122, 122, 122, 0.32); border-color: #7A7A7A; }
@media (max-width: 720px) {
  .site-plan { padding: 16px; }
  .site-plan__legend { gap: 14px; font-size: 12px; }
}

/* =================================================================
   APARTMENTS LIST — interaktywna mapa z hover-highlight
   ================================================================= */
.apt-map-section {
  display: grid;
  grid-template-columns: 60% 40%;
  background: var(--linen);
  align-items: start;
}
.apt-map {
  position: sticky;
  top: 0;
  align-self: start;
  background-color: var(--forest);
  overflow: hidden;
  /* WAŻNE: brak height/min-height — kontener musi mieć dokładnie wysokość zdjęcia,
     żeby SVG overlay (inset:0) mapował koordy 1:1 na piksele zdjęcia */
}
.apt-map__img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0.92);
  transition: filter 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.apt-map.is-hovering .apt-map__img {
  filter: brightness(0.32) saturate(0.55) blur(1.5px);
}
.apt-map__hint {
  position: absolute;
  bottom: 24px;
  left: 24px;
  color: var(--linen);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  transition: opacity var(--t-base);
  pointer-events: none;
}
.apt-map.is-hovering .apt-map__hint { opacity: 0; }

.apt-map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* SVG niewidoczny dla myszy poza linkami polygonów */
}
.apt-map__overlay .apt-shape-link {
  pointer-events: auto; /* tylko sam <a> z polygonem łapie hover/click */
  cursor: pointer;
  outline: none;
}
.apt-map__overlay .apt-shape-link--reserved {
  cursor: default;
}
.apt-map__overlay .apt-shape {
  fill: rgba(228, 196, 153, 0);
  stroke: rgba(228, 196, 153, 0);
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 14px rgba(228, 196, 153, 0));
  transition: fill 320ms cubic-bezier(0.22, 1, 0.36, 1),
              stroke 320ms cubic-bezier(0.22, 1, 0.36, 1),
              stroke-width 320ms cubic-bezier(0.22, 1, 0.36, 1),
              filter 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* Hover bezpośrednio na polygonie + state aktywowany przez listę — MOCNY highlight */
.apt-map__overlay .apt-shape-link:hover .apt-shape,
.apt-map__overlay .apt-shape-link:focus-visible .apt-shape,
.apt-map__overlay .apt-shape.is-active {
  fill: rgba(228, 196, 153, 0.55);
  stroke: #FFFFFF;
  stroke-width: 4.5;
  filter:
    drop-shadow(0 0 18px rgba(228, 196, 153, 1))
    drop-shadow(0 0 40px rgba(228, 196, 153, 0.8))
    drop-shadow(0 0 80px rgba(228, 196, 153, 0.5));
  animation: aptShapePulse 1.8s ease-in-out infinite;
}
@keyframes aptShapePulse {
  0%, 100% {
    fill: rgba(228, 196, 153, 0.50);
    filter:
      drop-shadow(0 0 16px rgba(228, 196, 153, 1))
      drop-shadow(0 0 36px rgba(228, 196, 153, 0.75))
      drop-shadow(0 0 72px rgba(228, 196, 153, 0.45));
  }
  50% {
    fill: rgba(228, 196, 153, 0.62);
    filter:
      drop-shadow(0 0 22px rgba(228, 196, 153, 1))
      drop-shadow(0 0 52px rgba(228, 196, 153, 0.9))
      drop-shadow(0 0 100px rgba(228, 196, 153, 0.6));
  }
}
.apt-map__overlay .apt-shape-link--reserved:hover .apt-shape,
.apt-map__overlay .apt-shape-link--reserved.is-active .apt-shape {
  fill: rgba(196, 191, 182, 0.55);
  stroke: var(--mist);
}
/* Tryb debug ?debug=1 — wszystkie polygony widoczne z numerami */
.apt-map--debug .apt-map__overlay .apt-shape {
  fill: rgba(228, 196, 153, 0.18);
  stroke: #C49538;
  stroke-width: 2;
  stroke-dasharray: 4 2;
}

.apt-map__arrow {
  position: absolute;
  width: 60px;
  height: 80px;
  transform: translate(-50%, -100%);
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.apt-map__arrow.is-active {
  opacity: 1;
  animation: aptArrowBounce 1.4s ease-in-out infinite;
}
@keyframes aptArrowBounce {
  0%, 100% { transform: translate(-50%, -100%); }
  50%      { transform: translate(-50%, -110%); }
}

.apt-map__label {
  position: absolute;
  background: var(--onyks);
  color: var(--linen);
  padding: 12px 20px;
  border: 1px solid rgba(228, 196, 153, 0.35);
  font-family: var(--font-display);
  text-align: center;
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 90px));
  opacity: 0;
  transition: opacity 280ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.55);
}
.apt-map__label.is-active { opacity: 1; }
.apt-map__label strong {
  display: block;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--linen);
}
.apt-map__label small {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--champagne);
  text-transform: uppercase;
  margin-top: 4px;
}

.apt-list {
  background: var(--snow);
  border-left: 1px solid var(--mist);
  display: flex;
  flex-direction: column;
}
.apt-list__head {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--mist);
}
.apt-list__head h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 500;
}
.apt-list__head p {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  margin: 6px 0 0;
  font-weight: 500;
}
.apt-list__rows { display: flex; flex-direction: column; }

.apt-row {
  display: flex;
  padding: 22px 32px;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--mist);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition:
    background-color 220ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-left 280ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  z-index: 1;
}
/* MOCNE wyróżnienie aktywnego apartamentu na liście */
.apt-row:hover,
.apt-row.is-highlighted {
  background-color: var(--champagne);
  padding-left: 48px;
  box-shadow:
    -1px 0 0 0 var(--bark) inset,
    0 6px 24px rgba(0, 0, 0, 0.18),
    0 1px 0 0 var(--bark);
  z-index: 3;
  transform: translateX(-2px);
}
/* Gruby pionowy znacznik z lewej */
.apt-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--bark);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.apt-row:hover::before,
.apt-row.is-highlighted::before { transform: scaleY(1); }
.apt-row__name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 500;
  color: var(--onyks);
  margin: 0;
  letter-spacing: 0.3px;
  transition: color var(--t-fast), letter-spacing var(--t-base);
}
/* W aktywnym stanie nazwa kursywą, ciemna na champagne tle, większa litera */
.apt-row:hover .apt-row__name,
.apt-row.is-highlighted .apt-row__name {
  color: var(--onyks);
  letter-spacing: 0.6px;
  font-weight: 600;
}
.apt-row:hover .apt-row__meta,
.apt-row.is-highlighted .apt-row__meta {
  color: var(--bark);
  font-weight: 500;
}
.apt-row__meta {
  font-size: 12px;
  color: var(--slate);
  margin: 4px 0 0;
  letter-spacing: 0.2px;
}
.apt-row__right {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 12px;
}
.apt-row__price {
  font-size: 17px;
  font-weight: 600;
  color: var(--onyks);
  transition: color var(--t-base);
}
.apt-row:hover .apt-row__price,
.apt-row.is-highlighted .apt-row__price { color: var(--onyks); font-weight: 700; }

.apt-row__arrow {
  font-size: 22px;
  color: var(--bark);
  transition: transform var(--t-base), color var(--t-base);
  display: inline-block;
}
.apt-row:hover .apt-row__arrow,
.apt-row.is-highlighted .apt-row__arrow {
  transform: translateX(10px);
  color: var(--onyks);
  font-weight: 700;
}
.apt-row__tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--champagne);
}
.apt-row--reserved {
  background: var(--charcoal);
  opacity: 0.92;
  cursor: default;
}
.apt-row--reserved:hover,
.apt-row--reserved.is-highlighted {
  background-color: var(--onyks);
  padding-left: 48px;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.4),
    0 1px 0 0 var(--champagne);
  transform: translateX(-2px);
}
.apt-row--reserved::before {
  background: var(--champagne);
}
.apt-row--reserved .apt-row__name { color: var(--mist); transition: color var(--t-base); }
.apt-row--reserved:hover .apt-row__name,
.apt-row--reserved.is-highlighted .apt-row__name {
  color: var(--champagne);
  letter-spacing: 0.6px;
  font-weight: 600;
}
.apt-row--reserved .apt-row__meta { color: var(--slate); }
.apt-row--reserved:hover .apt-row__meta,
.apt-row--reserved.is-highlighted .apt-row__meta { color: var(--mist); }

/* Thumb na mobile w apt-row — domyślnie hidden, mobile tylko */
.apt-row__thumb { display: none; }

@media (max-width: 960px) {
  .apt-map-section { grid-template-columns: 1fr; }
  .apt-map__label { transform: translate(-50%, calc(-100% - 70px)); padding: 8px 14px; }
  .apt-map__label strong { font-size: 17px; }
  .apt-row { padding: 14px 18px; gap: 12px; }
  .apt-row__name { font-size: 22px; }
  /* Małe zdjęcie po lewej stronie kazdego apartamentu */
  .apt-row__thumb {
    display: block;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    background-color: var(--mist);
    box-shadow: 0 1px 4px rgba(14, 27, 42, 0.15);
  }
  .apt-row--reserved .apt-row__thumb { filter: grayscale(0.65) brightness(0.75); }
}
/* Polygon-mapa interaktywna nie nadaje się na mobile (touch targets 6-40px na zdjęciu).
   Poniżej 768px schowana — lista stackuje się na pełną szerokość i zawiera
   wszystkie info (nazwa, status, m², działka, cena). */
@media (max-width: 768px) {
  .apt-map { display: none; }
}

/* =================================================================
   SUBPAGE HERO — wycentrowany, z mocnym shadow jak hero-fullscreen
   ================================================================= */
.subpage-hero {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-color: var(--onyks);
  overflow: hidden;
}
.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(10,10,10,0.65), rgba(10,10,10,0.25) 60%, transparent 95%),
    linear-gradient(180deg, rgba(10,10,10,0.50) 0%, rgba(10,10,10,0.30) 40%, rgba(10,10,10,0.65) 100%);
  pointer-events: none;
  z-index: 1;
}
.subpage-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 140px var(--container-pad) var(--space-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 560px;
  gap: var(--space-5);
}
.subpage-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 500;
  line-height: 0.98;
  color: var(--linen);
  letter-spacing: -0.012em;
  max-width: 1000px;
  margin: 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 4px 12px rgba(0, 0, 0, 0.95),
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 24px 80px rgba(0, 0, 0, 0.6);
}
.subpage-hero__headline em {
  font-style: italic;
  color: var(--champagne);
  font-weight: 400;
}
.subpage-hero__sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--linen);
  font-weight: 500;
  max-width: 760px;
  margin: 0;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 1),
    0 3px 8px rgba(0, 0, 0, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.7);
}
.subpage-hero__sub strong { color: var(--champagne); font-weight: 600; }
.subpage-hero__crumb {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--champagne);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0;
}
@media (max-width: 720px) {
  .subpage-hero { min-height: 420px; }
  .subpage-hero__inner { padding: 96px var(--container-pad) var(--space-7); min-height: 420px; }
  .subpage-hero__sub { font-size: 16px; }
}

/* =================================================================
   LOCATION — mapa Google + amenity cards
   ================================================================= */
.location-map {
  position: relative;
  border: 1px solid rgba(107, 79, 58, 0.18);
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  background: var(--charcoal);
}
.location-map iframe {
  filter: saturate(0.9);
}
.location-map__overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 5;
}

/* Amenities cluster — Biedronka/restauracje/stacje grupy */
.amenities-cluster__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--bark);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}
.amenity-row {
  background: var(--snow);
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  padding: var(--space-4) var(--space-5);
  transition: transform var(--t-base), box-shadow var(--t-base);
  border-top: 1px solid rgba(107, 79, 58, 0.12);
}
.amenity-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
}
.amenity-row--highlight {
  background: linear-gradient(135deg, var(--linen) 0%, rgba(228, 196, 153, 0.18) 100%);
  border-top-color: var(--champagne);
}
.amenity-row__dist {
  border-right: 1px solid rgba(107, 79, 58, 0.18);
  padding-right: 16px;
}
.amenity-row__km {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: var(--bark);
  margin: 0;
}
.amenity-row__time {
  font-size: 12px;
  color: var(--slate);
  margin-top: 6px;
  font-weight: 500;
}
.amenity-row__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--bark);
  text-transform: uppercase;
  margin: 0 0 6px;
}
.amenity-row__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--onyks);
  margin: 0 0 8px;
  line-height: 1.2;
}
.amenity-row__text {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
  margin: 0;
}
@media (max-width: 640px) {
  .amenity-row { grid-template-columns: 1fr; gap: 12px; padding: var(--space-3) var(--space-4); }
  .amenity-row__dist { border-right: none; border-bottom: 1px solid rgba(107, 79, 58, 0.18); padding-right: 0; padding-bottom: 8px; }
  .amenity-row__km { font-size: 22px; display: inline-block; margin-right: 12px; }
  .amenity-row__time { display: inline-block; }
}

.amenity-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(107, 79, 58, 0.15);
  padding: 28px 26px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.amenity-card:hover {
  transform: translateY(-4px);
  border-color: var(--bark);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
.amenity-card__distance {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 48px;
  line-height: 0.95;
  color: var(--champagne);
  margin: 0;
}
.amenity-card__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--onyks);
  margin: 8px 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(107, 79, 58, 0.18);
}
.amenity-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.amenity-card__list li {
  font-size: 14px;
  color: var(--granite);
  position: relative;
  padding-left: 18px;
}
.amenity-card__list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--bark);
  font-weight: 700;
  font-size: 18px;
}

/* =================================================================
   SECOND HOME — "Pomysł na Twój drugi dom" karty
   ================================================================= */
.second-home-grid { gap: clamp(20px, 2.5vw, 36px); }
.second-home-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(107, 79, 58, 0.18);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.second-home-card:hover {
  transform: translateY(-4px);
  border-color: var(--bark);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
}
.second-home-card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(228, 196, 153, 0.20);
  border: 1px solid rgba(107, 79, 58, 0.22);
  color: var(--bark);
  margin-bottom: 6px;
  transition: background var(--t-base), color var(--t-base), transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
}
.second-home-card__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}
.second-home-card:hover .second-home-card__icon {
  background: var(--bark);
  color: var(--linen);
  transform: rotate(-3deg) scale(1.04);
}
.second-home-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  color: var(--onyks);
  line-height: 1.15;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(107, 79, 58, 0.18);
}
.second-home-card__text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--granite);
  margin: 0;
}

/* =================================================================
   SECONDARY ROI — schowany kalkulator dla inwestorów (opcjonalny)
   ================================================================= */
.secondary-roi { background: var(--snow); }
.roi-details {
  border: 1px solid rgba(107, 79, 58, 0.18);
  background: rgba(228, 196, 153, 0.05);
}
.roi-details__summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background var(--t-fast);
}
.roi-details__summary::-webkit-details-marker { display: none; }
.roi-details__summary:hover { background: rgba(228, 196, 153, 0.10); }
.roi-details__chevron {
  font-size: 16px;
  color: var(--bark);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}
.roi-details[open] .roi-details__chevron { transform: rotate(90deg); }
.roi-details__label { display: flex; flex-direction: column; gap: 2px; }
.roi-details__label strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 19px;
  color: var(--onyks);
}
.roi-details__label small {
  font-size: 12px;
  color: var(--slate);
  font-weight: 500;
}
.roi-details__body {
  padding: 0 28px 28px;
}

/* =================================================================
   ATTRACTIONS — lista prosta + atrakcje aktywne + ośrodek tiles
   ================================================================= */
.attractions-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 56px;
}
.attractions-list li {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--onyks);
  padding: 8px 0 12px;
  border-bottom: 1px solid rgba(107, 79, 58, 0.18);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.attractions-list__bullet {
  color: var(--champagne);
  font-weight: 600;
  font-style: normal;
  font-size: 32px;
  line-height: 0.6;
  flex-shrink: 0;
}
@media (max-width: 720px) {
  .attractions-list { grid-template-columns: 1fr; gap: 10px; }
  .attractions-list li { font-size: 22px; }
}

.attraction-card {
  background: var(--snow);
  border: 1px solid rgba(107, 79, 58, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.attraction-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}
.attraction-card__img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  filter: brightness(0.95) saturate(0.95);
  transition: filter var(--t-base), transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}
.attraction-card:hover .attraction-card__img {
  filter: brightness(1) saturate(1.05);
}
.attraction-card__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--onyks);
  margin: 22px 22px 8px;
  line-height: 1.15;
}
.attraction-card__text {
  font-size: 13.5px;
  color: var(--granite);
  line-height: 1.6;
  margin: 0 22px 22px;
}

.amenity-tile {
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(107, 79, 58, 0.15);
  text-align: left;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.amenity-tile:hover {
  transform: translateY(-4px);
  border-color: var(--bark);
  box-shadow: 0 14px 36px rgba(0,0,0,0.10);
}
.amenity-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  color: var(--bark);
  background: rgba(228, 196, 153, 0.18);
  border: 1px solid rgba(107, 79, 58, 0.20);
  margin-bottom: 4px;
  transition: background var(--t-base), color var(--t-base), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}
.amenity-tile__icon svg {
  width: 32px;
  height: 32px;
  display: block;
}
.amenity-tile:hover .amenity-tile__icon {
  background: var(--bark);
  color: var(--linen);
  transform: rotate(-3deg) scale(1.04);
}
.amenity-tile__distance {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--champagne);
  text-transform: uppercase;
  margin: 0;
}
.amenity-tile__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 21px;
  color: var(--onyks);
  margin: 0;
  line-height: 1.15;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(107, 79, 58, 0.15);
}
.amenity-tile__text {
  font-size: 13px;
  color: var(--granite);
  line-height: 1.55;
  margin: 0;
}

/* =================================================================
   B2B STRIP — dyskretny pasek dla inwestorów hurtowych
   ================================================================= */
.b2b-strip {
  background: linear-gradient(180deg, var(--forest) 0%, #142119 50%, var(--onyks) 100%);
  padding: 26px var(--container-pad);
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  color: var(--mist);
  border-top: 1px solid rgba(228, 196, 153, 0.12);
  border-bottom: 1px solid rgba(228, 196, 153, 0.08);
  position: relative;
  overflow: hidden;
}
.b2b-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 200px at 50% 0%, rgba(228, 196, 153, 0.06), transparent 70%);
  pointer-events: none;
}
.b2b-strip__text {
  margin: 0;
  position: relative;
  z-index: 1;
}
.b2b-strip a {
  color: var(--champagne);
  font-weight: 500;
  border-bottom: 1px solid rgba(228, 196, 153, 0.4);
  padding-bottom: 1px;
  margin-left: 6px;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.b2b-strip a:hover {
  color: var(--champagne-soft);
  border-bottom-color: var(--champagne);
}
@media (max-width: 960px) {
  .b2b-strip { padding: 20px var(--container-pad); font-size: 13px; }
  .b2b-strip a { display: block; margin-left: 0; margin-top: 6px; }
}

/* =================================================================
   USP BAR — editorial: foto tła w base mocno rozjaśnione (brightness 1.55,
   saturate 0.18), na hover wolno wraca pełna kolorystyka. Tekst minimalistyczny,
   duży, ink color w base → linen w hover gdy bottom dark gradient się włącza.
   Filter brightness na ::before (nie na .usp-item) żeby nie modyfikował tekstu.
   ================================================================= */
.usp-bar {
  background: var(--linen);
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 0;
  position: relative;
}
.usp-item {
  flex: 1;
  position: relative;
  min-height: 400px;
  padding: 26px 30px 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: left;
  border: 0;
  cursor: default;
  overflow: hidden;
  isolation: isolate;
  background: var(--linen);
}
/* Foto tła w pseudo-elemencie — żeby filter brightness/saturate dotykał TYLKO
   obrazka, nie tekstu. Custom property --usp-bg ustawiony inline w HTML. */
.usp-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--usp-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Bardzo wyciszone — tylko kontury budynków/drzew widoczne na tle linen.
     opacity 0.18 + B&W + contrast wyciąga zarysy bez krzykliwego foto. */
  filter: saturate(0) contrast(1.4) brightness(1.05);
  opacity: 0.18;
  transform: scale(1.02);
  transition:
    filter 2600ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 2600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 3200ms cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
  pointer-events: none;
}
.usp-item:hover::before {
  filter: saturate(1) contrast(1) brightness(1);
  opacity: 1;
  transform: scale(1);
}
/* Bottom dark gradient — pojawia się TYLKO na hover, kiedy foto jest w pełnych
   kolorach. W base nie potrzebny bo tło jest jasne (rozjaśniona foto = white-ish). */
.usp-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 27, 42, 0.72) 0%, rgba(14, 27, 42, 0.30) 45%, transparent 75%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 2300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.usp-item:hover::after { opacity: 1; }
.usp-num {
  position: absolute;
  top: 22px;
  left: 30px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3.5px;
  color: var(--bark);
  z-index: 2;
  transition: color 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.usp-item:hover .usp-num { color: var(--champagne); }
.usp-text {
  font-family: var(--font-display);
  font-size: 33px;
  font-weight: 200;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.03em;
  position: relative;
  z-index: 2;
  max-width: 360px;
  transition: color 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.usp-item:hover .usp-text { color: var(--linen); }
.usp-text strong {
  font-weight: 500;
  color: var(--bark);
  transition: color 2200ms cubic-bezier(0.22, 1, 0.36, 1);
}
.usp-item:hover .usp-text strong { color: var(--champagne); }
.usp-item.highlight .usp-num { color: var(--champagne); }
.usp-item.highlight .usp-text strong { color: var(--champagne); font-weight: 700; }
@media (max-width: 960px) {
  /* Horizontal scroll carousel na mobile — 4 ikony swajpowalne, każda jako wyróżniona komórka */
  .usp-bar {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-4);
    gap: 14px;
    padding: var(--space-5) var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .usp-bar::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .usp-item {
    flex: 0 0 auto;
    width: 62%;
    max-width: 240px;
    min-height: 180px;
    scroll-snap-align: start;
    padding: 14px 16px 16px;
    box-shadow: 0 3px 14px rgba(14, 27, 42, 0.12);
    border-radius: 4px;
  }
  .usp-num { top: 12px; left: 16px; font-size: 9.5px; letter-spacing: 2.5px; color: var(--champagne); }
  .usp-text { font-size: 17px; font-weight: 300; line-height: 1.2; letter-spacing: -0.01em; color: var(--linen); max-width: none; }
  .usp-text strong { color: var(--champagne); font-weight: 600; }
  /* Mobile/touch — brak hover, więc kafle pokazują foto w pełnych kolorach
     + dark gradient od razu (stan jak desktop:hover). */
  .usp-item::before {
    filter: saturate(1) contrast(1) brightness(1);
    opacity: 1;
    transform: scale(1);
  }
  .usp-item::after { opacity: 1; }
}

/* Sequential pulse animation — komórki USP "oddychają" jedna po drugiej (4s cycle, 1s offsets).
   Tylko poniżej 960 (mobile) i tylko gdy user nie ma reduced-motion. */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .usp-item {
    animation: usp-breathe 4s ease-in-out infinite;
  }
  .usp-item:nth-child(1) { animation-delay: 0s; }
  .usp-item:nth-child(2) { animation-delay: 1s; }
  .usp-item:nth-child(3) { animation-delay: 2s; }
  .usp-item:nth-child(4) { animation-delay: 3s; }
}
@keyframes usp-breathe {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 12px rgba(14, 27, 42, 0.06);
  }
  50% {
    transform: translateY(-4px) scale(1.015);
    box-shadow: 0 8px 28px rgba(196, 149, 56, 0.18);
    border-color: rgba(196, 149, 56, 0.55);
  }
}

/* =================================================================
   APT GALLERY — galeria zdjęć na karcie szczegółowej + lightbox
   ================================================================= */
.apt-gallery {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.apt-gallery__main {
  position: relative;
  flex: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--mist);
  overflow: hidden;
  min-height: 460px;
}
.apt-gallery__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-color: var(--mist);
  transition: transform var(--t-extra-slow);
}
.apt-gallery__main:hover .apt-gallery__img { transform: scale(1.04); }
.apt-gallery__caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--linen);
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.7) 80%);
  padding: 24px 16px 8px 16px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
  pointer-events: none;
}
.apt-gallery__count {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--onyks);
  background: var(--champagne);
  padding: 8px 14px;
  pointer-events: none;
}
.apt-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  background: var(--snow);
}
.apt-gallery__thumb {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--mist);
  overflow: hidden;
  transition: transform var(--t-fast);
}
.apt-gallery__thumb:hover { transform: scale(0.97); }
.apt-gallery__thumb-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--linen);
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.85) 100%);
  padding: 14px 8px 6px;
  text-align: left;
  pointer-events: none;
}
.apt-gallery__more {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.65);
  color: var(--linen);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* === Lightbox === */
.apt-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.3s ease;
}
.apt-lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.apt-lightbox__inner {
  position: relative;
  max-width: 1200px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.apt-lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.apt-lightbox__caption {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--linen);
  margin: 0;
  text-align: center;
}
.apt-lightbox__counter {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mist);
  margin: 0;
}
.apt-lightbox__close,
.apt-lightbox__prev,
.apt-lightbox__next {
  position: absolute;
  background: rgba(228, 196, 153, 0.15);
  color: var(--champagne);
  border: 1px solid var(--champagne);
  width: 56px;
  height: 56px;
  font-size: 28px;
  cursor: pointer;
  transition: background var(--t-fast);
  z-index: 1001;
}
.apt-lightbox__close { top: 24px; right: 24px; }
.apt-lightbox__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.apt-lightbox__next { right: 24px; top: 50%; transform: translateY(-50%); }
.apt-lightbox__close:hover,
.apt-lightbox__prev:hover,
.apt-lightbox__next:hover { background: var(--champagne); color: var(--onyks); }

@media (max-width: 960px) {
  .apt-lightbox { padding: 16px; }
  .apt-lightbox__close,
  .apt-lightbox__prev,
  .apt-lightbox__next { width: 44px; height: 44px; font-size: 22px; }
  .apt-lightbox__close { top: 12px; right: 12px; }
  .apt-lightbox__prev { left: 8px; }
  .apt-lightbox__next { right: 8px; }
}

/* =================================================================
   APARTMENT CARD — z hover lift, image zoom, color shift
   ================================================================= */
.apartment-card {
  background: var(--snow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(10,10,10,0.04), 0 4px 12px rgba(10,10,10,0.03);
}
.apartment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(10,10,10,0.12), 0 4px 8px rgba(107,79,58,0.05);
}
.apartment-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.apartment-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background-color: var(--mist);
  transition: transform var(--t-extra-slow);
}
.apartment-card:hover .apartment-card__img {
  transform: scale(1.06);
}
.apartment-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.2) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
}
.apartment-card:hover .apartment-card__img-wrap::after { opacity: 1; }
.apartment-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.apartment-card__type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--bark);
  text-transform: uppercase;
  margin: 0 0 -2px;
}
.apartment-card__name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--onyks);
  letter-spacing: 0.5px;
  margin: 0 0 4px;
  transition: color var(--t-fast);
}
.apartment-card:hover .apartment-card__name { color: var(--bark); }
.apartment-card__specs {
  font-size: 12.5px;
  color: var(--slate);
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
}
.apartment-card__price-block {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
}
.apartment-card__price {
  font-size: 18px;
  font-weight: 600;
  color: var(--onyks);
  letter-spacing: -0.01em;
  margin: 0;
}
.apartment-card__price-sqm {
  font-size: 11px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.apartment-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--bark);
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(107,79,58,0.15);
  transition: gap var(--t-fast), color var(--t-fast);
}
/* Strzałka: kwadratowe ciemne tło + champagne stroke. Wyrazna na małych
   kartach gdzie sam tekst btn jest skromny (10-11px). Animacja apt-btn-pull
   przesuwa cały blok-strzałkę. */
.apartment-card__btn svg {
  width: 22px;
  height: 22px;
  padding: 5px;
  box-sizing: border-box;
  background: var(--ink);
  color: var(--champagne);
  flex-shrink: 0;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.apartment-card:hover .apartment-card__btn { color: var(--onyks); gap: 12px; }
.apartment-card:hover .apartment-card__btn svg {
  animation: none;
  transform: translateX(2px);
  background: var(--champagne);
  color: var(--ink);
}

/* Subtle "pull" animation strzałki — 2.6s cycle, gently nudge w prawo żeby przyciągnąć
   wzrok użytkownika do CTA. Stagger nieparzyste/parzyste żeby karty nie mrugały
   wszystkie naraz. Wyłączone przy prefers-reduced-motion. Disabled buttons (rezerwacje)
   nie mają svg, więc animacja ich nie dotyczy. */
@media (prefers-reduced-motion: no-preference) {
  .apartment-card:not(.is-reserved) .apartment-card__btn svg {
    animation: apt-btn-pull 2.6s ease-in-out infinite;
  }
  .cards-carousel > :nth-child(even) .apartment-card__btn svg {
    animation-delay: 1.3s;
  }
}
@keyframes apt-btn-pull {
  0%, 65%, 100% { transform: translateX(0); opacity: 0.78; }
  32% { transform: translateX(5px); opacity: 1; }
}
.apartment-card.is-reserved {
  background: var(--charcoal);
  opacity: 0.7;
  pointer-events: none;
}
.apartment-card.is-reserved .apartment-card__name { color: var(--mist); }
.apartment-card.is-reserved .apartment-card__specs { color: var(--slate); }
.apartment-card.is-reserved .apartment-card__price {
  color: var(--mist);
  text-decoration: line-through;
}
.apartment-card__name-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--linen);
  background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.7) 80%);
  padding: 24px 14px 8px;
  margin: 0;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
  z-index: 1;
  pointer-events: none;
}
.apartment-card.is-reserved .apartment-card__name-overlay {
  color: var(--mist);
}
.apartment-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--champagne);
  background: rgba(10,10,10,0.85);
  padding: 6px 10px;
  z-index: 2;
}

/* FAQ Cards na home */
.faq-card {
  background: var(--charcoal);
  padding: var(--space-6);
  color: var(--linen);
  position: relative;
  transition: transform var(--t-base), background var(--t-base);
}
.faq-card:hover {
  transform: translateY(-4px);
  background: var(--onyks);
}
.faq-card__num {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: var(--champagne);
  text-transform: uppercase;
  margin: 0;
}
.faq-card__q {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  color: var(--linen);
  margin: var(--space-3) 0 var(--space-3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.faq-card__a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  font-weight: 400;
}

/* =================================================================
   FORMS
   ================================================================= */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--mist);
  position: relative;
  transition: border-color var(--t-fast);
}
.field label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--slate);
  text-transform: uppercase;
}
.field input,
.field textarea,
.field select {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--onyks);
  padding: 4px 0;
  outline: none;
  width: 100%;
}
.field:focus-within {
  border-bottom-color: var(--bark);
}
.field.has-error { border-bottom-color: #B0413E; }
.field__error {
  font-size: 11px;
  color: #B0413E;
  margin-top: 4px;
}
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-3) 0;
}
.checkbox-field label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: var(--onyks);
  color: var(--linen);
  padding: var(--space-8) var(--container-pad) var(--space-5);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
}
@media (max-width: 960px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--slate);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; font-size: 14px; }
.site-footer a { color: var(--linen); transition: color var(--t-fast), padding-left var(--t-fast); }
.site-footer a:hover { color: var(--champagne); }
/* Tap targets — na mobile linki w stopce muszą mieć 44px wysokości */
@media (max-width: 768px) {
  .site-footer li { margin: 0; }
  .site-footer li a { display: block; padding: 14px 0; }
}
.site-footer__bot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate);
  padding-top: var(--space-5);
  border-top: 1px solid var(--granite);
}

/* =================================================================
   STICKY MOBILE CTA
   ================================================================= */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--champagne);
  padding: 16px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--onyks);
  z-index: 50;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  transition: background var(--t-fast);
}
.sticky-cta:hover { background: var(--champagne-soft); }
@media (max-width: 960px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 72px; }
}

/* =================================================================
   ANIMACJE WEJŚCIA — reveal w IntersectionObserver
   ================================================================= */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--t-extra-slow), transform var(--t-extra-slow);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 120ms; }
.reveal-delay-2 { transition-delay: 240ms; }
.reveal-delay-3 { transition-delay: 360ms; }

/* Stagger dla list/gridów — kolejne dzieci pojawiają się z opóźnieniem */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-extra-slow), transform var(--t-extra-slow);
}
.stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(7) { transition-delay: 480ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(8) { transition-delay: 560ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(9) { transition-delay: 640ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(10) { transition-delay: 720ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(11) { transition-delay: 800ms; opacity: 1; transform: translateY(0); }
.stagger.is-visible > *:nth-child(n+12) { transition-delay: 880ms; opacity: 1; transform: translateY(0); }

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-up, .stagger > * {
    opacity: 1;
    transform: none;
  }
}

/* =================================================================
   UTILITIES
   ================================================================= */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

@media print {
  .site-header, .site-footer, .sticky-cta, .toolbar { display: none !important; }
  body { background: white; padding: 0; }
}

/* =================================================================
   MOBILE ADDITIONS — uplift na małych ekranach
   - Mniejsze fonty (mobile-first reduce)
   - FAQ pills horizontal scroll
   - Kompaktowa stopka
   - Slow floating animations (gdy nie reduced-motion)
   ================================================================= */

@media (max-width: 768px) {
  /* === Typography reduce — mobile size jest mniejszy ale dalej WYRAZNY (po feedbacku
     klienta nagłówki znacznie powiększone). === */
  .display--xl  { font-size: clamp(23px, 5vw, 36px); }
  .display--lg  { font-size: clamp(18px, 4vw, 28px); }
  .display--md  { font-size: clamp(17px, 3.75vw, 26px); }
  .lead         { font-size: 15px; line-height: 1.55; }
  .body-text    { font-size: 14px; line-height: 1.6; }
  .eyebrow      { font-size: 10px; letter-spacing: 2px; }

  /* === FAQ filter pills — horizontal scroll w jednym rzędzie === */
  /* Cel: pille filtrów (.btn'y w div'ie z flex-wrap:wrap) na mobile w jednym rzędzie ze scroll */
  .container > div[style*="flex-wrap: wrap"] {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: var(--space-4);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px !important;
  }
  .container > div[style*="flex-wrap: wrap"]::-webkit-scrollbar { display: none; width: 0; height: 0; }
  .container > div[style*="flex-wrap: wrap"] > * { flex-shrink: 0; scroll-snap-align: start; }

  /* === Stopka kompaktowa === */
  .site-footer { padding-top: var(--space-7); padding-bottom: var(--space-4); }
  .site-footer__top { gap: var(--space-5); }
  .site-footer h4 { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 8px; }
  .site-footer li { margin: 4px 0; font-size: 13px; }
  .site-footer__top .grid { gap: var(--space-4); }
  /* Footer NAV columns w 2x2 grid zamiast 1 column dla zwartości */
  .site-footer__top .grid--3 { grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-5); }
  .site-footer__bot { font-size: 11px; padding-top: var(--space-3); }
  .site-footer .brand-logo__name { font-size: 24px !important; letter-spacing: 4px !important; }
}

/* === Slow floating animations — strona "płynie" na mobile === */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  /* Hero bg — bardzo subtelny zoom-in/out cykl */
  .hero-fullscreen__bg,
  .hero-slide {
    animation: float-zoom 20s ease-in-out infinite alternate;
  }
  /* Inwentarz dekoracje — sway w przeciwnych kierunkach */
  .inwentarz-deco--left  { animation: sway-left 14s ease-in-out infinite alternate; }
  .inwentarz-deco--right { animation: sway-right 16s ease-in-out infinite alternate; }
  /* Subpage hero bg też subtelny float */
  .subpage-hero { animation: subpage-drift 24s ease-in-out infinite alternate; }
  /* Site-plan SVG bardzo wolne unoszenie */
  .site-plan__svg { animation: plan-float 18s ease-in-out infinite alternate; }
}
@keyframes float-zoom {
  0%   { transform: scale(1)    translateY(0); }
  100% { transform: scale(1.04) translateY(-6px); }
}
@keyframes sway-left {
  0%   { transform: translate(0, 0)    rotate(0deg); }
  100% { transform: translate(8px, -6px) rotate(1.2deg); }
}
@keyframes sway-right {
  0%   { transform: translate(0, 0)     rotate(0deg); }
  100% { transform: translate(-8px, -4px) rotate(-1.4deg); }
}
@keyframes subpage-drift {
  0%   { background-position: 50% 50%; }
  100% { background-position: 50% 53%; }
}
@keyframes plan-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* =================================================================
   PROMO BANNER + MODAL — Rabat 40 000 zł sezon letni 2026
   ================================================================= */

/* --- Hero promo tag (strona główna, przy headline) — łagodniejsza wersja --- */
.hero-promo-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 9px 18px;
  background: linear-gradient(135deg, #C97A6E 0%, #B36458 55%, #934C40 100%);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  transform: rotate(-2deg);
  transform-origin: left center;
  box-shadow:
    0 4px 14px rgba(147, 76, 64, 0.32),
    inset 0 -1px 3px rgba(0, 0, 0, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.20);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
  cursor: default;
  white-space: nowrap;
  margin-bottom: -6px;
  opacity: 0;
  animation:
    hero-promo-tag-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards,
    hero-promo-tag-pulse 5.2s ease-in-out 2s infinite;
  position: relative;
  z-index: 3;
}
.hero-promo-tag strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.2px;
  color: #fff;
}
.hero-promo-tag:focus-visible {
  outline: 3px solid var(--champagne);
  outline-offset: 3px;
}

@keyframes hero-promo-tag-enter {
  0% { opacity: 0; transform: rotate(-8deg) translateY(-14px) scale(0.88); }
  60% { opacity: 1; transform: rotate(-1deg) translateY(2px) scale(1.02); }
  100% { opacity: 1; transform: rotate(-2deg) translateY(0) scale(1); }
}

@keyframes hero-promo-tag-pulse {
  0%, 100% {
    box-shadow:
      0 4px 14px rgba(147, 76, 64, 0.32),
      inset 0 -1px 3px rgba(0, 0, 0, 0.14),
      inset 0 1px 1px rgba(255, 255, 255, 0.20);
    transform: rotate(-2deg) scale(1);
  }
  50% {
    box-shadow:
      0 5px 18px rgba(147, 76, 64, 0.45),
      inset 0 -1px 3px rgba(0, 0, 0, 0.14),
      inset 0 1px 1px rgba(255, 255, 255, 0.20);
    transform: rotate(-2deg) scale(1.015);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-promo-tag {
    animation: hero-promo-tag-enter 0.6s ease-out 0.6s forwards;
  }
}
.hero-promo-tag__note {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.6px;
  opacity: 0.85;
  text-transform: none;
  color: rgba(255,255,255,0.92);
}
@media (max-width: 600px) {
  .hero-promo-tag__note { font-size: 9px; }
}

/* === Expandable text section (details/summary native) — używane na home dla mobile breathing room === */
.expand-text {
  margin-top: 14px;
  border-top: 1px solid rgba(107, 79, 58, 0.16);
  padding-top: 12px;
}
.expand-text > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--bark, #6b4f3a);
  user-select: none;
  transition: color 0.2s ease;
}
.expand-text > summary::-webkit-details-marker { display: none; }
.expand-text > summary:hover { color: var(--charcoal, #1a1a1a); }
.expand-text > summary > span[aria-hidden] {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.expand-text[open] > summary > span[aria-hidden] {
  transform: rotate(-180deg);
}
.expand-text__body {
  margin-top: 8px;
  animation: expand-text-fade 0.35s ease-out;
}
.expand-text__body > p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--slate, #555);
}
.expand-text__body > p:first-child { margin-top: 0; }
@keyframes expand-text-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .expand-text > summary > span[aria-hidden] { transition: none; }
  .expand-text__body { animation: none; }
}

/* === Hero fullscreen sub — extra info na mobile chowane do compact === */
.hero-fullscreen__sub-extra {
  display: inline;
}
@media (max-width: 768px) {
  .hero-fullscreen__sub-extra {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    opacity: 0.78;
  }
}
@media (max-width: 480px) {
  /* na bardzo małych telefonach ukrywamy extra completely — zostaje tylko core message */
  .hero-fullscreen__sub-extra { display: none; }
}

/* === Mobile breathing room — więcej światła w sekcjach na telefonach === */
@media (max-width: 768px) {
  .section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .section--tight { padding-top: var(--space-5); padding-bottom: var(--space-5); }
  .inwentarz-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .site-plan-section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  /* Pomiędzy headerem a treścią więcej miejsca */
  .inwentarz-container > header { margin-bottom: var(--space-6) !important; }
}
@media (max-width: 480px) {
  /* Jeszcze bardziej oddychać na małych telefonach */
  .section,
  .inwentarz-section,
  .site-plan-section { padding-top: var(--space-5); padding-bottom: var(--space-5); }
  /* USP carousel — jeszcze mniejsze na bardzo małych telefonach */
  .usp-item {
    width: 58% !important;
    max-width: 210px !important;
    min-height: 160px !important;
    padding: 12px 14px 14px !important;
  }
  .usp-text { font-size: 15.5px !important; }
  .usp-num { font-size: 9px !important; letter-spacing: 2px !important; }
  .inwentarz-intro p,
  .lead {
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 600px) {
  .hero-promo-tag {
    font-size: 11px;
    padding: 8px 15px;
    letter-spacing: 1.2px;
  }
  .hero-promo-tag strong { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-promo-tag {
    animation: none;
    opacity: 1;
    transform: rotate(-3deg);
  }
}


/* --- Floating banner (bottom-left, all pages) --- */
.promo-banner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 60;
  width: 360px;
  max-width: calc(100vw - 44px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 42px 16px 18px;
  background: linear-gradient(135deg, var(--linen) 0%, var(--snow) 60%, #F5F2EA 100%);
  border: 1px solid rgba(196, 149, 56, 0.35);
  border-radius: 14px;
  box-shadow:
    0 14px 40px rgba(20, 14, 6, 0.22),
    0 4px 12px rgba(20, 14, 6, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  opacity: 0;
  transform: translateX(-30px) translateY(12px);
  animation: promo-banner-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards,
             promo-banner-glow 3.5s ease-in-out 2s infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  overflow: visible;
}
.promo-banner:hover {
  transform: translateY(-5px);
  box-shadow:
    0 20px 52px rgba(20, 14, 6, 0.3),
    0 6px 16px rgba(20, 14, 6, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.promo-banner.is-hidden {
  display: none;
}

/* CZERWONE kółko -40k z mrugnięciem */
.promo-banner__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: radial-gradient(circle at 30% 28%, #E63A3A 0%, #C82E2E 55%, #8E1F1F 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  line-height: 1;
  text-indent: -1px; /* optical centering (kerning '−' lewa strona) */
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, 0.32),
    inset 0 2px 4px rgba(255, 255, 255, 0.28),
    0 5px 16px rgba(200, 46, 46, 0.55);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  animation: promo-badge-blink 2.6s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.promo-banner__body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.promo-banner__eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--bark);
  text-transform: uppercase;
  display: block;
  margin-bottom: 5px;
}

.promo-banner__headline {
  font-size: 15px;
  font-weight: 600;
  color: var(--onyks);
  line-height: 1.25;
  display: block;
}

.promo-banner__headline strong {
  color: #C82E2E;
  font-weight: 700;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.promo-banner__sub {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 10px;
  background: linear-gradient(135deg, #E63A3A 0%, #C82E2E 55%, #8E1F1F 100%);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 4px;
  transform: rotate(-3.5deg);
  transform-origin: left center;
  box-shadow:
    0 3px 10px rgba(200, 46, 46, 0.45),
    inset 0 -1px 3px rgba(0, 0, 0, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
  animation: promo-banner-tag-pulse 2.4s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes promo-banner-tag-pulse {
  0%, 100% {
    box-shadow:
      0 3px 10px rgba(200, 46, 46, 0.45),
      inset 0 -1px 3px rgba(0, 0, 0, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: rotate(-3.5deg) scale(1);
  }
  50% {
    box-shadow:
      0 5px 18px rgba(200, 46, 46, 0.7),
      0 0 0 4px rgba(200, 46, 46, 0.18),
      inset 0 -1px 3px rgba(0, 0, 0, 0.2),
      inset 0 1px 1px rgba(255, 255, 255, 0.25);
    transform: rotate(-3.5deg) scale(1.06);
  }
}

.promo-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  color: var(--slate);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.promo-banner__close:hover {
  background: var(--mist);
  color: var(--onyks);
}

@keyframes promo-banner-enter {
  0% { opacity: 0; transform: translateX(-30px) translateY(12px); }
  100% { opacity: 1; transform: translateX(0) translateY(0); }
}

@keyframes promo-banner-glow {
  0%, 100% {
    box-shadow:
      0 14px 40px rgba(20, 14, 6, 0.22),
      0 4px 12px rgba(20, 14, 6, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
  50% {
    box-shadow:
      0 16px 46px rgba(20, 14, 6, 0.26),
      0 4px 12px rgba(20, 14, 6, 0.12),
      0 0 0 5px rgba(200, 46, 46, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
  }
}

@keyframes promo-badge-blink {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      inset 0 -3px 8px rgba(0, 0, 0, 0.32),
      inset 0 2px 4px rgba(255, 255, 255, 0.28),
      0 5px 16px rgba(200, 46, 46, 0.55);
  }
  50% {
    transform: scale(1.07);
    box-shadow:
      inset 0 -3px 8px rgba(0, 0, 0, 0.32),
      inset 0 2px 4px rgba(255, 255, 255, 0.28),
      0 8px 26px rgba(200, 46, 46, 0.75),
      0 0 0 6px rgba(200, 46, 46, 0.16);
  }
}

@media (max-width: 960px) {
  .promo-banner {
    left: 12px;
    right: 12px;
    bottom: 84px;
    width: auto;
    max-width: none;
    padding: 14px 38px 14px 14px;
  }
  .promo-banner__icon {
    width: 48px;
    height: 48px;
    font-size: 15px;
  }
  .promo-banner__headline { font-size: 14px; }
  .promo-banner__headline strong { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-banner { animation: none; opacity: 1; transform: none; }
  .promo-banner__icon { animation: none; }
}

/* --- Modal overlay --- */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 20px;
  background: rgba(10, 8, 5, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
}
.promo-modal.is-open {
  display: flex;
  opacity: 1;
}

.promo-modal__inner {
  background: linear-gradient(160deg, var(--linen) 0%, var(--snow) 100%);
  max-width: 860px;
  width: 100%;
  position: relative;
  border-radius: 16px;
  padding: 36px 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(196, 149, 56, 0.18);
  margin: auto 0;
}

/* Full-width header */
.promo-modal__header {
  max-width: 720px;
  padding-right: 50px; /* space dla X close */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/* Split main: content lewo, polaroidy prawo */
.promo-modal__main {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: flex-start;
}
.promo-modal.is-open .promo-modal__inner {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.promo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--onyks);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.35s, box-shadow 0.2s;
  z-index: 3;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.promo-modal__close:hover {
  background: var(--snow);
  transform: rotate(90deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Polaroidy nakładające się — 2 zdjęcia jak prawdziwe fotografie */
.promo-modal__images {
  position: relative;
  width: 280px;
  height: 320px;
  align-self: center;
  justify-self: center;
}

.promo-modal__photo {
  position: absolute;
  margin: 0;
  background: #fff;
  padding: 10px 10px 32px;
  box-shadow:
    0 16px 34px rgba(20, 14, 6, 0.28),
    0 6px 14px rgba(20, 14, 6, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.promo-modal__photo img {
  display: block;
  width: 180px;
  height: 140px;
  object-fit: cover;
}

.promo-modal__photo--1 {
  top: 8px;
  left: 0;
  transform: rotate(-6deg);
  z-index: 1;
}

.promo-modal__photo--2 {
  top: 90px;
  left: 70px;
  transform: rotate(5deg);
  z-index: 2;
}

.promo-modal__images:hover .promo-modal__photo--1 {
  transform: rotate(-9deg) translate(-8px, -4px);
  box-shadow:
    0 20px 40px rgba(20, 14, 6, 0.35),
    0 8px 18px rgba(20, 14, 6, 0.2);
}
.promo-modal__images:hover .promo-modal__photo--2 {
  transform: rotate(7deg) translate(8px, 4px) scale(1.03);
  z-index: 3;
  box-shadow:
    0 22px 46px rgba(20, 14, 6, 0.38),
    0 10px 22px rgba(20, 14, 6, 0.22);
}

/* Content lewa kolumna */
.promo-modal__content {
  display: flex;
  flex-direction: column;
}

/* Header (full-width) styling */
.promo-modal__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.8px;
  color: var(--bark);
  text-transform: uppercase;
  margin: 0;
}

.promo-modal__headline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 46px;
  font-weight: 400;
  color: var(--onyks);
  margin: 14px 0 0;
  line-height: 1.08;
  letter-spacing: -0.5px;
}

.promo-modal__amount {
  color: #C82E2E;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -1.5px;
  white-space: nowrap;
  display: inline-block;
  animation: promo-amount-pulse 2.2s ease-in-out infinite;
  text-shadow: 0 0 12px rgba(200, 46, 46, 0.15);
}

@keyframes promo-amount-pulse {
  0%, 100% {
    color: #C82E2E;
    transform: scale(1);
    text-shadow: 0 0 12px rgba(200, 46, 46, 0.15);
  }
  50% {
    color: #E63A3A;
    transform: scale(1.04);
    text-shadow: 0 0 24px rgba(200, 46, 46, 0.45);
  }
}

/* Wrapper z rotacją - oddzielony od deadline żeby blink animation nie nadpisywała rotate */
.promo-modal__deadline-wrap {
  display: inline-block;
  transform: rotate(-4deg);
  transform-origin: left center;
  margin: 22px 0 0;
}

.promo-modal__deadline {
  font-size: 13px;
  font-weight: 700;
  color: var(--onyks);
  background: linear-gradient(120deg, var(--champagne) 0%, var(--champagne-soft) 50%, var(--champagne) 100%);
  background-size: 200% 100%;
  padding: 11px 20px;
  display: inline-block;
  margin: 0;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(196, 149, 56, 0.35);
  animation:
    promo-deadline-blink 1.6s ease-in-out infinite,
    promo-deadline-shimmer 3s linear infinite;
}

@keyframes promo-deadline-blink {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(196, 149, 56, 0.35);
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  50% {
    box-shadow: 0 8px 26px rgba(196, 149, 56, 0.75), 0 0 0 5px rgba(196, 149, 56, 0.2);
    transform: translateY(-2px) scale(1.03);
    opacity: 0.96;
  }
}

@keyframes promo-deadline-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.promo-modal__body {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--slate);
  margin-top: 22px;
}

.promo-modal__body p { margin: 0; }
.promo-modal__body p + p { margin-top: 12px; }
.promo-modal__body strong { color: var(--onyks); font-weight: 600; }

/* CTA — GOLD GRADIENT (nie czarny), zaokrąglony, shimmer */
.promo-modal__cta {
  display: block;
  margin-top: 26px;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--champagne) 0%, #E8C580 35%, var(--champagne-soft) 50%, #E8C580 65%, var(--champagne) 100%);
  background-size: 250% 100%;
  color: var(--onyks);
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: 10px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s;
  box-shadow:
    0 8px 24px rgba(196, 149, 56, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(120, 80, 20, 0.18);
  animation: promo-cta-shimmer 3.5s linear infinite, promo-cta-pulse 2.4s ease-in-out infinite;
  position: relative;
}
.promo-modal__cta:hover {
  transform: translateY(-3px);
  box-shadow:
    0 14px 36px rgba(196, 149, 56, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -2px 6px rgba(120, 80, 20, 0.2);
  color: var(--onyks);
}

@keyframes promo-cta-shimmer {
  0% { background-position: 250% 0; }
  100% { background-position: -250% 0; }
}

@keyframes promo-cta-pulse {
  0%, 100% {
    box-shadow:
      0 8px 24px rgba(196, 149, 56, 0.5),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -2px 6px rgba(120, 80, 20, 0.18);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(196, 149, 56, 0.65),
      0 0 0 4px rgba(196, 149, 56, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -2px 6px rgba(120, 80, 20, 0.18);
  }
}

.promo-modal__cta-phone {
  display: block;
  font-size: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  margin-top: 6px;
  text-transform: none;
  color: var(--onyks);
}

/* Stagger entrance animations */
.promo-modal.is-open .promo-modal__header > *:nth-child(1),
.promo-modal.is-open .promo-modal__header > *:nth-child(2) {
  animation: promo-content-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.promo-modal.is-open .promo-modal__header > *:nth-child(1) { animation-delay: 0.18s; }
.promo-modal.is-open .promo-modal__header > *:nth-child(2) { animation-delay: 0.32s; }

/* Deadline-wrap z zachowaniem rotacji w trakcie entry */
.promo-modal.is-open .promo-modal__deadline-wrap {
  animation: promo-deadline-wrap-enter 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.5s backwards;
}

.promo-modal.is-open .promo-modal__content > * {
  animation: promo-content-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.promo-modal.is-open .promo-modal__content > *:nth-child(1) { animation-delay: 0.65s; }
.promo-modal.is-open .promo-modal__content > *:nth-child(2) { animation-delay: 0.85s; }

.promo-modal.is-open .promo-modal__photo--1 {
  animation: promo-photo1-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s backwards;
}
.promo-modal.is-open .promo-modal__photo--2 {
  animation: promo-photo2-enter 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.75s backwards;
}

@keyframes promo-content-enter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes promo-deadline-wrap-enter {
  0% { opacity: 0; transform: rotate(-4deg) translateY(20px) scale(0.9); }
  60% { opacity: 1; transform: rotate(-2deg) translateY(-3px) scale(1.04); }
  100% { opacity: 1; transform: rotate(-4deg) translateY(0) scale(1); }
}

@keyframes promo-photo1-enter {
  0% { opacity: 0; transform: rotate(-18deg) translate(-40px, -20px) scale(0.85); }
  100% { opacity: 1; transform: rotate(-6deg) translate(0, 0) scale(1); }
}

@keyframes promo-photo2-enter {
  0% { opacity: 0; transform: rotate(18deg) translate(40px, -20px) scale(0.85); }
  100% { opacity: 1; transform: rotate(5deg) translate(0, 0) scale(1); }
}

@media (max-width: 760px) {
  .promo-modal { padding: 0; align-items: stretch; }
  .promo-modal__inner {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 26px 22px 32px;
    border-radius: 0;
    gap: 18px;
  }
  .promo-modal__header { padding-right: 44px; }
  .promo-modal__main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .promo-modal__images {
    order: 1;
    width: 260px;
    height: 260px;
    margin: 8px auto 16px;
  }
  .promo-modal__photo img { width: 170px; height: 130px; }
  .promo-modal__photo--1 { top: 0; left: 10px; }
  .promo-modal__photo--2 { top: 70px; left: 70px; }
  .promo-modal__content { order: 2; }
  .promo-modal__headline { font-size: 30px; }
  .promo-modal__body { font-size: 13.5px; }
  .promo-modal__cta-phone { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .promo-modal,
  .promo-modal__inner,
  .promo-modal__deadline,
  .promo-modal__amount,
  .promo-modal__cta,
  .promo-modal.is-open .promo-modal__header > *,
  .promo-modal.is-open .promo-modal__deadline-wrap,
  .promo-modal.is-open .promo-modal__content > *,
  .promo-modal.is-open .promo-modal__photo--1,
  .promo-modal.is-open .promo-modal__photo--2 {
    transition: none;
    animation: none;
  }
}

/* === Gallery grid + gallery-card (pattern .apartment-card — img + body) === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  width: 100%;
}
.gallery-card {
  background: var(--snow);
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  width: 100%;
  font-family: inherit;
  transition: transform var(--t-base), box-shadow var(--t-base);
  box-shadow: 0 1px 3px rgba(10,10,10,0.04), 0 4px 12px rgba(10,10,10,0.03);
}
.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(10,10,10,0.12), 0 4px 8px rgba(107,79,58,0.05);
  outline: none;
}
.gallery-card__img-wrap {
  position: relative;
  overflow: hidden;
}
.gallery-card__img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.2) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base);
}
.gallery-card:hover .gallery-card__img-wrap::after,
.gallery-card:focus-visible .gallery-card__img-wrap::after { opacity: 1; }
.gallery-card__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  background-color: var(--mist);
  transition: transform var(--t-extra-slow);
}
.gallery-card:hover .gallery-card__img,
.gallery-card:focus-visible .gallery-card__img {
  transform: scale(1.06);
}
.gallery-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.gallery-card__type {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: var(--bark);
  text-transform: uppercase;
  margin: 0 0 -2px;
}
.gallery-card__name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--onyks);
  letter-spacing: 0;
  margin: 0;
  transition: color var(--t-fast);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.gallery-card:hover .gallery-card__name { color: var(--bark); }

/* Tablet — 3 kolumny */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
/* Mobile — 2 kolumny (analogicznie do .cards-carousel z home) */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  .gallery-card__img {
    aspect-ratio: 4 / 3;
  }
  .gallery-card__body {
    padding: 10px 12px 12px;
  }
  .gallery-card__type {
    font-size: 7.5px;
    letter-spacing: 1.3px;
  }
  .gallery-card__name {
    font-size: 11px;
    line-height: 1.25;
  }
  body { overflow-x: hidden; }
}

/* === Investment plan highlight (na karcie domku obok rzutów) === */
.investment-plan {
  max-width: 720px;
  margin: 0 auto;
}
.investment-plan__media {
  position: relative;
  background: var(--linen, #f5f1ea);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  aspect-ratio: 1080 / 717;
}
.investment-plan__svg {
  display: block;
  width: 100%;
  height: 100%;
}
.investment-plan__ring {
  fill: none;
  stroke: var(--champagne, #d4af37);
  stroke-width: 5;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.55));
}
.investment-plan__ring--pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: investment-plan-pulse 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  stroke-opacity: 0.7;
}
@keyframes investment-plan-pulse {
  0%   { transform: scale(1);    stroke-opacity: 0.8; }
  70%  { transform: scale(1.55); stroke-opacity: 0;   }
  100% { transform: scale(1.55); stroke-opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .investment-plan__ring--pulse { animation: none; stroke-opacity: 0; }
}
.investment-plan__caption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted, #6b6b6b);
  letter-spacing: 0.01em;
}
.investment-plan__caption strong {
  color: var(--charcoal, #1a1a1a);
  font-weight: 600;
}
@media (max-width: 640px) {
  .investment-plan__caption { font-size: 13px; }
}
