/* Cosmos Collection Kamchatka, редизайн 09.11.2026 */
:root {
  --ground: #f3f4f1;
  --ground-2: #e9ebe6;
  --surface: #ffffff;
  --ink: #17201e;
  --ink-2: #4b5653;
  --ink-3: #5a6461;
  --line: #d7dbd4;
  --deep: #15211f;
  --deep-2: #1d2c29;
  --on-deep: #eef0ea;
  --on-deep-2: #b4bdb7;
  --brass: #c49a52;
  --brass-ink: #8a6424;
  --lake: #2a6a66;
  --display: "Tenor Sans", "Onest", system-ui, sans-serif;
  --text: "Onest", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --radius: 4px;
  --shadow: 0 24px 60px -28px rgba(18, 30, 28, 0.42), 0 6px 18px -10px rgba(18, 30, 28, 0.18);
  --shadow-soft: 0 18px 40px -26px rgba(18, 30, 28, 0.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-feature-settings: "lnum" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open, body.has-dialog { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brass); color: var(--deep); }
html { scrollbar-color: #9aa39f var(--ground); caret-color: var(--brass-ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
figure { margin: 0; }
dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 136px) 0; }
.title {
  font-family: var(--display);
  font-size: clamp(32px, 4.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.note { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { color: var(--ink-2); max-width: 46ch; }

/* Progress */
.reading-progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 120; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--brass); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 1px solid var(--ink); border-radius: var(--radius);
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.2s var(--ease), opacity 0.3s;
}
.button:hover { background: var(--lake); border-color: var(--lake); }
.button:active { transform: scale(0.98); }
.button-small { min-height: 44px; padding: 0 20px; font-size: 14px; }
.button-light { background: #fff; border-color: #fff; color: var(--ink); }
.button-light:hover { background: var(--brass); border-color: var(--brass); color: var(--deep); }
.button-gold { background: var(--brass); border-color: var(--brass); color: var(--deep); }
.button-gold:hover { background: #d8b06a; border-color: #d8b06a; }
.button.consent-pending { opacity: 0.45; }
.button:disabled { opacity: 0.6; cursor: progress; }
.full-width { width: 100%; }
.link-button {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none;
  font-size: 15px; font-weight: 500; text-decoration: underline; text-decoration-color: rgba(23, 32, 30, 0.3);
  text-underline-offset: 0.35em; white-space: nowrap; transition: text-decoration-color 0.3s, color 0.3s;
}
.link-button:hover { text-decoration-color: currentColor; color: var(--lake); }
.link-button .icon { transition: transform 0.35s var(--ease); }
.link-button:hover .icon { transform: translateX(3px); }
.link-light { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.45); }
.link-light:hover { color: #fff; }
.round-button {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  transition: background 0.3s, border-color 0.3s, transform 0.2s var(--ease);
}
.round-button:hover { border-color: var(--ink); }
.round-button:active { transform: scale(0.94); }

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: 76px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: #fff;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled { height: 64px; background: rgba(243, 244, 241, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.2) blur(12px); backdrop-filter: saturate(1.2) blur(12px); }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-top { font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.85; }
.brand-name { font-family: var(--display); font-size: 22px; letter-spacing: 0.18em; text-transform: uppercase; margin-top: 5px; }
.desktop-nav { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.desktop-nav a { position: relative; font-size: 14px; text-decoration: none; padding: 6px 0; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
.desktop-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.site-header:not(.is-scrolled) .desktop-cta { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.desktop-cta { transition: opacity 0.4s var(--ease), visibility 0.4s, transform 0.4s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease); }
.menu-toggle { display: none; width: 46px; height: 46px; border: 0; background: none; position: relative; color: inherit; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.menu-toggle span:first-child { top: 18px; }
.menu-toggle span:last-child { top: 27px; }
.menu-open .menu-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-toggle span:last-child { top: 22px; transform: rotate(-45deg); }
.menu-open .site-header { color: var(--ink); background: var(--ground); box-shadow: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--ground); color: var(--ink);
  padding: 96px var(--gutter) 32px; display: flex; flex-direction: column; gap: 32px; overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--display); font-size: 30px; line-height: 1.2; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mobile-menu-note { color: var(--ink-3); font-size: 14px; }
.menu-open .site-header { z-index: 70; }

/* Hero */
.hero { position: relative; min-height: max(620px, 100svh); padding-top: 150px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; z-index: -2; transform-origin: 40% 40%; animation: hero-drift 18s var(--ease) both; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(180deg, rgba(10, 18, 17, 0.55) 0%, rgba(10, 18, 17, 0) 22%),
  linear-gradient(0deg, rgba(10, 18, 17, 0.78) 0%, rgba(10, 18, 17, 0.38) 38%, rgba(10, 18, 17, 0) 64%),
  linear-gradient(90deg, rgba(10, 18, 17, 0.35) 0%, rgba(10, 18, 17, 0) 55%); }
@keyframes hero-drift { from { transform: scale(1.09); } to { transform: scale(1); } }
.agent-disclosure {
  position: absolute; top: 88px; left: var(--gutter); right: var(--gutter); max-width: 560px;
  font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, 0.82);
}
.agent-disclosure a { color: #fff; }
.hero-content { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 5vw, 56px); }
.hero-title { font-family: var(--display); font-size: clamp(46px, 7.4vw, 96px); line-height: 0.96; letter-spacing: -0.025em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .line > span { display: inline-block; animation: line-up 1.2s var(--ease) both; }
.hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
.hero-lead { max-width: 44ch; margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, 0.9); animation: fade-up 1s 0.35s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; animation: fade-up 1s 0.5s var(--ease) both; }
.hero-terms { display: flex; flex-wrap: wrap; margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, 0.28); animation: fade-up 1s 0.65s var(--ease) both; }
.hero-terms li { flex: 1 1 0; min-width: 150px; padding: 16px 20px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.hero-terms strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2vw, 26px); color: #fff; letter-spacing: -0.01em; margin-bottom: 2px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Project */
.project-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 7vw, 112px); align-items: start; }
.project-copy { display: grid; gap: 22px; }
.project-copy p { color: var(--ink-2); max-width: 54ch; }
.project-copy .title { margin-bottom: 6px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.project-facts > div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.project-facts dt { font-family: var(--display); font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; letter-spacing: -0.015em; }
.project-facts dd { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--ink-3); }
.project-media { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(16px, 2.5vw, 32px); align-items: end; margin-top: clamp(48px, 7vw, 96px); }
.project-main img, .project-side img { width: 100%; box-shadow: var(--shadow); border-radius: var(--radius); }
.project-main img { aspect-ratio: 3 / 2; object-fit: cover; }
.project-side { padding-bottom: clamp(0px, 6vw, 80px); }
.project-side img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 30% 50%; }

