/* Окно 3D-карты в колонке статьи (Ilya 30.11.2026). Лежит в public/: правка вида не трогает
   замыкание шаблонов статей. Подпись и строка атрибуции — те же классы, что у иллюстраций. */
figure.art3d { margin: 0; }
.art3d-box { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #f3efe2; }
.art3d-box > img.art3d-still { display: block; width: 100%; height: 100%; object-fit: cover; }
.art3d-live { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; pointer-events: none; transition: opacity .35s ease; background: transparent; }
figure.art3d.is-live .art3d-live { opacity: 1; pointer-events: auto; }
figure.art3d.is-live .art3d-box { cursor: grab; }
.art3d-full { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 4px; background: rgba(16, 26, 31, .72); color: #f1f4f5; cursor: pointer;
  display: grid; place-items: center; }
.art3d-full[hidden] { display: none; }
.art3d-full:hover, .art3d-full:focus-visible { background: rgba(16, 26, 31, .92); color: #f6a83a; outline: none; }
.art3d-full svg { width: 20px; height: 20px; }
.art3d-bar { display: none; }

/* Подсказка «потяните» (Ilya 01.12.2026: «как понять, что можно брать и тянуть мышью?», «может быть
   какую-то анимированную пиктограмму»): плашка в углу живого окна, рука ходит по дуге несколько раз и
   замирает; уходит после первого касания модели. Нажатия проходят сквозь неё к модели. */
.art3d-drag { position: absolute; left: 8px; bottom: 8px; z-index: 2; display: flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 6px; border-radius: 20px; background: rgba(16, 26, 31, .72); color: #f1f4f5;
  font: 13px/1.2 'PT Sans', Arial, sans-serif; pointer-events: none;
  animation: art3d-in .5s ease .2s both; transition: opacity .35s ease; }
.art3d-drag svg { width: 34px; height: 25px; flex: none; color: #f6a83a; overflow: visible; }
.art3d-drag .a3-hand { transform-box: fill-box; transform-origin: 50% 100%; animation: art3d-swipe 1.5s ease-in-out .7s 5 alternate both; }
.art3d-drag.is-gone { opacity: 0; }
@keyframes art3d-swipe { from { transform: translateX(-7px) rotate(-8deg); } to { transform: translateX(7px) rotate(8deg); } }
@keyframes art3d-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .art3d-drag, .art3d-drag .a3-hand { animation: none; } }
figure.art3d.is-open .art3d-drag { display: none; }

/* Раскрытая панель (Ilya 30.11.2026: «не на весь экран — в специальной панели практически на всю
   видимую область, которая явно закрывается крестиком сверху»). Панелью становится сама рамка окна:
   iframe нельзя переносить по странице, перенос перезагрузил бы сцену. Затемнение — ::before фигуры,
   оно в том же слое, что рамка, и щелчок по нему закрывает панель. */
figure.art3d.is-open::before { content: ''; position: fixed; inset: 0; z-index: 2147483000;
  background: rgba(16, 26, 31, .74); cursor: pointer; }
figure.art3d.is-open .art3d-box { position: fixed; z-index: 2147483001; inset: 3vh 3vw; aspect-ratio: auto;
  border-radius: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, .45); cursor: auto; }
figure.art3d.is-open .art3d-bar { display: flex; align-items: center; gap: 12px; position: absolute; left: 0; right: 0; top: 0;
  height: 52px; padding: 0 8px 0 18px; box-sizing: border-box; background: #f4efe3; color: #1f2a30;
  border-bottom: 3px solid #f6a83a; border-radius: 8px 8px 0 0; z-index: 3; }
/* Шапка панели СВЕТЛАЯ, тоном бумаги акварели (Ilya 01.12.2026: тёмная «ложится на шапку сайта того же цвета
   и плохо смотрится — сливается»): панель встаёт поверх тёмной шапки сайта и должна от неё отличаться. */
.art3d-bar-title { flex: 1; min-width: 0; font: 500 17px/1.25 Georgia, 'Times New Roman', serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art3d-brand { flex: none; font: 13px/1 'PT Sans', Arial, sans-serif; color: #5d6870; letter-spacing: .02em;
  text-decoration: none; padding: 6px 4px; border-radius: 3px; }
.art3d-brand:hover, .art3d-brand:focus-visible { color: #207d96; text-decoration: underline; outline: none; }
.art3d-close { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 4px;
  background: transparent; color: #1f2a30; font: 15px/1 'PT Sans', Arial, sans-serif; cursor: pointer; }
.art3d-close:hover, .art3d-close:focus-visible { background: rgba(16, 26, 31, .08); color: #207d96; outline: none; }
.art3d-close svg { width: 22px; height: 22px; }
figure.art3d.is-open .art3d-live, figure.art3d.is-open .art3d-still { top: 55px; height: calc(100% - 55px); }
figure.art3d.is-open .art3d-still { position: absolute; left: 0; width: 100%; object-fit: contain; }
figure.art3d.is-open .art3d-full { display: none; }
html.art3d-lock, html.art3d-lock body { overflow: hidden; }
@media (max-width: 640px) {
  figure.art3d.is-open .art3d-box { inset: 8px; }
  .art3d-close span { display: none; }
  .art3d-brand { font-size: 12px; }
  .art3d-bar-title { font-size: 15px; }
}
