:root {
  --color-anthracite: #2c2e31;
  --color-sand: #e5e0d5;
  --color-taupe: #8b7f63;
  --color-off-white: #f9f9f9;
  --color-dark-accent: #1a1c1e;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

/* Kotwice pod stałą nawigacją; płynne przewijanie tylko gdy użytkownik nie wymaga reduced motion */
html {
  scroll-padding-top: 5.5rem;
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 4.75rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--color-off-white);
  background: var(--color-off-white);
}

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

/* Scroll zablokowany tylko przy aktywnej bramce (index); podstrony bez #site-gate mają normalny scroll */
body:has(#site-gate:not(.is-unlocked)) {
  overflow: hidden;
}

.site-gate {
  position: fixed;
  inset: 0;
  z-index: 120000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(7, 8, 10, 0.995);
}

.site-gate.is-unlocked {
  display: none;
}

.site-gate-card {
  width: min(420px, 100%);
  border: 1px solid rgba(229, 224, 213, 0.25);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 1.25rem;
}

.site-gate-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sand);
  font-weight: 700;
}

.site-gate-title {
  margin: 0;
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  line-height: 1.15;
}

.site-gate-text {
  margin: 0.7rem 0 1rem;
  color: rgba(249, 249, 249, 0.86);
  font-size: 0.95rem;
}

.site-gate-form {
  display: grid;
  gap: 0.45rem;
}

.site-gate-form label {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(249, 249, 249, 0.9);
}

.site-gate-form input {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(229, 224, 213, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

.site-gate-form button {
  margin-top: 0.5rem;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--color-taupe);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.site-gate-error {
  min-height: 1.1rem;
  margin: 0.2rem 0 0;
  color: #ffb0b0;
  font-size: 0.82rem;
}

.hero {
  position: relative;
  width: 100%;
  margin: 0;
  min-height: 100svh;
  background: url("./images/hero-1600.jpg") center / cover no-repeat;
  background-image: image-set(
    url("./images/hero-960.jpg") 1x,
    url("./images/hero-1600.jpg") 2x
  );
  overflow: hidden;
}

@media (max-width: 860px) {
  .hero {
    background: url("./images/hero-960.jpg") center / cover no-repeat;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      100deg,
      rgba(26, 28, 30, 0.78) 0%,
      rgba(26, 28, 30, 0.52) 38%,
      rgba(26, 28, 30, 0.22) 100%
    ),
    linear-gradient(to top, rgba(26, 28, 30, 0.3) 0%, rgba(26, 28, 30, 0) 40%);
}

.main-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-right: max(2rem, env(safe-area-inset-right, 0px));
  padding-bottom: 1rem;
  padding-left: max(2rem, env(safe-area-inset-left, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  z-index: 99990;
  transition: background-color 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease;
}

.main-nav.is-scrolled {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(20, 22, 24, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 224, 213, 0.14);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
  padding-right: max(2rem, env(safe-area-inset-right, 0px));
  padding-bottom: 0.7rem;
  padding-left: max(2rem, env(safe-area-inset-left, 0px));
  z-index: 99999;
}

.nav-group {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.nav-right {
  justify-self: end;
}

.nav-link {
  position: relative;
  color: var(--color-off-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--color-sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--color-sand);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(120px, 16vw, 175px);
}

.nav-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.menu-toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--color-off-white);
  transition: background-color 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}

.menu-toggle-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.menu-toggle-line:nth-child(1) {
  top: 0;
}

.menu-toggle-line:nth-child(2) {
  top: 6px;
}

.menu-toggle-line:nth-child(3) {
  top: 12px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content--new {
  max-width: 760px;
  padding: clamp(11rem, 27vh, 15rem) 2rem 6.3rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-sand);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(1.95rem, 5vw, 3.95rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 1.2rem 0 2rem;
  max-width: 46ch;
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.7;
  color: rgba(249, 249, 249, 0.94);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  color: var(--color-off-white);
  background: var(--color-taupe);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.25s ease;
}

.cta-button:hover {
  background: #766b54;
  transform: translateY(-2px);
}

.hero-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 249, 249, 0.5);
  color: var(--color-off-white);
  text-decoration: none;
  font-weight: 700;
  background: rgba(249, 249, 249, 0.08);
  transition: transform 0.2s ease, background-color 0.25s ease;
}

.hero-link-button:hover {
  transform: translateY(-2px);
  background: rgba(249, 249, 249, 0.18);
}

.hero-more {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-off-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero-more-icon {
  width: 18px;
  height: 30px;
  border: 1.5px solid rgba(249, 249, 249, 0.85);
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  padding-top: 5px;
}

.hero-more-wheel {
  width: 2.5px;
  height: 6px;
  border-radius: 99px;
  background: var(--color-off-white);
  animation: heroBounce 1.5s ease-in-out infinite;
}

@keyframes heroBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.hero-metrics {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  max-width: 520px;
}

.hero-metrics > div {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(229, 224, 213, 0.35);
  border-radius: 10px;
  background: rgba(26, 28, 30, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-metrics strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-off-white);
}

.hero-metrics span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-sand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.location-section {
  background: var(--color-off-white);
  color: var(--color-anthracite);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.perks-section {
  background: #fff;
  color: var(--color-anthracite);
  padding: clamp(2.3rem, 5vw, 3.8rem) 1rem;
  border-top: 1px solid rgba(44, 46, 49, 0.08);
}

.perks-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.perks-inner h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.45rem, 3.1vw, 2.2rem);
  color: var(--color-anthracite);
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 1100px) {
  .perks-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.perk-card {
  border: 1px solid rgba(44, 46, 49, 0.1);
  border-radius: 14px;
  background: #fafafa;
  padding: 1.2rem 1rem;
  text-align: center;
  min-height: 210px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.8rem;
}

@media (max-width: 699px) {
  .perk-card {
    min-height: 0;
    padding: 1rem 0.85rem;
  }
}

.perk-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 127, 99, 0.16);
  color: #6a5f4b;
  margin-bottom: 0;
}

