/* Літературний музей у 3D · діалог туру на N точок (23.11.2026). Основа — museum-360-20261117.css; перемикач зал замінено навігатором. */
@font-face{font-family:MuseumLora;src:url('/assets/cinema-web-2026/lora-latin-cyrillic.woff2') format('woff2');font-weight:400 700;font-display:swap}
@font-face{font-family:MuseumManrope;src:url('/assets/cinema-web-2026/manrope-latin-cyrillic.woff2') format('woff2');font-weight:400 800;font-display:swap}

.museum-page{--ink:#18384a;--green:#334d43;--paper:#faf5eb;--muted:#54586e;--line:#18384a2e;font-family:MuseumManrope,'Avenir Next',sans-serif;color:var(--ink);background:var(--paper)}
.museum-page h1,.museum-page h2{font-family:MuseumLora,Georgia,serif;font-weight:400;letter-spacing:-.03em;text-wrap:balance}
.museum-page .brand-logo{width:165px;height:auto}
.museum-page ::selection{background:#f6dadd;color:var(--ink)}
.museum-page .skip-to-content{position:absolute;left:16px;top:-80px;z-index:20;background:var(--paper);padding:10px 14px;border:1px solid var(--ink)}
.museum-page .skip-to-content:focus{top:12px}
.museum-page button{font:inherit;color:inherit}
.museum-page :focus-visible{outline:3px solid #7c3e68;outline-offset:5px}

.museum-hero{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:56px;align-items:center;padding:56px 0 60px}
.museum-eyebrow{font-size:13px;letter-spacing:.13em;text-transform:uppercase;color:var(--green);margin-bottom:22px}
.museum-hero h1{font-size:clamp(44px,5.6vw,78px);line-height:1.03}
.museum-hero h1 em{font-style:italic;color:var(--green)}
.museum-lead{font-size:19px;line-height:1.7;max-width:38ch;margin-top:24px}

.museum-enter{display:inline-flex;align-items:center;gap:18px;margin-top:32px;padding:0 24px 0 0;border:0;background:none;cursor:pointer;font-size:16px;font-weight:600;min-height:52px;text-align:left}
.museum-enter-icon{display:grid;place-items:center;width:52px;height:52px;flex:none;background:var(--ink);color:var(--paper);transition:background 160ms ease-out,transform 160ms ease-out}
.museum-enter-icon svg,.museum-preview-badge svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.museum-enter-icon svg{width:22px;height:22px}
.museum-enter:hover .museum-enter-icon{background:var(--green)}
.museum-enter:active .museum-enter-icon{transform:scale(.96)}

.museum-preview{position:relative;display:block;width:100%;padding:0;border:0;background:#e9e1d0;cursor:pointer;aspect-ratio:16/9;overflow:hidden}
.museum-preview img{width:100%;height:100%;object-fit:cover;transition:transform 600ms cubic-bezier(.23,1,.32,1)}
.museum-preview:hover img{transform:scale(1.03)}
.museum-preview-badge{position:absolute;top:16px;left:16px;display:inline-flex;align-items:center;gap:8px;padding:6px 12px 6px 8px;background:#faf5ebe6;color:var(--ink);font-size:14px;font-weight:600;letter-spacing:.02em}
.museum-preview-badge svg{width:26px;height:26px}
.museum-preview-cta{position:absolute;left:16px;right:16px;bottom:16px;display:flex;justify-content:center;padding:14px 18px;background:var(--ink);color:var(--paper);font-size:16px;font-weight:600;transition:background 160ms ease-out}
.museum-preview:hover .museum-preview-cta{background:var(--green)}

.museum-rooms{border-top:1px solid var(--line);padding:48px 0 64px}
.museum-rooms h2{font-size:38px;line-height:1.1;margin-bottom:28px}
.museum-room-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px}
.museum-room{display:grid;gap:6px;width:100%;padding:0;border:0;background:none;text-align:left;cursor:pointer}
.museum-room img{aspect-ratio:16/9;object-fit:cover;background:#e9e1d0;margin-bottom:12px}
.museum-room-name{font:400 24px/1.2 MuseumLora,Georgia,serif;letter-spacing:-.02em}
.museum-room-note{font-size:15px;color:var(--muted)}
.museum-room:hover .museum-room-name{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.museum-hint{font-size:15px;line-height:1.7;color:var(--muted);max-width:62ch;margin-top:32px}

html.tour-open,html.tour-open body{overflow:hidden;overscroll-behavior:none}

/* Full-screen tour dialog */
.tour-dialog{position:fixed;inset:0;width:100vw;height:100vh;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#111;color:#faf5eb;overflow:hidden}
.tour-dialog::backdrop{background:#111}
.tour-dialog:not([open]){display:none}
.tour-shell{position:relative;width:100%;height:100%}
.tour-viewer{position:absolute;inset:0;background:#111}
.tour-viewer .pnlm-container{background:#111}
.tour-top,.tour-bottom{position:absolute;left:0;right:0;z-index:5;display:flex;align-items:center;pointer-events:none;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.tour-top{top:0;justify-content:space-between;gap:16px;padding-top:max(14px,env(safe-area-inset-top));padding-bottom:28px;background:linear-gradient(#000a,#0000)}
.tour-bottom{bottom:0;justify-content:center;padding-bottom:max(16px,env(safe-area-inset-bottom));padding-top:28px;background:linear-gradient(#0000,#0009)}
.tour-top>*,.tour-bottom>*{pointer-events:auto}
.tour-title{font:400 19px/1.3 MuseumLora,Georgia,serif;letter-spacing:-.01em;color:#faf5eb;margin:0;text-shadow:0 1px 3px #0008;min-width:0}
.tour-close{flex:none;display:grid;place-items:center;width:48px;height:48px;border:1px solid #faf5eb66;background:#18384acc;color:#faf5eb;cursor:pointer;transition:background 160ms ease-out,transform 160ms ease-out}
.tour-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.tour-close:hover{background:#334d43}
.tour-close:active{transform:scale(.96)}
.tour-dialog :focus-visible{outline:3px solid #f6dadd;outline-offset:3px}
.tour-status{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;margin:0;padding:12px 18px;background:#18384ae6;color:#faf5eb;font:15px/1.5 MuseumManrope,sans-serif;text-align:center;max-width:min(420px,calc(100% - 32px))}
.tour-status[hidden]{display:none}

/* Pannellum controls: keep them clear of the top bar and the notch */
.tour-viewer .pnlm-controls-container{top:calc(max(14px,env(safe-area-inset-top)) + 58px);left:max(12px,env(safe-area-inset-left))}
.tour-viewer .pnlm-load-box{background:#18384ae6;border-radius:0;font-family:MuseumManrope,sans-serif}
.tour-viewer .pnlm-lbar{border-color:#faf5eb}
.tour-viewer .pnlm-lbar-fill{background:#faf5eb}
.tour-viewer .pnlm-error-msg{font-family:MuseumManrope,sans-serif}

/* Doorway hotspot */
.tour-viewer .tour-hotspot-host{width:56px;height:56px;cursor:pointer}
.tour-hotspot-ring{display:grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#faf5ebe6;color:#18384a;box-shadow:0 0 0 6px #faf5eb40,0 6px 18px #0006;transition:transform 180ms cubic-bezier(.23,1,.32,1),background 160ms ease-out}
.tour-hotspot-ring svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tour-hotspot-label{position:absolute;left:50%;top:calc(100% + 12px);transform:translateX(-50%);white-space:nowrap;padding:6px 10px;background:#18384ae6;color:#faf5eb;font:600 13px/1.3 MuseumManrope,sans-serif;pointer-events:none}
.tour-hotspot-host:hover .tour-hotspot-ring,.tour-hotspot-host:focus-visible .tour-hotspot-ring{transform:scale(1.08);background:#fff}
.tour-hotspot-host:focus-visible{outline:none}
.tour-hotspot-host:focus-visible .tour-hotspot-ring{box-shadow:0 0 0 4px #f6dadd,0 6px 18px #0006}
@media(prefers-reduced-motion:no-preference){.tour-hotspot-ring{animation:tour-pulse 2.4s ease-in-out infinite}}
@keyframes tour-pulse{0%,100%{box-shadow:0 0 0 6px #faf5eb40,0 6px 18px #0006}50%{box-shadow:0 0 0 12px #faf5eb1f,0 6px 18px #0006}}

@media(max-width:900px){
  .museum-room-list{grid-template-columns:1fr 1fr}
  .museum-hero{grid-template-columns:1fr;gap:32px;padding:36px 0 44px}
  .museum-preview{order:-1}
  .museum-lead{font-size:17px}
}
@media(max-width:760px){
  .museum-room-list{grid-template-columns:1fr;gap:28px}
  .museum-rooms h2{font-size:32px}
  .museum-preview-cta{display:none}
  .tour-title{font-size:16px}
}
@media(max-width:520px){.tour-title-prefix{display:none}}
@media(prefers-reduced-motion:reduce){
  .museum-preview img,.museum-enter-icon,.tour-close,.tour-hotspot-ring{transition:none}
  .museum-preview:hover img{transform:none}
}

/* ——— Route navigator: prev · hall list · next (23.11.2026) ——— */
.tour-nav{position:relative;display:flex;align-items:stretch;gap:4px;padding:4px;background:#18384ad9;border:1px solid #faf5eb40;width:min(520px,100%);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.tour-step{flex:none;display:grid;place-items:center;width:48px;min-height:48px;border:0;background:none;color:#faf5eb;cursor:pointer;transition:background 160ms ease-out,opacity 160ms ease-out}
.tour-step svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tour-step:hover:not(:disabled){background:#faf5eb1f}
.tour-step:active:not(:disabled){transform:scale(.96)}
.tour-step:disabled{opacity:.3;cursor:default}
.tour-menu-btn{flex:1;min-width:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 14px;border:0;border-left:1px solid #faf5eb26;border-right:1px solid #faf5eb26;background:none;color:#faf5eb;cursor:pointer;text-align:left;transition:background 160ms ease-out}
.tour-menu-btn:hover,.tour-menu-btn[aria-expanded="true"]{background:#faf5eb14}
.tour-menu-text{display:flex;flex-direction:column;min-width:0}
.tour-menu-kicker{font:700 10px/1.3 MuseumManrope,sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#faf5eb99}
.tour-menu-hall{font:400 16px/1.3 MuseumLora,Georgia,serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tour-menu-meta{display:flex;align-items:center;gap:8px;flex:none;font:600 12px/1 MuseumManrope,sans-serif;color:#faf5ebb3;font-variant-numeric:tabular-nums}
.tour-menu-meta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform 200ms cubic-bezier(.23,1,.32,1)}
.tour-menu-btn[aria-expanded="true"] .tour-menu-meta svg{transform:rotate(180deg)}

.tour-halls{position:absolute;left:-1px;right:-1px;bottom:calc(100% + 8px);max-height:min(62vh,460px);overflow-y:auto;overscroll-behavior:contain;padding:8px;background:#122c3af2;border:1px solid #faf5eb40;box-shadow:0 18px 40px #0008;transform-origin:50% 100%}
.tour-halls[hidden]{display:none}
@media(prefers-reduced-motion:no-preference){.tour-halls:not([hidden]){animation:tour-pop 180ms cubic-bezier(.23,1,.32,1)}}
@keyframes tour-pop{from{opacity:0;transform:translateY(6px) scale(.98)}to{opacity:1;transform:none}}
.tour-hall{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 0;border-top:1px solid #faf5eb1a}
.tour-hall:first-child{border-top:0}
.tour-hall-name{flex:1 1 100%;display:flex;align-items:baseline;gap:12px;min-height:44px;padding:8px 10px;border:0;background:none;color:#faf5ebd9;cursor:pointer;text-align:left;font:400 17px/1.25 MuseumLora,Georgia,serif;transition:background 160ms ease-out,color 160ms ease-out}
.tour-hall-name:hover{background:#faf5eb14;color:#faf5eb}
.tour-hall-name.is-here{color:#faf5eb}
.tour-hall-num{flex:none;width:2.2em;font:italic 400 15px/1 MuseumLora,Georgia,serif;color:#e7a08f}
.tour-hall-name.is-here .tour-hall-num::after{content:'';display:inline-block;width:6px;height:6px;margin-left:6px;border-radius:50%;background:#e7a08f;vertical-align:middle}
.tour-hall-points{display:flex;flex-wrap:wrap;gap:4px;padding:0 6px 4px 52px}
.tour-point{display:grid;place-items:center;min-width:40px;height:40px;padding:0 6px;border:1px solid #faf5eb33;background:none;color:#faf5ebcc;cursor:pointer;font:600 14px/1 MuseumManrope,sans-serif;font-variant-numeric:tabular-nums;transition:background 160ms ease-out,color 160ms ease-out,border-color 160ms ease-out}
.tour-point:hover{border-color:#faf5eb99;color:#faf5eb}
.tour-point[aria-current="true"]{background:#faf5eb;border-color:#faf5eb;color:#18384a}
.tour-title [data-tour-point]{color:#faf5ebb3}

/* Door hotspots (to another hall) carry a visible label; in-hall points are plain rings. */
.tour-viewer .tour-hotspot-host:not(.tour-hotspot-door){width:44px;height:44px}
.tour-viewer .tour-hotspot-host:not(.tour-hotspot-door) .tour-hotspot-ring{width:44px;height:44px;background:#faf5ebcc}
.tour-viewer .tour-hotspot-host:not(.tour-hotspot-door) .tour-hotspot-ring svg{width:20px;height:20px}
.tour-viewer .tour-hotspot-door .tour-hotspot-ring{background:#f6dadd;color:#18384a}

@media(max-width:760px){
  .tour-step{width:44px;min-height:44px}
  .tour-menu-btn{padding:4px 10px;gap:8px}
  .tour-menu-hall{font-size:15px}
  .tour-hall-name{font-size:16px}
  .tour-hall-points{padding-left:46px}
}
@media(max-width:380px){.tour-menu-kicker{display:none}}
@media(prefers-reduced-motion:reduce){.tour-step,.tour-menu-btn,.tour-point,.tour-hall-name,.tour-menu-meta svg{transition:none}}
