/* =========================================================
   Zielone Izbicko — Desktop styles
   Container width: 1200px (page) — content max 1014–1090px
   Font: DM Sans
   ========================================================= */

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #0c291b;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desktop floor — page collapses cleanly under 1200 only within mobile breakpoint */
@media (min-width: 641px) {
  body { min-width: 1200px; }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
}

p {
  margin: 0;
}


/* ---------- Tokens (variables) ---------- */
:root {
  /* brand greens */
  --c-green-primary: #008f2e;
  --c-green-primary-hover: #007326;
  --c-green-accent: #03b13d;
  --c-green-light-bg: #f9faf7;

  /* dark greens */
  --c-dark-1: #0c291b;
  --c-dark-2: #3d5848;
  --c-dark-bg: #074226;
  --c-dark-bg-row: #074829;
  --c-dark-bg-header: #02371d;
  --c-dark-border: #1b4b34;
  --c-dark-text-soft: #bed4c9;

  /* greys */
  --c-grey-label: #a5a5a5;
  --c-border: #dbdbdb;
  --c-border-soft: #e9e9e9;
  --c-map-bg: #f7f7f7;

  /* layout */
  --container-page: 1200px;
  --container-content: 1014px;
  --content-pad-x: 92px;

  /* motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ---------- Shared helpers ---------- */
.label {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-grey-label);
  text-transform: uppercase;
  letter-spacing: 0;
  margin: 0;
}

.label--light {
  color: #ffffff;
}

.h-display {
  font-size: 52px;
  line-height: 62px;
  color: var(--c-dark-1);
  font-weight: 400;
  margin: 0;
}
.h-display--light  { font-weight: 300; }
.h-display--medium { font-weight: 500; }

.h-section {
  font-size: 48px;
  line-height: 62px;
  color: var(--c-dark-1);
  font-weight: 400;
  margin: 0;
}
.h-section--light  { font-weight: 300; }
.h-section--medium { font-weight: 500; }
.h-section--light-bg span { color: #ffffff; font-weight: 400; }

.lead {
  font-size: 16px;
  line-height: 30px;
  color: var(--c-dark-2);
}
.lead--narrow {
  max-width: 471px;
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 24px;
  border-radius: 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-green-primary);
  color: #ffffff;
}
.btn--primary:hover {
  background: var(--c-green-primary-hover);
}

.btn--outline {
  background: transparent;
  color: var(--c-green-primary);
  border: 1.4px solid var(--c-green-primary);
  font-weight: 700;
}
.btn--outline:hover {
  background: var(--c-green-primary);
  color: #ffffff;
}

.btn--nav {
  height: 48px;
  padding: 12px 24px;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  width: 88px;
  padding: 0 24px;
  border: none;
  border-radius: 24px;
  background: #ffffff;
  color: var(--c-dark-1);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease;
}
.btn-pill:hover {
  background: var(--c-green-primary);
  color: #ffffff;
}

/* Dual label inside .btn-pill: desktop shows "Otwórz", mobile overrides */
.btn-pill__label-d { display: inline; }
.btn-pill__label-m { display: none; }


/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 26px;
  padding-bottom: 0;
  background: #ffffff;
  height: 940px; /* matches Figma's overall hero height incl. background */
}

.hero__inner {
  width: var(--container-content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 2;
}

/* Background image of the hero - gradient is baked into the asset */
.hero__bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  overflow: hidden;
  z-index: 1;
}
.hero__bg-img {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
}

/* Navbar (pill) */
.navbar {
  width: 100%;
  height: 68px;
  background: #ffffff;
  border: 1px solid var(--c-border-soft);
  border-radius: 48px;
  box-shadow: 0 4px 9.2px rgba(0, 0, 0, 0.07);
  padding: 12px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
}
.logo__leaf {
  display: block;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}
.logo__leaf img {
  width: 100%;
  height: 100%;
}
.logo__text {
  display: block;
  width: 61px;
  height: 32px;
}
.logo__text img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar__menu a {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-dark-1);
  transition: color .18s ease;
}
.navbar__menu a:hover {
  color: var(--c-green-primary);
}

/* Hamburger toggle — hidden on desktop, shown on mobile via media query */
.navbar__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 22px;
  transition: background-color .18s ease;
}
.navbar__toggle:hover {
  background: var(--c-green-light-bg);
}
.navbar__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-dark-1);
  border-radius: 1px;
  transition: transform .25s var(--ease-out-expo), opacity .2s ease;
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}
.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer — hidden by default; only used on mobile */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
}
.nav-drawer[hidden] {
  display: none;
}
.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 41, 27, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: drawer-fade .22s ease-out forwards;
}
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #ffffff;
  box-shadow: -8px 0 32px rgba(12, 41, 27, 0.16);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  animation: drawer-slide .32s var(--ease-out-expo) forwards;
}
@keyframes drawer-fade {
  to { opacity: 1; }
}
@keyframes drawer-slide {
  to { transform: translateX(0); }
}
.nav-drawer__close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-light-bg);
  border: 1px solid var(--c-border);
  border-radius: 20px;
  color: var(--c-dark-1);
  cursor: pointer;
  margin-top: 4px;
  transition: background-color .15s ease, color .15s ease;
}
.nav-drawer__close:hover {
  background: var(--c-green-primary);
  color: #ffffff;
  border-color: var(--c-green-primary);
}
.nav-drawer__menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}
.nav-drawer__menu li {
  border-bottom: 1px solid var(--c-border-soft);
}
.nav-drawer__menu li:last-child {
  border-bottom: none;
}
.nav-drawer__menu a {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-dark-1);
  transition: color .18s ease;
}
.nav-drawer__menu a:hover,
.nav-drawer__menu a:focus-visible {
  color: var(--c-green-primary);
}
.nav-drawer__cta {
  margin-top: auto;
  width: 100%;
  height: 52px;
  font-size: 16px;
}