.perk-icon svg {
  width: 50px;
  height: 50px;
}

.perk-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.perk-card p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(44, 46, 49, 0.82);
}

.location-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-kicker {
  margin: 0 0 0.7rem;
  color: var(--color-taupe);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.location-inner h2 {
  margin: 0 0 1.8rem;
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
  color: var(--color-anthracite);
}

.location-intro {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  margin-bottom: 0.25rem;
}

@media (min-width: 768px) {
  .location-intro {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 40%);
  }
}

.location-description {
  max-width: 78ch;
  margin: 0;
}

.location-description p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(44, 46, 49, 0.9);
}

.location-photos {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.05;
  justify-self: center;
}

@media (min-width: 768px) {
  .location-photos {
    justify-self: end;
  }
}

.location-figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(44, 46, 49, 0.12);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
  aspect-ratio: 1 / 1;
  width: 72%;
  max-width: 320px;
}

.location-figure--back {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.location-figure--front {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
}

.location-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.location-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(44, 46, 49, 0.11);
  border-radius: 14px;
  background: var(--color-sand);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.location-item:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 127, 99, 0.48);
}

.location-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 127, 99, 0.22);
  color: #5f5543;
  flex-shrink: 0;
}

.location-icon svg {
  width: 18px;
  height: 18px;
}

.location-item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  line-height: 1.3;
}

.location-item p {
  margin: 0;
  font-size: 0.93rem;
  color: rgba(44, 46, 49, 0.8);
  font-weight: 600;
}

.location-map-title {
  margin: 2rem 0 0.9rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--color-anthracite);
}

.homes-section {
  background: #efefef;
  color: var(--color-anthracite);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.about-investment-section {
  position: relative;
  overflow: hidden;
  background: var(--color-sand);
  color: var(--color-anthracite);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.about-investment-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("./images/szkic.png") center / min(100%, 1040px) auto no-repeat;
  opacity: 0.78;
  mix-blend-mode: screen;
  filter: contrast(1.12);
  pointer-events: none;
}

.about-investment-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.about-investment-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
}

.about-investment-inner p {
  margin: 0 0 0.95rem;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(44, 46, 49, 0.9);
}

