:root {
  --ink: #232725;
  --graphite: #303533;
  --muted: #737a75;
  --paper: #fbfaf7;
  --sand: #eee5d8;
  --sand-2: #f6f0e7;
  --green: #173f34;
  --green-soft: #e3ece7;
  --gold: #b8925e;
  --clay: #bd7452;
  --line: rgba(35, 39, 37, 0.12);
  --panel: rgba(255, 255, 255, 0.84);
  --shadow: 0 28px 80px rgba(35, 39, 37, 0.13);
  --radius: 8px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

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

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

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 18px;
  left: 50%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(1240px, calc(100% - 48px));
  min-height: 70px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 60px rgba(35, 39, 37, 0.08);
  color: var(--ink);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 56px rgba(35, 39, 37, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 360px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  line-height: 1.05;
}

.brand small {
  max-width: 350px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 26px);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 720;
}

.nav a,
.phone {
  opacity: 0.82;
  transition: opacity 160ms ease;
}

.nav a:hover,
.phone:hover {
  opacity: 1;
}

.phone {
  min-width: 156px;
  color: var(--green);
  font-size: 15px;
  font-weight: 820;
  text-align: right;
}

.hero-premium {
  position: relative;
  overflow: hidden;
  padding: 118px 0 64px;
  background:
    linear-gradient(115deg, #fbfaf7 0 48%, rgba(238, 229, 216, 0.7) 48% 100%),
    var(--paper);
}

.hero-premium::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(520px, 1.14fr);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
}

.hero-copy {
  padding: 36px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--graphite);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(60px, 7vw, 96px);
  font-weight: 900;
  overflow-wrap: normal;
  word-break: keep-all;
}

h2 {
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 850;
}

h3 {
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 820;
}

.lead {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(23px, 2.4vw, 33px);
  line-height: 1.2;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-pills span,
.feature-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--graphite);
  font-size: 14px;
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 820;
  line-height: 1.05;
  text-align: center;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 18px 42px rgba(23, 63, 52, 0.22);
}

.button.primary:hover {
  background: #0f3027;
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--green);
}

.button.outline {
  min-height: 46px;
  border-color: rgba(23, 63, 52, 0.25);
  background: #fff;
  color: var(--green);
}

.wide {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 44px 0 0;
}

.hero-metrics div {
  min-height: 118px;
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}

.hero-metrics dt {
  color: var(--green);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics dd {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

.hero-visual {
  position: relative;
  min-height: 590px;
}

.hero-visual img {
  width: 100%;
  height: 590px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.catalog-mock {
  position: absolute;
  right: clamp(12px, 4vw, 56px);
  bottom: -34px;
  width: min(320px, 72%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(246, 240, 231, 0.92)),
    #fff;
  box-shadow: 0 34px 80px rgba(35, 39, 37, 0.18);
  transform: rotate(-3deg);
}

.catalog-label,
.catalog-mock small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.catalog-mock strong {
  display: block;
  margin-top: 18px;
  color: var(--green);
  font-size: 36px;
  line-height: 1;
}

.catalog-mock small {
  margin-top: 9px;
  letter-spacing: 0;
  text-transform: none;
}

.catalog-lines {
  display: grid;
  gap: 8px;
  margin: 26px 0 24px;
}

.catalog-lines span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--sand);
}

.catalog-lines span:nth-child(2) {
  width: 76%;
}

.catalog-lines span:nth-child(3) {
  width: 54%;
}

.presentation-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius);
  background: var(--clay);
  box-shadow: 0 18px 34px rgba(189, 116, 82, 0.26);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-align: center;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.presentation-trigger:hover {
  background: var(--green);
  box-shadow: 0 20px 42px rgba(23, 63, 52, 0.24);
  transform: translateY(-2px);
}

.section {
  padding: clamp(84px, 9vw, 132px) 0;
}

.section:nth-of-type(even) {
  background: #fff;
}

.section-head {
  max-width: 840px;
  margin-bottom: 44px;
}

.section-head.wide {
  max-width: 1030px;
}

.section-head.row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.section-note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.gallery-section {
  padding-top: 84px;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1fr;
  grid-auto-rows: 220px;
  gap: 14px;
}

