:root {
  --paper: #fbfaf6;
  --cream: #f3eee6;
  --sand: #e7ddcf;
  --ink: #22332b;
  --ink-soft: #536059;
  --green: #344c40;
  --green-deep: #24382f;
  --sage: #a8b0a3;
  --terra: #963f29;
  --terra-dark: #7f321f;
  --line: #dedbd3;
  --white: #fff;
  --shadow: 0 20px 60px rgb(39 49 43 / 9%);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

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

.shell {
  width: min(100% - 64px, 1380px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: none;
}

:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgb(251 250 246 / 92%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 26px rgb(40 50 44 / 5%);
}

.site-header__inner {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand__mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  border: 2px solid var(--terra);
  border-radius: 4px 4px 15px;
  transform: rotate(45deg);
}

.brand__mark i {
  width: 5px;
  border-radius: 5px 5px 0 0;
  background: var(--green);
  transform: rotate(-45deg) translate(5px, 1px);
}

.brand__mark i:first-child {
  height: 13px;
}

.brand__mark i:nth-child(2) {
  height: 21px;
}

.brand__mark i:last-child {
  height: 29px;
}

.brand__copy {
  display: grid;
  line-height: 1;
}

.brand__copy strong {
  font-size: 14px;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.brand__copy small {
  margin-top: 7px;
  color: var(--terra);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  gap: clamp(17px, 1.7vw, 30px);
  margin-left: auto;
}

.desktop-nav a {
  position: relative;
  padding: 8px 0;
  font-size: 12px;
  font-weight: 650;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--terra);
  opacity: 0;
  transform: scaleX(0.6);
  transition:
    opacity 160ms ease,
    transform 160ms var(--ease-out);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--terra);
}

.header-contact small {
  max-width: 74px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.2;
}

.favorite-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.favorite-link svg {
  width: 18px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 1.5;
}

.button {
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 750;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--ease-out),
    box-shadow 160ms ease;
}

.button:active,
.heart-button:active,
.card-arrow:active {
  transform: scale(0.97);
}

.button--small {
  min-height: 44px;
  padding-inline: 18px;
  font-size: 11px;
}

.button--terracotta {
  background: var(--terra);
  color: var(--white);
  box-shadow: 0 10px 26px rgb(201 111 82 / 22%);
}

.button--cream {
  background: var(--cream);
  color: var(--green-deep);
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.menu-toggle i {
  width: 18px;
  height: 1px;
  display: block;
  background: currentcolor;
  transition: transform 180ms var(--ease-out);
}

.menu-toggle[aria-expanded='true'] i:first-of-type {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] i:last-of-type {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-menu {
  position: absolute;
  z-index: 40;
  inset: 100% 0 auto;
  height: calc(100dvh - 86px);
  overflow-y: auto;
  background: var(--paper);
}

.mobile-menu__inner {
  width: min(100% - 40px, 600px);
  margin-inline: auto;
  padding: 32px 0;
}

.mobile-menu__inner > a:not(.button) {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 22px;
  letter-spacing: -0.03em;
}

.mobile-menu__inner > a span {
  color: var(--terra);
  font-size: 10px;
}

.mobile-menu .button {
  width: 100%;
  margin-top: 28px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: var(--cream);
}

.hero__media,
.hero__wash {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 53%;
}

.hero__wash {
  background:
    linear-gradient(
      90deg,
      rgb(251 250 246 / 98%) 0%,
      rgb(251 250 246 / 87%) 30%,
      rgb(251 250 246 / 18%) 66%
    ),
    linear-gradient(0deg, rgb(251 250 246 / 48%), transparent 44%);
}

.hero__content {
  position: relative;
  z-index: 2;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6px;
}

.hero__copy {
  width: min(610px, 53%);
  margin-bottom: 44px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--terra);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 em,
.mortgage h2 em {
  color: var(--terra);
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero__copy > p:last-child {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

.quick-search {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr)) auto;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 16px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.form-field,
.range-field {
  min-width: 0;
}

.quick-search .form-field {
  padding: 9px 16px;
  border-right: 1px solid var(--line);
}

.form-field label,
.range-field > label,
.lead-form label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.form-field select {
  width: 100%;
  padding: 2px 18px 2px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 750;
  outline: 0;
}

.search-submit {
  min-width: 210px;
  justify-content: space-between;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.quick-tags a,
.pill {
  padding: 8px 13px;
  border: 1px solid rgb(255 255 255 / 86%);
  border-radius: 999px;
  background: rgb(255 255 255 / 86%);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 650;
  backdrop-filter: blur(12px);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.section {
  padding: 112px 0;
}

.section--compact {
  padding: 84px 0;
}

.section--tint {
  background: var(--cream);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 44px;
}

.section-heading > div {
  position: relative;
}

.section-index {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--terra);
  font-family: Georgia, serif;
  font-size: 12px;
}

.section-heading h2,
.panel-heading h2,
.why h2,
.places-grid + h2 {
  font-size: clamp(38px, 4vw, 64px);
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.arrow-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--terra);
  color: var(--terra-dark);
  font-size: 11px;
  font-weight: 750;
}

.arrow-link span,
.text-link span {
  transition: transform 160ms var(--ease-out);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr 0.9fr;
  gap: 14px;
}

.news-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--cream);
  box-shadow: 0 1px 0 rgb(40 50 44 / 8%);
}

.news-card img,
.complex-card__media img,
.place-card img,
.article-card > a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms var(--ease-out);
}

