/* ============================================================
   NA ZAMKOWYM — rozwinięcie „Stylu D / Konwersja", runda 1
   Clash Display (jak obecna strona) · akcent #32404F (kolor marki)
   zaokrąglenia · karty · pasek konwersji
   ============================================================ */

@font-face { font-family: 'Clash Display'; src: url('fonts/ClashDisplay-Extralight.woff') format('woff'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/ClashDisplay-Light.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/ClashDisplay-Regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/ClashDisplay-Medium.woff') format('woff'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Clash Display'; src: url('fonts/ClashDisplay-Semibold.woff') format('woff'); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --green:        #0E7A4F;   /* kolor 2 — przełamanie szarości marki */
  --green-hover:  #0C6743;
  --green-050:    #E8F5EE;
  --green-100:    #CDE9DA;
  --accent:       #32404F;
  --accent-hover: #26323E;
  --accent-050:   #EDF0F3;
  --accent-100:   #D3DAE1;
  --steel:        #81A2BF;
  --ink:          #1A222B;
  --ink-2:        #4A5663;
  --ink-3:        #6C7885;
  --line:         #E3E7EC;
  --line-2:       #CBD2DA;
  --tint:         #F1F3F6;
  --tint-2:       #F8F8F8;
  --white:        #FFFFFF;

  --amber:        #8A5A12;
  --amber-bg:     #FFF3E0;
  --amber-strong: #C98A2B;

  --sh-cta:  0 6px 18px rgba(50,64,79,.28);
  --sh-card: 0 10px 30px rgba(26,34,43,.10);
  --sh-pop:  0 18px 50px rgba(26,34,43,.22);

  --r-btn: 10px;
  --r-card: 16px;
  --r-chip: 8px;

  --pad: clamp(16px, 4vw, 48px);
  --maxw: 1400px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Clash Display', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { margin: 0; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.8vw, 60px); line-height: 1.06; }
h2 { font-size: clamp(25px, 3.1vw, 40px); line-height: 1.1; letter-spacing: -.015em; }
h3 { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
p  { margin: 0 0 1em; }

.lead   { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62; color: var(--ink-2); max-width: 58ch; }
.small  { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.tiny   { font-size: 12px; line-height: 1.5; color: var(--ink-3); }
.num    { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

section { padding-block: clamp(56px, 6.5vw, 112px); }
section.tinted { background: var(--tint-2); }

.sec-head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.sec-head .eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 12px;
}
.sec-head h2 + p { margin-top: 12px; }

/* ---------- przyciski ---------- */

.btn {
  font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 14px 24px; border-radius: var(--r-btn); border: 1.5px solid transparent;
  background: var(--accent); color: #fff; box-shadow: var(--sh-cta);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
  transition: background .15s, transform .12s, box-shadow .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn.green { background: var(--green); box-shadow: 0 6px 18px rgba(14,122,79,.28); }
.btn.green:hover { background: var(--green-hover); }
.btn:active { transform: none; }
.btn.dark  { background: var(--ink); box-shadow: 0 6px 18px rgba(26,34,43,.24); }
.btn.dark:hover { background: #2A3643; }
.btn.quiet { background: var(--tint); color: var(--ink); box-shadow: none; }
.btn.quiet:hover { background: var(--line); }
.btn.line  { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.line:hover { border-color: var(--ink); background: transparent; }
.btn.onDark { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.34); box-shadow: none; }
.btn.onDark:hover { background: rgba(255,255,255,.18); }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn.block { width: 100%; justify-content: center; }

/* ---------- badge / status ---------- */

.badge {
  font-size: 12px; font-weight: 600; letter-spacing: .01em;
  padding: 7px 12px; border-radius: var(--r-chip); display: inline-flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.badge.green { background: var(--green-050); color: var(--green); }
.badge.amber { background: var(--amber-bg);  color: var(--amber); }
.badge.ink   { background: var(--ink);       color: #fff; }
.badge.glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.24); }

.st { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: var(--r-chip); text-transform: uppercase; white-space: nowrap; }
.st.dostepne    { background: var(--green); color: #fff; }
.st.rezerwacja  { background: var(--amber-bg);  color: var(--amber); }
.st.sprzedane   { background: var(--tint);      color: var(--ink-3); }
.st.niedostepne { background: var(--tint);      color: var(--ink-3); }

.dot { width: 7px; height: 7px; border-radius: 99px; background: var(--green); flex: none; display: inline-block; }

/* ---------- header ---------- */

.topbar { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .row { max-width: var(--maxw); margin: 0 auto; padding: 10px var(--pad); display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.logo { display: inline-flex; color: var(--accent); flex: none; }
.logo-svg { height: 46px; width: auto; display: block; }
.topnav { margin-left: auto; display: flex; gap: clamp(16px, 2.2vw, 34px); align-items: center; }
.topnav a, .has-sub > a { color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 500; letter-spacing: .09em; white-space: nowrap; padding: 8px 0; display: inline-block; }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--accent); }
.topnav a[aria-current="page"] { box-shadow: 0 2px 0 var(--accent); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.has-sub .sub {
  position: absolute; left: -16px; top: 100%; min-width: 220px; padding: 8px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; box-shadow: var(--sh-card);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s, transform .16s, visibility .16s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.has-sub .sub a { display: block; padding: 10px 12px; border-radius: 8px; letter-spacing: .02em; font-size: 14px; }
.has-sub .sub a:hover { background: var(--tint); }
.tel { font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tel:hover { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; margin-left: auto; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger i { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger i:nth-child(2) { opacity: 0; }
.menu-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { display: none; flex-direction: column; padding: 8px var(--pad) 20px; border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - 66px); overflow-y: auto; }
.mnav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; letter-spacing: .06em; font-size: 14px; }
.mnav a.m-sub { padding-left: 16px; color: var(--ink-2); letter-spacing: .01em; font-size: 15px; }
.mnav a.m-tel { margin-top: 14px; border: 0; background: var(--accent); color: #fff; text-align: center; border-radius: var(--r-btn); letter-spacing: 0; }
@media (max-width: 1000px) {
  .topnav, .tel { display: none; }
  .burger { display: inline-flex; }
  .menu-open .mnav { display: flex; }
  .mnav[hidden] { display: none; }
  .logo-svg { height: 40px; }
}

.crumbs { background: var(--tint-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.crumbs .wrap { display: flex; gap: 10px; align-items: center; padding-block: 12px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs b { font-weight: 500; color: var(--ink); }

/* ---------- HERO ---------- */

.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; min-height: clamp(540px, 74vh, 760px); display: flex; align-items: center; }
.hero .bg { position: absolute; inset: 0; }
.hero .bg picture { display: contents; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 44%; }
.hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(26,34,43,.78) 0%, rgba(26,34,43,.56) 34%, rgba(26,34,43,.12) 58%, rgba(26,34,43,0) 100%),
    linear-gradient(to top, rgba(26,34,43,.34) 0%, rgba(26,34,43,0) 34%);
}
.hero .inner {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(44px, 6vw, 92px) var(--pad) clamp(40px, 5vw, 76px);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 384px); gap: clamp(28px, 4vw, 64px); align-items: center;
}
@media (max-width: 1000px) { .hero .inner { grid-template-columns: minmax(0, 1fr); } }

.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hero h1 { margin-bottom: 20px; max-width: 15ch; }
.hero .sub { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; color: rgba(255,255,255,.78); max-width: 52ch; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.64); }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }

/* wyszukiwarka w hero */
.finder { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 22px; box-shadow: var(--sh-pop); }
.finder .finder-t { margin-bottom: 4px; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.25; letter-spacing: -.01em; }
.finder .f-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.f-row { margin-bottom: 14px; }
.f-row > span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.f-opts { display: flex; gap: 6px; flex-wrap: wrap; }
.f-opt {
  font-family: inherit; font-size: 13px; font-weight: 600; padding: 9px 13px; border-radius: var(--r-chip);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; transition: .14s;
}
.f-opt:hover { border-color: var(--line-2); }
.f-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.f-out { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.f-count { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.f-count b { color: var(--green); }

/* ---------- pasek liczb ---------- */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr)); gap: 12px; }
.stat { background: var(--tint-2); border: 1.5px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; }
.stat .v { font-size: clamp(17px, 1.7vw, 22px); font-weight: 600; letter-spacing: -.015em; }
.stat .k { font-size: 12.5px; font-weight: 600; color: var(--ink-3); margin-top: 4px; }
.stat.hi { background: var(--green-050); border-color: var(--green-100); }
.stat.hi .v { color: var(--green); }
.stat.hi .k { color: var(--green); opacity: .85; }

/* ---------- filtry ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: clamp(22px, 2.6vw, 34px); }
.chip {
  font-family: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 18px; border-radius: 99px;
  border: 1.5px solid transparent; background: var(--tint); color: var(--ink); cursor: pointer; transition: .14s;
}
.chip:hover { background: var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
select.chip { appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* ---------- karty lokali ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 282px), 1fr)); gap: 20px; }
.card {
  border: 1.5px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; cursor: pointer; transition: box-shadow .18s, border-color .18s, transform .18s;
}
.card:hover { box-shadow: var(--sh-card); border-color: var(--line-2); transform: translateY(-2px); }
.card.off { opacity: .55; }
.card.off:hover { transform: none; box-shadow: none; }
.card .thumb { position: relative; height: 216px; background: var(--tint-2); display: flex; align-items: center; justify-content: center; }
.card .thumb img { max-width: 90%; max-height: 92%; object-fit: contain; }
.card .thumb .st { position: absolute; top: 12px; left: 12px; }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.card .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card .nr { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.card .fl { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .tag { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 7px; background: var(--tint); color: var(--ink-2); }
.card .tag.g { background: var(--green-050); color: var(--green); box-shadow: inset 0 0 0 1px var(--green-100); }
.card .price { font-size: 24px; font-weight: 600; letter-spacing: -.015em; margin-top: auto; }
.card .meta { font-size: 12.5px; color: var(--ink-3); }
.card .cut { color: var(--green); font-weight: 600; }
.card .acts { display: flex; gap: 8px; margin-top: 6px; }
.card .acts .btn { flex: 1; justify-content: center; }

/* ---------- „pokaż więcej" ---------- */

.more {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: clamp(28px, 3.4vw, 44px); padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.more .info { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.more .info b { color: var(--ink); }
.more .btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.more[hidden] { display: none; }

/* ---------- sytuacje życiowe ---------- */

.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.case {
  font-family: inherit; text-align: left; cursor: pointer;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-card);
  padding: 22px 20px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.case:hover { border-color: var(--accent-100); box-shadow: var(--sh-card); transform: translateY(-2px); }
.case .t { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.case .d { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.case .n { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* ---------- pas CTA ---------- */

.ctaband {
  background: var(--ink); color: #fff; border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 40px); display: flex; gap: 24px; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
}
.ctaband h3 { font-size: clamp(19px, 2vw, 26px); font-weight: 600; margin-bottom: 6px; }
.ctaband p { margin: 0; font-size: 15px; color: rgba(255,255,255,.72); max-width: 52ch; }
.ctaband .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- mapa budynku ---------- */

.floors { display: flex; flex-direction: column; gap: 10px; }
.floor { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; }
.floor .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.floor .units { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.unit {
  font-family: inherit; border: 1.5px solid var(--line); background: #fff; border-radius: 10px;
  padding: 10px 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
  transition: .14s;
}
.unit .un { font-size: 13px; font-weight: 600; }
.unit .ua { font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.unit[data-s="Dostępne"]   { border-color: var(--green); background: #fff; color: var(--green); }
.unit[data-s="Dostępne"] .ua { color: var(--green); opacity: .85; }
.unit[data-s="Dostępne"]:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(14,122,79,.28); }
.unit[data-s="Dostępne"]:hover .ua { color: rgba(255,255,255,.82); }
.unit[data-s="Rezerwacja"] { border-color: #F2E3C6; background: var(--amber-bg); color: var(--amber); cursor: default; }
.unit[data-s="Rezerwacja"] .ua { color: var(--amber); opacity: .7; }
.unit[data-s="Sprzedane"], .unit[data-s="Niedostępne"] { background: var(--tint); border-color: transparent; color: var(--ink-3); cursor: default; }
.unit[data-s="Sprzedane"] .un, .unit[data-s="Niedostępne"] .un { opacity: .6; }
.unit.sel { outline: 3px solid var(--ink); outline-offset: 1px; }
@media (max-width: 860px) {
  .floor { grid-template-columns: 1fr; gap: 6px; }
  .floor .units { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.legend i { width: 14px; height: 14px; border-radius: 5px; display: inline-block; vertical-align: -3px; margin-right: 7px; }

/* ---------- panele ---------- */

.panel { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-card); padding: clamp(18px, 2.2vw, 28px); }
.panel.tint  { background: var(--tint-2); }
.panel.green { background: var(--green-050); border-color: var(--green-100); }

/* ---------- listy parametrów ---------- */

.rows { display: flex; flex-direction: column; }
.rows .r { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rows .r:last-child { border-bottom: 0; }
.rows .r .k { color: var(--ink-2); font-weight: 500; }
.rows .r .v { font-weight: 600; text-align: right; }
.rows .r .v em { font-style: normal; font-weight: 500; color: var(--ink-3); font-size: 12.5px; }
.rows .r.total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 16px; }
.rows .r.total .k { color: var(--ink); font-weight: 600; font-size: 16px; }
.rows .r.total .v { font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.rows .r.muted .v { font-weight: 500; color: var(--ink-3); font-size: 13px; }

.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

/* ---------- suwaki ---------- */

.slider { margin-bottom: 16px; }
.slider label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.slider label b { color: var(--ink); font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--accent); }

/* ---------- nasłonecznienie ---------- */

.sunbox { background: var(--tint-2); border: 1.5px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.sunbox svg { width: 100%; height: auto; display: block; }
.sunbars { display: flex; flex-direction: column; gap: 9px; }
.sunbar { display: grid; grid-template-columns: 88px minmax(0, 1fr) 52px; gap: 12px; align-items: center; font-size: 13px; font-weight: 600; }
.sunbar .track { height: 14px; border-radius: 99px; background: var(--tint); position: relative; overflow: hidden; }
.sunbar .track i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, var(--amber-strong), var(--green)); border-radius: 99px; }
.sunbar .track b { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(26,34,43,.22); }
.sunbar .h { text-align: right; color: var(--ink-2); }

/* ---------- widok z piętra ---------- */

.viewstage { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--ink); aspect-ratio: 16/10; }
.viewstage img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .4s ease; }
.viewstage .tagpos { position: absolute; left: 14px; bottom: 14px; }

/* ---------- harmonogram ---------- */

.tlbar { display: flex; gap: 3px; margin-bottom: 22px; }
.tlbar i { height: 10px; border-radius: 99px; background: var(--line); }
.tlbar i.done { background: var(--green); }
.stage { display: grid; grid-template-columns: 62px minmax(0, 1fr) 120px; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.stage .pc { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.stage.done .pc { color: var(--green); }
.stage .txt { font-size: 14.5px; }
.stage .txt small { display: block; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 3px; }
.stage.done .txt small { color: var(--green); }
.stage .dt { font-size: 13px; font-weight: 600; color: var(--ink-3); text-align: right; }
@media (max-width: 640px) { .stage { grid-template-columns: 52px 1fr; } .stage .dt { grid-column: 2; text-align: left; } }

/* ---------- FAQ ---------- */

details { border: 1.5px solid var(--line); border-radius: var(--r-card); margin-bottom: 10px; background: #fff; }
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; padding: 17px 20px; font-weight: 600; font-size: 15.5px; letter-spacing: -.015em; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 20px; font-weight: 600; line-height: 1; }
details[open] summary::after { content: "–"; }
details .ans { padding: 0 20px 18px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }

/* ---------- formularz ---------- */

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%; font-family: inherit; font-size: 15px; padding: 14px 16px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-btn); background: #fff; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-050); }

/* ---------- paski dolne ---------- */

.stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--ink); color: #fff; transform: translateY(115%); transition: transform .26s ease; }
.stickybar.on { transform: none; }
.stickybar .row { max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.stickybar .lbl { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.55); }
.stickybar .val { font-size: 15px; font-weight: 600; }

.cmpbar { position: fixed; left: var(--pad); bottom: 84px; z-index: 65; background: var(--ink); color: #fff; border-radius: var(--r-btn); padding: 10px 14px; display: none; gap: 12px; align-items: center; font-size: 13.5px; font-weight: 600; box-shadow: var(--sh-pop); }
.cmpbar.on { display: flex; }

/* ---------- panel lokalu ---------- */

.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(26,34,43,.5); display: none; }
.sheet.on { display: block; }
.sheet-inner { position: absolute; right: 0; top: 0; bottom: 0; width: min(720px, 100%); background: #fff; overflow-y: auto; }
.sheet-head { position: sticky; top: 0; z-index: 2; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 15px var(--pad); display: flex; align-items: center; gap: 12px; }
.sheet-head .nr { font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.sheet-body { padding: 24px var(--pad) 130px; display: flex; flex-direction: column; gap: 30px; }
.xbtn { margin-left: auto; border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-btn); padding: 9px 14px; cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.xbtn:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- porównywarka ---------- */

.cmp { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); }
.cmp td { font-weight: 600; }
.scrollx { overflow-x: auto; }

/* ---------- siatki ---------- */

.g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(18px, 2.5vw, 36px); }
.g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: clamp(20px, 3vw, 44px); align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: minmax(0, 1fr); } }
.g2 > *, .g3 > *, .split > * { min-width: 0; }

figure { margin: 0; }
figure img { border-radius: var(--r-card); }
figcaption { font-size: 12px; color: var(--ink-3); margin-top: 8px; }

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

/* ---------- mobile ---------- */

@media (max-width: 700px) {
  body { overflow-x: hidden; }
  .hero h1 { max-width: none; }
  .hero .inner { padding-top: 36px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 16px; }
  .floor .units { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sunbar { grid-template-columns: 74px 1fr 44px; font-size: 12px; }
  .cmpbar { left: 12px; right: 12px; bottom: 96px; }
  .sheet-body { padding-bottom: 140px; }
}

/* ============================================================
   RUNDA 1 — podstrony, stopka, wizytówki, galeria, preloader, ruch
   ============================================================ */

/* ---------- podstrony: pierwszy nagłówek to h1 ---------- */
main h1:not(.hero h1) { font-size: clamp(25px, 3.1vw, 40px); line-height: 1.1; }
.sec-head h1 + p { margin-top: 12px; }

/* ---------- hub „O inwestycji" ---------- */
.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.hub-card {
  display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-card);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.hub-card:hover { border-color: var(--accent); box-shadow: var(--sh-card); transform: translateY(-2px); }
.hub-card .t { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.hub-card .d { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.hub-card .go { margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* ---------- wizytówki zespołu ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 380px)); gap: clamp(18px, 2.4vw, 32px); justify-content: center; }
.agent { background: #fff; border: 1.5px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-card); display: flex; flex-direction: column; }
.agent .ph { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--tint); border-bottom: 1px solid var(--line-2); }
.agent .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 0; }
.agent .bd { padding: 24px 24px 28px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.agent h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.agent .role { margin: 0 0 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pill {
  display: block; width: min(100%, 300px); padding: 12px 18px; text-align: center; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 15px; border: 1.5px solid var(--line-2); border-radius: 99px;
  transition: background .15s, color .15s, border-color .15s; overflow-wrap: anywhere;
}
.pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.g-item { margin: 0; }
.g-item[hidden] { display: none; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: var(--tint); border-radius: var(--r-card); overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.g-open img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .45s ease; }
.g-open:hover img { transform: scale(1.04); }
.g-item figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(26,34,43,.92); display: flex; align-items: center; justify-content: center; padding: 56px 16px 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.lb-x { position: absolute; top: 14px; right: 14px; padding: 10px 16px; border-radius: var(--r-btn); border: 1.5px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.lb-x:hover { background: rgba(255,255,255,.2); }

/* ---------- stopka ---------- */
.foot { background: var(--accent); color: #fff; padding-block: clamp(40px, 5vw, 72px) 36px; position: relative; overflow: hidden; }
.foot .wrap { position: relative; }
.foot-cta { text-align: center; display: flex; flex-direction: column; gap: 6px; padding-bottom: clamp(28px, 4vw, 52px); margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid rgba(255,255,255,.18); }
.foot-tel { font-size: clamp(30px, 5vw, 58px); font-weight: 300; letter-spacing: -.01em; color: #fff; text-decoration: none; line-height: 1.15; }
.foot-mail { font-size: clamp(17px, 2.4vw, 28px); font-weight: 300; color: rgba(255,255,255,.86); text-decoration: none; overflow-wrap: anywhere; }
.foot-tel:hover, .foot-mail:hover { text-decoration: underline; text-underline-offset: 6px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1.5fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.foot-logo .logo-svg { height: 96px; color: #fff; opacity: .92; }
.foot h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.foot p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: rgba(255,255,255,.9); }
.foot p b { font-weight: 600; }
.foot a { color: #fff; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; }
.foot .disc { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.62); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-logo { grid-column: 1 / -1; } }
@media (max-width: 620px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- preloader (lekki, raz na sesję) ---------- */
.pre { position: fixed; inset: 0; z-index: 200; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: var(--accent); transition: opacity .4s ease, visibility .4s ease; }
.pre .pre-logo { height: 88px; animation: preIn .5s ease both; }
.pre-bar { display: block; width: 84px; height: 2px; border-radius: 2px; background: var(--line); position: relative; overflow: hidden; }
.pre-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: preSlide 1s ease-in-out infinite; }
@keyframes preIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes preSlide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.pre-done .pre, .pre-skip .pre { opacity: 0; visibility: hidden; pointer-events: none; }
html:not(.js) .pre { display: none; }

/* ---------- ruch: scroll-reveal (lekki wariant) ---------- */
[data-reveal] { transition: opacity .55s ease, transform .55s ease; transition-delay: var(--d, 0s); }
html.js:not(.motion-off) [data-reveal] { opacity: 0; transform: translateY(16px); }
html.js [data-reveal].in { opacity: 1; transform: translateY(0); }
html.motion-off .pre { display: none; }
html.motion-off * { animation: none !important; transition: none !important; }
.stats .v { font-variant-numeric: tabular-nums; }

/* korekty po pierwszym przeglądzie */
.agent .ph { aspect-ratio: 4 / 4.6; }
.agent .ph img { transform: scale(1.3); transform-origin: 50% 30%; }
.stat .v { font-size: clamp(15px, 1.45vw, 19px); }

/* ============================================================
   WORDPRESS — dodatki motywu
   ============================================================ */

.skip { position: absolute; left: -9999px; top: 8px; z-index: 300; background: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--sh-pop); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


.entry { max-width: 72ch; }
.entry h2, .entry h3 { margin: 1.6em 0 .5em; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1em; }
.editor-extra { padding-block: clamp(32px, 4vw, 56px); }

.form-msg { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-btn); font-size: 14.5px; font-weight: 500; }
.form-msg.ok-msg { background: var(--accent-050); color: var(--accent); border: 1.5px solid var(--accent-100); }
.form-msg.err-msg { background: var(--amber-bg); color: var(--amber); }

.tabela-lokali { margin-top: clamp(24px, 3vw, 40px); }
.tabela-lokali .cmp a { color: var(--accent); font-weight: 600; }

.lokal-nav { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: clamp(34px, 4vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.lokal-nav a { color: var(--ink-2); text-decoration: none; }
.lokal-nav a:hover { color: var(--accent); }

/* ---------- nawigator budynku (obrót, 3 widoki) ---------- */
.nav3d { margin-bottom: clamp(24px, 3vw, 40px); }
.nav3d-stage {
  position: relative; overflow: hidden; border-radius: var(--r-card); background: var(--tint);
  box-shadow: var(--sh-card); aspect-ratio: 2000 / 1226; user-select: none; touch-action: pan-y;
}
.nav3d-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .18s ease; }
.nav3d-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .18s ease; }
.nav3d-stage.is-turning .nav3d-img, .nav3d-stage.is-turning .nav3d-svg { opacity: 0; }
.nv-p { stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: default; outline: none; transition: fill .14s, stroke-width .14s; }
.nv-p.is-free { fill: rgba(14,122,79,.34); cursor: pointer; }
.nv-p.is-free:hover, .nv-p.is-free:focus { fill: rgba(14,122,79,.62); stroke-width: 2.4; }
.nv-p.is-res  { fill: rgba(201,138,43,.40); }
.nv-p.is-off  { fill: rgba(26,34,43,.34); }
.nv-p.is-res:hover, .nv-p.is-off:hover, .nv-p.is-res:focus, .nv-p.is-off:focus { stroke-width: 2.4; }
.nav3d-tip {
  position: absolute; z-index: 3; transform: translate(-50%, calc(-100% - 8px)); pointer-events: none;
  background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; line-height: 1.45;
  box-shadow: var(--sh-pop); white-space: nowrap; display: flex; flex-direction: column; gap: 2px;
}
.nav3d-tip[hidden] { display: none; }
.nav3d-tip .t-st { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.nav3d-tip .t-st.is-free { color: var(--green); }
.nav3d-tip .t-st.is-res { color: var(--amber); }
.nav3d-tip .t-st.is-off { color: var(--ink-3); }
.nav3d-tip .t-pr { font-weight: 600; }
.nav3d-tip .t-go { font-weight: 600; color: var(--accent); }
.nav3d-ctl { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.nav3d-btn {
  font-family: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px; border-radius: var(--r-btn); border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; transition: .14s;
}
.nav3d-btn:hover { border-color: var(--accent); color: var(--accent); }
.nav3d-btn svg { width: 18px; height: 18px; flex: none; }
.nav3d-mid { display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nav3d-dots { display: flex; gap: 7px; }
.nav3d-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; }
.nav3d-dots button[aria-current="true"] { background: var(--accent); }
.nav3d-hint { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.nav3d:not(.is-ready) .nav3d-ctl, .nav3d:not(.is-ready) .nav3d-hint { display: none; }
.nav3d:not(.is-ready) .nav3d-img { position: static; height: auto; }
.nav3d-sub { margin: 0 0 14px; font-size: clamp(17px, 1.6vw, 20px); }
@media (max-width: 560px) {
  .nav3d-btn span { display: none; }
  .nav3d-mid { order: -1; width: 100%; justify-content: center; }
  .nav3d-ctl { justify-content: center; }
  .nav3d-tip { font-size: 12.5px; padding: 8px 11px; }
}
@media (prefers-reduced-motion: reduce) { .nav3d-img, .nav3d-svg, .nv-p { transition: none; } }

/* ---------- mapa lokalizacji ---------- */
.locmap { margin-top: clamp(22px, 3vw, 36px); }
.locmap img { width: 100%; height: auto; border-radius: var(--r-card); box-shadow: var(--sh-card); border: 1px solid var(--line); }
