:root {
  --bg: #07110c;
  --bg-2: #0d1a13;
  --ink: #e4f0d8;
  --muted: #9bb39a;
  --pine: #1f4d32;
  --moss: #3d7a4a;
  --sun: #e4c36a;
  --sun-2: #c9a24a;
  --glass: rgba(10, 22, 16, 0.72);
  --line: rgba(228, 195, 106, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #f3efe2;
  --bg-2: #e7eedc;
  --ink: #14241a;
  --muted: #4a6352;
  --pine: #245c38;
  --moss: #3a7a48;
  --sun: #b8862a;
  --sun-2: #8d6718;
  --glass: rgba(243, 239, 226, 0.86);
  --line: rgba(36, 92, 56, 0.18);
  --shadow: 0 18px 40px rgba(20, 36, 26, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 102px;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img, video { max-width: 100%; display: block; }
table { max-width: 100%; }
a { color: var(--sun); }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.wrap.narrow { width: min(640px, calc(100% - 32px)); }

.mist {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(61, 122, 74, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 20%, rgba(228, 195, 106, 0.08), transparent 40%);
}

.wm-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 23;
  text-align: center;
  padding: 6px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.wm-bar a, .wm-foot a { color: var(--sun); text-decoration: none; }
.wm-foot { text-align: center; font-size: 0.78rem; color: var(--muted); margin: 0 0 16px; }
.top {
  position: fixed;
  top: 32px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 22px;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--serif); font-size: 1.25rem; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav { display: flex; gap: 16px; margin-left: auto; }
.nav a { color: inherit; text-decoration: none; font-size: 0.92rem; }
.nav a:hover { color: var(--sun); }
.phone { color: inherit; text-decoration: none; font-weight: 600; white-space: nowrap; }
a[href^="tel:"] { white-space: nowrap; }
.burger { display: none; }

.ghost, .btn, .link {
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.ghost { padding: 8px 12px; border-radius: 999px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--moss), var(--pine));
  color: #f6ffe9;
  text-decoration: none;
  border-color: transparent;
}
.btn.ghost { background: transparent; color: inherit; border-color: var(--line); }
.btn.slim { padding: 8px 14px; font-size: 0.9rem; }
.link { border: 0; background: none; color: var(--sun); padding: 0; text-decoration: underline; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 24;
  background: rgba(4, 10, 7, 0.5);
}
.nav-backdrop[hidden] { display: none; }
.mobile-nav {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 26;
  padding: 20px 18px;
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  flex-direction: column;
  gap: 12px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-nav:not(.open) { visibility: hidden; pointer-events: none; }
.mobile-nav.open { transform: translateX(0); visibility: visible; pointer-events: auto; }
.mobile-nav a { color: inherit; text-decoration: none; }
body.nav-open { overflow: hidden; }

.reel {
  position: relative;
  z-index: 1;
  height: min(52vh, 440px);
  overflow: hidden;
  background: #06100b;
}
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
  width: min(1200px, calc(100% - 32px));
  margin: 36px auto 20px;
}
.eyebrow { letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-size: 0.75rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); margin: 0 0 12px; }
h1 em { font-style: italic; color: var(--sun); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.lead { color: var(--muted); font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hero-meta { display: flex; gap: 16px; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }

.grove, .duo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  min-height: 0;
}
.duo { grid-template-columns: 1fr 1fr; }
.grove figure, .duo figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow);
  border-radius: 16px;
  width: 100%;
}
.grove img, .duo img, .card-photo img, .tree img, .bloom img, .gallery-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.grove figure.is-horiz, .duo figure.is-horiz { aspect-ratio: 16 / 10; height: auto; }
.grove figure.is-vert, .duo figure.is-vert { aspect-ratio: 3 / 4; height: auto; }
.tree, .bloom { border-radius: 16px; transform: none; }

.strip, .panel { position: relative; z-index: 1; padding: 56px 0; }
.panel.alt { background: var(--bg-2); }
.facts, .cards, .gazebo-grid {
  display: grid;
  gap: 16px;
}
.facts { grid-template-columns: repeat(4, 1fr); margin-top: 24px; }
.facts article, .gazebo-grid article, .map-card, .card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.facts b, .gazebo-grid b { display: block; font-family: var(--serif); font-size: 1.3rem; }
.sec-head { margin-bottom: 24px; max-width: 640px; }
.sec-head .btn { margin-top: 12px; }
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.card { flex: 0 1 calc((100% - 32px) / 3); max-width: calc((100% - 32px) / 3); min-width: 0; overflow: hidden; }
.cards.two .card { flex: 0 1 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
.card h3 { margin: 12px 0 6px; }
.card > p { white-space: normal; }
.nb { white-space: nowrap; }
.card .nb, .card p, .card h3 {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: 100%;
}

.card-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 18px;
}
.card-photo.is-vert { aspect-ratio: 3 / 4; }
.card-photo.is-horiz { aspect-ratio: 16 / 10; }
.tree-frame { transform: rotate(-4deg); border-radius: 18px; }
.bloom-frame { transform: rotate(4deg); border-radius: 18px; }
.card-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.ticks { padding-left: 18px; }
.tree.oak.tall { position: relative; width: 100%; max-width: 520px; transform: none; }
.tree.oak.tall.is-horiz { aspect-ratio: 16 / 10; height: auto; }
.tree.oak.tall.is-vert { aspect-ratio: 3 / 4; height: auto; }

