/* ==========================================================================
   Apartamenty Quorum – style
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin.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: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-latin.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 {
  --bg: #f6f3ee;
  --bg-alt: #efeae2;
  --surface: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #4a453f;
  --muted: #6f675d;
  --line: #e2dbd0;
  --accent: #8b5a36;
  --accent-soft: #c9a27e;
  --dark: #171512;
  --dark-2: #22201c;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(28 26 23 / .04), 0 12px 32px -12px rgb(28 26 23 / .16);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(64px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Typography ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  letter-spacing: -.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.6rem + 4.2vw, 5rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
h3 { font-size: 1.125rem; font-weight: 600; line-height: 1.3; }
.accent { font-style: italic; color: var(--accent); }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lead, .section-lead { color: var(--ink-soft); font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); max-width: 60ch; text-wrap: pretty; }
.section-lead { margin-top: 1rem; }
.prose { color: var(--ink-soft); max-width: 68ch; text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.h-small { font-family: var(--font-body); font-weight: 600; font-variation-settings: normal; font-size: .8rem; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .8em 1.5em; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: .5em 1.2em; font-size: .875rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-outline-light { border-color: rgb(255 255 255 / .35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }

.link-btn {
  display: inline-flex; align-items: center; gap: .5em; margin-top: 1.25rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.link-btn:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(246 243 238 / .82);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 1.15rem;
}
.brand-text { font-weight: 500; letter-spacing: -.01em; }
.brand-text em { font-family: var(--font-display); font-size: 1.1em; color: var(--accent); }

.nav-list { display: flex; align-items: center; gap: clamp(.75rem, 2vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink-soft); padding: .5em 0; }
.nav-list a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

@media (max-width: 820px) {
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before { position: absolute; top: -7px; }
  .nav-toggle-bar::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

  .nav-list {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgb(0 0 0 / .25);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-list.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-list li:last-child { border: 0; padding-top: 16px; }
  .nav-list a:not(.btn) { display: block; padding: 14px 0; font-size: 1.05rem; }
  .nav-list .btn { width: 100%; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) var(--section-y); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy h1 { margin-bottom: 1.5rem; }
.badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.badges li {
  font-size: .85rem; font-weight: 500; padding: .45em .95em; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}
.badges li::before { content: "✓"; color: var(--accent); margin-right: .45em; font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-media figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: .4em .9em; border-radius: 999px;
  background: rgb(0 0 0 / .45); color: #fff; font-size: .8rem; backdrop-filter: blur(6px);
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
  .hero-media img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 80px); }
}
@media (max-width: 959px) {
  .hero-media img { aspect-ratio: 4 / 3; object-position: center 70%; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }

/* Offer cards */
.offers { background: var(--surface); }
.offer-cards { display: grid; gap: clamp(20px, 3vw, 32px); }
@media (min-width: 760px) { .offer-cards { grid-template-columns: 1fr 1fr; } }
.offer-card-link {
  display: flex; flex-direction: column; height: 100%; text-decoration: none;
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
  border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease);
}
.offer-card-link:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.offer-card-media { position: relative; overflow: hidden; }
.offer-card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.offer-card-link:hover .offer-card-media img { transform: scale(1.04); }
.floor-tag {
  position: absolute; top: 16px; left: 16px; padding: .3em .8em; border-radius: 999px;
  background: rgb(255 255 255 / .92); font-family: var(--font-display); font-size: 1.4rem; line-height: 1.2;
}
.floor-tag small { font-family: var(--font-body); font-size: .75rem; color: var(--muted); margin-left: .2em; }
.offer-card-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; gap: 1.25rem; flex: 1; }
.offer-card-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { font-weight: 600; }
.price { font-family: var(--font-display); font-size: 1.9rem; margin-top: auto; }
.price span { display: block; font-family: var(--font-body); font-size: .85rem; color: var(--muted); }
.more { font-weight: 600; color: var(--accent); }

/* Apartment */
.apartment--alt { background: var(--bg-alt); }
.apartment-head { margin-bottom: clamp(24px, 4vw, 40px); max-width: 820px; }

