:root {
  --navy: #0b1b3a;
  --navy-2: #12305f;
  --blue: #2f6fed;
  --sky: #5aa9ff;
  --sun: #ffd166;
  --bg: #f4f7fc;
  --card: #ffffff;
  --text: #14213d;
  --muted: #5b6b8a;
  --line: #dbe3f1;
  --free: #2fa35a;
  --rented: #d64545;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 27, 58, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--sun); color: var(--navy); padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); background: rgba(11, 27, 58, 0.82); backdrop-filter: blur(12px); color: #fff; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: 0.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--sky), var(--blue)); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--sun); right: 7px; top: 7px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 0.95rem; opacity: 0.9; }
.nav a:hover { opacity: 1; }
.header-phone { text-decoration: none; font-weight: 700; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform 0.2s, opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--sun); background: var(--sun); color: var(--navy); padding: 14px 26px; border-radius: 999px; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 209, 102, 0.35); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { box-shadow: none; background: rgba(255, 255, 255, 0.08); }
.btn-small { padding: 9px 18px; font-size: 0.9rem; }
.link-arrow { font-weight: 800; text-decoration: none; color: var(--blue); }
.link-arrow::after { content: " →"; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; background: linear-gradient(180deg, #081430 0%, var(--navy-2) 55%, #2d6bd0 100%); }
.hero-layer { position: absolute; inset: -10% 0 -10% 0; will-change: transform; pointer-events: none; }
.hero-sky { background: radial-gradient(60% 40% at 78% 22%, rgba(255, 209, 102, 0.35), transparent 70%), radial-gradient(50% 50% at 20% 10%, rgba(90, 169, 255, 0.35), transparent 70%); }
.hero-clouds { background:
  radial-gradient(90px 34px at 18% 30%, rgba(255, 255, 255, 0.14), transparent 70%),
  radial-gradient(140px 44px at 62% 24%, rgba(255, 255, 255, 0.12), transparent 70%),
  radial-gradient(110px 36px at 84% 46%, rgba(255, 255, 255, 0.1), transparent 70%); }
.hero-city { top: auto; height: 45%; bottom: -5%; background:
  linear-gradient(180deg, transparent, rgba(6, 15, 36, 0.9) 85%),
  repeating-linear-gradient(90deg, rgba(8, 20, 48, 0.9) 0 70px, rgba(8, 20, 48, 0) 70px 90px); -webkit-mask: linear-gradient(180deg, transparent, #000 40%); mask: linear-gradient(180deg, transparent, #000 40%); }
.hero-inner { position: relative; width: min(1180px, 100% - 40px); margin: 110px auto 80px; }
.hero-inner { z-index: 2; }
.hero-photos { position: absolute; z-index: 1; top: 50%; right: max(5vw, calc((100vw - 1400px) / 2)); transform: translateY(-50%); width: clamp(280px, 38vw, 520px); height: min(62vh, 580px); min-height: 300px; border: 1px solid rgba(255,255,255,.3); border-radius: 26px; overflow: hidden; box-shadow: 0 28px 90px rgba(0,0,0,.32); background: rgba(7,20,47,.65); }
.hero-photos[hidden] { display: none; }
.hero-photo-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.hero-photo-open::after { content: ""; position: absolute; inset: 35% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(5,15,38,.6)); }
.hero-photo-open img { width: 100%; height: 100%; display: block; object-fit: cover; }
.hero-photo-nav, .room-photo-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: #fff; background: rgba(11,27,58,.7); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.hero-photo-prev, .room-photo-prev { left: 12px; }
.hero-photo-next, .room-photo-next { right: 12px; }
.hero-photo-count, .room-photo-count { position: absolute; z-index: 2; right: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; color: #fff; background: rgba(11,27,58,.78); font-size: .82rem; font-weight: 700; }
.hero-photo-count[hidden], .room-photo-count[hidden] { display: none; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.18em; font-weight: 700; color: var(--sky); margin-bottom: 14px; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.8rem, 9vw, 7.2rem); line-height: 0.95; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 26px; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.4rem); max-width: 560px; opacity: 0.9; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.counters { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.counters li { min-width: 120px; }
.counters strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; color: var(--sun); line-height: 1; }
.counters span { font-size: 0.85rem; opacity: 0.8; }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; margin: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 0; }
.section .eyebrow { color: var(--blue); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 80px); align-items: start; }
.lead { font-size: 1.25rem; color: var(--navy); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 70px 0 34px; }
.section-head:first-child { margin-top: 0; }
.note { color: var(--muted); max-width: 340px; margin: 0; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.benefits li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform 0.2s, box-shadow 0.2s; }
.benefits li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; font-size: 1.4rem; margin-bottom: 16px; }
.benefits h3 { margin-bottom: 6px; font-size: 1.15rem; }
.benefits p { margin: 0; color: var(--muted); }

