/* NEOM City — интерфейс собран из материалов самого дома:
   листы известняка (фасад), графитовая полоса внизу (подиум), тонкие бронзовые вертикали (ламели). */
:root {
  --stone: #eee9e0;
  --stone-2: #e2dbcf;
  --seam: #cdc4b4;
  --ink: #1e2023;
  --ink-2: #5d5a54;
  --bronze: #b8894b;
  --bronze-2: #d6ad72;
  --sky: #a9b9ce;
  --display: 'Tenor Sans', 'Optima', 'Segoe UI', 'Helvetica Neue', sans-serif;
  --ui: 'Golos Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --podium-h: 60px;
  --sheet-w: 380px;
  --edge: 24px;
  --app-h: 100vh;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: var(--app-h); overflow: hidden; background: var(--sky); overscroll-behavior: none; }
body { font: 400 15px/1.5 var(--ui); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

#view { position: fixed; left: 0; top: 0; width: 100%; height: var(--app-h); display: block; touch-action: none; cursor: grab;
  opacity: 1; transition: opacity .9s ease; }
#view.is-drag { cursor: grabbing; }
[data-scene="tower"] #view, [data-scene="floor"] #view, [data-scene="flat"] #view { cursor: default; }
body #view.is-point { cursor: pointer; }
.is-loading #view { opacity: 0; }

/* ---------- верх: знак и время суток ---------- */
.top { position: fixed; left: 0; right: 0; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: calc(18px + var(--safe-t)) var(--edge) 0; pointer-events: none; }
.top > * { pointer-events: auto; position: relative; }
.top::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: calc(96px + var(--safe-t)); pointer-events: none;
  background: linear-gradient(rgba(238, 233, 224, .7), rgba(238, 233, 224, 0)); opacity: 0; transition: opacity .5s; }
[data-scene="tower"] .top::before, [data-scene="floor"] .top::before, [data-scene="flat"] .top::before { opacity: 1; }
/* вечером подложка нужна и в облёте: на закатной стороне небо светлое, и светлые надписи шапки на нём терялись */
.mode-evening .top::before { background: linear-gradient(rgba(20, 23, 28, .6), rgba(20, 23, 28, 0)); opacity: 1; }
.mark { display: flex; align-items: center; gap: 12px; height: 40px; }
.mark-fin { width: 2px; height: 34px; background: var(--bronze); transform-origin: 50% 100%; transition: transform 1s cubic-bezier(.2, .7, .1, 1) .25s; }
.is-loading .mark-fin { transform: scaleY(0); }
.mark-name { font: 400 22px/1 var(--display); letter-spacing: .05em; color: var(--ink); text-shadow: 0 0 22px rgba(238, 233, 224, .7);
  transition: opacity .8s ease .7s, color .5s; }
.is-loading .mark-name { opacity: 0; }
.top-tools { display: flex; align-items: center; gap: 22px; }
.plain { font: 500 14px/1 var(--ui); color: var(--ink); padding: 12px 2px; text-shadow: 0 0 18px rgba(238, 233, 224, .8); border-bottom: 1px solid transparent; }
.daypart { display: flex; gap: 16px; }
.daypart button { font: 500 14px/1 var(--ui); color: var(--ink); opacity: .62; padding: 12px 2px 10px; border-bottom: 2px solid transparent; text-shadow: 0 0 18px rgba(238, 233, 224, .8); }
.daypart button[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--bronze); }
.mode-evening .mark-name, .mode-evening .plain, .mode-evening .daypart button { color: var(--stone); text-shadow: 0 0 20px rgba(14, 18, 26, .8); }
@media (hover: hover) {
  .plain:hover { border-bottom-color: currentColor; }
  .daypart button:hover { opacity: 1; }
}

/* ---------- подпись под курсором и короткое сообщение ---------- */
.tip { position: fixed; z-index: 6; left: 0; top: 0; pointer-events: none; background: var(--ink); color: var(--stone); font: 400 13px/1.35 var(--ui);
  padding: 8px 12px 8px 14px; border-radius: 2px; box-shadow: inset 2px 0 0 var(--bronze), 0 10px 26px rgba(15, 18, 24, .3); white-space: nowrap; }