.news-card img {
  position: absolute;
  inset: 0;
}

.news-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgb(27 42 34 / 86%), transparent 75%);
}

.news-card__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  padding: 23px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.news-card__content h3 {
  margin: auto 0 9px;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.news-card__content p {
  margin: 0;
  font-size: 11px;
  opacity: 0.78;
}

.news-card__content > a {
  position: absolute;
  right: 19px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
}

.news-card--large,
.news-card--green {
  color: var(--white);
}

.news-card--warm .news-card__content,
.news-card--paper .news-card__content {
  background: linear-gradient(180deg, rgb(250 248 243 / 95%), rgb(250 248 243 / 12%) 61%);
}

.news-card--green {
  background: var(--green);
}

.news-card__number {
  position: absolute;
  right: -16px;
  bottom: -54px;
  color: rgb(255 255 255 / 7%);
  font-family: Georgia, serif;
  font-size: 250px;
  line-height: 1;
}

.pill {
  padding: 6px 10px;
  border: 0;
  background: rgb(255 255 255 / 78%);
  color: var(--terra-dark);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill--light,
.pill--glass {
  background: rgb(255 255 255 / 17%);
  color: var(--white);
}

.complex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.complex-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease;
}

.complex-card__media {
  position: relative;
  height: 270px;
  display: block;
  overflow: hidden;
  background: var(--sand);
}

.complex-card__media .pill {
  position: absolute;
  top: 14px;
  left: 14px;
}

.heart-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 88%);
  font-size: 21px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.heart-button.is-favorite {
  background: var(--terra);
  color: var(--white);
}

.complex-card__body {
  position: relative;
  min-height: 176px;
  padding: 22px;
}

.complex-card__body p,
.complex-card__facts,
.article-card span {
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.complex-card__body p {
  margin: 0 0 8px;
}

.complex-card__body h3 {
  max-width: 84%;
  margin: 0;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.complex-card__facts {
  position: absolute;
  right: 62px;
  bottom: 22px;
  left: 22px;
  display: flex;
  gap: 18px;
  color: var(--ink);
  font-weight: 750;
}

.card-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--terra-dark);
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 140ms var(--ease-out);
}

.complex-card .card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

.filter-panel,
.offers-panel {
  padding: clamp(28px, 4vw, 54px);
  border-radius: var(--radius-lg);
}

.filter-panel {
  background: var(--white);
  box-shadow: var(--shadow);
}

.offers-panel {
  background: #e7ded0;
}

.panel-heading p:not(.eyebrow) {
  max-width: 430px;
  margin: 18px 0 30px;
  color: var(--ink-soft);
}

