/* ============================================================
   VILLA BOND — Rawai · Phuket
   Светлый тропик-editorial: тёплый крем, графит, терракота
   ============================================================ */

:root {
  --bg: #FAF7F2;
  --bg-alt: #F3EDE2;
  --ink: #211E1A;
  --ink-soft: #4A443D;
  --ink-mute: #6E675D;
  --line: #E4DCCE;
  --accent: #BC5B39;
  --accent-dark: #A34C2E;
  --white: #FFFDF9;
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad-section: clamp(64px, 8vw, 108px);
  --pad-x: clamp(20px, 4vw, 48px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, .serif {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 380;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.num { font-variant-numeric: tabular-nums; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }

section { padding: var(--pad-section) 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.eyebrow .n { color: var(--accent); margin-right: 12px; }

.h2 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 28px; max-width: 16ch; }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.header.scrolled {
  background: rgba(250, 247, 242, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.header .brand {
  font-family: "Fraunces", serif; font-size: 19px; letter-spacing: 0.04em;
  color: var(--white); text-decoration: none; transition: color 0.4s;
}
.header .brand small {
  display: block; font-family: "Inter", sans-serif; font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; opacity: 0.75; margin-top: 2px;
}
.header.scrolled .brand { color: var(--ink); }
.header .nav-links { display: flex; align-items: center; }
.header .lang { font-size: 13px; letter-spacing: 0.1em; color: var(--white); text-decoration: none; opacity: 0.85; transition: color 0.4s, opacity 0.3s; }
.header .lang:hover { opacity: 1; }
.header.scrolled .lang { color: var(--ink-soft); }
.header .wa-top {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--white); text-decoration: none;
  border: 1px solid rgba(255, 253, 249, 0.5); border-radius: var(--radius);
  padding: 9px 18px; transition: all 0.4s var(--ease);
}
.header .wa-top:hover { background: var(--white); color: var(--ink); }
.header.scrolled .wa-top { color: var(--ink); border-color: var(--ink); }
.header.scrolled .wa-top:hover { background: var(--ink); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; padding: 0;
  display: flex; align-items: flex-end;
  overflow: hidden; background: #1a1713;
}
.hero-media { position: absolute; inset: 0; }
/* верхний скрим — читаемость шапки на светлых кадрах видео */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 1;
  background: linear-gradient(to bottom, rgba(18, 14, 10, 0.55), rgba(18, 14, 10, 0));
  pointer-events: none;
}
.hero-media video, .hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18, 14, 10, 0.82) 0%, rgba(18, 14, 10, 0.32) 45%, rgba(18, 14, 10, 0.22) 100%);
}
.hero-content {
  position: relative; z-index: 2; width: 100%;
  max-width: 1200px; margin: 0 auto;
  padding: 0 var(--pad-x) clamp(48px, 7vh, 88px);
  opacity: 0; transform: translateY(24px);
  animation: heroIn 1.1s var(--ease) 0.3s forwards;
}
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
.hero .eyebrow { color: rgba(250, 247, 242, 0.85); margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 80px);
  color: var(--white); max-width: 15ch; margin-bottom: 22px;
}
.hero .sub {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6;
  color: rgba(250, 247, 242, 0.88); max-width: 54ch; margin-bottom: 32px;
}
.hero-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 24px; font-size: 14px; letter-spacing: 0.04em;
  color: rgba(250, 247, 242, 0.72);
}
.hero-meta b { color: var(--white); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Inter", sans-serif; font-size: 15px; font-weight: 500;
  letter-spacing: 0.04em; text-decoration: none; cursor: pointer;
  padding: 17px 34px; border-radius: var(--radius);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s;
  border: none; min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255, 253, 249, 0.55);
}
.btn-ghost:hover { background: rgba(255, 253, 249, 0.12); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn svg { flex-shrink: 0; }

/* ---------- Facts ---------- */
.facts { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.facts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px; border-top: 1px solid var(--line); padding-top: 56px;
}
.fact .v {
  font-family: "Fraunces", serif; font-weight: 340;
  font-size: clamp(38px, 4.4vw, 58px); color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.fact .v sup { font-size: 0.45em; font-weight: 400; }
.fact .l {
  margin-top: 10px; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}

/* ---------- Story (editorial split) ---------- */
.story { background: var(--bg-alt); overflow: hidden; }
.story-grid {
  display: grid; grid-template-columns: 5fr 6fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.story-text p { margin-bottom: 22px; max-width: 46ch; }
.story-text p:last-child { margin-bottom: 0; }
.story-img { position: relative; }
.story-img img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius);
}
.story-img .cap {
  margin-top: 14px; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.04em;
}
.story-img--tall img { aspect-ratio: 3.4 / 4; }

/* ---------- Video tour ---------- */
.tour { }
.tour-frame {
  position: relative; border-radius: var(--radius); overflow: hidden;
  cursor: pointer; background: #14110d;
}
.tour-frame img, .tour-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tour-frame:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tour-frame .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 14, 10, 0.35); transition: background 0.4s var(--ease);
}
.tour-frame:hover .play { background: rgba(18, 14, 10, 0.22); }
.tour-frame .play-btn {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(250, 247, 242, 0.94); display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease);
}
.tour-frame:hover .play-btn { transform: scale(1.06); }
.tour-frame .dur {
  position: absolute; bottom: 20px; right: 24px; font-size: 13px; letter-spacing: 0.1em;
  color: rgba(250, 247, 242, 0.9); font-variant-numeric: tabular-nums;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
}
.gallery-grid a {
  display: block; overflow: hidden; border-radius: var(--radius);
  grid-column: span 2; position: relative;
}
/* ритм рядов: 3+3 / 2+2+2 / 3+3 / 2+2+2 / 3+3 / 3+3 — без пустых ячеек */
.gallery-grid a:nth-child(5n + 1), .gallery-grid a:nth-child(5n + 2),
.gallery-grid a:nth-child(13), .gallery-grid a:nth-child(14) { grid-column: span 3; }
.gallery-grid img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.gallery-grid a:hover img { transform: scale(1.035); }
.gallery-grid a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(20, 17, 13, 0.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button {
  position: absolute; background: none; border: none; color: rgba(250, 247, 242, 0.85);
  cursor: pointer; font-size: 34px; line-height: 1; padding: 18px; min-width: 44px; min-height: 44px;
  transition: color 0.3s;
}
.lightbox button:hover { color: var(--white); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: rgba(250, 247, 242, 0.7); font-size: 13px; letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Location ---------- */
.location { background: var(--bg-alt); }
.loc-grid {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.loc-list { list-style: none; border-top: 1px solid var(--line); }
.loc-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px 0; border-bottom: 1px solid var(--line); gap: 20px;
}
.loc-list .place { color: var(--ink); font-weight: 450; }
.loc-list .time {
  font-variant-numeric: tabular-nums; color: var(--ink-mute);
  font-size: 15px; white-space: nowrap;
}
.loc-note { margin-top: 26px; font-size: 15px; color: var(--ink-mute); max-width: 44ch; }
.loc-img svg { width: 100%; height: auto; }

/* ---------- Price ---------- */
.price-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
  border-top: 1px solid var(--line); padding-top: 56px;
}
.price-big {
  font-family: "Fraunces", serif; font-weight: 340;
  font-size: clamp(46px, 5.6vw, 76px); color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.05;
}
.price-conv { margin-top: 14px; font-size: 17px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.price-note { margin-top: 8px; font-size: 13px; color: var(--ink-mute); }
.price-list { list-style: none; }
.price-list li {
  padding: 16px 0 16px 34px; border-bottom: 1px solid var(--line);
  position: relative; color: var(--ink-soft);
}
.price-list li::before {
  content: ""; position: absolute; left: 4px; top: 26px;
  width: 14px; height: 1px; background: var(--accent);
}
.price-list li:first-child { padding-top: 4px; }
.price-list li:first-child::before { top: 14px; }

/* ---------- Price appraisal anchor ---------- */
.price-anchor {
  margin-top: 22px; display: inline-flex; align-items: baseline; gap: 12px;
  font-size: 14px; color: var(--ink-mute); flex-wrap: wrap;
}
.price-anchor .strike {
  text-decoration: line-through; text-decoration-color: var(--accent);
  text-decoration-thickness: 1px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.price-anchor .badge {
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-dark); background: rgba(188, 91, 57, 0.09);
  padding: 5px 11px; border-radius: 100px;
}

/* ---------- Investment ---------- */
.invest { background: var(--bg-alt); }
.invest-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px 32px; border-top: 1px solid var(--line);
  padding-top: 52px; margin-top: 8px;
}
.invest-stats .v {
  font-family: "Fraunces", serif; font-weight: 340;
  font-size: clamp(32px, 3.6vw, 48px); color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.invest-stats .v sup, .invest-stats .v .u { font-size: 0.46em; font-weight: 400; }
.invest-stats .l {
  margin-top: 12px; font-size: 13px; letter-spacing: 0.03em; color: var(--ink-mute); line-height: 1.4;
}
.invest-stats .src { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-mute); }

/* Calculator card */
.calc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 52px); margin-top: 56px;
}
.calc h3 {
  font-family: "Fraunces", serif; font-weight: 380; font-size: clamp(26px, 3vw, 38px);
  color: var(--ink); line-height: 1.1;
}
.calc .calc-sub {
  margin-top: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 40px;
}
.calc-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.calc-field .row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px;
}
.calc-field .row label { font-size: 15px; color: var(--ink-soft); }
.calc-field .row .val {
  font-family: "Fraunces", serif; font-size: 24px; color: var(--ink);
  font-variant-numeric: tabular-nums; font-weight: 380;
}
.calc-range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 2px;
  background: var(--line); border-radius: 2px; outline: none; cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); cursor: pointer; border: 4px solid var(--white);
  box-shadow: 0 2px 8px rgba(33, 30, 26, 0.22); transition: transform 0.2s var(--ease);
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-range::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent);
  cursor: pointer; border: 4px solid var(--white); box-shadow: 0 2px 8px rgba(33, 30, 26, 0.22);
}
.calc-range:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.calc-range:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 3px; }
.calc-results {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px;
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 40px;
}
.calc-results .v {
  font-family: "Fraunces", serif; font-weight: 340; font-size: clamp(28px, 3.2vw, 42px);
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -0.01em;
}
.calc-results .v .u { font-size: 0.5em; color: var(--ink-mute); }
.calc-results .v.accent { color: var(--accent-dark); }
.calc-results .l {
  margin-top: 12px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute);
}
.calc-foot {
  margin-top: 38px; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.calc-foot p { font-size: 13.5px; color: var(--ink-mute); max-width: 52ch; line-height: 1.6; }
.invest-note { margin-top: 40px; font-size: 14px; color: var(--ink-mute); max-width: 66ch; line-height: 1.65; }

/* Guest reviews (social proof) */
.reviews { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 48px; }
.reviews-label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: 36px;
}
.reviews-label b { color: var(--ink-soft); font-weight: 500; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; }
.review-stars { color: var(--accent); font-size: 15px; letter-spacing: 3px; margin-bottom: 16px; }
.review-q {
  font-family: "Fraunces", serif; font-weight: 380; font-size: clamp(18px, 1.9vw, 21px);
  line-height: 1.45; color: var(--ink); letter-spacing: -0.005em;
}
.review-by { margin-top: 18px; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.02em; }
.review-by .src { color: var(--ink-soft); }

