/* ============================================================
   SŁONECZNY SADKÓW - system projektowy
   Paleta: kremowy / szałwia / miód-morela / grafit
   Typografia: Fraunces (display) + Hanken Grotesk (body)
   ============================================================ */

:root {
  /* kolory */
  --cream:        #FAF7F0;
  --cream-2:      #F3EEE2;
  --paper:        #FFFFFF;
  --sage:         #4E6B50;
  --sage-light:   #6B8A66;
  --sage-soft:    #E4EADF;
  --honey:        #CF9B53;
  --honey-deep:   #8E5E18;
  --honey-soft:   #F6E9D4;
  --ink:          #23241F;
  --ink-soft:     #43453B;
  --muted:        #686A59;
  --forest:       #2C3A2C;
  --line:         #E3DECF;
  --line-strong:  #D2CBB6;

  /* typografia */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* skala */
  --step--1: clamp(0.80rem, 0.77rem + 0.15vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.50rem);
  --step-2:  clamp(1.50rem, 1.30rem + 1.00vw, 2.10rem);
  --step-3:  clamp(1.95rem, 1.60rem + 1.70vw, 3.10rem);
  --step-4:  clamp(2.50rem, 1.90rem + 3.00vw, 4.60rem);
  --step-5:  clamp(3.10rem, 2.20rem + 4.50vw, 6.20rem);

  /* przestrzeń */
  --gutter: clamp(1.2rem, 0.8rem + 2vw, 2.6rem);
  --section-y: clamp(4rem, 3rem + 6vw, 8rem);
  --maxw: 1240px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 10px;

  --shadow-sm: 0 2px 8px rgba(35,36,31,0.06);
  --shadow:    0 14px 40px -18px rgba(35,36,31,0.28);
  --shadow-lg: 0 40px 80px -30px rgba(35,36,31,0.42);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

/* ---------- typografia ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.display { font-size: var(--step-5); font-weight: 600; }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--honey-deep);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1.5px; background: var(--honey); display: inline-block;
}
.eyebrow.center::after {
  content: ""; width: 26px; height: 1.5px; background: var(--honey); display: inline-block;
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-3); margin-top: 0.6rem; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: var(--step-1); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.95em 1.6em;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.005em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, color 0.3s;
  will-change: transform;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 10px 24px -10px rgba(78,107,80,0.7); }
.btn-primary:hover { background: #41593f; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(78,107,80,0.8); }
.btn-honey { background: var(--honey); color: #2a1d08; box-shadow: 0 10px 24px -10px rgba(207,155,83,0.8); }
.btn-honey:hover { background: var(--honey-deep); color:#fff; transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }
.btn-outline { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--sage); color: var(--sage); transform: translateY(-2px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding-block: 1.1rem;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: #fff; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.4s; }
.brand__sun { width: 30px; height: 30px; flex: none; }
.brand small { display:block; font-family: var(--font-body); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.8; margin-top: 1px; }
.nav__links { display: flex; align-items: center; gap: 1.7rem; }
.nav__links a { color: rgba(255,255,255,0.92); font-weight: 500; font-size: 0.97rem; position: relative; transition: color 0.3s; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--honey); transition: width 0.3s var(--ease); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 0.9rem; }
.nav__cta .btn { white-space: nowrap; flex: none; }
.nav__phone { color:#fff; font-weight:600; display:flex; align-items:center; gap:0.4rem; white-space:nowrap; }
.nav__phone svg { width: 1.05em; height: 1.05em; }
/* odnośniki CTA widoczne tylko w rozwiniętym menu mobilnym */
.nav__mobcta { display: none; }

/* stan po scrollu */
.nav.scrolled { background: rgba(250,247,240,0.88); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); padding-block: 0.7rem; }
.nav.scrolled .brand,
.nav.scrolled .nav__links a,
.nav.scrolled .nav__phone { color: var(--ink); }
.nav.scrolled .nav__links a { color: var(--ink-soft); }
.nav.scrolled .btn-ghost { background: var(--sage); color:#fff; border-color: var(--sage); }

.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 50%; align-items: center; justify-content: center; }
.nav__toggle span { position: relative; width: 22px; height: 2px; background: currentColor; color:#fff; transition: 0.3s; }
.nav__toggle span::before, .nav__toggle span::after { content:""; position:absolute; left:0; width:22px; height:2px; background: currentColor; transition: 0.3s var(--ease); }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 7px; }
.nav.scrolled .nav__toggle { color: var(--ink); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(90deg, rgba(14,20,14,0.74) 0%, rgba(14,20,14,0.34) 46%, rgba(14,20,14,0) 74%),
    radial-gradient(120% 90% at 82% 10%, rgba(207,155,83,0.20), transparent 55%),
    linear-gradient(180deg, rgba(14,20,14,0.40) 0%, rgba(14,20,14,0.12) 28%, rgba(12,18,12,0.85) 100%);
}
.hero__sun {
  position: absolute; top: 14%; right: 12%; width: clamp(120px, 22vw, 300px); aspect-ratio: 1; z-index: -1;
  background: radial-gradient(circle, rgba(255,222,160,0.85), rgba(255,200,120,0.25) 45%, transparent 70%);
  border-radius: 50%; filter: blur(6px);
  animation: sunPulse 7s ease-in-out infinite;
}
@keyframes sunPulse { 0%,100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.07); opacity: 1; } }
.hero__inner { padding-bottom: clamp(3rem, 2rem + 5vw, 6rem); padding-top: 8rem; width: 100%; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1.4rem;
  background: rgba(207,155,83,0.95); color: #2a1d08; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.05em; padding: 0.55em 1.1em; border-radius: 100px;
  box-shadow: var(--shadow);
}
.hero__badge .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2a1d08; position: relative; }
.hero__badge .pulse::after { content:""; position:absolute; inset:-5px; border-radius:50%; border:1.5px solid #2a1d08; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0%{transform:scale(0.6);opacity:0.9;} 100%{transform:scale(1.8);opacity:0;} }
.hero__eyebrow { color: #fff; opacity: 0.95; margin-bottom: 1rem; }
.hero__eyebrow::before { background: rgba(255,255,255,0.8); }
.hero h1 { font-size: var(--step-5); font-weight: 600; max-width: 16ch; color: #fff; text-shadow: 0 2px 26px rgba(0,0,0,0.55); }
.hero h1 em { font-style: italic; color: var(--honey-soft); }
.hero__sub { font-size: var(--step-1); max-width: 46ch; margin-top: 1.3rem; color: rgba(255,255,255,0.92); font-weight: 400; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; align-items: center; }
.hero__price { display:flex; flex-direction:column; line-height:1.1; margin-left: 0.4rem; }
.hero__price b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.hero__price span { font-size: 0.8rem; letter-spacing: 0.04em; opacity: 0.85; }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:0.5rem; font-size:0.7rem; letter-spacing:0.2em; text-transform:uppercase; opacity:0.8; }
.hero__scroll .mouse { width: 22px; height: 36px; border: 2px solid rgba(255,255,255,0.7); border-radius: 12px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; top:6px; left:50%; transform:translateX(-50%); width:3px; height:7px; background:#fff; border-radius:2px; animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0;transform:translate(-50%,10px);} }

/* ============================================================
   PASEK FAKTÓW
   ============================================================ */
.facts { background: var(--forest); color: #fff; position: relative; z-index: 1; padding-block: clamp(1.4rem, 0.8rem + 2vw, 2.6rem); padding-inline: clamp(0.5rem, 0.2rem + 1vw, 1.5rem); }
.facts__grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.fact { padding: clamp(1.6rem, 1rem + 1.5vw, 2.4rem) 1.2rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.1); }
.fact:last-child { border-right: none; }
.fact b { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; display:block; color: var(--honey-soft); }
.fact span { font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255,255,255,0.78); }

/* ============================================================
   O INWESTYCJI
   ============================================================ */
.about { background: var(--cream); }
.about__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.about__text p { color: var(--ink-soft); margin-top: 1.1rem; max-width: 52ch; }
.about__highlights { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.about__highlight { display: inline-flex; gap: 0.7rem; align-items:center; padding: 0.8em 1.2em; background: var(--sage-soft); color: var(--sage); border-radius: 100px; font-weight: 600; font-size: 0.95rem; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
a.about__highlight:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.about__highlight--honey { background: var(--honey-soft); color: var(--honey-deep); }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }
.about__media .img-back { position:absolute; width: 58%; bottom: -14%; left: -10%; border: 8px solid var(--cream); z-index: 2; box-shadow: var(--shadow-lg); }
.about__stamp {
  position: absolute; top: -26px; right: -10px; z-index: 3;
  background: var(--honey); color: #2a1d08; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; font-weight: 700; line-height: 1.15;
  font-size: 0.72rem; letter-spacing: 0.04em; box-shadow: var(--shadow); padding: 0.6rem; transform: rotate(-8deg);
}
.about__stamp b { font-family: var(--font-display); font-size: 1.15rem; display:block; }

/* ============================================================
   STANDARD (ikony)
   ============================================================ */
.standard { background: var(--cream-2); }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.feat__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--sage-soft); color: var(--sage); display: grid; place-content: center; margin-bottom: 1.1rem; transition: background 0.4s, color 0.4s; }
.feat:hover .feat__icon { background: var(--honey); color: #2a1d08; }
.feat__icon svg { width: 26px; height: 26px; }
.feat h3 { font-size: 1.12rem; font-family: var(--font-body); font-weight: 700; letter-spacing: -0.01em; }
.feat p { font-size: 0.92rem; color: var(--muted); margin-top: 0.35rem; }

/* ---------- seam: dekoracyjne przejście między sekcjami ---------- */
.section-seam {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section-seam::before {
  content: ""; display: block; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent);
}
.section-seam__badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line-strong);
  display: grid; place-content: center; color: var(--sage);
  box-shadow: var(--shadow-sm);
}
#dostepnosc { padding-bottom: clamp(2.2rem, 1.6rem + 2vw, 3.8rem); }
#metraz { padding-top: clamp(2.2rem, 1.6rem + 2vw, 3.8rem); }

