/* Фирменная палитра; фон страницы совпадает со светлой шапкой. */
.museum-page { --museum-ink:#022230; --museum-muted:#40596b; --museum-line:#cbd4dd; --museum-panel:#e8eff3; background:#f7f7f7; color:var(--museum-ink); padding:32px 0 64px; }
.museum-intro { max-width:760px; color:var(--museum-muted); line-height:1.65; margin:-10px 0 30px; }
.museum-page h1 { font:700 34px/1.25 var(--font-main); margin:0; text-transform:none; }
.museum-page .company-section-back { color:var(--museum-muted); }
.museum-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.museum-tile { display:block; color:var(--museum-ink); background:white; border:1px solid var(--museum-line); border-radius:8px; overflow:hidden; text-decoration:none; transition:box-shadow .2s; }
.museum-preview { display:flex; align-items:center; justify-content:center; aspect-ratio:1.45; background:var(--museum-panel); padding:12px; }
.museum-preview img { width:100%; height:100%; object-fit:contain; }
.museum-caption { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; font-weight:600; }
.museum-tile:hover { color:var(--museum-ink); box-shadow:0 5px 20px #02223018; text-decoration:none; }
.museum-tile:focus-visible { outline:3px solid var(--museum-muted); outline-offset:3px; }
/* Тёмная подложка отделяет документ от интерфейса при чтении. */
.museum-viewer { --viewer-bg:#022230; --viewer-text:#f5f5f5; --viewer-border:#40596b; box-sizing:border-box; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:var(--viewer-bg); color:var(--viewer-text); overflow:hidden; }
.museum-viewer::backdrop { background:#022230ee; }
.museum-viewer[open] { display:grid; grid-template-rows:64px minmax(0,1fr); }
.museum-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 20px; border-bottom:1px solid var(--viewer-border); }
.museum-tools { display:flex; gap:8px; }
.museum-viewer button { border:1px solid var(--viewer-border); border-radius:6px; background:var(--viewer-bg); color:var(--viewer-text); min-width:44px; height:42px; padding:0 12px; cursor:pointer; font:600 16px var(--font-main); }
.museum-viewer button:hover { background:var(--viewer-border); }
.museum-viewer button:focus-visible { outline:2px solid var(--viewer-text); outline-offset:2px; }
.museum-stage { overflow:auto; padding:12px 60px; position:relative; touch-action:pan-x pan-y; }
.museum-full { display:block; margin:auto; max-width:none!important; max-height:none!important; object-fit:contain; }
.museum-stage.is-zoomed { cursor:grab; }
.museum-stage.is-dragging { cursor:grabbing; user-select:none; }
.museum-prev,.museum-next { position:absolute; top:50%; z-index:2; }
.museum-prev { left:10px; } .museum-next { right:10px; }
@media(max-width:900px) { .museum-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }
@media(max-width:600px) {
 .museum-page { padding:24px 0 40px; }
 .museum-page h1 { font-size:29px; }
 .museum-grid { gap:12px; }
 .museum-preview { padding:6px; } .museum-caption { padding:12px; font-size:14px; }
 .museum-toolbar { padding:8px; gap:4px; } .museum-status { font-size:12px; }
 .museum-tools { gap:4px; } .museum-viewer button { min-width:38px; padding:0 8px; }
 .museum-stage { padding:8px 4px 44px; }
 .museum-prev,.museum-next { top:auto; bottom:3px; height:32px!important; }
}
@media(prefers-reduced-motion:reduce) { .museum-tile { transition:none; } }