/* ---------- Ownership ---------- */
.ownership .h2 { max-width: 20ch; }
.own-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 24px; }
.own-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px;
}
.own-card h3 { font-size: 21px; margin-bottom: 12px; }
.own-card p { font-size: 15.5px; color: var(--ink-soft); }
.own-foot { margin-top: 36px; font-size: 15.5px; color: var(--ink-mute); max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-alt); }
.faq-list { border-top: 1px solid var(--line); max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; padding: 26px 4px;
  font-family: "Fraunces", serif; font-size: clamp(18px, 2vw, 22px);
  color: var(--ink); transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item summary .ic {
  flex-shrink: 0; width: 30px; height: 30px; position: relative;
  transition: transform 0.45s var(--ease);
}
.faq-item summary .ic::before, .faq-item summary .ic::after {
  content: ""; position: absolute; background: var(--ink-mute); top: 50%; left: 50%;
}
.faq-item summary .ic::before { width: 16px; height: 1px; transform: translate(-50%, -50%); }
.faq-item summary .ic::after { width: 1px; height: 16px; transform: translate(-50%, -50%); }
.faq-item[open] summary .ic { transform: rotate(45deg); }
.faq-item .a { padding: 0 44px 28px 4px; max-width: 66ch; color: var(--ink-soft); }

/* ---------- Final CTA ---------- */
.contact { }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.contact .lead { max-width: 42ch; margin-bottom: 34px; }
.contact-wa { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.contact-wa .hint { font-size: 14px; color: var(--ink-mute); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 36px;
}
.form h3 { font-size: 22px; margin-bottom: 6px; }
.form .sub { font-size: 14.5px; color: var(--ink-mute); margin-bottom: 26px; }
.form label {
  display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px;
}
.form input, .form textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 22px; transition: border-color 0.3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 90px; }
.form .btn { width: 100%; justify-content: center; }
.form-ok {
  display: none; padding: 14px 16px; margin-top: 18px; font-size: 15px;
  background: #EFF5EC; border: 1px solid #CDDFC6; color: #3E5C33; border-radius: var(--radius);
}
.form-ok.show { display: block; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line); padding: 44px 0 110px;
  font-size: 14px; color: var(--ink-mute);
}
.footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer a { color: var(--ink-soft); text-decoration: none; }
.footer a:hover { color: var(--accent-dark); }

