/* Fresh Apartments 6 – podstrona inwestycji dewelopera Chlebowska
   Kolorystyka i typografia spójne z chlebowska.com:
   żółty #fab611 (przyciski, akcenty, wyróżnione słowa), czarny tekst, granat #193d5a, jasnoszare tło #f4f4f6.
   Fonty: Poppins (nagłówki, przyciski) + Open Sans (tekst) – licencja OFL, hostowane lokalnie (bez Google Fonts, RODO).
   Na żółtym zawsze ciemny tekst (biały na żółtym ma za niski kontrast). */

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/open-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/open-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/open-sans-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --brand-yellow: #fab611;
  --brand-yellow-dark: #e5a200;
  --brand-navy: #193d5a;
  --brand-ink: #161616;
  --brand-wood: #d4a376;
  --brand-brown: #6f4618;

  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --surface: #ffffff;
  --ink: var(--brand-ink);
  --ink-soft: #3d3f44;
  --muted: #66686d;
  --line: #e3e3e8;
  --graphite: var(--brand-navy);
  --walnut: var(--brand-navy);
  --walnut-dark: #0f2a40;
  --wood: var(--brand-wood);
  --yellow: var(--brand-yellow);
  --green: #3f7a3a;
  --green-bg: #e5f1e2;
  --amber: #8a5a00;
  --amber-bg: #fff1c7;
  --grey-bg: #e6e6ea;
  --todo: #fff3a8;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --max: 1160px;
  --font: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3, .brand, .btn, .price, .facts strong, .kicker, .exclusive { font-family: var(--font-head); }
