/* ==========================================================================
   Layan Chak Nok — HERITAGE
   Палитра и шрифты — HERITAGE Brand System 1.0
   ========================================================================== */

:root {
  --limestone: #EEE9DE;
  --limestone-2: #F5F2EB;
  --forest: #173C32;
  --forest-2: #0F2B23;
  --forest-3: #24584A;
  --teak: #765A43;
  --teak-2: #5F4734;
  --charcoal: #252B28;
  --sage: #ABB8A4;
  --sage-surface: #DCDFD1;
  --muted: #56625B;
  --line: rgba(23, 60, 50, .16);
  --line-strong: rgba(23, 60, 50, .32);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 88px);
  --gap: clamp(16px, 2vw, 32px);
  --hh: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--limestone);
  color: var(--charcoal);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
.baht {
  font-family: "Thonburi", "Leelawadee UI", "Noto Sans Thai", "Sukhumvit Set", var(--sans);
  font-weight: 300; font-style: normal; font-size: .78em; letter-spacing: 0;
}
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 500; }
::selection { background: var(--forest); color: var(--limestone); }
:focus-visible { outline: 2px solid var(--teak); outline-offset: 3px; }

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

.wrap { width: 100%; max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(96px, 12vw, 190px) 0; }

/* ---------- Type ---------- */
.label {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 clamp(22px, 2.4vw, 34px);
  font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--forest);
}
.label span {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 16px/1 var(--serif); letter-spacing: 0; color: var(--teak);
}
.label span::after { content: ""; width: 40px; height: 1px; background: currentColor; opacity: .55; }
.label--light { color: var(--limestone); }
.label--light span { color: var(--sage); }

.title {
  font: 500 clamp(42px, 5.4vw, 88px)/.98 var(--serif);
  letter-spacing: -.02em;
  color: var(--forest);
}
.title em { font-style: italic; }
.title .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.title .line > span { display: inline-block; }
.title--light { color: var(--limestone); }

.lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  max-width: 44ch;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--forest);
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line-strong);
  font-weight: 500; color: var(--forest);
  transition: gap .5s var(--ease), border-color .4s;
}
.link-arrow i { font-style: normal; }
.link-arrow:hover { gap: 20px; border-color: var(--forest); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  height: 56px; padding: 0 26px;
  font: 500 15px/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn i { font-style: normal; font-size: 16px; transition: transform .5s var(--ease); }
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover i { transform: translate(3px, -3px); }

.btn--teak { background: var(--teak); color: #fff; }
.btn--teak::before { background: var(--forest); }
.btn--line { border: 1px solid var(--line-strong); color: var(--forest); }
.btn--line::before { background: var(--forest); }
.btn--line:hover { color: var(--limestone); border-color: var(--forest); }
.btn--light { background: var(--limestone); color: var(--forest); }
.btn--light::before { background: var(--teak); }
.btn--light:hover { color: #fff; }
.btn--sm { height: 46px; padding: 0 20px; font-size: 14px; gap: 14px; }
.btn--full { width: 100%; justify-content: space-between; }

/* ---------- Loader ---------- */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--forest); color: var(--limestone);
  animation: loader-fallback 0s 7s forwards;
}
@keyframes loader-fallback { to { visibility: hidden; opacity: 0; } }
.loader__inner { display: grid; justify-items: center; gap: 30px; }
.loader__mark { width: 88px; height: 88px; overflow: visible; }
.loader__mark use { fill: var(--limestone); fill-opacity: 0; stroke: var(--limestone); stroke-width: 5; }
.loader__meta {
  display: flex; justify-content: space-between; width: 260px;
  font: 500 11px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase;
}
.loader__num { font-variant-numeric: tabular-nums; color: var(--sage); }
.loader__bar { width: 260px; height: 1px; background: rgba(238, 233, 222, .18); }
.loader__bar i { display: block; height: 100%; background: var(--limestone); transform: scaleX(0); transform-origin: left; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  height: var(--hh); padding: 0 var(--gutter);
  color: var(--forest);
  transition: background-color .5s var(--ease), transform .7s var(--ease), box-shadow .5s, color .4s;
}
.header.is-solid {
  background: rgba(238, 233, 222, .84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo { position: relative; flex: none; width: 168px; }
.header__logo img { width: 168px; height: auto; transition: opacity .4s; }
.header__logo .logo-light { position: absolute; inset: 0; opacity: 0; }
.header__nav { display: flex; gap: clamp(18px, 2vw, 34px); margin-left: auto; font-size: 14px; font-weight: 500; }
.header__nav a { position: relative; padding: 6px 0; }
.header__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { flex: none; }

.burger { display: none; position: relative; width: 46px; height: 46px; margin-left: auto; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 27px; }

.menu-open .header { color: var(--limestone); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; transform: none; }
.menu-open .header .logo-dark { opacity: 0; }
.menu-open .header .logo-light { opacity: 1; }
.menu-open .header__cta { opacity: 0; pointer-events: none; }
.menu-open .burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 49;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: calc(var(--hh) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--forest); color: var(--limestone);
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
  overflow-y: auto;
}
.menu-open .menu { clip-path: inset(0); visibility: visible; transition: clip-path .8s var(--ease), visibility 0s; }
.menu__nav a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 8px 0; border-bottom: 1px solid rgba(238, 233, 222, .1);
  font: 500 clamp(36px, 8.5vw, 64px)/1.1 var(--serif); letter-spacing: -.01em;
}
.menu__nav small { font: 500 12px/1 var(--sans); color: var(--sage); }
.menu__foot { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; color: rgba(238, 233, 222, .8); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  height: 100vh; height: 100svh; min-height: 620px;
  background: #c9d6e2;
}
.hero__zoom, .hero__stage { position: absolute; inset: 0; transform-origin: 50% 40%; }
.hero__img, .hero__cut {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--hero-pos, 50% 30%);
}
.hero__word {
  position: absolute; z-index: 1; left: 0; right: 0;
  top: var(--word-top, calc(var(--hh) + 1.5vh));
  display: flex; justify-content: center;
  overflow: hidden; padding: .04em 0 .02em;
  font: 500 var(--word-size, 25vw)/.82 var(--serif);
  letter-spacing: -.012em;
  color: var(--forest);
  user-select: none; pointer-events: none;
}
.hero__word.is-left { justify-content: flex-start; padding-left: calc(var(--gutter) - .04em); }
.hero__word span { display: inline-block; will-change: transform; }
.hero__cut { z-index: 2; pointer-events: none; }
.hero__fade {
  position: absolute; z-index: 3; inset: auto 0 0; height: 50%;
  background: linear-gradient(to top,
    var(--limestone) 0%,
    rgba(238, 233, 222, .93) 30%,
    rgba(238, 233, 222, .55) 62%,
    rgba(238, 233, 222, 0) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute; z-index: 4; inset: auto 0 0;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 48px;
  padding: 0 var(--gutter) clamp(36px, 6.5vh, 76px);
}
.hero__title {
  margin: 18px 0 30px;
  font: 500 clamp(40px, 4.5vw, 76px)/1 var(--serif);
  letter-spacing: -.02em;
  color: var(--forest);
}
.hero__title em { font-style: italic; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: grid; gap: 16px; min-width: 250px; margin: 0; }
.hero__meta div { padding-top: 10px; border-top: 1px solid var(--line-strong); }
.hero__meta dt { font: 500 11px/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__meta dd { margin: 6px 0 0; font: 500 28px/1.05 var(--serif); color: var(--forest); }
.hero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: 26px;
  width: 1px; height: 54px; background: var(--line-strong); overflow: hidden;
}
.hero__scroll span {
  position: absolute; left: 0; top: 0; width: 1px; height: 40%; background: var(--forest);
  animation: scroll-cue 2.2s var(--ease) infinite;
}
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--forest); color: var(--limestone); padding: 22px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee__group {
  display: flex; align-items: center; gap: 34px; padding-right: 34px;
  font: 500 clamp(22px, 2.1vw, 32px)/1 var(--serif); white-space: nowrap;
}
.marquee__group span:nth-child(4n+1) { font-style: italic; }
.marquee b { flex: none; width: 7px; height: 7px; background: var(--sage); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.manifesto {
  max-width: 1280px; margin: 0 0 clamp(64px, 9vw, 150px);
  font: 500 clamp(32px, 4.1vw, 68px)/1.08 var(--serif);
  letter-spacing: -.015em; color: var(--forest);
}
.manifesto em { font-style: italic; color: var(--teak); }
.about__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap); align-items: start;
}
.about__text { grid-column: 1 / 5; grid-row: 1; padding-top: clamp(0px, 4vw, 70px); }
.about__text p { max-width: 42ch; color: var(--muted); }
.about__text .link-arrow { margin-top: 12px; }
.about__big { grid-column: 6 / 13; grid-row: 1; margin: 0; aspect-ratio: 4 / 3.1; overflow: hidden; }
.about__small {
  grid-column: 5 / 8; grid-row: 1; align-self: end; z-index: 2;
  margin: 0 0 -16% 0; aspect-ratio: 3 / 4; overflow: hidden;
  border: clamp(6px, .8vw, 12px) solid var(--limestone);
}
.about__big img, .about__small img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Facts ---------- */
.facts { padding: clamp(90px, 9vw, 150px) 0 clamp(96px, 10vw, 160px); }
.facts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.fact { padding: 30px 24px 34px 0; border-bottom: 1px solid var(--line); }
.fact strong {
  display: block; white-space: nowrap;
  font: 500 clamp(46px, 5.2vw, 84px)/1 var(--serif); letter-spacing: -.02em;
  color: var(--forest); font-variant-numeric: lining-nums;
}
.fact strong small { margin-left: .14em; font-size: .38em; letter-spacing: 0; color: var(--teak); }
.fact > span { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); }