/* ---------- Sticky WhatsApp (mobile) ---------- */
.sticky-wa {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: none; justify-content: center;
  transform: translateY(120%); transition: transform 0.5s var(--ease);
}
.sticky-wa.visible { transform: translateY(0); }
.sticky-wa .btn { width: 100%; justify-content: center; box-shadow: 0 8px 28px rgba(33, 30, 26, 0.22); }

/* ---------- Story photo slider ---------- */
.story-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a1713; }
.story-slider .slides { display: flex; transition: transform 0.6s var(--ease); }
.story-slider .slides img {
  min-width: 100%; width: 100%; aspect-ratio: 3.4 / 4; object-fit: cover; display: block;
}
.story-slider .s-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(250, 247, 242, 0.9); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.story-slider .s-arrow:hover { background: var(--white); }
.story-slider .s-arrow.prev { left: 14px; }
.story-slider .s-arrow.next { right: 14px; }
.story-slider .s-arrow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.story-slider .s-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; gap: 8px;
}
.story-slider .s-dot {
  width: 7px; height: 7px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
  background: rgba(255, 253, 249, 0.5); transition: background 0.3s, transform 0.3s;
}
.story-slider .s-dot.active { background: var(--white); transform: scale(1.25); }
.story-slider .cap {
  margin-top: 14px; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.03em;
}