.apartment-filter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.apartment-filter .form-field,
.range-field {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}

.range-field > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.range-field input {
  min-width: 0;
  padding: 5px 8px 2px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline: 0;
}

.range-field input + input {
  padding-left: 9px;
  border-left: 1px solid var(--line);
}

.apartment-filter .button {
  grid-column: 1 / -1;
  justify-content: space-between;
  margin-top: 5px;
}

.offer-list {
  margin-top: 30px;
  border-top: 1px solid rgb(35 51 43 / 14%);
}

.offer-list a {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid rgb(35 51 43 / 14%);
}

.offer-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(201 111 82 / 38%);
  border-radius: 50%;
  color: var(--terra-dark);
  font-family: Georgia, serif;
  font-size: 19px;
}

.offer-list strong,
.offer-list small {
  display: block;
}

.offer-list strong {
  margin-bottom: 4px;
  font-size: 15px;
}

.offer-list small {
  color: var(--ink-soft);
  font-size: 10px;
}

.offer-list i {
  color: var(--terra-dark);
  font-style: normal;
}

.mortgage {
  position: relative;
  overflow: hidden;
  background: var(--green-deep);
  color: var(--white);
}

.mortgage::after {
  content: '19';
  position: absolute;
  right: -30px;
  bottom: -140px;
  color: rgb(255 255 255 / 3%);
  font-family: Georgia, serif;
  font-size: 420px;
  line-height: 1;
}

.mortgage__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 9vw;
  align-items: center;
}

.mortgage__copy p:not(.eyebrow) {
  max-width: 500px;
  margin: 26px 0;
  color: #c7d0c9;
}

.mortgage .section-index,
.mortgage .eyebrow,
.mortgage h2 em {
  color: #f1a58b;
}

.text-link--light {
  border-color: rgb(255 255 255 / 45%);
  color: var(--white);
}

.mortgage-calculator {
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / 7%);
  box-shadow: 0 30px 80px rgb(0 0 0 / 14%);
  backdrop-filter: blur(14px);
}

.calculator-total {
  display: grid;
  gap: 6px;
  margin-bottom: 34px;
}

.calculator-total > span,
.calculator-total small {
  color: #aebcb4;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.calculator-total strong {
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.slider-field {
  display: block;
  margin-top: 26px;
}

.slider-field span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
  color: #bfc9c3;
  font-size: 11px;
}

.slider-field output {
  color: var(--white);
  font-weight: 750;
}

.slider-field input {
  width: 100%;
  height: 4px;
  accent-color: var(--terra);
}

.mortgage-calculator .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 34px;
}

.why {
  background: #e2e7df;
}

.why__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
}

.why__intro {
  align-self: start;
}

.why__intro > p:last-child {
  max-width: 430px;
  margin: 24px 0 0;
  color: var(--ink-soft);
}

.why__list {
  border-top: 1px solid #bdc6be;
}

.why__list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 27px 0;
  border-bottom: 1px solid #bdc6be;
}

.why__list article > span {
  color: var(--terra-dark);
  font-family: Georgia, serif;
  font-size: 12px;
}

.why__list h3 {
  margin: 0 0 7px;
  font-size: 19px;
}

.why__list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.places-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 0.8fr;
  grid-template-rows: repeat(2, 220px);
  gap: 14px;
}

.place-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--cream);
}

.place-card--wide {
  grid-row: span 2;
}

.place-card:nth-child(2) {
  grid-row: span 2;
}

.place-card::after {
  content: '';
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(0deg, rgb(21 34 27 / 72%), transparent);
}

.place-card > span {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 18px;
  left: 20px;
  color: var(--white);
}

.place-card strong,
.place-card small {
  display: block;
}

.place-card strong {
  font-size: 20px;
}

.place-card small {
  margin-top: 5px;
  font-size: 10px;
  opacity: 0.75;
}

.place-card--text,
.place-card--green {
  padding: 22px;
}

.place-card--text::after,
.place-card--green::after {
  display: none;
}

.place-card--text > span,
.place-card--green > span {
  position: static;
  color: var(--ink);
}

