/* 3D-модель здания вместо плоской схемы в тёмном блоке страниц БЦ. Скрипт — js/bc-3d.js.
   Пока модель грузится, видна плоская схема; когда готова — схема скрывается. */

/* ---------- Окно модели ---------- */

.bc3d[hidden] {
  display: none;
}

.bc3d__stage {
  position: relative;
  aspect-ratio: 600 / 498;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  overflow: hidden;
  background: #10293b;
}

.bc3d__stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}

.bc3d__stage canvas:active {
  cursor: grabbing;
}

/* ---------- Подписи поверх модели ---------- */

.bc3d__labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bc3d__lbl {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.bc3d__lbl--card {
  padding: 5px 9px;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.bc3d__lbl--office {
  background: var(--accent);
}

.bc3d__lbl--floor {
  font-size: 11px;
  font-weight: 400;
  color: #9fb2c2;
}

.bc3d__lbl--floor.is-on {
  color: var(--accent);
  font-weight: 500;
}

/* ---------- Выбор этажа под моделью ---------- */

.bc3d__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
}

.bc3d__name {
  color: var(--on-dark-mut);
  font-size: 15px;
}

.bc3d__step {
  display: inline-grid;
  grid-template-columns: 40px 44px 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.bc3d__step button {
  height: 40px;
  border: 0;
  background: none;
  color: var(--on-dark);
  font: inherit;
  font-size: 19px;
  cursor: pointer;
}

.bc3d__step button:hover {
  color: var(--accent);
}

.bc3d__step button:disabled {
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
}

.bc3d__step output {
  text-align: center;
  color: var(--on-dark);
  font-size: 17px;
  font-weight: 500;
}

.bc3d__go {
  margin-left: auto;
  color: var(--accent);
  font-weight: 500;
}

.bc3d__go:hover {
  color: #fff;
}

.bc3d__note {
  margin: 10px 0 0;
  color: var(--on-dark-mut);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .bc3d__lbl--floor {
    display: none;
  }

  .bc3d__go {
    margin-left: 0;
  }
}
