:root {
  --bg: #ffffff;
  --bg-soft: #f5f4f0;
  --text: #2f332e;
  --muted: #858a82;
  --line: #e4e3dd;
  --accent: #3f5241;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", Helvetica, Arial, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  background: var(--bg);
  color: var(--text);
  font: 300 15px/1.8 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Шапка */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__name { font: 400 22px var(--serif); letter-spacing: .32em; margin-right: -.32em; }
.logo__sub { font-size: 9px; letter-spacing: .4em; margin-right: -.4em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-size: 11px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  transition: color .2s;
}
.nav a:hover { color: var(--accent); }
.nav__cta { border: 1px solid var(--text); padding: 10px 18px; }
.nav__cta:hover { background: var(--text); color: #fff !important; }

.burger { display: none; width: 28px; height: 18px; background: none; border: 0; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 1px; background: var(--text); transition: transform .3s, top .3s; }
.burger span:first-child { top: 5px; }
.burger span:last-child { top: 13px; }
.burger[aria-expanded="true"] span:first-child { top: 9px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 9px; transform: rotate(-45deg); }

/* Слайдер */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 480px; margin-top: var(--header-h); overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0;
  background: center / cover no-repeat;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease, transform 7s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__dots { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero__dots button {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid #fff; background: transparent; cursor: pointer; padding: 0;
}
.hero__dots button.is-active { background: #fff; }

/* Секции */
.section { max-width: 920px; margin: 0 auto; padding: 110px 24px; text-align: center; }
.title { font: 300 44px/1.2 var(--serif); letter-spacing: .02em; margin-bottom: 18px; }
.title em { font-style: italic; color: var(--muted); }
.lead { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-bottom: 44px; }
.text { color: #555a53; text-align: justify; hyphens: auto; }
.text p + p { margin-top: 1.2em; }
.muted { color: var(--muted); font-style: normal; font-size: 13px; }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.badge { padding: 30px 12px; display: flex; flex-direction: column; gap: 6px; }
.badge + .badge { border-left: 1px solid var(--line); }
.badge__num { font: 300 40px/1 var(--serif); }
.badge__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Дома */
.houses { max-width: 1160px; }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; margin-top: 30px; text-align: left; }
.split__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.features { margin: 30px 0; border-top: 1px solid var(--line); }
.features li { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price { font: 300 34px var(--serif); margin-bottom: 26px; }
.price span { font: 300 12px var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.btn {
  display: inline-block; padding: 16px 32px;
  background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 400; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s;
}
.btn:hover { background: var(--text); }

/* Досуг */
.activities { max-width: 1000px; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin-top: 40px; }
.tags li { font: 300 24px/1.4 var(--serif); }
.tags li:not(:last-child)::after { content: "·"; margin-left: 34px; color: var(--muted); }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0 6px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: opacity .3s; }
.gallery img:hover { opacity: .85; }

/* Отзывы и карта */
.reviews { background: var(--bg); }
.reviews__widget { max-width: 620px; height: 640px; margin: 0 auto; border: 1px solid var(--line); overflow: hidden; }
.reviews__widget iframe, .map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map { height: 440px; margin-top: 44px; filter: grayscale(.6); }
.link { display: inline-block; margin-top: 26px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 3px; }

/* Контакты */
.contacts { background: var(--bg-soft); max-width: none; }
.phone { display: inline-block; font: 300 46px var(--serif); letter-spacing: .03em; margin-bottom: 6px; }
.phone:hover { color: var(--accent); }
.contacts address { margin-top: 30px; line-height: 1.7; }

.footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 40px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .15em; color: var(--muted);
}
.footer__logo { font: 400 15px var(--serif); letter-spacing: .32em; color: var(--text); }

/* Мобильная версия */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header { padding: 0 16px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    transform: translateY(-110%); visibility: hidden;
    transition: transform .35s ease, visibility .35s;
    z-index: -1;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { width: 100%; text-align: center; padding: 16px; border-top: 1px solid var(--line); }
  .nav__cta { border: 0; border-top: 1px solid var(--line); }

  .hero { height: 70svh; }
  .section { padding: 72px 16px; }
  .title { font-size: 34px; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__img { aspect-ratio: 4 / 3; }
  .badges { grid-template-columns: 1fr; }
  .badge + .badge { border-left: 0; border-top: 1px solid var(--line); }
  .tags { gap: 8px 18px; }
  .tags li { font-size: 20px; }
  .tags li:not(:last-child)::after { margin-left: 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 0 4px; }
  .reviews__widget { height: 560px; }
  .map { height: 340px; }
  .phone { font-size: 34px; }
  .footer { padding: 24px 16px; flex-direction: column; gap: 8px; }
}
