:root {
  --ink: #1f2a24;
  --muted: #607066;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --line: #e2ded5;
  --forest: #2f5f4b;
  --forest-dark: #1f4938;
  --sage: #617754;
  --moss: #8da36f;
  --sky: #dbe9ee;
  --gold: #c39148;
  --shadow: 0 18px 48px rgba(37, 47, 41, .13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--forest-dark);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

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

.topbar {
  background: var(--sage);
  color: #fff;
  font-size: .94rem;
}

.topbar .inner,
.nav .inner,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar .inner {
  min-height: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar a {
  color: #fff;
  text-decoration: none;
}

.nav {
  background: rgba(251, 250, 247, .96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.nav .inner {
  width: calc(100% - 16px);
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  font-family: "Whisper", Georgia, "Times New Roman", serif;
  color: var(--sage);
  font-size: clamp(2.45rem, 4vw, 4.15rem);
  line-height: .9;
  text-decoration: none;
  white-space: nowrap;
}

.navlinks {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.navlinks a {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  text-transform: uppercase;
  font-size: .94rem;
}

.navlinks a[aria-current="page"],
.navlinks a:hover {
  color: var(--forest-dark);
  background: transparent;
}

.hero {
  width: min(1120px, calc(100% - 32px));
  margin: 72px auto 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: 36px;
  align-items: center;
}

.hero h1,
.page-head h1 {
  margin: 0 0 12px;
  font-family: "Whisper", Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 5vw, 4.35rem);
  line-height: 1.02;
  color: var(--sage);
  letter-spacing: 0;
}

.hero > div {
  text-align: center;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--muted);
  max-width: 680px;
}

.hero-image,
.wide-image,
.gallery img {
  border-radius: 2px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  background: #3f6130;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--forest);
}

.button.secondary {
  background: transparent;
  color: #3f6130;
}

.section {
  padding: 48px 0;
}

.section h2 {
  margin: 0 0 18px;
  font-family: "Whisper", Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4vw, 3.55rem);
  line-height: 1.12;
  color: var(--forest-dark);
}

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.home-original-flow {
  padding: 38px 0 0;
  background: #fff;
}

.home-strip {
  width: min(1126px, calc(100% - 32px));
  margin: 0 auto;
  box-shadow: none;
}

.home-copy {
  width: min(1126px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 36px;
  text-align: center;
}

.home-copy h2 {
  margin: 0 0 24px;
  font-family: "Whisper", Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: #425931;
}

.home-copy .lead,
.home-copy p:not(.lead) {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-copy .lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}

.apartments-teaser {
  padding-bottom: 106px;
}

.apartments-preview {
  margin-top: 14px;
}

.apartments-button {
  min-height: 56px;
  padding: 11px 18px;
  border-radius: 4px;
  font-size: clamp(1rem, 1.15vw, 1.14rem);
  gap: 10px;
}

.apartments-button img {
  width: auto;
  height: 30px;
}

.location-teaser {
  padding-top: 84px;
  padding-bottom: 46px;
}

.location-teaser p {
  margin-top: 12px;
  margin-bottom: 0;
}

.map-strip {
  height: 300px;
  width: 100%;
  margin: 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid var(--line);
}

.map-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-strip figcaption {
  position: absolute;
  right: 8px;
  bottom: 4px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, .88);
  color: #4b4b4b;
  font-size: .68rem;
  line-height: 1.2;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.apartment {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.apartment-body {
  padding: 22px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 0;
  list-style: none;
}

.facts li {
  border: 1px solid var(--line);
  background: #f5f3ed;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--muted);
  font-size: .92rem;
}

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

.list-columns h3,
.price-list h3 {
  margin: 0 0 8px;
  color: var(--forest-dark);
  font-size: 1rem;
}

.list-columns ul,
.price-list ul {
  margin: 0;
  padding-left: 19px;
}

.price-list {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
}

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

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-head {
  width: min(1120px, calc(100% - 32px));
  margin: 44px auto 10px;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
}

.contact-main {
  display: flex;
  flex-direction: column;
}

.contact-original {
  padding-top: 58px;
}

.contact-original h1 {
  margin: 0 0 64px;
  font-family: "Whisper", Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.5;
  color: #425931;
  letter-spacing: 0;
}

.contact-original .lead {
  max-width: none;
  margin: 0 0 62px;
  color: var(--ink);
  font-size: 1.13rem;
}

.contact-list {
  max-width: none;
  color: #4d5960;
  font-size: 1rem;
}

.contact-list div {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: center;
  min-height: 45px;
  border-bottom: 1px solid #697075;
}

.contact-list strong {
  font-weight: 800;
}

.contact-list a {
  color: #35699c;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.form {
  display: grid;
  gap: 16px;
  max-width: 760px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.form input,
.form select,
.form textarea {
  min-height: 44px;
  border: 1px solid #cfc8bd;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}

.form input[type="radio"],
.form input[type="checkbox"] {
  min-height: auto;
  width: 20px;
  height: 20px;
  padding: 0;
  margin: 0;
  accent-color: var(--forest);
}

.form fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.form fieldset label,
.form .checkline {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.form .checkline {
  align-items: flex-start;
}

.form legend {
  font-weight: 800;
  color: var(--forest-dark);
}

.note {
  color: var(--muted);
  font-size: .95rem;
}

.footer {
  background: #edf1ed;
  color: #1f2a24;
  padding: 38px 0;
  margin-top: 0;
}

.footer .inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.footer a {
  color: #3f6130;
}

.footer h2 {
  color: #647757;
  font-size: 1rem;
}

@media (max-width: 820px) {
  .topbar .inner,
  .nav .inner,
  .footer .inner {
    justify-content: flex-start;
  }

  .nav .inner,
  .hero,
  .grid-2,
  .footer .inner {
    grid-template-columns: 1fr;
  }

  .nav .inner {
    display: grid;
    min-height: 112px;
    gap: 10px;
  }

  .navlinks {
    justify-content: flex-start;
    gap: 2px 12px;
  }

  .navlinks a {
    padding: 5px 0;
    background: transparent;
  }

  .brand {
    font-size: 2.75rem;
  }

  .hero {
    margin-top: 26px;
    gap: 28px;
  }

  .hero-image {
    order: -1;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .actions {
    justify-content: stretch;
  }

  .button {
    width: 100%;
  }

  .home-original-flow {
    padding-top: 30px;
  }

  .home-copy {
    width: min(100% - 22px, 1538px);
    padding: 38px 0 34px;
  }

  .home-strip {
    width: min(100% - 22px, 1538px);
  }

  .contact-main {
    min-height: 684px;
  }

  .contact-original {
    padding-top: 52px;
  }

  .contact-original h1 {
    margin-bottom: 52px;
  }

  .contact-original .lead {
    margin-bottom: 52px;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    padding: 10px 0;
  }

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

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

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .apartment .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .apartment .gallery img {
    aspect-ratio: 1 / 1;
  }

  .topbar .inner,
  .nav .inner,
  .section,
  .hero,
  .page-head,
  .footer .inner {
    width: min(100% - 22px, 1120px);
  }
}