/* Hero heading block */
.hero__heading {
  width: 830px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero__heading .label {
  width: 100%;
  text-align: center;
}

.hero__heading .h-display {
  text-align: center;
}

.hero__lead {
  width: 668px;
  font-size: 16px;
  line-height: 30px;
  color: var(--c-dark-2);
  text-align: center;
}


/* ===========================================================
   SECTIONS — generic container
   =========================================================== */
.section {
  width: var(--container-page);
  margin: 0 auto;
  padding-left: var(--content-pad-x);
  padding-right: var(--content-pad-x);
}

/* ---------- O Inwestycji ---------- */
.section--invest {
  padding-top: 120px;
  padding-bottom: 0;
}

.invest__top {
  display: flex;
  align-items: center;
  gap: 0;
  height: 600px;
}

.invest__copy {
  width: 524px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.invest__copy .h-section {
  margin-bottom: 8px;
}

.invest__body {
  width: 494px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 16px;
  line-height: 30px;
  color: var(--c-dark-2);
}
.invest__body p {
  margin: 0;
}
.invest__body strong {
  font-weight: 700;
  color: var(--c-dark-2);
}

.invest__copy .btn--outline {
  margin-top: 8px;
  align-self: flex-start;
}

.invest__image {
  width: 493px;
  height: 600px;
  margin-left: auto;
  border-radius: 144px 12px 144px 12px;
  /* tl tr br bl => 144 12 144 12 (Figma: tl 144, tr 12, br 144, bl 12) */
  overflow: hidden;
  background: #1f1f1f;
  flex-shrink: 0;
}
.invest__image img,
.invest__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Features tiles */
.features {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}
.features__item {
  flex: 1;
  height: 188px;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #ffffff;
}
.features__icon {
  width: 64px;
  height: 64px;
  display: block;
  flex-shrink: 0;
}
.features__item p {
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  font-weight: 500;
  color: var(--c-dark-1);
  margin: 0;
}
.features__item strong {
  font-weight: 700;
}


/* ===========================================================
   LOKALIZACJA
   =========================================================== */
.section--location {
  padding-top: 80px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.location__heading {
  width: 830px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.location__heading .lead {
  width: 668px;
}

/* POI bar */
.poi-bar {
  width: 100%;
  height: 64px;
  background: #ffffff;
  border: 1px solid var(--c-border);
  border-radius: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 8px;
}
.poi-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-dark-1);
}
.poi-chip {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
}

/* Offer banner */
.offer-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 143, 46, 0.3);
  border-radius: 48px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-green-accent);
  background: #ffffff;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}
.offer-banner:hover {
  background: rgba(0, 143, 46, 0.05);
  border-color: var(--c-green-primary);
}
.offer-banner strong {
  color: var(--c-dark-2);
  font-weight: 700;
}
.offer-banner__cta {
  font-weight: 700;
}

/* Map */
.map {
  position: relative;
  width: 100%;
  height: 500px;
  background: var(--c-map-bg);
  border: 1px solid var(--c-border);
  border-radius: 48px;
  overflow: hidden;
}
.map__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}


/* ===========================================================
   GALERIA
   =========================================================== */
.section--gallery {
  padding-top: 80px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.gallery__heading {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.gallery__heading .h-section span + span {
  font-weight: 500;
}
/* Gallery slider */
.gallery__slider {
  position: relative;
  width: 100%;
  height: 624px;
  border-radius: 12px;
  overflow: hidden;
  background: #ababab;
}
.slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.slider__track.is-no-transition {
  transition: none;
}
.slider__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
}
.slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

/* Arrows */
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--c-dark-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(12, 41, 27, 0.18);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.slider__arrow:hover {
  background: var(--c-green-primary);
  color: #ffffff;
}
.slider__arrow:active {
  transform: translateY(-50%) scale(.96);
}
.slider__arrow svg {
  width: 22px;
  height: 22px;
}
.slider__arrow--prev { left: 24px; }
.slider__arrow--next { right: 24px; }
/* Hide arrow at the edges (set by JS at first/last slide) — applies everywhere */
.slider__arrow {
  transition: opacity .22s ease, transform .22s ease, background-color .18s ease, color .18s ease;
}
.slider__arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.85);
}

/* Zoom hint icon — small lupa in the top-right corner of the slider.
   Hidden by default (desktop); shown on mobile via media query. */
.slider__zoom-hint {
  display: none;
}

/* Dots */
.slider__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
  padding: 8px 14px;
  background: rgba(12, 41, 27, 0.32);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background-color .18s ease, width .25s ease;
}
.slider__dot:hover {
  background: rgba(255, 255, 255, 0.85);
}
.slider__dot.is-active {
  background: #ffffff;
  width: 24px;
  border-radius: 4px;
}

.gallery__disclaimer {
  margin: 16px 0 0 0;
  font-size: 11px;
  line-height: 16px;
  color: #a5a5a5;
  text-align: center;
}


/* ===========================================================
   LOKALE (dark table)
   =========================================================== */
.section--units {
  width: 100%;
  background: var(--c-dark-bg);
  margin-top: 120px;
  padding: 80px 0;
}