.gallery-mosaic figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}

.gallery-mosaic .xl {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-mosaic .tall {
  grid-row: span 2;
}

.gallery-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.gallery-mosaic figure:hover img {
  transform: scale(1.045);
}

.gallery-mosaic figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--graphite);
  font-size: 13px;
  font-weight: 820;
  backdrop-filter: blur(12px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.about-copy p,
.finish-copy p,
.progress-layout p,
.quiz-layout p {
  color: var(--muted);
  font-size: 20px;
}

.about-facts {
  display: grid;
  gap: 14px;
}

.about-facts article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 6px 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.about-facts span {
  grid-row: span 2;
  color: var(--gold);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.about-facts strong {
  color: var(--graphite);
  font-size: 26px;
  line-height: 1.1;
}

.about-facts p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.segmented button {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.segmented button.active {
  background: var(--green);
  color: #fff;
}

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

.flat-card {
  position: relative;
  display: grid;
  grid-template-rows: 300px 1fr;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
}

.flat-card:hover {
  box-shadow: 0 28px 70px rgba(35, 39, 37, 0.12);
  transform: translateY(-4px);
}

.flat-card.hidden-card {
  display: none;
}

.flat-card > img {
  width: 100%;
  height: 300px;
  padding: 22px;
  object-fit: contain;
  background: #eef0ed;
}

.status {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.status.warm {
  background: var(--clay);
}

.status.dark {
  background: var(--graphite);
}

.flat-info {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.flat-info p {
  margin: 0;
  color: var(--muted);
  font-weight: 820;
}

.flat-info h3 {
  font-size: 34px;
}

.flat-info dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.flat-info dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.flat-info dt,
.flat-info dd {
  margin: 0;
}

.flat-info dt {
  color: var(--muted);
}

.flat-info dd {
  color: var(--green);
  font-weight: 850;
  text-align: right;
}

.flat-info .button {
  align-self: end;
  justify-self: start;
  margin-top: 2px;
}

.catalog-cta,
.price-form,
.calculator,
.quiz-card,
.progress-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.catalog-cta {
  display: grid;
  grid-template-columns: 190px minmax(0, 0.9fr) minmax(300px, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  padding: 30px;
  border: 0;
  background:
    linear-gradient(125deg, rgba(23, 63, 52, 0.98), rgba(31, 83, 68, 0.96) 60%, rgba(184, 146, 94, 0.9)),
    var(--green);
  color: #fff;
  box-shadow: 0 34px 90px rgba(23, 63, 52, 0.24);
}

.catalog-cover {
  position: relative;
  display: grid;
  min-height: 250px;
  align-content: start;
  padding: 16px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(9, 25, 21, 0.04), rgba(9, 25, 21, 0.18)),
    url("assets/hero-chuvstva.png") center / cover;
  color: #fff;
  box-shadow: 12px 18px 40px rgba(0, 0, 0, 0.16);
  transform: rotate(-2deg);
}

.catalog-cover span {
  justify-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(23, 63, 52, 0.72);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.catalog-cta h3,
.catalog-cta p {
  margin: 0;
}

.catalog-cta h3 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.02;
}

.catalog-cta .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.catalog-cta p:not(.eyebrow) {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.76);
}

.lead-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.catalog-cta input,
.catalog-cta select {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.96);
}

.catalog-cta .button.primary {
  background: #fff;
  color: var(--green);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
}

input,
select {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(35, 39, 37, 0.16);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: 0;
}

input:not([type="range"]),
select {
  padding: 0 15px;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(23, 63, 52, 0.11);
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 820;
}

.finish-layout,
.mortgage-layout,
.progress-layout,
.quiz-layout,
.masterplan-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(34px, 7vw, 86px);
  align-items: center;
}

.finish-image {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.finish-image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 32px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--graphite);
  font-size: 18px;
  font-weight: 740;
}

.check-list li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 14px;
  height: 2px;
  background: var(--gold);
  content: "";
}

.masterplan {
  background: var(--sand-2);
}

.masterplan-layout {
  align-items: start;
}

