/* Выбор этажа на настоящем фото комплекса и пролёт в квартиру */
body.fl { background: #0b0806; overflow: hidden; }
.fl-stage { position: fixed; inset: 0; overflow: hidden; }
.fl-world { position: absolute; transform-origin: 0 0; will-change: transform, filter; }
.fl-hero, .fl-ov { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fl-hero { object-fit: fill; user-select: none; -webkit-user-drag: none; }
.fl-ov { cursor: pointer; }
.fl-ov .hit { fill: rgba(255,255,255,0); stroke: none; transition: fill .25s; }
.fl-ov .hit.on { fill: rgba(255,255,255,.07); }
.band { fill: rgba(10,132,255,.38); stroke: #7fd0ff; stroke-width: 2.5; vector-effect: non-scaling-stroke; transition: opacity .25s; mix-blend-mode: screen; }
.band.hover { fill: rgba(255,255,255,.22); stroke: rgba(255,255,255,.75); stroke-width: 1.5; filter: none; }
.fl-flag { position: absolute; transform: translate(14px, -50%); padding: 6px 11px; border-radius: 999px; background: rgba(10,14,22,.8); color: #fff; font: 600 12.5px var(--font); white-space: nowrap; box-shadow: 0 6px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18); pointer-events: none; transition: opacity .3s; }
.fl-flag::before { content: ""; position: absolute; right: 100%; top: 50%; width: 14px; height: 1.5px; background: #7fd0ff; }
.fl-flag small { font-weight: 500; opacity: .7; margin-left: 6px; }

.fl-tip { position: fixed; z-index: 7; pointer-events: none; padding: 5px 10px; border-radius: 10px; background: rgba(10,14,22,.82); color: #fff; font: 500 12px var(--font); transform: translate(14px, 14px); white-space: nowrap; }

.fl-top { position: absolute; z-index: 10; top: var(--gutter); left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.fl-top > * { pointer-events: auto; }
.fl-left { display: flex; gap: 8px; }
.fl-top .btn, .fl-top .brand { white-space: nowrap; }
@media (max-width: 560px) { .fl-left .btn { display: none; } }
.fl-stage .glass::before { background: rgba(8,12,20,.5); }
.fl-stage .fl-panel::before, .fl-stage .fl-card::before { background: rgba(8,12,20,.66); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); filter: none; }

.fl-hint { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--gutter) + 6px); transform: translateX(-50%); padding: 10px 16px; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: opacity .4s; }

.fl-panel { position: absolute; z-index: 8; right: var(--gutter); top: 50%; transform: translateY(-50%); width: 330px; max-height: calc(100% - 120px); overflow-y: auto; padding: 18px; border-radius: 26px; transition: opacity .45s, transform .45s; }
.fl-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.fl-chips button { height: 40px; border-radius: 12px; font-weight: 650; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.fl-chips button small { display: block; font-size: 10px; font-weight: 500; opacity: .7; line-height: 1; }
.fl-chips button[aria-pressed="true"] { background: rgba(10,132,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.fl-floor { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.fl-floor button { width: 44px; height: 44px; border-radius: 50%; font-size: 22px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.fl-floor > div { text-align: center; }
.fl-floor b { display: block; font-size: 56px; font-weight: 600; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.fl-floor span { font-size: 12px; color: var(--ink-3); }
.fl-floorplan { position: relative; margin: 12px 0 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #1a1714; }
.fl-floorplan img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .3s; }
.fl-floorplan .lab { position: absolute; transform: translate(-50%, -50%); padding: 3px 7px; border-radius: 999px; background: rgba(10,14,22,.82); color: #fff; font: 600 10.5px var(--font); display: inline-flex; gap: 4px; align-items: center; }
.fl-floorplan .lab .dot { width: 6px; height: 6px; }
.fl-floorplan .lab.on { background: #0a84ff; box-shadow: 0 0 0 1.5px #fff; }
.fl-apts { display: grid; gap: 4px; margin-top: 10px; }
.fl-apts button { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; border-radius: 12px; font-size: 13px; text-align: left; background: rgba(255,255,255,.06); }
.fl-apts button[aria-pressed="true"] { background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 1.5px #64d2ff; }
.fl-apts button[disabled] { opacity: .45; cursor: default; }
.fl-apts .pr { font-size: 12px; color: var(--ink-2); }
.fl-go { width: 100%; margin-top: 12px; }
.fl-go[disabled] { opacity: .5; pointer-events: none; }

/* пролёт и квартира */
.fl-fly { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .35s linear; z-index: 2; background: transparent; }
.fl-fly.on { opacity: 1; }
.fl-inside { position: absolute; inset: 0; z-index: 3; }
.fl-inside[hidden] { display: none; }
.fl-rooms img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s ease; transform: scale(1.04); }
.fl-rooms img.on { opacity: 1; animation: kb 14s linear forwards; }
@keyframes kb { from { transform: scale(1.0); } to { transform: scale(1.07); } }
.fl-card { position: absolute; z-index: 5; left: var(--gutter); bottom: calc(var(--gutter) + 6px); width: min(560px, calc(100% - 2 * var(--gutter))); padding: 18px 20px; border-radius: 26px; }
.fl-card .title { font-size: clamp(26px, 3.2vw, 40px); }
.fl-card .meta { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); }
.fl-card .tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fl-card .tabs button { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14); }
.fl-card .tabs button[aria-current] { background: rgba(255,255,255,.24); }
.fl-card .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fl-card .row .btn { height: 40px; }
.fl-plan-pop { position: absolute; z-index: 6; inset: 70px var(--gutter) 70px auto; width: min(640px, calc(100% - 2 * var(--gutter))); padding: 12px; border-radius: 24px; }
.fl-plan-pop img { width: 100%; height: 100%; object-fit: contain; border-radius: 14px; background: #f2efe9; }
.fl-x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; background: rgba(10,14,22,.7); color: #fff; font-size: 22px; }

body.flying .fl-panel, body.inside .fl-panel { opacity: 0; transform: translate(30px, -50%); pointer-events: none; }
body.flying .band, body.inside .band { opacity: 0; transition: opacity .6s .2s; }
body.flying .fl-hint, body.inside .fl-hint, body.flying .fl-flag, body.inside .fl-flag { opacity: 0; }

@media (max-width: 960px) {
  .fl-panel { top: auto; bottom: 10px; left: 10px; right: 10px; width: auto; transform: none; padding: 12px; max-height: 52%; }
  body.flying .fl-panel, body.inside .fl-panel { transform: translateY(30px); }
  .fl-panel .kicker, .fl-floorplan { display: none; }
  .fl-floor b { font-size: 38px; }
  .fl-apts { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; }
  .fl-hint { display: none; }
  .fl-top .btn.tint-accent { display: none; }
  .fl-card { bottom: 10px; left: 10px; right: 10px; width: auto; padding: 14px; }
}