.units__inner {
  width: 1090px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.units__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.units__table {
  width: 100%;
}

.units-table {
  width: 1090px;
  border: 1px solid var(--c-dark-border);
  border-radius: 12px 12px 23px 23px;
  overflow: hidden;
  background: var(--c-dark-bg);
}

.units-table__header,
.units-table__row {
  display: grid;
  /* Tabela 1090 - 48 padding = 1042 useful */
  grid-template-columns:
    152px   /* Mieszkanie */
    118px   /* Piętro */
    128px   /* Metraż */
    158px   /* Pokoje */
    1fr     /* Ogródek/Balkon */
    140px   /* Cena */
    100px;  /* Karta PDF / Otwórz */
  align-items: center;
  column-gap: 12px;
  padding: 14px 24px;
}
.units-table__header {
  background: var(--c-dark-bg-header);
  border-bottom: 1px solid var(--c-dark-border);
}
.units-table__header > span {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
}
.units-table__cell-cta {
  text-align: left;
}

.units-table__body {
  display: flex;
  flex-direction: column;
}

.units-table__row {
  padding: 16px 24px;
  border-bottom: 1px solid var(--c-dark-border);
  transition: background-color .18s ease;
}
.units-table__row:last-child {
  border-bottom: none;
}
.units-table__row--alt {
  background: var(--c-dark-bg-row);
}
.units-table__row:hover {
  background: rgba(255, 255, 255, 0.06);
}
.units-table__row > span {
  font-size: 18px;
  line-height: 30px;
  color: #ffffff;
  font-weight: 400;
}


/* ===========================================================
   INWESTOR
   =========================================================== */
.section--investor {
  padding-top: 80px;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.investor__top {
  display: flex;
  gap: 49px;
  align-items: center;
}

.investor__copy {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 471px;
}

.investor__copy .label,
.investor__copy .h-section,
.investor__copy .lead {
  margin: 0;
}

.investor__copy .label {
  margin-bottom: 16px;
}
.investor__copy .h-section {
  margin-bottom: 24px;
}
.investor__copy .lead {
  margin-bottom: 40px;
}

.investor__stats {
  display: flex;
  gap: 24px;
}
.stat {
  width: 184px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.stat__value {
  font-size: 48px;
  line-height: 62px;
  font-weight: 300;
  color: var(--c-dark-1);
  margin: 0;
  width: 100%;
  text-align: left;
}
.stat__label {
  font-size: 14px;
  line-height: 28px;
  font-weight: 600;
  color: var(--c-dark-1);
  margin: 0;
  width: 100%;
  text-align: left;
}
.stat__line {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--c-border);
  margin-top: 16px;
}

/* Investor visual */
.investor__visual {
  position: relative;
  width: 496px;
  height: 467px;
  flex-shrink: 0;
}

.investor__image {
  position: absolute;
  left: 52px;
  top: 0;
  width: 392px;
  height: 393px;
  border-radius: 144px 12px 144px 12px;
  overflow: hidden;
  background: #1f1f1f;
}
.investor__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.investor__logo {
  position: absolute;
  width: 184px;
  height: 152px;
  background: #ffffff;
  border: 1.4px solid rgba(0, 0, 0, 0.15);
  border-radius: 67.592px 5.633px 67.592px 5.633px;
  /* tl 67.592, tr 5.633, br 67.592, bl 5.633 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  bottom: 0;
}
.investor__logo--left  { left: 12px; }
.investor__logo--right { left: 300px; }

.investor__logo img {
  max-width: 140px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Realizations */
.investor__realizations {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.realizations__heading {
  font-size: 20px;
  font-weight: 500;
  color: var(--c-dark-1);
  line-height: 1.5;
  margin: 0;
}
.realizations__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.realization {
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.realization__image {
  background: #c5c5c5;
  overflow: hidden;
  flex-shrink: 0;
}
.realization__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.realization--big {
  height: 648px;
}
.realization--big .realization__image {
  height: 548px;
}

.realizations__col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.realizations__col .realization {
  height: 312px;
}
.realizations__col .realization__image {
  height: 220px;
}

.realization__caption {
  padding: 16px 19px;
  flex: 1;
}
.realization__caption h3 {
  font-size: 18px;
  line-height: 30px;
  font-weight: 500;
  color: var(--c-dark-1);
  margin: 0;
}
.realization__caption p {
  font-size: 16px;
  line-height: 30px;
  color: var(--c-dark-2);
  margin: 0;
}


/* ===========================================================
   KONTAKT
   =========================================================== */
.section--contact {
  margin-top: 120px;
  padding: 80px 89px;
  background: var(--c-green-light-bg);
  width: 100%;
}

.contact__inner {
  display: flex;
  gap: 49px;
  align-items: center;
  max-width: 1022px;
  margin: 0 auto;
}

.contact__copy {
  width: 471px;
  flex-shrink: 0;
}

.contact__copy .label {
  margin-bottom: 16px;
}
.contact__copy .h-section {
  margin: 0 0 24px;
}
.contact__copy .lead {
  margin: 0 0 32px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact-item__icon {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
}

.contact-item__content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contact-item__content a,
.contact-item__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-dark-1);
  line-height: 28px;
}
.contact-item__content a:hover {
  color: var(--c-green-primary);
}
.contact-item__link u {
  text-decoration: underline;
}
.contact-item__title {
  margin: 0;
}
.muted {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-dark-2);
  font-weight: 400;
}

/* Contact image with phone bubbles */
.contact__image {
  position: relative;
  width: 499px;
  height: 600px;
  border-radius: 144px 12px 144px 12px;
  overflow: hidden;
  background: #1f1f1f;
  flex-shrink: 0;
}
.contact__image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-bubble {
  position: absolute;
  width: 184px;
  height: 152px;
  background: #ffffff;
  border: 1.4px solid rgba(0, 0, 0, 0.15);
  border-radius: 67.592px 5.633px 67.592px 5.633px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 20px;
  bottom: 32px;
}
.phone-bubble--left  { left: 57px; }
.phone-bubble--right { left: 258px; }

.phone-bubble__icon {
  width: 32px;
  height: 32px;
  display: block;
}
.phone-bubble__number {
  font-size: 20px;
  font-weight: 700;
  color: var(--c-dark-1);
  line-height: 28px;
  margin: 0;
}
.phone-bubble__label {
  font-size: 14px;
  font-weight: 400;
  color: var(--c-dark-2);
  line-height: 1;
  margin: 0;
  text-align: center;
}


/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  width: 100%;
  background: var(--c-dark-bg);
  color: #ffffff;
}

.footer__inner {
  width: 1015px;
  margin: 0 auto;
  padding: 36px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.footer__top {
  display: flex;
  gap: 74px;
  align-items: flex-start;
  padding-top: 0;
}

.footer__brand {
  width: 241px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}

.logo--light .logo__leaf {
  width: 45px;
  height: 45px;
}
.logo--light .logo__text {
  width: 72px;
  height: 36px;
}

.footer__brand p {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-dark-text-soft);
}

.footer__cols {
  display: flex;
  gap: 24px;
  flex: 1;
}

.footer__col {
  width: 183px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
}
.footer__col-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-grey-label);
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer__col ul li {
  font-size: 16px;
  line-height: 30px;
  color: #ffffff;
  position: relative;
  padding-left: 24px;
}
.footer__col ul li::before {
  content: "•";
  position: absolute;
  left: 8px;
  top: 0;
}
.footer__col ul li a {
  transition: color .18s ease;
}
.footer__col ul li a:hover {
  color: var(--c-dark-text-soft);
}

.footer__col--plain {
  /* contact column: no bullets */
}
.footer__col--plain li {
  padding-left: 0;
}
.footer__col--plain li::before {
  content: none;
}
.footer__col--plain strong {
  font-weight: 500;
}

.footer__rule {
  width: 100%;
  height: 1px;
  background: var(--c-dark-border);
  border: none;
  margin: 0;
}
.footer__copy {
  font-size: 14px;
  line-height: 20px;
  color: var(--c-dark-text-soft);
  padding-bottom: 28px;
}


/* ===========================================================
   MODAL — POI list
   =========================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
  animation: modal-fade .22s ease-out;
}
.modal[hidden] {
  display: none;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 41, 27, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 24px;
  padding: 48px 48px 40px;
  box-shadow: 0 24px 64px rgba(12, 41, 27, 0.25);
  animation: modal-pop .25s cubic-bezier(.2, .8, .3, 1.2);
}
@keyframes modal-pop {
  from { transform: translateY(12px) scale(.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-light-bg);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  color: var(--c-dark-1);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.modal__close:hover {
  background: var(--c-green-primary);
  color: #ffffff;
  border-color: var(--c-green-primary);
}

.modal__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 32px;
}
.modal__title {
  font-family: inherit;
  font-size: 32px;
  line-height: 40px;
  color: var(--c-dark-1);
  font-weight: 400;
  margin: 0;
}
.modal__title .h-section--light  { font-weight: 300; }
.modal__title .h-section--medium { font-weight: 500; }

/* POI list */
.poi-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.poi-list__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.poi-list__item:has(.poi-list__places) {
  align-items: flex-start;
}
.poi-list__item:last-child {
  border-bottom: none;
}
.poi-list__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
}
.poi-list__item:has(.poi-list__places) .poi-list__icon {
  margin-top: 2px;
}
.poi-list__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.poi-list__category {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-dark-1);
  line-height: 22px;
  margin: 0;
}
.poi-list__places {
  font-size: 14px;
  line-height: 22px;
  color: var(--c-dark-2);
  margin: 0;
}

