:root {
  --bg: #e4dfd2;
  --paper: #fffaf1;
  --primary: #704639;
  --accent: #873400;
  --accent2: #7a3e23;
  --muted: #7d6f65;
  --dark: #191411;
  --line: rgba(112, 70, 57, 0.18);
  --max: 1500px;
  --section-x: max(36px, calc((100vw - var(--max)) / 2));
  --section-gap: 96px;
  --section-head-gap: 44px;
  --scroll-offset: 100px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--dark);
  font-family: Manrope, system-ui, sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
picture {
  display: block;
}
.gallery-mosaic picture,
.story-img picture {
  width: 100%;
  height: 100%;
}
.gallery-strip picture {
  width: 100%;
}
.map-canvas picture {
  display: contents;
}
.image-story,
.interiors,
.location,
.intro,
.selector,
.investment,
.contact,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}
#lokalizacja,
#inwestycja,
#wybor,
#kontakt,
#lista-lokali {
  scroll-margin-top: var(--scroll-offset);
}
.nav {
  position: fixed;
  z-index: 20;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 40px), var(--max));
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(34, 24, 20, 0.54);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 26px;
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  margin-right: 20px;
}
.brand-mark {
  width: auto;
  height: 48px;
  max-width: 200px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.nav nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}
.nav nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  transition:
    color 0.18s ease,
    background 0.18s ease;
}
.nav nav a:hover {
  color: #f3d0b7;
  background: rgba(255, 255, 255, 0.1);
}
.nav-cta,
.btn {
  border-radius: 999px;
  font-weight: 800;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.nav-cta {
  background: #fff;
  color: var(--primary);
  padding: 14px 22px;
}
.nav-cta--menu {
  display: none;
}
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 150px max(36px, calc((100vw - var(--max)) / 2)) 54px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("assets/baner_0.png") center/cover no-repeat;
  transform: scale(1.02);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(18, 12, 9, 0.84) 0%,
      rgba(18, 12, 9, 0.48) 45%,
      rgba(18, 12, 9, 0.12) 100%
    ),
    linear-gradient(0deg, rgba(18, 12, 9, 0.72), transparent 42%);
}
.hero-content {
  position: relative;
  width: min(920px, 76vw);
  padding-bottom: 40px;
}
.eyebrow {
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  font-weight: 800;
  color: #f3d0b7;
}
.eyebrow.dark {
  color: var(--accent);
}
h1,
h2 {
  font-family:
    "Gill Sans Medium",
    "Gill Sans",
    "Gill Sans MT",
    Playfair Display,
    serif;
  line-height: 0.98;
  margin: 0;
}
h1 {
  font-size: clamp(38px, 5.46vw, 87px);
  letter-spacing: -0.055em;
  max-width: 1050px;
}
h2 {
  font-size: clamp(29px, 3.5vw, 59px);
  letter-spacing: -0.045em;
}
h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.lead {
  font-size: clamp(18px, 2vw, 27px);
  line-height: 1.45;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.83);
  margin: 28px 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  padding: 18px 26px;
  display: inline-flex;
}
.btn.primary {
  background: #fff;
  color: var(--primary);
}
.btn.ghost {
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.nav-cta:hover,
.btn.primary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(112, 70, 57, 0.32);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}
.hero-stats {
  margin-top: 62px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1px;
  max-width: 880px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.24);
}
.hero-stats div {
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
.hero-stats b {
  display: block;
  font-size: 30px;
}
.hero-stats span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.hero-card {
  position: absolute;
  text-decoration: none;
  right: max(36px, calc((100vw - var(--max)) / 2));
  bottom: 76px;
  width: 320px;
  background: rgba(255, 250, 241, 0.92);
  color: var(--dark);
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
}
.hero-card span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 800;
}
.hero-card strong {
  display: block;
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.35;
}
.image-story,
.intro,
.interiors,
.selector,
.investment {
  padding-inline: var(--section-x);
  padding-top: var(--section-gap);
  padding-bottom: 0;
}
.section-head {
  max-width: 900px;
  margin-bottom: var(--section-head-gap);
}
.section-head.wide {
  max-width: 1150px;
}
.finish-page .section-head.wide {
  max-width: min(1485px, 100%);
}
.section-head p:not(.eyebrow),
.story-copy p,
.location-copy p,
.selector-top p,
.investment p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
.section-head p:not(.eyebrow) a,
.intro .section-head p a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-grid article,
.investment-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  min-height: 260px;
}
.feature-grid span {
  color: var(--accent);
  font-weight: 800;
}
.feature-grid p,
.investment-grid p {
  line-height: 1.65;
  color: var(--muted);
}
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 960px;
}
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 34px;
  overflow: hidden;
}
.faq-item summary {
  padding: 28px 34px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}
