/* Treasure Town — full-screen scenes with glass panels (layout modelled on vinode.io real-estate viewers) */
:root {
  --bg: #101418;
  --glass: rgba(24, 27, 31, 0.46);
  --glass-line: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.68);
  --green: #3ccf7a;
  --amber: #f2b33d;
  --blue: #1F6FD6;
  --pw: 440px; /* side panel width (desktop) */
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body { margin: 0; background: var(--bg); color: #fff; font: 500 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
svg { flex: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-line);
  border-radius: 18px;
}
.muted { color: var(--muted); }
.small { font-size: 12px; }
.btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #101418; font: 700 15px var(--font); white-space: nowrap; transition: transform .15s, background .15s;
}
.btn-white:hover { background: #eef0f2; }
.btn-white:active { transform: scale(.98); }
.btn-white:disabled { opacity: .5; cursor: not-allowed; }
.btn-white.wide { width: 100%; height: 50px; }
.btn-glass {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .32); color: #fff; font: 700 14px var(--font);
}
.btn-glass:hover { background: rgba(255, 255, 255, .2); }

/* ---------- floating pill header ---------- */
.pill {
  position: fixed; z-index: 40; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1000px, calc(100% - 24px)); height: 58px; padding: 0 8px 0 14px;
  display: flex; align-items: center; gap: 18px; border-radius: 999px;
  background: rgba(24, 27, 31, .5); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--glass-line);
}
.pill-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.pill-brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; }
.pill-nav { display: flex; gap: 22px; margin: 0 auto; }
.pill-nav a { font-size: 14px; font-weight: 600; opacity: .82; padding: 6px 0; border-bottom: 2px solid transparent; }
.pill-nav a:hover, .pill-nav a.on { opacity: 1; border-color: #fff; }
.pill-lang { height: 42px; min-width: 42px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .08); cursor: pointer; font: 800 13px var(--font); letter-spacing: .04em; flex: none; }
.pill-lang:hover { background: rgba(255, 255, 255, .2); }
.pill-time { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; display: grid; place-items: center; flex: none; }
.pill-time:hover { background: rgba(255, 255, 255, .22); }
.pill-time svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .3s, transform .3s; }
.pill-time .ic-moon { fill: #fff; stroke: none; opacity: 0; transform: rotate(-40deg) scale(.6); }
html[data-time="night"] .pill-time .ic-moon { opacity: 1; transform: none; }
html[data-time="night"] .pill-time .ic-sun { opacity: 0; transform: rotate(40deg) scale(.6); }
html[data-time="night"] .pill-time { background: #ffd27a; }
html[data-time="night"] .pill-time .ic-moon { fill: #101418; }
.pill-btn { height: 42px; padding: 0 20px; border-radius: 999px; background: #fff; color: #101418; font-weight: 700; font-size: 14px; display: flex; align-items: center; }
.pill-menu { display: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.pill-menu i { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s; }
.pill.menu-open .pill-menu i:first-child { transform: translateY(3.5px) rotate(45deg); }
.pill.menu-open .pill-menu i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- scenes ---------- */
.scene { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: var(--bg); }
.scene::before { /* keeps the title readable over bright skies (a plain dark gradient, no glow) */
  content: ''; position: absolute; z-index: 3; left: 0; right: 0; top: 0; height: 220px; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 10, 14, .55), rgba(8, 10, 14, 0));
}
.scene-head { position: absolute; z-index: 5; top: 92px; left: 24px; display: flex; align-items: center; gap: 12px; }
.scene-title { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.scene-back {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--glass-line); cursor: pointer; display: grid; place-items: center;
  background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.scene-back svg, .pn-close svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.scene-back[hidden] { display: none; }

/* ---------- hero ---------- */
.scene-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .55) 100%),
              radial-gradient(ellipse 60% 45% at 50% 46%, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0)); }
.hero-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 20px; }
.hero-copy h1 { font-size: clamp(46px, 8.4vw, 112px); font-weight: 800; letter-spacing: -.025em; }
.hero-copy p { margin: 16px 0 28px; font-size: clamp(16px, 2vw, 24px); font-weight: 600; line-height: 1.35; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 84px; transform: translateX(-50%); width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 14px; }
.scroll-cue i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.disclaimer { position: absolute; z-index: 4; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; font-size: 12px; border-radius: 999px; white-space: nowrap; }
.disclaimer button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); cursor: pointer; font-size: 16px; line-height: 1; }