.tariff { width: 100%; max-width: 100%; border-collapse: collapse; margin: 16px 0; table-layout: fixed; }
.tariff th, .tariff td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; overflow-wrap: anywhere; }
.pool-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  box-shadow: var(--shadow);
}
.pool-photo {
  margin: 0;
  padding: 0;
  border: 0;
  background: #06100b;
  cursor: pointer;
  overflow: hidden;
  min-height: 260px;
  min-width: 0;
}
.pool-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.pool-body {
  padding: 28px 24px 24px;
  min-width: 0;
  overflow: hidden;
}
.pool-body h2 { margin-top: 0; }
.pool-body .btn { margin-top: 4px; }
.gazebo-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; }

.gallery-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  overflow: visible;
  margin-top: 16px;
}
.gallery-row[hidden] { display: none; }
.gallery-row figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  cursor: pointer;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 1;
  transform: none;
}
.gallery-row figure.is-horiz { aspect-ratio: 16 / 10; }
.gallery-row figure.is-vert { aspect-ratio: 3 / 4; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 0.92rem; }
input, select, textarea {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.check { display: flex; align-items: center; gap: 8px; }
.form-note { min-height: 1.4em; color: var(--sun); }
.tiny { color: var(--muted); font-size: 0.82rem; }
.foot { border-top: 1px solid var(--line); padding: 24px 0; }
.foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.cookie.show { display: flex; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 10, 7, 0.62);
}
.modal.open { display: grid; }
.sheet {
  width: min(640px, 100%);
  max-height: 86vh;
  overflow: auto;
  padding: 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  position: relative;
}
.sheet.light { width: min(860px, 100%); padding-top: 44px; }
.sheet.light img { width: 100%; border-radius: 12px; }
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 1;
  border: 1px solid color-mix(in srgb, var(--sun) 45%, var(--line));
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--ink);
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  color: var(--ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}
.lb-nav.prev { left: 10px; }
.lb-nav.next { right: 10px; }
.to-top {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 22;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; pointer-events: auto; }

html {
  scrollbar-width: thin;
  scrollbar-color: #c9a24a #0d1a13;
}
html::-webkit-scrollbar { width: 8px; height: 8px; }
html::-webkit-scrollbar-track { background: #0d1a13; }
html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3d7a4a, #1f4d32);
  border-radius: 999px;
  border: 2px solid #0d1a13;
}
html::-webkit-scrollbar-thumb:hover { background: #e4c36a; }
.sheet::-webkit-scrollbar { width: 6px; }
.sheet::-webkit-scrollbar-thumb {
  background: #3d7a4a;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .nav, .top-actions .phone { display: none; }
  .burger { display: inline-flex; }
  .top {
    padding: 10px 14px;
    gap: 10px;
  }
  .top-actions {
    position: static;
    top: auto;
    right: auto;
    z-index: 1;
    margin-left: auto;
    flex-shrink: 0;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(16px);
  }
  .brand { min-width: 0; }
  .brand-mark { width: 36px; height: 36px; }
  .ghost { padding: 6px 10px; }
  .hero, .split, .facts, .gazebo-grid, .pool-card { grid-template-columns: 1fr; }
  .pool-photo { min-height: 0; aspect-ratio: 16 / 10; border-radius: 22px 22px 0 0; }
  .nb { white-space: normal; }
  .card, .cards.two .card { flex: 0 1 calc((100% - 16px) / 2); max-width: calc((100% - 16px) / 2); }
  .hero .grove { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: repeat(3, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .gazebo-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .card, .cards.two .card { flex: 0 1 100%; max-width: 100%; }
  .hero { margin-top: 16px; }
  .reel { height: min(38vh, 280px); }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .grove { grid-template-columns: 1fr 1fr; }
  .cookie { flex-direction: column; align-items: stretch; }
  .foot .wrap { flex-direction: column; }
}

@media (max-width: 960px) {
  html, body {
    overflow-x: hidden;
    scrollbar-width: none;
    padding-right: 0;
    margin-right: 0;
  }
  html::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .wm-bar, .top, main, .reel, .hero, .strip, .panel, .foot, .cards, .grove, .duo, .wrap {
    max-width: 100%;
    overflow-x: hidden;
  }
  body { padding-top: 90px; }
  .top {
    position: fixed;
    top: 32px;
    left: 0;
    right: 0;
    padding: 10px 12px;
  }
  .top-actions { margin-left: auto; padding: 3px; }
  .tree-frame, .bloom-frame { transform: none; }
  .nb { white-space: normal; }
  .card { overflow: hidden; }
  .hero-meta { flex-wrap: wrap; }
  .hero { width: 100%; margin-left: 0; margin-right: 0; padding: 0 16px; box-sizing: border-box; }
}