.faq-item p {
  margin: 0;
  padding: 24px 34px 28px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}
.faq-page .section-head h1 {
  font-size: clamp(29px, 3.5vw, 59px);
  letter-spacing: -0.045em;
  max-width: none;
}
.faq-page .faq-list {
  margin-bottom: 40px;
}
.faq-back {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.faq-section-title {
  margin: 48px 0 20px;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.03em;
  max-width: 960px;
}
.faq-page .faq-section-title:first-of-type {
  margin-top: 8px;
}
.faq-item p a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.image-story {
  display: grid;
  grid-template-columns: 1.24fr 0.76fr;
  gap: 56px;
  align-items: center;
}
.story-img img {
  height: 760px;
  width: 100%;
  object-fit: cover;
  border-radius: 44px;
}
.story-copy h2,
.location-copy h2,
.contact h2 {
  margin-bottom: 24px;
}
.story-copy {
  padding: 0;
}
.story-copy ul {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.story-copy li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--primary);
  font-weight: 800;
}
.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.45fr 1.45fr;
  gap: 18px;
}
.gallery-mosaic img,
.gallery-strip img {
  cursor: zoom-in;
}
.gallery-mosaic picture,
.gallery-strip picture {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
}
.gallery-mosaic picture::after,
.gallery-strip picture::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(25, 20, 17, 0);
  transition: background 0.2s ease;
  pointer-events: none;
}
.gallery-mosaic picture:hover::after,
.gallery-strip picture:hover::after,
.gallery-mosaic picture:focus-visible::after,
.gallery-strip picture:focus-visible::after {
  background: rgba(25, 20, 17, 0.12);
}
.gallery-mosaic picture:focus-visible,
.gallery-strip picture:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 34px;
}
.gallery-mosaic picture {
  border-radius: 34px;
}
.gallery-strip picture {
  border-radius: 20px;
}
.gallery-mosaic .big {
  grid-row: span 2;
}
.gallery-strip {
  margin-top: 18px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.gallery-strip img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  justify-self: stretch;
}