/* ---------- strip (bottom thumbnails) ---------- */
.strip { position: absolute; z-index: 5; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 48px); transition: left .6s; }
.strip-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); padding-bottom: 6px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.strip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.strip-row::-webkit-scrollbar { display: none; }
.th { flex: none; width: 92px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; gap: 5px; text-align: center; font-size: 11px; font-weight: 600; }
.th img, .th .ic, .th .ic360 { width: 92px; height: 58px; object-fit: cover; border-radius: 9px; border: 2px solid rgba(255, 255, 255, .15); transition: border-color .15s; }
.th .ic, .th .ic360 { display: grid; place-items: center; font-size: 17px; font-weight: 800; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.th.on img, .th.on .ic, .th:hover img, .th:hover .ic, .th:hover .ic360 { border-color: #fff; }
.th-plan img { object-fit: contain; background: #ece9e4; }
.compass { position: absolute; z-index: 5; right: 24px; bottom: 26px; width: 42px; height: 42px; }
.compass circle { fill: rgba(0, 0, 0, .35); stroke: rgba(255, 255, 255, .7); stroke-width: 1.2; }
.compass path { fill: rgba(255, 255, 255, .45); }
.compass path.n { fill: #fff; }
.compass text { fill: #fff; font: 700 6px var(--font); text-anchor: middle; }

/* ---------- apartments ---------- */
.apt .stage { position: absolute; inset: 0; overflow: hidden; overflow: clip; background: #0d1013; }
.stage-blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(26px) brightness(.55); }
.stage-move { position: absolute; inset: 0; transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.stage-img, .stage-intro { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.apt.intro .stage-img { transform: scale(1.12); }
.apt.intro-run .stage-img { transform: scale(1); transition: transform 1.8s cubic-bezier(.2, .7, .2, 1); }
.stage-svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; }
.apt.intro .stage-svg, .apt.intro .summary { opacity: 0; }
.stage-svg [role="button"] { cursor: pointer; outline: none; }
.tw polygon { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, .55); stroke-width: 1.2; stroke-dasharray: 4 4; transition: fill .2s, stroke .2s; }
.tw:hover polygon, .tw:focus-visible polygon { fill: rgba(60, 207, 122, .26); stroke: var(--green); stroke-width: 2; stroke-dasharray: none; }
.tw.closed:hover polygon, .tw.closed:focus-visible polygon { fill: rgba(255, 255, 255, .16); stroke: #fff; }
.tw .tag rect { fill: rgba(16, 20, 24, .62); stroke: rgba(255, 255, 255, .4); stroke-width: 1; }
.tw .tag text { fill: #fff; font: 700 12.5px var(--font); text-anchor: middle; dominant-baseline: middle; }
.tw.closed .tag rect { fill: rgba(16, 20, 24, .45); stroke-dasharray: 3 3; }
.dim { fill: rgba(6, 8, 12, .58); pointer-events: none; }
.tw-other { fill: rgba(0, 0, 0, 0); cursor: pointer; }
.fl { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .6); stroke-width: 1; transition: fill .15s; }
.fl:hover, .fl.hot, .fl:focus-visible { fill: rgba(60, 207, 122, .38); stroke: var(--green); }
.fl.on { fill: rgba(60, 207, 122, .55); stroke: var(--green); }
.fl.svc { fill: rgba(0, 0, 0, .4); }
.fl.full { fill: rgba(0, 0, 0, .32); }
.floor-pick button.full { opacity: .45; }
.floor-pick button.full span { color: var(--muted); }
.fl-num { fill: #fff; font: 700 13px var(--font); text-anchor: end; dominant-baseline: middle; pointer-events: none; }
.fl-num.on { fill: var(--green); }

.summary { position: absolute; z-index: 5; left: 24px; bottom: 24px; padding: 12px 12px 12px 18px; display: flex; align-items: center; gap: 18px; border-radius: 999px; transition: opacity .4s; }
.summary p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; line-height: 1.25; color: var(--muted); }
.summary p b { color: #fff; font-size: 30px; font-weight: 800; }
.summary .btn-white { height: 44px; }
.apt:has(.panel.open) .summary { opacity: 0; pointer-events: none; }

.panel { z-index: 6; }
.apt .panel { position: absolute; left: 24px; top: 144px; bottom: 24px; width: var(--pw); padding: 14px; display: flex; flex-direction: column; gap: 10px;
  transform: translateX(calc(-100% - 40px)); opacity: 0; pointer-events: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .4s; }
.apt .panel.open { transform: none; opacity: 1; pointer-events: auto; }
.pn-head { display: flex; align-items: center; gap: 8px; }
.pn-toggle { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; }
.pn-toggle i { font-style: normal; font-size: 11px; min-width: 20px; height: 20px; border-radius: 10px; background: #fff; color: #101418; display: grid; place-items: center; }
.pn-toggle svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; transition: transform .2s; }
.pn-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.pn-clear { margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--muted); }
.pn-clear:hover { color: #fff; }
.pn-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, .08); cursor: pointer; display: grid; place-items: center; }
.pn-filters { display: grid; grid-template-columns: 70px 1fr; gap: 10px 12px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.pn-filters[hidden] { display: none; }
.pn-filters > span { color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, .1); justify-self: start; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--muted); }
.seg button.on { background: #fff; color: #101418; }
.pn-filters select { height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; padding: 0 10px; font: 600 13px var(--font); }
select option { color: #111; }
.tog { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.tog input { width: 18px; height: 18px; accent-color: var(--green); }
.pn-count { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; }
.pn-count > div { display: grid; }
.pn-count b { font-size: 18px; }
.pn-count span { font-size: 12px; color: var(--muted); }
.sort select { height: 36px; max-width: 210px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; padding: 0 8px; font: 600 12px var(--font); cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.seg-wrap { flex-wrap: wrap; gap: 2px; }
.seg-wrap button { padding: 6px 9px; }
.pn-cards { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; align-content: start; gap: 10px; padding-right: 4px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.pn-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px 0; }
.card { position: relative; display: grid; gap: 6px; padding: 9px; text-align: left; cursor: pointer; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .07); transition: border-color .15s, background .15s; }
.card:hover, .card.hot, .card:focus-visible { border-color: var(--green); background: rgba(255, 255, 255, .13); }
.card.sold { opacity: .55; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; padding: 6px; background: linear-gradient(160deg, #f4f2ee, #e4e0da); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: rgba(16, 20, 24, .7); color: #fff; }
.card .badge { position: absolute; top: 15px; left: 15px; }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge.reserved i { background: var(--amber); }
.badge.sold i { background: #999; }
.c-code { font-size: 15px; font-weight: 800; }
.card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
.card dl div { display: flex; gap: 5px; align-items: baseline; }
.card dt { font-size: 11px; color: var(--muted); }
.card dd { margin: 0; font-size: 12px; font-weight: 700; }
.c-price { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 6px; }
.c-price span { font-size: 11px; color: var(--muted); }
.c-price b { font-size: 14px; }

.plan-card { position: absolute; z-index: 6; left: calc(var(--pw) + 48px); right: 24px; top: 144px; bottom: 136px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.plan-card[hidden] { display: none; }
.pc-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pc-head b { font-size: 17px; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.legend i.available { background: var(--green); } .legend i.reserved { background: var(--amber); } .legend i.sold { background: #888; }
.pc-close { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); cursor: pointer; font-size: 22px; line-height: 1; }
.plan-svg { flex: 1; min-height: 0; width: 100%; border-radius: 12px; }
.pu polygon { fill: rgba(60, 207, 122, .16); stroke: var(--green); stroke-width: 4; transition: fill .15s; }
.pu.reserved polygon { fill: rgba(242, 179, 61, .22); stroke: var(--amber); }
.pu.sold polygon { fill: rgba(110, 110, 110, .6); stroke: #999; }
.pu:hover polygon, .pu.hot polygon, .pu:focus-visible polygon { fill: rgba(60, 207, 122, .42); stroke: #fff; }
.pu.faded { opacity: .3; }
.pu .tag rect { fill: rgba(16, 20, 24, .84); }
.pu .tag text { fill: #fff; font: 800 40px var(--font); text-anchor: middle; dominant-baseline: middle; }
.pu .tag text.sub { font: 600 26px var(--font); fill: rgba(255, 255, 255, .82); }
.plan-card.pick { display: none; }
.floor-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.floor-pick button { display: grid; justify-items: center; padding: 8px 2px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .08); cursor: pointer; }
.floor-pick b { font-size: 17px; }
.floor-pick span { font-size: 10px; color: var(--green); }
.plan-card.closed-card { left: 50%; right: auto; top: 50%; bottom: auto; width: min(420px, calc(100% - 32px)); transform: translate(-50%, -50%); }
.soon-body { display: grid; gap: 10px; justify-items: start; }
.soon-body p { margin: 0; color: var(--muted); }
.soon-body .soon-k { color: #fff; font-size: 20px; font-weight: 800; }

.tip { position: absolute; z-index: 9; top: 0; left: 0; pointer-events: none; padding: 10px 14px; display: grid; gap: 2px; min-width: 170px; font-size: 12px; border-radius: 14px; }
.tip[hidden] { display: none; }
.tip b { font-size: 15px; }
.tip em { font-style: normal; font-weight: 800; margin-top: 2px; }
.st.available { color: var(--green); } .st.reserved { color: var(--amber); } .st.sold { color: #aaa; }

@media (min-width: 900px) {
  .apt:has(.panel.open) .strip, .am .strip, .loc .strip { left: calc(50% + (var(--pw) + 24px) / 2); }
}

/* ---------- unit page ---------- */
.uv { position: fixed; inset: 0; z-index: 35; background: #0d1013; overflow: hidden; overflow: clip; }
.uv[hidden] { display: none; }
.uv-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(26px) brightness(.5); }
.uv-head { position: absolute; z-index: 2; top: 92px; left: 24px; display: flex; align-items: center; gap: 12px; }
.uv-head h2 { font-size: 30px; font-weight: 700; }
.uv-card { position: absolute; z-index: 2; left: 24px; top: 144px; bottom: 24px; width: 400px; padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: auto; scrollbar-width: thin; }
.uv-top { display: flex; align-items: center; justify-content: space-between; }
.uv-top b { font-size: 20px; font-weight: 800; }
.uv-grid { margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 8px; }
.uv-grid dt { font-size: 11px; color: var(--muted); }
.uv-grid dd { margin: 0; font-size: 16px; font-weight: 800; }
.uv-rooms { width: 100%; border-collapse: collapse; font-size: 13px; }
.uv-rooms td { padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.uv-rooms td:last-child { text-align: right; font-weight: 700; }
.uv-price { display: grid; gap: 8px; }
.uv-price div { display: grid; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.uv-price span, .uv-price small { font-size: 11px; color: var(--muted); }
.uv-price b { font-size: 19px; }
.uv-price b small { font-size: 12px; }
.uv-note { margin: 0; font-size: 11px; color: var(--muted); }
.uv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.uv-view { position: absolute; z-index: 1; left: 448px; right: 24px; top: 110px; bottom: 132px; display: flex; align-items: center; justify-content: center; }
.uv-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.uv-img.plan { border-radius: 0; box-shadow: none; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.uv-strip { left: calc(50% + 212px); }

/* ---------- amenities ---------- */
.am-stage { position: absolute; inset: 0; background: #0d1013; }
.am-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.am-bg.on { opacity: 1; }
.am .panel, .loc .panel { position: absolute; left: 24px; top: 144px; bottom: 24px; width: var(--pw); padding: 12px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent; }
.am-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-item { width: 100%; display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 8px; text-align: left; border-radius: 14px; border: 1px solid transparent; background: rgba(255, 255, 255, .06); cursor: pointer; }
.am-item:hover, .am-item.on { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .12); }
.am-item[tabindex="-1"] { cursor: default; }
.am-th { width: 76px; height: 76px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.am-th img { width: 100%; height: 100%; object-fit: cover; }
.am-th svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.6; }
.am-tx { display: grid; gap: 3px; }
.am-tx b { font-size: 14px; }
.am-tx span { font-size: 12px; color: var(--muted); }

/* ---------- location ---------- */
.loc .map { position: absolute; inset: 0; background: #e9e6e1; }
.map-wait { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; color: #555; font-weight: 600; }
.map-ready .map-wait { display: none; }
.addr { display: grid; gap: 6px; justify-items: start; padding: 4px 4px 6px; }
.addr b { font-size: 16px; }
.addr span { font-size: 13px; color: var(--muted); }
.addr .btn-white { height: 40px; margin-top: 6px; font-size: 13px; }
.loc .panel h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 4px 8px; }
.loc .panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.poi { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px 7px 7px; border-radius: 12px; border: 1px solid transparent; background: rgba(255, 255, 255, .07); cursor: pointer; text-align: left; font-size: 13px; font-weight: 600; }
.poi:hover, .poi.on { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .13); }
.poi svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgba(255, 255, 255, .12); fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.poi em { font-style: normal; font-size: 12px; color: var(--muted); white-space: nowrap; }
.attr { font-size: 10px; color: var(--muted); margin: 14px 4px 2px; }
.mk-home { display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; background: #101418; color: #fff; font: 800 13px var(--font); box-shadow: 0 8px 20px rgba(0, 0, 0, .35); position: relative; }
.mk-home::after { content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #101418; }
.loc.night .mk-home { border: 1px solid rgba(255, 210, 122, .7); }
.mk-home img { width: 28px; height: 28px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; }
.mk { position: relative; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: rgba(16, 20, 24, .88); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.mk svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mk span { position: absolute; bottom: 42px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: #fff; color: #101418; font: 700 12px var(--font); opacity: 0; pointer-events: none; transition: opacity .15s; box-shadow: 0 6px 14px rgba(0, 0, 0, .2); }
.mk:hover span, .mk.on span { opacity: 1; }
.mk.on { background: var(--blue); }
.loc .maplibregl-ctrl-bottom-right { bottom: 8px; right: 8px; }
.loc .strip { padding: 10px 12px 8px; border-radius: 16px; background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); }

/* ---------- contact ---------- */
.contact { height: auto; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 24px 70px; }
.contact-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(8, 10, 14, .42); }
.contact-in { position: relative; z-index: 4; width: min(1080px, 100%); display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.contact-info, .lead-form { padding: 24px; }
.contact-info h2 { font-size: 30px; }
.contact-info h3 { font-size: 16px; margin: 22px 0 8px; }
.contact-info h3 small { color: var(--muted); font-weight: 600; }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.phones a { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); text-align: center; font-size: 18px; font-weight: 800; }
.phones a:hover { background: rgba(255, 255, 255, .18); }
.terms { width: 100%; border-collapse: collapse; font-size: 13px; }
.terms th { text-align: left; vertical-align: top; width: 92px; padding: 10px 0; font-weight: 800; }
.terms td { padding: 10px 0; }
.terms tr + tr th, .terms tr + tr td { border-top: 1px solid rgba(255, 255, 255, .15); }
.terms small { color: var(--muted); }
.fb { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; }
.fb svg { width: 20px; height: 20px; fill: #fff; }
.lead-form { display: grid; gap: 12px; }
.lead-form h3 { font-size: 20px; }
.lead-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lead-form textarea { min-height: 64px; padding: 10px 14px; resize: vertical; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; font: 500 15px var(--font); }
.lead-form textarea::placeholder { color: rgba(255, 255, 255, .45); }
.lead-form label > span { display: block; }
/* buy from abroad */
.steps { list-style: none; counter-reset: st; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; display: grid; gap: 3px; padding: 12px 14px 12px 58px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.steps li::before { content: counter(st); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #101418; font-weight: 800; }
.steps b { font-size: 15px; }
.steps span { font-size: 13px; color: var(--muted); }
.safety { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(242, 179, 61, .55); background: rgba(242, 179, 61, .12); font-size: 12.5px; font-weight: 600; }
.abroad .contact-in { align-items: stretch; }
.btn-abroad { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 999px; border: 1px dashed rgba(255, 255, 255, .45); background: none; color: #fff; font: 700 13.5px var(--font); cursor: pointer; }
.btn-abroad:hover { background: rgba(255, 255, 255, .1); }
.btn-abroad svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.lead-form input, .lead-form select { height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1); color: #fff; padding: 0 14px; font: 500 15px var(--font); }
.lead-form input::placeholder { color: rgba(255, 255, 255, .45); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picked { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(60, 207, 122, .18); border: 1px solid var(--green); font-weight: 700; font-size: 14px; }
.picked[hidden] { display: none; }
.form-status { margin: 0; font-size: 13px; font-weight: 600; min-height: 1em; }
.form-status.ok { color: #8fe7b2; } .form-status.err { color: #ffa08f; }
.hidden-field { display: none; }
.foot { position: absolute; z-index: 4; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 11px; color: var(--muted); padding: 0 16px; }

/* ---------- 360° dialog ---------- */
.tour-dlg { border: 0; padding: 0; width: min(1100px, 94vw); height: 86vh; max-height: 86vh; max-width: 94vw; border-radius: 18px; background: #000; overflow: hidden; }
.tour-dlg::backdrop { background: rgba(0, 0, 0, .72); }
.tour-dlg iframe { width: 100%; height: 100%; border: 0; display: block; transition: opacity .4s; }
.tour-dlg.loading iframe { opacity: 0; }
.tour-close { position: absolute; z-index: 2; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: #101418; font-size: 26px; line-height: 1; cursor: pointer; }
.tour-load { position: absolute; inset: 0; margin: 0; display: none; place-items: center; color: #fff; font-weight: 700; }
.tour-dlg.loading .tour-load { display: grid; }

/* ---------- abroad form + contract signing ---------- */
select optgroup { color: #111; }
.ab-sum { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--muted); }
.ab-sum b { color: #fff; font-size: 15px; font-weight: 800; }
.ab-sum[hidden] { display: none; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-link { justify-self: center; padding: 4px 8px; border: 0; background: none; color: var(--muted); font: 600 13.5px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-link:hover { color: #fff; }
html.ct-open { overflow: hidden; }
.ct-dlg { border: 0; padding: 0; width: min(880px, 96vw); max-width: 96vw; height: 94vh; max-height: 94vh; border-radius: 18px; background: #eeebe4; color: #16191e; overflow: hidden; }
.ct-dlg[open] { display: flex; flex-direction: column; }
.ct-dlg::backdrop { background: rgba(0, 0, 0, .74); }
.ct-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; background: #101418; color: #fff; }
.ct-bar b { font-size: 15px; }
.ct-no { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.ct-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #101418; font-size: 24px; line-height: 1; cursor: pointer; }
.ct-scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px; }
.ct-sample, .ct-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 700; }
.ct-sample { background: #ffe8e2; border: 1px solid #f0a597; color: #8a2a1a; }
.ct-note { background: #e3edfb; border: 1px solid #9dbbe8; color: #1b3f74; }
.ct-paper { padding: 46px 52px; border-radius: 6px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 14px 36px rgba(0, 0, 0, .08); font-size: 13.5px; line-height: 1.62; }
.ct-paper h2 { margin: 0; text-align: center; font-size: 19px; letter-spacing: .02em; }
.ct-sub { margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1.5px solid #a98039; text-align: center; font-size: 12px; color: #6b717b; }
.ct-paper h4 { margin: 20px 0 8px; font-size: 13.5px; text-align: center; }
.ct-paper h4.left { text-align: left; }
.ct-paper p { margin: 0 0 8px; }
.ct-paper h2 small { display: block; margin-top: 2px; font-size: 14px; }
.ct-approve { display: grid; gap: 1px; width: min(270px, 100%); margin: 0 0 22px auto; font-size: 12.5px; }
.ct-approve i { display: block; width: 85%; height: 26px; border-bottom: 1px solid #16191e; }
.ct-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; margin: 12px 0 14px !important; font-size: 12.5px; }
.ct-cl { display: grid; grid-template-columns: 50px 1fr; gap: 4px; text-align: justify; }
.ct-num { color: #4b5160; }
.ct-bul { grid-template-columns: 22px 1fr; padding-left: 30px; }
.ct-parties-t { display: grid; grid-template-columns: 1fr 1fr; margin: 6px 0 14px; border: 1px solid #c9ced5; }
.ct-parties-t > div { display: grid; align-content: start; gap: 3px; padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; }
.ct-parties-t > div + div { border-left: 1px solid #c9ced5; }
.ct-tw { margin: 6px 0 14px; overflow-x: auto; }
.ct-t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ct-t th, .ct-t td { padding: 6px 8px; border: 1px solid #c9ced5; text-align: center; }
.ct-t th { background: #f0f1f3; font-weight: 700; }
.ct-sched { max-height: 380px; overflow-y: auto; }
.ct-sched th { position: sticky; top: 0; }
.ct-page { margin: 30px -52px; border: 0; border-top: 2px dashed #d8d2c4; }
.ct-jump { flex: none; margin-left: auto; height: 36px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; color: #fff; font: 700 12.5px var(--font); cursor: pointer; white-space: nowrap; }
.ct-jump:hover { background: rgba(255, 255, 255, .12); }
.ct-lang { flex: none; display: flex; margin-left: auto; padding: 3px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; }
.ct-lang + .ct-jump { margin-left: 0; }
.ct-lang button { height: 30px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: #fff; font: 700 12.5px var(--font); cursor: pointer; }
.ct-lang button[aria-pressed="true"] { background: #fff; color: #101418; }
.ct-tr-note { margin: 0 0 16px !important; padding: 10px 12px; border: 1px solid #a98039; border-radius: 8px; background: #f8f3e6; font-size: 12.5px; font-weight: 700; color: #5c4515; }
.ct-pay-amt.small, .ct-pay .ct-pay-amt { font-size: 18px; }
.pw-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.pw-tabs button { min-height: 40px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: 700 13px var(--font); cursor: pointer; }
.pw-tabs button[aria-selected="true"] { background: #fff; color: #101418; }
.pw-amt.pw-post b { font-size: 17px; }
.ab-terms[hidden], .lead-form .ab-day[hidden] { display: none; }
.ct-kv { width: 100%; margin: 6px 0 10px; border-collapse: collapse; font-size: 13px; }
.ct-kv tr { border-top: 1px solid #e3e5e9; }
.ct-kv tr:last-child { border-bottom: 1px solid #e3e5e9; }
.ct-kv th { width: 32%; padding: 7px 10px 7px 0; text-align: left; vertical-align: top; font-weight: 500; color: #6b717b; }
.ct-kv td { padding: 7px 0; overflow-wrap: anywhere; }
.fill { font-weight: 700; color: #0f2766; }
.blank { padding: 0 3px; border-radius: 3px; background: #fff1bd; color: #7a5a00; }
.ct-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 28px; }
.ct-parties > div { display: grid; gap: 2px; align-content: start; }
.ct-parties b { font-size: 12px; letter-spacing: .06em; color: #a98039; }
.ct-line { position: relative; display: block; height: 66px; margin-top: 10px; border-bottom: 1px solid #16191e; }
.ct-sig-img { position: absolute; left: 50%; bottom: 2px; max-width: 100%; max-height: 62px; transform: translateX(-50%); }
.ct-parties small { font-size: 11px; color: #6b717b; }
.ct-sign, .ct-done { display: grid; gap: 12px; margin-top: 18px; padding: 22px; border-radius: 16px; background: #101418; color: #fff; }
.ct-sign[hidden], .ct-done[hidden] { display: none; }
.ct-sign h3, .ct-done h3 { margin: 0; font-size: 19px; }
.ct-sign p, .ct-done p { margin: 0; }
.ct-pad { position: relative; height: 200px; border: 2px dashed #9aa3ae; border-radius: 12px; background: #fff; overflow: hidden; }
.ct-pad.inked { border-style: solid; border-color: var(--green); }
.ct-pad::after { content: ''; position: absolute; left: 28px; right: 28px; bottom: 48px; border-bottom: 1px solid #ccd1d8; pointer-events: none; }
.ct-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.ct-hint { position: absolute; left: 0; right: 0; top: 42%; text-align: center; font-weight: 600; color: #9aa3ae; pointer-events: none; }
.ct-pad.inked .ct-hint { display: none; }
.ct-clear { position: absolute; z-index: 1; top: 8px; right: 8px; height: 32px; padding: 0 14px; border: 1px solid #d5d9de; border-radius: 999px; background: #fff; color: #101418; font: 600 12.5px var(--font); cursor: pointer; }
.ct-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.ct-agree input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.ct-done { justify-items: center; text-align: center; }
.ct-done .steps { width: 100%; margin: 4px 0; text-align: left; }
.ct-done .btn-white, .ct-done .btn-glass { width: 100%; }
.ct-ok { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #101418; font-size: 28px; font-weight: 800; }
.ct-ok.warn { background: var(--amber); }
.ct-pay { display: grid; justify-items: center; gap: 2px; width: 100%; margin: 4px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(60, 207, 122, .14); border: 1px solid rgba(60, 207, 122, .6); }
.ct-pay[hidden], .ct-paynow[hidden] { display: none; }
.ct-pay-k, .ct-pay small { font-size: 13px; color: var(--muted); }
.ct-pay-amt { font-size: 24px; font-weight: 800; }
.ct-done .btn-link { justify-self: center; width: auto; }
.pw-open { margin-top: 12px; }

/* ---------- sales managers ---------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.team > a:not(.mgr-card) { padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); font-weight: 700; } /* no-JS links */
.mgr-card { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k call" "n call" "p call"; align-items: center; gap: 0 10px;
  width: 100%; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; text-align: left; }
.mgr-card:hover { background: rgba(255, 255, 255, .18); }
.mgr-card[hidden] { display: none; }
.mgr-k { grid-area: k; font-size: 11.5px; color: var(--muted); }
.mgr-n { grid-area: n; font-size: 15px; font-weight: 800; }
.mgr-p { grid-area: p; font-size: 14px; font-weight: 600; }
.mgr-call { grid-area: call; display: grid; place-items: center; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: #101418; font-size: 12.5px; font-weight: 800; font-style: normal; }

/* ---------- permits ---------- */
.permits-in { grid-template-columns: minmax(0, 1080px); }
.pm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.pm-card { display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 6px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.pm-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.pm-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pm-k { margin-top: 4px; font-size: 12px; color: var(--muted); }
.pm-n { font-size: 17px; font-weight: 800; }
.pm-d { font-size: 13px; color: var(--muted); }
.pm-go { height: 42px; margin-top: 8px; font-size: 13.5px; }
.pm-src { font-size: 11px; color: var(--muted); text-align: center; }
.pm-note { margin: 14px 0 0; }
.ab-permits { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* sales office + request form extras */
.office { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.office > div { display: grid; gap: 2px; font-size: 13.5px; }
.office b { font-size: 14px; }
.office a { font-size: 12.5px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lead-form .chk { display: flex; flex-direction: row; align-items: center; gap: 10px; font-size: 14px; color: #fff; cursor: pointer; }
.lead-form .chk input { width: 20px; height: 20px; accent-color: var(--green); }
.meet-when[hidden], .meet-where[hidden], .lf-fit[hidden] { display: none; }
.lf-fit { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(60, 207, 122, .14); border: 1px solid rgba(60, 207, 122, .5); font-size: 13px; }
@media (max-width: 899px) {
  .pm-grid { grid-template-columns: 1fr; }
}

/* ---------- buy from abroad: closed until the start button ---------- */
.ab-start { margin-top: 18px; }
.abroad:not(.closed) .ab-start { display: none; }
.abroad.closed .steps, .abroad.closed .safety, .abroad.closed #abroad-form { display: none; }
.abroad.closed .contact-in { grid-template-columns: minmax(0, 560px); justify-content: center; }

/* ---------- payment window ---------- */
.pay-dlg { border: 0; padding: 0; width: min(560px, 94vw); max-width: 94vw; max-height: 92vh; border-radius: 18px; background: #14181d; color: #fff; overflow: hidden; }
.pay-dlg[open] { display: flex; flex-direction: column; }
.pay-dlg::backdrop { background: rgba(0, 0, 0, .74); }
.pw-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pw-head h3 { margin: 0; font-size: 19px; }
/* max-content rows: in a height-limited scroll box, auto rows would squash the account table to 0 */
.pw-body { display: grid; grid-auto-rows: max-content; align-content: start; gap: 12px; padding: 16px 22px 22px; overflow-y: auto; overscroll-behavior: contain; }
.pw-body p { margin: 0; }
.pw-body h4 { margin: 4px 0 0; font-size: 14px; }
.pw-amt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 14px 16px; border-radius: 14px; background: rgba(60, 207, 122, .14); border: 1px solid rgba(60, 207, 122, .6); }
.pw-amt span { width: 100%; font-size: 13px; color: var(--muted); }
.pw-amt b { margin-right: auto; font-size: 24px; font-weight: 800; }
.pw-dl { display: grid; grid-template-columns: auto 1fr; margin: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.pw-dl dt, .pw-dl dd { padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pw-dl dt:first-of-type, .pw-dl dd:first-of-type { border-top: 0; }
.pw-dl dt { font-size: 13px; color: var(--muted); }
.pw-dl dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.pw-dl dd .muted { font-weight: 500; }
.pw-copy { flex: none; height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; background: none; color: #fff; font: 700 12px var(--font); cursor: pointer; }
.pw-copy:hover { background: rgba(255, 255, 255, .1); }
.pw-copy.ok { border-color: var(--green); color: #8fe7b2; }
.pw-intl summary { padding: 6px 0; font-size: 14px; font-weight: 700; cursor: pointer; }
.pw-intl .pw-dl { margin-top: 8px; }
.pw-note { margin-top: 8px !important; font-size: 12.5px; color: var(--muted); }
.pw-body .safety { margin: 0; }
.pw-paid { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.pw-paid label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.pw-paid input, .pw-paid select { height: 44px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; font: 500 15px var(--font); min-width: 0; }
.pw-paid button[hidden] { display: none; }
@media (max-width: 899px) {
  .pay-dlg { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .pw-body { padding: 14px 16px 20px; }
  .pw-dl { grid-template-columns: 110px 1fr; }
}
@media (max-width: 599px) {
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .ct-dlg { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .ct-bar { padding: 10px 10px 10px 16px; }
  .ct-scroll { padding: 12px; }
  .ct-paper { padding: 24px 16px; font-size: 13px; }
  .ct-parties { grid-template-columns: 1fr; gap: 20px; }
  .ct-parties-t { grid-template-columns: 1fr; }
  .ct-parties-t > div + div { border-left: 0; border-top: 1px solid #c9ced5; }
  .ct-cl { grid-template-columns: 42px 1fr; text-align: left; }
  .ct-bul { padding-left: 12px; }
  .ct-page { margin: 24px -16px; }
  .ct-jump { height: 34px; padding: 0 10px; font-size: 12px; }
  .ct-bar b { font-size: 14px; }
  .ct-sign, .ct-done { padding: 18px; }
  .ct-pad { height: 180px; }
}

/* ---------- phones & tablets ---------- */
@media (max-width: 899px) {
  .pill { top: 10px; height: 54px; gap: 8px; width: calc(100% - 20px); }
  .pill-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px; border-radius: 18px;
    background: rgba(24, 27, 31, .92); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid var(--glass-line); }
  .pill.menu-open .pill-nav { display: flex; }
  .pill-nav a { padding: 12px; font-size: 16px; border: 0; }
  .pill-lang { margin-left: auto; }
  .pill-btn { display: none; }
  .pill-menu { display: flex; }

  .scene { height: auto; min-height: 0; overflow: visible; }
  .scene::before { display: none; }
  .hero { height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
  .hero::before { display: block; }
  .scene-head { position: static; padding: 84px 16px 12px; }
  .scene-title { font-size: 26px; }
  .strip { position: static; transform: none; max-width: none; margin: 12px 16px 0; }
  .compass, .tip, .summary { display: none; }

  .apt, .am, .loc { display: flex; flex-direction: column; }
  .scene-head { order: 0; }
  .apt .stage, .am-stage, .loc .map { order: 1; }
  .strip { order: 2; }
  .plan-card { order: 3; }
  .panel { order: 4; }
  .apt .stage { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .stage-blur { display: none; }
  .stage-move { transform: none !important; }
  .apt .panel { position: static; transform: none; opacity: 1; pointer-events: auto; width: auto; margin: 12px 16px 0; }
  .pn-close { display: none; }
  .pn-cards { max-height: 78vh; }
  .plan-card { position: static; margin: 12px 16px 0; }
  .plan-card.pick { display: flex; }
  .fl-num { display: none; }
  .plan-card.closed-card { transform: none; width: auto; }
  .plan-svg { flex: none; aspect-ratio: 3 / 2; height: auto; }
  .apt, .am, .loc { padding-bottom: 28px; }

  .uv { overflow: auto; display: flex; flex-direction: column; padding-bottom: 24px; }
  .uv[hidden] { display: none; }
  .uv-bg { position: fixed; }
  .uv-head { position: relative; top: auto; left: auto; order: 1; padding: 80px 16px 8px; }
  .uv-head h2 { font-size: 24px; }
  .uv-view { position: relative; inset: auto; order: 2; height: 52vh; padding: 0 16px; }
  .uv-strip { position: relative; left: auto; order: 3; }
  .uv-card { position: relative; inset: auto; order: 4; width: auto; margin: 14px 16px 0; overflow: visible; }

  .am-stage { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .am .panel, .loc .panel { position: static; width: auto; margin: 12px 16px 0; overflow: visible; }
  .loc .map { position: relative; inset: auto; height: 62vh; }

  .contact { padding: 84px 16px 60px; }
  .contact-in { grid-template-columns: 1fr; }
  .contact-info, .lead-form { padding: 18px; }
  .foot { position: static; margin-top: 18px; }
  .contact { display: block; }
}
@media (max-width: 420px) {
  .pn-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .card { padding: 7px; }
  .card dl { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .disclaimer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage-move, .apt .panel, .am-bg, .strip { transition: none; }
  .scroll-cue i { animation: none; }
}