/* ---------- Expand ---------- */
.expand { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--limestone); }
.expand__frame { position: absolute; inset: 0; overflow: hidden; }
.expand__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform-origin: 50% 40%; }
.expand__shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 43, 35, .62) 0%, rgba(15, 43, 35, .12) 55%, rgba(15, 43, 35, 0) 100%); }
.expand__title {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 9vh, 100px);
  font: 500 clamp(44px, 7.2vw, 128px)/.95 var(--serif); letter-spacing: -.025em;
  color: var(--limestone);
}
.expand__title span { display: inline-block; }

/* ---------- Villas / features ---------- */
.villas { background: var(--limestone-2); position: relative; }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; }
.section-head .label { grid-column: 1 / -1; }
.section-head .title { grid-column: 1 / 8; }
.section-head .lead { grid-column: 9 / 13; margin: 0; }

.features { list-style: none; margin: clamp(56px, 7vw, 110px) 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.feature {
  position: relative;
  display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--gap); align-items: center;
  padding: clamp(24px, 2.6vw, 38px) 0; border-bottom: 1px solid var(--line);
}
.feature::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--forest);
  transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease);
}
.feature__n { font: 500 15px/1 var(--serif); color: var(--teak); }
.feature h3 {
  font: 500 clamp(30px, 3.3vw, 54px)/1.02 var(--serif); letter-spacing: -.015em; color: var(--forest);
  transition: transform .7s var(--ease);
}
.feature p { margin: 0; max-width: 44ch; color: var(--muted); }
.feature__thumb { display: none; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover::after { transform: scaleX(1); }
  .feature:hover h3 { transform: translateX(22px); }
}
.hover-preview {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: clamp(240px, 22vw, 360px); aspect-ratio: 4 / 5;
  pointer-events: none; visibility: hidden;
}
.hover-preview__inner { position: absolute; inset: 0; overflow: hidden; background: var(--sage); }
.hover-preview__inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hover-preview__inner img.is-on { opacity: 1; }

/* ---------- Horizontal gallery ---------- */
.hgal { position: relative; background: var(--forest-2); color: var(--limestone); overflow: hidden; }
.hgal__pin { position: relative; height: 100vh; height: 100svh; min-height: 640px; display: flex; align-items: center; }
.hgal__track {
  display: flex; align-items: center; gap: clamp(24px, 3vw, 56px);
  height: 100%; padding: 0 var(--gutter); will-change: transform;
}
.hgal__intro { flex: 0 0 clamp(320px, 31vw, 480px); margin-right: clamp(24px, 5vw, 110px); }
.hgal__intro .title { margin-bottom: 28px; }
.hgal__intro > p { color: rgba(238, 233, 222, .74); max-width: 38ch; }
.hgal__intro .btn { margin-top: 12px; }
.hgal__hint {
  display: flex; gap: 12px; align-items: center; margin-top: 44px;
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--sage);
}
.hgal__hint i { font-style: normal; animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.hgal__item { flex: none; margin: 0; align-self: center; }
.hgal__item--low { align-self: flex-end; margin-bottom: 15vh; }
.hgal__item--high { align-self: flex-start; margin-top: 13vh; }
.hgal__item button { display: block; width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; background: var(--forest); }
.hgal__item img { width: 116%; max-width: none; height: 100%; margin-left: -8%; object-fit: cover; transition: filter .6s; }
.hgal__item--w { width: min(46vw, 820px); }
.hgal__item--w button { height: min(56vh, 540px); }
.hgal__item--m { width: min(34vw, 600px); }
.hgal__item--m button { height: min(48vh, 460px); }
.hgal__item--t { width: min(25vw, 420px); }
.hgal__item--t button { height: min(62vh, 600px); }
.hgal__item figcaption {
  display: flex; gap: 14px; margin-top: 14px;
  font-size: 14px; color: rgba(238, 233, 222, .78);
}
.hgal__item figcaption span { font-family: var(--serif); color: var(--sage); }
.hgal__end { flex: 0 0 300px; padding-right: var(--gutter); }
.hgal__end p { font: 500 italic 24px/1.25 var(--serif); color: rgba(238, 233, 222, .7); }
.hgal__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 34px; height: 1px; background: rgba(238, 233, 222, .16); }
.hgal__bar i { display: block; height: 100%; background: var(--limestone); transform: scaleX(0); transform-origin: left; }