.masterplan-image {
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 37, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.masterplan-image img {
  width: 100%;
  height: auto;
}

.masterplan-canvas {
  position: relative;
  min-height: 610px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(35, 39, 37, 0.1);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 26% 76%, rgba(23, 63, 52, 0.12) 0 13%, transparent 14%),
    radial-gradient(circle at 75% 27%, rgba(184, 146, 94, 0.17) 0 12%, transparent 13%),
    #fffdf9;
}

.masterplan-canvas::before {
  position: absolute;
  z-index: 2;
  inset: 12%;
  border: 2px dashed rgba(23, 63, 52, 0.18);
  border-radius: 44% 56% 48% 52%;
  content: "";
}

.masterplan-canvas::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 74% 26%, rgba(184, 146, 94, 0.14), transparent 15%),
    radial-gradient(circle at 28% 75%, rgba(23, 63, 52, 0.1), transparent 16%);
  content: "";
  pointer-events: none;
}

.plan-road {
  position: absolute;
  z-index: 1;
  height: 26px;
  border-radius: 999px;
  opacity: 0.72;
  transform-origin: center;
}

.road-a {
  top: 51%;
  left: -18%;
  width: 136%;
  background: rgba(184, 146, 94, 0.22);
  transform: rotate(39deg);
}

.road-b {
  top: 39%;
  left: -12%;
  width: 108%;
  background: rgba(23, 63, 52, 0.14);
  transform: rotate(121deg);
}

.road-c {
  right: -16%;
  bottom: 10%;
  width: 78%;
  background: rgba(35, 39, 37, 0.08);
  transform: rotate(-9deg);
}

.building {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 154px;
  height: 92px;
  border: 0;
  border-radius: var(--radius);
  background: var(--green);
  box-shadow: 0 22px 44px rgba(23, 63, 52, 0.18);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.15;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.building:hover {
  box-shadow: 0 28px 58px rgba(23, 63, 52, 0.24);
  transform: translateY(-4px) rotate(var(--r, 0deg));
}

.building span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 760;
}

.b1 { top: 14%; left: 12%; --r: -6deg; transform: rotate(-6deg); }
.b2 { top: 15%; right: 16%; --r: 7deg; transform: rotate(7deg); }
.b3 { top: 42%; left: 34%; --r: -2deg; transform: rotate(-2deg); }
.b4 { bottom: 18%; left: 12%; --r: 6deg; transform: rotate(6deg); }
.b5 { right: 12%; bottom: 16%; --r: -7deg; transform: rotate(-7deg); }
.b6 { right: 34%; bottom: 5%; --r: 2deg; transform: rotate(2deg); }

.plan-object {
  position: absolute;
  z-index: 4;
  padding: 9px 12px;
  border: 1px solid rgba(35, 39, 37, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--graphite);
  box-shadow: 0 16px 34px rgba(35, 39, 37, 0.08);
  font-size: 13px;
  font-weight: 820;
}

.playground { left: 42%; top: 27%; }
.commerce { right: 6%; top: 44%; }
.parking { left: 8%; bottom: 8%; }
.alley { left: 38%; bottom: 35%; background: var(--green-soft); }

.price-form,
.calculator,
.quiz-card,
.progress-card {
  padding: 28px;
}

.price-form h3,
.calculator h3 {
  margin-bottom: 22px;
}

.price-form label + label,
.price-form label + button {
  margin-top: 16px;
}

.advantage-story {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  grid-auto-rows: minmax(260px, auto);
  gap: 16px;
}

