/* Холл бизнес-центра «Нора»: арт небоскрёба (C:\AI, 18.11.2026) и три окна в игры — лифт офиса, витрина кофейни,
   подвальное окно бильярдной. Палитра — закат с арта: тёмно-синее небо, тёплый свет окон. */
:root {
  --bg1: #1f2346; --bg2: #3b2f55; --bg3: #7a4a5a;
  --ink: #2b2130; --paper: #fff8ee; --text: #fff3e3; --muted: #e9d6c4;
  --warm: #ffc56b; --accent: #ff8f6b; --go: #3cb371;
  --steel1: #e9eef4; --steel2: #8f9bab; --wood1: #a8693f; --wood2: #6a3c22; --iron: #26222b;
  --rail: 0px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  background: linear-gradient(170deg, var(--bg1) 0%, var(--bg2) 55%, var(--bg3) 100%) fixed;
  min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { display: flex; justify-content: center; gap: 24px; }
.stage { width: 100%; max-width: 1240px; }

/* ---------- небоскрёб ---------- */
.tower-art { position: relative; aspect-ratio: 1080 / 1890; width: 100%; overflow: hidden; }
.tower-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.tower-art::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(18, 20, 44, .55) 0%, transparent 18%, transparent 58%, rgba(18, 20, 44, .85) 100%); }

.sign { position: absolute; z-index: 2; left: 49%; top: 13.6%; transform: translate(-50%, -50%) rotate(-1.5deg);
  font-weight: 900; letter-spacing: .32em; padding: .18em .2em .18em .5em; font-size: clamp(16px, 4.6vw, 30px);
  color: #fff4d6; border: 2px solid rgba(255, 214, 140, .9); border-radius: 10px; background: rgba(60, 14, 18, .55);
  text-shadow: 0 0 6px #ffb347, 0 0 18px #ff7b3a, 0 0 32px #ff5a2a;
  box-shadow: 0 0 14px rgba(255, 140, 60, .7), inset 0 0 12px rgba(255, 140, 60, .45); }