/* ---------- Plans ---------- */
.section-head--row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.tabs { position: relative; display: flex; padding: 5px; border: 1px solid var(--line-strong); }
.tabs button {
  position: relative; z-index: 1; padding: 14px 28px;
  font-size: 15px; font-weight: 500; color: var(--forest); transition: color .45s var(--ease);
}
.tabs button.is-active { color: var(--limestone); }
.tabs__ink {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0;
  background: var(--forest); transition: transform .6s var(--ease), width .6s var(--ease);
}
.no-ink .tabs__ink { display: none; }
.no-ink .tabs button.is-active { background: var(--forest); }

.plan-panels { margin-top: clamp(48px, 6vw, 96px); }
.plan {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 100px); align-items: center;
}
.plan + .plan { margin-top: 80px; }
.js .plan:not(.is-active) { display: none; }
.js .plan + .plan { margin-top: 0; }
.plan__type {
  margin: 0 0 30px;
  font: 500 clamp(80px, 10vw, 170px)/.8 var(--serif); letter-spacing: -.03em; color: var(--forest);
}
.plan__type em { color: var(--teak); }
.plan__specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 26px; }
.plan__specs div { padding: 14px 0; border-top: 1px solid var(--line); }
.plan__specs dt { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan__specs dd { margin: 6px 0 0; font: 500 clamp(24px, 2vw, 30px)/1.1 var(--serif); color: var(--forest); }
.plan__note { max-width: 46ch; color: var(--muted); margin-bottom: 30px; }
.plan__img {
  display: block; width: 100%; padding: clamp(10px, 1.6vw, 24px);
  background: #fff; cursor: zoom-in;
  box-shadow: 0 40px 90px -50px rgba(23, 60, 50, .45);
  overflow: hidden;
}
.plan__img img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.plan__img:hover img { transform: scale(1.025); }

/* ---------- Location ---------- */
.location { background: var(--forest); color: var(--limestone); }
.location__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: center; }
.location .title { margin-bottom: 28px; }
.location .lead { color: rgba(238, 233, 222, .74); }
.dist { list-style: none; margin: 44px 0 0; padding: 0; }
.dist li {
  position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: baseline; gap: 16px;
  padding: 18px 0;
}
.dist__t { font: 500 14px/1 var(--sans); color: var(--sage); white-space: nowrap; }
.dist__t b { margin-right: 6px; font: 500 36px/1 var(--serif); color: var(--limestone); }
.dist__name { font-size: 17px; }
.dist__line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(238, 233, 222, .12); }
.dist__line i { display: block; height: 100%; background: var(--sage); transform-origin: left; }
.location__map { position: relative; margin: 0; aspect-ratio: 5 / 5.4; overflow: hidden; background: var(--forest-3); }
.location__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.55) sepia(.18) contrast(1.02); }
.map-btn {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; gap: 12px; align-items: center;
  padding: 15px 20px; background: var(--limestone); color: var(--forest);
  font-weight: 500; font-size: 14px; transition: background .4s, color .4s;
}
.map-btn i { font-style: normal; }
.map-btn:hover { background: var(--teak); color: #fff; }

/* ---------- Price ---------- */
.price__top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: end;
  padding-bottom: clamp(56px, 7vw, 110px); border-bottom: 1px solid var(--line-strong);
}
.price__from { margin: 0; font: italic 500 clamp(28px, 3vw, 48px)/1 var(--serif); color: var(--teak); }
.price__num {
  margin: 0; white-space: nowrap;
  font: 500 clamp(58px, 10.4vw, 188px)/.92 var(--serif); letter-spacing: -.035em;
  color: var(--forest); font-variant-numeric: lining-nums;
}
.price__num small { margin-left: .08em; font-size: .4em; color: var(--teak); letter-spacing: 0; }
.price__desc { margin: 18px 0 0; color: var(--muted); }
.price__aside { padding-bottom: 8px; }
.price__aside > p { color: var(--muted); max-width: 40ch; margin: 0; }
.price__done { display: grid; gap: 6px; padding: 18px 0; margin-bottom: 22px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.price__done span { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.price__done strong { font: 500 40px/1 var(--serif); color: var(--forest); }

.price__plan-title { margin: clamp(56px, 7vw, 100px) 0 44px; font: 500 clamp(30px, 2.8vw, 44px)/1 var(--serif); color: var(--forest); }
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.steps__line { position: absolute; top: 6px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.steps__line i { display: block; height: 100%; background: var(--forest); transform-origin: left; }
.step { position: relative; padding-top: 38px; }
.step__dot {
  position: absolute; z-index: 1; top: 0; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--limestone); border: 1px solid var(--forest); transition: background .5s var(--ease), transform .5s var(--ease);
}
.step.is-on .step__dot { background: var(--forest); transform: scale(1.15); }
.step__k { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teak); }
.step strong { display: block; margin: 12px 0 12px; font: 500 clamp(40px, 4.2vw, 68px)/1 var(--serif); letter-spacing: -.02em; color: var(--forest); white-space: nowrap; }
.step p { margin: 0; max-width: 26ch; font-size: 15px; color: var(--muted); }

.split { margin-top: clamp(56px, 7vw, 100px); padding: clamp(22px, 3vw, 44px); background: var(--limestone-2); }
.split__bar { display: flex; gap: 4px; height: 64px; }
.split__bar span {
  flex: var(--w) 1 0; display: flex; align-items: center; padding: 0 18px;
  background: var(--forest); color: var(--limestone); transform-origin: left;
}
.split__bar span:nth-child(2) { background: var(--forest-3); }
.split__bar span:nth-child(3) { background: var(--teak); }
.split__bar b { font: 500 22px/1 var(--serif); }
.split__calc { display: grid; grid-template-columns: 30fr 50fr 20fr; gap: 4px; margin: 18px 0 0; }
.split__calc div { padding-right: 16px; }
.split__calc dt { font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.split__calc dd { margin: 6px 0 0; font: 500 clamp(22px, 1.9vw, 30px)/1.15 var(--serif); color: var(--forest); }
.split__calc dd small { display: block; margin-top: 6px; font: 400 14px/1.4 var(--sans); color: var(--muted); }
.split__note { margin: 24px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- Why HERITAGE ---------- */
.why { background: var(--sage-surface); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); }
.why__mark { width: clamp(64px, 6vw, 104px); height: auto; margin-bottom: 44px; fill: var(--forest); overflow: visible; }
.why__list { list-style: none; margin: 0; padding: 0; }
.why__list li {
  display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 0 24px;
  padding: 32px 0; border-top: 1px solid rgba(23, 60, 50, .2);
}
.why__list li:last-child { border-bottom: 1px solid rgba(23, 60, 50, .2); }
.why__list span { grid-row: span 2; font: 500 16px/1.6 var(--serif); color: var(--teak); }
.why__list h3 { margin-bottom: 10px; font: 500 clamp(28px, 2.4vw, 38px)/1.1 var(--serif); color: var(--forest); }
.why__list p { margin: 0; max-width: 52ch; color: var(--charcoal); }

/* ---------- Contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(96px, 12vw, 180px) 0; background: var(--forest-2); color: var(--limestone); }
.contact__bg { position: absolute; inset: -10% 0; z-index: -1; }
.contact__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; filter: grayscale(.35); }
.contact__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest-2) 25%, rgba(15, 43, 35, .72) 70%, rgba(15, 43, 35, .55)); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 120px); align-items: start; }
.contact .title { margin-bottom: 28px; }
.contact .lead { color: rgba(238, 233, 222, .76); }
.contact__list { list-style: none; margin: 40px 0 0; padding: 0; max-width: 560px; }
.contact__list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 15px 0; border-top: 1px solid rgba(238, 233, 222, .14); }
.contact__list span { font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.contact__list a, .contact__list p { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.contact__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.contact__list a:hover { background-size: 100% 1px; }

.form { padding: clamp(26px, 3.4vw, 52px); background: var(--limestone); color: var(--charcoal); }
.form__title { margin: 0 0 26px; font: 500 clamp(30px, 2.6vw, 42px)/1 var(--serif); color: var(--forest); }
.field { display: block; margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > span, .field legend {
  display: block; margin-bottom: 4px; padding: 0;
  font: 500 11px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.field input, .field select {
  width: 100%; height: 50px; padding: 0;
  border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
  background: transparent; color: var(--charcoal);
  font: 400 17px/1 var(--sans); outline: none;
  transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #7d8781; }
.field input:focus, .field select:focus { border-color: var(--forest); }
.field input[aria-invalid="true"] { border-color: #9b3b2a; }
.field select {
  cursor: pointer; padding-right: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23173C32' stroke-width='1.4'/%3E%3C/svg%3E") right 4px center / 12px no-repeat;
}
.field--radio { display: flex; flex-wrap: wrap; gap: 8px; }
.field--radio legend { width: 100%; margin-bottom: 10px; float: left; }
.field--radio label { position: relative; cursor: pointer; }
.field--radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.field--radio label span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); font-size: 15px; font-weight: 500; color: var(--forest);
  transition: background .35s, color .35s, border-color .35s;
}
.field--radio input:checked + span { background: var(--forest); border-color: var(--forest); color: var(--limestone); }
.field--radio input:focus-visible + span { outline: 2px solid var(--teak); outline-offset: 2px; }
.form .btn { margin-top: 10px; }
.form__note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.form__error { margin: 12px 0 0; font-size: 14px; color: #9b3b2a; }

/* ---------- Footer ---------- */
.footer { padding: clamp(72px, 8vw, 120px) 0 40px; background: var(--forest-2); color: rgba(238, 233, 222, .78); border-top: 1px solid rgba(238, 233, 222, .08); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(238, 233, 222, .12); }
.footer__logo { width: min(360px, 72vw); height: auto; }
.footer__top p { max-width: 36ch; margin: 0; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); padding: 48px 0; }
.footer__cols a { display: block; width: fit-content; padding: 5px 0; transition: color .3s; overflow-wrap: anywhere; }
.footer__cols a:hover { color: var(--limestone); }
.footer__cols p { margin: 5px 0 0; }
.footer__h { margin: 0 0 14px !important; font: 500 11px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid rgba(238, 233, 222, .12); font-size: 13px; }
.footer__legal { max-width: 92ch; margin: 22px 0 0; font-size: 12px; color: rgba(238, 233, 222, .55); }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { display: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; overflow: hidden;
}
.lightbox::backdrop { background: rgba(10, 26, 22, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.lightbox__close {
  position: fixed; top: 18px; right: 22px; z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(238, 233, 222, .4); color: var(--limestone);
  font: 300 30px/1 var(--sans); transition: background .3s, color .3s;
}
.lightbox__close:hover { background: var(--limestone); color: var(--forest); }

@media (hover: none), (pointer: coarse) { .hover-preview { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 70;
  max-width: min(520px, calc(100vw - 32px)); padding: 16px 22px;
  background: var(--charcoal); color: var(--limestone); font-size: 15px;
  transform: translate(-50%, calc(100% + 60px)); visibility: hidden;
  transition: transform .6s var(--ease), visibility 0s .6s;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease), visibility 0s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  .header__nav { display: none; }
  .burger { display: block; margin-left: 0; }
  .header__cta { margin-left: auto; }
}

@media (max-width: 1100px) {
  .section-head .title { grid-column: 1 / -1; }
  .section-head .lead { grid-column: 1 / -1; margin-top: 8px; }
  .feature { grid-template-columns: 60px minmax(0, 1fr); }
  .feature p { grid-column: 2; }
}

@media (max-width: 900px) {
  :root { --hh: 72px; }
  body { font-size: 16px; }

  .hero { --hero-pos: 64% 50%; min-height: 560px; }
  .hero__fade { height: 62%; }
  .hero__content { flex-direction: column; align-items: stretch; gap: 22px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .hero__title { margin: 14px 0 22px; font-size: clamp(36px, 9.6vw, 52px); }
  .hero__actions .btn--line { display: none; }
  .hero__actions .btn--teak { flex: 1; justify-content: space-between; }
  .hero__meta { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; min-width: 0; }
  .hero__meta dt { font-size: 10px; letter-spacing: .1em; }
  .hero__meta dd { font-size: 20px; }
  .hero__scroll { display: none; }

  .about__grid { grid-template-columns: 1fr; gap: 0; }
  .about__text, .about__big, .about__small { grid-column: 1; grid-row: auto; }
  .about__text { padding-top: 0; margin-bottom: 40px; }
  .about__small { width: 52%; justify-self: end; margin: -22% 6% 0 0; }

  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding-right: 12px; }
  .fact strong { font-size: clamp(38px, 10.5vw, 60px); }
  .fact > span { font-size: 14px; }

  .feature { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 18px; align-items: start; }
  .feature__n { grid-column: 1; }
  .feature h3 { grid-column: 1; }
  .feature p { grid-column: 1; font-size: 15px; }
  .feature__thumb { display: block; grid-column: 2; grid-row: 1 / span 3; width: 96px; height: 120px; object-fit: cover; }

  .hgal__pin { height: auto; min-height: 0; display: block; padding: 96px 0 72px; }
  .hgal__track {
    height: auto; align-items: stretch; gap: 14px; padding: 0 var(--gutter) 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .hgal__track::-webkit-scrollbar { display: none; }
  .hgal__intro { flex: 0 0 86vw; margin-right: 10px; scroll-snap-align: start; }
  .hgal__item, .hgal__item--low, .hgal__item--high { align-self: flex-start; margin: 0; scroll-snap-align: center; }
  .hgal__item--w, .hgal__item--m { width: 82vw; }
  .hgal__item--w button, .hgal__item--m button { height: 62vw; }
  .hgal__item--t { width: 62vw; }
  .hgal__item--t button { height: 82vw; }
  .hgal__item img { width: 100%; margin-left: 0; }
  .hgal__end { flex: 0 0 70vw; align-self: center; }
  .hgal__bar { display: none; }
  .hgal__hint { margin-top: 28px; }

  .tabs { width: 100%; }
  .tabs button { flex: 1; padding: 14px 8px; }
  .plan { grid-template-columns: 1fr; }
  .plan__img { order: -1; }
  .plan__type { font-size: 76px; margin-bottom: 20px; }

  .location__grid { grid-template-columns: 1fr; }
  .location__map { aspect-ratio: 4 / 4.4; }
  .dist li { grid-template-columns: 112px minmax(0, 1fr); }
  .dist__t b { font-size: 30px; }

  .price__top { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .steps__line { top: 6px; bottom: 6px; left: 6px; right: auto; width: 1px; height: auto; }
  .steps__line i { width: 100%; height: 100%; transform-origin: top; }
  .step { padding: 0 0 34px; }
  .step__dot { left: -34px; }
  .step strong { margin: 8px 0; }
  .split__bar { height: 52px; }
  .split__bar span { padding: 0 10px; }
  .split__bar b { font-size: 18px; }
  .split__calc { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }

  .why__grid { grid-template-columns: 1fr; }
  .why__mark { margin-bottom: 28px; }
  .why__list li { grid-template-columns: 44px minmax(0, 1fr); }

  .contact__grid { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 96px minmax(0, 1fr); }
  .contact__bg::after { background: linear-gradient(180deg, var(--forest-2) 20%, rgba(15, 43, 35, .82)); }

  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }

  .sticky-cta {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    transform: translateY(160%); transition: transform .6s var(--ease);
  }
  .sticky-cta.is-on { transform: none; }
  .sticky-cta a { display: grid; place-items: center; height: 52px; font-weight: 500; font-size: 15px; box-shadow: 0 12px 30px -12px rgba(15, 43, 35, .5); }
  .sticky-cta__wa { background: var(--teak); color: #fff; }
  .sticky-cta__call { background: var(--forest); color: var(--limestone); }
  .menu-open .sticky-cta { transform: translateY(160%); }
}

@media (max-width: 600px) {
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .header__logo, .header__logo img { width: 160px; }
  .btn { height: 54px; }
  .contact__list li { grid-template-columns: 1fr; gap: 4px; }
  .plan__specs { gap: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
}
