:root {
  --bg: #ffffff;
  --bg-soft: #f1f3e9;
  --surface: #ffffff;
  --text: #53585a;
  --heading: #222629;
  --accent: #647a48;
  --accent-dark: #526440;
  --accent-soft: rgba(100, 122, 72, 0.12);
  --accent-2: #ddb892;
  --accent-2-dark: #c08959;
  --border: rgba(34, 38, 41, 0.1);
  --shadow: 0 24px 60px rgba(21, 26, 31, 0.12);
  --shadow-soft: 0 18px 40px rgba(21, 26, 31, 0.08);
  --container: min(1440px, calc(100vw - 48px));
  --radius: 0;
  --header-height: 76px;
  /* Sprite icons draw in a 24px box; stroke thins as the box scales up. */
  --icon-stroke: 1.9;
}

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

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--accent);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 999;
  padding: 12px 24px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 8px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

body.admin-bar .site-header {
  top: 32px;
}

body.modal-open {
  overflow: hidden;
}

a {
  text-decoration: none;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

/* Outline icons: geometry lives in scbly_get_icon_shapes(), weight lives here.
   Every later `<wrapper> svg` rule matches this specificity, so it wins on order. */
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--icon-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-shell {
  position: relative;
  overflow: clip;
}

.screen-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(17, 20, 24, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.screen-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 14px 0;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    padding 0.35s ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 35px rgba(20, 24, 28, 0.08);
  padding: 10px 0;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 154px;
  height: 43px;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 154px;
  height: auto;
  transition: opacity 0.25s ease;
}

.brand-logo-color {
  opacity: 0;
}

.site-header.is-solid .brand-logo-light {
  opacity: 0;
}

.site-header.is-solid .brand-logo-color {
  opacity: 1;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .menu-item {
  list-style: none;
}

.main-nav a {
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a:active {
  text-decoration: none;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.is-active::after,
.main-nav .current-menu-item > a::after,
.main-nav .current_page_item > a::after,
.main-nav .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.site-header.is-solid .main-nav a {
  color: var(--heading);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.hero-arrow {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.hero-arrow:hover {
  color: var(--accent-2);
}

.site-header.is-solid .main-nav a:hover,
.site-header.is-solid .main-nav a:focus {
  color: var(--accent);
}

/* The only action left in the header, so it carries the brand green in both
   header states rather than dimming into the bar once it turns solid. */
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.header-phone__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.header-phone__number {
  font-variant-numeric: tabular-nums;
}

.site-header .header-phone:hover,
.site-header.is-solid .header-phone,
.site-header.is-solid .header-phone:hover {
  color: #fff;
}

.site-header .header-phone:hover {
  background: var(--accent-dark);
}

.site-header .header-phone:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(100, 122, 72, 0.35);
}

.site-header .brand:hover,
.site-header .brand:focus,
.site-header .brand:active,
.site-header .header-phone:hover,
.site-header .header-phone:focus,
.site-header .header-phone:active {
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-header.is-solid .menu-toggle {
  border-color: rgba(34, 38, 41, 0.12);
  background: var(--accent-soft);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  color: #fff;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.site-header.is-solid .menu-toggle span {
  color: var(--heading);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100dvh;
  background: #0f151a;
}

.hero-slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img,
.video-section > img,
.map-canvas > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay,
.video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 21, 26, 0.62), rgba(15, 21, 26, 0.3)),
    linear-gradient(180deg, rgba(15, 21, 26, 0.18), rgba(15, 21, 26, 0.42));
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 128px 0 96px;
}

.hero-copy-left {
  align-items: flex-start;
  text-align: left;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero h1,
.video-copy h2,
.section-title,
.tab-copy h3,
.standard-group h3,
.modal-card h2,
.news-card h3,
.amenity-card h3,
.testimonial-person strong {
  margin: 0;
  color: var(--heading);
  font-family: "Spectral", serif;
  font-weight: 300;
}

.hero h1,
.video-copy h2 {
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.75rem, 6vw, 4.65rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-copy p:not(.eyebrow) {
  margin: 0;
  max-width: 720px;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.hero-actions {
  margin-top: 40px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.18s ease,
    box-shadow 0.25s ease;
}

.button:hover,
.button:focus,
.button:active {
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--accent-2);
  color: #fff;
  border-color: var(--accent-2);
}

.button-primary:hover {
  background: var(--accent-2-dark);
  color: #fff;
  border-color: var(--accent-2-dark);
}

.button-primary:focus-visible {
  background: var(--accent-2-dark);
  color: #fff;
  border-color: var(--accent-2-dark);
  box-shadow: 0 0 0 3px rgba(221, 184, 146, 0.35);
}

.button-block {
  width: 100%;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
}

.hero-arrow svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

.hero-arrow-prev {
  left: 0;
}

.hero-arrow-prev svg {
  transform: rotate(90deg);
}

.hero-arrow-next {
  right: 0;
}

.hero-arrow-next svg {
  transform: rotate(-90deg);
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 2;
  display: flex;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
}

.section {
  padding: 120px 0;
}

.section-soft {
  background: var(--bg-soft);
}

.page-main {
  padding-top: 0;
}

.page-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding-top: 200px;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 21, 26, 0.66), rgba(15, 21, 26, 0.32)),
    linear-gradient(180deg, rgba(15, 21, 26, 0.18), rgba(15, 21, 26, 0.46));
}

.page-hero-copy {
  position: relative;
  z-index: 1;
  padding: 90px 0 70px;
}

.page-hero-copy h1 {
  margin: 0 0 14px;
  color: #fff;
  font-family: "Spectral", serif;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1.1;
  font-weight: 300;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumbs span:last-child {
  color: var(--accent-2);
}

.section-heading {
  margin-bottom: 54px;
  text-align: center;
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3.125rem);
  line-height: 1.2;
}

.section-media {
  margin-bottom: 42px;
}

.section-media img {
  width: 100%;
  min-height: 420px;
  max-height: 540px;
  object-fit: cover;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  align-items: center;
  gap: 72px;
}

.split-layout.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
}

.frame-image {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.frame-image::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 130px;
  height: 130px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  z-index: 1;
}

.frame-image img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
}