.gallery {
  display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
.gallery-item { position: relative; display: block; overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .7s var(--ease), filter .3s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item--main { grid-column: 1 / -1; }
.gallery-item--main img { aspect-ratio: 16 / 10; }
.gallery-item--more::after { content: ""; position: absolute; inset: 0; background: rgb(23 21 18 / .45); transition: background .3s; }
.gallery-item--more:hover::after { background: rgb(23 21 18 / .6); }
.gallery-more-label {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; text-align: center; padding: 8px;
  color: #fff; font-weight: 600; font-size: .95rem;
}
@media (max-width: 599px) {
  .gallery-item:nth-child(3), .gallery-item:nth-child(4) { display: none; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 1fr); aspect-ratio: 2.1 / 1; }
  .gallery-item img, .gallery-item--main img { aspect-ratio: auto; }
  .gallery-item--main { grid-column: 1; grid-row: 1 / span 2; }
}
/* Film w tle zamiast głównego zdjęcia */
.gallery-item--video { cursor: default; background: var(--dark); }
.gallery-item--video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) { .gallery-item--video video { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; } }
.video-sound {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: .5em;
  padding: .7em 1.1em; border: 0; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--ink);
  font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); transition: background .2s;
}
.video-sound:hover { background: #fff; }

.apartment-grid { display: grid; gap: clamp(32px, 5vw, 64px); margin-top: clamp(32px, 5vw, 56px); align-items: start; }
@media (min-width: 960px) { .apartment-grid { grid-template-columns: 1fr 360px; } }
.apartment-main { display: grid; gap: clamp(28px, 4vw, 40px); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
@media (min-width: 600px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats > div { background: var(--surface); padding: 18px 20px; }
.apartment--alt .stats > div { background: var(--bg); }
.stats dt { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stats dd { font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; }

.two-col { display: grid; gap: 32px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }

.rooms li, .price-list li, .distances li {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.rooms li span:last-child, .price-list li > span:last-child, .distances li span:last-child { font-weight: 600; white-space: nowrap; }
.checks li { position: relative; padding: 6px 0 6px 28px; color: var(--ink-soft); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .78em; width: 16px; height: 9px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) scale(.7); transform-origin: left top;
}

.price-box {
  position: sticky; top: calc(var(--header-h) + 24px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: grid; gap: .5rem;
}
.price-box-label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-box-value { font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.5vw, 2.6rem); line-height: 1.1; }
.price-box-sub { color: var(--muted); font-size: .9rem; }
.price-list { margin: 1rem 0 1.25rem; font-size: .95rem; }
.price-list small { display: block; color: var(--accent); font-size: .78rem; }
.price-box .btn + .btn { margin-top: .25rem; }
@media (max-width: 959px) { .price-box { position: static; } }

/* ---------- Podstrona apartamentu ---------- */
.apartment-page { padding-block: clamp(20px, 3vw, 32px) clamp(48px, 7vw, 96px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 clamp(20px, 3vw, 32px); padding: 0; list-style: none; font-size: .875rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }
.apartment-page-head { display: grid; gap: 16px 40px; max-width: none; align-items: end; }
@media (min-width: 900px) { .apartment-page-head { grid-template-columns: 1fr auto; } }
.apartment-page-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
.apartment-address { margin-top: .75rem; color: var(--muted); }
.apartment-page-price { font-family: var(--font-display); font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem); line-height: 1.1; white-space: nowrap; }
.apartment-page-price span { display: block; font-family: var(--font-body); font-size: .875rem; color: var(--muted); margin-top: .25rem; }
@media (min-width: 900px) { .apartment-page-price { text-align: right; } }

.h-section { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 1rem; }
.prose-block { display: grid; gap: 1rem; }
.prose-block .h-section, .prose-block .h-small { margin-bottom: 0; }
.checks strong { color: var(--ink); font-weight: 600; }

.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.gallery-section { background: var(--surface); }
.photo-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1100px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--line); cursor: zoom-in; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.photo-grid a:hover img { transform: scale(1.04); }
/* Powiększone zdjęcia dobrane tak, by 18 zdjęć wypełniało równe rzędy */
.photo-grid a:first-child { grid-column: span 2; }
@media (max-width: 699px) {
  .photo-grid a:last-child { grid-column: span 2; }
}
@media (min-width: 700px) {
  .photo-grid a:first-child { grid-row: span 2; }
  .photo-grid a:first-child img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
}
@media (min-width: 1100px) {
  .photo-grid a:nth-child(-n+2) { grid-column: span 2; grid-row: auto; }
  .photo-grid a:nth-child(-n+2) img { position: static; height: auto; aspect-ratio: 4 / 3; }
}

.building-strip { background: var(--bg-alt); }
.strip-grid { display: grid; gap: 32px clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 900px) { .strip-grid { grid-template-columns: 1fr 1fr; } }
.strip-grid .distances { margin-top: 0; }

.other-card {
  display: grid; text-decoration: none; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.other-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.other-card img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.other-card-body { padding: clamp(24px, 3vw, 40px); display: grid; gap: .75rem; align-content: center; }
.other-card-body .eyebrow { margin-bottom: 0; }
.other-card-body h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.other-card .price { margin-top: .5rem; }
@media (min-width: 760px) { .other-card { grid-template-columns: 1.1fr 1fr; } }

/* Audience */
.audience { background: var(--bg-alt); }
.cards-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .cards-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.tile { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.tile-icon { width: 36px; height: 36px; color: var(--accent); margin-bottom: 1.25rem; }
.tile h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin-bottom: .5rem; }
.tile p { color: var(--ink-soft); }

/* Building */
.building { background: var(--dark); color: #f1ece4; }
.building .section-lead { color: #bdb5a9; }
.building .eyebrow { color: var(--accent-soft); }
.building-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .building-grid { grid-template-columns: .9fr 1.1fr; } }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 2.5rem; background: rgb(255 255 255 / .1); border-radius: var(--radius-sm); overflow: hidden; }
.features li { background: var(--dark-2); padding: 20px; display: grid; gap: .25rem; }
.features strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: #fff; }
.features span { color: #bdb5a9; font-size: .9rem; }
.building-media { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.building-media figure { border-radius: var(--radius); overflow: hidden; align-self: start; }
.building-media img { width: 100%; object-fit: cover; }
.bm-a { grid-column: 1 / 6; }
.bm-b { grid-column: 2 / 7; margin-top: -48px; border: 6px solid var(--dark); }
.bm-a img { aspect-ratio: 16 / 10; }
.bm-b img { aspect-ratio: 16 / 9; }

.media-strip-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: clamp(48px, 7vw, 88px) 0 1.25rem; }
.media-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .media-strip { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.media-strip li { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark-2); }
.media-strip video, .media-strip img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.media-strip span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 32px 16px 14px; font-size: .9rem; font-weight: 600; color: #fff;
  background: linear-gradient(to top, rgb(12 11 10 / .7), transparent);
}

/* Location */
.location-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
@media (min-width: 960px) { .location-grid { grid-template-columns: 1fr 1.1fr; } }
.distances { margin-top: 2rem; }
.distances li span:first-child { color: var(--ink-soft); }
.map {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgb(139 90 54 / .12), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--bg-alt);
  border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem;
  border: 0; background: none; cursor: pointer; font-weight: 600; font-size: 1.05rem;
}
.map-consent small { font-weight: 400; color: var(--muted); font-size: .85rem; }
.map-pin {
  width: 28px; height: 28px; border-radius: 50% 50% 50% 0; background: var(--accent);
  transform: rotate(-45deg); box-shadow: 0 0 0 8px rgb(139 90 54 / .18); margin-bottom: .75rem;
}

/* Area */
.area { background: var(--surface); }
.area-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .area-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .area-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.area-card { padding: clamp(24px, 3vw, 32px); border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.area-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; margin-bottom: .5rem; }
.area-card p { color: var(--ink-soft); }
.area-card--feature { background: var(--dark); border-color: var(--dark); color: #f1ece4; }
.area-card--feature p { color: #bdb5a9; }
.area-card--feature .tile-icon { color: var(--accent-soft); }
.area-card--feature {
  background:
    linear-gradient(to bottom, rgb(23 21 18 / .15) 0%, rgb(23 21 18 / .75) 45%, var(--dark) 75%),
    url("../video/rzeka.jpg") center 35% / cover no-repeat var(--dark);
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; isolation: isolate; clip-path: inset(0 round var(--radius));
}
/* Film „widok na rzekę” w tle karty, pod gradientem */
.area-card-video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.area-card--feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgb(23 21 18 / .15) 0%, rgb(23 21 18 / .75) 45%, var(--dark) 75%);
}
@media (min-width: 1024px) {
  .area-card--feature { grid-row: span 2; }
  .area-card--feature h3 { font-size: 2rem; }
  .area-grid > .area-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr 2fr; gap: 0 24px; align-items: center; }
  .area-grid > .area-card:last-child .tile-icon, .area-grid > .area-card:last-child h3 { margin: 0; }
}

.why { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); display: grid; gap: 24px; }
@media (min-width: 960px) { .why { grid-template-columns: 1fr 2fr; gap: 64px; } }
.why-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem); line-height: 1.15; }
.why-list { counter-reset: why; display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.why-list li { counter-increment: why; position: relative; padding-left: 56px; color: var(--ink-soft); }
.why-list li::before {
  content: counter(why, decimal-leading-zero); position: absolute; left: 0; top: -.1em;
  font-family: var(--font-display); font-size: 1.5rem; color: var(--accent);
}
.why-list strong { display: block; color: var(--ink); font-weight: 600; }

/* Info */
.info { background: var(--bg-alt); }
.info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.info-grid li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; display: grid; gap: .15rem; }
.info-grid strong { font-weight: 600; }
.info-grid span { color: var(--muted); font-size: .92rem; }

