/* ============ Выставка «Травмы развития» — v2 ============ */
@font-face { font-family: "Condens"; src: url("../fonts/Condens-Bold-fixed.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unica"; src: url("../fonts/Unica-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Unica"; src: url("../fonts/Unica-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  /* палитра выставки: белый зал, винный бордовый (бархат ограждения), почти чёрный */
  --gallery: #F4EEE9;     /* цвет стены в кадре — фон страницы сливается с видео */
  --white: #FBF9F7;
  --wine: #6E1D2B;
  --wine-deep: #4A111B;
  --ink: #1C1617;
  --muted: #7A6E6C;
  --line: rgba(28, 22, 23, .18);

  --pad: clamp(18px, 2.8vw, 44px);
  --fs-title: clamp(84px, min(15.5vw, 27vh), 300px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--gallery); color: var(--ink); font-family: "Unica", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 400; letter-spacing: .02em; }

/* ---------- свет в зале ---------- */
.lights { position: fixed; inset: 0; z-index: 80; background: #191314; pointer-events: none; }
.beam { position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0; mix-blend-mode: soft-light;
  background: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 50%), rgba(255, 244, 228, .9), rgba(255, 244, 228, 0) 70%); }

/* ---------- шапка: как навигация музея ---------- */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px var(--pad); font-size: 13px; text-transform: uppercase; }
.bar b { font-weight: 500; color: var(--wine); }
.bar-room { justify-self: center; }
.bar > a, .bar > span { transition: color .5s var(--ease); }
.bar { transition: background-color .5s var(--ease); }   /* только цвет: переход всего background мог застрять на прозрачном при быстрой смене залов */
/* подложка шапки: после первого экрана текст страницы проезжает под ней, а не сквозь */
.bar.is-solid { background: rgba(244, 238, 233, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bar.bar--dark { background: rgba(21, 16, 17, .86); }
/* в тёмном зале свой фонарик — общий луч страницы гасим (на чёрном он схлопывается в точку) */
body.in-dark .beam { opacity: 0 !important; }
.bar--dark .bar-brand, .bar--dark .bar-room { color: rgba(251, 249, 247, .8); }
.bar--dark b { color: #E8C9CE; }
/* кнопка-билет: перфорация по краям */
.ticket { display: inline-flex; align-items: center; gap: 18px; padding: 12px 18px 11px 20px; background: var(--wine); color: var(--white);
  -webkit-mask: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 6px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 6px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: background .5s var(--ease); }
.ticket:hover { background: var(--wine-deep); }
.ticket-arr { border-left: 1px dashed rgba(251, 249, 247, .5); padding-left: 14px; }

/* ---------- первый экран ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; background: var(--gallery); }
.hero-film { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.title { position: absolute; z-index: 5; left: calc(var(--pad) - .03em); top: 11vh; font-weight: 700; }
.t-line { display: block; overflow: hidden; font-family: "Condens"; text-transform: uppercase; font-size: var(--fs-title); line-height: .84; color: var(--wine); padding-top: .02em; }
.t-line > span { display: block; }
.t-sub { display: block; margin-top: .55em; margin-left: .06em; font-family: "Unica"; font-weight: 500; text-transform: none; font-size: clamp(26px, min(2.9vw, 5vh), 48px); line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }

/* уголки витрины вокруг стула */
.frame { position: absolute; z-index: 3; left: 66%; right: 6%; top: 19%; bottom: 9%; pointer-events: none; }
.frame i { position: absolute; width: 22px; height: 22px; border: 0 solid var(--wine); }
.frame i:nth-child(1) { left: 0; top: 0; border-left-width: 1.5px; border-top-width: 1.5px; }
.frame i:nth-child(2) { right: 0; top: 0; border-right-width: 1.5px; border-top-width: 1.5px; }
.frame i:nth-child(3) { left: 0; bottom: 0; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.frame i:nth-child(4) { right: 0; bottom: 0; border-right-width: 1.5px; border-bottom-width: 1.5px; }

/* музейная этикетка */
.label { position: absolute; z-index: 6; left: 37%; top: 19%; width: min(250px, 16.5vw); padding: 16px 18px 14px; background: var(--white);
  font-size: 11.5px; line-height: 1.45; color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 18px 40px -26px rgba(28, 22, 23, .45); display: grid; gap: 6px; }
.label-no { text-transform: uppercase; color: var(--wine); font-weight: 500; }
.label-name { font-family: "Unica"; font-weight: 500; font-size: 17px; letter-spacing: -.01em; line-height: 1.15; margin-bottom: 4px; }
.label-row { display: grid; grid-template-columns: 70px 1fr; gap: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.label-row > span { min-width: 0; overflow-wrap: break-word; }
/* два состояния строки лежат в одной ячейке: место под длинный вариант зарезервировано, табличка не прыгает */
.swap { display: grid; }
.swap > span { grid-area: 1 / 1; }
.swap .sb { opacity: 0; transform: translateY(6px); }
.label-row em { font-style: normal; color: var(--muted); text-transform: uppercase; font-size: 10px; padding-top: 1px; }

/* предметы на полу: вразброс, ближние крупнее и ниже, дальние мельче и выше */
.floor { position: absolute; z-index: 4; left: 29%; right: 39%; bottom: 3%; height: 26%; pointer-events: none; }
.item { pointer-events: auto; cursor: pointer; }
.item { position: absolute; display: grid; justify-items: center; gap: 6px; }
.item img { width: 100%; height: auto; filter: drop-shadow(0 10px 12px rgba(28, 22, 23, .14)); }
.item figcaption { font-size: 10px; text-transform: uppercase; }
.item .tag { display: block; color: var(--wine); background: var(--white); padding: 2px 6px 1px; white-space: nowrap; transition: background .4s var(--ease), color .4s var(--ease); }
/* подсказка экспоната: всплывает по наведению / тапу */
.item .tip { position: absolute; left: 50%; bottom: calc(100% + 10px); width: 200px; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--white); padding: 10px 12px; font-size: 11px; line-height: 1.4; text-transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.item .tip b { display: block; font-family: "Unica"; font-weight: 500; font-size: 13px; margin-bottom: 3px; color: #E8C9CE; }
.item img { transition: transform .6s var(--ease), filter .6s var(--ease); }
.item:hover img, .item.is-open img { transform: translateY(-8px) rotate(-3deg); filter: drop-shadow(0 18px 16px rgba(28, 22, 23, .2)); }
.item:hover .tag, .item.is-open .tag { background: var(--wine); color: var(--white); }
.item:hover .tip, .item.is-open .tip { opacity: 1; transform: translate(-50%, 0); }
/* этикетка тоже живая: по наведению приподнимается */
.label { transition: transform .5s var(--ease), box-shadow .5s var(--ease); cursor: default; }
.label:hover { transform: translateY(-4px); }
.i-shoe   { left: 2%;  bottom: 2%;  width: 27%; }
.i-block  { left: 31%; bottom: 38%; width: 15%; }
.i-rattle { left: 50%; bottom: 6%;  width: 25%; }
.i-cup    { left: 80%; bottom: 44%; width: 15%; }

/* столбик ограждения перед экспонатом */
.post { position: absolute; z-index: 4; left: 59%; bottom: 5%; height: 38%; width: auto; pointer-events: none; filter: drop-shadow(0 10px 12px rgba(28, 22, 23, .15)); }

.hero-foot { position: absolute; z-index: 6; left: var(--pad); bottom: 30px; display: grid; gap: 18px; max-width: 28%; }
.lead { font-size: 15px; line-height: 1.45; color: var(--muted); }
.cta { display: inline-grid; grid-template-columns: auto auto; align-items: stretch; justify-self: start; background: var(--wine); color: var(--white); font-weight: 500;
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 7px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: background .5s var(--ease); }
.cta:hover { background: var(--wine-deep); }
.cta-main { padding: 20px 22px 19px 26px; font-size: 17px; }
.cta-stub { padding: 21px 24px 19px 18px; border-left: 1.5px dashed rgba(251, 249, 247, .45); font-size: 12px; display: grid; place-items: center; }

.scroll-cue { position: absolute; z-index: 6; right: var(--pad); bottom: 30px; font-size: 11px; text-transform: uppercase; color: var(--muted); }

/* ---------- бархатный канат: бегущая строка ---------- */
.rope { position: relative; z-index: 7; overflow: hidden; padding: 16px 0 15px; color: var(--white);
  background: linear-gradient(180deg, #7d2533 0%, var(--wine) 45%, var(--wine-deep) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
.rope-track { display: flex; align-items: center; gap: 28px; width: max-content; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; will-change: transform; }
.rope-track i { width: 7px; height: 7px; border-radius: 50%; background: #C9A15A; flex: none; }   /* латунные заклёпки */

.next { min-height: 60vh; display: grid; place-items: center; font-size: 14px; color: var(--muted); text-transform: uppercase; }

/* ---------- путеводитель: кнопка и меню-шторка ---------- */
.bar-end { justify-self: end; display: flex; align-items: center; gap: 10px; }
.burger { position: relative; width: 44px; height: 42px; display: grid; place-content: center; gap: 6px; background: transparent; border: 1px solid currentColor; color: var(--ink); cursor: pointer; transition: color .5s var(--ease), background .3s var(--ease); }
.burger i { display: block; width: 18px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease); }
.burger:hover { background: rgba(110, 29, 43, .08); }
.burger:focus-visible, .guide a:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.75px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.bar--dark .burger, .bar--wine .burger { color: var(--white); }
/* пока меню открыто, шапка светлая — поверх шторки */
.bar.is-menu { background: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
.bar.is-menu .bar-brand, .bar.is-menu .bar-room, .bar.is-menu .burger { color: var(--ink); }
.bar.is-menu b { color: var(--wine); }
.bar.is-menu .ticket { background: var(--wine); color: var(--white); }
.bar.is-menu .ticket-arr { border-left-color: rgba(251, 249, 247, .5); }

.guide { position: fixed; inset: 0; z-index: 58; background: var(--gallery); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.guide[hidden] { display: none; }
.guide:focus { outline: none; }
.g-inner { min-height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr auto; column-gap: clamp(16px, 1.9vw, 32px);
  padding: 110px var(--pad) 28px; }
.g-label { grid-column: 1 / -1; font-size: 11px; text-transform: uppercase; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.g-list { grid-column: 1 / -1; list-style: none; align-self: center; padding: 28px 0; }
.g-list li { border-bottom: 1px solid var(--line); }
.g-list a { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: baseline; column-gap: 12px; padding: 12px 0 10px; transition: color .35s var(--ease); }
.g-n { font-size: 12px; color: var(--wine); }
.g-t { font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(44px, min(7vw, 9vh), 108px); line-height: .9; transition: transform .45s var(--ease); }
.g-d { font-size: 11px; text-transform: uppercase; color: var(--muted); text-align: right; }
.g-list a:hover, .g-list a:focus-visible, .g-list li.is-on a { color: var(--wine); }
.g-list a:hover .g-t, .g-list a:focus-visible .g-t { transform: translateX(14px); }
.g-list li.is-here .g-d::before { content: "вы здесь · "; color: var(--wine); }
.g-list li.is-here .g-t { color: var(--wine); }
.g-float { position: fixed; left: 0; top: 0; z-index: 2; width: 220px; height: 240px; pointer-events: none; }
.g-float > * { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; transform: scale(.5) translateY(30px);
  filter: drop-shadow(0 18px 22px rgba(28, 22, 23, .22)); transition: opacity .3s var(--ease), transform .45s cubic-bezier(.2, .9, .3, 1.15); }
.g-float > .is-tall { height: 340px; }
.g-float > .is-on { opacity: 1; transform: none; }
.g-tk { display: grid; place-content: center; gap: 10px; height: auto !important; bottom: 40px !important; padding: 22px 18px; text-align: center; background: var(--wine); color: var(--white); font-size: 10px; text-transform: uppercase;
  -webkit-mask: radial-gradient(circle 8px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 8px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.g-tk b { font-family: "Condens"; font-weight: 700; font-size: 40px; line-height: 1; }
.g-list { position: relative; z-index: 1; }
@media not (hover: hover) { .g-float { display: none; } }
.g-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; text-transform: uppercase; color: var(--muted); }
.g-foot a:hover { color: var(--wine); }
.g-ticket { color: var(--wine); }
body.menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .g-inner { padding-top: 84px; }
  .g-list { grid-column: 1 / -1; align-self: start; }
  .g-list a { grid-template-columns: 34px 1fr; padding: 14px 0 12px; }
  .g-d { grid-column: 2; text-align: left; margin-top: 6px; }
  .g-t { font-size: clamp(40px, 12vw, 72px); }
  .g-foot { flex-direction: column; }
}
@media (max-width: 400px) {
  .bar-end { gap: 8px; }
  .ticket { gap: 12px; padding: 12px 14px 11px 16px; }
  .ticket-arr { padding-left: 10px; }
  .burger { width: 42px; }
}

/* ---------- телефон: своя вертикальная сцена и своя раскладка, без наложений ---------- */
@media (max-width: 860px) {
  :root { --fs-title: min(25vw, 15.5vh); }
  .bar { grid-template-columns: 1fr auto; padding-top: 14px; }
  .bar-room { display: none; }
  .bar-brand b { display: none; }
  .bar-brand span { display: block; max-width: 11em; font-size: 11px; line-height: 1.25; }   /* «Экспозиция внутреннего мира» — в две строки, чтобы влезли билет и меню */
  .title { top: calc(58px + 2vh); }
  .t-sub { font-size: min(6.4vw, 3.9vh); margin-top: .5em; }
  /* стул в вертикальном кадре — справа внизу */
  .frame { left: 58%; right: 5%; top: 50%; bottom: 25%; }
  .frame i { width: 14px; height: 14px; }
  /* этикетка становится строкой над кнопкой: номер экспоната + тень */
  .label { left: var(--pad); right: var(--pad); top: auto; bottom: calc(22px + 64px + 10px); width: auto; padding: 9px 12px 8px;
    grid-template-columns: auto 1fr; align-items: baseline; column-gap: 12px; row-gap: 0; font-size: 11px; }
  .label-name, .label .label-row:not(.row-shadow) { display: none; }
  .label-row { border-top: 0; padding-top: 0; grid-template-columns: auto 1fr; gap: 8px; }
  .label-row em { padding-top: 0; }
  /* предметы — слева от тени, на полу */
  .floor { left: var(--pad); right: 58%; bottom: calc(22px + 64px + 10px + 62px); height: 13%; }
  .i-shoe   { left: 0%;  bottom: 0;   width: 44%; }
  .i-block  { left: 48%; bottom: 46%; width: 26%; }
  .i-rattle { left: 46%; bottom: 0;   width: 40%; }
  .i-cup    { left: 8%;  bottom: 58%; width: 26%; }
  .item figcaption { display: none; }
  .post { display: none; }
  .hero-foot { left: var(--pad); right: var(--pad); bottom: 22px; max-width: none; }
  .cta { justify-self: stretch; grid-template-columns: 1fr auto; }
  .cta-main { padding: 19px 18px 18px 22px; font-size: 16px; }
  .scroll-cue { display: none; }
  .beam { display: none; }
}
/* на телефоне игрушки слишком мелкие и сливаются с полом — оставляем их планшету и десктопу */

/* ============ ЗАЛ 02: тёмная комната, курсор-фонарик ============ */
.hall2 { position: relative; background: #151011; color: var(--white); overflow: hidden; }
.h2-head { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 1.9vw, 32px);
  padding: clamp(110px, 12vw, 180px) var(--pad) clamp(40px, 5vw, 80px); min-height: 70vh; align-content: start; }
.room { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; color: #C9A15A; margin-bottom: 28px; }
.h2-title { grid-column: 1 / 8; font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(72px, min(11vw, 20vh), 210px); line-height: .84; color: var(--white); }
.h2-lead { grid-column: 8 / 13; align-self: end; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; }
.h2-lead span { color: rgba(251, 249, 247, .55); }
.h2-hint { grid-column: 1 / -1; margin-top: 40px; font-size: 11px; text-transform: uppercase; color: rgba(251, 249, 247, .45); }
.only-touch { display: none; }
@media (pointer: coarse), (max-width: 860px) { .only-mouse { display: none; } .only-touch { display: inline; } }

/* предметы, выпавшие из первого зала: свой «пол» и гарантированный зазор до экспонатов */
.h2-head { padding-bottom: clamp(190px, 16vw, 240px); }
.landing { position: absolute; right: var(--pad); bottom: 56px; width: min(520px, 40vw); height: 140px; }
.landing::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -10px; height: 22px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 244, 228, .10), rgba(255, 244, 228, 0) 70%); }   /* пятно света на полу под игрушками */
.ltoy { position: absolute; bottom: 0; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ltoy img { width: 100%; height: auto; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .5)); transition: transform .6s var(--ease); }
.ltoy:hover img, .ltoy.is-open img, .ltoy:focus-visible img { transform: translateY(-10px) rotate(-4deg); }
.ltoy:focus-visible { outline: 1.5px solid #C9A15A; outline-offset: 6px; }
.l-shoe { left: 0; width: 26%; } .l-block { left: 30%; width: 15%; bottom: 8px; } .l-rattle { left: 50%; width: 26%; } .l-cup { left: 80%; width: 17%; }
/* подпись игрушки: всплывает над ней; у крайних прижата к своему краю, чтобы не вылезать за экран */
.ltoy .tip { position: absolute; left: 50%; bottom: calc(100% + 12px); width: 210px; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  background: var(--white); color: var(--ink); padding: 10px 12px; font-size: 11px; line-height: 1.4; text-align: left; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ltoy .tip b { display: block; font-family: "Unica"; font-weight: 500; font-size: 13px; margin-bottom: 3px; color: var(--wine); }
.l-shoe .tip { left: 0; transform: translate(0, 6px); }
.l-cup .tip { left: auto; right: 0; transform: translate(0, 6px); }
.ltoy:hover .tip, .ltoy.is-open .tip, .ltoy:focus-visible .tip { opacity: 1; transform: translate(-50%, 0); }
.l-shoe:hover .tip, .l-shoe.is-open .tip, .l-shoe:focus-visible .tip, .l-cup:hover .tip, .l-cup.is-open .tip, .l-cup:focus-visible .tip { transform: translate(0, 0); }

/* экспонаты: горизонтальная галерея */
.ex-track-wrap { overflow: hidden; }
.ex-track-wrap { position: relative; }
/* поля по краям = половина экрана минус половина карточки: каждый экспонат, включая первый и последний, проходит через центр */
.ex-track { --exw: clamp(280px, min(26vw, (100vh - 330px) * .8), 420px); display: flex; gap: clamp(28px, 4vw, 72px); padding: 0 calc((100vw - var(--exw)) / 2) 28px; width: max-content; will-change: transform; }
.ex { width: var(--exw); flex: none; display: grid; gap: 22px; align-content: start; }   /* текст всех экспонатов начинается с одной линии */
/* счётчик экспонатов с полосой прогресса */
.ex-progress { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 var(--pad) clamp(50px, 6vw, 90px); font-size: 11px; text-transform: uppercase; color: rgba(251, 249, 247, .5); }
.ex-progress > b { color: #C9A15A; font-weight: 500; }
.ex-progress i { display: block; width: 120px; height: 1px; background: rgba(251, 249, 247, .2); }
.ex-progress i b { display: block; height: 100%; width: 20%; background: #C9A15A; transition: width .6s var(--ease); }
.ex-pic { position: relative; aspect-ratio: 4 / 5; overflow: hidden; margin: 0; background: #000; }
.ex-pic img { width: 100%; height: 100%; object-fit: cover; }
/* темнота зала с «дыркой» света: позиция и радиус луча — в CSS-переменных */
.ex-dark { position: absolute; inset: 0; background: #0d0a0b; opacity: .975;
  -webkit-mask: radial-gradient(circle var(--r, -1px) at var(--x, 50%) var(--y, 50%), #0000 0%, #0000 45%, #000 100%);
          mask: radial-gradient(circle var(--r, -1px) at var(--x, 50%) var(--y, 50%), #0000 0%, #0000 45%, #000 100%); }
.ex-no { font-size: 11px; text-transform: uppercase; color: #C9A15A; margin-bottom: 10px; }
.ex-sit { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.38; letter-spacing: -.005em; color: rgba(251, 249, 247, .72); }
.ex-sit b { display: block; margin-bottom: 6px; font-weight: 500; font-size: 1.12em; line-height: 1.25; color: var(--white); }
.ex-tag { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 11px; text-transform: uppercase; color: rgba(251, 249, 247, .55); }
.ex-tag span:first-child { color: #E8C9CE; }

@media (max-width: 860px) {
  .h2-head { grid-template-columns: 1fr; min-height: 0; padding-bottom: 230px; }
  .h2-title, .h2-lead { grid-column: 1 / -1; }
  .h2-lead { margin-top: 24px; }
  .landing { left: var(--pad); right: auto; bottom: 56px; width: min(420px, calc(100% - 2 * var(--pad))); height: 110px; }
  /* на телефоне тоже горизонтальная лента; карточка подобрана так, чтобы картинка + текст целиком влезали в экран */
  .ex-track { --exw: min(78vw, calc((100svh - 410px) * .8)); gap: 20px; padding-bottom: 18px; }
  .ex { gap: 14px; }
  .ex-progress { padding-bottom: 40px; }
  .ex-sit { font-size: 14.5px; line-height: 1.36; }
  .ex-tag { margin-top: 10px; font-size: 10px; }
}


/* ============ ЗАЛ 03: куратор на связи ============ */
.hall3 { position: relative; padding: clamp(110px, 12vw, 180px) var(--pad) clamp(90px, 9vw, 150px); background: var(--gallery); overflow: clip; }
.hall3 .room { color: var(--wine); }
.h3-title { font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(64px, min(9vw, 17vh), 170px); line-height: .84; color: var(--wine); position: relative; z-index: 3; }
/* сцена: Елена, тень девочки, шнур и фрагменты слова — всё в одной композиции */
.h3-stage { position: relative; height: clamp(620px, 92vh, 980px); margin-top: calc(clamp(64px, min(9vw, 17vh), 170px) * -1.1); }
.elena { position: absolute; z-index: 2; right: 24%; bottom: 0; height: 96%; width: auto; filter: drop-shadow(0 30px 30px rgba(28, 22, 23, .18)); }
.girl { position: absolute; z-index: 1; left: 6%; bottom: 4%; height: 44%; margin: 0; }
.girl img { height: 100%; width: auto; opacity: .85; }
.girl figcaption { position: absolute; left: 100%; top: 18%; margin-left: 14px; white-space: nowrap; font-size: 10.5px; text-transform: uppercase; color: var(--muted); }
.cord { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.cord path { fill: none; stroke: #4A111B; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.frag { position: absolute; z-index: 3; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.35; letter-spacing: -.01em; color: var(--ink); }
.frag b { font-weight: 500; color: var(--wine); }
.f1 { left: 32%; top: 22%; width: min(19%, 280px); }
.f2 { right: 0; top: 30%; width: min(21%, 300px); }
.f3 { right: 0; top: 58%; width: min(21%, 300px); color: var(--muted); }
.sign { position: absolute; z-index: 3; right: 0; bottom: 4%; width: min(21%, 300px); font-size: 11px; text-transform: uppercase; line-height: 1.6; color: var(--muted); }
.sign b { display: block; color: var(--ink); font-weight: 500; }
/* паспорт куратора — под сценой, на правых колонках */
.h3-pass { margin-left: auto; width: min(100%, 620px); margin-top: clamp(40px, 5vw, 80px); }
.pass-title { padding-bottom: 12px; font-size: 11px; text-transform: uppercase; color: var(--wine); border-bottom: 2px solid var(--ink); }
.passport div { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0 13px; }
.passport div::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left; transform: scaleX(var(--line-s, 1)); }
.passport dt { font-size: 10.5px; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.passport dd { font-size: 16px; line-height: 1.4; }
.todo { color: #9a6b2f; font-size: .85em; }

@media (max-width: 860px) {
  /* телефон: сверху сцена с фигурами, ниже фрагменты слова по очереди */
  .h3-stage { height: auto; margin-top: 24px; padding-top: 128vw; }
  .elena { right: 2%; top: 0; bottom: auto; height: 124vw; }
  .girl { left: 0; top: 64vw; bottom: auto; height: 54vw; }
  .girl figcaption { left: 0; top: -22px; bottom: auto; margin-left: 0; }
  .frag, .sign { position: static; width: auto; margin-top: 22px; font-size: 18px; }
  .sign { font-size: 11px; }
  .h3-pass { margin-top: 48px; }
  .passport div { grid-template-columns: 1fr; gap: 2px; }
}


/* ============ ЗАЛ 04: план выставки ============ */
.hall4 { position: relative; padding: clamp(110px, 12vw, 180px) var(--pad) clamp(90px, 9vw, 150px); background: var(--white); }
.hall4 .room { color: var(--wine); }
.h4-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 1.9vw, 32px); align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.h4-head .room { grid-column: 1 / -1; margin-bottom: 28px; font-size: 12px; text-transform: uppercase; }
.h4-title { grid-column: 1 / 7; font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(64px, min(9vw, 17vh), 170px); line-height: .84; color: var(--wine); }
.h4-lead { grid-column: 7 / 13; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; }
.h4-lead span { color: var(--muted); }
.h4-each { grid-column: 7 / 13; margin-top: 18px; font-size: 13px; text-transform: uppercase; line-height: 1.6; color: var(--muted); }

.h4-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 1.9vw, 32px); align-items: start; }
.plan-wrap { grid-column: 1 / 7; position: sticky; top: 100px; }
.plan { width: 100%; height: auto; display: block; overflow: visible; }
.plan .plan-img { filter: drop-shadow(0 0 0 transparent); }
.plan .room { cursor: pointer; outline: none; }
.plan .room .hit { fill: transparent; transition: fill .6s var(--ease); }
.plan .room:hover .hit, .plan .room:focus-visible .hit { fill: rgba(110, 29, 43, .07); }
.plan .room.is-on .hit { fill: rgba(110, 29, 43, .13); }
.plan .room:focus-visible .hit { stroke: var(--wine); stroke-width: 4; }
.plan .rt-bg { fill: var(--white); stroke: rgba(28, 22, 23, .14); stroke-width: 2; transition: fill .5s var(--ease); }
.plan .room text { font-family: "IBM Plex Mono", monospace; fill: var(--ink); }
.plan .rn { font-size: 36px; font-weight: 500; fill: var(--wine); letter-spacing: .06em; }
.plan .rd { font-size: 31px; }
.plan .rm { display: none; }   /* короткая бирка «ЗАЛ 01» — только на телефоне */
.plan .room.is-on .rt-bg { fill: var(--wine); stroke: var(--wine); }
.plan .room.is-on text { fill: var(--white); }
.plan .route-bg { fill: none; stroke: rgba(110, 29, 43, .35); stroke-width: 5; stroke-dasharray: 12 14; }
.plan .route { fill: none; stroke: var(--wine); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.plan .entry-t { font-family: "IBM Plex Mono", monospace; font-size: 28px; fill: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.plan .here .dot { fill: var(--wine); stroke: var(--white); stroke-width: 6; }
.plan .here .pulse { fill: rgba(110, 29, 43, .25); transform-box: fill-box; transform-origin: center; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 10px; text-transform: uppercase; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: inline-block; }
.lg-room { width: 12px; height: 9px; border: 1px solid var(--ink); background: var(--gallery); }
.lg-route { width: 18px; height: 2px; background: var(--wine); }
.lg-here { width: 8px; height: 8px; border-radius: 50%; background: var(--wine); }

/* карточки вебинаров — музейные таблички */
.wcards { grid-column: 7 / 13; display: grid; gap: clamp(28px, 4vh, 48px); padding-bottom: 10vh; }
.wcard { position: relative; background: var(--gallery); padding: clamp(22px, 2.4vw, 34px); min-height: 48vh; display: grid; align-content: start; gap: 14px;
  transition: background .6s var(--ease), box-shadow .6s var(--ease), opacity .6s var(--ease); opacity: .45; }
.wcard.is-on { opacity: 1; background: var(--white); box-shadow: 0 1px 0 var(--line), 0 30px 60px -36px rgba(28, 22, 23, .45); }
.wc-meta { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.wc-meta b { color: var(--wine); font-weight: 500; }
.wc-title { font-family: "Unica"; font-weight: 500; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.12; letter-spacing: -.02em; }
.wc-text { font-size: 16px; line-height: 1.5; color: #3d3536; }
.wc-take { display: grid; gap: 4px; padding-left: 14px; border-left: 2px solid #E8C9CE; font-size: 15px; line-height: 1.45; }
.wc-take span { font-size: 10px; text-transform: uppercase; color: var(--wine); }
/* билет в зал: перфорированный корешок */
.wc-ticket { justify-self: start; display: inline-flex; align-items: stretch; margin-top: 6px; background: var(--wine); color: var(--white); font-size: 11px; text-transform: uppercase;
  -webkit-mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 5px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 5px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: background .5s var(--ease); }
.wc-ticket span { padding: 11px 14px 10px 16px; }
.wc-ticket b { padding: 11px 16px 10px 12px; border-left: 1px dashed rgba(251, 249, 247, .5); font-weight: 500; }
.wc-ticket:hover { background: var(--wine-deep); }
.js .wcard:not(.is-on) .wc-ticket { pointer-events: auto; }

@media (max-width: 860px) {
  .h4-head { grid-template-columns: 1fr; }
  .h4-title, .h4-lead, .h4-each { grid-column: 1 / -1; }
  .h4-lead { margin-top: 22px; }
  .h4-grid { grid-template-columns: 1fr; }
  /* план закреплён сверху компактно, карточки листаются под ним */
  .plan-wrap { grid-column: 1 / -1; top: 64px; z-index: 3; background: var(--white); padding: 10px 0 12px; box-shadow: 0 14px 20px -18px rgba(28, 22, 23, .35); }
  .plan { max-height: 30svh; width: auto; margin: 0 auto; }
  .plan .rd, .plan .rn { display: none; }   /* на телефоне на бирке только номер — название и дата есть в карточке */
  .plan .rm { display: inline; font-size: 64px; font-weight: 500; fill: var(--wine); letter-spacing: .06em; }
  .plan .room.is-on .rm { fill: var(--white); }
  .plan .entry-t { font-size: 48px; }
  .legend { justify-content: center; margin-top: 8px; font-size: 9px; }
  .legend .scale { display: none; }
  .wcards { grid-column: 1 / -1; margin-top: 24px; padding-bottom: 20vh; }
  .wcard { min-height: 0; }
}

/* ============ ЗАЛ 05: касса ============ */
.hall5 { --paper: #F7F1EA; --tk-stub: 128px; --gap: clamp(16px, 1.9vw, 32px); position: relative; padding: clamp(110px, 12vw, 180px) var(--pad) 28px; background: var(--wine); color: var(--paper); }
.hall5 .room { color: #E8C9CE; }
.h5-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.h5-head .room { grid-column: 1 / -1; margin-bottom: 28px; font-size: 12px; text-transform: uppercase; }
.h5-title { grid-column: 1 / 7; font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(64px, min(9vw, 17vh), 170px); line-height: .84; }
.h5-lead { grid-column: 7 / 13; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.3; letter-spacing: -.01em; }
.h5-lead span { color: rgba(247, 241, 234, .62); }
.hall5 .todo { color: #9a6b2f; }

/* щель кассы: билеты выезжают из-под неё */
.slot { position: relative; z-index: 2; }
.slot i { display: block; height: 16px; border-radius: 8px; background: #3B0C15; box-shadow: inset 0 3px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .12); }
.slot span { position: absolute; right: 0; bottom: calc(100% + 10px); font-size: 10px; text-transform: uppercase; color: rgba(247, 241, 234, .5); }
.tickets { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: -8px; align-items: stretch; }
.tk-clip { display: grid; overflow: clip; padding: 0 0 36px; filter: drop-shadow(0 22px 26px rgba(30, 6, 11, .45)); }
.tk-clip:first-child { grid-column: 1 / 7; }
.tk-clip:last-child { grid-column: 7 / 13; }
.tk { display: grid; grid-template-columns: 1fr var(--tk-stub); background: var(--paper); color: var(--ink); transform-origin: 50% 0;
  -webkit-mask: radial-gradient(circle 11px at calc(100% - var(--tk-stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - var(--tk-stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at calc(100% - var(--tk-stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - var(--tk-stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.tk-main { display: flex; flex-direction: column; gap: 14px; padding: 30px clamp(22px, 2.4vw, 38px) 32px; }
.tk-top { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tk-name { margin-top: 8px; font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 4.6vw, 80px); line-height: .86; color: var(--wine); }
.tk-what { font-size: 15px; color: var(--muted); }
.tk-price { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.tk-price b { font-family: "Condens"; font-weight: 700; font-size: clamp(56px, 5vw, 88px); line-height: .9; color: var(--ink); }
.tk-price s { font-size: 15px; color: var(--muted); }
.tk-price em { font-style: normal; font-size: 12px; background: var(--wine); color: var(--paper); padding: 5px 8px 4px; }
.tk-list { margin-bottom: 8px; list-style: none; display: grid; gap: 7px; font-size: 15px; line-height: 1.4; }
.tk-list li { padding-left: 22px; position: relative; }
.tk-list li::before { content: "—"; position: absolute; left: 0; color: var(--wine); }
.tk-note { margin-bottom: 8px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.tk-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.tk-pick button { width: 48px; height: 44px; border: 1px solid rgba(28, 22, 23, .25); background: transparent; color: var(--ink); font-size: 13px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.tk-pick button:hover { border-color: var(--wine); color: var(--wine); }
.tk-pick button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.tk-pick button:focus-visible, .tk-cta:focus-visible, .cta:focus-visible { outline: 2px solid #E8C9CE; outline-offset: 3px; }
.faq summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.tk-cta { align-self: flex-start; margin-top: auto; display: inline-flex; align-items: stretch; background: var(--wine); color: var(--paper); font-weight: 500; font-size: 16px; transition: background .4s var(--ease); }
.tk-cta span { padding: 16px 18px 15px 22px; }
.tk-cta b { padding: 16px 20px 15px 16px; border-left: 1.5px dashed rgba(247, 241, 234, .45); font-weight: 500; }
.tk-cta:hover { background: var(--wine-deep); }
/* абонемент ярче: белая бумага, бордовая лента и бордовый корешок */
.tk--all { background: #fff; }
.tk--all .tk-stub { background: #8A2C3E; border-left-color: rgba(247, 241, 234, .5); }
.tk--all .tk-stub > span.mono { color: var(--paper); }
.tk--all .tk-holes b { background: var(--wine-deep); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6); }
.tk--all .tk-code { background: repeating-linear-gradient(0deg, var(--paper) 0 2px, transparent 2px 4px, var(--paper) 4px 5px, transparent 5px 9px, var(--paper) 9px 12px, transparent 12px 14px); }
.tk--all .tk-price b { color: var(--wine); }
.tk-flag { align-self: flex-start; margin-top: 4px; padding: 6px 10px 5px; background: var(--wine); color: var(--paper); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.tk-calc { font-size: 12px; text-transform: uppercase; color: var(--muted); }
.tk-tip { font-size: 14px; line-height: 1.4; color: var(--wine); }
.tk-tip button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* корешок: перфорация, компостер, штрихкод */
.tk-stub { display: grid; grid-template-rows: 1fr auto auto; justify-items: center; gap: 18px; padding: 30px 0 32px; border-left: 2px dashed rgba(28, 22, 23, .22); transition: transform .5s var(--ease); }
.tk-stub > span.mono { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11px; text-transform: uppercase; color: var(--wine); letter-spacing: .08em; }
.tk-holes { display: grid; gap: 7px; }
.tk-holes b { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--wine); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.tk-code { width: 56px; height: 78px; background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); opacity: .8; }
@media (hover: hover) { .tk:hover .tk-stub { transform: translateX(5px) rotate(1.2deg); } }   /* корешок «надрывается» под рукой */
.tk-hint { margin-top: 4px; text-align: center; font-size: 10px; text-transform: uppercase; color: rgba(247, 241, 234, .55); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(70px, 8vw, 130px); }
.steps li { grid-column: span 4; display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(247, 241, 234, .25); font-size: 17px; line-height: 1.4; color: rgba(247, 241, 234, .72); }
.steps li span { font-size: 11px; color: #E8C9CE; }
.steps b { font-weight: 500; color: var(--paper); }

/* справочное бюро — белая полоса на всю ширину: передышка между бордовой кассой и выходом */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); margin: clamp(90px, 10vw, 160px) calc(-1 * var(--pad)) 0;
  padding: clamp(80px, 9vw, 140px) var(--pad); background: var(--white); color: var(--ink); }
.faq-title { color: var(--wine); }
.faq-title { grid-column: 1 / 5; align-self: start; font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(44px, 4.6vw, 80px); line-height: .86; }
.faq-list { grid-column: 6 / 13; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 21px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: "IBM Plex Mono", monospace; font-size: 20px; line-height: 1; color: var(--wine); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p, .faq details ul { max-width: 60ch; padding: 0 0 10px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.faq details > :last-child { padding-bottom: 24px; }
.faq details ul { list-style: none; display: grid; gap: 4px; }
.faq details li { position: relative; padding-left: 20px; }
.faq details li::before { content: "—"; position: absolute; left: 0; color: var(--wine); }
.faq .todo { color: #9a6b2f; }
.faq summary:hover { color: var(--wine); }

.exit { display: grid; justify-items: center; text-align: center; gap: 28px; margin-top: clamp(110px, 12vw, 200px); padding-bottom: clamp(80px, 9vw, 140px); }
.exit-sign { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 7px; border: 1px solid rgba(247, 241, 234, .5); font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.exit-sign i { width: 18px; height: 12px; background: currentColor; -webkit-mask: linear-gradient(#000 0 0) left 0 top 5px / 12px 2px no-repeat, conic-gradient(from -135deg at 100% 50%, #000 90deg, #0000 0) right / 8px 100% no-repeat;
  mask: linear-gradient(#000 0 0) left 0 top 5px / 12px 2px no-repeat, conic-gradient(from -135deg at 100% 50%, #000 90deg, #0000 0) right / 8px 100% no-repeat; }
.exit-line { font-family: "Condens"; font-weight: 700; text-transform: uppercase; font-size: clamp(54px, 8vw, 150px); line-height: .86; }
.exit-line span { color: #E8C9CE; }
.cta--paper { background: var(--paper); color: var(--wine); justify-self: center; }
.cta--paper .cta-stub { border-left-color: rgba(110, 29, 43, .4); }
.cta--paper:hover { background: #fff; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; border-top: 1px solid rgba(247, 241, 234, .25); font-size: 11px; text-transform: uppercase; color: rgba(247, 241, 234, .6); }
.foot a:hover { color: var(--paper); }

.bar.bar--wine { background: rgba(74, 17, 27, .9); }
.bar--wine .bar-brand, .bar--wine .bar-room { color: rgba(247, 241, 234, .8); }
.bar--wine b { color: #E8C9CE; }
.bar--wine .ticket { background: #F7F1EA; color: var(--wine); }
.bar--wine .ticket-arr { border-left-color: rgba(110, 29, 43, .4); }

.toast { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 12px 16px 11px; background: var(--ink); color: var(--white); font-size: 11px; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 860px) {
  .h5-head { grid-template-columns: 1fr; }
  .h5-title, .h5-lead { grid-column: 1 / -1; }
  .h5-lead { margin-top: 22px; }
  .tickets { grid-template-columns: 1fr; }
  .tk-clip:first-child, .tk-clip:last-child { grid-column: 1 / -1; }
  .tk-clip + .tk-clip { margin-top: -8px; }
  .slot { display: flex; flex-direction: column-reverse; }
  .slot span { position: static; display: block; margin-bottom: 10px; }
  .steps { grid-template-columns: 1fr; row-gap: 26px; }
  .steps li { grid-column: 1 / -1; }
  .faq { grid-template-columns: 1fr; }
  .faq-title, .faq-list { grid-column: 1 / -1; }
  .faq-list { margin-top: 30px; }
}
@media (max-width: 600px) {
  /* на телефоне корешок уходит вниз — перфорация горизонтальная */
  .hall5 { --tk-stub: 76px; }
  .tk { grid-template-columns: 1fr; grid-template-rows: auto var(--tk-stub);
    -webkit-mask: radial-gradient(circle 10px at 0 calc(100% - var(--tk-stub)), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% calc(100% - var(--tk-stub)), #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle 10px at 0 calc(100% - var(--tk-stub)), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 10px at 100% calc(100% - var(--tk-stub)), #0000 98%, #000) right / 51% 100% no-repeat; }
  .tk-main { padding: 24px 20px 26px; }
  .tk-top span:first-child { max-width: 70%; }
  .tk-stub { grid-template-rows: none; grid-template-columns: 1fr auto auto; align-items: center; padding: 0 20px; border-left: 0; border-top: 2px dashed rgba(28, 22, 23, .22); }
  .tk-stub > span.mono { writing-mode: horizontal-tb; transform: none; justify-self: start; }
  .tk--all .tk-stub { border-top-color: rgba(247, 241, 234, .5); }
  .tk--all .tk-code { background: repeating-linear-gradient(90deg, var(--paper) 0 2px, transparent 2px 4px, var(--paper) 4px 5px, transparent 5px 9px, var(--paper) 9px 12px, transparent 12px 14px); }
  .tk-holes { grid-auto-flow: column; }
  .tk-code { width: 70px; height: 36px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); }
  .tk-cta { align-self: stretch; justify-content: space-between; }
  .tk-pick button { width: calc((100% - 32px) / 5); }
  .exit-line { font-size: clamp(48px, 15vw, 80px); }
  .foot { flex-direction: column; }
}

/* ---------- планшеты в «десктопной» раскладке (горизонтальные и iPad Pro вертикально) ---------- */
@media (min-width: 861px) and (max-width: 1279px) {
  .label { left: 40%; width: 230px; }                       /* этикетка шире и дальше от подзаголовка: текст не рвётся по слогам */
  .label-row { grid-template-columns: 64px 1fr; }
  .hero-foot { max-width: none; }
  .cta-main, .cta-stub { white-space: nowrap; }             /* кнопка в одну строку */
  .floor { left: 38%; right: 36%; }                         /* предметы правее, не залезают на кнопку */
}
/* высокий вертикальный планшет: экспонаты крупнее и по центру экрана, без пустоты снизу */
@media (min-width: 861px) and (orientation: portrait) {
  .ex-track { --exw: min(46vw, calc((100vh - 470px) * .8)); }
}

/* самые узкие телефоны: кнопка в одну строку */
@media (max-width: 360px) { .cta-x { display: none; } .cta-main { white-space: nowrap; } }

/* табличка входа — только на телефоне */
.entry { display: none; }
@media (max-width: 600px) {
  .floor, .label { display: none; }
  .entry { position: absolute; z-index: 6; left: var(--pad); right: var(--pad); bottom: calc(22px + 64px + 10px); display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between;
    background: var(--white); padding: 11px 14px 10px; font-size: 11px; text-transform: uppercase; color: var(--muted); box-shadow: 0 18px 40px -26px rgba(28, 22, 23, .45); }
  .entry b { color: var(--wine); font-weight: 500; }
}
@media (prefers-reduced-motion: reduce) { .lights { display: none; } }