.split-copy {
  max-width: 540px;
}

.section-intro {
  margin: 26px 0 28px;
  font-size: 17px;
}

.muted-copy {
  color: rgba(83, 88, 90, 0.88);
}

.property-list,
.tab-copy ul,
.footer-list {
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}

.property-list li,
.tab-copy li,
.footer-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.property-list strong {
  color: var(--heading);
}

.stats-row,
.services-grid,
.team-grid,
.contact-grid,
.apartment-grid,
.feature-grid,
.gallery-masonry {
  display: grid;
  gap: 28px;
}

.stats-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card {
  padding: 30px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
  font-family: "Spectral", serif;
  font-size: 48px;
  line-height: 1;
}

.stat-card span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

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

.service-card {
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.service-card .amenity-icon {
  margin-bottom: 20px;
}

.service-card h3,
.team-card h3,
.apartment-card h3,
.contact-form-panel h3,
.feature-card h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: "Spectral", serif;
  font-size: 30px;
  line-height: 1.2;
}

/* Match the light Spectral weight used by section titles. */
.feature-card h3 {
  font-weight: 300;
}

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

.team-card {
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.team-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-card-body {
  padding: 26px;
}

.team-card p,
.service-card p,
.apartment-card p,
.feature-card p {
  margin: 0;
}

.team-role {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --- Contact band ---
   Jedyna pełnokolorowa sekcja strony: zieleń marki między jasnym FAQ
   a ciemniejszą stopką, więc strona domyka się coraz głębszym tonem. */
.contact-band {
  background: #414e2d;
}

.contact-band .eyebrow {
  color: var(--accent-2);
}

.contact-band .section-title {
  color: #fff;
}

.contact-lead {
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 44px 96px;
  align-items: start;
}

.contact-copy {
  max-width: 560px;
}

.contact-channels {
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.contact-channels li {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-channels li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-channel-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-channel-value {
  color: #fff;
  font-family: "Spectral", serif;
  font-weight: 300;
  font-size: clamp(1.5rem, 2.4vw, 2.125rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.contact-channel-value:hover {
  color: var(--accent-2);
}

.contact-channel-value:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.contact-channel-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.contact-form-panel {
  padding: 48px 46px;
  background: #fff;
}

.contact-form-panel .muted-copy {
  margin: 0 0 26px;
}

.feature-card {
  padding: 34px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.feature-list,
.inline-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.inline-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-list-marker {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-list-marker svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.feature-list-text {
  flex: 1;
}

.form-stack {
  display: grid;
  gap: 16px;
}

.form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-stack input,
.form-stack textarea,
.form-stack select {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--heading);
}

.form-stack textarea {
  min-height: 180px;
  padding-top: 16px;
  resize: vertical;
}

.gallery-masonry {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.gallery-masonry .gallery-item {
  height: 520px;
  margin: 0;
}

.gallery-masonry .gallery-item:nth-child(3n + 2) {
  margin-top: 60px;
}

.gallery-masonry .gallery-trigger,
.gallery-masonry img {
  height: 100%;
}

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

.apartment-card {
  background: #fff;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.apartment-card-media {
  position: relative;
  overflow: hidden;
}

.apartment-card-media img {
  width: 100%;
  aspect-ratio: 1.05;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.apartment-card:hover .apartment-card-media img {
  transform: scale(1.03);
}

.apartment-card-body {
  padding: 28px;
}

.apartment-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

/* A lone column would otherwise sit in the left half of the grid. */
.feature-card:only-child {
  grid-column: 1 / -1;
  max-width: 820px;
  margin-inline: auto;
}

/* --- House standard --- */

.standard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 24px 96px;
  align-items: start;
}

/* Lewa kolumna towarzyszy liście stref podczas przewijania. */
.standard-intro {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.standard-intro .section-title {
  margin-bottom: 18px;
}

.standard-intro .muted-copy {
  margin: 0 0 30px;
  max-width: 46ch;
  line-height: 1.7;
}

.standard-note {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(83, 88, 90, 0.8);
}

.standard-group {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid var(--border);
}

.standard-group:last-child {
  border-bottom: 1px solid var(--border);
}

.standard-group-media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 1;
}

.standard-group-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.standard-group:hover .standard-group-media img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .standard-group-media img {
    transition: none;
  }
}

.standard-group-tag {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standard-group h3 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.25;
}

.standard-group-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.standard-group-list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.55;
}

.standard-group-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
}

/* --- Investment intro --- */

.investment-intro {
  position: relative;
  overflow: clip;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #fff 58%,
    var(--bg-soft) 58%,
    var(--bg-soft) 100%
  );
}

.investment-intro__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.investment-intro__copy {
  max-width: 560px;
}

.investment-intro__label {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

.investment-intro__title {
  max-width: 520px;
  font-size: clamp(2.35rem, 4.2vw, 4.2rem);
  line-height: 1.08;
}

.investment-intro__intro {
  margin-top: 26px;
  font-size: 17px;
}

.investment-intro__intro p {
  margin: 0 0 16px;
}

.investment-intro__intro p:last-child {
  margin-bottom: 0;
}

.investment-intro__actions {
  margin-top: 38px;
}

.investment-intro__button {
  min-width: 172px;
}

.investment-intro__media {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(180px, 0.72fr);
  grid-template-rows: 1fr 0.82fr;
  gap: 20px;
  min-height: clamp(560px, 58vw, 760px);
}

.investment-intro__photo {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.investment-intro__photo-core {
  position: relative;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
}

.investment-intro__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.investment-intro__photo:hover img {
  transform: scale(1.025);
}

.investment-intro__photo--primary {
  grid-row: 1 / 3;
  min-height: 100%;
}

.investment-intro__photo--secondary {
  margin-top: -42px;
}

.investment-intro__photo--tertiary {
  align-self: end;
  margin-bottom: 42px;
}

.investment-intro__photo--secondary img {
  object-position: center;
}

.investment-intro__photo--tertiary img {
  object-position: center top;
}

.eyebrow-dark {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.amenity-card,
.testimonial-card,
.news-card,
.tab-panel,
.map-card,
.modal-card {
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.amenity-card {
  padding: 38px 28px;
  text-align: center;
}

.amenity-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.amenity-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.amenity-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* --- Estate perks --- */

.estate-perks__intro {
  max-width: 720px;
  margin: 0 auto 54px;
  font-size: 17px;
  text-align: center;
}

.section-heading + .estate-perks__intro {
  margin-top: -28px;
}

/* One 1px gap over a tinted background draws each divider exactly once, so the
   tiles stay flush on a continuous grid of lines instead of floating apart. */
.estate-perks__grid {
  display: grid;
  grid-template-columns: repeat(var(--perk-columns, 3), minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--border);
  border: 1px solid var(--border);
}

.estate-perks__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-column: span var(--perk-span, 1);
  gap: 18px;
  padding: 56px 32px;
  background: var(--surface);
  text-align: center;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.estate-perks__item:hover {
  background: var(--accent-soft);
}

.estate-perks__icon {
  display: inline-flex;
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stroke is a viewBox unit, so it has to thin out as the 24px box scales up. */
.estate-perks__icon svg {
  width: 44px;
  height: 44px;
  stroke-width: 1.3;
}

.estate-perks__item:hover .estate-perks__icon {
  transform: translateY(-4px);
}

.estate-perks__label {
  margin: 0;
  max-width: 20ch;
  color: var(--heading);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.estate-perks__text {
  margin: 0;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 920px) {
  .estate-perks__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .estate-perks__item {
    grid-column: auto;
    padding: 44px 24px;
  }

  /* An odd tile count would leave the last cell empty, exposing the grid tint. */
  .estate-perks__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .estate-perks__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .estate-perks__item,
  .estate-perks__icon {
    transition: none;
  }

  .estate-perks__item:hover .estate-perks__icon {
    transform: none;
  }
}

/* --- Sales process stepper --- */

.process-intro {
  max-width: 720px;
  margin: 0 auto 54px;
  font-size: 17px;
  text-align: center;
}

/* Tighten only when it actually sits under a heading. */
.section-heading + .process-intro {
  margin-top: -28px;
}

.process-steps {
  --process-marker-size: 76px;
  display: grid;
  grid-template-columns: repeat(var(--process-count, 5), minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  padding: 0 20px;
  text-align: center;
}

/* Connector runs from this marker's centre to the next one; markers sit on top. */
.process-step::before {
  content: "";
  position: absolute;
  top: calc(var(--process-marker-size) / 2);
  left: 50%;
  width: 100%;
  height: 2px;
  background-image: linear-gradient(
    to right,
    color-mix(in srgb, var(--accent) 32%, transparent) 0 10px,
    transparent 10px 18px
  );
  background-size: 18px 2px;
}

.process-step:last-child::before {
  content: none;
}

.process-step-marker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 24px;
}

.process-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--process-marker-size);
  height: var(--process-marker-size);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  transition: transform 0.3s ease;
}

.process-step-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
}

.process-step:hover .process-step-icon {
  transform: translateY(-4px);
}

.process-step-number {
  position: absolute;
  top: -4px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: var(--accent-2);
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.section-soft .process-step-number {
  border-color: var(--bg-soft);
}

.process-step-body h3 {
  margin: 0 0 12px;
  color: var(--heading);
  font-family: "Spectral", serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.process-step-body p {
  margin: 0;
  font-size: 15px;
}

.process-actions {
  margin-top: 60px;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .process-step-icon {
    transition: none;
  }

  .process-step:hover .process-step-icon {
    transform: none;
  }
}

/* Full-bleed like .estate-plan__stage-wrap: no container cap, just side gutters. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding-inline: 24px;
}

.gallery-grid figure {
  margin: 0;
  aspect-ratio: 1;
  max-height: 560px;
  width: 100%;
  object-fit: cover;
}

.gallery-trigger {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
}
.gallery-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(15, 21, 26, 0.18));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-trigger:hover::after,
.gallery-trigger:focus-visible::after {
  opacity: 1;
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
  transform: scale(1.04);
}

.tabs {
  background: #fff;
  padding: 48px;
  box-shadow: var(--shadow);
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 38px;
}

.tab-button {
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid rgba(34, 38, 41, 0.08);
  background: #fff;
  color: var(--heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tab-button.is-active {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.tab-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  padding: 30px;
  box-shadow: none;
}

.tab-panel.is-active {
  display: grid;
}

.tab-copy h3 {
  font-size: 42px;
  margin-bottom: 20px;
}

.tab-copy p {
  margin: 0 0 24px;
}

/* Wykaz pomieszczeń: numeracja odpowiada oznaczeniom na rzucie z karty domu. */
.tab-copy .room-schedule {
  margin: 0;
}

.room-schedule li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 0;
  line-height: 1.5;
}

.room-no {
  flex: none;
  min-width: 26px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.room-name {
  color: var(--heading);
  font-weight: 500;
}

.room-leader {
  flex: 1 1 auto;
  min-width: 24px;
  border-bottom: 1px dotted rgba(34, 38, 41, 0.32);
  transform: translateY(-4px);
}

.room-area {
  flex: none;
  color: var(--heading);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.room-schedule-summary {
  margin-top: 14px;
  padding-top: 16px;
  border-top: 2px solid var(--accent);
}

.room-schedule-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.room-total-label {
  color: var(--heading);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.room-total-value {
  color: var(--heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.room-schedule-house {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  font-size: 14px;
}

.room-schedule-house span:last-child {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tab-copy .room-schedule-note {
  margin: 20px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(83, 88, 90, 0.8);
}

/* Tło panelu = kolor tła zapieczony w renderach 3D (#ddd9d6), więc oba rzuty siedzą w tej samej ramie. */
.tab-image {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ddd9d6;
  padding: 28px;
}

.tab-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-section {
  position: relative;
  min-height: 720px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.video-section > img,
.video-overlay {
  position: absolute;
  inset: 0;
}

.video-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
}

.video-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.2;
  margin-bottom: 24px;
}

.video-copy p {
  max-width: 820px;
  margin: 0 auto 34px;
  font-size: 18px;
}

.video-play {
  display: inline-grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
}

.video-play span {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid #fff;
  margin-left: 4px;
}

.testimonial-grid,
.news-grid,
.footer-grid {
  display: grid;
  gap: 28px;
}

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

.testimonial-card {
  padding: 34px;
}

.quote-mark {
  color: var(--accent);
  font-family: "Lora", serif;
  font-size: 84px;
  line-height: 0.7;
  margin-bottom: 18px;
}

.testimonial-card p {
  margin: 0 0 24px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-person img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
}

.testimonial-person strong {
  display: block;
  font-size: 24px;
}

.testimonial-person span {
  display: block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-section {
  position: relative;
  min-height: 700px;
}

.map-canvas {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: #d9e2e7;
}

.map-card {
  position: absolute;
  width: 190px;
  padding: 14px;
}

.map-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  margin-bottom: 12px;
}

.map-card strong {
  color: var(--heading);
  font-size: 16px;
}

.location-map-section {
  background: linear-gradient(180deg, #f7f9f2 0%, #eef3e5 100%);
}

.location-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: stretch;
  gap: 48px;
}

.location-map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
}

.location-map-kicker {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-address-card {
  margin-top: 28px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(100, 122, 72, 0.18);
  box-shadow: 0 22px 52px rgba(34, 38, 41, 0.08);
}

.location-address-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.location-address-card strong {
  display: block;
  margin-bottom: 24px;
  color: var(--heading);
  font-family: "Spectral", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.18;
}

.location-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  background: var(--accent-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition:
    background-color 260ms cubic-bezier(0.32, 0.72, 0, 1),
    transform 180ms cubic-bezier(0.32, 0.72, 0, 1);
}

.location-map-button:hover,
.location-map-button:focus-visible {
  background: var(--heading);
  color: #fff;
}

.location-map-button:active {
  transform: translateY(1px);
}

.location-map-button:focus-visible {
  outline: 3px solid rgba(100, 122, 72, 0.28);
  outline-offset: 4px;
}

.location-map-shell {
  padding: 8px;
  min-height: 540px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(100, 122, 72, 0.18);
  box-shadow: 0 28px 72px rgba(34, 38, 41, 0.1);
}

.location-map-frame {
  position: relative;
  height: 100%;
  min-height: 524px;
  overflow: hidden;
  background: #dfe6d6;
}

.location-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -16px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
}

.map-card-one {
  top: 18%;
  left: 18%;
}

.map-card-two {
  top: 22%;
  left: 45%;
}

.map-card-three {
  top: 50%;
  left: 12%;
}

.map-card-four {
  top: 54%;
  left: 42%;
}

.map-card-five {
  top: 32%;
  right: 14%;
}

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

.news-media {
  position: relative;
}

.news-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.news-date {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: inline-grid;
  gap: 2px;
  min-width: 72px;
  padding: 12px 14px;
  background: #fff;
  text-align: center;
}

.news-date span {
  color: var(--heading);
  font-family: "Lora", serif;
  font-size: 30px;
  line-height: 1;
}

.news-date small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-card {
  padding-bottom: 28px;
}

.news-card h3,
.news-card p {
  padding: 0 28px;
}

.news-card h3 {
  font-size: 30px;
  line-height: 1.25;
  margin: 24px 0 10px;
}

.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card-link:hover {
  opacity: 0.85;
}

.site-footer {
  background: #2b341d;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr) minmax(
      0,
      1.05fr
    ) minmax(0, 1fr);
  gap: 48px 68px;
  padding: 88px 0 76px;
}

.footer-brand-col {
  max-width: 330px;
}

.footer-brand img {
  width: 170px;
  height: auto;
  margin-bottom: 26px;
}

.footer-title {
  margin: 6px 0 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-list {
  margin-bottom: 0;
}

.footer-list li {
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-bottom a {
  color: #fff;
}

.footer-desc {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
}

.footer-nav-list li {
  border-bottom: none;
  padding: 6px 0;
}

.footer-nav-list a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.25s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-2);
}

.footer-hours {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-hours li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-hours li:first-child {
  padding-top: 2px;
}

.footer-hours li:last-child {
  border-bottom: none;
}

.footer-hours-label {
  color: rgba(255, 255, 255, 0.66);
}

.footer-hours-value {
  color: #fff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.footer-hours-value.accent-text {
  color: var(--accent-2);
}

.footer-contact {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.footer-contact li + li {
  margin-top: 8px;
}

.footer-contact-link {
  color: #fff;
  font-family: "Spectral", serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.footer-contact-link:hover {
  color: var(--accent-2);
}

.footer-contact-link:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.footer-address {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
  line-height: 1.7;
}

.footer-socials {
  margin-top: 30px;
}

.newsletter-form,
.search-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.newsletter-form input,
.visit-form input,
.visit-form textarea,
.search-form input {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--heading);
}

.visit-form textarea {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
}

.newsletter-form button {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 56px;
  background: var(--accent-2);
  color: #fff;
  flex: 0 0 auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  /* Prawy odstęp robi miejsce na pływający przycisk „do góry”,
     który przy dole strony nachodzi na róg paska. */
  padding: 24px 96px 24px 0;
}

.footer-bottom-row p {
  margin: 0;
  font-size: 14px;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.66);
}

.footer-credit {
  color: rgba(255, 255, 255, 0.42);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.socials a:hover,
.socials a:focus-visible {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #fff;
}

.socials .icon {
  width: 17px;
  height: 17px;
}

.accent-text {
  color: var(--accent-2);
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 85;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(34, 38, 41, 0.1);
  background: rgba(255, 255, 255, 0.92);
  color: var(--heading);
  box-shadow: 0 18px 36px rgba(21, 26, 31, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
  backdrop-filter: blur(10px);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #fff;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
  transform: rotate(180deg);
}

/* --- Scroll Reveal --- */

[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children inside grids */
[data-reveal-stagger].is-visible > [data-reveal-child] {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal-child] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal-child]:nth-child(1) {
  transition-delay: 0s;
}
[data-reveal-child]:nth-child(2) {
  transition-delay: 0.08s;
}
[data-reveal-child]:nth-child(3) {
  transition-delay: 0.16s;
}
[data-reveal-child]:nth-child(4) {
  transition-delay: 0.24s;
}
[data-reveal-child]:nth-child(5) {
  transition-delay: 0.32s;
}
[data-reveal-child]:nth-child(6) {
  transition-delay: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-child] {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Disable reveal animations in block editor */
.editor-styles-wrapper [data-reveal],
.editor-styles-wrapper [data-reveal-child] {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  /* Hiding waits for the fade-out; showing is instant, otherwise the dialog is
     still visibility:hidden when it tries to move focus inside itself. */
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.modal-shell.is-visible {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0s;
}

.modal-card {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  padding: 42px;
}

.gallery-modal {
  padding: 0;
  background: rgba(8, 11, 14, 0.96);
}

.gallery-lightbox {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 96px;
  align-items: center;
  gap: 0;
}

.gallery-stage {
  margin: 0;
  height: 100%;
  padding: 40px 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-stage img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.gallery-stage figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gallery-nav {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: transparent;
  color: #fff;
}

.gallery-nav svg {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.gallery-nav-prev svg {
  transform: rotate(90deg);
}

.gallery-nav-next svg {
  transform: rotate(-90deg);
}

.gallery-close {
  top: 20px;
  right: 20px;
  color: #fff;
  z-index: 2;
}

/* The lightbox is near-black; the accent hover would sink into it. */
.gallery-close:hover,
.gallery-close:focus-visible {
  color: var(--accent-2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--heading);
  transition: color 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--accent);
}

.modal-close svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.modal-card h2 {
  font-size: 42px;
  margin-bottom: 28px;
}

/* Names the house the inquiry is about, so the prefilled form field has a
   visible explanation rather than appearing filled in on its own. */
.visit-house {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 48px 20px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--heading);
  font-size: 14px;
}

.visit-house[hidden] {
  display: none;
}

.visit-house__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.visit-house__label {
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visit-house__name {
  font-size: 17px;
  font-weight: 800;
}

.visit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.visit-form label {
  display: grid;
  gap: 8px;
  color: var(--heading);
  font-size: 14px;
  font-weight: 800;
}

.visit-form textarea {
  margin-bottom: 18px;
}

:is(#visit-modal, .contact-form-panel) .fluentform {
  margin: 0;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-el-group {
  margin-bottom: 16px;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-t-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 16px;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-t-cell {
  padding: 0;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-el-input--label {
  margin: 0 0 8px;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-el-input--label label {
  margin: 0;
  color: var(--heading);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

/* Gwiazdka pól wymaganych w zieleni marki zamiast czerwieni wtyczki. */
:is(#visit-modal, .contact-form-panel)
  .fluentform
  .ff-el-is-required
  .ff-el-input--label
  label::after,
:is(#visit-modal, .contact-form-panel)
  .fluentform
  .ff-el-is-required.ff-el-input--label
  label::after {
  color: var(--accent);
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-el-form-control {
  width: 100%;
  min-height: 56px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  color: var(--heading);
  font: inherit;
  box-shadow: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

:is(#visit-modal, .contact-form-panel) .fluentform textarea.ff-el-form-control {
  min-height: 150px;
  padding-top: 16px;
  resize: vertical;
}

:is(#visit-modal, .contact-form-panel)
  .fluentform
  .ff-el-form-control::placeholder {
  color: rgba(83, 88, 90, 0.72);
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-el-form-control:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 122, 72, 0.16);
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff_submit_btn_wrapper {
  margin: 2px 0 0;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 34px;
  border: 1px solid var(--accent-2);
  border-radius: 0;
  background: var(--accent-2);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    transform 0.18s ease,
    box-shadow 0.25s ease;
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-btn-submit:hover,
:is(#visit-modal, .contact-form-panel) .fluentform .ff-btn-submit:focus {
  border-color: var(--accent-2-dark);
  background: var(--accent-2-dark);
  color: #fff;
}

:is(#visit-modal, .contact-form-panel)
  .fluentform
  .ff-btn-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 184, 146, 0.35);
}

:is(#visit-modal, .contact-form-panel) .fluentform .ff-btn-submit:active {
  transform: translateY(1px);
}

:is(#visit-modal, .contact-form-panel)
  .fluentform
  .ff-el-is-error
  .ff-el-form-control {
  border-color: #b94d4d;
}

:is(#visit-modal, .contact-form-panel) .fluentform .error,
:is(#visit-modal, .contact-form-panel)
  .fluentform
  .ff-el-is-error
  .text-danger {
  margin-top: 6px;
  color: #b94d4d;
  font-size: 13px;
  font-weight: 700;
}

.search-form input {
  min-height: 58px;
}

.search-form .button {
  min-width: 140px;
}

@media (max-width: 1180px) {
  .process-steps {
    --process-marker-size: 64px;
  }

  .process-step {
    padding: 0 12px;
  }

  .process-step-body h3 {
    font-size: 21px;
  }

  .process-step-icon svg {
    width: 26px;
    height: 26px;
    stroke-width: 1.7;
  }

  .header-phone {
    gap: 8px;
    padding: 0 14px;
    font-size: 14px;
  }

  .main-nav {
    gap: 24px;
    font-size: 14px;
  }

  .amenities-grid,
  .services-grid,
  .testimonial-grid,
  .news-grid,
  .footer-grid,
  .team-grid,
  .apartment-grid,
  .gallery-masonry,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-masonry .gallery-item:nth-child(3n + 2) {
    margin-top: 0;
  }

  .gallery-masonry .gallery-item:nth-child(even) {
    margin-top: 48px;
  }

  .split-layout,
  .tab-panel,
  .contact-grid,
  .feature-grid,
  .stats-row,
  .location-map-grid,
  .investment-intro__grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 48px;
    padding: 72px 0 60px;
  }

  /* W układzie jednokolumnowym panel z rzutem sam wyznacza swoją wysokość. */
  .tab-image {
    aspect-ratio: 4 / 3;
    padding: 18px;
  }

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

  .standard-intro {
    position: static;
    max-width: 680px;
    margin-bottom: 30px;
  }

  .contact-copy {
    max-width: 680px;
  }

  .contact-channels {
    margin-top: 34px;
  }

  .investment-intro__copy {
    max-width: 680px;
  }

  .investment-intro__media {
    min-height: 620px;
  }

  .location-map-copy {
    max-width: none;
  }

  .location-map-shell,
  .location-map-frame {
    min-height: 420px;
  }

  .frame-image img {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  /* Five steps never divide cleanly into a narrow grid, so the axis turns vertical. */
  .process-steps {
    --process-gap: 36px;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--process-gap);
    max-width: 560px;
    margin: 0 auto;
  }

  .process-step {
    display: grid;
    grid-template-columns: var(--process-marker-size) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 0;
    text-align: left;
  }

  .process-step::before {
    top: var(--process-marker-size);
    left: calc(var(--process-marker-size) / 2);
    width: 2px;
    height: calc(100% + var(--process-gap) - var(--process-marker-size));
    transform: translateX(-50%);
    background-image: linear-gradient(
      to bottom,
      color-mix(in srgb, var(--accent) 32%, transparent) 0 10px,
      transparent 10px 18px
    );
    background-size: 2px 18px;
  }

  .process-step-marker {
    margin-bottom: 0;
  }

  .process-actions {
    margin-top: 48px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }

  .site-header {
    padding: 14px 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 95;
    width: min(380px, 100vw);
    height: 100vh;
    padding: 120px 32px 32px;
    background: #fff;
    color: var(--heading);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }

  .main-nav__list {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .main-nav a,
  .site-header.is-solid .main-nav a {
    color: var(--heading);
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .hero-arrow {
    display: none;
  }

  .hero-copy,
  .hero-copy-left {
    align-items: flex-start;
    text-align: left;
  }

  .hero-copy {
    padding-top: 160px;
  }

  .tabs {
    padding: 28px;
  }

  .map-canvas {
    min-height: 960px;
  }

  .map-card {
    position: static;
    width: min(240px, calc(100vw - 48px));
    margin: 18px auto;
  }

  .map-card::after {
    display: none;
  }

  .map-canvas > img {
    position: absolute;
    inset: 0;
  }

  .map-canvas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 32px 0;
  }
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100vw - 32px, 1000px);
  }

  .back-to-top {
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
  }

  .section,
  .gallery-section {
    padding: 88px 0;
  }

  .contact-form-panel {
    padding: 34px 22px;
  }

  .contact-channels li {
    padding: 18px 0;
  }

  .location-map-section {
    padding: 76px 0;
  }

  .location-address-card {
    padding: 24px;
  }

  .location-map-shell,
  .location-map-frame {
    min-height: 360px;
  }

  .header-tools {
    gap: 10px;
  }

  .brand,
  .brand-logo {
    width: 136px;
  }

  .brand {
    height: 37px;
  }

  .brand-logo {
    height: auto;
  }

  .hero-copy {
    min-height: 84vh;
    padding-bottom: 96px;
  }

  .hero-dots {
    display: none;
  }

  .amenities-grid,
  .testimonial-grid,
  .news-grid,
  .footer-grid,
  .visit-grid,
  .services-grid,
  .team-grid,
  .apartment-grid,
  .feature-grid,
  .gallery-masonry,
  .gallery-grid,
  .form-columns {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 40px;
    padding: 60px 0 48px;
  }

  .footer-hours {
    max-width: 420px;
  }

  .standard-group {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 20px;
    padding: 26px 0;
  }

  .standard-group h3 {
    font-size: 22px;
  }

  .standard-group-list {
    grid-template-columns: 1fr;
  }

  .investment-intro {
    background: #fff;
  }

  .investment-intro__media {
    grid-template-columns: 1fr;
  }

  .investment-intro__media {
    grid-template-rows: none;
    min-height: 0;
    gap: 16px;
  }

  .investment-intro__photo,
  .investment-intro__photo--secondary,
  .investment-intro__photo--tertiary {
    min-height: 260px;
    margin: 0;
  }

  .investment-intro__photo--primary {
    grid-row: auto;
  }

  .investment-intro__photo-core {
    min-height: 260px;
  }

  .gallery-grid {
    padding-inline: 16px;
  }

  .gallery-grid figure {
    aspect-ratio: 4 / 3;
  }

  .gallery-masonry .gallery-item {
    height: 420px;
  }

  .gallery-masonry .gallery-item:nth-child(3n + 2),
  .gallery-masonry .gallery-item:nth-child(even) {
    margin-top: 0;
  }

  .gallery-lightbox {
    grid-template-columns: 1fr;
    height: 100vh;
    gap: 0;
  }

  .gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    transform: translateY(-50%);
    background: rgba(8, 11, 14, 0.72);
  }

  .gallery-nav-prev {
    left: 10px;
  }

  .gallery-nav-next {
    right: 10px;
  }

  .gallery-stage {
    padding: 24px 18px 14px;
  }

  .tab-copy h3,
  .modal-card h2 {
    font-size: 34px;
  }

  .video-section {
    min-height: 600px;
  }

  .video-play {
    width: 82px;
    height: 82px;
  }

  .footer-bottom-row,
  .search-form {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form .button {
    width: 100%;
  }

  .modal-card {
    padding: 32px 22px;
  }

  :is(#visit-modal, .contact-form-panel) .fluentform .ff-t-container {
    grid-template-columns: 1fr;
  }
}

/* --- Estate Plan (interaktywny plan osiedla) --- */
.estate-plan {
  --estate-available: #647a48;
  --estate-reserved: #dda15e;
  --estate-sold: #9a9a9a;
}

.estate-plan__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -24px auto 30px;
}

.estate-plan__filter {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--heading);
  font-size: 14px;
  font-weight: 800;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease;
}

.estate-plan__filter:hover,
.estate-plan__filter:focus-visible,
.estate-plan__filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.estate-plan__filter:active {
  transform: translateY(1px);
}

.estate-plan__stage-wrap {
  margin-top: 16px;
  padding-inline: 24px;
}

/* The overlay is inset:0 against this box, so it may not grow past the image. */
.estate-plan__stage {
  position: relative;
  width: 100%;
}

.estate-plan__stage img {
  display: block;
  width: 100%;
  height: auto;
}

.estate-plan__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.estate-plan__area {
  fill: rgba(255, 255, 255, 0.001);
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease;
  outline: none;
}

.estate-plan__area.is-filtered-out {
  opacity: 0.18;
  pointer-events: none;
}

.estate-plan__area--available:hover,
.estate-plan__area--available:focus-visible,
.estate-plan__area--available.is-active {
  fill: rgba(100, 122, 72, 0.4);
  stroke: var(--estate-available);
}

.estate-plan__area--reserved:hover,
.estate-plan__area--reserved:focus-visible,
.estate-plan__area--reserved.is-active {
  fill: rgba(221, 161, 94, 0.45);
  stroke: var(--estate-reserved);
}

.estate-plan__area--sold {
  stroke-dasharray: 6 4;
}

.estate-plan__area--sold:hover,
.estate-plan__area--sold:focus-visible,
.estate-plan__area--sold.is-active {
  fill: rgba(120, 120, 120, 0.35);
  stroke: var(--estate-sold);
}

.estate-plan__tooltip {
  position: absolute;
  z-index: 5;
  padding: 8px 14px;
  background: rgba(34, 38, 41, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
}

.estate-plan__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.estate-plan__house {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 28px 32px;
  scroll-margin-top: calc(var(--header-height) + 32px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.estate-plan__house[hidden] {
  display: none;
}

.estate-plan__house.is-active {
  border-color: var(--estate-available);
  box-shadow: 0 0 0 2px var(--estate-available);
}

/* Zarezerwowany lub sprzedany: karta cofa sie wizualnie, plakietka statusu
   zostaje jedynym nasyconym elementem. */
.estate-plan__house--unavailable {
  background: var(--bg-soft);
  border-color: rgba(34, 38, 41, 0.06);
}

.estate-plan__house--unavailable.is-active {
  border-color: var(--estate-sold);
  box-shadow: 0 0 0 2px var(--estate-sold);
}

.estate-plan__house--unavailable .estate-plan__name,
.estate-plan__house--unavailable .estate-plan__details strong {
  color: rgba(34, 38, 41, 0.72);
}

.estate-plan__house--unavailable .estate-plan__details li {
  border-bottom-color: rgba(34, 38, 41, 0.07);
}

.estate-plan__house-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.estate-plan__status {
  display: inline-block;
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--estate-available);
}

.estate-plan__status--reserved {
  background: var(--estate-reserved);
}
.estate-plan__status--sold {
  background: var(--estate-sold);
}

.estate-plan__name {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  font-size: 26px;
  color: var(--heading);
}

/* Cena stoi ponad tabelka parametrow: ustawa o jawnosci cen kaze pokazac ja
   w ogloszeniu, wiec nie moze ginac wsrod metrazy. */
.estate-plan__price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.estate-plan__price-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.estate-plan__price-value {
  font-family: "Spectral", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--accent);
}

/* Cena za m² wymagana przez ustawe o jawnosci cen — stoi tuz przy cenie. */
.estate-plan__price-m2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.estate-plan__price--ask .estate-plan__price-value {
  font-size: 18px;
  color: var(--heading);
}

.estate-plan__house--unavailable .estate-plan__price-value {
  color: rgba(34, 38, 41, 0.72);
}

.estate-plan__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 40px;
}

.estate-plan__details li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.2;
}

.estate-plan__details strong {
  color: var(--heading);
  white-space: nowrap;
}

.estate-plan__text {
  font-size: 15px;
  margin: 0;
  max-width: 70ch;
}

.estate-plan__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 4px;
}

.estate-plan__docs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.estate-plan__docs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.estate-plan__docs a:hover {
  color: var(--heading);
}

.estate-plan__docs a:focus-visible,
.estate-plan__filter:focus-visible {
  outline: 3px solid rgba(100, 122, 72, 0.28);
  outline-offset: 3px;
}

svg.estate-plan__doc-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-dark);
  stroke-width: 1.7;
}

.estate-plan__button {
  margin: 0 0 0 auto;
  align-self: center;
}

.estate-plan__legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 24px 0 0;
  padding: 0;
  font-size: 14px;
}

.estate-plan__legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.estate-plan__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--estate-available);
}

.estate-plan__dot--reserved {
  background: var(--estate-reserved);
}
.estate-plan__dot--sold {
  background: var(--estate-sold);
}

@media (max-width: 700px) {
  .estate-plan__stage-wrap {
    padding-inline: 16px;
  }

  .estate-plan__house {
    padding: 24px 14px;
  }

  .estate-plan__details li {
    display: grid;
    gap: 2px;
  }
}

@media (max-width: 680px) {
  /* The header bar runs out of room, so the call action moves to a thumb-reachable corner. */
  .header-phone {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 86;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    box-shadow: 0 18px 36px rgba(21, 26, 31, 0.18);
  }

  .back-to-top {
    bottom: 86px;
  }
}

/* --- FAQ --- */
.faq__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px 96px;
  align-items: start;
}

.faq__rail {
  position: sticky;
  top: calc(var(--header-height) + 48px);
  display: grid;
  gap: 40px;
}

.faq__heading .section-title {
  margin: 0;
  text-align: left;
}

.faq__lead {
  margin: 22px 0 0;
  max-width: 38ch;
}

.faq__aside {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
}

.faq__aside-title {
  margin: 0;
  font-family: "Spectral", Georgia, serif;
  font-size: 22px;
  line-height: 1.3;
  color: var(--heading);
}

.faq__aside-text {
  margin: 12px 0 0;
  font-size: 15px;
}

.faq__aside-button {
  margin-top: 26px;
}

.faq__list {
  min-width: 0;
}

.faq__item {
  border-top: 1px solid var(--border);
}

.faq__item:last-child {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

/* Hide the native disclosure triangle; the marker square replaces it. */
.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq__question-text {
  font-family: "Spectral", Georgia, serif;
  font-weight: 500;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.35;
  color: var(--heading);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.faq__question:hover .faq__question-text {
  color: var(--accent-dark);
}

.faq__item[open] .faq__question-text {
  color: var(--accent-dark);
}

.faq__marker {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease;
}

.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: var(--accent);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__marker::before {
  transform: translate(-50%, -50%);
}

.faq__marker::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__question:hover .faq__marker,
.faq__item[open] .faq__marker {
  border-color: var(--accent);
}

.faq__item[open] .faq__marker {
  background: var(--accent-soft);
}

.faq__item[open] .faq__marker::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.faq__answer {
  display: grid;
  grid-template-rows: 1fr;
}

.faq__list.is-enhanced .faq__answer {
  transition: grid-template-rows 0.36s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__answer-inner {
  min-height: 0;
  overflow: hidden;
}

/* Boundary rule: draws down the answer the way plot lines are drawn on the estate plan. */
.faq__answer-copy {
  position: relative;
  padding: 0 0 34px 28px;
  max-width: 68ch;
}

.faq__answer-copy::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 34px;
  left: 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.faq__item[open] .faq__answer-copy::before {
  transform: scaleY(1);
}

.faq__answer-copy p {
  margin: 0 0 14px;
}

.faq__answer-copy p:last-child {
  margin-bottom: 0;
}

.faq__answer-copy a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__answer-copy a:hover {
  color: var(--heading);
}

@media (prefers-reduced-motion: reduce) {
  .faq__list.is-enhanced .faq__answer,
  .faq__question-text,
  .faq__marker::before,
  .faq__marker::after,
  .faq__answer-copy::before {
    transition: none;
  }

  .faq__item[open] .faq__answer-copy::before {
    transform: none;
  }
}

@media (max-width: 1180px) {
  .faq__layout {
    gap: 40px 64px;
  }
}

@media (max-width: 920px) {
  .faq__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__rail {
    position: static;
  }

  .faq__lead {
    max-width: 60ch;
  }
}

@media (max-width: 680px) {
  .faq__question {
    gap: 20px;
    padding: 22px 0;
  }

  .faq__answer-copy {
    padding: 0 0 28px 20px;
  }

  .faq__answer-copy::before {
    bottom: 28px;
  }

  .faq__aside {
    padding: 26px 22px;
  }
}