/* Contact */
.contact { background: var(--dark); color: #f1ece4; text-align: center; }
.contact .eyebrow { color: var(--accent-soft); }
.contact .section-lead { color: #bdb5a9; margin-inline: auto; }
.contact-inner { display: grid; justify-items: center; }
.contact-phone {
  display: inline-block; margin-top: 2rem; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.2rem, 1.4rem + 4vw, 4.5rem); text-decoration: none; letter-spacing: -.01em; color: #fff;
  white-space: nowrap;
}
.contact-phone:hover { color: var(--accent-soft); }
.contact-name { color: #bdb5a9; margin-top: .25rem; }
.contact-actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--dark); color: #8e867a; border-top: 1px solid rgb(255 255 255 / .08); padding-block: 28px; font-size: .85rem; }
.footer-inner { display: grid; gap: .5rem; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: auto 1fr; gap: 2rem; } .disclaimer { text-align: right; } }

/* Mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 759px) {
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgb(246 243 238 / .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .mobile-cta.is-visible { transform: none; }
  body { padding-bottom: 72px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgb(12 11 10 / .96); color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox::backdrop { background: rgb(12 11 10 / .9); }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; position: relative; z-index: 2; }
.lightbox-counter { font-size: .9rem; color: #c9c2b8; font-variant-numeric: tabular-nums; }
.lightbox-figure { display: grid; place-items: center; min-height: 0; padding: 0 16px 16px; gap: 10px; grid-template-rows: 1fr auto; touch-action: pan-y; }
.lightbox-figure img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; min-height: 0; user-select: none; -webkit-user-drag: none; }
.lightbox-figure img.is-plan { background: #fff; padding: 12px; }
.lightbox-figure figcaption { font-size: .9rem; color: #c9c2b8; text-align: center; }
.lb-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); color: #fff; cursor: pointer;
  transition: background .2s;
}
.lb-btn:hover { background: rgb(255 255 255 / .16); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next, .lightbox.is-single .lightbox-counter { visibility: hidden; }
@media (max-width: 600px) {
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lightbox-figure { padding-bottom: 80px; }
}

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-cta, .map, .lightbox, .hero-actions, .price-box .btn { display: none !important; }
  body { background: #fff; }
  .building, .contact, .site-footer { background: #fff; color: #000; }
}
