:root {
  --green: #1f6b45;
  --green-dark: #123824;
  --green-deep: #0d2a1a;
  --amber: #c68a3d;
  --amber-dark: #a66f2c;
  --ink: #16231c;
  --muted: #5c675f;
  --bg: #f8f6f0;
  --bg-alt: #efe9db;
  --card: #ffffff;
  --line: #e2ddcb;
  --radius: 22px;
  --shadow: 0 16px 40px -22px rgba(22, 35, 28, 0.45);
  --font: "Golos Text", "Manrope", "Segoe UI", sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.08; }
p { margin: 0; color: var(--muted); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 28px));
  margin: 14px auto 0;
  padding: 10px 12px 10px 22px;
  background: rgba(248, 246, 240, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.nav__name { font-weight: 800; font-size: 15px; }
.nav__name small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.nav__links a:hover { background: var(--bg-alt); }
.nav__cta {
  background: var(--amber);
  color: var(--ink);
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 14px;
}
.nav__cta:hover { background: var(--amber-dark); }

.hero {
  position: relative;
  margin: 18px 0 0;
  width: 100%;
  min-height: calc(100vh - 96px);
  border-radius: 0;
  overflow: hidden;
  background: var(--green-deep);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: 0;
  transition: opacity .45s ease;
}
.hero__slides img:nth-child(3) { object-position: center center; }
.hero__slides img.is-active { opacity: 1; }
.hero__widget {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 246, 240, 0.92);
  border-radius: 999px;
  padding: 6px;
}
.hero__widget button {
  border: 0;
  background: transparent;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}
.hero__widget [data-hero-dot] {
  width: 9px;
  height: 9px;
  padding: 0;
  background: #c9c3b4;
}
.hero__widget [data-hero-dot].is-active { background: var(--amber); }
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 42, 26, 0.78) 0%, rgba(13, 42, 26, 0.28) 55%, rgba(13, 42, 26, 0.08) 100%);
}
.hero__copy {
  position: absolute;
  left: 48px;
  bottom: 28px;
  right: 48px;
  color: white;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}
.hero .eyebrow { color: #d7ecdf; font-size: 15px; letter-spacing: 0.14em; }
.hero h1 { font-size: clamp(3rem, 6vw, 5.4rem); color: white; margin: 12px 0 10px; }
.hero__lead { color: rgba(255,255,255,0.86); font-size: 1.15rem; max-width: 34rem; }
.hero__lead + .hero__lead { margin-top: 12px; }
.hero__lead b { color: #fff; font-weight: 800; }
.hero__price {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 28px;
}
.hero__price b { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; }
.hero__price span { color: white; max-width: none; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: 0.02em; font-kerning: none; font-variant-numeric: tabular-nums; }
.hero__price i { display: inline-block; width: 0.06em; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
  position: relative;
  z-index: 2;
}
.stat {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.7rem; color: var(--green); letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 14px; }

section { padding: 88px 0 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); max-width: none; }
.section-head { margin-bottom: 28px; }
.section-head p { margin-top: 12px; max-width: none; }

.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 40px;
  margin-top: 28px;
}
.checks li {
  list-style: none;
  padding-left: 28px;
  position: relative;
  font-weight: 600;
}
.checks { padding: 0; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
}
.note {
  margin-top: 22px;
  background: #e7f3ec;
  color: var(--green-dark);
  border-radius: 16px;
  padding: 16px 18px;
  font-weight: 700;
}
.note--center { text-align: center; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.gallery button:nth-child(-n+6) { grid-column: span 2; }
.gallery button:nth-child(n+7) { grid-column: span 3; }
.gallery button {
  padding: 0;
  border: 0;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 2;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .4s ease; }
.gallery button:hover img { transform: scale(1.04); }

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: stretch;
}
.photo-card, .panel {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
}
.photo-card img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.panel { padding: 32px; }
.panel h3 { font-size: 1.8rem; margin-bottom: 16px; }
.panel ul { margin: 0; padding: 0; }
.panel li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.panel li span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }

.plan-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px;
}
.plan-wrap img { width: 100%; height: auto; border-radius: 16px; }
.rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.rooms article {
  background: var(--bg);
  border-radius: 16px;
  padding: 18px;
}
.rooms h3 { color: var(--green); font-size: 1.2rem; margin-bottom: 6px; }

.grid-3, .grid-2 { display: grid; gap: 12px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.card h3 { color: var(--green); font-size: 1.15rem; margin-bottom: 6px; }
.finish {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.finish article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 24px 22px;
  min-height: 148px;
}
.finish h3 { font-size: 1.45rem; margin-bottom: 8px; }
.mortgage {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  background: #1b5c3c;
  color: white;
  border-radius: 28px;
  padding: 36px;
}
.mortgage h2 { color: white; max-width: none; }
.mortgage .eyebrow { color: #ffffff; }
.mortgage p { color: rgba(255,255,255,0.86); margin-top: 12px; }
.mortgage__rate {
  background: var(--amber);
  color: var(--ink);
  border-radius: 22px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.mortgage__line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.mortgage__rate b { color: var(--ink); font-size: clamp(3.2rem, 5vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.9; }
.mortgage__rate span { color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.near {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}
.map {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  height: 440px;
}
.map iframe { width: 100%; height: 100%; border: 0; }
.pin { background: none; border: 0; }
.pin span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.pin__home { background: #1f6b45; color: white; }
.pin__school { background: white; color: #16231c; }
.pin__kids { background: #f4c542; color: #16231c; }
.map__credit { margin: 8px 2px 0; color: var(--muted); font-size: 12px; }
.pin__shop { background: #e30613; color: white; }
.pin__ozon { background: #005bff; color: white; letter-spacing: -0.03em; }
.map-link { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--green-dark); }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding-bottom: 18px; }

.place {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}
.place img { width: 100%; height: 420px; object-fit: cover; border-radius: 24px; }
.place-list { display: grid; gap: 16px; }
.place-list h3 { font-size: 1.15rem; }
.place-list p { margin-top: 2px; }

.price {
  margin-top: 88px;
  background: var(--green);
  color: white;
  border-radius: 32px;
  padding: 48px;
}
.price .eyebrow {
  color: #ffffff;
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
  letter-spacing: 0.04em;
  line-height: 1.35;
  margin-bottom: 28px;
}
.price h2 { color: white; max-width: none; margin: 10px 0 8px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.price-row article {
  background: white;
  color: var(--ink);
  border-radius: 20px;
  padding: 26px 24px;
}
.price-row span { color: var(--muted); font-size: 15px; }
.price-row b { display: block; margin-top: 8px; font-size: clamp(1.45rem, 2vw, 1.85rem); color: var(--green-dark); }
.price-row article:last-child { background: var(--amber); color: var(--ink); }
.price-row article:last-child span, .price-row article:last-child b { color: var(--ink); }
.fine { margin-top: 18px; color: rgba(255,255,255,0.72); font-size: 14px; }

.visit {
  margin: 28px 0 0;
  text-align: center;
  padding: 48px 20px 72px;
}
.visit h2 { margin: 10px auto 12px; }
.visit p { margin: 0 auto; max-width: 36rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(13, 26, 18, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 88vh; border-radius: 12px; }
.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: white;
  font-size: 26px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .hero__copy { left: 22px; right: 22px; bottom: 22px; }
  .hero__price { flex-direction: column; align-items: flex-start; gap: 6px; }
  .stats, .gallery, .split, .rooms, .grid-3, .grid-2, .place, .price-row, .finish, .mortgage, .near { grid-template-columns: 1fr; }
  .gallery button, .gallery button:nth-child(-n+6), .gallery button:nth-child(n+7) { grid-column: auto; aspect-ratio: 3 / 2; height: auto; }
  .spec { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr; }
  .price { padding: 28px 20px; }
  .photo-card img, .place img { min-height: 260px; height: 280px; }
}