.place-card--green {
  background: var(--terra);
}

.place-card--green > span {
  color: var(--white);
}

.place-card > i {
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-style: normal;
}

.developers {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.developer-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.developer-row a {
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.developer-row a:last-child {
  border-right: 0;
}

.developer-row span {
  color: var(--terra);
  font-family: Georgia, serif;
  font-size: 30px;
}

.developer-row strong {
  font-size: 14px;
  text-transform: uppercase;
}

.article-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.8fr;
  gap: 16px;
}

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.article-card > a {
  height: 240px;
  display: block;
  overflow: hidden;
}

.article-card > div {
  position: relative;
  min-height: 190px;
  padding: 25px;
}

.article-card h3 {
  margin: 14px 0 9px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.article-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.article-card--accent {
  display: flex;
  align-items: flex-end;
  background: var(--terra);
  color: var(--white);
}

.article-card--accent > div {
  padding: 34px;
}

.article-card--accent span,
.article-card--accent p {
  color: var(--white);
}

.article-card--accent .card-arrow {
  margin-top: 32px;
  border-color: rgb(255 255 255 / 38%);
  color: var(--white);
}

.final-cta {
  padding-top: 56px;
}

.final-cta__panel {
  position: relative;
  min-height: 390px;
  padding: clamp(34px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 8vw;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--terra);
  color: var(--white);
}

.final-cta__mark {
  position: absolute;
  right: 49%;
  bottom: -120px;
  color: rgb(255 255 255 / 7%);
  font-family: Georgia, serif;
  font-size: 360px;
  line-height: 1;
}

.final-cta__panel > div:not(.final-cta__mark) {
  position: relative;
  z-index: 2;
}

.final-cta .eyebrow {
  color: var(--white);
}

.final-cta h2 {
  font-size: clamp(46px, 5vw, 72px);
}

.final-cta__panel > div > p:last-child {
  max-width: 530px;
  margin: 22px 0 0;
  color: var(--white);
}

.lead-form {
  position: relative;
  z-index: 2;
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgb(50 28 22 / 18%);
}

.lead-form label {
  color: var(--white);
}

.lead-form input {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgb(255 255 255 / 45%);
  background: transparent;
  color: var(--white);
  outline: 0;
}

.lead-form input::placeholder {
  color: rgb(255 255 255 / 54%);
}

.lead-form .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
}

.lead-form small {
  display: block;
  margin-top: 12px;
  color: var(--white);
  font-size: 8px;
}

.form-status {
  margin: 14px 0 0;
  color: var(--white);
  font-size: 11px;
}

.site-footer {
  padding: 72px 0 26px;
  background: var(--paper);
}

.site-footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.site-footer__top p {
  max-width: 360px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5vw;
  padding: 42px 0;
}

.site-footer__grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 11px;
}

.footer-label {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.socials {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.socials a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #686e69;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.js [data-reveal] {
  opacity: 1;
  transform: translateY(14px);
  transition:
    opacity 560ms var(--ease-out),
    transform 560ms var(--ease-out);
}

.js [data-visible='true'] {
  opacity: 1;
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .desktop-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
  }

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

  .button--terracotta:hover {
    background: var(--terra-dark);
    box-shadow: 0 13px 32px rgb(173 89 64 / 26%);
  }

  .quick-tags a:hover {
    background: var(--green);
    color: var(--white);
    transform: translateY(-1px);
  }

  .arrow-link:hover span,
  .text-link:hover span {
    transform: translateX(4px);
  }

  .news-card:hover img,
  .complex-card:hover .complex-card__media img,
  .place-card:hover img,
  .article-card:hover > a img {
    transform: scale(1.025);
  }

  .complex-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
  }

  .heart-button:hover,
  .card-arrow:hover {
    background: var(--terra);
    color: var(--white);
  }

  .offer-list a:hover i {
    transform: translateX(3px);
  }
}

