:root {
  --bg: #ececed;
  --card: #f7f7f8;
  --white: #ffffff;
  --ink: #25252b;
  --muted: #5b5b64;
  --line: #d9d9dc;
  --navy: #2b3a4f;
  --mint: #e1ecec;
  --gold-text: #7a5710;
  --gold: linear-gradient(135deg, #9f731d 0%, #77510f 100%);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --r-xl: 32px;
  --r-lg: 26px;
  --r-md: 18px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --maxw: 1320px;
  --hdr-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; }
.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #b5842a; outline-offset: 3px; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 240ms var(--ease) both; }
::view-transition-new(root) { animation: vt-in 520ms var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }

/* ===== Header ===== */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 14px var(--gutter); transition: transform 520ms var(--ease); }
.hdr.is-hidden { transform: translateY(-120%); }
.hdr-in { width: min(var(--maxw), 100%); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 10px 12px 10px 22px; border-radius: 999px; background: transparent; transition: background 400ms ease, box-shadow 400ms ease, backdrop-filter 400ms ease; }
.hdr.is-solid .hdr-in { background: rgb(247 247 248 / .82); backdrop-filter: blur(16px) saturate(1.3); box-shadow: 0 10px 40px -18px rgb(40 30 10 / .35), 0 0 0 1px rgb(255 255 255 / .7) inset; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.28rem; letter-spacing: .02em; text-transform: uppercase; color: #8b6213; white-space: nowrap; }
.brand svg { flex: none; }
.nav { display: flex; gap: clamp(18px, 2.6vw, 38px); }
.nav a { position: relative; text-decoration: none; font-weight: 500; font-size: .95rem; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 420ms var(--ease); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav a:hover::after { transform: scaleX(1); } }
.tools { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .7); border: 1px solid rgb(0 0 0 / .06); }
.lang button { border: 0; background: transparent; padding: 6px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: background 250ms ease, color 250ms ease; }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform 420ms var(--ease), opacity 200ms ease; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.mnav { position: fixed; inset: 0; z-index: 55; background: var(--card); display: grid; align-content: center; justify-items: start; gap: 6px; padding: 100px var(--gutter) 40px; clip-path: circle(0% at calc(100% - 44px) 44px); visibility: hidden; transition: clip-path 700ms var(--ease-io), visibility 0s linear 700ms; }
.mnav.is-open { clip-path: circle(150% at calc(100% - 44px) 44px); visibility: visible; transition-delay: 0s; }
.mnav a.ml { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 9vw, 3.4rem); text-decoration: none; opacity: 0; transform: translateY(22px); transition: opacity 500ms var(--ease), transform 600ms var(--ease); }
.mnav.is-open a.ml { opacity: 1; transform: none; transition-delay: calc(240ms + var(--i) * 70ms); }
.mnav .btn { margin-top: 22px; opacity: 0; transition: opacity 500ms ease 520ms; }
.mnav.is-open .btn { opacity: 1; }