/* ===========================================================
   MODAL — apartment card
   =========================================================== */
.modal__dialog--wide {
  max-width: 1200px;
  padding: 20px;
}

.card-modal__image-wrap {
  width: 100%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f7f7f7;
}
.card-modal__image {
  display: block;
  width: 100%;
  height: auto;
}

/* ===========================================================
   MODAL — gallery lightbox (base, used on all viewports)
   =========================================================== */
.modal--lightbox {
  padding: 0;
  align-items: center;
  justify-content: center;
}
.lightbox__dialog {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: zoom-out;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 22px;
  color: var(--c-dark-1);
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(12, 41, 27, 0.25);
  transition: background-color .15s ease;
}
.lightbox__close:hover {
  background: #ffffff;
}
/* Make gallery slides clickable visually — cursor hint */
.slider__slide img[data-lightbox] {
  cursor: zoom-in;
}

/* Accessible visually-hidden helper */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile-only line break — overridden inside @media (max-width: 640px) */
.br-mobile {
  display: none;
}

/* ===========================================================
   ANIMACJE — Hero on-load + sekcje on-scroll
   =========================================================== */

/* ---------- HERO on-load ----------
   Elementy startują przykryte (opacity 0, translateY 16px),
   animują się stagger'em w kolejności:
   navbar → label → h1 → lead → cta */
.navbar,
.hero__heading .label,
.hero__heading .h-display,
.hero__heading .hero__lead,
.hero__heading .btn {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-enter 0.7s var(--ease-out-expo) forwards;
}

.navbar                        { animation-delay: 0.05s; transform: translateY(-12px); }
.hero__heading .label          { animation-delay: 0.25s; }
.hero__heading .h-display      { animation-delay: 0.35s; transform: translateY(24px); }
.hero__heading .hero__lead     { animation-delay: 0.50s; }
.hero__heading .btn            { animation-delay: 0.65s; }

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- SEKCJE on-scroll ----------
   Klasa .reveal startuje ukryta, .is-revealed (dodaje JS) animuje */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- STAGGER children (features + poi-bar) ----------
   Gdy rodzic dostaje .is-revealed, dzieci animują się sekwencyjnie.
   Używamy CSS transition-delay na podstawie nth-child. */
.stagger-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease-out-expo),
              transform 0.55s var(--ease-out-expo);
}

.stagger-children.is-revealed > * {
  opacity: 1;
  transform: translateY(0);
}

/* features — 4 kafelki, stagger 60ms */
.features.stagger-children.is-revealed > *:nth-child(1) { transition-delay: 0.00s; }
.features.stagger-children.is-revealed > *:nth-child(2) { transition-delay: 0.06s; }
.features.stagger-children.is-revealed > *:nth-child(3) { transition-delay: 0.12s; }
.features.stagger-children.is-revealed > *:nth-child(4) { transition-delay: 0.18s; }

