/* v3, телефон: своя вёрстка. Страница не прокручивается — холст на весь экран, кадр
 * вертикальный, изделие в верхней части; внизу карусель станций (свайп вбок, snap).
 * Крупный план — нижний лист с ручками, изделие крутится пальцем над ним. */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.bar { padding: max(10px, env(safe-area-inset-top)) 12px 10px; gap: 8px; }
.brand { font-size: 18px; }
.tag { display: none; }
.icon-btn { width: 40px; height: 40px; }
#nav { display: none; }

#tour { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; gap: 10px;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 0 7vw calc(14px + var(--safe-b)); outline: none; -webkit-overflow-scrolling: touch; }
#tour::-webkit-scrollbar { display: none; }
.st { flex: 0 0 86vw; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: flex-end; }
.st .card { width: 100%; padding: 18px 18px 16px; border-radius: 22px; }
.st h1, .st h2 { font-size: 23px; }
.st .text { font-size: 14.5px; line-height: 1.45; margin-bottom: 0; }
.st .acts { margin-top: 12px; gap: 8px; }
.st .acts .btn { flex: 1 1 auto; padding: 10px 14px; font-size: 15px; }
.st .card { transition: transform .35s var(--ease), opacity .35s var(--ease); transform: scale(.94); opacity: .7; }
.st.on .card { transform: none; opacity: 1; }
.hint-scroll { display: none; }
.hint-swipe { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.hint-swipe::after { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px;
  animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }

#loader { left: 50%; top: 32%; }
#pager { position: fixed; z-index: 11; left: 0; right: 0; display: flex; justify-content: center; gap: 6px;
  bottom: calc(var(--deck-h, 220px) + 10px + var(--safe-b)); pointer-events: none; }
#pager i { width: 6px; height: 6px; border-radius: 3px; background: var(--muted); opacity: .45; transition: all .3s var(--ease); }
#pager i.on { width: 18px; opacity: 1; background: var(--accent); }

/* крупный план — нижний лист */
#focus { left: 0; right: 0; bottom: 0; border-radius: 22px 22px 0 0; padding: 16px 18px calc(16px + var(--safe-b));
  max-height: 58vh; overflow: auto; animation: sheet .4s var(--ease); }
/* ручка листа: потянуть вниз или коснуться — назад к столу */
.f-grip { height: 22px; margin: -12px -18px 4px; touch-action: none; cursor: grab; position: relative; }
.f-grip::before { content: ""; position: absolute; left: 50%; top: 9px; width: 40px; height: 4px; margin-left: -20px;
  border-radius: 2px; background: var(--muted); opacity: .5; }
#focus .f-head, #focus .f-hint { touch-action: none; }
#focus { transition: transform .25s var(--ease); }
@keyframes sheet { from { transform: translateY(100%); } }
.f-head h2 { font-size: 21px; margin-bottom: 2px; }
.f-head .eyebrow { margin-bottom: 4px; }
.f-hint { margin-bottom: 8px; }
.sw { width: 34px; height: 34px; }
.f-actions .btn { flex: 1 1 40%; }
.focusing #tour, .focusing #pager { opacity: 0; pointer-events: none; transform: translateY(30px); transition: all .3s var(--ease); }
/* сцена ведётся пальцем сама: свайп по столу, ракурс, щипок — браузеру не отдаём */
#gl { touch-action: none; }
#ghint { left: 16px; right: 16px; top: 76px; margin: 0 auto; max-width: 340px; }

/* без WebGL: карусель тех же карточек с рисунками, постер сзади */
.no-gl .st .card { opacity: 1; }