/* ---------- Nearby beaches ---------- */
.beaches { margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 60px); }
.beaches-label {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 28px;
}
.beach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.beach-card { }
.beach-card .ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(160deg, #CFE3DE 0%, #E7D6B6 100%);
  display: flex; align-items: flex-end; padding: 14px;
}
.beach-card .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.beach-card .ph .wave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(to top, rgba(18,14,10,0.35), transparent);
}
.beach-card .name {
  margin-top: 14px; font-family: "Fraunces", serif; font-size: 19px; color: var(--ink); font-weight: 380;
}
.beach-card .time {
  margin-top: 4px; font-size: 13.5px; color: var(--accent-dark); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--accent); z-index: 60; transition: width 0.1s linear;
}

/* ---------- Header nav links ---------- */
.header-right { display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a {
  font-size: 13px; letter-spacing: 0.05em; color: var(--white); text-decoration: none;
  opacity: 0.82; position: relative; padding: 4px 0; white-space: nowrap;
  transition: opacity 0.3s, color 0.4s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { opacity: 1; }
.header.scrolled .nav-links a { color: var(--ink-soft); }
.header.scrolled .nav-links a.active { color: var(--ink); }

/* Hamburger */
.nav-toggle {
  display: none; width: 30px; height: 22px; position: relative; background: none;
  border: none; cursor: pointer; padding: 0;
}
.nav-toggle span {
  position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--white);
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.4s;
}
.nav-toggle span:nth-child(1) { top: 2px; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 18px; }
.header.scrolled .nav-toggle span { background: var(--ink); }
body.menu-open .nav-toggle span { background: var(--ink); }
body.menu-open .nav-toggle span:nth-child(1) { top: 10px; transform: rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile fullscreen menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad-x); opacity: 0; visibility: hidden;
  transform: translateY(-12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0.4s;
}
body.menu-open { overflow: hidden; }
body.menu-open .header { z-index: 60; }
body.menu-open .brand { color: var(--ink); }
body.menu-open .wa-top { display: none; }
body.menu-open .sticky-wa { display: none; }
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-menu a.mm-link {
  font-family: "Fraunces", serif; font-weight: 380; font-size: clamp(30px, 8vw, 44px);
  color: var(--ink); text-decoration: none; padding: 10px 0; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.mm-link:last-of-type { border-bottom: none; }
.mobile-menu .mm-cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Spec: планировка + удобства ---------- */
.spec { }
.spec-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 6vw, 84px); align-items: start; margin-top: 8px;
}
.floorplan svg { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.floorplan .cap, .amenities .cap {
  margin-top: 14px; font-size: 13px; color: var(--ink-mute); letter-spacing: 0.03em;
}
.amenities-wide { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; margin-top: 8px; }
.amenities-wide .amenities-cat { margin-bottom: 0; }
.tour-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.amenities-cat { margin-bottom: 30px; }
.amenities-cat:last-child { margin-bottom: 0; }
.amenities-cat h4 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 16px; font-weight: 500;
}
.amenities-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.amenities-list li {
  font-size: 15px; color: var(--ink-soft); padding-left: 22px; position: relative; line-height: 1.4;
}
.amenities-list li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px;
  border: 1px solid var(--accent); border-radius: 50%;
}