/* poi-bar — 7 chipów, stagger 40ms (szybciej, więcej elementów) */
.poi-bar.stagger-children.is-revealed > *:nth-child(1) { transition-delay: 0.00s; }
.poi-bar.stagger-children.is-revealed > *:nth-child(2) { transition-delay: 0.04s; }
.poi-bar.stagger-children.is-revealed > *:nth-child(3) { transition-delay: 0.08s; }
.poi-bar.stagger-children.is-revealed > *:nth-child(4) { transition-delay: 0.12s; }
.poi-bar.stagger-children.is-revealed > *:nth-child(5) { transition-delay: 0.16s; }
.poi-bar.stagger-children.is-revealed > *:nth-child(6) { transition-delay: 0.20s; }
.poi-bar.stagger-children.is-revealed > *:nth-child(7) { transition-delay: 0.24s; }

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .navbar,
  .hero__heading .label,
  .hero__heading .h-display,
  .hero__heading .hero__lead,
  .hero__heading .btn,
  .reveal,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* =====================================================================
   MOBILE (≤640px)
   Single major breakpoint. Above 640px desktop styles apply unchanged.
   Order follows page flow: tokens → hero → sections → modals → footer.
   ===================================================================== */
@media (max-width: 640px) {

  /* ---------- Tokens & globals override ---------- */
  :root {
    --container-page: 100%;
    --container-content: 100%;
    --content-pad-x: 20px;
  }

  /* Most sections use these heading scales on mobile */
  .h-display {
    font-size: 34px;
    line-height: 42px;
  }
  .h-section {
    font-size: 30px;
    line-height: 38px;
  }
  .lead {
    font-size: 15px;
    line-height: 26px;
  }
  .lead--narrow {
    max-width: 100%;
  }

  /* Generic section padding override */
  .section {
    width: 100%;
    padding-left: var(--content-pad-x);
    padding-right: var(--content-pad-x);
  }

  /* Mobile-only line break (hidden on desktop via base rule) */
  .br-mobile {
    display: initial;
  }


  /* ===========================================================
     HERO
     =========================================================== */
  .hero {
    padding-top: 16px;
    height: auto;
    min-height: 640px;
    padding-bottom: 64px;
  }
  .hero__inner {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    gap: 56px;
  }

  /* Navbar — collapse to logo + hamburger */
  .navbar {
    height: 60px;
    padding: 10px 12px 10px 14px;
    border-radius: 36px;
    gap: 12px;
  }
  .navbar__menu,
  .btn--nav {
    display: none;
  }
  .navbar__toggle {
    display: inline-flex;
  }

  .logo__leaf  { width: 32px; height: 32px; }
  .logo__text  { width: 52px; height: 28px; }

  /* Hero heading */
  .hero__heading {
    width: 100%;
    gap: 18px;
  }
  /* Hide hero lead on mobile — show more of the background photo */
  .hero__lead {
    display: none;
  }
  /* Hero background image — pinned at bottom in a fixed-height band.
     Taller now since the lead is hidden — more photo visible. */
  .hero__bg {
    inset: auto 0 0 0;
    height: 440px;
  }
  .hero__bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 30% bottom;
  }


  /* ===========================================================
     O INWESTYCJI
     =========================================================== */
  .section--invest {
    padding-top: 72px;
  }
  .invest__top {
    flex-direction: column;
    height: auto;
    gap: 32px;
  }
  .invest__copy {
    width: 100%;
    gap: 14px;
  }
  .invest__copy .h-section {
    margin-bottom: 4px;
  }
  .invest__body {
    width: 100%;
    gap: 18px;
    font-size: 15px;
    line-height: 26px;
  }
  .invest__copy .btn--outline {
    align-self: stretch;
  }
  .invest__image {
    width: 100%;
    height: 360px;
    margin-left: 0;
    border-radius: 80px 8px 80px 8px;
  }

  /* Features tiles — 2x2 grid */
  .features {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 32px;
  }
  .features__item {
    flex: 0 0 calc(50% - 4px);
    height: 148px;
    gap: 12px;
    border-radius: 10px;
  }
  .features__icon {
    width: 48px;
    height: 48px;
  }
  .features__item p {
    font-size: 14px;
    line-height: 20px;
  }


  /* ===========================================================
     LOKALIZACJA
     =========================================================== */
  .section--location {
    padding-top: 64px;
    gap: 20px;
  }
  .location__heading {
    width: 100%;
    gap: 14px;
  }
  .location__heading .lead {
    width: 100%;
  }
  .location__heading .lead br {
    display: none;
  }

  /* POI bar — hidden on mobile, only the offer-banner CTA remains */
  .poi-bar {
    display: none;
  }

  /* Offer banner */
  .offer-banner {
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    border-radius: 24px;
    text-align: center;
    line-height: 18px;
  }

  /* Map — keep aspect, drop fixed height */
  .map {
    height: 340px;
    border-radius: 24px;
  }


  /* ===========================================================
     GALERIA
     =========================================================== */
  .section--gallery {
    padding-top: 64px;
    gap: 24px;
  }
  .gallery__heading {
    gap: 12px;
  }
  .gallery__slider {
    height: 280px;
    border-radius: 10px;
    /* Hint that swipe is enabled */
    touch-action: pan-y;
  }
  .slider__arrow {
    width: 44px;
    height: 44px;
    transition: opacity .22s ease, transform .22s ease, background-color .18s ease, color .18s ease;
  }
  .slider__arrow svg { width: 18px; height: 18px; }
  .slider__arrow--prev { left: 12px; }
  .slider__arrow--next { right: 12px; }
  /* Hide arrow at the edges (set by JS when at first/last slide) */
  .slider__arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(.85);
  }

  /* Zoom hint — top-right pill, taps open the lightbox via the same handler */
  .slider__zoom-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--c-dark-1);
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 4px 14px rgba(12, 41, 27, 0.22);
    padding: 0;
    animation: zoom-hint-pulse 2.4s ease-in-out 1s 2;
  }
  .slider__zoom-hint:hover {
    background: var(--c-green-primary);
    color: #ffffff;
  }
  .slider__zoom-hint svg {
    width: 18px;
    height: 18px;
  }
  @keyframes zoom-hint-pulse {
    0%, 100%   { transform: scale(1); box-shadow: 0 4px 14px rgba(12, 41, 27, 0.22); }
    50%        { transform: scale(1.08); box-shadow: 0 4px 22px rgba(0, 143, 46, 0.35); }
  }
  .slider__dots {
    bottom: 14px;
    padding: 6px 12px;
    gap: 8px;
  }
  .slider__dot {
    width: 7px;
    height: 7px;
  }
  .slider__dot.is-active {
    width: 20px;
  }


  /* ===========================================================
     LOKALE — ACCORDION
     Transforms the 7-col grid table into vertical cards.
     Each row is a clickable card. Collapsed shows: Mieszkanie + Cena + Otwórz.
     Click row → expands to reveal Piętro, Metraż, Pokoje, Ogródek/Balkon
     as label/value pairs.
     =========================================================== */
  .section--units {
    margin-top: 80px;
    padding: 56px 0;
  }
  .units__inner {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    gap: 28px;
  }
  .units-table {
    width: 100%;
    border-radius: 12px;
    background: transparent;
    border: none;
  }

  /* Hide the desktop table header on mobile */
  .units-table__header {
    display: none;
  }

  .units-table__body {
    gap: 8px;
  }

  /* Each row becomes a fully-populated card.
     Layout (mobile, new):
       row 1: Pokoje (title, big)             | Cena (price)
       row 2: Mieszkanie (small label)        |
       row 3: separator + Piętro              | Metraż
       row 4: Ogródek/Balkon                  |
       row 5: full-width white CTA "Sprawdź szczegóły"  */
  .units-table__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 0;
    padding: 18px 18px 16px;
    background: var(--c-dark-bg-row);
    border: 1px solid var(--c-dark-border);
    border-radius: 12px;
    transition: background-color .18s ease, border-color .18s ease;
  }
  .units-table__row--alt {
    background: var(--c-dark-bg-row);
  }
  .units-table__row:hover {
    background: var(--c-dark-bg-row);
  }
  .units-table__row > span {
    font-size: 15px;
    line-height: 22px;
    color: #ffffff;
  }

  /* Pokoje as title (col 1, row 1) — big & bold */
  .units-table__row > span[data-label="Pokoje"] {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #ffffff;
  }
  /* No "POKOJE" label above the title */
  .units-table__row > span[data-label="Pokoje"]::before {
    content: none;
  }

  /* Cena (col 2, row 1) — bold, right-aligned, vertically centered with title */
  .units-table__row > span[data-label="Cena"] {
    grid-column: 2;
    grid-row: 1;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    text-align: right;
    white-space: nowrap;
    align-self: center;
  }

  /* Mieszkanie — full-width small label under the title */
  .units-table__row > span[data-label="Mieszkanie"] {
    grid-column: 1 / -1;
    grid-row: 2;
    font-size: 13px;
    line-height: 18px;
    font-weight: 500;
    color: var(--c-dark-text-soft);
    margin-top: 4px;
  }

  /* Detail spans — each renders as a label + value stacked */
  .units-table__row > span[data-label="Piętro"],
  .units-table__row > span[data-label="Metraż"],
  .units-table__row > span[data-label="Ogródek/Balkon"] {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 15px;
    color: #ffffff;
  }
  .units-table__row > span[data-label="Piętro"]::before,
  .units-table__row > span[data-label="Metraż"]::before,
  .units-table__row > span[data-label="Ogródek/Balkon"]::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--c-dark-text-soft);
    line-height: 1;
  }

  /* Piętro + Metraż share row 3, with separator above */
  .units-table__row > span[data-label="Piętro"] {
    grid-column: 1;
    grid-row: 3;
    border-top: 1px solid var(--c-dark-border);
    margin-top: 14px;
    padding-top: 14px;
  }
  .units-table__row > span[data-label="Metraż"] {
    grid-column: 2;
    grid-row: 3;
    border-top: 1px solid var(--c-dark-border);
    margin-top: 14px;
    padding-top: 14px;
  }
  /* Ogródek/Balkon alone on row 4, col 1 */
  .units-table__row > span[data-label="Ogródek/Balkon"] {
    grid-column: 1;
    grid-row: 4;
    padding-top: 12px;
  }

  /* CTA button spans both columns. Mobile = white pill, dual-label swap. */
  .units-table__row .btn-pill {
    grid-column: 1 / -1;
    grid-row: 5;
    width: 100%;
    height: 44px;
    margin-top: 18px;
    background: #ffffff;
    color: var(--c-dark-1);
    font-weight: 700;
    font-size: 15px;
  }
  .units-table__row .btn-pill:hover {
    background: var(--c-green-primary);
    color: #ffffff;
  }
  /* Swap label: hide desktop "Otwórz", show mobile "Sprawdź szczegóły" */
  .btn-pill__label-d { display: none; }
  .btn-pill__label-m { display: inline; }


  /* ===========================================================
     INWESTOR
     =========================================================== */
  .section--investor {
    padding-top: 64px;
    gap: 56px;
  }
  .investor__top {
    flex-direction: column;
    gap: 36px;
    align-items: stretch;
  }
  .investor__copy {
    width: 100%;
  }
  .investor__copy .label {
    margin-bottom: 12px;
  }
  .investor__copy .h-section {
    margin-bottom: 18px;
  }
  .investor__copy .lead {
    margin-bottom: 28px;
  }
  .investor__stats {
    gap: 16px;
  }
  .stat {
    width: 50%;
    flex: 1;
  }
  .stat__value {
    font-size: 32px;
    line-height: 40px;
  }
  .stat__label {
    font-size: 13px;
    line-height: 20px;
  }

  /* Investor visual — image on top (full width), then 2 logos side-by-side.
     Uses flex-wrap: wrap with image at 100% basis and logos at ~50% basis. */
  .investor__visual {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
  }
  .investor__image {
    position: relative;
    left: 0;
    top: 0;
    flex: 0 0 100%;
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
    border-radius: 80px 8px 80px 8px;
  }
  /* Two logos in a row, each ~half-width */
  .investor__logo,
  .investor__logo--left,
  .investor__logo--right {
    position: static;
    flex: 0 0 calc(50% - 7px);
    width: auto;
    height: 110px;
    border-radius: 40px 4px 40px 4px;
    padding: 14px;
  }
  .investor__logo img {
    max-width: 100%;
    max-height: 70px;
    width: auto;
    height: auto;
  }

  /* Realizations — stack into single column */
  .investor__realizations {
    gap: 18px;
  }
  .realizations__heading {
    font-size: 17px;
  }
  .realizations__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .realization--big {
    height: auto;
  }
  .realization--big .realization__image {
    height: 240px;
  }
  /* Crop the Izbicko building image to show more of the top (the building),
     less of the bottom (driveway/foreground) */
  .realization--big .realization__image img {
    object-position: center 20%;
  }
  .realizations__col {
    gap: 16px;
  }
  .realizations__col .realization {
    height: auto;
  }
  .realizations__col .realization__image {
    height: 200px;
  }
  .realization__caption {
    padding: 14px 16px;
  }
  .realization__caption h3 {
    font-size: 16px;
    line-height: 24px;
  }
  .realization__caption p {
    font-size: 14px;
    line-height: 22px;
  }


  /* ===========================================================
     KONTAKT
     =========================================================== */
  .section--contact {
    margin-top: 80px;
    padding: 56px 20px;
  }
  .contact__inner {
    flex-direction: column;
    gap: 36px;
    max-width: 100%;
  }
  .contact__copy {
    width: 100%;
  }
  .contact__copy .h-section {
    margin: 0 0 18px;
  }
  .contact__copy .lead {
    margin: 0 0 26px;
  }
  .contact__list {
    gap: 18px;
  }
  .contact-item__icon {
    width: 40px;
    height: 40px;
  }
  .contact-item__content a,
  .contact-item__title {
    font-size: 15px;
    line-height: 24px;
  }

  /* Contact image */
  .contact__image {
    width: 100%;
    height: 380px;
    border-radius: 80px 8px 80px 8px;
  }
  /* Phone bubbles — hidden on mobile (image alone is enough, numbers
     are already shown in the contact list above) */
  .phone-bubble {
    display: none;
  }


  /* ===========================================================
     FOOTER
     =========================================================== */
  .footer__inner {
    width: 100%;
    padding: 36px 20px 28px;
    gap: 32px;
  }
  .footer__top {
    flex-direction: column;
    gap: 32px;
  }
  .footer__brand {
    width: 100%;
    gap: 14px;
  }
  .footer__brand p {
    font-size: 13px;
    line-height: 20px;
  }
  .footer__brand p br {
    display: none;
  }
  .footer__cols {
    flex-direction: column;
    gap: 28px;
  }
  .footer__col {
    width: 100%;
  }
  .footer__col ul li {
    font-size: 15px;
    line-height: 26px;
  }
  .footer__copy {
    font-size: 12px;
    padding-bottom: 20px;
  }


  /* ===========================================================
     MODALS
     =========================================================== */
  .modal {
    padding: 16px;
    align-items: flex-start;
  }
  .modal__dialog {
    max-width: 100%;
    border-radius: 18px;
    padding: 36px 22px 28px;
  }
  /* Card modal — wider on mobile, with pinch-zoom on the image.
     In PORTRAIT orientation we rotate the card 90° so it fills the
     full width of the screen — user can then rotate the phone for
     a natural landscape view of the (wide) document. */
  .modal--card {
    padding: 0;
  }
  .modal__dialog--wide {
    padding: 0;
    border-radius: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .card-modal__image-wrap {
    width: 100%;
    height: auto;
    max-height: 100dvh;
    overflow: auto;
    touch-action: pinch-zoom;
    -webkit-overflow-scrolling: touch;
    background: transparent;
    border-radius: 0;
  }
  .card-modal__image {
    width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
  }
  .modal--card .modal__close {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 1010;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  }

  /* In PORTRAIT — rotate card 90deg so it fills landscape width on a phone
     held vertically. User physically rotates the phone to view normally. */
  @media (orientation: portrait) {
    .modal--card .card-modal__image-wrap {
      position: fixed;
      top: 50%;
      left: 50%;
      width: 100dvh;       /* swap: card uses screen HEIGHT as its width */
      height: 100vw;       /* and screen WIDTH as its height */
      max-height: none;
      transform: translate(-50%, -50%) rotate(90deg);
      transform-origin: center center;
      overflow: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .modal--card .card-modal__image {
      width: 100%;
      height: auto;
      max-height: 100%;
      object-fit: contain;
    }
    /* Rotation hint */
    .modal--card .modal__dialog--wide::after {
      content: "↻  Obróć telefon, aby zobaczyć kartę";
      position: fixed;
      top: 14px;
      left: 50%;
      transform: translateX(-50%);
      padding: 8px 14px;
      background: rgba(0, 0, 0, 0.7);
      color: #ffffff;
      font-size: 12px;
      font-weight: 500;
      border-radius: 16px;
      z-index: 1009;
      pointer-events: none;
      animation: card-hint-fade 4s ease-out forwards;
    }
    @keyframes card-hint-fade {
      0%, 70%  { opacity: 1; }
      100% { opacity: 0; }
    }
  }

  .modal__header {
    margin-bottom: 22px;
    gap: 10px;
  }
  .modal__title {
    font-size: 22px;
    line-height: 30px;
  }
  .modal__close {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    top: 14px;
    right: 14px;
  }
  .poi-list__item {
    padding: 10px 0;
    gap: 12px;
  }
  .poi-list__icon {
    width: 30px;
    height: 30px;
  }
  .poi-list__category {
    font-size: 14px;
  }
  .poi-list__places {
    font-size: 13px;
  }

  /* ===========================================================
     GALLERY LIGHTBOX
     =========================================================== */
  .modal--lightbox {
    padding: 0;
    background: rgba(12, 41, 27, 0.92);
  }
  .modal--lightbox .modal__overlay {
    background: transparent;
  }
  .lightbox__dialog {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow: auto;
    touch-action: pinch-zoom;
  }
  .lightbox__image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
  }
  .lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 20px;
    color: var(--c-dark-1);
    cursor: pointer;
    z-index: 2;
    transition: background-color .15s ease;
  }
  .lightbox__close:hover {
    background: #ffffff;
  }
}