/* ============================================================
   METRAŻ - eksplorator przekroju (signature)
   ============================================================ */
.levels { background: var(--cream-2); }
.levels__grid { display: grid; grid-template-columns: 320px 1fr; gap: clamp(2rem, 1rem + 3vw, 4rem); align-items: start; }
.section-cut { position: sticky; top: 100px; }
.cut { display: flex; flex-direction: column; gap: 10px; }
.cut__floor {
  position: relative; text-align: left; width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: 14px; background: var(--paper);
  padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: 1rem;
  transition: all 0.35s var(--ease);
}
.cut__floor:hover { border-color: var(--sage-light); }
.cut__floor.active { background: var(--sage); border-color: var(--sage); color: #fff; box-shadow: var(--shadow); transform: translateX(6px); }
.cut__roof { clip-path: polygon(50% 0, 100% 100%, 0 100%); height: 46px; background: var(--ink); margin: 0 auto 4px; width: 80%; border-radius: 4px; opacity: 0.85; }
.cut__num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; width: 1.6em; color: var(--honey-deep); flex: none; }
.cut__floor.active .cut__num { color: var(--honey-soft); }
.cut__floor b { display: block; font-weight: 700; font-size: 1.02rem; }
.cut__floor span { font-size: 0.82rem; color: var(--muted); }
.cut__floor.active span { color: rgba(255,255,255,0.8); }