h1, h2 { font-weight: 600; }
/* Wyróżnione słowo w nagłówku – jak na chlebowska.com, jako żółty „marker” (czytelny kontrast) */
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%); padding: 0 .08em; }
.hero .hl { background: none; color: var(--yellow); }
/* Czarny pasek górny z danymi dewelopera – jak na chlebowska.com */
.topbar { background: #000; color: #fff; font-size: .78rem; }
.topbar .wrap { display: flex; gap: 18px; align-items: center; min-height: 34px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar .co { font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.topbar .right { margin-left: auto; display: flex; gap: 18px; }
@media (max-width: 760px) { .topbar .co, .topbar .addr { display: none; } .topbar .right { margin-left: 0; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--walnut-dark); }
a:hover { color: var(--walnut); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }

/* Znacznik treści do uzupełnienia – widoczny tylko w szkielecie */
.todo { background: var(--todo); padding: 0 .3em; border-radius: 3px; font-size: .9em; }
.todo::before { content: "⚠ "; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,248,244,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-weight: 700; text-decoration: none; color: var(--ink); letter-spacing: .02em; font-size: 1.05rem; display: flex; align-items: center; gap: 14px; }
.brand span { color: var(--yellow); }
.brand img { height: 30px; width: auto; }
.brand .sep { width: 1px; height: 28px; background: var(--line); }
@media (max-width: 520px) { .brand img, .brand .sep { display: none; } }
.section-head .kicker::before { content: ""; display: inline-block; width: 22px; height: 3px; background: var(--yellow); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
.exclusive { display: inline-block; background: var(--brand-ink); color: #fff; font-weight: 600; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.header-cta { white-space: nowrap; }
.brand { white-space: nowrap; }
.brand { flex: none; }
.nav { gap: 18px; }
@media (max-width: 1360px) { .nav { display: none; } .header-cta { margin-left: auto; } }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .85em 1.6em; border-radius: 3px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: .86rem; letter-spacing: .09em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--yellow); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-yellow-dark); color: var(--brand-ink); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light { border-color: #fff; color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: .55em 1em; font-size: .78rem; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 45%; will-change: transform; animation: hero-drift 28s ease-in-out infinite alternate; }
/* Powolny „przejazd kamery”: lekkie przybliżenie i przesunięcie w bok, potem powrót */
@keyframes hero-drift {
  0%   { transform: scale(1.04) translate3d(0, 0, 0); }
  50%  { transform: scale(1.10) translate3d(-1.6%, -0.8%, 0); }
  100% { transform: scale(1.06) translate3d(1.4%, 0.6%, 0); }
}
/* Osoby, które w systemie wyłączyły animacje, widzą nieruchome zdjęcie */
@media (prefers-reduced-motion: reduce) { .hero img.hero-bg { animation: none; transform: scale(1.04); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,25,.15) 0%, rgba(20,22,25,.25) 45%, rgba(20,22,25,.78) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-bottom: 48px; padding-top: 120px; width: 100%; }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; font-weight: 650; opacity: .9; }
.hero h1 { margin: .2em 0 .3em; }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40em; opacity: .95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.photo-note {
  position: absolute; right: 12px; top: 76px; z-index: 2; max-width: 300px;
  background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; line-height: 1.4; padding: 6px 10px; border-radius: 6px;
}

@media (max-width: 760px) {
  .photo-note { top: auto; bottom: 8px; left: 12px; right: 12px; max-width: none; font-size: .72rem; }
  .hero .wrap { padding-bottom: 92px; }
}

.facts { background: var(--graphite); color: #fff; }
.facts ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 24px; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-size: 1.25rem; color: var(--yellow); }
.facts span { font-size: .85rem; opacity: .75; }

/* ---------- Sekcje ---------- */
section.block { padding: 84px 0; }
section.block.alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head .kicker { color: var(--ink); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; margin-bottom: .7em; display: block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 24px; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.features li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.features li strong { display: block; margin-bottom: 4px; }
.features li span { color: var(--ink-soft); font-size: .95rem; }

figure { margin: 0; }
figure img { border-radius: var(--radius); }
figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

/* ---------- Typy mieszkań ---------- */
.type-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.type-card .plan { background: #fff; padding: 12px; border-bottom: 1px solid var(--line); }
.type-card .plan img { border-radius: 4px; max-height: 360px; margin: 0 auto; object-fit: contain; }
.type-card .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.type-card .price { font-size: 1.6rem; font-weight: 750; }
.type-card .price small { font-size: .9rem; font-weight: 500; color: var(--muted); margin-left: .4em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { background: var(--bg-alt); border-radius: 999px; padding: 3px 12px; font-size: .85rem; }
.tags li.green { background: var(--green-bg); color: var(--green); font-weight: 600; }
table.rooms { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.rooms td { padding: 5px 0; border-bottom: 1px dashed var(--line); }
table.rooms td:last-child { text-align: right; white-space: nowrap; }
table.rooms tr.total td { font-weight: 700; border-bottom: 0; }

/* ---------- Plan osiedla ---------- */
.siteplan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.siteplan svg { width: 100%; height: auto; display: block; }
.siteplan .unit { cursor: pointer; outline: none; }
.siteplan .unit rect { transition: fill .18s ease, stroke .18s ease, stroke-width .18s ease; }
.siteplan .unit text { transition: fill .18s ease; }
/* najechanie / fokus / wiersz tabeli → intensywny żółty jak sygnet w logo (#fab613) */
.siteplan .unit.is-hl:not(.s-sprzedany) rect { fill: var(--brand-yellow); stroke: #c98a00; stroke-width: 2.5; }
.siteplan .unit.is-hl:not(.s-sprzedany) text { fill: var(--brand-ink); }
.siteplan .unit.s-sprzedany.is-hl rect { fill: #dcdcdc; }
table.units tr.is-hl:not(.is-sold) td { background: #fff3cf; }
table.units tr.is-hl:not(.is-sold) td:first-child { box-shadow: inset 4px 0 0 var(--brand-yellow); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: .88rem; color: var(--ink-soft); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -2px; margin-right: 6px; }

/* ---------- Tabela lokali ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 28px 0 16px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: .9rem; padding: .4em 1em; border-radius: 999px; cursor: pointer; color: var(--ink-soft); }
.seg button[aria-pressed="true"] { background: var(--yellow); color: var(--brand-ink); font-weight: 600; }
.filters label { font-size: .92rem; display: inline-flex; gap: 6px; align-items: center; margin-left: 6px; cursor: pointer; }
.filters .count { margin-left: auto; color: var(--muted); font-size: .9rem; }

table.units { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); font-size: .95rem; }
table.units th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 12px 14px; background: var(--bg-alt); }
table.units td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.units td.num, table.units th.num { text-align: right; white-space: nowrap; }
table.units tr.is-sold td:not(:last-child) { color: var(--muted); }
table.units tr:hover td { background: #fcfbf8; }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.status-dostepny { background: var(--green-bg); color: var(--green); }
.status-rezerwacja { background: var(--amber-bg); color: var(--amber); }
.status-sprzedany { background: var(--grey-bg); color: #666; }

@media (max-width: 1120px) {
  table.units thead { display: none; }
  table.units, table.units tbody, table.units tr, table.units td { display: block; width: 100%; }
  table.units { background: transparent; box-shadow: none; }
  table.units tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; padding: 10px 14px; }
  table.units td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.units td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: left; }
  table.units td.num { text-align: right; }
  table.units td.cell-name { font-weight: 700; font-size: 1.05rem; }
  table.units td.cell-name::before { content: none; }
  table.units tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
  table.units tr { margin-bottom: 0; }
}

/* ---------- Standard ---------- */
.std-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
@media (max-width: 860px) { .std-cols { grid-template-columns: 1fr; } }
.check, .cross { list-style: none; margin: 0; padding: 0; }
.check li, .cross li { padding: 6px 0 6px 30px; position: relative; border-bottom: 1px solid var(--line); }
.check li::before { content: "✓"; position: absolute; left: 4px; color: var(--brand-yellow-dark); font-weight: 800; }
.cross li::before { content: "–"; position: absolute; left: 8px; color: var(--muted); font-weight: 800; }
.std-group h3 { margin-top: 28px; font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); border-left: 4px solid var(--yellow); padding-left: 10px; }
.std-cols .note-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; align-self: start; position: sticky; top: 84px; }

/* ---------- Harmonogram ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; counter-reset: s; }
.timeline li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; font-size: .88rem; position: relative; }
.timeline li .when { font-weight: 700; font-size: .82rem; color: var(--muted); display: block; margin-bottom: 4px; }
.timeline li .pct { position: absolute; top: 12px; right: 12px; font-weight: 700; color: var(--ink); background: var(--yellow); border-radius: 3px; padding: 0 6px; font-size: .8rem; }
.timeline li.done { background: var(--green-bg); border-color: #cddfc8; }
.timeline li.now { border: 2px solid var(--yellow); box-shadow: var(--shadow); }
.timeline li.now::after { content: "teraz wg harmonogramu"; position: absolute; bottom: -10px; left: 12px; background: var(--yellow); color: var(--brand-ink); font-size: .7rem; padding: 1px 8px; border-radius: 999px; }
@media (max-width: 1000px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
.milestones { display: flex; flex-wrap: wrap; gap: 12px 36px; margin-top: 28px; }
.milestones div strong { display: block; font-size: 1.2rem; }

/* ---------- Dziennik budowy ---------- */
.diary-entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.diary-entry summary { padding: 14px 18px; cursor: pointer; font-weight: 600; }
.diary-entry summary time { color: var(--walnut); }
.diary-entry p { padding: 0 18px; margin: 0 0 12px; color: var(--ink-soft); }
.diary-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0 18px 18px; }
.diary-photos img { border-radius: 6px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- Lokalizacja ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .loc-grid { grid-template-columns: 1fr; } }
.poi { list-style: none; margin: 0; padding: 0; }
.poi li { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.poi .poi-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-ink); color: var(--yellow); font-family: var(--font-head); font-weight: 600; font-size: .8rem; }
.poi .poi-num.off { background: var(--grey-bg); color: var(--muted); }
.poi .poi-name { flex: 1; font-size: .95rem; }
.poi .poi-dist { white-space: nowrap; font-weight: 600; font-size: .9rem; }
.poi.car li { padding-left: 0; }
.poi.car li::before { content: ""; flex: none; width: 26px; height: 4px; background: var(--yellow); border-radius: 2px; }
.loc-map img { border: 1px solid var(--line); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* ---------- Rodzina, realizacje, zespół ---------- */
.avatar { flex: none; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--brand-ink); font-family: var(--font-head); font-weight: 600; font-size: 1rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xl { width: 168px; height: 168px; font-size: 2.4rem; }
.family { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.family li { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.family li strong { display: block; }
.family li span:not(.avatar) { color: var(--ink-soft); font-size: .92rem; }
.projects { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.projects li { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: var(--radius); padding: 12px 16px; }
.projects li strong { display: block; font-family: var(--font-head); }
.projects li span { color: var(--ink-soft); font-size: .9rem; }
.team-head { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 32px; }
.team-head .section-head { max-width: 44em; }
.seldom-logo { height: auto; max-width: 260px; }
.team-lead { display: flex; gap: 28px; align-items: center; background: var(--bg-alt); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; }
@media (max-width: 640px) { .team-lead { flex-direction: column; align-items: flex-start; } }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.contact-card .seldom-logo { background: #fff; padding: 10px 14px; border-radius: 3px; display: block; width: 200px; }
.timeline li .when { padding-right: 44px; }
.team li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.team li .avatar { width: 72px; height: 72px; }
.team li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team li .role { color: var(--muted); font-size: .85rem; margin-bottom: 4px; }
.team li a { font-size: .88rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.team li a:hover { text-decoration: underline; }

/* ---------- Kroki zakupu ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--brand-ink); font-weight: 700; margin-bottom: 10px; }
.steps li strong { display: block; }
.steps li span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

table.pay { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.pay th, table.pay td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
table.pay th { background: var(--bg-alt); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
table.pay td.num, table.pay th.num { text-align: right; white-space: nowrap; }
table.pay tfoot td { font-weight: 700; border-bottom: 0; }

/* ---------- Galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery figure:first-child img { aspect-ratio: auto; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:first-child { grid-column: span 2; grid-row: auto; } }

/* ---------- FAQ ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 1.4rem; color: var(--brand-yellow-dark); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 20px 16px; color: var(--ink-soft); }

/* ---------- Dokumenty ---------- */
.docs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.docs li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.docs li a { font-weight: 650; }

/* ---------- Kontakt ---------- */
.contact-card { background: var(--yellow); color: var(--brand-ink); border-radius: var(--radius); padding: 32px; }
.contact-card a { color: var(--brand-ink); }
.contact-card .big { font-size: 1.6rem; font-weight: 750; text-decoration: none; display: inline-block; margin: 6px 0; }
form.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.lead-form input, .lead-form select, .lead-form textarea {
  font: inherit; font-weight: 400; padding: .65em .8em; border: 1px solid #cfc9bd; border-radius: 8px; background: #fff; width: 100%;
}
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--walnut); outline-offset: 1px; border-color: transparent; }
.lead-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .82rem; color: var(--ink-soft); }
.lead-form .consent input { width: auto; margin-top: 4px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .lead-form .row { grid-template-columns: 1fr; } }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form button[disabled] { opacity: .6; cursor: wait; }
.form-msg.error { background: var(--amber-bg); color: var(--amber); }
.consent-info { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.5; }
.form-msg { font-size: .9rem; padding: 10px 12px; border-radius: 8px; background: var(--green-bg); color: var(--green); display: none; }
.form-msg.show { display: block; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--bg-alt); color: var(--ink-soft); padding: 48px 0 96px; font-size: .88rem; }
.site-footer a { color: var(--ink); }
.site-footer strong { color: var(--ink) !important; }
.site-footer .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.site-footer .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Pasek telefonu na komórce ---------- */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(250,248,244,.97); border-top: 1px solid var(--line); }
  .mobile-bar .btn { flex: 1; padding: .7em .5em; }
}

/* ---------- Podstrona lokalu ---------- */
.crumbs { font-size: .88rem; color: var(--muted); padding: 20px 0 0; }
.unit-head { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; padding: 12px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.unit-head .price { font-size: 2rem; font-weight: 780; }
.unit-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 900px) { .unit-layout { grid-template-columns: 1fr; } }
.unit-plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h3 { margin-bottom: .7em; }
dl.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: .95rem; }
dl.spec dt { color: var(--muted); }
dl.spec dd { margin: 0; font-weight: 600; }
.notice { background: var(--amber-bg); border-radius: var(--radius); padding: 14px 18px; font-size: .92rem; margin-bottom: 20px; }
.sold-box { background: var(--grey-bg); border-radius: var(--radius); padding: 22px; }

/* ---------- Karta mieszkania do PDF (wydruk podstrony lokalu) ---------- */
.unit-head-right { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.print-only { display: none; }
@media print {
  @page { size: A4; margin: 11mm 12mm; }
  html { font-size: 10.5px; }
  body { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .site-header, .site-footer, .mobile-bar, .crumbs, .no-print, .btn, .unit-docs { display: none !important; }
  .print-only { display: block; }
  .wrap { max-width: none; padding: 0; }
  main#unit { padding: 0 !important; }
  .print-head { display: flex; align-items: center; gap: 16px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 3px solid var(--brand-yellow); font-size: .95rem; }
  .print-head img { height: 30px; width: auto; }
  .print-head .ph-right { margin-left: auto; text-align: right; color: var(--muted); }
  .unit-head { padding: 0 0 10px; margin-bottom: 12px; }
  .unit-head .price { font-size: 1.9rem; }
  #unit h1 { font-size: 2.1rem !important; }
  .unit-head p, .unit-head .muted { font-size: 1rem; }
  ul.check li, .panel ul li { font-size: 1rem; margin-bottom: 2px; }
  .check li { padding: 3px 0 3px 22px; font-size: 1rem !important; }
  .panel .small, .panel p.small { font-size: .85rem; }
  .sold-box { padding: 10px 12px; margin-bottom: 10px; }
  .sold-box h3 { font-size: 1.15rem; margin: 0 0 4px; }
  .sold-box p { font-size: 1rem; margin: 0; }
  dl.spec { gap: 1px 14px; }
  dl.spec dt, dl.spec dd { font-size: 1rem; padding: 0; }
  table.pay, table.rooms { font-size: .95rem; }
  table.pay td, table.pay th, table.rooms td { padding-top: 1px !important; padding-bottom: 1px !important; line-height: 1.35; }
  .panel p.small { margin-top: 5px !important; }
  .unit-layout { grid-template-columns: 1.15fr 1fr; gap: 16px; }
  .unit-plan { padding: 6px; }
  .unit-plan img { max-height: 112mm; width: auto; margin: 0 auto; }
  .panel { padding: 10px 12px; margin-bottom: 10px; box-shadow: none; break-inside: avoid; }
  .panel h3 { font-size: 1.15rem; margin-bottom: .4em; }
  .panel[style] { margin-top: 10px !important; }
  table.pay td, table.pay th, table.rooms td { padding-top: 3px !important; padding-bottom: 3px !important; }
  a { color: inherit; text-decoration: none; }
  .print-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin-top: 10px; padding-top: 8px; border-top: 3px solid var(--brand-yellow); font-size: .9rem; break-inside: avoid; }
  .print-foot p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
}