/* ===== Buttons ===== */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent; background: var(--gold); color: #fff; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 200ms var(--ease), box-shadow 350ms ease; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .38) 50%, transparent 70%); transform: translateX(-130%); }
.btn:active { transform: scale(0.97); }
.btn svg { transition: transform 350ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { box-shadow: 0 14px 30px -10px rgb(122 87 16 / .55); }
  .btn:hover::after { transform: translateX(130%); transition: transform 900ms var(--ease); }
  .btn:hover svg { transform: translate(2px, -2px); }
}
.btn-outline { background: transparent; border-color: rgb(255 255 255 / .65); color: #fff; backdrop-filter: blur(6px); }
.btn-dark { background: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: .86rem; }

/* ===== Hero ===== */
main { padding-top: var(--hdr-h); }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); min-height: clamp(580px, 84dvh, 800px); color: #fff; display: grid; align-items: center; padding: clamp(18px, 3vw, 34px); }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 118%; object-fit: cover; will-change: transform; animation: hero-in 2200ms var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.14); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(12 10 8 / .5) 0%, rgb(12 10 8 / .12) 55%, rgb(12 10 8 / .25) 100%), linear-gradient(0deg, rgb(12 10 8 / .5) 0%, transparent 40%); }
.glass { background: rgb(18 16 14 / .3); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(20px) saturate(1.25); border-radius: var(--r-lg); }
.hero-panel { width: min(540px, 100%); padding: clamp(22px, 3vw, 38px); display: grid; gap: 18px; }
.hero-panel h1 { text-transform: uppercase; font-size: clamp(2rem, 4.6vw, 3.5rem); text-wrap: balance; }
.hero-panel h1 span { color: #e7c777; }
.hero-panel p.lead { font-size: 1.02rem; color: rgb(255 255 255 / .92); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.rating { display: grid; gap: 4px; font-size: .92rem; }
.stars { display: inline-flex; gap: 3px; color: #f0cf7e; }
.hero-trust { position: absolute; right: clamp(18px, 3vw, 34px); bottom: clamp(30px, 4vw, 56px); width: min(380px, 40%); padding: 18px 20px; display: grid; gap: 12px; font-size: .92rem; font-weight: 500; }
.avatars { display: flex; }
.avatars span { width: 38px; height: 38px; margin-inline-end: -8px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 600; color: #fff; border: 2px solid rgb(255 255 255 / .85); }
.avatars span:nth-child(1) { background: #7a5710; }
.avatars span:nth-child(2) { background: #2b3a4f; }
.avatars span:nth-child(3) { background: #5d6f5a; }
.avatars span:nth-child(4) { background: #8a4f4a; }

.hero-panel > *, .hero-trust { animation: rise 1100ms var(--ease) both; }
.hero-panel > *:nth-child(1) { animation-delay: 250ms; }
.hero-panel > *:nth-child(2) { animation-delay: 380ms; }
.hero-panel > *:nth-child(3) { animation-delay: 500ms; }
.hero-panel > *:nth-child(4) { animation-delay: 620ms; }
.hero-trust { animation-delay: 800ms; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }

/* Booking bar */
.bar { position: relative; z-index: 4; width: min(1080px, calc(100% - 2 * var(--gutter) + 0px)); margin: -46px auto 0; padding: 14px; border-radius: 28px; background: rgb(247 247 248 / .96); backdrop-filter: blur(14px); box-shadow: 0 30px 60px -30px rgb(40 30 10 / .45); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 10px; animation: rise 1000ms var(--ease) 900ms both; }
.field { display: grid; gap: 2px; padding: 9px 16px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); transition: border-color 250ms ease, box-shadow 250ms ease; }
.field:focus-within { border-color: #b5842a; box-shadow: 0 0 0 3px rgb(181 132 42 / .2); }
.field label { font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field :is(input, select) { width: 100%; border: 0; background: transparent; padding: 2px 0; font: inherit; font-weight: 500; font-size: .95rem; color: var(--ink); min-height: 28px; }
.field :is(input, select):focus-visible { outline: none; }
.bar .btn { align-self: stretch; padding-inline: 32px; }

/* ===== Sections ===== */
section { padding: clamp(60px, 9vw, 120px) 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 60px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 52px); }
.sec-head h2 { max-width: 14ch; text-wrap: balance; }
.sec-head p { max-width: 44ch; color: var(--muted); font-size: .98rem; }

/* Offers */
.offers { display: grid; grid-template-columns: 1.08fr 1fr; grid-template-rows: repeat(2, minmax(220px, 1fr)); gap: 18px; height: clamp(520px, 60vw, 680px); }
.offer { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); color: #fff; display: flex; align-items: flex-end; padding: clamp(18px, 2.4vw, 30px); text-decoration: none; }
.offer.big { grid-row: span 2; }
.offer img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms var(--ease); }
.offer::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(12 10 8 / .72) 0%, rgb(12 10 8 / .05) 62%); }
@media (hover: hover) and (pointer: fine) { .offer:hover img { transform: scale(1.06); } }
.offer h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); margin-bottom: 6px; }
.offer p { font-size: .88rem; color: rgb(255 255 255 / .9); }
.offer .go { margin-inline-start: auto; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .18); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .35); transition: background 300ms ease, transform 400ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .offer:hover .go { background: #fff; color: var(--ink); transform: rotate(45deg); } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { border-radius: var(--r-lg); background: var(--mint); padding: clamp(20px, 2.6vw, 34px); min-height: 170px; display: flex; flex-direction: column; justify-content: space-between; }
.stat b { font-family: var(--sans); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; }
.stat span { font-size: .92rem; color: var(--muted); }
.stat.navy { background: var(--navy); color: #fff; }
.stat.navy span { color: rgb(255 255 255 / .8); }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 14px; }
.collage .ph { border-radius: var(--r-lg); overflow: hidden; }
.collage .ph img { width: 100%; height: 100%; object-fit: cover; }
.collage .ph:nth-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 7.5; }
.collage .ph:nth-child(2) { aspect-ratio: 1 / 1.05; }
.collage .ph:nth-child(3) { aspect-ratio: 1 / 1.25; margin-top: 22px; }
.badge { position: absolute; left: 50%; top: calc(34% + 12px); translate: -50% 0; width: 104px; height: 104px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 7px var(--bg); z-index: 2; }
.badge svg.ring { position: absolute; inset: 0; animation: spin 22s linear infinite; }
.badge text { font-family: var(--sans); font-size: 10.4px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; fill: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Rooms rail + cards */
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px max(var(--gutter), calc((100vw - var(--maxw)) / 2)) 28px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); cursor: grab; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-drag { cursor: grabbing; scroll-snap-type: none; }
.rail.is-drag a { pointer-events: none; }
.rail .rcard { flex: 0 0 clamp(280px, 27vw, 360px); scroll-snap-align: start; }
.rail-ctrl { display: flex; gap: 10px; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background 300ms ease, color 300ms ease, transform 200ms var(--ease); }
.round:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .round:hover { background: var(--ink); color: #fff; } }

.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: clamp(26px, 4vw, 44px); }
.chip { padding: 10px 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-weight: 500; font-size: .9rem; cursor: pointer; transition: background 300ms ease, color 300ms ease, transform 200ms var(--ease), border-color 300ms ease; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { border-color: var(--ink); } }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.rcard { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 1px 0 #fff inset, 0 24px 44px -30px rgb(40 30 10 / .35); transition: transform 600ms var(--ease), opacity 400ms ease, box-shadow 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .rcard:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 34px 54px -28px rgb(40 30 10 / .45); } }
.rcard.is-out { opacity: 0; transform: scale(.96); }
.rcard .ph { overflow: hidden; margin: 10px 10px 0; border-radius: calc(var(--r-xl) - 8px) calc(var(--r-xl) - 8px) 14px 14px; aspect-ratio: 16 / 10.5; }
.rcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1100ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .rcard:hover .ph img { transform: scale(1.07); } }
.rbody { padding: 16px 20px 20px; display: grid; gap: 10px; flex: 1; align-content: start; }
.tag { justify-self: start; padding: 3px 12px; border-radius: 999px; background: var(--white); font-size: .72rem; font-weight: 500; }
.rbody h3 { font-family: var(--sans); font-weight: 600; font-size: 1.02rem; text-transform: uppercase; letter-spacing: .02em; }
.rbody .where { color: var(--muted); font-size: .9rem; margin-top: -6px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--white); font-size: .76rem; }
.pills svg { flex: none; color: var(--gold-text); }
.rfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); }
.price { font-weight: 600; font-size: 1.05rem; }
.price small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