.homes-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.homes-inner h2 {
  margin: 0 0 1.2rem;
  font-size: clamp(1.5rem, 3.3vw, 2.4rem);
}

.plot-map-block {
  margin: 0 0 1.35rem;
}

.plot-map-block h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
}

.plot-map-block p {
  margin: 0 0 0.85rem;
  color: rgba(44, 46, 49, 0.78);
}

.plot-map-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  align-items: start;
}

.plot-map {
  position: relative;
  background: #fff;
  border: 1px solid rgba(44, 46, 49, 0.12);
  border-radius: 12px;
  padding: 0.5rem;
}

.plot-map-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 980px) {
  .plot-map-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.plot-map svg {
  width: 100%;
  height: auto;
  display: block;
}

.plot-map object {
  width: 100%;
  min-height: 420px;
  display: block;
  border: 0;
}

.plot-map-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.plot-map-single {
  border: 1px solid rgba(44, 46, 49, 0.1);
  border-radius: 10px;
  background: #f8f8f8;
  padding: 0.35rem;
}

.plot-map-single object {
  width: 100%;
  min-height: 300px;
  display: block;
}

.plot-map-canvas {
  position: relative;
  display: grid;
  width: 100%;
}

.plot-map-canvas img,
.plot-map-canvas .plot-overlay {
  grid-area: 1 / 1;
}

.plot-map-canvas img {
  width: 100%;
  display: block;
  height: auto;
  z-index: 1;
}

.plot-map-pzt {
  border: 1px solid rgba(44, 46, 49, 0.1);
  border-radius: 10px;
  background: #f8f8f8;
  padding: 0.35rem;
}

.plot-map-pzt img {
  width: 100%;
  display: block;
}

.plot-overlay-pzt .map-shape {
  stroke-width: 1.8;
}

.plot-overlay {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
}

.map-shape {
  pointer-events: all;
  transition: opacity .2s ease;
}

.plot-map .plot-unit {
  transition: opacity 0.25s ease, fill 0.25s ease, transform 0.2s ease;
  transform-origin: center;
}

.plot-map .plot-unit.unit-free {
  fill: #3fa55b !important;
  opacity: 0.8;
}

.plot-map .plot-unit.unit-sold {
  fill: #be3f3f !important;
  opacity: 0.82;
}

.plot-map .plot-unit:hover {
  opacity: 1;
}

.plot-card {
  background: #fff;
  border: 1px solid rgba(44, 46, 49, 0.12);
  border-radius: 12px;
  padding: 0.9rem;
  box-shadow: 0 8px 20px rgba(26, 28, 30, 0.08);
}

.plot-card-float {
  position: absolute;
  width: min(290px, 90vw);
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .15s ease, transform .15s ease;
}

.plot-card-float.visible {
  opacity: 1;
  transform: translateY(0);
}

.plot-card-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-taupe);
  font-weight: 700;
}

.plot-card h4 {
  margin: 0.2rem 0 0.35rem;
  font-size: 1.55rem;
}

.plot-card-status {
  margin: 0;
  color: #2f8a49;
  font-weight: 800;
  font-size: 0.95rem;
}

.plot-card-status.sold {
  color: #a53636;
}

.plot-card-actions {
  display: grid;
  gap: 0.45rem;
}

.plot-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--color-taupe);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.plot-btn.plot-btn-secondary {
  background: rgba(44, 46, 49, 0.1);
  color: var(--color-anthracite);
}

.plot-btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.developer-section {
  background: var(--color-off-white);
  color: var(--color-anthracite);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.gallery-section {
  background: #fff;
  color: var(--color-anthracite);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
}

.gallery-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.3vw, 2.2rem);
}