@media (max-width: 900px) {
  .gallery-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-strip img {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .gallery-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-strip img {
    border-radius: 16px;
  }
}

.location {
  margin: var(--section-gap) var(--section-x) 0;
  border-radius: 54px;
  background:
    linear-gradient(135deg, rgba(112, 70, 57, 0.96), rgba(135, 52, 0, 0.82)),
    url("assets/interior5.jpg") center/cover;
  padding: 72px;
  color: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
}
.location .eyebrow {
  color: #ffd6bd;
}
.location-copy p {
  color: rgba(255, 255, 255, 0.78);
}
.distance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.distance-grid div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(10px);
}
.distance-grid b {
  font-size: 36px;
}
.distance-grid span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}
.selector-top {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: end;
  margin-bottom: var(--section-head-gap);
}
.selector-top > div {
  max-width: 780px;
}
.selector-top > p {
  max-width: 520px;
}
.floor-module {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 44px;
  padding: 18px;
}
.floor-tabs {
  grid-column: 1/-1;
  display: flex;
  gap: 10px;
  padding: 8px;
}
.floor-tabs button {
  border: 0;
  background: #eadfcf;
  color: var(--primary);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.floor-tabs button:not(.active):hover {
  background: rgba(112, 70, 57, 0.2);
  transform: translateY(-1px);
}
.floor-tabs .active {
  background: var(--primary);
  color: #fff;
}
.floor-tabs button.active:hover {
  background: var(--accent);
}
.floor-plan {
  position: relative;
  height: 620px;
  background: #fff;
  border-radius: 32px;
  border: 1px solid var(--line);
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(112, 70, 57, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(112, 70, 57, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}
.plan-shape {
  position: absolute;
  inset: 80px 90px;
  border: 4px solid rgba(112, 70, 57, 0.18);
  border-radius: 18px;
}
.flat {
  position: absolute;
  border: 2px solid rgba(135, 52, 0, 0.55);
  background: rgba(135, 52, 0, 0.12);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 900;
  transition: 0.2s;
  border-radius: 12px;
}
.flat:hover {
  background: rgba(135, 52, 0, 0.34);
  transform: translateY(-3px);
}
.flat span {
  text-align: center;
  line-height: 1.4;
}
.f1 {
  left: 13%;
  top: 17%;
  width: 26%;
  height: 31%;
}
.f2 {
  left: 42%;
  top: 17%;
  width: 25%;
  height: 31%;
}
.f3 {
  left: 70%;
  top: 17%;
  width: 17%;
  height: 31%;
}
.f4 {
  left: 13%;
  top: 53%;
  width: 38%;
  height: 30%;
}
.f5 {
  left: 54%;
  top: 53%;
  width: 33%;
  height: 30%;
}
.sold {
  background: rgba(100, 100, 100, 0.15);
  border-color: rgba(100, 100, 100, 0.35);
  color: #777;
}
.reserved {
  background: rgba(203, 142, 52, 0.18);
  border-color: rgba(203, 142, 52, 0.58);
}
.floor-side {
  background: #f5ecdf;
  border-radius: 32px;
  padding: 34px;
}
.legend {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}
.legend span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--primary);
}
.legend i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(135, 52, 0, 0.34);
  border: 2px solid rgba(135, 52, 0, 0.55);
}
.legend span:nth-child(2) i {
  background: rgba(203, 142, 52, 0.28);
  border-color: rgba(203, 142, 52, 0.7);
}
.legend span:nth-child(3) i {
  background: rgba(100, 100, 100, 0.15);
  border-color: rgba(100, 100, 100, 0.4);
}
.investment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact {
  margin: var(--section-gap) var(--section-x);
  border-radius: 54px;
  background: var(--accent2);
  color: #fff;
  padding: 70px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 60px;
  align-items: center;
}
.contact p {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
}
.contact .eyebrow {
  color: #ffd6bd;
}
.contact form {
  background: rgba(255, 250, 241, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  padding: 22px;
}
.contact input {
  background: var(--paper);
  border: 1px solid rgba(112, 70, 57, 0.22);
  color: var(--dark);
}
.contact input::placeholder {
  color: var(--muted);
}
.contact input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.contact button {
  background: #fff;
  color: var(--accent2);
}
.contact button:hover {
  background: var(--paper);
  color: var(--primary);
}
.contact-details {
  margin: 20px 0 0;
  font-style: normal;
  line-height: 1.7;
}
.contact-details a {
  color: #f3d0b7;
  font-weight: 700;
}
.contact-privacy {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.contact-privacy a {
  color: #f3d0b7;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form-status {
  margin: 0;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.contact-form-status.is-success {
  background: rgba(223, 234, 221, 0.18);
  color: #dfeadd;
  border: 1px solid rgba(223, 234, 221, 0.35);
}
.contact-form-status.is-error {
  background: rgba(255, 255, 255, 0.1);
  color: #f3d0b7;
  border: 1px solid rgba(243, 208, 183, 0.35);
}
.site-footer {
  padding: 28px max(36px, calc((100vw - var(--max)) / 2)) 40px;
  background: #e9ded0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--primary);
  font-weight: 700;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.lang-switch-soon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 18px;
  line-height: 1;
  opacity: 0.45;
  cursor: not-allowed;
}
form {
  display: grid;
  gap: 12px;
}
input {
  width: 100%;
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0 22px;
  font: inherit;
}
button {
  height: 62px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-weight: 900;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
form button:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(112, 70, 57, 0.35);
}
@media (max-width: 900px) {
  .nav nav {
    display: none;
  }
  .hero {
    padding: 130px 22px 34px;
  }
  .hero-content {
    width: 100%;
  }
  .hero-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 20px;
    width: 100%;
  }
  .hero-stats,
  .feature-grid,
  .image-story,
  .location,
  .distance-grid,
  .selector-top,
  .floor-module,
  .investment-grid,
  .contact {
    grid-template-columns: 1fr;
  }
  .intro,
  .interiors,
  .selector,
  .investment,
  .image-story {
    padding-inline: 22px;
  }
  .story-img img {
    height: 440px;
  }
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-mosaic .big {
    grid-row: auto;
  }
  .location,
  .contact {
    margin-inline: 22px;
    padding: 38px;
    border-radius: 34px;
  }
  .floor-plan {
    height: 430px;
  }
  .hero-stats {
    margin-top: 36px;
  }
  .selector-top {
    align-items: start;
  }
  .contact {
    gap: 26px;
  }
}

/* PATCH: updated order, real interactive map, apartments table */
.standalone-page {
  min-height: 100vh;
  padding-top: 160px;
}
.finish-page .section-head h1 {
  font-size: clamp(29px, 3.5vw, 59px);
  letter-spacing: -0.045em;
  max-width: none;
}
.finish-page .finish-copy p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.finish-page .finish-copy p + .finish-gallery {
  margin-top: 24px;
}
.finish-page .finish-copy .finish-gallery + p {
  margin-top: 40px;
}
.finish-page .finish-copy .finish-gallery:last-child {
  margin-bottom: 0;
}
.legal-page .section-head h1 {
  font-size: clamp(29px, 3.5vw, 52px);
  letter-spacing: -0.04em;
}
.legal-updated {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.legal-copy {
  max-width: 760px;
  margin: 0 auto;
  padding-bottom: 48px;
}
.legal-copy h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.02em;
  color: var(--dark);
}
.legal-copy p,
.legal-copy li {
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
}
.legal-copy ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}
.legal-copy li + li {
  margin-top: 0.35rem;
}
.legal-copy a {
  color: var(--primary);
  font-weight: 700;
}
.legal-back {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal-back .text-link {
  font-weight: 700;
  color: var(--primary);
}
.card-request-privacy {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: rgba(112, 70, 57, 0.75);
}
.card-request-privacy a {
  color: var(--primary);
  font-weight: 700;
}
.finish-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 0;
  margin-bottom: 0;
}
.finish-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 28px;
}
.real-map-module {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 44px;
  padding: 18px;
}
.map-tabs {
  grid-column: auto;
}
.map-tabs button {
  cursor: pointer;
}
.map-panel {
  display: none;
}
.map-panel.active {
  display: block;
}
.map-canvas {
  position: relative;
  width: min(100%, calc(var(--map-w) * 1px));
  aspect-ratio: calc(var(--map-w) / var(--map-h));
  margin: 0 auto;
}
.map-base,
.map-overlay,
.map-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.map-base {
  z-index: 1;
  object-fit: contain;
}
.map-overlay {
  z-index: 2;
}
.map-points {
  z-index: 3;
  object-fit: contain;
  pointer-events: none;
}
.apt-area {
  fill: rgba(68, 68, 68, 0);
  stroke: none;
  transition:
    fill 0.18s ease,
    filter 0.18s ease;
}
.apt-link:hover .apt-area,
.apt-link:focus .apt-area,
.apt-link.is-active .apt-area {
  fill: rgba(135, 52, 0, 0.28);
  filter: drop-shadow(0 8px 14px rgba(80, 50, 32, 0.16));
}
.apartments-table-block {
  margin-top: 90px;
}
.apartments-table-block h2 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #33313a;
  font-family:
    "Gill Sans Medium", "Gill Sans", "Gill Sans MT", Manrope, system-ui,
    sans-serif;
  font-size: 24px;
  margin-bottom: 34px;
}
.apartments-table-wrap {
  overflow: auto;
  border-radius: 34px;
}
.label-mobile {
  display: none;
}
.apartments-table {
  width: 100%;
  border-collapse: collapse;
  background: #e9ded0;
  color: #000;
  font-size: 16px;
}
.apartments-table th,
.apartments-table td {
  text-align: center;
  padding: 12px 26px;
  border-bottom: 1px solid #eee8df;
  white-space: nowrap;
}
.apartments-table th {
  background: #e1d6c8;
  font-weight: 500;
}
.apartments-table tbody tr:nth-child(odd) {
  background: #eee7dd;
}
.apartments-table tbody tr:nth-child(even) {
  background: #e6ddd2;
}
.apartments-table tbody tr {
  cursor: pointer;
  transition: background 0.18s ease;
}
.apartments-table tbody tr:hover {
  background: #ddd1c2;
}
.apartments-table tbody tr:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
@media (max-width: 900px) {
  .real-map-module {
    padding: 10px;
    border-radius: 28px;
    overflow: hidden;
  }
  .map-canvas {
    width: 100%;
    min-width: 0;
    max-height: none;
  }
}