.tip b { font-weight: 500; display: block; font-size: 14px; }
.hint { position: fixed; z-index: 6; left: 50%; bottom: calc(var(--podium-h) + var(--safe-b) + 22px); transform: translateX(-50%); background: var(--ink); color: var(--stone);
  font: 400 13.5px/1.4 var(--ui); padding: 9px 16px; border-radius: 2px; box-shadow: inset 2px 0 0 var(--bronze), 0 10px 26px rgba(15, 18, 24, .3); max-width: calc(100% - 32px); text-align: left; }

/* ---------- лист ---------- */
.sheet { position: fixed; z-index: 4; left: var(--edge); bottom: calc(var(--podium-h) + var(--safe-b) + var(--edge)); width: var(--sheet-w);
  max-height: calc(var(--app-h) - var(--podium-h) - var(--safe-b) - var(--edge) - 92px); overflow: auto; overscroll-behavior: contain;
  background: var(--stone); color: var(--ink); border-radius: 3px; padding: 26px 28px 26px 36px;
  box-shadow: inset 3px 0 0 var(--bronze), 0 22px 60px rgba(18, 22, 30, .3), 0 2px 6px rgba(18, 22, 30, .12);
  transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .1, 1); scrollbar-width: thin; scrollbar-color: var(--seam) transparent; }