.level-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.level-panel__media { background: var(--cream-2); padding: clamp(1rem, 0.5rem + 2vw, 2.2rem); display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem; align-items: center; }
.level-panel__media img { border-radius: var(--radius-sm); width: 100%; }
.level-panel__media img.zoomable { cursor: zoom-in; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.level-panel__media img.zoomable:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.level-panel__plan { background: #fff; border: 1px solid var(--line); }
.level-panel__body { padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); }
.level-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1.2rem; margin-bottom: 1.4rem; }
.level-panel__head h3 { font-size: var(--step-2); }
.level-panel__area { font-weight: 700; color: var(--sage); background: var(--sage-soft); padding: 0.3em 0.9em; border-radius: 100px; font-size: 0.9rem; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 0.6rem; }
.room { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.9rem; background: var(--cream); border-radius: var(--radius-sm); font-size: 0.92rem; border: 1px solid var(--line); }
.room span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.level-note { margin-top: 1.3rem; display:flex; gap:0.6rem; align-items:flex-start; font-size:0.9rem; color: var(--ink-soft); background: var(--honey-soft); padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); }
.level-note svg { width: 1.2em; height: 1.2em; flex:none; color: var(--honey-deep); margin-top: 2px; }
.level-hidden { display: none; }

/* ============================================================
   GALERIA
   ============================================================ */
.gallery { background: var(--cream-2); }
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gtile { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; background: var(--ink); }
.gtile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gtile:hover img { transform: scale(1.07); }
.gtile::after { content:""; position:absolute; inset:0; background: linear-gradient(0deg, rgba(20,24,18,0.55), transparent 50%); opacity:0; transition: opacity 0.4s; }
.gtile:hover::after { opacity: 1; }
.gtile__cap { position: absolute; left: 1rem; bottom: 0.9rem; color:#fff; font-weight:600; font-size:0.95rem; z-index:2; opacity:0; transform: translateY(8px); transition: 0.4s var(--ease); }
.gtile:hover .gtile__cap { opacity:1; transform: translateY(0); }
.gtile--wide { grid-column: span 2; }
.gtile--tall { grid-row: span 2; }
.gallery__disclaimer { margin-top: 1.2rem; text-align: center; font-size: 0.85rem; color: var(--muted); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15,18,13,0.92); display: none; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity 0.3s; }
.lightbox.open { display: flex; opacity: 1; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__cap { position: absolute; bottom: 4vh; left: 0; right: 0; text-align: center; color: #fff; font-weight: 500; }
.lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,0.12); color:#fff; display: grid; place-content: center; transition: background 0.3s; }
.lb-btn:hover { background: var(--honey); color:#2a1d08; }
.lb-prev { left: 3vw; } .lb-next { right: 3vw; }
.lb-close { position: absolute; top: 3vh; right: 3vw; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,0.12); color:#fff; display:grid; place-content:center; transition: background 0.3s; }
.lb-close:hover { background: var(--honey); color:#2a1d08; }
.lb-btn svg, .lb-close svg { width: 22px; height: 22px; }

/* ============================================================
   LOKALIZACJA
   ============================================================ */
.location { background: var(--forest); color: #fff; }
.location__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.location .eyebrow { color: var(--honey-soft); }
.location h2 { color: #fff; font-size: var(--step-3); margin-top: 0.6rem; }
.location__lead { color: rgba(255,255,255,0.85); margin-top: 1rem; max-width: 50ch; }
.poi { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 2rem; }
.poi li { display: flex; align-items: center; gap: 0.8rem; padding: 0.85rem 1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); font-size: 0.95rem; }
.poi svg { width: 1.3em; height: 1.3em; color: var(--honey); flex: none; }
.location__map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid rgba(255,255,255,0.08); aspect-ratio: 4/3.4; }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(0.9); }

/* ============================================================
   DOSTĘPNOŚĆ (skrót)
   ============================================================ */
.avail { background: var(--cream); }
.avail__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2.5rem; }
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.88rem; }
.legend span { display: flex; align-items: center; gap: 0.5rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot--free { background: var(--sage); } .dot--res { background: var(--honey); } .dot--sold { background: var(--line-strong); }
.avail__hint { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.6rem; }
.bldg-row { margin-bottom: 1.4rem; }
.bldg-row__label { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.8rem; }
.bldg-row__label span { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.bldg-row__label small { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.unit {
  aspect-ratio: 1; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  font-weight: 600; font: inherit; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s; position: relative; overflow: hidden;
}
.unit::before { content:""; position:absolute; inset: auto 0 0 0; height: 4px; }
.unit--free::before { background: var(--sage); }
.unit--res::before { background: var(--honey); }
.unit--sold { color: var(--muted); background: var(--cream-2); }
.unit--sold::before { background: var(--line-strong); }
.unit:hover, .unit:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.unit b { font-family: var(--font-display); font-size: 1.3rem; }
.unit span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.unit--free span { color: var(--sage); }
.avail__cta { text-align: center; margin-top: 2.6rem; }

/* modal lokalu */
.unit-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15,18,13,0.6); display: none; align-items: center; justify-content: center; padding: 4vw; opacity: 0; transition: opacity 0.3s; }
.unit-modal.open { display: flex; opacity: 1; }
.unit-modal__panel { position: relative; width: min(420px, 100%); background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 1rem + 2vw, 2.4rem); transform: translateY(12px); transition: transform 0.3s var(--ease); }
.unit-modal.open .unit-modal__panel { transform: translateY(0); }
.unit-modal__close { position: absolute; top: 1rem; right: 1rem; width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); color: var(--ink); display: grid; place-content: center; transition: background 0.3s; }
.unit-modal__close:hover { background: var(--honey); color: #2a1d08; }
.unit-modal__close svg { width: 18px; height: 18px; }
.unit-modal__head { padding-right: 2.5rem; margin-bottom: 1.4rem; }
.unit-modal__building { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.2rem; }
.unit-modal__id { font-size: 2rem; margin-bottom: 0.4rem; }
.unit-modal__status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 999px; }
.unit-modal__status.unit--free { background: var(--sage-soft); color: var(--sage); }
.unit-modal__status.unit--res { background: var(--honey-soft); color: var(--honey-deep); }
.unit-modal__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 1.6rem; }
.um-spec { display: flex; flex-direction: column; gap: 0.2rem; }
.um-spec span { font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.um-spec b { font-family: var(--font-display); font-size: 1.15rem; }
.unit-modal__cta { width: 100%; justify-content: center; }

/* ============================================================
   KONTAKT
   ============================================================ */
.contact { background: var(--cream-2); }
.contact__agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; max-width: 760px; margin: 0 auto; }
.agent-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.6rem, 1rem + 2vw, 2.4rem) 1.4rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
.agent-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.agent__av { width: 64px; height: 64px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-content: center; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; flex: none; margin-bottom: 0.4rem; }
.agent__av.honey { background: var(--honey); color: #2a1d08; }
.agent-card b { font-size: 1.25rem; font-family: var(--font-display); font-weight: 600; }
.agent-card span { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; }
.agent-card .btn { width: 100%; }
.contact__meta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem 2rem; font-size: 0.98rem; color: var(--ink-soft); font-weight: 500; }
.contact__meta a { display:flex; gap:0.6rem; align-items:center; }
.contact__meta a:hover { color: var(--sage); }
.contact__meta svg { width: 1.2em; color: var(--honey-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--cream); }
.faq__list { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq__item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-1);
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 13px; height: 13px;
  border-right: 2.4px solid var(--honey-deep); border-bottom: 2.4px solid var(--honey-deep);
  transform: rotate(45deg); transition: transform 0.3s var(--ease); margin-top: -4px;
}
.faq__item[open] summary::after { transform: rotate(225deg); margin-top: 2px; }
.faq__item summary:hover { color: var(--sage); }
.faq__a { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }
.faq__a p { max-width: 68ch; }
.faq__a a { color: var(--honey-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding-block: clamp(3.5rem, 2.5rem + 3vw, 5.5rem) clamp(2rem, 1.5rem + 1vw, 3rem); }
.footer .container { margin-top: 20px; padding-block: 20px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer .brand { color: #fff; margin-bottom: 1rem; }
.footer p { font-size: 0.92rem; max-width: 38ch; }
.footer h4 { color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer a:hover { color: var(--honey); }
.footer__social { display:flex; gap:0.7rem; margin-top:1.2rem; }
.footer__social a { width:42px; height:42px; border-radius:50%; background:rgba(255,255,255,0.1); display:grid; place-content:center; color:#fff; transition: background 0.3s; }
.footer__social a:hover { background: var(--honey); color:#2a1d08; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { padding-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer__bottom .disclaimer { max-width: 64ch; }
.footer__credit { margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.08); font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.footer__credit a { color: rgba(255,255,255,0.7); font-weight: 600; }
.footer__credit a:hover { color: var(--honey); }

/* ============================================================
   REVEAL - animacje scrollu
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* ============================================================
   PODSTRONA DOSTĘPNOŚCI
   ============================================================ */
.subhero { background: var(--forest); color:#fff; padding-top: 9rem; padding-bottom: 3.5rem; }
.subhero .eyebrow { color: var(--honey-soft); }
.subhero h1 { color:#fff; font-size: var(--step-4); margin-top: 0.6rem; }
.subhero p { color: rgba(255,255,255,0.85); margin-top: 1rem; max-width: 56ch; }
.subhero .crumbs { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 1.4rem; }
.subhero .crumbs a:hover { color: var(--honey); }

.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 2.5rem; }
.filter { padding: 0.6em 1.2em; border-radius: 100px; border: 1.5px solid var(--line-strong); font-weight: 600; font-size: 0.9rem; transition: all 0.3s; }
.filter.active, .filter:hover { background: var(--sage); border-color: var(--sage); color: #fff; }

.siteplan { margin-bottom: 2.6rem; }
.siteplan__frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.siteplan__img { display: block; width: 100%; height: auto; }
.siteplan__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.siteplan__plot polygon {
  fill: rgba(207,155,83,0); stroke: rgba(207,155,83,0); stroke-width: 4; vector-effect: non-scaling-stroke;
  transition: fill 0.3s var(--ease), stroke 0.3s var(--ease);
}
.siteplan__plot { cursor: pointer; }
.siteplan__plot:hover polygon, .siteplan__plot:focus-visible polygon, .siteplan__plot.is-active polygon {
  fill: rgba(207,155,83,0.32); stroke: var(--honey);
}
.siteplan__plot.is-selected polygon {
  fill: rgba(78,107,80,0.30); stroke: var(--sage); stroke-width: 5;
}
.siteplan__plot:focus-visible { outline: none; }
.siteplan__street {
  position: absolute; transform: translate(-50%,-50%) rotate(-85deg); transform-origin: center;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft);
  background: rgba(255,255,255,0.72); padding: 0.15em 0.6em; border-radius: 100px; white-space: nowrap;
  pointer-events: none;
}
.siteplan__caption { margin-top: 0.9rem; text-align: center; font-size: 0.9rem; color: var(--ink-soft); }

.cards-group { margin-bottom: 2.4rem; }
.cards-group:last-child { margin-bottom: 0; }
.cards-group__title { font-size: var(--step-0); font-weight: 600; margin-bottom: 1.1rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 1.4rem; }
.cards--row { grid-template-columns: repeat(4, minmax(0,1fr)); }
.lcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease); scroll-margin-top: 100px; }
.lcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.lcard:target { border-color: var(--honey); box-shadow: 0 0 0 4px rgba(207,155,83,0.32), var(--shadow); animation: lcardTargetFlash 1.8s var(--ease); }
.lcard--linked { border-color: var(--honey); box-shadow: 0 0 0 4px rgba(207,155,83,0.32), var(--shadow); }
.lcard--selected { border-color: var(--sage); box-shadow: 0 0 0 4px rgba(78,107,80,0.28), var(--shadow); }
@keyframes lcardTargetFlash { 0% { background: var(--honey-soft); } 100% { background: var(--paper); } }
.lcard__top { padding: 1.4rem 1.5rem 0; display: flex; justify-content: space-between; align-items: flex-start; }
.lcard__id { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.lcard__id small { display:block; font-family: var(--font-body); font-size: 0.72rem; font-weight:600; letter-spacing:0.1em; text-transform:uppercase; color: var(--muted); }
.lcard__id .lcard__street { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.02em; text-transform: none; margin-bottom: 0.2rem; }
.status { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.4em 0.85em; border-radius: 100px; }
.status--free { background: var(--sage-soft); color: var(--sage); }
.status--res { background: var(--honey-soft); color: var(--honey-deep); }
.status--sold { background: var(--cream-2); color: var(--muted); }
.lcard__specs { padding: 1.2rem 1.5rem; display: grid; grid-template-columns: 1fr; gap: 0.55rem; border-block: 1px solid var(--line); margin-top: 1.2rem; }
.lspec { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-size: 0.88rem; }
.lspec span { color: var(--muted); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.lspec b { font-size: 1.05rem; text-align: right; }
.lcard__foot { padding: 1.3rem 1.5rem; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lcard__price b { font-family: var(--font-display); font-size: 1.5rem; }
.lcard__price span { display:block; font-size: 0.72rem; color: var(--muted); }
.lcard.is-sold { opacity: 0.62; }
.lcard__hide { display: none !important; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .fact:nth-child(3) { border-right: none; }
  .fact { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .levels__grid { grid-template-columns: 1fr; }
  .levels__grid > * { min-width: 0; } /* pozwól elementom siatki kurczyć się - bez tego pasek poziomów rozpycha stronę */
  .section-cut { position: static; min-width: 0; }
  .cut { flex-direction: row; overflow-x: auto; padding-bottom: 0.4rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .cut__floor { min-width: 220px; }
  .cards--row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .nav__links, .nav__phone { display: none; }
  /* ukryj wbudowany przycisk CTA, by hamburger zmieścił się na wąskich ekranach */
  .nav__cta .btn-ghost { display: none; }
  .nav__toggle { display: flex; }
  .nav__menu-open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--cream);
    padding: 0.5rem var(--gutter) 1.25rem; box-shadow: var(--shadow);
    max-height: calc(100svh - 100%); overflow-y: auto;
  }
  .nav__menu-open .nav__links a { color: var(--ink); padding: 0.95rem 0; border-bottom: 1px solid var(--line); width: 100%; font-size: 1.05rem; }
  /* CTA w rozwiniętym menu mobilnym */
  .nav__menu-open .nav__links .nav__mobcta { display: block; border-bottom: none; }
  .nav__menu-open .nav__links .nav__mobcta--phone { margin-top: 0.6rem; font-weight: 700; color: var(--sage); }
  .nav__menu-open .nav__links .nav__mobcta--btn {
    margin-top: 0.6rem; text-align: center; background: var(--sage); color: #fff;
    border-radius: 100px; padding: 0.9rem 1.2rem; font-weight: 600;
  }
  .about__grid, .location__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; margin-inline: auto; }
  .about__media .img-back { display: none; }
  .level-panel__media { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gtile--wide { grid-column: span 2; }
  .gtile--tall { grid-row: span 1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --radius-lg: 20px; }
  .facts__grid { grid-template-columns: repeat(2, 1fr); }
  .fact { border-right: 1px solid rgba(255,255,255,0.1); }
  .fact:nth-child(2n) { border-right: none; }
  .feat-grid { grid-template-columns: 1fr; }
  .poi { grid-template-columns: 1fr; }
  .cards--row { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .hero__actions { gap: 0.8rem; }
  .hero__price { margin-left: 0; }
  .footer__top { grid-template-columns: 1fr; gap: 1.8rem; }
  .gallery__grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gtile--wide { grid-column: span 1; }

  /* metraż - pełnoekranowe, ułożone pionowo przyciski poziomów (zamiast przewijania w bok) */
  .cut { flex-direction: column; overflow: visible; }
  .cut__floor { min-width: 0; }
  .cut__floor.active { transform: none; }
  .cut__roof { width: 60%; }

  /* kontakt - karty doradców jedna pod drugą */
  .contact__agents { grid-template-columns: 1fr; max-width: 400px; }

  /* znaczek „od ręki" - mniejszy i w granicach kadru */
  .about__stamp { width: 92px; height: 92px; top: -18px; right: 0; font-size: 0.66rem; }
  .about__stamp b { font-size: 1rem; }

  /* lightbox - strzałki w dolnych rogach, by nie zasłaniały zdjęcia */
  .lb-btn { width: 46px; height: 46px; top: auto; bottom: 2.5vh; transform: none; }
  .lb-prev { left: 50%; margin-left: -58px; }
  .lb-next { right: 50%; margin-right: -58px; }
  .lb-close { top: 2vh; right: 4vw; }
  .lightbox__cap { bottom: calc(2.5vh + 60px); }

  /* dostępność - budynki: 2 lokale w rzędzie zamiast 4 na wąskich ekranach */
  .units { grid-template-columns: repeat(2, 1fr); }
  .unit-modal__specs { grid-template-columns: 1fr; }
}
