:root { --acc: #ff8a1f; --acc2: #f2c230; --bg: #0b0c0e; --card: #15171b; --card2: #1d2025; --line: rgba(255,255,255,.1); --mut: rgba(255,255,255,.62); --free: #3ecf8e; --booked: #f5b83d; --sold: #6b7079; }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { background: var(--bg); color: #fff; font-family: Montserrat, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* дом */
#stage { position: fixed; inset: 0; overflow: hidden; background: #000; }
#film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vign { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, transparent 18%, transparent 55%, rgba(0,0,0,.78) 100%); }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 6; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; pointer-events: none; }
.top > * { pointer-events: auto; }
.brand b { display: block; font-weight: 400; letter-spacing: .34em; font-size: 19px; }
.brand small { font-size: 10px; color: var(--mut); letter-spacing: .08em; }
.call { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #1b1308; }
.call svg { width: 20px; height: 20px; }
#track { height: 760vh; }
.cap { position: fixed; left: 18px; right: 52px; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 4; opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; pointer-events: none; text-shadow: 0 2px 20px rgba(0,0,0,.55); }
.cap.on { opacity: 1; transform: none; }
.cap small { color: var(--acc2); font-size: 11px; font-weight: 700; letter-spacing: .24em; }
.cap h1 { font-size: 34px; font-weight: 300; line-height: 1.05; margin: 8px 0 8px; }
.cap p { font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.9); }
.rail { position: fixed; right: 14px; top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 10px; }
.rail i { display: block; width: 3px; height: 22px; border-radius: 3px; background: rgba(255,255,255,.25); overflow: hidden; position: relative; }
.rail i b { position: absolute; left: 0; right: 0; top: 0; height: 0; background: var(--acc); }
.hint { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4; font-size: 11px; color: var(--mut); letter-spacing: .2em; text-transform: uppercase; transition: opacity .4s; text-align: center; }
.hint::after { content: ''; display: block; width: 1px; height: 22px; margin: 6px auto 0; background: linear-gradient(#fff, transparent); animation: drop 1.6s infinite; }
@keyframes drop { from { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } to { transform: scaleY(0); transform-origin: bottom; } }

/* выбор */
#pick { position: relative; z-index: 5; min-height: 100vh; }
.pick-bg { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; background: url(../img/night-m.jpg) center/cover; filter: brightness(.55); }
.sheet { scroll-margin-top: calc(70px + env(safe-area-inset-top)); position: relative; margin-top: 38vh; min-height: 62vh; background: var(--bg); border-radius: 26px 26px 0 0; padding: 10px 16px calc(28px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
.grab { width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto 16px; }
.h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.h .bk { width: 38px; height: 38px; border-radius: 50%; background: var(--card2); font-size: 18px; flex: none; }
.h small { display: block; color: var(--acc2); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.h h2 { font-size: 26px; font-weight: 400; line-height: 1.1; }
.sub { color: var(--mut); font-size: 13px; margin: 6px 0 14px; }
.gen { background: var(--card); border-radius: 20px; padding: 10px; }
.gen svg { display: block; width: 100%; height: auto; }
.gen .blk { cursor: pointer; }
.gen .blk rect { fill: #3a3f47; stroke: #8b919b; stroke-width: .5; transition: fill .2s; }
.gen .blk:hover rect, .gen .blk.on rect { fill: var(--acc); }
.gen .blk text { fill: #fff; font-size: 7px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.blist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bcard { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.bcard b { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc); color: #1b1308; font-size: 16px; margin-bottom: 8px; }
.bcard span { display: block; font-size: 14px; font-weight: 600; }
.bcard em { display: block; font-style: normal; font-size: 12px; color: var(--mut); margin-top: 2px; }
.floors { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.floors::-webkit-scrollbar { display: none; }
.fchip { flex: none; min-width: 56px; padding: 9px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.fchip b { display: block; font-size: 18px; font-weight: 500; }
.fchip i { display: block; font-style: normal; font-size: 10px; color: var(--free); }
.fchip.none i { color: var(--mut); }
.fchip.on { background: var(--acc); color: #1b1308; border-color: transparent; }
.fchip.on i { color: #1b1308; }
.plan { position: relative; background: #e9e7e3; border-radius: 18px; overflow: hidden; }
.plan svg { display: block; width: 100%; height: auto; }
.plan .apt { cursor: pointer; }
.plan .apt rect { fill-opacity: .14; stroke-width: 5; transition: fill-opacity .2s; }
.plan .apt.free rect { fill: var(--free); stroke: var(--free); }
.plan .apt.booked rect { fill: var(--booked); stroke: var(--booked); fill-opacity: .25; }
.plan .apt.sold rect { fill: #2a2d33; stroke: #2a2d33; fill-opacity: .55; }
.plan .apt.on rect { fill-opacity: .42; }
.plan .lbl { font-size: 34px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.65); stroke-width: 8px; text-anchor: middle; pointer-events: none; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mut); margin: 10px 2px 4px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.alist { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.arow { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.arow > b { width: 44px; height: 44px; border-radius: 12px; background: var(--card2); display: grid; place-items: center; font-size: 15px; }
.arow span { font-weight: 600; font-size: 15px; }
.arow span small { display: block; font-weight: 400; font-size: 12px; color: var(--mut); }
.arow em { font-style: normal; text-align: right; font-weight: 600; font-size: 14px; }
.arow em small { display: block; font-weight: 500; font-size: 11px; }
.arow.sold { opacity: .5; }
.iso { margin: 10px -4px 12px; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #f4f3f0, #dcdad5); overflow: hidden; }
.iso img { display: block; width: 100%; height: 300px; object-fit: contain; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spec div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.spec span { display: block; font-size: 11px; color: var(--mut); }
.spec b { font-size: 16px; font-weight: 600; }
.note { font-size: 11px; color: var(--mut); margin: 10px 2px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 15px; border-radius: 16px; font-weight: 600; font-size: 15px; background: var(--card2); border: 1px solid var(--line); text-decoration: none; margin-top: 8px; }
.btn.pri { background: var(--acc); color: #1b1308; border-color: transparent; }
.btn.walk { background: #fff; color: #111; }
.btn svg { width: 20px; height: 20px; }

/* прогулка */
#walk { position: fixed; inset: 0; z-index: 20; background: #000; opacity: 0; pointer-events: none; transition: opacity .45s; }
#walk.open { opacity: 1; pointer-events: auto; }
#wfilm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wvign { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, transparent 20%, transparent 62%, rgba(0,0,0,.7) 100%); }
#wscroll { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#wscroll::-webkit-scrollbar { display: none; }
#wtrack { height: 900vh; }
.wtop { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 14px 12px; pointer-events: none; }
.wtop > * { pointer-events: auto; }
#wback { width: 42px; height: 42px; border-radius: 50%; background: rgba(20,22,26,.6); backdrop-filter: blur(10px); font-size: 18px; flex: none; }
#wtitle { font-size: 15px; font-weight: 500; text-shadow: 0 1px 10px rgba(0,0,0,.5); }
#wtitle small { display: block; color: var(--acc2); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
#wcard { position: absolute; left: 16px; bottom: calc(40px + env(safe-area-inset-bottom)); max-width: 300px; padding: 14px 16px; border-radius: 18px; background: rgba(250,250,248,.92); color: #121316; box-shadow: 0 10px 40px rgba(0,0,0,.35); opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s; pointer-events: none; }
#wcard.on { opacity: 1; transform: none; }
#wcard small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #b0661a; }
#wcard b { display: block; font-size: 22px; font-weight: 500; margin: 2px 0; }
#wcard span { font-size: 12px; color: #555; }
#wbar { position: absolute; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); height: 3px; border-radius: 3px; background: rgba(255,255,255,.25); pointer-events: none; }
#wbar i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 3px; }
#wend { position: absolute; inset: 0; display: grid; place-items: end center; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transition: opacity .5s; }
#wend.on { opacity: 1; pointer-events: auto; }
#wend > div { width: 100%; max-width: 420px; background: rgba(15,16,19,.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
#wend h3 { font-weight: 400; font-size: 22px; }
#wend p { color: var(--mut); font-size: 13px; margin: 4px 0 6px; }
#wload { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; background: #000; font-size: 12px; color: var(--mut); letter-spacing: .1em; transition: opacity .4s; }
#wload.hide { opacity: 0; pointer-events: none; }
#wload i, #load i { display: block; width: 120px; height: 2px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--acc), transparent); animation: ld 1.2s infinite; }
@keyframes ld { from { transform: scaleX(.2); } 50% { transform: scaleX(1); } to { transform: scaleX(.2); } }
#load { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity .7s; }
#load.hide { opacity: 0; pointer-events: none; }
#load b { display: block; text-align: center; font-weight: 300; letter-spacing: .4em; font-size: 24px; }
#load span { display: block; text-align: center; font-size: 12px; color: var(--mut); margin: 10px 0 12px; }

/* компьютер: пока показываем как телефон по центру */
@media (min-width: 700px) {
  #stage, .pick-bg { left: 50%; width: 480px; transform: translateX(-50%); right: auto; }
  #pick .sheet, #walk { max-width: 480px; margin-left: auto; margin-right: auto; }
  #walk { left: 50%; transform: translateX(-50%); width: 480px; }
  .top { max-width: 480px; margin: 0 auto; }
  .cap { left: calc(50% - 222px); right: auto; width: 400px; }
  .rail { right: calc(50% - 230px); }
}

/* понятная подсказка «листать» */
.hint { bottom: calc(40px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 20px 12px; border-radius: 22px; background: rgba(15,16,19,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.14); letter-spacing: 0; text-transform: none; color: #fff; white-space: nowrap; }
.hint::after { display: none; }
.hint .hand { font-size: 26px; line-height: 1; animation: swipe 1.6s ease-in-out infinite; }
.hint b { font-size: 15px; font-weight: 600; }
.hint em { font-style: normal; font-size: 12px; color: var(--mut); }
@keyframes swipe { 0% { transform: translateY(14px); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(-14px); opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }
