/* ==========================================================================
   Bumi — Bali Villas
   Палитра: мох, роса, лагуна, куркума. Шрифты: Forum / Manrope / IBM Plex Mono
   ========================================================================== */

:root {
  --moss: #15302a;
  --moss-2: #1f4238;
  --moss-3: #2c5a4b;
  --dew: #e8ede4;
  --paper: #f5f7f1;
  --ink: #13221e;
  --stone: #5a6a62;
  --lagoon: #2c7a73;
  --lagoon-soft: #cfe3dc;
  --turmeric: #cf9435;
  --line: rgba(19, 34, 30, .14);
  --line-light: rgba(245, 247, 241, .22);

  --f-display: 'Forum', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dew);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--turmeric); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--moss); color: var(--paper); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .98;
  margin: 0;
}
.h-xl { font-size: clamp(48px, 8.4vw, 132px); }
.h-lg { font-size: clamp(40px, 5.6vw, 84px); }
.h-md { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.h-sm { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.1; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; opacity: .6; }
/* 6. полен — чёрно-белая клетка священной балийской ткани, маленьким квадратиком перед подписями разделов */
.eyebrow::before {
  width: 10px; height: 10px; opacity: .75; border-radius: 1.5px;
  background: repeating-conic-gradient(currentColor 0 25%, transparent 0 50%) 0 0 / 5px 5px;
  box-shadow: 0 0 0 1px currentColor;
}
.mono { font-family: var(--f-mono); }
.muted { color: var(--stone); }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--stone); max-width: 56ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--moss); color: var(--paper); }
.btn-primary:hover { background: var(--moss-3); }
.btn-light { background: var(--paper); color: var(--moss); }
.btn-light:hover { background: #fff; }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--moss); }
.btn-ghost-light { border-color: rgba(255,255,255,.32); color: var(--paper); background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.btn-ghost-light:hover { border-color: var(--paper); background: rgba(245,247,241,.08); }
.btn-wa { background: #1f7a52; color: #fff; }
.btn-wa:hover { background: #18663f; }
.btn-tg { background: #2a6fa8; color: #fff; }
.btn-tg:hover { background: #235e8f; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease), transform .45s var(--ease);
  color: var(--paper);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 78px; }
.site-header.is-solid, .site-header.is-light {
  background: rgba(232, 237, 228, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: baseline; gap: 10px; margin-right: auto; }
.logo-mark { width: 26px; height: 30px; align-self: center; }
.logo-name { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: .02em; }
.logo-sub { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: 28px; font-size: 14.5px; font-weight: 500; flex: 1; justify-content: center; }   /* меню по центру между логотипом и кнопками */
.nav a { position: relative; padding: 6px 0; opacity: .88; transition: opacity .3s; white-space: nowrap; }
.nav a:hover { opacity: 1; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.nav-guide { display: inline-flex; align-items: center; gap: 7px; }
.nav a.nav-guide::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--turmeric); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.cur-toggle { display: inline-flex; border: 1px solid currentColor; border-radius: 999px; padding: 3px; opacity: .9; }
.cur-toggle button { border: 0; background: transparent; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; }
.cur-toggle button[aria-pressed="true"] { background: currentColor; }
.cur-toggle button[aria-pressed="true"] span { color: var(--moss); }
.site-header:not(.is-solid):not(.is-light) .cur-toggle button[aria-pressed="true"] span { color: var(--moss); }
.site-header.is-solid .cur-toggle button[aria-pressed="true"] span,
.site-header.is-light .cur-toggle button[aria-pressed="true"] span { color: var(--paper); }
.header-cta { height: 42px; padding: 0 18px; font-size: 14px; }
.site-header:not(.is-solid):not(.is-light) .header-cta { background: var(--paper); color: var(--moss); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 0; }
.menu-btn span { display: block; width: 22px; height: 1.5px; background: currentColor; margin: 6px auto; transition: transform .35s var(--ease), opacity .3s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(15,32,28,.78); color: var(--paper);
  -webkit-backdrop-filter: blur(24px) saturate(1.3); backdrop-filter: blur(24px) saturate(1.3);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(96px + env(safe-area-inset-top)) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mm-nav { display: flex; flex-direction: column; margin-top: auto; margin-bottom: auto; border-top: 1px solid rgba(255,255,255,.12); }
.mm-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 2px; border-bottom: 1px solid rgba(255,255,255,.12);
  font-family: var(--f-display); font-size: clamp(32px, 9vw, 42px); line-height: 1.1;
  opacity: 0; transform: translateY(16px);
}
.mm-link svg { width: 22px; height: 22px; opacity: .45; flex: none; transition: transform .35s var(--ease), opacity .3s; }
.mm-link:active svg, .mm-link:hover svg { transform: translateX(4px); opacity: 1; }
.menu-open .mm-link { animation: mmIn .6s var(--ease-out) forwards; animation-delay: calc(80ms + var(--i) * 55ms); }
@keyframes mmIn { to { opacity: 1; transform: none; } }
.mm-foot { display: flex; flex-direction: column; gap: 14px; opacity: 0; transition: opacity .5s var(--ease) .25s; }
.menu-open .mm-foot { opacity: 1; }
.mm-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px; font-size: 14px; color: rgba(245,247,241,.7); }
.mm-cta {
  height: 54px; font-size: 15.5px; font-weight: 500; justify-content: space-between; padding: 0 22px;
  color: var(--paper); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.07);
}
.mm-cta svg { opacity: .7; transition: transform .35s var(--ease); }
.mm-cta:hover, .mm-cta:active { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
.mm-cta:hover svg { transform: translateX(4px); }
.menu-open .site-header { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==========================================================================
   HERO — балийские «расколотые ворота» (candi bentar) открывают пейзаж
   ========================================================================== */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  color: var(--paper); background: var(--moss);
  isolation: isolate;
}
.hero-media { position: absolute; inset: -4%; z-index: -3; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.14); animation: heroZoom 22s var(--ease-out) forwards;
}
@keyframes heroZoom { to { transform: scale(1.02); } }
.hero::before { /* затемнение для читаемости */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(180deg, rgba(10,24,20,.55) 0%, rgba(10,24,20,.08) 32%, rgba(10,24,20,.1) 58%, rgba(10,24,20,.72) 100%),
    radial-gradient(120% 70% at 50% 40%, transparent 40%, rgba(10,24,20,.35) 100%);
}
.hero-mist { position: absolute; inset: auto -20% 8% -20%; height: 46%; z-index: -1; pointer-events: none; opacity: .55; }
.hero-mist span {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(240,244,236,.42), rgba(240,244,236,0));
  filter: blur(18px);
  animation: mist 26s ease-in-out infinite alternate;
}
.hero-mist span:nth-child(2) { inset: 20% 10% -10% 30%; animation-duration: 34s; animation-delay: -12s; opacity: .7; }
@keyframes mist { from { transform: translateX(-8%); } to { transform: translateX(8%); } }

.gate { position: absolute; top: 0; bottom: 0; z-index: 2; pointer-events: none; display: flex; }
.gate svg { height: 100%; width: auto; aspect-ratio: 420 / 1000; display: block; overflow: visible; }
.gate-l { right: 50%; transform: translateX(0); }
.gate-r { left: 50%; transform: translateX(0); }
.gate path.body { fill: var(--gate-body, #0f241f); transition: fill .6s; }
.gate-l path.body { fill: var(--gate-fill-l, var(--gate-body, #0f241f)); }
.gate-r path.body { fill: var(--gate-fill-r, var(--gate-body, #0f241f)); }
.gate .gs-a { stop-color: var(--gate-top, var(--gate-body, #0f241f)); }
.gate .gs-m { stop-color: var(--gate-mid, var(--gate-body, #0f241f)); }
.gate .gs-b { stop-color: var(--gate-bottom, var(--gate-body, #0f241f)); }
.gate path.ledge { fill: var(--gate-ledge, #1c3a32); transition: fill .6s; }
.gate path.glow { fill: none; stroke: var(--gate-glow, rgba(243,220,174,.5)); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
@media (hover: hover) and (pointer: fine) { .gate { filter: drop-shadow(0 0 40px rgba(8,20,17,.45)); } }
.gate { will-change: transform; backface-visibility: hidden; }
.gate-l { animation: gateOpenL 2.4s var(--ease-out) .35s forwards; }
.gate-r { animation: gateOpenR 2.4s var(--ease-out) .35s forwards; }
@keyframes gateOpenL { to { transform: translateX(var(--gate-open)); } }
@keyframes gateOpenR { to { transform: translateX(calc(var(--gate-open) * -1)); } }
.hero { --gate-open: -34vw; }
.hero-veil { position: absolute; inset: 0; z-index: 1; background: var(--gate-veil, #0c1d19); pointer-events: none; animation: veil 1.9s var(--ease) .55s forwards; }
@keyframes veil { to { opacity: 0; visibility: hidden; } }
.gate-light { /* луч света в щели ворот */
  position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(255,228,170,.9) 40%, rgba(255,228,170,.9) 70%, transparent);
  box-shadow: 0 0 40px 12px rgba(255,214,140,.45);
  transform: translateX(-50%); opacity: 1;
  animation: lightFade 1.6s var(--ease) .5s forwards;
}
@keyframes lightFade { to { opacity: 0; width: 40vw; box-shadow: 0 0 0 0 transparent; } }

.hero-inner {
  position: relative; z-index: 3; height: 100%; max-width: min(var(--maxw), 66vw);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  padding-top: 110px; padding-bottom: clamp(28px, 5vh, 56px);
}
.hero-kicker { color: rgba(245,247,241,.85); margin-bottom: 22px; }
.hero-kicker::before { background: var(--turmeric); opacity: 1; }
.hero h1 { font-size: clamp(44px, 6.3vw, 100px); max-width: 15ch; text-wrap: balance; margin: 0 auto; }
.hero h1 em { font-style: normal; color: #f3dcae; }
.hero-row { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 26px; }
.hero-text { max-width: 44ch; font-size: clamp(16px, 1.25vw, 19px); color: rgba(245,247,241,.88); margin: 0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; width: 100%; max-width: 980px;
  margin-top: clamp(24px, 4.5vh, 44px); padding: 18px 24px; border-radius: 22px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(245,247,241,.78);
}
.hero-facts b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); letter-spacing: 0; text-transform: none; color: var(--paper); line-height: 1.1; margin-bottom: 2px; }

/* reveal анимации */
.rise { opacity: 0; transform: translateY(26px); }
.is-loaded .rise { animation: rise 1.2s var(--ease-out) forwards; animation-delay: calc(1.1s + var(--d, 0) * .12s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero h1 .w > span { display: inline-block; transform: translateY(105%); }
.is-loaded .hero h1 .w > span { animation: wordUp 1.3s var(--ease-out) forwards; animation-delay: calc(1s + var(--i) * .07s); }
@keyframes wordUp { to { transform: none; } }

.scroll-cue { position: absolute; right: var(--gutter); bottom: 32px; z-index: 3; width: 1px; height: 64px; background: var(--line-light); overflow: hidden; }
.scroll-cue::after { content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--paper); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }

/* лепестки франжипани */
.petals { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -60px; width: var(--s, 26px); height: var(--s, 26px);
  animation: fall var(--t, 16s) linear var(--delay, 0s) infinite;
  opacity: 0;
}
.petal svg { width: 100%; height: 100%; animation: spin var(--spin, 7s) ease-in-out infinite alternate; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
@keyframes fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: .95; }
  25% { transform: translate3d(calc(var(--sway, 60px) * 1), 25vh, 0); }
  50% { transform: translate3d(calc(var(--sway, 60px) * -.6), 50vh, 0); }
  75% { transform: translate3d(calc(var(--sway, 60px) * .8), 75vh, 0); }
  92% { opacity: .9; }
  100% { transform: translate3d(0, 110vh, 0); opacity: 0; }
}
@keyframes spin { from { transform: rotate(-35deg) rotateX(0deg); } to { transform: rotate(160deg) rotateX(50deg); } }

/* ==========================================================================
   Секции
   ========================================================================== */
.section { padding: clamp(80px, 11vw, 160px) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); flex-wrap: wrap; }
.section-head .display { margin-top: 18px; max-width: 16ch; }
.section-head .lede { margin: 0; max-width: 42ch; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- фильтры ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: transparent; border-radius: 999px;
  padding: 9px 16px; font-size: 14px; font-weight: 500; transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--moss); }
.chip[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: var(--paper); }

/* ---------- карточки вилл ---------- */
.villa-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.4vw, 36px); row-gap: clamp(48px, 6vw, 88px); }
.villa-card { grid-column: span 4; display: flex; flex-direction: column; }
.villa-card.is-wide { grid-column: span 12; display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: end; }
.villa-card.is-hidden { display: none; }
.card-media {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--moss-2);
  transform: translateZ(0);
  z-index: 4; cursor: pointer;   /* фото со стрелками поверх ссылки карточки; клик по фото открывает виллу (js/cards.js) */
}
.villa-card.is-wide .card-media { aspect-ratio: 16 / 10; }
.card-media .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s var(--ease);
  will-change: opacity, transform;
}
.card-media .slide.on { opacity: 1; z-index: 1; animation: kenburns 7s linear forwards; }
.card-media .slide.off { opacity: 0; z-index: 0; transform: scale(1.1); }
.card-media.paused .slide.on { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1.0); } to { transform: scale(1.1); } }
.slide-bars { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 4; display: flex; gap: 5px; pointer-events: none; }
.slide-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.32); overflow: hidden; }
.slide-bars i b { display: block; height: 100%; width: 0; background: #fff; }
.slide-bars i.done b { width: 100%; }
.slide-bars i.on b { animation: barfill 4.8s linear forwards; }
.card-media.paused .slide-bars i.on b { animation-play-state: paused; }
@keyframes barfill { to { width: 100%; } }
.slide-nav {
  position: absolute; top: 50%; z-index: 5; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); color: #fff; display: grid; place-items: center;
  background: rgba(15,30,26,.22); -webkit-backdrop-filter: blur(12px) saturate(1.3); backdrop-filter: blur(12px) saturate(1.3);
  opacity: 0; transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s;
}
.slide-nav svg { width: 18px; height: 18px; }
.slide-nav.prev { left: 14px; transform: translateX(-6px); }
.slide-nav.next { right: 14px; transform: translateX(6px); }
.villa-card:hover .slide-nav { opacity: 1; transform: none; }
.slide-nav:hover { background: rgba(15,30,26,.45); }
@media (hover: none) { .slide-nav { display: none; } }
.card-badges { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,247,241,.72); color: var(--moss);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--turmeric); }
.badge.ready .dot { background: #2f9a68; box-shadow: 0 0 0 0 rgba(47,154,104,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47,154,104,0); } 100% { box-shadow: 0 0 0 0 rgba(47,154,104,0); } }
.badge-video { background: rgba(15,30,26,.3); color: #fff; border-color: rgba(255,255,255,.3); }
.badge-video svg { width: 12px; height: 12px; }
.card-body { padding-top: 22px; }
.villa-card.is-wide .card-body { padding: 0 0 8px; }
.card-area { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.card-area { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-id { flex: none; letter-spacing: .06em; padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; line-height: 1.2; }
.v-meta .badge-id { font-family: var(--f-mono); letter-spacing: .06em; }
.card-title { margin: 10px 0 12px; }
.villa-card.is-wide .card-title { font-size: clamp(34px, 4vw, 60px); }
.card-lead { color: var(--stone); margin: 0 0 20px; max-width: 52ch; }
.villa-card:not(.is-wide) .card-lead { display: none; }
.spec-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--f-mono); font-size: 13px; color: var(--ink); padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec-row span { display: inline-flex; align-items: center; gap: 7px; }
.spec-row svg { width: 16px; height: 16px; color: var(--lagoon); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.price { font-family: var(--f-display); font-size: clamp(28px, 2.6vw, 38px); line-height: 1; }
.price small { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; color: var(--stone); margin-top: 6px; }
.card-go {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; flex: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.card-go svg { width: 20px; height: 20px; }
.villa-card:hover .card-go { background: var(--moss); color: var(--paper); border-color: var(--moss); transform: rotate(-45deg); }
.card-link { position: absolute; inset: 0; z-index: 3; }
.villa-card { position: relative; }

/* ---------- полоса-манифест ---------- */
.ticker {
  position: relative; overflow: hidden; padding: 20px 0; background: var(--dew);
  border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 70s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; gap: 10px; padding-right: 10px; }
.tick {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 9px 16px 9px 10px; border-radius: 999px; font-size: 14px; color: var(--ink);
  background: rgba(255,255,255,.5); border: 1px solid rgba(19,34,30,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.tick i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lagoon-soft); color: var(--lagoon); flex: none; }
.tick svg { width: 15px; height: 15px; }
.tick b { font-family: var(--f-mono); font-weight: 500; font-size: 12.5px; color: var(--lagoon); letter-spacing: .02em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- локация ---------- */
.location { background: var(--paper); overflow: hidden; }
.location-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.location-text .display { margin: 18px 0 24px; }
.dist-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.dist-list li { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.dist-list b { font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--lagoon); white-space: nowrap; }
.map-card { position: relative; border-radius: var(--radius); overflow: hidden; background: #dfe6dc; box-shadow: 0 30px 60px -30px rgba(21,48,42,.35); }
.map { height: clamp(420px, 52vw, 640px); width: 100%; z-index: 1; }
.map-note { position: absolute; left: 16px; bottom: 16px; z-index: 500; background: rgba(245,247,241,.94); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--stone); max-width: 300px; display: flex; gap: 10px; align-items: center; box-shadow: 0 8px 24px -10px rgba(0,0,0,.25); }
.map-note i { width: 16px; height: 16px; border-radius: 50%; flex: none; background: rgba(44,122,115,.25); border: 1.5px dashed var(--lagoon); }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.map-legend button { border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; transition: all .3s var(--ease); }
.map-legend button:hover, .map-legend button.on { background: var(--moss); color: var(--paper); border-color: var(--moss); }
.map-legend button i { width: 18px; height: 18px; border-radius: 50%; background: var(--lagoon); color: #fff; font-style: normal; font-family: var(--f-mono); font-size: 10.5px; display: grid; place-items: center; }

/* стилизация тайлов карты: приглушённая, в тон сайту */
.leaflet-container { background: #dde5da !important; font-family: var(--f-body) !important; }
.map .leaflet-tile-pane, .v-map .leaflet-tile-pane { filter: grayscale(.9) sepia(.3) hue-rotate(55deg) saturate(.85) brightness(1.05) contrast(.9); }
.leaflet-control-attribution { font-size: 10px !important; background: rgba(245,247,241,.7) !important; }
.leaflet-control-zoom a { color: var(--moss) !important; }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 6px 18px -8px rgba(0,0,0,.3) !important; }
.zone-pulse { animation: zone 3.2s var(--ease) infinite; transform-origin: center; transform-box: fill-box; }
@keyframes zone { 0% { opacity: .9; } 50% { opacity: .45; } 100% { opacity: .9; } }
.zone-label {
  background: var(--moss); color: var(--paper); border-radius: 999px; padding: 6px 12px 6px 6px; font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45);
  transform: translate(-50%, -50%); position: relative; left: 0; top: 0; width: max-content; transition: transform .3s var(--ease);
}
.zone-label i { width: 22px; height: 22px; border-radius: 50%; background: var(--turmeric); color: var(--moss); font-style: normal; font-family: var(--f-mono); font-size: 11px; display: grid; place-items: center; }
.zone-label:hover { transform: translate(-50%, -50%) scale(1.08); }
.zone-label.only-num { padding: 4px; cursor: pointer; }
.zone-label.only-num i { width: 26px; height: 26px; font-size: 12.5px; }
.lm-label { display: inline-flex; align-items: center; gap: 6px; transform: translate(-9px, -9px); white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--moss); text-shadow: 0 0 3px #fff, 0 0 6px #fff; width: max-content; }
.lm-label i { width: 18px; height: 18px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.2); flex: none; }
.lm-label svg { width: 11px; height: 11px; color: var(--lagoon); }
.leaflet-div-icon { background: transparent !important; border: 0 !important; }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-family: var(--f-body); }
.map-pop { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; min-width: 240px; }
.map-pop img { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; }
.map-pop b { display: block; font-size: 14px; line-height: 1.25; }
.map-pop span { font-size: 12px; color: var(--stone); }
.map-pop a { color: var(--lagoon); font-weight: 600; font-size: 12.5px; }

/* тень от пальмовых листьев */
.leaf-shadow { position: absolute; pointer-events: none; z-index: 0; opacity: .1; filter: blur(5px); mix-blend-mode: multiply; color: var(--moss); }
.leaf-shadow svg { width: 100%; height: 100%; transform-origin: 10% 0%; animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2.5deg) skewX(1deg); } to { transform: rotate(2.5deg) skewX(-1deg); } }
.location .wrap, .steps-section .wrap { position: relative; z-index: 1; }

/* ---------- шаги покупки ---------- */
.steps-section { background: var(--dew); overflow: hidden; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 28px 24px 8px 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--f-mono); font-size: 12.5px; color: var(--lagoon); letter-spacing: .1em; display: block; margin-bottom: 40px; }
.steps h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2vw, 28px); line-height: 1.1; margin: 0 0 12px; }
.steps p { margin: 0; color: var(--stone); font-size: 15px; }
.lease-note { margin-top: 56px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 28px; border-radius: var(--radius); background: var(--paper); }
.lease-note .big { font-family: var(--f-display); font-size: clamp(48px, 5vw, 72px); line-height: .9; color: var(--lagoon); }
.lease-note p { margin: 0; color: var(--stone); max-width: 70ch; }
.lease-note b { color: var(--ink); }

/* ---------- калькулятор доходности ---------- */
.yield { background: var(--moss); color: var(--paper); overflow: hidden; }
.yield .eyebrow { color: rgba(245,247,241,.7); }
.yield .lede { color: rgba(245,247,241,.75); }
.yield-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.calc {
  position: relative; border-radius: 28px; padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(150deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.yield .wrap { position: relative; z-index: 1; }
.orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* мягкие световые пятна — обычный радиальный градиент, без filter: blur (на iPhone он мерцает под стеклом) */
.orbs i { position: absolute; border-radius: 50%; }
.yield .orbs i:nth-child(1) { width: 640px; height: 640px; right: 0; top: -4%; background: radial-gradient(closest-side, rgba(44,122,115,.55), rgba(44,122,115,0)); }
.yield .orbs i:nth-child(2) { width: 480px; height: 480px; right: 22%; bottom: -8%; background: radial-gradient(closest-side, rgba(207,148,53,.28), rgba(207,148,53,0)); }
.calc-row { margin-bottom: 26px; }
.calc-row label { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 12px; color: rgba(245,247,241,.82); }
.calc-row output { font-family: var(--f-mono); color: var(--paper); font-weight: 500; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, var(--turmeric) var(--p, 50%), rgba(245,247,241,.2) var(--p, 50%)); border-radius: 3px; }
input[type=range]::-moz-range-track { height: 3px; background: rgba(245,247,241,.2); border-radius: 3px; }
input[type=range]::-moz-range-progress { height: 3px; background: var(--turmeric); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); margin-top: -9.5px; box-shadow: 0 0 0 6px rgba(207,148,53,.25); transition: box-shadow .3s; }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 6px rgba(207,148,53,.25); }
input[type=range]:active::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(207,148,53,.3); }
.calc-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.calc-result div span { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(245,247,241,.6); margin-bottom: 6px; }
.calc-result strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.5vw, 38px); white-space: nowrap; line-height: 1; color: #f3dcae; }
.calc-fine { font-size: 12.5px; color: rgba(245,247,241,.55); margin: 20px 0 0; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 96px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 24px 0; font-size: clamp(17px, 1.4vw, 20px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); flex: none; position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i { background: var(--moss); color: var(--paper); border-color: var(--moss); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 60px 26px 0; color: var(--stone); }
.faq .answer p { margin: 0 0 10px; }

/* ---------- финальный CTA ---------- */
.cta { position: relative; color: var(--paper); overflow: hidden; isolation: isolate; padding: clamp(90px, 12vw, 180px) 0; }
/* фон блока заявки — «живые рисовые террасы»: контурные линии рисуются на canvas (js/home.js) */
.cta { background: linear-gradient(180deg, #0f241e 0, rgba(15,36,30,0) 160px), radial-gradient(120% 90% at 78% 38%, #1d3f36 0%, #12281f 45%, #0b1a15 100%); }
.cta-bg { position: absolute; inset: 0; z-index: -2; }
.terraces { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11,26,21,.55) 0%, rgba(11,26,21,.1) 45%, transparent 70%); }
.cta-coords { position: absolute; left: var(--gutter); bottom: 22px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,247,241,.38); }
@media (max-width: 860px) { .cta { padding-bottom: 110px; } .cta-coords { left: var(--gutter); right: var(--gutter); bottom: 32px; text-align: center; line-height: 1.7; } }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta .eyebrow { color: rgba(245,247,241,.75); }
.cta .display { margin: 18px 0 22px; }
.cta p.lede { color: rgba(245,247,241,.8); }
.form {
  color: var(--paper); border-radius: 28px; padding: clamp(24px, 3vw, 40px);
  background: linear-gradient(150deg, rgba(255,255,255,.18), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.26);
  -webkit-backdrop-filter: blur(26px) saturate(1.4); backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.25);
}
.form h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; margin: 0 0 6px; line-height: 1.1; }
.form > p { margin: 0 0 22px; color: rgba(245,247,241,.72); font-size: 14.5px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field span { color: rgba(245,247,241,.88); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); border-radius: 14px; padding: 13px 14px; font: inherit; font-size: 16px; color: #fff;
  color-scheme: dark; -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,247,241,.5); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field select option { color: var(--ink); background: var(--paper); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: rgba(255,255,255,.6); background-color: rgba(255,255,255,.16); box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.form .btn-primary { background: var(--paper); color: var(--moss); }
.form .btn-primary:hover { background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* телефон: код страны + номер */
.phone { display: flex; gap: 8px; }
.phone input { flex: 1; min-width: 0; }
.field .cc { position: relative; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 30px 0 12px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); border-radius: 14px; font-size: 15px; white-space: nowrap; transition: border-color .3s, box-shadow .3s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
.field .cc-show { font-weight: 500; color: #fff; font-variant-numeric: tabular-nums; }
.field .cc select { position: absolute; inset: 0; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.field .cc:focus-within { border-color: rgba(255,255,255,.6); background-color: rgba(255,255,255,.16); box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.form-actions { display: grid; gap: 10px; margin-top: 8px; }
.form-msg { font-size: 13.5px; margin: 12px 0 0; color: #bfe6d8; min-height: 1em; }
.form-msg.err { color: #ffc9b5; }

/* ---------- footer ---------- */
.site-footer { background: #0f231e; color: rgba(245,247,241,.75); padding: 72px 0 32px; font-size: 14.5px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-light); }
.footer-top .logo { color: var(--paper); margin-bottom: 18px; }
.footer-top h4 { font-family: var(--f-mono); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(245,247,241,.5); margin: 0 0 16px; }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-top a:hover { color: var(--paper); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; font-size: 12.5px; color: rgba(245,247,241,.45); flex-wrap: wrap; }

/* ==========================================================================
   Страница виллы
   ========================================================================== */
.v-top { padding-top: 112px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--stone); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.crumbs svg { width: 14px; height: 14px; }
.v-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.v-title-row h1 { max-width: 18ch; }
.v-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.v-meta .badge { background: var(--paper); border: 1px solid var(--line); }

.v-hero-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(360px, 62vh, 680px); }
.v-hero-gallery button { position: relative; border: 0; padding: 0; overflow: hidden; border-radius: 14px; background: var(--moss-2); }
.v-hero-gallery button:first-child { grid-row: span 2; border-radius: var(--radius); }
.v-hero-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.v-hero-gallery button:hover img { transform: scale(1.04); }
.all-photos { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center; background: rgba(245,247,241,.94); color: var(--moss); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.all-photos svg { width: 16px; height: 16px; }

.v-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; padding-top: clamp(48px, 6vw, 80px); }
.v-main > section { padding-bottom: clamp(48px, 6vw, 80px); margin-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.v-main > section:last-child { border-bottom: 0; margin-bottom: 0; }
.v-main h2 { margin: 14px 0 26px; }
.v-lead { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; margin: 0 0 30px; max-width: 46ch; }
.v-desc p { margin: 0 0 16px; color: var(--stone); max-width: 68ch; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fact { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact span { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 8px; }
.fact b { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.fact b.small { font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.35; display: block; }

.feat-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feat-list li { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.feat-list svg { width: 18px; height: 18px; color: var(--lagoon); flex: none; }

/* рассрочка */
.plan-bar { display: flex; gap: 4px; height: 64px; margin: 8px 0 18px; }
.plan-bar div { position: relative; border-radius: 10px; background: var(--lagoon-soft); display: flex; align-items: flex-end; padding: 10px 12px; overflow: hidden; transform-origin: left; }
.plan-bar div:first-child { background: var(--moss); color: var(--paper); }
.plan-bar div b { font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1; position: relative; }
.plan-bar.in div { animation: grow 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * .15s); }
@keyframes grow { from { transform: scaleX(0); } }
.plan-legend { display: flex; gap: 4px; }
.plan-legend div { min-width: 0; padding: 0 12px; }
.plan-legend div { font-size: 14px; color: var(--stone); }
.plan-legend div b { display: block; color: var(--ink); font-family: var(--f-mono); font-weight: 500; font-size: 15px; }
.plan-note { margin-top: 18px; font-size: 14px; color: var(--stone); }

/* инвестиционный блок */
.invest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.invest div { background: var(--paper); border-radius: 16px; padding: 22px; }
.invest span { display: block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); margin-bottom: 10px; }
.invest b { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1.05; display: block; margin-bottom: 6px; }
.invest p { margin: 0; font-size: 13.5px; color: var(--stone); }

/* видео */
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: start; }
.videos.has-wide { grid-template-columns: 1fr; }
.vid { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1a16; cursor: pointer; border: 0; padding: 0; width: 100%; display: block; text-align: left; color: var(--paper); }
.vid.vertical { aspect-ratio: 9 / 16; max-height: 640px; }
.vid.horizontal { aspect-ratio: 16 / 9; }
.vid img, .vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vid::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(8,18,15,.75)); transition: opacity .4s; pointer-events: none; }
.vid.is-on::after, .vid.is-on .vid-ui { opacity: 0; pointer-events: none; }
.vid-ui { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; transition: opacity .4s; }
.vid-play {
  position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  background: rgba(245,247,241,.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(245,247,241,.5);
  display: grid; place-items: center; transition: transform .45s var(--ease), background .3s;
}
.vid-play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(245,247,241,.35); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vid-play svg { width: 26px; height: 26px; margin-left: 4px; }
.vid:hover .vid-play { transform: scale(1.08); background: rgba(245,247,241,.3); }
.vid-ui b { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1.1; position: relative; z-index: 1; }
.vid-ui span { font-family: var(--f-mono); font-size: 12px; opacity: .75; position: relative; z-index: 1; }
.video-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: end; }

/* галерея: оправданные ряды, сгруппированные по ориентации */
.gal-group { container-type: inline-size; }
.gal-group + .gal-group { margin-top: 10px; }
.gal { display: flex; flex-wrap: wrap; gap: 10px; --row-h: 27cqw; }
.gal::after { content: ''; flex-grow: 999; }
.gal.full::after { display: none; }
.gal figure { margin: 0; position: relative; flex-grow: var(--r); flex-basis: calc(var(--r) * var(--row-h, 230px)); border-radius: 12px; overflow: hidden; background: var(--moss-2); cursor: zoom-in; }
.gal figure::before { content: ''; display: block; padding-top: calc(100% / var(--r)); }
.gal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .6s; opacity: 0; }
.gal img.ok { opacity: 1; }
.gal figure:hover img { transform: scale(1.04); }
.gal.portrait { --row-h: 41cqw; }
.gal.square { --row-h: 31cqw; }
.gal-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 0 0 18px; }
.gal-sub p { margin: 0; color: var(--stone); font-size: 14.5px; max-width: 60ch; }
.gal-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }

/* планировки */
.plans-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.plan-view { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; cursor: zoom-in; padding: 0; width: 100%; display: block; }
.plan-view img { width: 100%; height: auto; mix-blend-mode: multiply; }
.plan-hint { font-size: 13px; color: var(--stone); margin-top: 10px; }

/* боковая карточка цены */
.v-aside { position: sticky; top: 100px; }
.price-card {
  border-radius: 26px; padding: 28px;
  background: linear-gradient(150deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  border: 1px solid rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 30px 60px -40px rgba(21,48,42,.45);
}
.v-layout { position: relative; }
.v-layout .orbs i:nth-child(1) { width: 560px; height: 560px; right: -100px; top: -60px; background: radial-gradient(closest-side, rgba(159,208,196,.6), rgba(159,208,196,0)); }
.v-layout .orbs i:nth-child(2) { width: 420px; height: 420px; right: 80px; top: 240px; background: radial-gradient(closest-side, rgba(240,207,143,.45), rgba(240,207,143,0)); }
.v-main, .v-aside { position: relative; z-index: 1; }
.price-card .price { font-size: clamp(40px, 3.6vw, 54px); }
.price-card .idr { font-family: var(--f-mono); font-size: 13px; color: var(--stone); margin: 8px 0 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; border-top: 1px solid var(--line); }
.price-card li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.price-card li span { color: var(--stone); }
.price-card li b { font-weight: 600; text-align: right; }
.price-card .btn + .btn { margin-top: 10px; }
.price-card .fine { font-size: 12.5px; color: var(--stone); margin: 14px 0 0; text-align: center; }

.mobile-bar { display: none; }

.v-map { height: 380px; border-radius: var(--radius); overflow: hidden; }
.nearby { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.nearby b { font-family: var(--f-mono); font-weight: 500; font-size: 13.5px; color: var(--lagoon); white-space: nowrap; }

.others { background: var(--paper); }
.others .villa-grid { grid-template-columns: repeat(3, 1fr); }
.others .villa-card { grid-column: auto; }

/* ==========================================================================
   Лайтбокс
   ========================================================================== */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,18,15,.96); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden; transition: opacity .4s var(--ease), visibility .4s; color: var(--paper); }
.lb.open { opacity: 1; visibility: visible; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-family: var(--f-mono); font-size: 13px; }
.lb-stage { position: relative; display: grid; place-items: center; overflow: hidden; touch-action: pan-y; padding: 0 clamp(8px, 6vw, 96px); }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 150px); object-fit: contain; border-radius: 6px; transition: opacity .35s var(--ease), transform .45s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.lb-stage img.swap { opacity: 0; transform: scale(.98); }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-light); background: rgba(245,247,241,.06); display: grid; place-items: center; transition: background .3s; }
.lb-btn:hover { background: rgba(245,247,241,.16); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; margin-top: -26px; z-index: 2; }
.lb-prev { left: var(--gutter); }
.lb-next { right: var(--gutter); }
.lb-thumbs { display: flex; gap: 6px; padding: 12px var(--gutter) 18px; overflow-x: auto; scrollbar-width: none; justify-content: safe center; }
.lb-thumbs button { flex: none; width: 64px; height: 46px; border: 0; padding: 0; border-radius: 6px; overflow: hidden; opacity: .4; transition: opacity .3s; outline-offset: 2px; }
.lb-thumbs button.on { opacity: 1; outline: 2px solid var(--turmeric); }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* видео-модал */
.vm { position: fixed; inset: 0; z-index: 110; background: rgba(8,18,15,.95); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; padding: 60px 16px 24px; }
.vm.open { opacity: 1; visibility: visible; }
.vm video { max-width: min(100%, 1280px); max-height: calc(100svh - 100px); border-radius: 12px; background: #000; }
.vm .lb-btn { position: absolute; top: 14px; right: 14px; color: var(--paper); }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
  .villa-card { grid-column: span 6; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .steps li::before { margin-bottom: 18px; }
  .v-layout { grid-template-columns: 1fr; }
  .v-aside { position: static; display: none; }
  .mobile-bar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; align-items: center; justify-content: space-between; gap: 12px;
    background: rgba(21,48,42,.94); color: var(--paper); border-radius: 20px; padding: 12px 12px 12px 20px;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5);
    transform: translateY(140%); transition: transform .5s var(--ease-out);
  }
  .mobile-bar.show { transform: none; }
  .mobile-bar .price { font-size: 24px; }
  .mobile-bar .price small { color: rgba(245,247,241,.6); margin-top: 3px; font-size: 10.5px; }
  .mobile-bar .btn { height: 46px; padding: 0 20px; }
  .others .villa-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { --gate-open: -40vw; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
  .villa-card, .villa-card.is-wide { grid-column: span 12; display: flex; align-items: stretch; }
  .villa-card.is-wide .card-body { padding-top: 22px; }
  .villa-card.is-wide .card-media { aspect-ratio: 4 / 3; }
  .villa-card.is-wide .card-title { font-size: clamp(30px, 7vw, 44px); }
  .villa-card:not(.is-wide) .card-lead { display: block; }
  .location-grid, .yield-grid, .faq-grid, .cta-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > div:first-child { grid-column: span 2; }
  .lease-note { grid-template-columns: 1fr; gap: 10px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .invest { grid-template-columns: 1fr; }
  .video-pair { grid-template-columns: 1fr 1fr; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 600px) {
  .site-header .wrap { height: 66px; gap: 14px; }
  .logo-sub { display: none; }
  .cur-toggle button { padding: 5px 8px; }
  .hero { min-height: 600px; }
  .hero-row { margin-top: 20px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; padding: 0 16px; }
  .scroll-cue { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0 18px; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .field-row { grid-template-columns: 1fr; }
  .feat-list, .nearby { grid-template-columns: 1fr; }
  .v-hero-gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 62vh; }
  .v-hero-gallery button:not(:first-child) { display: none; }
  .v-hero-gallery button:first-child { grid-row: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 14px; }
  .gal { gap: 6px; }
  .gal figure { border-radius: 8px; }
  .gal.landscape { --row-h: 54cqw; }
  .gal.portrait { --row-h: 80cqw; }
  .gal.square { --row-h: 46cqw; }
  .video-pair { grid-template-columns: 1fr; }
  .others .villa-grid { grid-template-columns: 1fr; }
  .faq .answer { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top > div:first-child { grid-column: auto; }
  .calc-result { grid-template-columns: 1fr 1fr; }
  .calc-result div:first-child { grid-column: span 2; }
  .plan-bar div b { font-size: 20px; }
  .plan-legend { flex-direction: column; gap: 8px; }
  .plan-legend div { flex: none !important; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .petals, .hero-mist { display: none; }
  .rise, .reveal { opacity: 1; transform: none; }
  .hero h1 .w > span { transform: none; }
}

/* после открытия ворот створки расходятся при прокрутке.
   Где браузер умеет scroll-driven animations — движение идёт на видеокарте, синхронно с прокруткой. */
.hero.opened .gate-l { animation: none; transform: translate3d(calc(var(--gate-open) - var(--gate-extra, 0vw)), 0, 0); }
.hero.opened .gate-r { animation: none; transform: translate3d(calc(var(--gate-open) * -1 + var(--gate-extra, 0vw)), 0, 0); }
@supports (animation-timeline: scroll()) {
  .hero.opened .gate-l { animation: gateScrollL linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .hero.opened .gate-r { animation: gateScrollR linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  .hero-media { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; will-change: transform; }
}
@keyframes gateScrollL { from { transform: translate3d(var(--gate-open), 0, 0); } to { transform: translate3d(calc(var(--gate-open) - 14vw), 0, 0); } }
@keyframes gateScrollR { from { transform: translate3d(calc(var(--gate-open) * -1), 0, 0); } to { transform: translate3d(calc(var(--gate-open) * -1 + 14vw), 0, 0); } }
@keyframes heroDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 22vh, 0); } }

@media (max-width: 600px) { .hero-inner { max-width: 100%; } }
.yield .chip { border-color: rgba(245,247,241,.25); color: var(--paper); }
.yield .chip:hover { border-color: var(--paper); }
.yield .chip[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--moss); }

/* ==========================================================================
   Шапка-капсула в проёме ворот (пока пользователь на главном экране)
   ========================================================================== */
.site-header .wrap {
  border: 1px solid transparent;
  transition: max-width .7s var(--ease-out), height .5s var(--ease), margin .5s var(--ease), padding .5s var(--ease),
              background-color .5s var(--ease), border-color .5s var(--ease), border-radius .6s var(--ease);
}
.site-header:not(.is-solid):not(.is-light) .wrap {
  max-width: min(1180px, 66vw); margin-top: 14px; height: 62px; gap: 22px;
  padding: 0 8px 0 22px; border-radius: 999px;
  background-color: rgba(12, 26, 22, .26); border-color: rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
}
.site-header:not(.is-solid):not(.is-light) .logo-sub { display: none; }
.site-header:not(.is-solid):not(.is-light) .nav { gap: 22px; margin-left: 170px; }   /* справа валюта и кнопка шире логотипа — сдвигаем, чтобы меню было по центру капсулы */
.site-header:not(.is-solid):not(.is-light) .header-cta { height: 46px; }
.mobile-menu .cur-toggle { color: var(--paper); }
.mobile-menu .cur-toggle button[aria-pressed="true"] span { color: var(--moss); }

/* в капсуле между створками места мало: валюта и кнопка «Подобрать виллу» появляются после прокрутки
   (на главном экране та же кнопка есть под заголовком), на узких экранах прячем и «Локацию» */
@media (max-width: 1560px) {
  .site-header:not(.is-solid):not(.is-light) .cur-toggle,
  .site-header:not(.is-solid):not(.is-light) .header-cta { display: none; }
  .site-header:not(.is-solid):not(.is-light) .wrap { padding-right: 22px; }
  .site-header:not(.is-solid):not(.is-light) .nav { margin-left: 0; margin-right: 118px; }   /* справа пусто — уравновешиваем логотип, чтобы меню стояло ровно по центру */
}
@media (max-width: 1320px) {
  .site-header:not(.is-solid):not(.is-light) .nav a[href$="#location"] { display: none; }
  .site-header:not(.is-solid):not(.is-light) .nav { gap: 18px; margin-right: 90px; }
}

/* ==========================================================================
   Главный экран на телефоне и планшете
   ========================================================================== */
@media (max-width: 860px) {
  .hero { --gate-open: -39vw; height: auto; min-height: 100svh; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(10,24,20,.5) 0%, rgba(10,24,20,.3) 35%, rgba(10,24,20,.42) 65%, rgba(10,24,20,.8) 100%);
  }
  .hero-mist { display: none; }
  .gate svg { width: 26vw; aspect-ratio: auto; }
  .hero-inner {
    height: auto; min-height: 100svh; max-width: 100%;
    padding: 92px calc(11vw + 8px) 28px;
  }
  .site-header:not(.is-solid):not(.is-light) .wrap {
    max-width: calc(100% - 22vw - 8px); margin-top: 10px; height: 56px; padding: 0 6px 0 16px; gap: 10px;
  }
  .site-header:not(.is-solid):not(.is-light) .cur-toggle { display: none; }
  .menu-open .site-header .wrap { background-color: transparent !important; border-color: transparent !important; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: clamp(32px, 9.8vw, 44px); max-width: none; }
  .hero-kicker { font-size: 10.5px; letter-spacing: .1em; margin-bottom: 16px; }
  .hero-kicker::before { display: none; }
  .hero-text { font-size: 15px; line-height: 1.5; }
  .hero-row { gap: 20px; margin-top: 18px; }
  .hero-actions { flex-direction: column; width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; flex: none; height: 50px; }
  .hero-facts { padding: 14px 16px; gap: 14px 10px; margin-top: 22px; font-size: 10.5px; letter-spacing: .04em; }
  .hero-facts b { font-size: 24px; }
  .logo-name { font-size: 26px; }
  .logo-mark { width: 22px; height: 26px; }
}

/* на сенсорных экранах стеклянные панели над фоном-градиентом без живого размытия — убирает мерцание при прокрутке */
@media (hover: none) {
  .calc, .price-card { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .calc { background: linear-gradient(150deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); }
  .price-card { background: linear-gradient(150deg, rgba(255,255,255,.86), rgba(255,255,255,.66)); }
}
@media (hover: none) {
  .leaf-shadow { filter: none; mix-blend-mode: normal; opacity: .06; }
  .leaf-shadow svg { will-change: transform; }
}

/* шапка при открытом меню: обычная, на всю ширину (без капсулы главного экрана) */
body.menu-open .site-header .wrap {
  max-width: var(--maxw) !important; margin-top: 0 !important; height: 66px !important;
  padding: 0 var(--gutter) !important; border-radius: 0 !important;
  background-color: transparent !important; border-color: transparent !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
body.menu-open .site-header .cur-toggle { display: none; }
body.menu-open .site-header .logo-sub { display: inline; }
@media (max-width: 600px) { body.menu-open .site-header .logo-sub { display: none; } }

/* форма на телефонах: без живого размытия поверх анимации (иначе iPhone мерцает) */
@media (hover: none) {
  .form { -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(150deg, rgba(30,62,53,.82), rgba(15,34,28,.74)); }
}


/* ==========================================================================
   Балийские детали
   ========================================================================== */

/* 7. орнамент патра */
.patra { width: min(320px, 70%); margin: clamp(56px, 7vw, 96px) auto 0; color: var(--lagoon); }
.patra svg { display: block; width: 100%; height: auto; overflow: visible; }
.patra .p-line { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.4s var(--ease-out) .3s; }
.patra .p-motif { opacity: 0; transform: scale(.6); transform-origin: 160px 14px; transform-box: view-box; transition: opacity .8s var(--ease), transform 1s var(--ease-out); }
.patra.in .p-line { stroke-dashoffset: 0; }
.patra.in .p-motif { opacity: 1; transform: none; }
.steps-section .patra { margin: 56px auto 0; }
.steps-section .lease-note { margin-top: 40px; }
.others .patra-top { margin: 0 auto clamp(40px, 5vw, 64px); }

/* 1. субак — канал с водой над шагами */
.steps.has-subak { position: relative; border-top: 0; padding-top: 10px; }
.subak { position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px; background: rgba(19,34,30,.07); box-shadow: inset 0 1px 2px rgba(19,34,30,.12); overflow: hidden; }
.subak-water {
  position: absolute; inset: 0; transform-origin: left center; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #2c7a73, #3f9d92 40%, #6cc3b5 60%, #3f9d92 80%, #2c7a73);
  background-size: 220px 100%; animation: flow 2.2s linear infinite;
  border-radius: 6px; will-change: transform;
}
.subak-water i { position: absolute; right: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.9), rgba(255,255,255,0) 70%); }
@keyframes flow { to { background-position: 220px 0; } }
.subak-node {
  position: absolute; top: -14px; left: 0; width: 14px; height: 14px; border-radius: 50%; z-index: 2;
  background: var(--dew); border: 1.5px solid rgba(19,34,30,.25); transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
}
.steps li + li .subak-node { left: 24px; }
.steps li { position: relative; }
.steps li.wet .subak-node { background: var(--lagoon); border-color: var(--lagoon); transform: scale(1.15); }
.steps li.wet .subak-node::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--lagoon); animation: ripple 1.6s var(--ease-out) forwards; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
.steps li::before { transition: color .5s var(--ease); }
.steps li h3 { transition: color .6s var(--ease); color: var(--stone); }
.steps li.wet h3 { color: var(--ink); }
@media (max-width: 600px) {
  .steps.has-subak { padding-top: 0; padding-left: 34px; }
  .subak { left: 6px; right: auto; top: 6px; bottom: 6px; width: 6px; height: auto; }
  .subak-water { transform-origin: center top; transform: scaleY(var(--p, 0)); background: linear-gradient(180deg, #2c7a73, #3f9d92 40%, #6cc3b5 60%, #3f9d92 80%, #2c7a73); background-size: 100% 220px; animation-name: flowV; }
  .subak-water i { right: auto; top: auto; bottom: 0; left: 50%; margin: 0 0 0 -9px; }
  @keyframes flowV { to { background-position: 0 220px; } }
  .subak-node, .steps li + li .subak-node { left: -32px; top: 28px; }
  .steps li:first-child .subak-node { top: 4px; }
}

/* 2. пенджор в колонке «Вопросы» */
.penjor-wrap { position: sticky; top: 110px; margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.penjor { width: 220px; height: clamp(420px, 56vh, 600px); }
.pj-lamak { transform-origin: 64px 380px; transform-box: view-box; animation: lamakSwing 5s ease-in-out infinite alternate; }
@keyframes lamakSwing { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
.penjor svg { height: 100%; width: auto; overflow: visible; }
.pj-body { transform-origin: 64px 600px; transform-box: view-box; animation: pjSway 7s ease-in-out infinite alternate; }
.pj-sampian { transform-origin: 184px 72px; transform-box: view-box; animation: pjSwing 3.6s ease-in-out infinite alternate; }
@keyframes pjSway { from { transform: rotate(-1.2deg); } to { transform: rotate(1.4deg); } }
@keyframes pjSwing { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
.faq-ask { max-width: 300px; padding: 20px 22px; border-radius: 20px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); box-shadow: 0 20px 40px -30px rgba(21,48,42,.4); }
.faq-ask b { font-family: var(--f-display); font-weight: 400; font-size: 24px; display: block; line-height: 1.1; margin-bottom: 6px; }
.faq-ask p { margin: 0 0 14px; color: var(--stone); font-size: 14.5px; }
@media (max-width: 860px) {
  .penjor-wrap { position: static; flex-direction: row; align-items: flex-end; margin-top: 24px; }
  .penjor { width: 92px; height: 220px; flex: none; }
  .faq-ask { flex: 1; }
}

/* 3. «Бали сейчас» */
.bali-now {
  display: grid; grid-template-columns: .9fr 1.2fr 1.1fr; margin-top: 30px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(150deg, rgba(232,237,228,.9), rgba(232,237,228,.55)); border: 1px solid rgba(19,34,30,.08);
}
.bn-cell { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bn-cell + .bn-cell { border-left: 1px solid rgba(19,34,30,.08); }
.bn-label { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }
.bn-cell b { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.1; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.bn-wicon svg { width: 24px; height: 24px; color: var(--turmeric); display: block; }
.bn-sub { font-size: 12.5px; color: var(--stone); line-height: 1.35; }
.bn-sun { position: relative; }
.bn-suntxt { display: flex; flex-direction: column; gap: 2px; }
.bn-arc { width: 100%; max-width: 120px; height: auto; color: var(--ink); margin: -2px 0 4px; overflow: visible; }
.bn-sundot { filter: drop-shadow(0 0 6px rgba(207,148,53,.8)); transition: cx 1s, cy 1s; }
.bn-sundot.night { fill: #c9d3e6; filter: none; }
.bn-sun .bn-label { color: var(--ink); letter-spacing: .06em; }
@media (max-width: 1100px) and (min-width: 861px) { .bali-now { grid-template-columns: 1fr 1fr; } .bn-sun { grid-column: span 2; border-left: 0 !important; border-top: 1px solid rgba(19,34,30,.08); } }
@media (max-width: 600px) {
  .bali-now { grid-template-columns: 1fr 1fr; }
  .bn-sun { grid-column: span 2; border-left: 0 !important; border-top: 1px solid rgba(19,34,30,.08); flex-direction: row; align-items: center; gap: 16px; }
  .bn-arc { width: 96px; flex: none; margin: 0; }
  .bn-suntxt { display: flex; flex-direction: column; gap: 3px; }
  .bn-cell b { font-size: 26px; }
}

/* 4. панорама с вулканом Агунг */
.panorama { position: relative; height: clamp(170px, 22vw, 320px); overflow: hidden; margin-top: -1px; pointer-events: none; }
.pano-layer { position: absolute; inset: 0; will-change: transform; }
.pano-layer svg { position: absolute; left: 0; bottom: -1px; width: 100%; height: 100%; display: block; }
.panorama::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--pano-base); }
.pano-crown { transform-box: fill-box; transform-origin: 50% 100%; animation: crown 6s ease-in-out infinite alternate; }
@keyframes crown { from { transform: rotate(-2deg); } to { transform: rotate(2.5deg); } }
@supports (animation-timeline: view()) {
  .pano-layer { animation: panoRise linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
}
@keyframes panoRise { from { transform: translate3d(0, calc(var(--depth) * 70px), 0); } to { transform: translate3d(0, 0, 0); } }

/* 5. чананг-сари — благодарность после заявки */
.form { position: relative; }
.canang {
  position: absolute; inset: 0; z-index: 5; border-radius: inherit; padding: 28px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(150deg, rgba(24,52,44,.94), rgba(12,28,23,.96));
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.canang.show { opacity: 1; visibility: visible; }
.canang svg { width: 230px; height: 230px; margin-bottom: 6px; overflow: visible; }
.canang h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin: 0; color: #f3dcae; }
.cn-ru { margin: 0; font-size: 15px; color: var(--paper); }
.cn-sub { margin: 8px 0 18px; font-size: 14px; color: rgba(245,247,241,.65); max-width: 30ch; }
.cn-tray { stroke-dasharray: 100; stroke-dashoffset: 100; }
.canang.show .cn-tray { animation: draw 1.2s var(--ease-out) .15s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cn-ears { opacity: 0; transition: opacity .8s var(--ease) .9s; }
.canang.show .cn-ears { opacity: 1; }
.cn-leaf, .cn-cl, .cn-stick { opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.canang.show .cn-leaf { animation: pop .6s var(--ease-out) 1s forwards; }
.canang.show .cn-cl { animation: pop .7s cubic-bezier(.34,1.56,.64,1) forwards; animation-delay: calc(1.25s + var(--d) * .18s); }
.canang.show .cn-stick { animation: pop .5s var(--ease-out) 2.2s forwards; }
@keyframes pop { to { opacity: 1; transform: none; } }
.cn-smoke { opacity: 0; }
.canang.show .cn-smoke { animation: smoke 3.4s ease-in-out 2.5s infinite; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(6px); } 30% { opacity: .55; } 100% { opacity: 0; transform: translateY(-14px); } }
.canang h3, .cn-ru, .cn-sub, .cn-back { opacity: 0; transform: translateY(10px); }
.canang.show h3, .canang.show .cn-ru, .canang.show .cn-sub, .canang.show .cn-back { animation: pop .8s var(--ease-out) 2.1s forwards; }
.form.is-thanked > :not(.canang) { visibility: hidden; }

/* меню по центру и в обычной шапке: справа валюта и кнопка шире логотипа — уравновешиваем */
.logo-sub { white-space: nowrap; }
@media (min-width: 1321px) { .site-header.is-solid .nav, .site-header.is-light .nav { margin-left: 80px; } }
@media (min-width: 1101px) and (max-width: 1320px) {
  .site-header .logo-sub { display: none; }
  .site-header.is-solid .nav, .site-header.is-light .nav { gap: 22px; }
}

/* ---------- кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 55; width: 50px; height: 50px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; color: var(--moss);
  background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -14px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out), background .3s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #fff; }
.to-top:hover .to-top-arrow { transform: translateY(-2px); }
.to-top svg { grid-area: 1 / 1; }
.to-top-ring { width: 50px; height: 50px; transform: rotate(-90deg); }
.to-top-ring circle { fill: none; stroke-width: 2; stroke: color-mix(in srgb, var(--moss) 12%, transparent); }
.to-top-ring circle.p { stroke: var(--turmeric); stroke-linecap: round; transition: stroke-dashoffset .15s linear; }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
@media (hover: none) { .to-top { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255,255,255,.94); } }
@media (max-width: 1100px) { .villa-page .to-top { bottom: 92px; } }
body.menu-open .to-top { opacity: 0; pointer-events: none; }

/* ---------- переключатель языка ---------- */
.lang-sw { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 3px; height: 34px; padding: 0 8px 0 12px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent; color: inherit; opacity: .9;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em;
}
.lang-btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.lang-sw.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 170px; padding: 6px; z-index: 5;
  display: flex; flex-direction: column; border-radius: 16px; color: var(--ink);
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 22px 50px -20px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.05);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.lang-sw.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; font-size: 14px; }
.lang-menu a b { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; width: 20px; opacity: .55; }
.lang-menu a:hover { background: rgba(0,0,0,.05); }
.lang-menu a[aria-current="true"] { background: var(--moss); color: var(--paper); }
.lang-menu a[aria-current="true"] b { opacity: .8; }
body.menu-open .site-header .lang-sw { display: none; }
.mm-langs { display: flex; gap: 4px; }
.mm-langs a { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .06em; padding: 7px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: var(--paper); }
.mm-langs a[aria-current="true"] { background: var(--paper); color: var(--moss); border-color: var(--paper); }
.badge-units { margin-right: auto; }
.lease-hint { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 0; padding: 14px 18px; border-radius: 14px; background: var(--lagoon-soft, rgba(44,122,115,.1)); font-size: 14.5px; line-height: 1.5; }
.lease-hint svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--lagoon); }
/* шапка-капсула на главном экране: логотип · меню · язык (валюта и кнопка появляются после прокрутки) */
.site-header:not(.is-solid):not(.is-light) .cur-toggle,
.site-header:not(.is-solid):not(.is-light) .header-cta { display: none; }
.site-header:not(.is-solid):not(.is-light) .wrap { padding-right: 14px; }
.site-header:not(.is-solid):not(.is-light) .nav { margin-left: 0 !important; margin-right: 30px !important; }
@media (max-width: 1100px) { .site-header:not(.is-solid):not(.is-light) .wrap { padding-right: 6px; } }
/* что не поместилось в шапку на длинных языках, прячет js (fitHeader в common.js) */
.site-header .fit-hide { display: none !important; }
.units-hint .units-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--lagoon); color: #fff; font: 500 13px var(--f-mono); margin-top: -2px; }
.units-hint + .lease-hint { margin-top: 10px; }