/* PATCH v3 */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 10px;
}
.lang-switch a {
  width: 34px;
  height: 34px;
  padding-bottom: 3px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 18px;
  line-height: 1;
  transition: 0.18s ease;
}
.lang-switch a:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
}

/* Hero replaced with ognisko_strona_nowav1 concept */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #fff;
  padding: 0;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(19, 14, 11, 0.78) 0%,
      rgba(19, 14, 11, 0.45) 42%,
      rgba(19, 14, 11, 0.08) 100%
    ),
    linear-gradient(0deg, rgba(19, 14, 11, 0.8) 0%, rgba(19, 14, 11, 0) 55%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1096px, calc(100% - 48px));
  margin: 0 auto 54px;
  transform: translateX(-18%);
  padding-bottom: 0;
}
.hero-eyebrow {
  color: #f0c36c;
}
.hero-content h1 {
  max-width: 940px;
  letter-spacing: 0.01em;
  font-size: clamp(30.4px, 4.37vw, 69.6px);
}
.hero-content p:not(.eyebrow):not(.lead) {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: clamp(14px, 1.54vw, 21.7px);
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.84);
}
.hero-content .hero-actions {
  margin-top: 100px;
}
.finish-widget {
  position: absolute;
  right: 52px;
  bottom: 54px;
  z-index: 3;
  width: min(320px, calc(100% - 40px));
  padding: 22px;
  border-radius: 30px;
  background: rgba(255, 253, 250, 0.88);
  color: var(--dark);
  text-decoration: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.finish-widget:hover {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(112, 70, 57, 0.24);
}
.finish-widget strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.finish-widget span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}
.finish-widget--deadline {
  top: 110px;
  bottom: auto;
  left: auto;
  cursor: default;
}
.finish-widget--deadline:hover {
  background: rgba(255, 253, 250, 0.88);
  transform: none;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

/* Smaller map: about half the previous visual height */
.real-map-module {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.map-canvas {
  max-height: 930px;
  width: min(100%, calc(var(--map-w) * 1px));
}
.map-base,
.map-overlay,
.map-points {
  object-fit: contain;
}
.map-stage,
.real-map-module {
  overflow: hidden;
}

/* Table extensions */
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.status-pill.available {
  color: #28583a;
  background: #dfeadd;
  border: 1px solid rgba(40, 88, 58, 0.22);
}
.status-pill.reserved {
  color: #6f6254;
  background: #f5ecdf;
  border: 1px solid rgba(180, 155, 120, 0.4);
}
.status-pill.sold {
  color: #7a6e66;
  background: #e2d8cf;
  border: 1px solid rgba(122, 110, 102, 0.25);
}
.apartments-table tbody tr.is-sold {
  cursor: default;
}
.apartments-table tbody tr.is-sold:hover {
  background: inherit;
}
.apartments-table tbody tr.is-sold:nth-child(odd):hover {
  background: #eee7dd;
}
.apartments-table tbody tr.is-sold:nth-child(even):hover {
  background: #e6ddd2;
}
.apartments-table .is-price-hidden {
  visibility: hidden;
}

.card-modal[hidden] {
  display: none;
}
.card-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}
.card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 17, 0.62);
  backdrop-filter: blur(3px);
}
.card-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 28px;
  background: #f2e8da;
  border: 1px solid rgba(112, 70, 57, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 20px;
}
.card-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(112, 70, 57, 0.14);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
}
.card-modal-panel h3 {
  margin: 0 0 14px;
}
.card-modal-eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
}
.card-modal-image-wrap {
  position: relative;
  padding: 12px;
  border-radius: 20px;
  background: #e5d9c8;
  border: 1px solid rgba(112, 70, 57, 0.14);
}
.card-modal-image {
  width: 100%;
  height: auto;
  border-radius: 14px;
  transition: opacity 0.2s ease;
}
.card-modal-image-wrap.is-loading .card-modal-image {
  opacity: 0.25;
}
.card-modal-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(112, 70, 57, 0.2);
  border-top-color: var(--primary);
  opacity: 0;
  pointer-events: none;
}
.card-modal-image-wrap.is-loading .card-modal-spinner {
  opacity: 1;
  animation: cardSpinner 0.85s linear infinite;
}
@keyframes cardSpinner {
  to {
    transform: rotate(360deg);
  }
}
.card-modal-cta,
.card-modal-secondary {
  margin-top: 16px;
  width: 100%;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 800;
}
.card-modal-cta {
  border: 0;
  background: var(--primary);
  color: #fff;
}
.card-modal-secondary {
  border: 1px solid rgba(112, 70, 57, 0.34);
  background: transparent;
  color: var(--primary);
}
.card-request-form {
  display: grid;
  gap: 10px;
}
.card-request-input {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(112, 70, 57, 0.25);
  background: #fff;
  color: var(--dark);
  padding: 0 18px;
  font: inherit;
}
.card-request-note {
  min-height: 24px;
  margin: 6px 0 0;
  color: var(--primary);
  font-weight: 700;
}
.gallery-lightbox[hidden] {
  display: none;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 20px;
}
.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 17, 0.82);
  backdrop-filter: blur(4px);
}
.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
}
.gallery-lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.16);
  color: #fff8f0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.gallery-lightbox-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 248, 240, 0.14);
  color: #fff8f0;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gallery-lightbox-nav:hover,