/* Experience */
.exp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xcard { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); aspect-ratio: 3 / 4.2; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 26px; }
.xcard img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1300ms var(--ease); }
.xcard::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(12 10 8 / .78), transparent 60%); }
@media (hover: hover) and (pointer: fine) { .xcard:hover img { transform: scale(1.06); } }
.xcard h3 { margin-bottom: 6px; }
.xcard p { font-size: .9rem; color: rgb(255 255 255 / .9); max-width: 30ch; }

/* Testimonials */
.test { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.frame { position: relative; border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 90px; overflow: hidden; aspect-ratio: 1.04 / 1; }
.frame > img { width: 100%; height: 100%; object-fit: cover; }
.frame .ring { position: absolute; inset: 12% 16% 10% 16%; border: 2px solid #d3a343; border-radius: 34px; }
.frame .who { position: absolute; left: calc(16% + 18px); bottom: calc(10% + 16px); color: #fff; font-size: .88rem; text-shadow: 0 1px 12px rgb(0 0 0 / .5); }
.frame .who b { display: block; font-size: 1.02rem; }
.score { position: absolute; right: 16%; bottom: 10%; padding: 12px 18px; border-radius: 12px 0 18px 0; background: var(--gold); color: #fff; font-size: 1.4rem; font-weight: 500; }
.tcopy { display: grid; gap: 26px; }
.kicker { display: grid; gap: 4px; font-size: .78rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.kicker .stars { color: #b5842a; }
.quote { font-size: clamp(1.25rem, 2.3vw, 1.85rem); font-weight: 500; line-height: 1.45; min-height: 7.6em; transition: opacity 400ms ease, transform 500ms var(--ease), filter 400ms ease; text-wrap: pretty; }
.quote.is-swap { opacity: 0; transform: translateY(10px); filter: blur(4px); }
.tsub { color: var(--muted); max-width: 44ch; font-size: .95rem; }
.dots { display: flex; gap: 12px; }
.dots button { width: 50px; height: 50px; padding: 0; border-radius: 50%; border: 2px solid transparent; background: none; cursor: pointer; transition: transform 300ms var(--ease), border-color 300ms ease; }
.dots button span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; color: #fff; font-size: .82rem; font-weight: 600; }
.dots button[aria-pressed="true"] { border-color: #b5842a; transform: scale(1.08); }
.dots button:nth-child(1) span { background: #7a5710; }
.dots button:nth-child(2) span { background: #2b3a4f; }
.dots button:nth-child(3) span { background: #5d6f5a; }

/* CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); background: var(--navy); color: #fff; padding: clamp(32px, 6vw, 80px); display: grid; gap: 20px; justify-items: start; }
.cta::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(214 168 72 / .28), transparent); }
.cta p { max-width: 52ch; color: rgb(255 255 255 / .85); }

/* Page head */
.page-head { padding-top: clamp(30px, 5vw, 60px); }

/* Gallery */
.masonry { columns: 3 280px; column-gap: 16px; }
.mi { break-inside: avoid; margin: 0 0 16px; position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: zoom-in; background: var(--card); transition: opacity 400ms ease, transform 600ms var(--ease); }
.mi.is-out { opacity: 0; transform: scale(.96); }
.mi button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: inherit; }
.mi img { width: 100%; height: auto; transition: transform 1100ms var(--ease); }
.mi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(12 10 8 / .35), transparent 45%); opacity: 0; transition: opacity 400ms ease; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .mi:hover img { transform: scale(1.05); } .mi:hover::after { opacity: 1; } }

dialog.lb { border: 0; padding: 0; background: transparent; width: 100%; max-width: 100vw; height: 100dvh; max-height: 100dvh; color: #fff; }
dialog.lb::backdrop { background: rgb(12 10 8 / .9); backdrop-filter: blur(8px); }
dialog.lb[open] { display: grid; place-items: center; animation: lb-in 400ms var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } }
.lb figure { margin: 0; display: grid; place-items: center; }
.lb img { max-width: min(1100px, 92vw); max-height: 82dvh; border-radius: 20px; object-fit: contain; animation: lb-img 600ms var(--ease) both; }
@keyframes lb-img { from { opacity: 0; transform: scale(.96); } }
.lb figcaption { margin-top: 12px; font-size: .9rem; color: rgb(255 255 255 / .8); }
.lb .round { position: absolute; border-color: rgb(255 255 255 / .6); color: #fff; background: rgb(255 255 255 / .08); }
.lb .round.x { top: 18px; right: 18px; }
.lb .round.p { left: 18px; top: 50%; translate: 0 -50%; }
.lb .round.n { right: 18px; top: 50%; translate: 0 -50%; }

/* Footer */
.ftr { margin-top: clamp(70px, 10vw, 140px); padding: clamp(40px, 6vw, 70px) 0 28px; background: linear-gradient(180deg, var(--bg) 0%, #e8e1d3 55%, #d9bf7d 100%); }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); }
.ftr h4 { font-family: var(--sans); font-weight: 500; font-size: 1.1rem; margin-bottom: 14px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.ftr a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .ftr ul a:hover { text-decoration: underline; text-underline-offset: 4px; } }
.ftr .desc { font-size: .92rem; color: var(--muted); max-width: 36ch; margin: 14px 0 20px; }
.ftr .contact li { display: flex; gap: 10px; align-items: flex-start; }
.ftr .contact svg { flex: none; margin-top: 4px; color: var(--gold-text); }
.ftr-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgb(0 0 0 / .12); display: flex; justify-content: space-between; align-items: center; gap: 14px 24px; flex-wrap: wrap; font-size: .84rem; color: #3f3a2c; }
.switch { display: inline-flex; align-items: center; gap: 10px; }
.switch .lang { background: rgb(255 255 255 / .6); }

/* Scroll reveal */
[data-rv] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 1000ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[data-rv].in { opacity: 1; transform: none; }
[data-rv="img"] { opacity: 1; transform: none; overflow: hidden; border-radius: var(--r-xl); }
.frame[data-rv="img"] { border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 90px; }
[data-rv="img"] img { clip-path: inset(0 0 100% 0); transform: scale(1.18); transition: clip-path 1300ms var(--ease-io), transform 1800ms var(--ease); transition-delay: calc(var(--i, 0) * 120ms); }
[data-rv="img"].in img { clip-path: inset(0 0 0% 0); transform: scale(1); }
[data-rv].done { transition-delay: 0ms; }
.rcard[data-rv].done { transition: transform 600ms var(--ease), opacity 400ms ease, box-shadow 600ms var(--ease); }
.mi[data-rv].done { transition: opacity 400ms ease, transform 600ms var(--ease); }
.rcard.is-out, .mi.is-out { opacity: 0 !important; transform: scale(.96) !important; }
[hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .rcard[data-rv].in:hover { transform: translateY(-6px); } }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hdr-in { grid-template-columns: 1fr auto; padding-inline: 18px 10px; }
  .nav, .tools .btn { display: none; }
  .burger { display: block; }
  .bar { grid-template-columns: 1fr 1fr; }
  .bar .btn { grid-column: 1 / -1; padding-block: 16px; }
  .about-grid, .test { grid-template-columns: 1fr; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { display: none; }
}
@media (max-width: 760px) {
  :root { --hdr-h: 76px; --r-xl: 26px; }
  .hero { align-items: end; min-height: min(88dvh, 720px); padding-bottom: 72px; }
  .hero-panel { width: 100%; }
  .offers { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
  .offer, .offer.big { grid-row: auto; aspect-ratio: 4 / 3.2; }
  .exp { grid-template-columns: 1fr; }
  .xcard { aspect-ratio: 4 / 3.4; }
  .stats { gap: 12px; }
  .stat { min-height: 140px; }
  .badge { width: 84px; height: 84px; }
  .badge text { font-size: 9px; }
  .sec-head h2 { max-width: none; }
  .quote { min-height: 0; }
  .masonry { columns: 2 150px; column-gap: 10px; }
  .mi { margin-bottom: 10px; border-radius: 16px; }
  .ftr-grid { grid-template-columns: 1fr; }
  .lb .round.p { left: 8px; } .lb .round.n { right: 8px; }
}
@media (max-width: 420px) {
  .bar { grid-template-columns: 1fr; }
  .lang button { padding: 6px 9px; }
  .brand { font-size: .98rem; gap: 7px; }
  .brand svg { width: 24px; height: 24px; }
  .hdr-in { padding-inline: 14px 8px; }
  .tools { gap: 8px; }
}
.brand { min-width: 0; }
.brand span { overflow: hidden; text-overflow: ellipsis; }
.hdr-in { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
@media (max-width: 1024px) { .hdr-in { grid-template-columns: minmax(0, 1fr) auto; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  [data-rv], [data-rv="img"], [data-rv="img"] img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .hero-panel > *, .hero-trust, .bar { animation: none !important; }
  .badge svg.ring { animation: none; }
}