/* ---------- Reveal on scroll (только при работающем JS — html.js) ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* Collapse section nav → hamburger on narrower screens */
@media (max-width: 1040px) {
  .header .nav-links { display: none; }
  .nav-toggle { display: block; }
  .header .lang { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .story-grid, .loc-grid, .contact-grid, .price-wrap, .spec-grid { grid-template-columns: 1fr; }
  .own-grid { grid-template-columns: 1fr; gap: 16px; }
  .floorplan { order: -1; }
  .invest-stats { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .beach-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .amenities-wide { grid-template-columns: 1fr; gap: 30px; }
  .calc-sliders { grid-template-columns: 1fr; gap: 32px; }
  .calc-results { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .review-grid { grid-template-columns: 1fr; gap: 32px; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-grid a, .gallery-grid a:nth-child(n) { grid-column: span 1; }
  .gallery-grid a:nth-child(5n + 1) { grid-column: span 2; }
  .gallery-grid a:last-child { grid-column: span 2; }
  .story-img { order: -1; }
  .sticky-wa { display: flex; }
  .footer { padding-bottom: 130px; }
  .header .wa-top { display: none; }
  .hero .sub { max-width: 100%; }
  /* Клиренс под фикс-шапку + компактный ритм hero, чтобы кикер не заходил под лого/бургер */
  .hero { padding-top: 96px; }
  .hero-content { padding-bottom: 40px; }
  .hero .eyebrow { margin-bottom: 12px; }
  .hero h1 { margin-bottom: 16px; }
  .hero .sub { margin-bottom: 22px; }
  .hero-meta { margin-top: 16px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero { padding-top: 88px; }
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); line-height: 1.08; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.14em; }
  .form { padding: 30px 22px; }
}