.pin { position: absolute; z-index: 2; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.pin i { width: 16px; height: 16px; border-radius: 50%; background: var(--warm); flex: none;
  box-shadow: 0 0 0 4px rgba(255, 197, 107, .35), 0 0 18px 4px rgba(255, 197, 107, .8); animation: pulse 2.4s ease-in-out infinite; }
.pin span { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(20, 18, 40, .72);
  border: 1px solid rgba(255, 255, 255, .25); white-space: nowrap; backdrop-filter: blur(4px); }
.pin:hover span, .pin:focus-visible span { background: var(--accent); }
.pin:focus-visible { outline: 3px solid #fff; outline-offset: 4px; border-radius: 12px; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(255, 197, 107, 0), 0 0 22px 6px rgba(255, 197, 107, .95); } }
@media (prefers-reduced-motion: reduce) { .pin i { animation: none; } }

/* на телефоне заголовок — под артом: поверх он закрывал бы кофейню и подвал */
.tower { display: flex; flex-direction: column; }
.tower-title { position: relative; z-index: 3; padding: 18px 20px 4px; text-align: center; }
.tower-title h1, .head h1 { margin: 0; font-size: clamp(28px, 7.5vw, 44px); font-weight: 900; letter-spacing: -.5px; line-height: 1.05;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.tower-title h1 span, .head h1 span { color: var(--warm); }
.tower-title p, .head p { margin: 8px auto 0; max-width: 30em; font-size: 16px; font-weight: 600; color: var(--muted); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.down { display: inline-block; margin-top: 14px; color: var(--ink); background: var(--warm); font-weight: 900; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; box-shadow: 0 6px 20px rgba(255, 170, 70, .45); }
.down::after { content: " ↓"; }

/* ---------- этажи ---------- */
.floors { padding: 24px 16px 32px; display: flex; flex-direction: column; gap: 28px; max-width: 600px; margin: 0 auto; }
.head { display: none; text-align: center; }

.floor { position: relative; display: block; color: var(--ink); text-decoration: none; scroll-margin-top: 16px;
  border-radius: 22px; transition: transform .15s ease; }
.floor:hover, .floor:focus-visible { transform: translateY(-3px); }
.floor:focus-visible { outline: 3px solid var(--warm); outline-offset: 6px; }

.win { position: relative; margin: 0; overflow: hidden; background: #000; }
.win img { display: block; width: 100%; height: auto; aspect-ratio: 1100 / 856; object-fit: cover; }
.win .glass { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .0) 30%, rgba(255, 255, 255, .16) 42%, rgba(255, 255, 255, .0) 54%),
              radial-gradient(ellipse at 50% 120%, rgba(0, 0, 0, .35), transparent 60%); }

/* лифт: стальная рама, скруглённое панорамное стекло, табло этажей */
.lift { border-radius: 22px; padding: 10px; background: linear-gradient(135deg, var(--steel1), var(--steel2) 45%, var(--steel1) 70%, #6f7b8a);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 1px 0 #fff; }
.lift img, .lift .glass { border-radius: 14px; }
.lift .glass { inset: 10px; }
.floor-no { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font: 800 13px/1 ui-monospace, Consolas, monospace;
  color: #ffb547; background: #120d14; padding: 6px 12px; border-radius: 8px; letter-spacing: .08em;
  text-shadow: 0 0 6px rgba(255, 170, 60, .9); border: 1px solid #3a2a2a; }

/* витрина кофейни: деревянная рама и полосатая маркиза */
.cafe { border-radius: 8px 8px 18px 18px; padding: 34px 12px 12px; background: linear-gradient(var(--wood1), var(--wood2));
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .08); overflow: visible; }
.cafe img, .cafe .glass { border-radius: 6px; }
.cafe .glass { inset: 34px 12px 12px; }
.cafe .awning { position: absolute; left: -8px; right: -8px; top: -14px; height: 42px; z-index: 1; border-radius: 6px 6px 0 0;
  background: repeating-linear-gradient(90deg, #d8433f 0 38px, #fff3e6 38px 76px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, .35);
  -webkit-mask: radial-gradient(circle 13px at 19px 100%, transparent 98%, #000) 0 0 / 38px 100% repeat-x;
          mask: radial-gradient(circle 13px at 19px 100%, transparent 98%, #000) 0 0 / 38px 100% repeat-x; }

/* подвальное окно: чугунная рама с переплётом, тёплый свет изнутри */
.cellar { border-radius: 14px; padding: 12px; background: var(--iron);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 170, 80, .18), inset 0 0 0 2px #3c3542; }
.cellar img, .cellar .glass { border-radius: 6px; }
.cellar .glass { inset: 12px;
  background: linear-gradient(90deg, transparent calc(50% - 3px), var(--iron) calc(50% - 3px) calc(50% + 3px), transparent calc(50% + 3px)),
              linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .12) 42%, rgba(255, 255, 255, 0) 54%); }

.plate { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; margin: -26px 14px 0;
  background: var(--paper); color: var(--ink); border-radius: 18px; padding: 14px 18px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.plate .where { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; opacity: .6; }
.plate b { font-size: 24px; font-weight: 900; line-height: 1.1; }
.plate .tag { font-size: 15px; font-weight: 600; }
.plate .go { align-self: flex-start; margin-top: 8px; background: var(--go); color: #fff; font-weight: 900; font-size: 16px;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 4px 0 #2a8a55; }
.floor.soon { cursor: default; pointer-events: none; }
.floor.soon .go { background: #c9c3d0; color: var(--ink); box-shadow: none; }
.floor.soon .go::before { content: "Скоро · "; }

.foot { text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.foot a { color: inherit; font-weight: 700; }

/* ---------- широкий экран: небоскрёб слева во всю высоту, этажи справа ---------- */
@media (min-width: 900px) {
  .stage { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .tower { position: sticky; top: 0; height: 100vh; display: block; }
  .tower-art { height: 100vh; width: auto; }
  .tower-title { display: none; }
  .head { display: block; margin-top: 12px; }
  .floors { padding: 28px 32px 40px; max-width: 640px; }
  .sign { font-size: clamp(16px, 2.6vh, 28px); }
}

/* Боковое место рекламы — только на широком экране и только если включено (NORA_RSYA). Занимает настоящее
   место, а не ложится поверх: как у «Раскопа» */
.rail { width: 300px; flex: 0 0 300px; min-height: 600px; }
@media (max-width: 1099px) { .rail { display: none !important; } }

.doc { margin: 0 auto; padding: 16px; max-width: 680px; line-height: 1.55; background: rgba(255, 255, 255, .92); color: #3a2930;
  border-radius: 16px; margin-top: 16px; }