/* Band */
.band { position: relative; min-height: clamp(440px, 52vw, 640px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; isolation: isolate; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: -2; }
.band-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 18, 17, 0.72) 0%, rgba(10, 18, 17, 0.2) 55%, rgba(10, 18, 17, 0) 75%); }
.band-copy { padding-bottom: clamp(40px, 6vw, 72px); display: grid; gap: 16px; }
.band-copy .title { max-width: 18ch; }
.band-copy p { max-width: 52ch; color: rgba(255, 255, 255, 0.86); }

/* Apartments */
.apartment-layout { display: grid; grid-template-columns: minmax(0, 8fr) minmax(300px, 4fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--ground-2); touch-action: pan-y; }
.gallery-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity 0.45s var(--ease); }
.gallery-frame img.is-changing { opacity: 0; }
.gallery-controls { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; }
.gallery-controls .round-button { border-color: transparent; background: rgba(255, 255, 255, 0.92); }
.gallery-counter { min-width: 64px; padding: 0 14px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border-radius: 24px; background: rgba(23, 32, 30, 0.72); color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: none; opacity: 0.55; outline-offset: 2px; transition: opacity 0.3s; box-shadow: inset 0 0 0 0 var(--ink); }
.gallery-thumbs button:hover { opacity: 0.85; }
.gallery-thumbs button.is-active { opacity: 1; outline: 2px solid var(--ink); }
.gallery-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lot-card { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-soft); display: grid; gap: 18px; }
.lot-name { font-size: 14px; color: var(--ink-3); }
.lot-area { font-family: var(--display); font-size: clamp(48px, 5vw, 68px); line-height: 1; letter-spacing: -0.03em; margin-top: -10px; }
.lot-area span { font-size: 0.45em; letter-spacing: 0; color: var(--ink-2); }
.lot-facts { border-top: 1px solid var(--line); }
.lot-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.lot-facts dt { color: var(--ink-3); }
.lot-facts dd { font-variant-numeric: tabular-nums; text-align: right; }
.lot-price dd { font-weight: 600; }
.lot-card .link-button { justify-self: start; }