.advantage-story article {
  display: grid;
  align-content: end;
  padding: 28px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.advantage-story figure {
  grid-row: span 2;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.advantage-story img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.big-number {
  color: var(--gold);
  font-size: clamp(70px, 8vw, 124px);
  font-weight: 930;
  line-height: 0.86;
}

.advantage-story h3 {
  margin-top: 18px;
}

.advantage-story p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.purchase-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.purchase-list article {
  min-height: 124px;
  padding: 20px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
}

.purchase-list strong,
.purchase-list span {
  display: block;
}

.purchase-list strong {
  color: var(--graphite);
  font-size: 20px;
}

.purchase-list span {
  margin-top: 8px;
  color: var(--muted);
}

.calculator label + label {
  margin-top: 20px;
}

.calculator input[type="range"] {
  height: 36px;
  accent-color: var(--green);
}

.calculator output {
  display: flex;
  justify-content: flex-end;
  margin-top: -32px;
  color: var(--green);
  font-weight: 900;
}

.calc-result {
  margin: 26px 0 16px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
}

.calc-result span,
.calc-result small,
.calc-result strong {
  display: block;
}

.calc-result span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.calc-result strong {
  margin-top: 6px;
  color: #fff;
  font-size: 44px;
  line-height: 1;
}

.calc-result small {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.calc-phone {
  margin-bottom: 12px;
}

.location-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 18px;
}

.map-card {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand);
}

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

.map-fallback {
  position: absolute;
  left: 22px;
  bottom: 22px;
  pointer-events: none;
}

.map-fallback span {
  display: inline-flex;
  padding: 12px 15px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 18px 36px rgba(23, 63, 52, 0.18);
  color: #fff;
  font-weight: 900;
}

.district-panel {
  display: grid;
  gap: 16px;
}

.district-panel img {
  width: 100%;
  height: 260px;
  border-radius: var(--radius);
  object-fit: cover;
}

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

.district-list article {
  min-height: 130px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.district-list strong {
  display: block;
  color: var(--green);
  font-size: 28px;
}

.district-list span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.progress-layout {
  align-items: start;
}

.progress-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.progress-top strong {
  color: var(--graphite);
  font-size: 22px;
}

.progress-top span {
  color: var(--green);
  font-size: 54px;
  font-weight: 930;
  line-height: 0.9;
}

.progress-bar {
  height: 14px;
  margin: 22px 0 30px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-soft);
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline article {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.timeline strong {
  color: var(--graphite);
}

.timeline span {
  color: var(--muted);
  text-align: right;
}

.timeline .done strong::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
  vertical-align: middle;
}

.quiz-card {
  box-shadow: var(--shadow);
}

.quiz-progress {
  height: 8px;
  margin-bottom: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--green-soft);
}

.quiz-progress span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step.active {
  display: grid;
  gap: 12px;
}

.quiz-step legend {
  margin-bottom: 16px;
  color: var(--graphite);
  font-size: 28px;
  font-weight: 850;
  line-height: 1.08;
}

.quiz-step label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 760;
}

.quiz-step input[type="radio"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.quiz-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.hidden {
  display: none !important;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--graphite);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 20px;
}

.footer strong,
.footer span {
  display: block;
}

.footer span {
  margin-top: 5px;
  color: var(--muted);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 22px;
  bottom: 22px;
  width: min(380px, calc(100% - 44px));
  padding: 17px 18px;
  border-radius: var(--radius);
  background: var(--green);
  color: #fff;
  box-shadow: 0 22px 60px rgba(35, 39, 37, 0.24);
  font-weight: 780;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.presentation-modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.presentation-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 18, 0.68);
  backdrop-filter: blur(12px);
}

.presentation-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(300px, 1fr);
  gap: 26px;
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.34);
  transform: translateY(22px) scale(0.98);
  transition: transform 220ms ease;
}

.presentation-modal.is-open .presentation-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(35, 39, 37, 0.16);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.modal-close span {
  grid-area: 1 / 1;
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.modal-close span:first-child {
  transform: rotate(45deg);
}

.modal-close span:last-child {
  transform: rotate(-45deg);
}

.presentation-preview {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand-2);
}

.presentation-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.presentation-cover {
  position: absolute;
  right: 24px;
  bottom: 22px;
  width: min(280px, calc(100% - 48px));
  padding: 22px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 56px rgba(35, 39, 37, 0.22);
  transform: rotate(-3deg);
}

.presentation-cover span,
.presentation-cover small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.presentation-cover strong {
  display: block;
  margin: 16px 0 8px;
  color: var(--green);
  font-size: 30px;
  line-height: 0.98;
}

.presentation-cover small {
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.modal-form {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 20px 14px 8px 0;
}

.modal-form h2 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 0.98;
}

.modal-form p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.modal-form .eyebrow {
  margin: 0;
}