/* =====================================================================
   COOKIE CONSENT — banner + settings/privacy modals + toggle switches
   Brand-consistent: DM Sans, green primary, rounded pills, ease-out-expo.
   ===================================================================== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 16px;
  pointer-events: none;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--c-border-soft);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(12, 41, 27, 0.18);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  pointer-events: auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform .42s var(--ease-out-expo), opacity .28s ease;
}
.cookie-banner.is-visible .cookie-banner__inner {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner__copy {
  flex: 1;
  min-width: 0;
}
.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 22px;
  color: var(--c-dark-1);
}
.cookie-banner__title strong {
  font-weight: 700;
}
.cookie-banner__text {
  font-size: 14px;
  line-height: 22px;
  color: var(--c-dark-2);
  margin: 0;
}
.cookie-banner__link {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--c-green-primary);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color .15s ease;
}
.cookie-banner__link:hover {
  color: var(--c-green-primary-hover);
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-btn {
  height: 44px;
  padding: 12px 22px;
  font-size: 14px;
  white-space: nowrap;
}

/* Cookie categories list (inside settings modal) */
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 28px;
}
.cookie-category {
  border-bottom: 1px solid var(--c-border-soft);
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category__row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
}
.cookie-category__head {
  flex: 1;
  min-width: 0;
}
.cookie-category__name {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
  color: var(--c-dark-1);
  margin: 0 0 4px;
}
.cookie-category__desc {
  font-size: 13px;
  line-height: 20px;
  color: var(--c-dark-2);
  margin: 0;
}