/* Income */
.income { background: var(--deep); color: var(--on-deep); }
.income-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px clamp(40px, 7vw, 112px); align-items: start; }
.income-copy { display: grid; gap: 24px; justify-items: start; }
.income-copy > p { color: var(--on-deep-2); max-width: 50ch; }
.income-figure { display: grid; gap: 8px; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 1px solid rgba(255, 255, 255, 0.14); width: 100%; }
.income-value { font-family: var(--display); font-size: clamp(64px, 9vw, 116px); line-height: 0.95; letter-spacing: -0.035em; color: var(--brass); }
.income-figure p:last-child { color: var(--on-deep-2); max-width: 40ch; font-size: 15px; }
.income-table { background: var(--deep-2); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.income-table-title { font-family: var(--display); font-size: 22px; color: #fff; }
.income-table-sub { margin: 4px 0 16px; font-size: 13px; color: #93a09a; }
.income-table dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
.income-table dt { color: var(--on-deep-2); }
.income-table dd { color: #fff; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.income-table .is-total { padding: 18px 0; }
.income-table .is-total dt { color: #fff; font-weight: 500; }
.income-table .is-total dd { color: var(--brass); font-family: var(--display); font-size: 26px; }
.income-disclaimer { margin-top: 20px; font-size: 13px; line-height: 1.5; color: #93a09a; }

/* Purchase */
.purchase-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.purchase-head .title { max-width: 20ch; }
.purchase-price { text-align: right; }
.purchase-price-label { font-size: 14px; color: var(--ink-3); }
.purchase-price-value { font-family: var(--display); font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: none; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line); }
.steps li { position: relative; padding-right: 28px; display: grid; gap: 8px; align-content: start; }
.step-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ground); border: 1px solid var(--ink); font-family: var(--display); font-size: 18px; margin-bottom: 18px; }
.steps li:first-child .step-num { background: var(--ink); color: #fff; }
.steps h3 { font-size: 15px; font-weight: 500; color: var(--ink-2); }
.step-sum { font-family: var(--display); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.steps p:last-child { font-size: 14px; color: var(--ink-3); }
.purchase-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(40px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }

/* Resort */
.resort { background: var(--ground-2); }
.resort-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.resort-gallery .gallery-frame img { aspect-ratio: 5 / 4; }
.gallery-caption { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.resort-lead-copy { display: grid; gap: 16px; }
.resort-lead-copy h3, .masterplan-copy h3 { font-family: var(--display); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.resort-lead-copy p, .masterplan-copy p { color: var(--ink-2); max-width: 46ch; }
.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid #c9cec6; }
.amenities li { padding: 24px 28px 26px 0; border-bottom: 1px solid #c9cec6; }
.amenities h3 { font-family: var(--display); font-size: 21px; margin-bottom: 8px; }
.amenities p { font-size: 15px; color: var(--ink-2); max-width: 32ch; }
.masterplan { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.masterplan-preview { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: none; box-shadow: var(--shadow); }
.masterplan-preview img { width: 100%; transition: transform 0.8s var(--ease); }
.masterplan-preview:hover img { transform: scale(1.03); }
.masterplan-label { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 26px; background: rgba(255, 255, 255, 0.94); color: var(--ink); font-size: 14px; font-weight: 500; }
.masterplan-copy { display: grid; gap: 14px; }

/* Hotel */
.hotel-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hotel-media { position: relative; padding-bottom: clamp(40px, 8vw, 110px); }
.hotel-main img { width: 86%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.hotel-inset { position: absolute; right: 0; bottom: 0; width: 48%; }
.hotel-inset img { width: 100%; aspect-ratio: 7 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--ground); }
.hotel-copy { display: grid; gap: 20px; justify-items: start; }
.hotel-copy p { color: var(--ink-2); max-width: 46ch; }

/* Location */
.location { padding-top: 0; }
.location-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.location-map img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); }
.location-copy { display: grid; gap: 20px; }
.location-copy p { color: var(--ink-2); max-width: 46ch; }
.routes { border-top: 1px solid var(--line); }
.routes li { padding: 12px 0 12px 22px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.routes li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--lake); }
.nature { display: grid; grid-template-columns: 6fr 5fr 3fr; gap: clamp(12px, 2vw, 24px); margin-top: clamp(48px, 7vw, 96px); align-items: end; }
.nature img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.nature .nature-tall img { aspect-ratio: 3 / 5; }
.nature figcaption { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* FAQ */
.faq { background: var(--surface); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px clamp(40px, 7vw, 112px); align-items: start; }
.faq-grid .title { position: sticky; top: 100px; max-width: 16ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { width: 22px; height: 22px; color: var(--ink-3); transition: transform 0.4s var(--ease); }
.faq-list details[open] summary .icon { transform: rotate(45deg); }
.faq-list details > div { padding: 0 0 24px; color: var(--ink-2); max-width: 62ch; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; background: var(--deep); color: var(--on-deep); }
.contact-media { position: relative; min-height: 420px; }
.contact-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-panel { padding: clamp(56px, 7vw, 112px) var(--gutter); max-width: 640px; display: grid; gap: 20px; align-content: center; }
.contact-lead { color: var(--on-deep-2); max-width: 46ch; }
.contact .lead-form { margin-top: 8px; }
.contact .field label { color: var(--on-deep-2); }
.contact .field input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
.contact .field input::placeholder { color: #8c9893; }
.contact .field input:focus { border-color: var(--brass); }
.contact .field-help, .contact .checkbox-label { color: var(--on-deep-2); }
.contact .checkbox-label a { color: #fff; }
.contact .button { background: var(--brass); border-color: var(--brass); color: var(--deep); }
.contact .button:hover { background: #d8b06a; border-color: #d8b06a; }
.contact-email { justify-self: start; font-size: 15px; color: var(--on-deep-2); }
.contact .form-status { color: #fff; }

/* Forms */
.lead-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; color: var(--ink-2); }
.field input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 16px; transition: border-color 0.25s; }
.field input::placeholder { color: #8b9490; }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(196, 154, 82, 0.35); }
.field-help { font-size: 13px; color: var(--ink-3); }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.checkbox-label { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.checkbox-label input { width: 20px; height: 20px; margin: 0; accent-color: var(--brass); }
.form-status { min-height: 1.4em; font-size: 14px; }
.form-status[data-state="error"] { color: #e08b7c; }
.lead-dialog .form-status[data-state="error"] { color: #a63b2a; }
.form-status[data-state="success"] { color: var(--brass); }
.lead-dialog .form-status[data-state="success"] { color: var(--lake); }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(10, 18, 17, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.lead-dialog { width: min(480px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(28px, 4vw, 40px); border-radius: 6px; background: var(--ground); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.5); }
.lead-dialog[open] { animation: dialog-in 0.45s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.lead-dialog h2 { font-family: var(--display); font-size: 30px; line-height: 1.1; padding-right: 48px; }
.dialog-intro { margin: 10px 0 22px; color: var(--ink-2); font-size: 15px; }
.dialog-close { position: absolute; top: 14px; right: 14px; }
.image-dialog { width: min(1400px, calc(100vw - 24px)); height: calc(100dvh - 24px); max-height: none; padding: 0; border-radius: 6px; background: var(--surface); display: none; }
.image-dialog[open] { display: grid; grid-template-rows: auto auto 1fr auto; }
.image-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.image-dialog-header h2 { font-family: var(--display); font-size: 22px; }
.image-dialog-tools { display: flex; align-items: center; gap: 12px; }
#image-loading:empty { display: none; }
#image-loading { padding: 12px 20px; color: var(--ink-3); }
.image-dialog-scroll { overflow: auto; min-height: 0; display: grid; place-items: center; background: var(--ground-2); }
.image-dialog-scroll img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.image-dialog.is-zoomed .image-dialog-scroll { place-items: start; }
.image-dialog.is-zoomed .image-dialog-scroll img { max-width: none; max-height: none; width: 2400px; }
#image-help { padding: 10px 20px; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); }

/* Cookie */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; background: var(--surface); color: var(--ink); border-radius: 6px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.45); font-size: 14px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner div { display: flex; gap: 8px; }
.cookie-banner button { min-height: 40px; padding: 0 16px; border-radius: var(--radius); font-size: 14px; white-space: nowrap; }
.cookie-primary { background: var(--ink); color: #fff; border: 1px solid var(--ink); }
.cookie-secondary { background: none; border: 1px solid var(--line); }
.noscript-note { position: fixed; bottom: 0; left: 0; right: 0; padding: 12px; background: var(--ink); color: #fff; text-align: center; z-index: 90; }

/* Footer */
.site-footer { background: #0f1817; color: var(--on-deep-2); padding: 56px 0 28px; font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.brand-footer { color: #fff; }
.back-top { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 24px 0; }
.footer-links a, .footer-links button { color: var(--on-deep); background: none; border: 0; padding: 0; font-size: 14px; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 0.3em; }
.footer-legal { font-size: 12px; line-height: 1.6; color: #869390; max-width: 110ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; font-size: 12px; color: #8f9c98; }

/* Reveal system */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
.reveal-ready [data-reveal="title"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); }
.reveal-ready [data-reveal="media"] { opacity: 1; transform: none; clip-path: inset(12% 0 0 0); transition: clip-path 1.3s var(--ease); }
.reveal-ready [data-reveal="media"] img { transform: scale(1.08); transition: transform 1.6s var(--ease); }
.reveal-ready [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal-ready .is-visible[data-reveal] { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.reveal-ready .is-visible[data-reveal="media"] img { transform: none; }
.reveal-ready .is-visible[data-stagger] > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready [data-reveal], .reveal-ready [data-stagger] > *, .reveal-ready [data-reveal] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* Tablet */
@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .section-head, .project-grid, .income-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .apartment-layout { grid-template-columns: 1fr; }
  .lot-card { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .amenities { grid-template-columns: 1fr 1fr; }
  .resort-lead, .masterplan, .hotel-grid, .location-grid { grid-template-columns: 1fr; }
  .faq-grid .title { position: static; }
  .contact { grid-template-columns: 1fr; }
  .contact-media { min-height: 320px; }
  .contact-panel { max-width: 720px; }
}

/* Phone */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .desktop-cta { display: none; }
  .site-header { height: 64px; }
  .brand-name { font-size: 18px; }
  .hero { min-height: max(568px, 100svh); padding-top: 128px; }
  .hero-media { object-position: 24% 50%; }
  .agent-disclosure { top: 74px; font-size: 11px; }
  .hero-title { font-size: clamp(38px, 11.6vw, 58px); }
  .hero-lead { margin-top: 16px; font-size: 15px; }
  .hero-actions { margin-top: 22px; gap: 12px 22px; }
  .hero-terms { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-terms li { min-width: 0; padding: 12px 10px 0 0; font-size: 12px; }
  .hero-terms strong { font-size: 18px; }
  .project-facts dt { font-size: 24px; }
  .project-media { grid-template-columns: 1fr; }
  .project-side { padding-bottom: 0; width: 70%; justify-self: end; margin-top: -48px; position: relative; }
  .project-side img { aspect-ratio: 4 / 3; }
  .gallery-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
  .gallery-controls { right: 10px; bottom: 10px; }
  .gallery-controls .round-button, .gallery-counter { height: 42px; }
  .gallery-controls .round-button { width: 42px; }
  .income-table dl > div { font-size: 14px; }
  .purchase-head { flex-direction: column; align-items: flex-start; }
  .purchase-price { text-align: left; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { grid-template-columns: 46px 1fr; column-gap: 16px; padding: 0 0 26px; }
  .steps li > * { grid-column: 2; }
  .steps .step-num { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .purchase-foot .button { width: 100%; }
  .amenities { grid-template-columns: 1fr; }
  .amenities li { padding-right: 0; }
  .hotel-main img { width: 100%; }
  .hotel-media { padding-bottom: 72px; }
  .hotel-inset { width: 58%; }
  .nature { grid-template-columns: 1fr 1fr; }
  .nature figure:first-child { grid-column: 1 / -1; }
  .nature .nature-tall img { aspect-ratio: 3 / 4; }
  .contact-media { min-height: 240px; }
  .faq-list summary { font-size: 16px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner div { width: 100%; }
  .cookie-banner button { flex: 1; }
}
@media (max-width: 360px) {
  .hero-actions .button { padding: 0 20px; }
  .hero-terms li { font-size: 11px; }
}
