@font-face { font-family: "Futura New"; src: url("fonts/FuturaNew-Book-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Futura New"; src: url("fonts/FuturaNew-Medium-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Futura New"; src: url("fonts/FuturaNew-Demi-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Futura New Numero"; src: url("/fonts/FuturaNew-Medium-cyrillic.woff2") format("woff2"); unicode-range: U+2116; }

:root {
  --bg: #f7f6f2; --surface: #fff; --chip: #f2f3ef; --tint: #e4f4e7;
  --ink: #2b363b; --body: #39474d; --soft: #5e6e74;
  --line: #e3e6e1; --line-strong: #d9ddd6;
  --accent: #38bc61; --accent-hover: #33ad59; --accent-dark: #1e7a3e; --button-ink: #10231a;
  --night: #151c1f; --glass: rgba(21, 28, 31, .72); --on-dark: #c9d3d6; --on-dark-line: rgba(255,255,255,.16);
  --s-av: #38bc61; --s-re: #c98a12; --s-so: #d2493a; --s-un: #93a0a5;
  --header-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  font-family: "Futura New Numero", "Futura New", Futura, system-ui, sans-serif;
  color: var(--body); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { overflow: hidden; background: var(--night); }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* header */
.top { position: fixed; inset: 0 0 auto; height: var(--header-h); z-index: 30; display: flex; align-items: center; gap: 20px;
  padding: 0 clamp(14px, 3vw, 32px); background: linear-gradient(rgba(21,28,31,.78), rgba(21,28,31,.55)); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--on-dark-line); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .06em; font-size: 18px; }
.brand img { height: 30px; width: auto; }
.brand small { font-weight: 500; opacity: .7; letter-spacing: .1em; font-size: 12px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--on-dark); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs a, .crumbs span { color: inherit; text-decoration: none; padding: 6px 8px; border-radius: 8px; }
.crumbs a:hover { background: rgba(255,255,255,.1); color: #fff; }
.crumbs span[aria-current] { color: #fff; }
.crumbs i { opacity: .4; font-style: normal; }
.top__right { margin-left: auto; }
.tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; padding: 9px 14px;
  border: 1px solid var(--on-dark-line); border-radius: 999px; font-size: 14px; white-space: nowrap; }
.tel:hover { background: rgba(255,255,255,.08); }
.tel svg { width: 16px; height: 16px; fill: var(--accent); }

main { position: fixed; inset: 0; }
.view { position: absolute; inset: 0; }

/* 360 stage */
.stage { position: absolute; inset: 0; overflow: hidden; background: #8f8a8e; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.stage.is-drag { cursor: grabbing; }
.stage__3d { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #cdd8e2; }
.stage__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none; }
.stage__img--hi { opacity: 0; transition: opacity .25s; }
.stage__img--hi.on { opacity: 1; }
.stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__svg path { fill: rgba(56, 188, 97, 0); stroke: none; cursor: pointer; transition: fill .15s; }
.stage__svg path.blk-hover { fill: rgba(255, 255, 255, .07); }
.stage__svg path.on { fill: rgba(56, 188, 97, .46); stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; paint-order: stroke; }
.stage__svg path.on.none { fill: rgba(147, 160, 165, .5); }
.stage.is-drag .stage__svg, .stage.is-moving .stage__svg, .stage.is-moving .pins { opacity: 0; }
.stage__svg, .pins { transition: opacity .2s; }

.pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; transform: translate(-50%, -100%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; text-decoration: none; }
.pin__card { background: var(--glass); color: #fff; border: 1px solid var(--on-dark-line); border-radius: 14px; padding: 8px 14px 9px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s var(--ease), background .2s; }
.pin__card b { display: block; font-size: 17px; font-weight: 600; letter-spacing: .02em; }
.pin__card small { display: block; font-size: 12px; color: var(--on-dark); margin-top: 1px; white-space: nowrap; }
.pin__card small em { font-style: normal; color: var(--accent); font-weight: 600; }
.pin::after { content: ""; width: 2px; height: 18px; background: linear-gradient(#fff, rgba(255,255,255,0)); }
.pin:hover .pin__card, .pin.on .pin__card { transform: translateY(-3px); background: rgba(30, 122, 62, .9); }

.tip { position: absolute; z-index: 20; pointer-events: none; transform: translate(-50%, calc(-100% - 18px)); min-width: 190px;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.tip h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.tip .counts { display: flex; gap: 12px; font-size: 13px; color: var(--soft); }
.tip .counts b { color: var(--ink); font-weight: 600; }
.tip p { margin: 8px 0 0; font-size: 12px; color: var(--accent-dark); font-weight: 500; }
.counts span { display: inline-flex; align-items: center; gap: 5px; }

.loader { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--night); color: var(--on-dark); z-index: 8; transition: opacity .5s; }
.loader.done { opacity: 0; pointer-events: none; }
.loader span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin 1s linear infinite; }
.loader p { margin: 0; font-size: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* side panel */
.panel { position: absolute; z-index: 10; left: clamp(14px, 3vw, 32px); top: calc(var(--header-h) + 20px); width: 340px; max-height: calc(100% - var(--header-h) - 120px); overflow: auto;
  background: var(--glass); color: #fff; border: 1px solid var(--on-dark-line); border-radius: 20px; padding: 22px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.panel h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.12; font-weight: 600; color: #fff; }
.lead { margin: 0 0 16px; font-size: 14px; line-height: 1.5; color: var(--on-dark); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--on-dark); margin-bottom: 16px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot--AVAILABLE { background: var(--s-av); } .dot--RESERVED { background: var(--s-re); } .dot--SOLD { background: var(--s-so); } .dot--UNKNOWN { background: var(--s-un); }
.blocks { display: grid; gap: 8px; }
.bcard { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--on-dark-line);
  background: rgba(255,255,255,.04); color: #fff; text-align: left; transition: background .2s, border-color .2s; }
.bcard:hover, .bcard.on { background: rgba(56,188,97,.16); border-color: rgba(56,188,97,.6); }
.bcard b { font-size: 16px; font-weight: 600; }
.bcard small { grid-column: 1; font-size: 12px; color: var(--on-dark); }
.bcard .bcard__n { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-size: 12px; color: var(--on-dark); line-height: 1.2; }
.bcard .bcard__n strong { display: block; font-size: 20px; color: var(--accent); font-weight: 600; }
.sample { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: #ffd98a; background: rgba(201,138,18,.14); border: 1px solid rgba(201,138,18,.35); padding: 8px 10px; border-radius: 10px; }

.orbit-ctl { position: absolute; z-index: 10; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--on-dark-line); border-radius: 999px; padding: 6px; color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); display: grid; place-items: center; transition: background .2s; }
.round:hover { background: var(--accent); }
.round svg, .ghost svg, .drawer__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compass { display: flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 13px; color: var(--on-dark); min-width: 128px; justify-content: center; }
.compass__hint { display: inline-flex; align-items: center; gap: 6px; }
.compass__hint svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compass__deg { font-variant-numeric: tabular-nums; color: #fff; font-weight: 500; min-width: 34px; text-align: right; }

.sheet { position: absolute; z-index: 12; left: 12px; right: 12px; bottom: 84px; background: #fff; color: var(--ink); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0,0,0,.3); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; }
.sheet h4 { margin: 0; font-size: 17px; font-weight: 600; }
.sheet .btn { white-space: nowrap; min-height: 44px; }
.sheet .counts { grid-column: 1; font-size: 13px; color: var(--soft); display: flex; gap: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--button-ink); font-weight: 600; font-size: 15px; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--accent-hover); }
.btn--line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.btn--line:hover { background: var(--chip); }
.ghost { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 14px; font-weight: 500; }
.ghost:hover { background: var(--chip); }

/* floor view */
.view--floor { background: var(--bg); top: var(--header-h); overflow: auto; }
.floor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 100%; }
.floor__main { padding: 22px clamp(14px, 3vw, 32px) 28px; min-width: 0; display: flex; flex-direction: column; }
.floor__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.floor__head h2 { margin: 0; font-size: 26px; font-weight: 600; color: var(--ink); }
.legend--sm { margin: 0 0 0 auto; color: var(--soft); }
.plan-wrap { position: relative; flex: 1; min-height: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(8px, 2vw, 24px); display: grid; place-items: center; overflow: hidden; }
.plan { width: 100%; height: 100%; max-height: calc(100vh - var(--header-h) - 170px); }
.plan .apt { cursor: pointer; }
.plan .apt path { stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; transition: fill-opacity .15s, stroke-width .15s; fill-opacity: .4; }
.plan .apt.s-AVAILABLE path { fill: var(--s-av); fill-opacity: .42; }
.plan .apt.s-RESERVED path { fill: var(--s-re); fill-opacity: .42; }
.plan .apt.s-SOLD path { fill: var(--s-so); fill-opacity: .26; }
.plan .apt.s-UNKNOWN path { fill: var(--s-un); fill-opacity: .3; }
.plan .apt:hover path, .plan .apt.on path, .plan .apt:focus-visible path { fill-opacity: .7; stroke: var(--ink); stroke-width: 2.2; }
.plan .apt:focus { outline: none; }
.plan .num rect { fill: #fff; stroke: rgba(43,54,59,.18); stroke-width: .8; }
.plan .num text { font-size: 13px; font-weight: 600; fill: var(--ink); text-anchor: middle; dominant-baseline: central; font-family: "Futura New Numero", "Futura New", sans-serif; }
.plan .apt.s-SOLD .num text { fill: var(--soft); }
.plan-note { margin: 10px 2px 0; font-size: 13px; color: var(--soft); }

.floor__side { border-left: 1px solid var(--line); background: var(--surface); padding: 22px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--chip); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; border-radius: 10px; padding: 10px 0; font-weight: 600; font-size: 14px; color: var(--soft); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.floors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.floors button { border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px 7px; text-align: center; line-height: 1.15; transition: border-color .15s, background .15s; }
.floors button b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.floors button small { font-size: 11px; color: var(--soft); }
.floors button small em { font-style: normal; color: var(--accent-dark); font-weight: 600; }
.floors button:hover { border-color: var(--accent); }
.floors button[aria-current="true"] { background: var(--tint); border-color: var(--accent); }
.floors .none { color: #b42318; }
.side-h { margin: 6px 0 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); font-weight: 600; }
.apts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.apts button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; text-align: left; transition: border-color .15s, background .15s; }
.apts button:hover, .apts button.on { border-color: var(--accent); background: #fbfdfb; }
.apts .n { font-size: 18px; font-weight: 600; color: var(--ink); min-width: 44px; }
.apts .meta { font-size: 13px; color: var(--soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.tag--AVAILABLE { background: #e4f4e7; color: #1e7a3e; } .tag--RESERVED { background: #fff3d6; color: #7a4f00; }
.tag--SOLD { background: #fbeae8; color: #a12a1e; } .tag--UNKNOWN { background: #f2f3ef; color: #5e6e74; }

/* drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(21,28,31,.45); animation: fade .25s; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: var(--surface); color: var(--body); overflow: auto; box-shadow: -20px 0 60px rgba(0,0,0,.2);
  animation: slide .35s var(--ease); padding: 28px 28px 32px; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer__x { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink); }
.drawer__x:hover { background: var(--chip); }
.d-eyebrow { margin: 0 0 4px; font-size: 13px; color: var(--soft); }
.d-title { margin: 0 0 12px; font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.d-plan { margin: 18px 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
/* every plan in a box of one size; a click opens it full size */
.d-plan__open { position: relative; display: block; width: 100%; height: 340px; padding: 14px; border: 0; background: #fff; cursor: zoom-in; }
.d-plan__open img, .d-plan__open svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.d-plan__open:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: -4px; }
.d-plan__zoom { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 2px 8px rgba(43,54,59,.12); transition: transform .2s var(--ease); }
.d-plan__open:hover .d-plan__zoom { transform: scale(1.08); }
.d-plan__zoom svg, .lightbox__x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.d-plan.d-plan--floor .me, .lightbox .me { fill: none; stroke: var(--accent-dark); stroke-width: 3; stroke-linejoin: round; }
/* lightbox: light, like the rest of the page */
.lightbox { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 56px 16px 20px; background: rgba(247,246,242,.97); animation: fade .2s; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox__fig { margin: 0; display: grid; gap: 10px; justify-items: center; width: min(980px, 100%); cursor: default; }
.lightbox__img { width: 100%; height: min(82svh, 980px); background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 60px rgba(43,54,59,.14); padding: 16px; box-sizing: border-box; }
.lightbox__img img, .lightbox__img svg { display: block; width: 100%; height: 100%; object-fit: contain; }
.lightbox__fig figcaption { font-size: 14px; color: var(--body); text-align: center; }
.lightbox__x { position: fixed; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.lightbox__x:hover { background: var(--chip); }
.d-plan figcaption { font-size: 12px; color: var(--soft); padding: 8px 14px 10px; border-top: 1px solid var(--line); background: var(--chip); }
.d-plan .ctx path { fill: rgba(43,54,59,.04); stroke: rgba(43,54,59,.25); stroke-width: 1; }
.d-plan .me { fill: rgba(56,188,97,.28); stroke: var(--accent-dark); stroke-width: 2.4; stroke-linejoin: round; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 0 0 18px; }
.stats div { background: var(--surface); padding: 12px 14px; }
.stats dt { font-size: 12px; color: var(--soft); margin: 0 0 3px; }
.stats dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.price { margin: 0 0 18px; padding: 14px 16px; border-radius: 16px; background: var(--chip); font-size: 14px; color: var(--soft); }
.price b { display: block; font-size: 22px; color: var(--ink); font-weight: 600; }
.actions { display: grid; gap: 8px; }
button.btn { cursor: pointer; font-family: inherit; }
/* sun and shadow: the header button switches the 3D view to its sun mode */
.sunbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 11px; margin-right: 8px; border-radius: 999px; border: 1px solid var(--on-dark-line);
  background: rgba(255,255,255,.06); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.sunbtn:hover { background: rgba(255,255,255,.14); }
.sunbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sunbtn svg { width: 20px; height: 20px; fill: none; stroke: #f4c542; stroke-width: 2; stroke-linecap: round; }
.top__right { display: flex; align-items: center; }
.sunbtn[aria-pressed="true"] { background: #f4c542; border-color: transparent; color: #2a1f00; }
.sunbtn[aria-pressed="true"] svg { stroke: #2a1f00; }

/* the flat's sun (drawer): direct sun on the shortest day, the equinox and the longest day, 04:00-21:00 */
.d-sun { margin: 0 0 18px; padding: 16px 16px 14px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fffaec 0, var(--surface) 64%); }
.d-sun__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.d-sun__head h3 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 600; color: var(--ink); }
.d-sun__head h3::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: #f2b726; box-shadow: 0 0 0 4px rgba(242, 183, 38, .22); }
.d-sun__head span { font-size: 13px; color: var(--soft); }
.d-sun__rows { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px 12px; }
.srow__lbl { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.1; }
.srow__lbl small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 400; color: var(--soft); }
.srow__bar { position: relative; height: 14px; border-radius: 7px; background: #dde3ec; overflow: hidden; }
.srow__bar i { position: absolute; top: 0; bottom: 0; }
.srow__day { background: #f3eedf; }
.srow__sun { background: #f2b726; border-radius: 3px; }
.srow__h { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.srow__axis { position: relative; height: 14px; margin-top: -4px; font-size: 11px; color: var(--soft); font-variant-numeric: tabular-nums; }
.srow__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.d-sun__key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--soft); }
.d-sun__key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.k-sun { background: #f2b726; } .k-day { background: #f3eedf; box-shadow: inset 0 0 0 1px #e6dfc8; } .k-night { background: #dde3ec; }
.d-sun__note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--soft); }
.d-sun__3d { margin-top: 12px; width: 100%; min-height: 42px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.d-sun__3d:hover { background: #fff6dc; border-color: #f2b726; }

/* lead form inside the drawer */
.d-back { border: 0; background: none; padding: 0; margin: 0 0 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent-dark); cursor: pointer; }
.d-back:hover { text-decoration: underline; }
.pick { margin: 0 0 18px; padding: 12px 14px; border-radius: 14px; background: var(--tint); border: 1px solid #c9e8d1; color: var(--ink); font-size: 15px; line-height: 1.45; }
.pick span { display: block; font-size: 12px; font-weight: 600; color: var(--accent-dark); margin-bottom: 2px; }
.lead { display: grid; gap: 14px; }
.lead__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.lead input, .lead textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 0 14px; height: 50px; }
.lead textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.lead input:focus, .lead textarea:focus { outline: 2px solid var(--accent-dark); outline-offset: 1px; border-color: var(--accent-dark); }
.lead input::placeholder, .lead textarea::placeholder { color: #8a979c; }
.lead .btn { width: 100%; margin-top: 2px; }
.lead .btn:disabled { opacity: .7; cursor: progress; }
.lead__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lead__err { margin: 0; color: #b42318; font-size: 14px; }
.lead__note { margin: 0; font-size: 13px; color: var(--soft); }
.lead__done { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 18px; padding: 16px; border-radius: 16px; background: var(--tint); color: var(--ink); font-size: 15px; line-height: 1.5; }
.lead__done i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--button-ink); font-style: normal; font-weight: 700; }
.lead__done p { margin: 0; }
@media (max-width: 420px) { .lead__row { grid-template-columns: 1fr; } }

/* ——— phones ——— */
@media (max-width: 900px) {
  .floor { grid-template-columns: 1fr; }
  .floor__side { border-left: 0; border-top: 1px solid var(--line); }
  .plan { max-height: none; }
  .plan-wrap { overflow-x: auto; display: block; min-height: 0; }
  .plan-wrap .plan { min-width: 700px; }
  .plan-hint { display: inline-flex; }
  .legend--sm { margin-left: 0; width: 100%; }
}
@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .crumbs { display: none; }
  .tel span { display: none; }
  .tel { padding: 10px; }
  .sunbtn { min-height: 40px; padding: 0 12px 0 10px; font-size: 13px; }
  .view--orbit { background: var(--night); display: flex; flex-direction: column; padding-top: var(--header-h); }
  .view--orbit .stage { position: relative; inset: auto; flex: 1; min-height: 0; }
  .panel { position: static; width: auto; max-height: none; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); border-radius: 0; border-width: 1px 0 0; background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .panel h1 { font-size: 19px; margin-bottom: 4px; }
  .panel .lead, .panel .eyebrow { display: none; }
  .panel .legend { margin-bottom: 10px; font-size: 12px; }
  .blocks { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .bcard { grid-template-columns: 1fr; padding: 8px 10px; text-align: center; }
  .bcard small { display: none; }
  .bcard .bcard__n { grid-row: auto; grid-column: 1; text-align: center; }
  .bcard .bcard__n strong { display: inline; font-size: 15px; }
  .sample { font-size: 11px; margin-top: 10px; padding: 6px 8px; }
  .pin__card { padding: 6px 10px; } .pin__card b { font-size: 14px; } .pin__card small { display: none; }
  .orbit-ctl { bottom: 12px; }
  .sheet { bottom: 76px; }
  .drawer { top: auto; max-height: 88svh; width: 100%; border-radius: 22px 22px 0 0; padding: 22px 18px 26px; animation-name: up; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } }
  .d-title { font-size: 26px; }
  .d-plan__open { height: 290px; padding: 10px; }
  .lightbox { padding: 60px 8px 12px; }
  .lightbox__img { height: min(78svh, 760px); padding: 8px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .floor__main { padding-top: 14px; }
  .floor__head h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.plan-hint { display: none; position: absolute; right: 12px; bottom: 12px; z-index: 2; align-items: center; gap: 6px; background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 999px; pointer-events: none; transition: opacity .3s; }
.plan-hint.off { opacity: 0; }
.plan-box { position: relative; flex: 1; display: flex; flex-direction: column; min-height: 0; }