.modal-form input {
  min-height: 62px;
  margin-top: 10px;
  border: 2px solid var(--green);
  font-size: 20px;
}

.modal-form .button {
  min-height: 62px;
  font-size: 18px;
}

body.modal-open {
  overflow: hidden;
}

[data-reveal] {
  opacity: 1;
  transform: none;
  transition:
    opacity 650ms ease,
    transform 650ms ease;
}

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav {
    display: none;
  }

  .hero-shell,
  .about-layout,
  .finish-layout,
  .mortgage-layout,
  .progress-layout,
  .quiz-layout,
  .masterplan-layout,
  .location-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-visual {
    min-height: auto;
  }

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

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

  .catalog-cta {
    grid-template-columns: 180px 1fr;
  }

  .lead-fields,
  .catalog-cta button {
    grid-column: 1 / -1;
  }

  .advantage-story {
    grid-template-columns: 1fr 1fr;
  }

  .advantage-story figure {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 28px, 1240px);
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 60px;
    gap: 10px;
    padding: 7px 8px;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand small {
    display: block;
    max-width: 190px;
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .phone {
    min-width: 0;
    font-size: 12px;
  }

  .hero-premium {
    padding: 90px 0 46px;
  }

  h1 {
    font-size: clamp(48px, 14vw, 64px);
  }

  h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .lead {
    margin-top: 18px;
    font-size: 20px;
  }

  .hero-pills {
    gap: 8px;
    margin-top: 24px;
  }

  .hero-pills span,
  .feature-strip span {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

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

  .button {
    min-height: 48px;
    padding: 0 17px;
  }

  .hero-metrics {
    display: none;
  }

  .hero-visual {
    margin-top: 22px;
    min-height: auto;
  }

  .hero-visual img {
    height: 330px;
  }

  .catalog-mock {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 30px);
    margin: -72px auto 0;
    transform: rotate(-2deg);
  }

  .section {
    padding: 70px 0;
  }

  .section-head.row {
    display: block;
  }

  .section-note,
  .segmented {
    margin-top: 22px;
  }

  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-mosaic .xl,
  .gallery-mosaic .tall {
    grid-column: auto;
    grid-row: auto;
  }

  .about-facts article {
    grid-template-columns: 1fr;
  }

  .about-facts span {
    grid-row: auto;
  }

  .flat-grid,
  .purchase-list,
  .district-list,
  .advantage-story,
  .catalog-cta {
    grid-template-columns: 1fr;
  }

  .flat-card {
    grid-template-rows: 280px 1fr;
    min-height: 0;
  }

  .flat-card > img {
    height: 280px;
    padding: 16px;
  }

  .lead-fields {
    grid-template-columns: 1fr;
  }

  .catalog-cta button {
    width: 100%;
  }

  .catalog-cover {
    min-height: 210px;
    transform: none;
  }

  .catalog-cta {
    padding: 22px;
  }

  .presentation-modal {
    padding: 14px;
  }

  .presentation-dialog {
    grid-template-columns: 1fr;
    gap: 18px;
    max-height: calc(100vh - 28px);
    padding: 18px;
  }

  .presentation-preview {
    min-height: 230px;
  }

  .presentation-cover {
    right: 16px;
    bottom: 14px;
    width: min(230px, calc(100% - 32px));
    padding: 16px;
  }

  .presentation-cover strong {
    font-size: 24px;
  }

  .modal-form {
    padding: 0;
  }

  .modal-form h2 {
    font-size: 32px;
  }

  .modal-form p {
    font-size: 16px;
  }

  .finish-image img {
    height: 430px;
  }

  .masterplan-canvas {
    min-height: 560px;
  }

  .building {
    width: 114px;
    height: 76px;
    font-size: 13px;
  }

  .b1 { left: 7%; }
  .b2 { right: 7%; }
  .b3 { left: 31%; }
  .b4 { left: 6%; }
  .b5 { right: 6%; }
  .b6 { right: 30%; }

  .plan-object {
    font-size: 12px;
  }

  .map-card {
    min-height: 420px;
  }

  .advantage-story img {
    min-height: 340px;
  }

  .quiz-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