/* Toggle switch — pill-style, brand green when on */
.cookie-toggle {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.cookie-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cookie-toggle__track {
  display: block;
  width: 48px;
  height: 28px;
  background: #d4d4d4;
  border-radius: 14px;
  position: relative;
  transition: background-color .22s var(--ease-out-expo);
}
.cookie-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform .22s var(--ease-out-expo);
}
.cookie-toggle input:checked + .cookie-toggle__track {
  background: var(--c-green-primary);
}
.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(20px);
}
.cookie-toggle--locked {
  cursor: not-allowed;
  opacity: 0.7;
}
.cookie-toggle--locked .cookie-toggle__track {
  background: var(--c-green-primary);
}
.cookie-toggle--locked .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(20px);
}
.cookie-toggle input:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--c-green-primary);
  outline-offset: 2px;
}

/* Action row at bottom of cookie settings modal */
.cookie-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-modal__actions .cookie-btn {
  min-width: 140px;
}

/* Privacy modal content */
.modal--privacy .modal__dialog {
  max-width: 720px;
}
.privacy-content {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
}
.privacy-content h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--c-dark-1);
  margin: 24px 0 8px;
}
.privacy-content h3:first-child {
  margin-top: 0;
}
.privacy-content p {
  font-size: 14px;
  line-height: 22px;
  color: var(--c-dark-2);
  margin: 0 0 10px;
}
.privacy-content ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 14px;
}
.privacy-content li {
  font-size: 14px;
  line-height: 22px;
  color: var(--c-dark-2);
  margin-bottom: 4px;
}
.privacy-content strong {
  color: var(--c-dark-1);
  font-weight: 600;
}
.privacy-content a {
  color: var(--c-green-primary);
  text-decoration: underline;
}
.privacy-content a:hover {
  color: var(--c-green-primary-hover);
}
.privacy-content p.privacy-content__updated {
  font-size: 12px;
  font-style: italic;
  color: var(--c-grey-label);
  margin-top: 24px;
}


/* ---------- MOBILE (≤640px) cookie consent overrides ---------- */
@media (max-width: 640px) {
  .cookie-banner {
    padding: 12px;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
  }
  .cookie-banner__text {
    font-size: 13px;
    line-height: 20px;
  }
  .cookie-banner__actions {
    flex-direction: column-reverse;  /* primary CTA on top */
    gap: 8px;
  }
  .cookie-btn {
    width: 100%;
    height: 48px;
    font-size: 15px;
  }
  .cookie-modal__actions {
    flex-direction: column-reverse;
    gap: 8px;
  }
  .cookie-modal__actions .cookie-btn {
    width: 100%;
    min-width: 0;
  }
  .privacy-content {
    max-height: calc(100dvh - 220px);
  }
  .privacy-content h3 {
    font-size: 15px;
    margin: 18px 0 6px;
  }
  .privacy-content p,
  .privacy-content li {
    font-size: 13px;
    line-height: 20px;
  }
}