@media (width <= 1180px) {
  .desktop-nav,
  .header-contact {
    display: none;
  }

  .site-header__actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .hero__copy {
    width: min(620px, 66%);
  }

  .quick-search {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-search .search-submit {
    grid-column: 1 / -1;
    min-height: 48px;
  }

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

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

  .complex-card__media {
    height: 320px;
  }

  .places-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .place-card--wide {
    grid-row: span 2;
  }

  .place-card:nth-child(2) {
    grid-row: auto;
  }

  .place-card--text,
  .place-card--green {
    display: none;
  }
}

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

  .shell {
    width: min(100% - 32px, 1380px);
  }

  .site-header__inner {
    height: 74px;
  }

  .site-header__actions .button,
  .favorite-link {
    display: none;
  }

  .brand__mark {
    width: 34px;
    height: 34px;
  }

  .brand__copy strong {
    font-size: 12px;
  }

  .brand__copy small {
    font-size: 8px;
  }

  .mobile-menu {
    height: calc(100dvh - 74px);
  }

  .hero {
    min-height: 760px;
  }

  .hero__media,
  .hero__wash {
    inset: 0 0 auto;
    height: 360px;
  }

  .hero__media img {
    object-position: 67% center;
  }

  .hero__wash {
    background: linear-gradient(0deg, var(--paper), transparent 50%);
  }

  .hero__content {
    min-height: 760px;
    justify-content: flex-start;
    padding-top: 260px;
  }

  .hero__copy {
    width: 100%;
    margin-bottom: 22px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(40px, 11vw, 58px);
  }

  .hero__copy > p:last-child {
    max-width: 400px;
    margin-top: 15px;
    font-size: 14px;
  }

  .quick-search {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 14px;
  }

  .quick-search .form-field {
    padding: 8px 12px;
    border-bottom: 1px solid var(--line);
  }

  .quick-search .form-field:nth-child(2),
  .quick-search .form-field:nth-child(4) {
    border-right: 0;
  }

  .quick-tags {
    flex-wrap: nowrap;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .quick-tags a {
    flex: 0 0 auto;
  }

  .section,
  .section--compact {
    padding: 74px 0;
  }

  .section-heading {
    align-items: flex-start;
    margin-bottom: 32px;
  }

  .section-heading h2,
  .panel-heading h2,
  .why h2 {
    font-size: clamp(36px, 10vw, 50px);
  }

  .section-heading .arrow-link {
    margin-top: 28px;
    white-space: nowrap;
  }

  .news-grid {
    display: flex;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .news-card {
    min-width: min(82vw, 340px);
    min-height: 360px;
    scroll-snap-align: start;
  }

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

  .complex-card:nth-child(n + 4) {
    display: none;
  }

  .complex-card__media {
    height: min(65vw, 340px);
  }

  .split-layout,
  .mortgage__grid,
  .why__grid {
    grid-template-columns: 1fr;
  }

  .split-layout,
  .why__grid {
    gap: 18px;
  }

  .offers-panel {
    background: var(--white);
  }

  .apartment-filter {
    grid-template-columns: 1fr;
  }

  .apartment-filter .button {
    grid-column: auto;
  }

  .mortgage__grid {
    gap: 46px;
  }

  .mortgage-calculator {
    padding: 24px;
  }

  .why__list {
    margin-top: 28px;
  }

  .places-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 330px 270px;
  }

  .place-card--wide {
    grid-row: auto;
  }

  .developer-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .developer-row a {
    min-height: 90px;
    border-bottom: 1px solid var(--line);
  }

  .developer-row a:nth-child(even) {
    border-right: 0;
  }

  .developer-row a:last-child {
    grid-column: 1 / -1;
  }

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

  .article-card > a {
    height: 230px;
  }

  .article-card--accent {
    min-height: 310px;
  }

  .final-cta {
    padding-top: 34px;
  }

  .final-cta__panel {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 34px 22px;
    border-radius: 22px;
  }

  .final-cta__mark {
    right: -40px;
    bottom: -60px;
    font-size: 260px;
  }

  .lead-form {
    padding: 22px;
  }

  .site-footer__top,
  .site-footer__bottom {
    display: grid;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 38px 24px;
  }
}

@media (width <= 430px) {
  .hero {
    min-height: 805px;
  }

  .hero__content {
    min-height: 805px;
    padding-top: 245px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .quick-search .form-field:nth-child(3),
  .quick-search .form-field:nth-child(4) {
    display: none;
  }

  .quick-search .form-field {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading .arrow-link {
    margin-top: 18px;
  }

  .complex-card__facts {
    gap: 10px;
  }

  .why__list article {
    grid-template-columns: 36px 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

/* Residential complex detail */
.complex-page {
  background: #f8f5ef;
  color: #26372f;
  padding: 22px 0 70px;
}

.complex-hero__media {
  min-height: 680px;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: #324139;
}

.complex-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complex-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgb(22 39 31 / 82%) 0%,
    rgb(22 39 31 / 40%) 52%,
    rgb(22 39 31 / 8%) 100%
  );
}

.complex-hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: clamp(30px, 6vw, 82px);
  color: #fff;
  max-width: 850px;
}

.complex-hero h1 {
  font-size: clamp(48px, 7vw, 98px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  margin: 18px 0 24px;
}

.complex-back {
  color: #fff;
  text-decoration: none;
  position: absolute;
  top: 38px;
}

.complex-hero__address {
  font-size: 20px;
  margin: 0 0 30px;
}

.complex-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button--light {
  background: #fff;
  color: #27392f;
}

.button--ghost-light {
  background: rgb(255 255 255 / 12%);
  border: 1px solid rgb(255 255 255 / 50%);
  color: #fff;
}

.complex-facts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: #ded8ce;
  border-radius: 20px;
  overflow: hidden;
  margin-top: 20px;
}

.complex-fact {
  background: #fff;
  padding: 24px 20px;
  display: grid;
  gap: 7px;
}

.complex-fact span {
  font-size: 12px;
  text-transform: uppercase;
  color: #8b887f;
}

.complex-fact strong {
  font-size: 18px;
}

.complex-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 9vw;
  padding-top: 120px;
  padding-bottom: 90px;
}

.complex-intro h2,
.complex-benefits h2,
.complex-plans h2,
.complex-contact h2 {
  font-size: clamp(36px, 4.5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin: 12px 0;
}

.complex-intro__copy {
  font-size: 20px;
  line-height: 1.65;
  color: #657068;
  padding-top: 40px;
}

.complex-gallery {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 420px 180px;
  gap: 16px;
}

.complex-gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}

.complex-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.complex-gallery__item--1 {
  grid-row: 1/3;
}

.complex-gallery__quote {
  border-radius: 24px;
  background: #c96f53;
  color: #fff;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.complex-gallery__quote span {
  font-size: 13px;
  text-transform: uppercase;
}

.complex-gallery__quote strong {
  font-size: 23px;
  line-height: 1.15;
}

.complex-benefits,
.complex-plans {
  padding-top: 120px;
}

.complex-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.complex-benefits article {
  background: #fff;
  border-radius: 24px;
  padding: 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.complex-benefits article span {
  color: #c96f53;
}

.complex-benefits h3 {
  font-size: 24px;
  line-height: 1.25;
}

.complex-plans .section-heading > p {
  max-width: 430px;
  color: #737b74;
}

.plan-filters {
  display: flex;
  gap: 8px;
  margin: 32px 0 22px;
}

.plan-filters button {
  border: 1px solid #dad6ce;
  background: transparent;
  border-radius: 999px;
  padding: 12px 20px;
  cursor: pointer;
}

.plan-filters button.is-active {
  background: #263b31;
  color: #fff;
  border-color: #263b31;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.plan-card[hidden] {
  display: none;
}

.plan-card__open {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 28px;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.plan-card__open:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgb(41 49 44 / 10%);
}

.plan-card img {
  width: 100%;
  height: 440px;
  object-fit: contain;
}

.plan-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee7dd;
  padding-top: 20px;
}

.plan-card__meta strong {
  font-size: 24px;
}

.plan-card__meta b {
  font-size: 22px;
  color: #c96f53;
}

.plan-card__link {
  display: block;
  color: #6d756f;
  margin-top: 14px;
}

.complex-contact {
  margin-top: 120px;
  background: #c96f53;
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 68px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.complex-contact > div {
  max-width: 760px;
}

.complex-source {
  font-size: 13px;
  color: #777;
  margin-top: 24px;
}

.complex-source a {
  color: inherit;
}

.plan-dialog {
  width: min(1400px, calc(100% - 32px));
  max-width: none;
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: #f8f5ef;
  color: #26372f;
  grid-template-columns: 1.35fr 0.65fr;
  overflow: hidden;
}

.plan-dialog[open] {
  display: grid;
}

.plan-dialog::backdrop {
  background: rgb(17 35 29 / 86%);
  backdrop-filter: blur(8px);
}

.plan-dialog__media {
  background: #fff;
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 30px;
}

.plan-dialog__media img {
  max-width: 100%;
  max-height: 700px;
  object-fit: contain;
}

.plan-dialog__body {
  padding: 80px 54px;
  align-self: center;
}

.plan-dialog__body h2 {
  font-size: 30px;
}

.plan-dialog__area {
  font-size: clamp(54px, 7vw, 90px);
  font-family: Georgia, serif;
  margin: 18px 0 28px;
}

.plan-dialog__body dl {
  margin: 30px 0;
}

.plan-dialog__body dl div {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d9d3ca;
  padding: 13px 0;
}

.plan-dialog__body dd {
  font-weight: 700;
}

.plan-dialog__note {
  font-size: 13px;
  color: #7c7d77;
}

.plan-dialog__close {
  position: absolute;
  right: 22px;
  top: 20px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 32px;
  cursor: pointer;
  z-index: 3;
}

.has-dialog {
  overflow: hidden;
}

@media (width <= 1000px) {
  .complex-hero__media {
    min-height: 600px;
  }

  .complex-facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .complex-intro {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .complex-intro__copy {
    padding-top: 0;
  }

  .complex-benefits__grid {
    grid-template-columns: 1fr;
  }

  .plan-dialog[open] {
    grid-template-columns: 1fr 1fr;
  }

  .plan-dialog__media {
    min-height: 600px;
  }

  .plan-dialog__body {
    padding: 60px 30px;
  }
}

@media (width <= 700px) {
  .complex-page {
    padding-top: 8px;
  }

  .complex-hero__media {
    min-height: 620px;
    border-radius: 20px;
  }

  .complex-hero__shade {
    background: linear-gradient(0deg, rgb(22 39 31 / 90%), rgb(22 39 31 / 8%));
  }

  .complex-hero__content {
    padding: 28px 22px;
  }

  .complex-back {
    top: 24px;
  }

  .complex-hero h1 {
    font-size: 50px;
  }

  .complex-hero__actions {
    width: 100%;
  }

  .complex-hero__actions .button {
    width: 100%;
    justify-content: center;
  }

  .complex-facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .complex-fact {
    padding: 18px 14px;
  }

  .complex-intro,
  .complex-benefits,
  .complex-plans {
    padding-top: 76px;
  }

  .complex-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 330px 250px auto;
  }

  .complex-gallery__item--1 {
    grid-row: auto;
  }

  .complex-gallery__quote {
    min-height: 170px;
  }

  .complex-benefits article {
    min-height: 170px;
  }

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

  .plan-card img {
    height: 340px;
  }

  .complex-contact {
    margin-top: 76px;
    display: block;
  }

  .complex-contact .button {
    margin-top: 25px;
    width: 100%;
    justify-content: center;
  }

  .plan-dialog[open] {
    display: block;
    max-height: calc(100vh - 20px);
    overflow: auto;
    border-radius: 20px;
  }

  .plan-dialog__media {
    min-height: 0;
    height: 52vh;
    padding: 15px;
  }

  .plan-dialog__media img {
    max-height: 100%;
  }

  .plan-dialog__body {
    padding: 28px 22px 35px;
  }

  .plan-dialog__area {
    font-size: 54px;
  }

  .plan-dialog__close {
    position: fixed;
    right: 20px;
    top: 16px;
  }
}