.gallery-lightbox-close:hover {
  background: rgba(255, 248, 240, 0.24);
}
.gallery-lightbox-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-lightbox-figure {
  margin: 0;
  min-width: 0;
  display: block;
}
.gallery-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

body.modal-open {
  overflow: hidden;
}

.promo-bubble {
  position: fixed;
  right: max(52px, env(safe-area-inset-right));
  bottom: max(54px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(320px, calc(100vw - 40px));
  padding: 22px;
  border: 0;
  border-radius: 30px;
  background: rgba(255, 253, 250, 0.88);
  color: var(--dark);
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
  transition:
    background 0.35s ease,
    color 0.35s ease,
    transform 0.18s ease,
    box-shadow 0.35s ease;
}
.promo-bubble.is-contrast {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 36px rgba(25, 20, 17, 0.28);
}
.promo-bubble:hover {
  background: var(--paper);
  transform: translateY(-3px);
  box-shadow: 0 28px 70px rgba(112, 70, 57, 0.24);
}
.promo-bubble.is-contrast:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 40px rgba(25, 20, 17, 0.34);
}
.promo-bubble:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.promo-modal[hidden] {
  display: none;
}
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 20px;
}
.promo-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(25, 20, 17, 0.62);
  backdrop-filter: blur(3px);
}
.promo-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 28px;
  background: #f2e8da;
  border: 1px solid rgba(112, 70, 57, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  padding: 32px 40px 36px;
  text-align: center;
}
.promo-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(112, 70, 57, 0.14);
  color: var(--primary);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.promo-modal-eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 12px;
}
.promo-modal-dialog h2 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.8vw, 52px);
  line-height: 1.05;
  color: var(--primary);
}
.promo-modal-dialog p {
  margin: 0 0 18px;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
  color: var(--dark);
}
.promo-modal-highlight {
  margin-bottom: 28px !important;
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 24px);
  color: var(--primary);
}
.promo-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}
.promo-modal-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.apartments-table th,
.apartments-table td {
  vertical-align: middle;
}

@media (max-width: 1600px) {
  .hero-content {
    transform: none;
    margin: 0 30px 54px;
  }
}

@media (max-width: 1100px) {
  .lang-switch {
    margin-left: 0;
  }
  .finish-widget {
    left: 24px;
    right: auto;
    bottom: 28px;
  }
  .finish-widget--deadline {
    top: 100px;
    right: 24px;
    left: auto;
    bottom: auto;
  }
  .map-canvas {
    max-height: none;
  }
}
@media (max-width: 900px) {
  .nav .lang-switch {
    display: flex;
    a {
      padding-bottom: 2px;
    }
  }
  .real-map-module {
    max-width: 100%;
  }
}

/* Desktop-only: hide mobile menu controls */
.nav-toggle,
.nav-backdrop {
  display: none;
}

/* ── Mobile (≤900px) — desktop styles above remain unchanged ── */
@media (max-width: 900px) {
  :root {
    --section-gap: 72px;
    --section-head-gap: 36px;
  }
  body {
    overflow-x: clip;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav {
    top: max(12px, env(safe-area-inset-top));
    width: min(calc(100% - 24px), var(--max));
    min-height: 60px;
    height: auto;
    padding: 8px 12px 8px 16px;
    gap: 8px;
  }

  .brand {
    margin-right: auto;
    min-width: 0;
    align-items: center;
  }

  .brand-mark {
    height: 38px;
    max-width: min(168px, 42vw);
    flex-shrink: 1;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.18s ease;
  }

  .nav-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
  }

  .nav-toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: #fff;
    transition:
      transform 0.22s ease,
      opacity 0.22s ease;
  }

  .nav.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 18;
    border: 0;
    background: rgba(19, 14, 11, 0.55);
    backdrop-filter: blur(4px);
    cursor: pointer;
  }

  .nav-backdrop[hidden] {
    display: none;
  }

  .nav nav {
    display: none;
    position: fixed;
    z-index: 19;
    top: calc(max(12px, env(safe-area-inset-top)) + 68px);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), var(--max));
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 28px;
    background: rgba(34, 24, 20, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  }

  .nav.is-open nav {
    display: flex;
  }

  .nav nav a {
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
  }

  .lang-switch {
    margin-left: 0;
    margin-right: 4px;
    gap: 5px;
  }

  .lang-switch a {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .lang-switch-soon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .site-footer {
    padding: 24px 18px 32px;
    font-size: 13px;
  }

  .nav-cta--desktop {
    display: none;
  }

  .nav nav a.nav-cta--menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    text-align: center;
    color: rgb(243, 208, 183);
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
  }

  .nav nav a.nav-cta--menu:hover,
  .nav nav a.nav-cta--menu:active,
  .nav nav a.nav-cta--menu:focus-visible {
    background: #fff;
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  }

  .nav nav a:not(.nav-cta) {
    background: transparent;
  }

  .nav nav a:not(.nav-cta):hover {
    color: #f3d0b7;
    background: rgba(255, 255, 255, 0.1);
  }

  .hero {
    min-height: 100svh;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
  }

  .hero-img {
    object-position: 70% 42%;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      rgba(19, 14, 11, 0.35) 0%,
      rgba(19, 14, 11, 0.55) 45%,
      rgba(19, 14, 11, 0.92) 100%
    );
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 20px;
    transform: none;
  }

  .hero-content p:not(.eyebrow):not(.lead) {
    font-size: clamp(11.2px, 2.94vw, 14px);
    line-height: 1.45;
    margin-top: 16px;
  }

  .hero-content .hero-actions {
    margin-top: 24px;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 22px;
  }

  .finish-widget {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    order: 1;
  }

  .finish-widget--deadline {
    position: absolute;
    top: max(80px, calc(env(safe-area-inset-top) + 68px));
    right: 16px;
    left: auto;
    bottom: auto;
    width: calc(100% - 32px);
    margin: 0;
    order: unset;
  }

  .section-head,
  .selector-top {
    margin-bottom: var(--section-head-gap);
  }

  .story-copy {
    padding: 0;
  }

  .feature-grid article,
  .investment-grid article {
    min-height: auto;
    padding: 26px;
    border-radius: 28px;
  }

  .distance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .distance-grid div {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .distance-grid b {
    font-size: 28px;
  }

  .selector-top > p {
    max-width: none;
    font-size: 16px;
  }

  .floor-tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 6px;
  }

  .floor-tabs button {
    flex: 1 1 calc(50% - 8px);
    min-width: 0;
    padding: 11px 12px;
    font-size: 13px;
    text-align: center;
  }

  .real-map-module {
    padding: 12px;
    border-radius: 28px;
    overflow: hidden;
  }

  .real-map-module::after {
    display: none;
  }

  .map-canvas {
    width: 100%;
    min-width: 0;
    max-height: none;
  }

  .apartments-table-block {
    margin-top: 56px;
  }

  .apartments-table-block h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding: 0 4px;
  }

  .apartments-table-wrap {
    overflow: visible;
    border-radius: 24px;
  }

  .label-desktop {
    display: none;
  }

  .label-mobile {
    display: inline;
  }

  .apartments-table {
    table-layout: fixed;
    width: 100%;
    font-size: 12px;
  }

  .apartments-table th,
  .apartments-table td {
    padding: 12px 8px;
    font-size: 12px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.3;
  }

  .apartments-table th {
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: lowercase;
  }

  .apartments-table th:nth-child(1) {
    width: 11%;
  }

  .apartments-table th:nth-child(2) {
    width: 9%;
  }

  .apartments-table th:nth-child(3) {
    width: 16%;
  }

  .apartments-table th:nth-child(3),
  .apartments-table td:nth-child(3),
  .apartments-table th:nth-child(4),
  .apartments-table td:nth-child(4) {
    white-space: nowrap;
    word-break: keep-all;
  }

  .apartments-table th:nth-child(4) {
    width: 18%;
  }

  .apartments-table th:nth-child(5) {
    width: 28%;
  }

  .apartments-table th:nth-child(6) {
    width: 18%;
  }

  .status-pill {
    width: auto;
    height: auto;
    min-width: 0;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
  }

  .status-pill-text {
    display: inline;
  }

  .gallery-mosaic {
    grid-auto-rows: 220px;
    gap: 12px;
  }

  .gallery-mosaic img {
    border-radius: 24px;
  }

  .contact form {
    padding: 18px;
    border-radius: 28px;
  }

  .contact input,
  .contact button,
  form button {
    height: 54px;
  }

  .standalone-page {
    padding-top: 120px;
  }

  .finish-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .finish-page .finish-copy p + .finish-gallery {
    margin-top: 20px;
  }

  .finish-page .finish-copy .finish-gallery + p {
    margin-top: 32px;
  }

  .finish-gallery img {
    border-radius: 22px;
  }

  .finish-page .finish-copy p {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* ── Small phones (≤600px) ── */
@media (max-width: 600px) {
  :root {
    --section-gap: 56px;
    --section-head-gap: 28px;
  }

  .nav {
    padding: 8px 10px 8px 14px;
  }

  .brand-mark {
    height: 34px;
    max-width: min(148px, 46vw);
  }

  h1 {
    font-size: clamp(30px, 8.8vw, 38px);
    letter-spacing: -0.03em;
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(24px, 7vw, 29px);
    letter-spacing: -0.03em;
    line-height: 1.08;
  }

  h3 {
    font-size: 20px;
  }

  .intro,
  .interiors,
  .selector,
  .investment,
  .image-story {
    padding-inline: 18px;
  }

  .image-story {
    gap: 28px;
  }

  .story-img img {
    height: min(56vw, 320px);
    border-radius: 28px;
  }

  .hero-img {
    object-position: 90% 38%;
  }

  .location,
  .contact {
    margin-inline: 14px;
    padding: 28px 22px;
    border-radius: 28px;
  }

  .location {
    gap: 32px;
  }

  .feature-grid,
  .distance-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .investment-grid article {
    padding: 22px;
  }

  .section-head p:not(.eyebrow),
  .story-copy p,
  .location-copy p,
  .selector-top p,
  .investment p,
  .contact p {
    font-size: 16px;
    line-height: 1.7;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    margin-bottom: 14px;
  }

  .floor-tabs button {
    flex: 1 1 100%;
  }

  .apartments-table {
    font-size: 11px;
  }

  .apartments-table th,
  .apartments-table td {
    padding: 10px 6px;
    font-size: 11px;
  }

  .apartments-table th {
    font-size: 10px;
  }

  .apartments-table th:nth-child(1) {
    width: 9%;
  }

  .apartments-table th:nth-child(2) {
    width: 8%;
  }

  .apartments-table th:nth-child(3) {
    width: 15%;
  }

  .apartments-table th:nth-child(4) {
    width: 17%;
  }

  .apartments-table th:nth-child(5) {
    width: 26%;
  }

  .apartments-table th:nth-child(6) {
    width: 25%;
  }

  .status-pill {
    padding: 4px 8px;
    font-size: 10px;
  }

  .card-modal {
    padding: 12px;
  }
  .card-modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
    border-radius: 22px;
  }

  .promo-bubble {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(320px, calc(100vw - 32px));
    padding: 22px;
    font-size: 18px;
  }
  .promo-modal {
    padding: 12px;
  }
  .promo-modal-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 14px;
    border-radius: 22px;
  }

  .gallery-lightbox {
    padding: 12px;
  }
  .gallery-lightbox-dialog {
    grid-template-columns: 1fr;
    gap: 0;
    width: calc(100vw - 24px);
    position: relative;
  }
  .gallery-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .gallery-lightbox-prev {
    left: 8px;
  }
  .gallery-lightbox-next {
    right: 8px;
  }
  .gallery-lightbox-close {
    top: -40px;
    right: 0;
  }
  .gallery-lightbox-image {
    max-height: calc(100vh - 100px);
    border-radius: 16px;
  }
}