/* ---------- plan ---------- */
.section-plan { background: #fff; }
.plan-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-bottom: 22px; }
.floor-tabs { display: inline-flex; background: var(--bg); border-radius: 999px; padding: 4px; border: 1px solid var(--line); }
.floor-tab { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.floor-tab[aria-pressed="true"] { background: var(--navy); color: #fff; }
.check { display: inline-flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--free); }
.area-filter { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; margin: 0; }
.area-filter legend { float: left; padding: 0 10px 0 0; font-weight: 600; }
.area-filter input { width: 84px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.plan-aside { margin: 0 0 0 auto; color: var(--muted); }
.plan-aside strong { font-size: 1.6rem; color: var(--free); }

.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.plan-wrap { position: relative; background: linear-gradient(180deg, #f1f6ff, #e8f0fc); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
#plan-svg { display: block; width: 100%; height: auto; }
.plan-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 10px; font-size: 0.85rem; max-width: 220px; box-shadow: var(--shadow); }
.plan-tip[hidden] { display: none; }
.plan-side { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.legend li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.92rem; }
.swatch { width: 24px; height: 24px; border-radius: 6px; border: 2px solid; flex: none; }
.swatch-free { border-color: #1f9a55; background: rgba(47, 170, 95, 0.7); }
.swatch-rented { border-color: var(--rented); background: repeating-linear-gradient(45deg, #fff 0 3px, #e58a8a 3px 5px); }
.swatch-unknown { border-color: #8a96ad; background: repeating-linear-gradient(45deg, #fff 0 3px, #b4bdcf 3px 5px); }
.swatch-soon { border-color: #2f6fed; background: repeating-linear-gradient(45deg, #fff 0 3px, #8db8ff 3px 5px); }
.swatch-foodcourt { border-color: #b68a00; background: rgba(255, 213, 79, .8); }
.plan-hint { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }

.room { cursor: pointer; outline: none; }
.room polygon { stroke: #2b3a5c; stroke-width: 2; transition: stroke-width 0.15s, opacity 0.15s; }
.room.is-free polygon { fill: url(#p-free); stroke: var(--free); }
.room.is-rented polygon { fill: url(#p-rented); stroke: var(--rented); }
.room.is-soon polygon { fill: #d9e9ff; stroke: #2f6fed; stroke-dasharray: 7 4; }
.room.is-unknown polygon, .room.is-unavailable polygon { fill: #e3e8f1; stroke: #8a96ad; }
.room.is-unavailable polygon { fill: #cfd5e0; }
.room:hover polygon, .room:focus-visible polygon, .room.is-selected polygon { stroke-width: 5; }
.room:focus-visible polygon { stroke: var(--navy); }
.room.is-dim { opacity: 0.25; }
#plan-svg.has-category-selection .room.is-category-dimmed { opacity: 0.12; }
#plan-svg .room.is-category-highlight:not(.is-dim) .room-category-ring { fill: none; stroke: #2f6fed; stroke-width: 12; stroke-opacity: .62; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(47,111,237,.9)); pointer-events: none; }
#plan-svg.has-bg .room.is-category-highlight:not(.is-dim) polygon:first-child { stroke: #174fc4; stroke-width: 4; }
#plan-svg:not(.has-bg) .room.is-category-highlight:not(.is-dim) polygon:first-child { stroke: #174fc4; stroke-width: 6; }
.room-label { font-size: 22px; font-weight: 800; fill: #14213d; text-anchor: middle; dominant-baseline: central; pointer-events: none; paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 5px; }
.room-brand-label { pointer-events: none; text-anchor: middle; dominant-baseline: central; }
.room-brand-logo-bg { fill: #fff; stroke: rgba(20, 33, 61, .16); stroke-width: 1.5; }
.room-brand-logo { clip-path: inset(0 round 6px); }
.room-brand-mark { fill: #14213d; stroke: #fff; stroke-width: 2; }
.room-brand-initial { fill: #fff; font-size: 19px; font-weight: 800; }
.room-brand-name { fill: #14213d; font-size: 15px; font-weight: 800; paint-order: stroke; stroke: rgba(255,255,255,.96); stroke-width: 5px; stroke-linejoin: round; }
.room-facility-icon, .plan-facility-icon { font-family: inherit; font-size: 15px; font-weight: 900; text-anchor: middle; dominant-baseline: central; pointer-events: none; fill: #fff; }
.zone.zone-wc .plan-facility-icon { paint-order: stroke; stroke: #7d4fe8; stroke-width: 25px; stroke-linejoin: round; }
.zone.zone-wc polygon { fill: transparent; stroke: transparent; pointer-events: none; }
.plan-facility-label { font-size: 13px; font-weight: 800; fill: #14213d; letter-spacing: 0; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.yandex-walk-link { display: inline-flex; margin-top: 14px; }
.walkthrough { margin-top: clamp(48px, 7vw, 88px); }
.walkthrough-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.walkthrough-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.walkthrough-frame { height: clamp(320px, 56vw, 560px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #e8edf6; box-shadow: var(--shadow); }
.walkthrough-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.room-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 14px 0 20px; }
.room-links[hidden] { display: none; }
.room-links a { color: var(--blue); font-weight: 750; text-decoration: none; }
.room-links a:hover { text-decoration: underline; }
.zone polygon { fill: #fbfcff; stroke: #aab6cf; stroke-width: 2; }
.zone.zone-stairs polygon { fill: url(#p-stairs); }
  .zone.zone-foodcourt polygon { fill: rgba(255, 213, 79, .62); stroke: #b68a00; stroke-width: 4; pointer-events: none; }
.zone.zone-second_light polygon { fill: #eaf2ff; stroke: #7f9ccc; stroke-dasharray: 10 8; }
.zone-label { font-size: 16px; fill: #6a7a99; text-anchor: middle; dominant-baseline: central; pointer-events: none; letter-spacing: 0.08em; }

.list-title { font-size: 1.4rem; margin: 44px 0 18px; }
.list-title small { color: var(--muted); font-weight: 500; margin-left: 8px; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 0.92rem; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.chip:hover { border-color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-n { font-size: 0.78rem; background: rgba(47, 111, 237, 0.12); color: var(--blue); border-radius: 999px; padding: 1px 8px; }
.chip[aria-pressed="true"] .chip-n { background: rgba(255, 255, 255, 0.2); color: #fff; }
.room-list { display: grid; gap: 38px; }
.cat-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--navy); }
.cat-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; }
.cat-toggle-title { margin-right: auto; font-size: 1.3rem; font-weight: 800; letter-spacing: 0.01em; }
.cat-chevron { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eef3fb; color: var(--navy); font-size: 1.6rem; line-height: 1; transition: transform .15s; }
.cat-toggle[aria-expanded="true"] .cat-chevron { transform: rotate(90deg); }
.cat-toggle:hover .cat-toggle-title { color: var(--blue); }
.cat-grid[hidden] { display: none; }
.cat-meta { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.room-card { position: relative; width: 100%; height: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px 22px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; display: grid; gap: 4px; align-content: start; overflow: hidden; }
.room-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #b4bdcf; }
.room-card.is-free::before { background: var(--free); }
.room-card.is-rented::before { background: #e58a8a; }
.room-card.is-soon::before { background: #2f6fed; }
.room-card.is-free { border-color: rgba(47, 163, 90, 0.5); background: linear-gradient(180deg, #f3fcf6, #fff); }
.room-card.is-soon { border-color: rgba(47, 111, 237, .55); background: linear-gradient(180deg, #f0f6ff, #fff); }
.room-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue); }
.room-card strong { font-size: 1.1rem; line-height: 1.25; }
.room-no { color: var(--muted); font-size: 0.85rem; font-weight: 700; }
.room-card small { color: var(--muted); }
.room-card .badge { margin-top: 6px; }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: #e3e8f1; color: #3a4764; }
.badge.is-free { background: #dff5e6; color: #1d6b3a; }
.badge.is-rented { background: #fbe3e3; color: #9b2c2c; }
.badge.is-soon { background: #dceaff; color: #174aa6; }
  .badge.is-foodcourt { background: #fff2bf; color: #755900; }
.empty { color: var(--muted); grid-column: 1 / -1; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery li:nth-child(1) { grid-column: span 3; grid-row: span 2; }
.gallery li:nth-child(2) { grid-column: span 3; }
.gallery li:nth-child(n+3) { grid-column: span 2; }
.gallery button { position: relative; width: 100%; height: 100%; min-height: 200px; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--navy); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 14px; color: #fff; text-align: left; font-weight: 600; background: linear-gradient(180deg, transparent, rgba(8, 20, 48, 0.85)); }

/* ---------- request form ---------- */
.section-request { background: linear-gradient(180deg, var(--bg), #e6eefb); }
.form { display: grid; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea { padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 400; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(47, 111, 237, 0.3); border-color: var(--blue); }
.field .is-invalid, .consent .is-invalid { border-color: var(--rented); outline-color: rgba(214, 69, 69, 0.3); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; font-size: 0.9rem; color: var(--muted); align-items: flex-start; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.consent a { color: var(--blue); }
.form-msg { min-height: 1.4em; margin: 0; font-weight: 600; }
.form-msg.is-error { color: var(--rented); }
.form-msg.is-ok { color: #1d6b3a; }
.form .btn { justify-self: start; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #dbe6ff; padding: 64px 0 48px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 40px; }
.site-footer .brand-name { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.footer-tag { opacity: 0.75; }
.footer-label { font-size: 0.75rem; letter-spacing: 0.18em; font-weight: 700; color: var(--sky); margin: 18px 0 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { font-size: 0.85rem; opacity: 0.7; margin-top: 22px; }
.map-box { border-radius: var(--radius); overflow: hidden; min-height: 240px; background: #0e2447; }
.map-box iframe { width: 100%; height: 100%; min-height: 240px; border: 0; display: block; }

/* ---------- dialogs ---------- */
.dialog { width: min(920px, 100% - 24px); max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 30px 90px rgba(5, 12, 30, 0.45); overflow: auto; }
.dialog[open] { display: grid; grid-template-columns: 1.05fr 1fr; }
.dialog::backdrop, .lightbox::backdrop { background: rgba(5, 12, 30, 0.65); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(11, 27, 58, 0.75); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.room-gallery { background: var(--navy); display: grid; grid-template-rows: 1fr auto; min-height: 340px; }
.room-photo-stage { position: relative; min-height: 280px; }
.room-main { width: 100%; height: 100%; border: 0; padding: 0; background: linear-gradient(135deg, var(--navy-2), var(--navy)); cursor: zoom-in; display: grid; place-items: center; min-height: 280px; }
.room-main img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; display: block; }
.room-nophoto { color: #9db3dd; padding: 24px; text-align: center; }
.room-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.room-thumbs:empty { display: none; }
.room-thumbs button { width: 72px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; flex: none; background: none; }
.room-thumbs button[aria-current="true"] { border-color: var(--sun); }
.room-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-photo-nav { width: 38px; height: 38px; border-color: rgba(255,255,255,.7); }
.room-photo-nav[hidden] { display: none; }
.room-location { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #f8faff; }
.room-location h4 { margin: 0 0 8px; font-size: .95rem; }
.room-location-frame { overflow: hidden; border-radius: 10px; background: #edf2fa; }
#room-location-svg { display: block; width: 100%; max-height: 190px; }
.location-pin-halo { fill: rgba(214,69,69,.22); stroke: rgba(214,69,69,.35); stroke-width: 2; }
.location-pin { fill: #d64545; stroke: #fff; stroke-width: 4; }
.room-location-caption { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.room-info { padding: 32px 28px 28px; display: flex; flex-direction: column; gap: 6px; }
.room-info h3 { font-size: 1.8rem; margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 10px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.dialog-actions { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.dialog-actions .btn-ghost { color: var(--navy); }
.dialog-actions .btn-ghost:hover { background: var(--bg); }

.lightbox { width: min(1100px, 100% - 24px); padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 100%; max-height: 80vh; border-radius: 16px; background: var(--navy); }
.lightbox p { text-align: center; margin: 12px 0 0; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.2); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-nav[hidden] { display: none; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: 14px; z-index: 200; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }

/* ---------- legal page ---------- */
.legal-page { background: #fff; }
.legal { width: min(760px, 100% - 40px); margin: 0 auto; padding: 60px 0 100px; }
.legal h1 { font-size: 2rem; }
.legal-back { text-decoration: none; color: var(--blue); font-weight: 700; display: inline-block; margin-bottom: 24px; }
.legal-operator { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .two-col, .plan-layout, .footer-grid { grid-template-columns: 1fr; }
  .plan-aside { margin-left: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery li:nth-child(n) { grid-column: span 1; grid-row: auto; }
  .gallery li:nth-child(1) { grid-column: span 2; }
  .dialog[open] { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .walkthrough-head { align-items: start; flex-direction: column; }
  .hero-photos { right: 24px; width: min(38vw, 360px); height: 42vh; min-height: 240px; opacity: .82; }
  .hero-inner { z-index: 2; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; margin-left: auto; }
  .header-phone { display: none; }
  .hero-photos { top: auto; right: 18px; bottom: 54px; transform: none; width: min(42vw, 240px); height: 190px; min-height: 0; opacity: .68; }
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px; background: var(--navy); transform: translateY(-120%); transition: transform 0.25s; margin: 0; max-height: calc(100vh - 64px); overflow: auto; }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 14px; border: 0; justify-content: center; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .hero-layer { transform: none !important; }
}

/* План с подложкой-чертежом: помещения заштрихованы, чертёж виден насквозь; названия — только по наведению */
#plan-svg.has-bg .room polygon { stroke-width: 1.6; }
#plan-svg.has-bg .room.is-free polygon { fill: rgba(47, 170, 95, 0.62); stroke: #1f9a55; stroke-width: 2.5; }
#plan-svg.has-bg .room.is-rented polygon { fill: url(#h-rented); stroke: rgba(214, 69, 69, 0.55); }
#plan-svg.has-bg .room.is-soon polygon { fill: url(#h-soon); stroke: #2f6fed; stroke-width: 2.5; }
#plan-svg.has-bg .room.is-unknown polygon, #plan-svg.has-bg .room.is-unavailable polygon { fill: url(#h-unknown); stroke: rgba(110, 124, 150, 0.6); }
#plan-svg.has-bg .room:hover polygon, #plan-svg.has-bg .room:focus-visible polygon, #plan-svg.has-bg .room.is-selected polygon { fill: url(#h-active); stroke: var(--blue); stroke-width: 3.5; }
#plan-svg.has-bg .room-label, #plan-svg.has-bg .zone-label { display: none; }
#plan-svg.has-bg .zone.zone-wc .plan-facility-icon { display: block; }
#plan-svg.has-bg .room-brand-name { fill: #14213d; stroke: rgba(255,255,255,.96); }
  #plan-svg.has-bg .zone.zone-foodcourt polygon { fill: rgba(255, 213, 79, .62); stroke: #b68a00; stroke-width: 4; pointer-events: none; }

[hidden] { display: none !important; }
.form-hint { margin: 0; padding: 12px 14px; border-radius: 12px; background: #fff7e0; border: 1px solid #f3d98b; color: #6b5200; font-weight: 600; font-size: 0.95rem; }

/* ---------- leasing dashboard additions ---------- */
.leasing-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 1.25fr); gap: 12px; margin: 30px 0 24px; }
.leasing-kpi, .leasing-note { min-height: 112px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, #fff, #f5f8ff); box-shadow: 0 8px 26px rgba(11,27,58,.045); }
.leasing-kpi span, .leasing-kpi small, .leasing-note small { display: block; color: var(--muted); font-size: .82rem; }
.leasing-kpi strong { display: block; margin: 3px 0 0; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.2; letter-spacing: -.04em; }
.leasing-note { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-color: var(--navy); }
.leasing-note strong, .leasing-note small { display: block; }
.leasing-note small { color: rgba(255,255,255,.7); margin-top: 3px; }
.live-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: #62d99a; box-shadow: 0 0 0 5px rgba(98,217,154,.15); }
.room-search input { width: min(270px, 72vw); padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 960px) { .leasing-dashboard { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .leasing-dashboard { grid-template-columns: 1fr 1fr; gap: 8px; } .leasing-kpi, .leasing-note { min-height: 96px; padding: 13px; } .leasing-note { grid-column: span 2; } .room-search { width: 100%; } .room-search input { width: 100%; } }
.visitor-counter { padding: 42px 0; background: #eaf0fa; border-top: 1px solid var(--line); }
.visitor-counter .eyebrow { margin-bottom: 8px; }
.visitor-counter h2 { margin-bottom: 20px; }
.visitor-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.visitor-count { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.visitor-count strong { color: var(--navy); font-size: clamp(1.4rem, 3vw, 2rem); }
.visitor-count span { color: var(--muted); }
@media (max-width: 640px) { .visitor-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .visitor-count { padding: 14px; } }