.sheet:empty { display: none; }
[data-scene="floor"] .sheet, [data-scene="flat"] .sheet { --sheet-w: 430px; }
.is-loading .sheet { opacity: 0; transform: translateY(10px); }
.is-opening .sheet { transition-delay: .9s; transition-duration: .7s; }
.sheet.is-swap { opacity: 0; transform: translateY(6px); transition-duration: .16s; }
.sheet h1 { font: 400 52px/1 var(--display); letter-spacing: .01em; margin: 2px 0 16px; }
.sheet h2 { font: 400 30px/1.12 var(--display); margin: 0 0 10px; }
.sheet h3 { font: 500 15px/1.4 var(--ui); margin: 18px 0 6px; }
.sheet p { margin: 0 0 12px; max-width: 34em; }
.sheet .lead { color: inherit; }
.sheet .soft { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.sheet .soft:last-child, .sheet p:last-child { margin-bottom: 0; }
.rowline { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.rowline + .soft { margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; background: var(--ink); color: var(--stone);
  font: 500 15px/1 var(--ui); border-radius: 2px; text-decoration: none; transition: background .2s; }
.btn.line { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn[disabled] { opacity: .45; cursor: default; }
@media (hover: hover) {
  .btn:hover { background: #33363b; }
  .btn.line:hover { background: rgba(30, 32, 35, .07); }
}
.back { display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1 var(--ui); color: var(--ink-2); padding: 8px 0; margin: -8px 0 8px; }
.back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.6; }
@media (hover: hover) { .back:hover { color: var(--ink); } }

/* цифры квартиры */
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 4px 30px; margin: 14px 0 16px; padding: 14px 0; border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam); }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { font: 400 12.5px/1.3 var(--ui); color: var(--ink-2); }
.facts dd { margin: 0; font: 400 28px/1.15 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts dd small { font: 400 14px/1 var(--ui); color: var(--ink-2); margin-left: 3px; }
.list { list-style: none; margin: 0 0 12px; padding: 0; }
.list li { position: relative; padding: 5px 0 5px 16px; font-size: 14px; line-height: 1.45; }
.list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 1.5px; height: 13px; background: var(--bronze); }

/* план этажа и квартиры */
.plan { display: block; width: 100%; height: auto; margin: 6px 0 10px; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.plan .core { fill: var(--stone-2); stroke: var(--ink); stroke-width: .12; }
.plan .hatch { stroke: var(--seam); stroke-width: .08; }
.plan .unit { fill: #f7f4ee; stroke: var(--ink); stroke-width: .16; stroke-linejoin: miter; cursor: pointer; transition: fill .15s; }
.plan .unit.is-hot { fill: #ecd9bb; }
.plan .unit.is-on { fill: #dcbb86; }
.plan .wall { stroke: var(--ink); stroke-width: .16; fill: none; stroke-linecap: square; }
.plan .wall.thin { stroke-width: .08; }
.plan .win { stroke: #6f8cab; stroke-width: .3; }
.plan .door { stroke: var(--ink); stroke-width: .06; fill: none; }
.plan .furn { fill: none; stroke: #9a9285; stroke-width: .06; }
.plan .furn.fill { fill: #e6dfd2; }
.plan text { font: 500 .78px/1 var(--ui); fill: var(--ink); text-anchor: middle; pointer-events: none; }
.plan text.sub { font-weight: 400; font-size: .62px; fill: var(--ink-2); }
.plan text.big { font: 400 1.5px/1 var(--display); }
.plan text.north { font-size: .7px; fill: var(--ink-2); }
.plan text.num { font-weight: 400; fill: var(--ink-2); }
.rooms { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; margin: 0 0 12px; }
.plan .spot { fill: var(--bronze); stroke: var(--stone); stroke-width: .08; cursor: pointer; }
.unit-list { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--seam); }
.unit-list button { display: grid; grid-template-columns: 26px 1fr auto; align-items: baseline; gap: 8px; width: 100%; text-align: left; padding: 9px 4px 9px 0; border-bottom: 1px solid var(--seam); font-size: 14px; min-height: 44px; }
.unit-list .n { font: 400 17px/1 var(--display); color: var(--bronze); }
.unit-list .a { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.unit-list button.is-hot { background: rgba(184, 137, 75, .12); }

/* ---------- линейка этажей: маленький разрез башни ---------- */
.ruler { position: fixed; z-index: 4; right: var(--edge); top: calc(50% - var(--podium-h) / 2 + 14px); transform: translateY(-50%); width: 62px; height: min(68vh, 560px);
  display: flex; flex-direction: column; align-items: center; touch-action: none; user-select: none; -webkit-user-select: none;
  filter: drop-shadow(0 14px 26px rgba(18, 22, 30, .28)); transition: opacity .5s ease; }
.is-loading .ruler { opacity: 0; }
.ruler-crown { width: 44px; height: 26px; fill: var(--stone); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; flex: none; margin-bottom: -1px; overflow: visible; }
.ruler-floors { list-style: none; margin: 0; padding: 0; flex: 1; width: 44px; display: flex; flex-direction: column; background: var(--stone); box-shadow: inset 0 0 0 1px var(--ink); }
.ruler-floors li { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--seam); cursor: pointer;
  font: 500 11.5px/1 var(--ui); font-variant-numeric: tabular-nums; color: var(--ink-2); transition: background .12s, color .12s; }
.ruler-floors li::before { content: attr(data-n); }
.ruler-floors li:first-child { border-top: 0; }
.ruler-floors li::after { content: attr(data-f); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--ui);
  color: var(--stone); background: var(--ink); padding: 6px 10px 6px 12px; border-radius: 2px; box-shadow: inset 2px 0 0 var(--bronze); opacity: 0; pointer-events: none; white-space: nowrap; }
.ruler-floors li.is-hot { background: var(--bronze-2); color: var(--ink); }
.ruler-floors li.is-on { background: var(--ink); color: var(--stone); }
.ruler-floors li.is-hot::after, .ruler-floors li.is-on::after { opacity: 1; }
.ruler-floors li.is-pent { flex: 1.45; }
.ruler-base { width: 62px; height: 8.5%; min-height: 30px; background: var(--ink); color: rgba(238, 233, 224, .7); flex: none; position: relative; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font: 500 11.5px/1 var(--ui); transition: box-shadow .12s, color .12s; }
.ruler-base::before { content: '1–2'; }
.ruler-base::after { content: 'Галерея'; position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); font: 500 13px/1 var(--ui);
  color: var(--stone); background: var(--ink); padding: 6px 10px 6px 12px; border-radius: 2px; box-shadow: inset 2px 0 0 var(--bronze); opacity: 0; pointer-events: none; white-space: nowrap; }
.ruler-base.is-hot, .ruler-base.is-on { box-shadow: inset 0 0 0 2px var(--bronze); color: var(--stone); }
.ruler-base.is-hot::after, .ruler-base.is-on::after { opacity: 1; }

/* ---------- подиум: путь и заявка ---------- */
.podium { position: fixed; z-index: 5; left: 0; right: 0; bottom: 0; height: calc(var(--podium-h) + var(--safe-b)); padding: 0 var(--edge) var(--safe-b); background: var(--ink); color: var(--stone);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.podium-load { position: absolute; left: 0; right: 0; top: 0; height: 2px; overflow: hidden; }
.podium-load i { display: block; height: 100%; width: 100%; background: var(--bronze); transform-origin: 0 50%; transform: scaleX(0); transition: transform .3s linear, opacity .6s ease .3s; }
.podium-load.is-done i { opacity: 0; }
.path { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; }
.path li { display: flex; align-items: center; min-width: 0; }
.path li + li::before { content: ''; width: 1px; height: 20px; background: var(--bronze); margin: 0 16px; flex: none; }
.path button { font: 400 15px/1 var(--ui); color: rgba(238, 233, 224, .6); padding: 14px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path li[aria-current] button { color: var(--stone); cursor: default; }
@media (hover: hover) { .path li:not([aria-current]) button:hover { color: var(--stone); } }
.cta { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 22px; background: var(--bronze); color: var(--ink); font: 600 15px/1 var(--ui); text-decoration: none; border-radius: 2px; transition: background .2s; }
@media (hover: hover) { .cta:hover { background: var(--bronze-2); } }

/* ---------- о комплексе ---------- */
.about { position: fixed; inset: 0; z-index: 20; background: rgba(20, 23, 28, .58); display: flex; align-items: center; justify-content: center; padding: 20px; }
.about-box { position: relative; background: var(--stone); width: min(760px, 100%); max-height: calc(var(--app-h) - 40px); overflow: auto; border-radius: 3px; padding: 40px 44px 40px 52px;
  box-shadow: inset 3px 0 0 var(--bronze), 0 30px 80px rgba(10, 12, 16, .5); }
.about-close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; }
.about-close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.5; fill: none; }
.about-body h2 { font: 400 38px/1.1 var(--display); margin: 0 0 14px; }
.about-body h3 { font: 500 15px/1.4 var(--ui); margin: 26px 0 8px; }
.about-body p { margin: 0 0 12px; max-width: 38em; }
.about-body .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.about-body .soft { color: var(--ink-2); font-size: 13.5px; }
.about-body a { text-decoration-color: var(--bronze); text-underline-offset: 3px; }

/* ---------- квартира изнутри ---------- */
.pano { position: fixed; inset: 0; z-index: 12; background: #14171c; }
#pano-view { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; transition: opacity .32s ease; }
#pano-view.is-swap { opacity: 0; }
#pano-view.is-drag { cursor: grabbing; }
/* панорама на слабой связи грузится секунду-другую: вместо пустого тёмного экрана — подпись и бегущая полоска (при быстрой загрузке не успевает мелькнуть) */
.pano-wait { position: absolute; left: 50%; top: 50%; margin: 0; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 14px; font: 400 15px/1 var(--ui); color: rgba(238, 233, 224, .78); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
#pano-view.is-swap ~ .pano-wait { opacity: 1; transition-delay: .4s; }
.pano-wait i { position: relative; width: 132px; height: 2px; overflow: hidden; background: rgba(238, 233, 224, .16); }
.pano-wait i::after { content: ''; position: absolute; left: 0; top: 0; width: 42%; height: 100%; background: var(--bronze-2); animation: pano-wait 1.15s ease-in-out infinite; }
@keyframes pano-wait { from { transform: translateX(-100%); } to { transform: translateX(240%); } }
.pano-spots { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background: linear-gradient(rgba(20, 23, 28, .5), rgba(20, 23, 28, 0) 150px); }   /* затемнение под заголовком: на светлом потолке текст не читался */
.pano-spot { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translate(-50%, -50%); padding: 6px; }
.pano-spot i { width: 46px; height: 46px; border-radius: 50%; background: rgba(238, 233, 224, .16); box-shadow: inset 0 0 0 1.5px var(--stone), 0 0 0 6px rgba(238, 233, 224, .12); display: grid; place-items: center; transition: background .2s, transform .2s; }
.pano-spot i::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-2); }
.pano-spot span { font: 500 13px/1 var(--ui); color: var(--stone); background: rgba(22, 25, 30, .78); padding: 6px 10px; border-radius: 2px; white-space: nowrap; }
@media (hover: hover) { .pano-spot:hover i { background: rgba(238, 233, 224, .34); transform: scale(1.08); } }
.pano-bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: calc(var(--podium-h) + var(--safe-b)); padding: 8px var(--edge) calc(8px + var(--safe-b)); background: var(--ink); color: var(--stone);
  display: flex; align-items: center; gap: 22px; }
.pano-back { font: 500 14.5px/1 var(--ui); color: var(--stone); padding: 14px 0; white-space: nowrap; flex: none; }
.pano-rooms { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.pano-rooms::-webkit-scrollbar { display: none; }
.pano-rooms button { font: 400 14.5px/1 var(--ui); color: rgba(238, 233, 224, .62); padding: 13px 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.pano-rooms button[aria-pressed="true"] { color: var(--stone); border-bottom-color: var(--bronze); }
.pano-title { position: absolute; left: var(--edge); top: calc(18px + var(--safe-t)); margin: 0; font: 400 22px/1.2 var(--display); color: var(--stone); text-shadow: 0 1px 18px rgba(0, 0, 0, .6); pointer-events: none; }
.pano-title small { display: block; font: 400 13.5px/1.4 var(--ui); opacity: .85; margin-top: 4px; }
.pano.has-modes .pano-title { max-width: calc(100% - var(--edge) * 2 - 150px); }
.pano-mode { position: absolute; right: var(--edge); top: calc(12px + var(--safe-t)); display: flex; gap: 16px; }
.pano-mode button { font: 500 14px/1 var(--ui); color: var(--stone); opacity: .66; padding: 12px 2px 10px; border-bottom: 2px solid transparent; text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.pano-mode button[aria-pressed="true"] { opacity: 1; border-bottom-color: var(--bronze); }
@media (hover: hover) { .pano-mode button:hover { opacity: 1; } }
/* этаж, с которого вид из окон: кнопки лифта у правого края */
.pano-floor { position: absolute; right: var(--edge); top: calc(50% - var(--podium-h) / 2); transform: translateY(-50%); width: 58px; padding: 2px 0 4px;
  display: flex; flex-direction: column; align-items: center; background: rgba(30, 32, 35, .84); color: var(--stone); border-radius: 2px;
  box-shadow: inset 2px 0 0 var(--bronze), 0 10px 26px rgba(15, 18, 24, .3); }
.pano-floor button { width: 58px; height: 44px; display: grid; place-items: center; color: var(--stone); }
.pano-floor button:disabled { opacity: .26; cursor: default; }
.pano-floor svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pano-floor output { display: block; font: 400 26px/1 var(--display); transition: opacity .2s ease; }
.pano-floor small { display: block; font: 400 11.5px/1 var(--ui); opacity: .7; margin-top: 5px; }
.pano-floor.is-busy output { opacity: .5; }
@media (hover: hover) { .pano-floor button:not(:disabled):hover { color: var(--bronze-2); } }

.nojs { position: fixed; inset: auto 0 80px; text-align: center; }

/* ---------- вечер: листы темнеют вместе с небом ---------- */
.mode-evening { --sky: #232c3d; }
.mode-evening .sheet, .mode-evening .about-box { background: #24272c; color: var(--stone); }
.mode-evening .sheet { --ink-2: #a9a399; --seam: #454a51; }
.mode-evening .sheet .btn { background: var(--stone); color: var(--ink); }
.mode-evening .sheet .btn.line { background: none; color: var(--stone); box-shadow: inset 0 0 0 1px var(--stone); }
.mode-evening .sheet .back { color: #a9a399; }
@media (hover: hover) {
  .mode-evening .sheet .back:hover { color: var(--stone); }
  .mode-evening .sheet .btn:hover { background: #fff; }
  .mode-evening .sheet .btn.line:hover { background: rgba(238, 233, 224, .12); }
}
.mode-evening .plan .unit { fill: #2e3238; stroke: var(--stone); }
.mode-evening .plan .unit.is-hot { fill: #5b4a30; }
.mode-evening .plan .unit.is-on { fill: #8a6a3a; }
.mode-evening .plan .wall, .mode-evening .plan .door { stroke: var(--stone); }
.mode-evening .plan .core { fill: #1c1e22; stroke: var(--stone); }
.mode-evening .plan text { fill: var(--stone); }
.mode-evening .plan .furn.fill { fill: #33373d; }

/* ---------- телефон ---------- */
@media (max-width: 760px) {
  :root { --edge: 16px; --podium-h: 56px; }
  .top { padding-top: calc(10px + var(--safe-t)); }
  .mark-name { font-size: 19px; }
  .mark-fin { height: 28px; }
  .top-tools { gap: 16px; }
  .sheet { left: 0; right: 0; width: auto; bottom: calc(var(--podium-h) + var(--safe-b)); max-height: 46%; border-radius: 3px 3px 0 0; padding: 18px 20px 20px 26px;
    box-shadow: inset 3px 0 0 var(--bronze), 0 -14px 40px rgba(18, 22, 30, .28); }
  .sheet h1 { font-size: 40px; margin-bottom: 10px; }
  .sheet h2 { font-size: 25px; }
  .sheet.is-low { max-height: 30%; }
  /* лист на телефоне непрозрачный и во всю ширину: он выезжает снизу, а при смене меняется только содержимое */
  .sheet { transition: transform .7s cubic-bezier(.2, .7, .1, 1); }
  .is-loading .sheet { opacity: 1; transform: translateY(104%); }
  .is-opening .sheet { transition-delay: .25s; }
  .sheet > * { transition: opacity .15s ease; }
  .sheet.is-swap { opacity: 1; transform: none; }
  .sheet.is-swap > * { opacity: 0; }
  .ruler { right: 8px; top: calc(64px + var(--safe-t)); transform: none; height: min(50vh, 400px); width: 46px; }
  .ruler-floors { width: 34px; }
  .ruler-floors li { font-size: 10.5px; }
  .ruler-crown { width: 34px; height: 20px; }
  .ruler-base { width: 46px; min-height: 26px; font-size: 10.5px; }
  .path li + li::before { margin: 0 10px; }
  .path button { font-size: 14px; }
  .path li:not(:nth-last-child(-n+2)) { display: none; }
  .cta { padding: 0 16px; font-size: 14.5px; }
  .about { padding: 0; align-items: flex-end; }
  .about-box { max-height: calc(var(--app-h) - 30px - var(--safe-t)); padding: 30px 22px calc(26px + var(--safe-b)) 30px; border-radius: 3px 3px 0 0; }
  .about-body h2 { font-size: 30px; }
  .about-body .cols { grid-template-columns: 1fr; }
  .facts { gap: 4px 22px; }
  .facts dd { font-size: 24px; }
  .pano-bar { gap: 12px; }
  .pano-title { font-size: 19px; }
}
/* узкий телефон: с переключателем «День / Вечер» шапке тесно — название и кнопки чуть компактнее */
@media (max-width: 430px) {
  .mark { gap: 9px; }
  .mark-name { font-size: 17px; letter-spacing: .03em; }
  .top-tools, .daypart { gap: 12px; }
  .plain, .daypart button { font-size: 13px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .sheet { max-height: calc(var(--app-h) - var(--podium-h) - 70px); width: 320px; padding: 16px 20px 16px 26px; }
  .sheet h1 { font-size: 34px; }
  .ruler { height: 66vh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; transition-delay: 0s !important; }
  .pano-wait i::after { animation: none; width: 100%; opacity: .55; }
}