.gallery-lead {
  margin: 0 0 1.25rem;
  font-size: clamp(0.98rem, 1.7vw, 1.05rem);
  line-height: 1.7;
  color: rgba(44, 46, 49, 0.78);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

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

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.gallery-item {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(44, 46, 49, 0.1);
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: #f6f6f6;
  box-shadow: 0 6px 16px rgba(26, 28, 30, 0.06);
  aspect-ratio: 4 / 3;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(26, 28, 30, 0.12);
  border-color: rgba(139, 127, 99, 0.4);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.gallery-toggle {
  min-height: 44px;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 46, 49, 0.2);
  background: #fff;
  color: var(--color-anthracite);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.gallery-toggle:hover {
  background: var(--color-sand);
  border-color: rgba(139, 127, 99, 0.4);
  transform: translateY(-1px);
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    max(1rem, env(safe-area-inset-bottom, 0px))
    max(1rem, env(safe-area-inset-left, 0px));
  background: rgba(12, 14, 16, 0.92);
  z-index: 5000;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-image {
  max-width: min(1200px, 94vw);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close {
  position: absolute;
  top: max(0.9rem, env(safe-area-inset-top, 0px));
  right: max(0.9rem, env(safe-area-inset-right, 0px));
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-prev {
  left: max(1rem, env(safe-area-inset-left, 0px));
}

.gallery-lightbox-next {
  right: max(1rem, env(safe-area-inset-right, 0px));
}

.gallery-lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .gallery-lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .gallery-lightbox-prev {
    left: max(0.45rem, env(safe-area-inset-left, 0px));
  }

  .gallery-lightbox-next {
    right: max(0.45rem, env(safe-area-inset-right, 0px));
  }

  .gallery-lightbox-close {
    top: max(0.45rem, env(safe-area-inset-top, 0px));
    right: max(0.45rem, env(safe-area-inset-right, 0px));
  }
}

.developer-inner {
  max-width: 900px;
  margin: 0 auto;
}

.developer-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.3vw, 2.3rem);
}

.developer-inner p {
  margin: 0 0 0.95rem;
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(44, 46, 49, 0.9);
}

.contact-section {
  background: linear-gradient(
    165deg,
    #e4dfd4 0%,
    #ebe6dc 42%,
    #f0ebe3 100%
  );
  color: var(--color-anthracite);
  padding: clamp(2.5rem, 6vw, 4.5rem) 1rem;
  border-top: 1px solid rgba(44, 46, 49, 0.06);
  border-bottom: 1px solid rgba(44, 46, 49, 0.06);
}

.contact-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(44, 46, 49, 0.12);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(26, 28, 30, 0.08);
  padding: clamp(1.1rem, 3vw, 2rem);
}

@media (min-width: 900px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 46%);
    align-items: start;
  }
}

.contact-copy h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.3vw, 2.2rem);
}

.contact-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.06rem);
  line-height: 1.7;
  color: rgba(44, 46, 49, 0.86);
  max-width: 52ch;
}

.contact-copy p a {
  color: var(--color-taupe);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 127, 99, 0.35);
}

.contact-copy p a[href^="tel:"] {
  display: inline-block;
  white-space: nowrap;
}

.contact-copy p a:hover {
  color: #6b614c;
}

.contact-form {
  display: grid;
  gap: 0.45rem;
}

.contact-form-label {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(44, 46, 49, 0.82);
}

.contact-form-input {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(44, 46, 49, 0.2);
  background: rgba(249, 249, 249, 0.95);
  color: var(--color-anthracite);
  padding: 0.62rem 0.72rem;
  font: inherit;
}

.contact-form-input:focus {
  outline: none;
  border-color: var(--color-taupe);
  box-shadow: 0 0 0 2px rgba(139, 127, 99, 0.18);
}

.contact-form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: flex-start;
  margin-top: 0.35rem;
  padding: 0.55rem 0.35rem 0.55rem 0.15rem;
  margin-left: -0.15rem;
  margin-right: -0.35rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(44, 46, 49, 0.86);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.contact-consent input[type="checkbox"] {
  margin-top: 0.12rem;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  accent-color: var(--color-taupe);
  cursor: pointer;
}

.contact-consent a {
  color: var(--color-taupe);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 127, 99, 0.35);
}

.contact-consent a:hover {
  color: #6b614c;
}

.contact-form-submit {
  margin-top: 0.45rem;
  min-height: 46px;
  border: none;
  border-radius: 999px;
  background: var(--color-taupe);
  color: var(--color-off-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form-submit:hover {
  background: #766b54;
  transform: translateY(-1px);
}

.homes-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(26, 28, 30, 0.08);
}

.homes-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: #fff;
}

.homes-table thead th {
  padding: 0.92rem 0.85rem;
  text-align: left;
  background: #9a8668;
  color: #fff;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  font-weight: 700;
  white-space: nowrap;
}

.homes-table tbody td {
  padding: 1rem 0.85rem;
  border-bottom: 1px solid rgba(44, 46, 49, 0.08);
  font-size: 0.97rem;
  color: var(--color-anthracite);
}

.homes-table tbody tr:hover {
  background: rgba(229, 224, 213, 0.35);
}

.homes-table tbody tr.row-focus {
  background: rgba(139, 127, 99, 0.18);
}

.status-pill {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(139, 127, 99, 0.15);
  color: #5f5543;
  font-size: 0.82rem;
  font-weight: 700;
}

.status-pill.sold {
  background: rgba(140, 45, 45, 0.14);
  color: #7f2a2a;
}

.table-link {
  color: var(--color-anthracite);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.table-link:hover {
  color: var(--color-taupe);
  border-color: var(--color-taupe);
}

.price-history-cell {
  position: relative;
  text-align: center;
}

.price-history-dot {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(44, 46, 49, 0.22);
  border-radius: 999px;
  background: rgba(139, 127, 99, 0.16);
  color: #5f5543;
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.price-history-dot.sold {
  background: rgba(140, 45, 45, 0.14);
  color: #7f2a2a;
  border-color: rgba(140, 45, 45, 0.28);
}

.price-history-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  min-width: 190px;
  max-width: 250px;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  background: rgba(26, 28, 30, 0.96);
  color: #fff;
  font-size: 0.76rem;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
}

.price-history-dot:hover .price-history-tooltip,
.price-history-dot:focus-visible .price-history-tooltip,
.price-history-dot.is-tooltip-open .price-history-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 860px) {
  /* Flex: przy ukrytych grupach nawigacji grid miał tylko 2 sloty — hamburger
     lądował w środkowej kolumnie 1fr zamiast po prawej. */
  .main-nav {
    position: absolute;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
    padding-right: max(0.9rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.7rem;
    padding-left: max(0.9rem, env(safe-area-inset-left, 0px));
    background: linear-gradient(
      to bottom,
      rgba(26, 28, 30, 0.45),
      rgba(26, 28, 30, 0)
    );
  }

  .nav-logo {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: min(190px, 62vw);
    justify-self: unset;
    justify-content: flex-start;
  }

  .menu-toggle {
    order: 2;
    flex-shrink: 0;
    display: flex;
  }

  .nav-left {
    order: 3;
  }

  .nav-right {
    order: 4;
  }

  .nav-logo img {
    filter: brightness(0) invert(1)
      drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
  }

  .main-nav.is-scrolled {
    padding-top: max(0.55rem, env(safe-area-inset-top, 0px));
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.55rem;
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
  }

  .nav-group {
    display: none;
  }

  .main-nav.is-open {
    background: rgba(20, 22, 24, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.65rem;
  }

  .main-nav.is-open .nav-group {
    display: flex;
    flex-direction: column;
    flex: 1 0 100%;
    width: 100%;
    gap: 0.15rem;
    margin-top: 0.4rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .main-nav.is-open .nav-left {
    margin-top: 0;
  }

  .main-nav.is-open .nav-right {
    justify-self: auto;
    padding-top: 0.35rem;
    margin-top: 0.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .main-nav.is-open .nav-link {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.62rem 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .main-nav.is-open .nav-link::after {
    display: none;
  }

  .main-nav.is-open .nav-link:hover,
  .main-nav.is-open .nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: var(--color-off-white);
  }

  .main-nav.is-open .menu-toggle-line:nth-child(1) {
    top: 6px;
    transform: rotate(45deg);
  }

  .main-nav.is-open .menu-toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .main-nav.is-open .menu-toggle-line:nth-child(3) {
    top: 6px;
    transform: rotate(-45deg);
  }

  .main-nav.is-open .menu-toggle {
    background: rgba(255, 255, 255, 0.1);
  }

  .hero-content--new {
    max-width: 100%;
    padding-top: 8rem;
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: 5.5rem;
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plot-map-shell {
    grid-template-columns: 1fr;
  }

  .plot-map-duo {
    grid-template-columns: 1fr;
  }

  .plot-map {
    padding: 0.6rem;
  }

  .plot-map-single,
  .plot-map-pzt {
    padding: 0.45rem;
  }

  .plot-card-float {
    position: static;
    width: 100%;
    margin-top: 0.65rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .homes-table-wrap {
    overflow: visible;
  }

  .homes-table {
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }

  .homes-table thead {
    display: none;
  }

  .homes-table tbody {
    display: grid;
    gap: 0.45rem;
    padding: 0.35rem 0.2rem;
  }

  .homes-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(3.75rem, 4.35rem);
    grid-template-rows: auto auto auto auto;
    gap: 0.12rem 0.4rem;
    align-items: stretch;
    padding: 0.45rem 0.5rem 0.45rem 0.55rem;
    border: 1px solid rgba(44, 46, 49, 0.1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(26, 28, 30, 0.06);
  }

  .homes-table tbody tr[data-status="sprzedany"] td:nth-child(7),
  .homes-table tbody tr[data-status="sprzedany"] td:nth-child(8),
  .homes-table tbody tr[data-status="sprzedany"] td:nth-child(10) {
    display: none;
  }

  .homes-table tbody td {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.06rem;
    padding: 0.12rem 0.1rem;
    border: 0;
    font-size: 0.8rem;
    line-height: 1.22;
    text-align: left;
    min-width: 0;
  }

  .homes-table tbody td::before {
    color: rgba(44, 46, 49, 0.52);
    font-weight: 700;
    font-size: 0.62rem;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }

  .homes-table .status-pill {
    margin-top: 0.02rem;
    padding: 0.1rem 0.42rem;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .homes-table .status-pill.sold {
    padding: 0.1rem 0.42rem;
    font-size: 0.68rem;
  }

  .homes-table tbody td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .homes-table tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .homes-table tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .homes-table tbody td:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .homes-table tbody td:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }

  .homes-table tbody td:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
  }

  .homes-table tbody td:nth-child(7) {
    grid-column: 1;
    grid-row: 4;
    font-weight: 600;
  }

  .homes-table tbody td:nth-child(8) {
    grid-column: 2;
    grid-row: 4;
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--color-anthracite);
  }

  .homes-table tbody td:nth-child(8) strong {
    font-weight: 800;
    color: #5a4f3d;
  }

  .homes-table tbody td:nth-child(9) {
    grid-column: 3;
    grid-row: 1;
    align-self: start;
    justify-content: flex-start;
    align-items: center;
    padding: 0.05rem 0 0;
  }

  .homes-table tbody td:nth-child(9)::before {
    display: none;
  }

  .homes-table tbody td:nth-child(10) {
    grid-column: 3;
    grid-row: 2 / span 3;
    align-self: center;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    padding: 0 0 0 0.05rem;
  }

  .homes-table tbody td:nth-child(10)::before {
    display: none;
  }

  .homes-table tbody td:nth-child(1)::before { content: "Nr"; }
  .homes-table tbody td:nth-child(2)::before { content: "Rodzaj"; }
  .homes-table tbody td:nth-child(3)::before { content: "Pow."; }
  .homes-table tbody td:nth-child(4)::before { content: "Działka"; }
  .homes-table tbody td:nth-child(5)::before { content: "Pok."; }
  .homes-table tbody td:nth-child(6)::before { content: "Status"; }
  .homes-table tbody td:nth-child(7)::before { content: "Cena m²"; }
  .homes-table tbody td:nth-child(8)::before { content: "Cena brutto"; }

  .homes-table tbody td:nth-child(10) .table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    padding: 0.38rem 0.4rem;
    border-radius: 7px;
    border: 1px solid var(--color-taupe);
    background: var(--color-taupe);
    color: #fff !important;
    font-size: 0.68rem;
    font-weight: 800;
    text-decoration: none;
    border-bottom: none;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  }

  .homes-table tbody td:nth-child(10) .table-link:hover {
    background: #766b54;
    border-color: #766b54;
    color: #fff !important;
  }

  .homes-table tbody td:nth-child(10):empty {
    display: none;
  }

  .price-history-cell {
    text-align: center;
  }

  .price-history-dot {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
    border-radius: 999px;
  }

  .price-history-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
    min-width: 170px;
  }

  .price-history-dot:hover .price-history-tooltip,
  .price-history-dot:focus-visible .price-history-tooltip,
  .price-history-dot.is-tooltip-open .price-history-tooltip {
    transform: translateX(0) translateY(0);
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.7rem);
    max-width: none;
  }

  .hero-kicker {
    letter-spacing: 0.15em;
  }

  .hero-actions {
    gap: 0.55rem;
  }

  .cta-button,
  .hero-link-button {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .hero-more {
    bottom: 0.8rem;
    font-size: 0.86rem;
  }

  .location-grid {
    grid-template-columns: 1fr;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(139, 127, 99, 0.55);
  outline-offset: 2px;
}

.site-footer {
  background: var(--color-dark-accent);
  color: rgba(249, 249, 249, 0.9);
  padding-top: clamp(2.75rem, 5vw, 3.75rem);
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(
    clamp(2rem, 3vw, 2.5rem),
    env(safe-area-inset-bottom, 0px)
  );
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  border-top: 1px solid rgba(229, 224, 213, 0.12);
}

.map-embed {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(44, 46, 49, 0.12);
  box-shadow: 0 14px 30px rgba(26, 28, 30, 0.14);
}

.map-embed iframe {
  width: 100%;
  height: min(62vh, 520px);
  display: block;
  border: 0;
}

.custom-map-wrap {
  border: 1px solid rgba(44, 46, 49, 0.12);
  border-radius: 14px;
  background: #fff;
  padding: 0.75rem;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.map-filter {
  border: 1px solid rgba(44, 46, 49, 0.18);
  background: #f5f5f5;
  color: var(--color-anthracite);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.45rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.map-filter.is-active {
  background: var(--color-taupe);
  color: #fff;
  border-color: var(--color-taupe);
}

.custom-location-map {
  width: 100%;
  height: min(58vh, 500px);
  border-radius: 12px;
  overflow: hidden;
}

/* Mobile: przewijanie strony przez mapę; zoom tylko +/- (Leaflet ma dragging/touchZoom wyłączone w JS) */
@media (max-width: 860px) {
  .custom-location-map.leaflet-container {
    touch-action: pan-y;
  }
}

.custom-pin {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
}

.custom-pin .pin-icon {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
}

.custom-pin .pin-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.pin-udogodnienia {
  background: linear-gradient(155deg, #9a8a68 0%, #7c7057 100%);
}

.pin-atrakcje {
  background: linear-gradient(155deg, #2f333a 0%, #1f232b 100%);
}

.leaflet-popup-content-wrapper {
  border-radius: 10px;
}

.leaflet-popup-content {
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 3.25rem);
  }

  .footer-col--developer {
    padding-left: clamp(1.75rem, 3vw, 2.5rem);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.footer-heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-sand);
}

.footer-text {
  margin: 0 0 1.05rem;
  max-width: 36ch;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(249, 249, 249, 0.72);
}

.footer-phone {
  display: block;
  margin: 0 0 1.3rem;
  font-size: clamp(1.12rem, 2vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-off-white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-phone:hover {
  color: var(--color-sand);
}

.footer-email {
  display: inline-block;
  margin: -0.6rem 0 1.3rem;
  color: rgba(249, 249, 249, 0.82);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(229, 224, 213, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-email:hover {
  color: var(--color-sand);
  border-bottom-color: rgba(229, 224, 213, 0.55);
}

.footer-address {
  margin: 0 0 1.4rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.footer-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: rgba(229, 224, 213, 0.45);
}

.footer-link {
  color: var(--color-sand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(229, 224, 213, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-link:hover {
  color: #f2efe8;
  border-bottom-color: rgba(229, 224, 213, 0.55);
}

.footer-prospect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.4rem;
  border-radius: 999px;
  background: var(--color-taupe);
  color: var(--color-off-white);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-prospect-btn:hover {
  background: #766b54;
  transform: translateY(-1px);
}

.footer-subheading {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: rgba(229, 224, 213, 0.45);
}

.footer-company {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-off-white);
}

.footer-detail {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(249, 249, 249, 0.76);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-privacy {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(249, 249, 249, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-privacy:hover {
  color: var(--color-sand);
}

.footer-credit {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(249, 249, 249, 0.42);
}

.footer-credit a {
  color: rgba(249, 249, 249, 0.68);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--color-sand);
}

@media (max-width: 639px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .footer-prospect-btn {
    width: 100%;
  }
}

.error-404-body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(2rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(2rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
  background: linear-gradient(165deg, #f3f1ec 0%, var(--color-off-white) 45%, #e8e4db 100%);
}

.error-404 {
  width: min(520px, 100%);
  text-align: center;
  color: var(--color-anthracite);
}

.error-404-logo {
  display: inline-flex;
  margin-bottom: 1.75rem;
}

.error-404-logo img {
  width: min(160px, 55vw);
  height: auto;
  display: block;
}

.error-404-code {
  margin: 0 0 0.35rem;
  font-size: clamp(3.5rem, 14vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-taupe);
  opacity: 0.9;
}

.error-404 h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
}

.error-404-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(44, 46, 49, 0.78);
}

.error-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.error-404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.error-404-btn--primary {
  background: var(--color-taupe);
  color: var(--color-off-white);
}

.error-404-btn--primary:hover {
  background: #766b54;
  transform: translateY(-2px);
}

.error-404-btn--ghost {
  border: 1px solid rgba(44, 46, 49, 0.22);
  color: var(--color-anthracite);
  background: rgba(255, 255, 255, 0.65);
}

.error-404-btn--ghost:hover {
  border-color: var(--color-taupe);
  color: var(--color-taupe);
  transform: translateY(-2px);
}

/* Cookiebot — dodatkowy odstęp nad home indicator na iPhone */
#CybotCookiebotDialog {
  padding-bottom: env(safe-area-inset-bottom, 0px) !important;
}

/* Podstrona polityki prywatności */
.legal-header {
  background: #fff;
  border-bottom: 1px solid rgba(44, 46, 49, 0.1);
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-bottom: 1rem;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
}

.legal-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

.legal-back {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-taupe);
  text-decoration: none;
}

.legal-back:hover {
  color: #6b614c;
  text-decoration: underline;
}

.legal-logo img {
  height: 38px;
  width: auto;
  max-width: min(175px, 48vw);
  display: block;
  filter: brightness(0) saturate(100%);
  opacity: 0.88;
}

.legal-main {
  min-height: 40vh;
}

.legal-article {
  max-width: 760px;
  margin: 0 auto;
}

.legal-article h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.35rem, 3.4vw, 1.9rem);
  line-height: 1.22;
  font-weight: 800;
  color: var(--color-anthracite);
  letter-spacing: -0.02em;
}

.legal-site-url {
  margin: 0 0 2rem;
  font-size: 1rem;
}

.legal-site-url a {
  color: var(--color-taupe);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 127, 99, 0.35);
}

.legal-site-url a:hover {
  color: #6b614c;
}

.legal-article h2 {
  margin: 2.1rem 0 0.65rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-anthracite);
}

.legal-article h2:first-of-type {
  margin-top: 0;
}

.legal-article p,
.legal-article li {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.72;
  color: rgba(44, 46, 49, 0.92);
}

.legal-article p {
  margin: 0 0 1rem;
}

.legal-article ul,
.legal-article ol {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
}

.legal-article li {
  margin-bottom: 0.45rem;
}

.legal-article li:last-child {
  margin-bottom: 0;
}

.legal-list--definitions {
  list-style-position: outside;
  padding-left: 1.5rem;
}

.legal-list--definitions li {
  margin-bottom: 0.65rem;
}

.legal-article a {
  color: var(--color-taupe);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 127, 99, 0.3);
}

.legal-article a:hover {
  color: #6b614c;
}

.footer-privacy[aria-current="page"] {
  color: var(--color-sand);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
