/* Анимации Motion — тест для владельца (16.11.2026), подключается только с motion_v9.is_on. См. static/js/v9-motion.js */

/* до запуска скрипта: первый экран и телефон скрыты (только если их анимации включены и нет «уменьшить движение»;
   через 2 с класс снимается сам — если скрипт не загрузился, страница всё равно видна) */
/* заголовок и первый абзац не прячем: это LCP (Google считает скорость по ним) — 27.11 */
.mo-pre.mo-pre-hero .hm-hero-text > :not(h1):not(p:not(.tg-help-note)) { opacity: 0; }
.mo-pre.mo-pre-phone .ph-phone, .mo-pre.mo-pre-phone .pa-card, .mo-pre.mo-pre-phone .t-chat > * { opacity: 0; }

/* №8 фото в карточке при наведении */
.mo-cardhover .card.uc .uc-top { overflow: hidden; }
.mo-cardhover .card.uc .uc-top img { transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .mo-cardhover .card.uc:hover .uc-top img { transform: scale(1.06); } }

/* №9 пунктир между шагами прорисовывается */
.flow-steps.mo-steps::before { transform: scaleX(0); transform-origin: left center; }
.flow-steps.mo-steps.mo-steps-go::before { transform: scaleX(1); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) .1s; }
@media (max-width: 760px) {
  .flow-steps.mo-steps::before { transform: scaleY(0); transform-origin: center top; }
  .flow-steps.mo-steps.mo-steps-go::before { transform: scaleY(1); }
}

/* №14 точка, летящая в корзину */
.mo-fly { position: fixed; z-index: 200; width: 18px; height: 18px; border-radius: 50%; background: var(--green); pointer-events: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 28%, transparent), 0 6px 16px color-mix(in srgb, var(--green) 45%, transparent); }

/* №20 смена темы кругом (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* нижняя панель «Купить» уезжает за край — не даём ей дать прокрутку */
.mo .mbar { will-change: auto; }

/* панель «Анимации» (только у тех, кому анимации включены) */
.mo-panel { position: fixed; z-index: 90; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
@media (max-width: 760px) { .mo-panel { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } .mo-tog { height: 34px; padding: 0 11px; font-size: 13px; opacity: .92; } }
.mo-tog { height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); }
.mo-box { position: absolute; left: 0; bottom: 48px; width: min(420px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow: auto; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25); padding: 14px; }
.mo-box[hidden] { display: none; }
.mo-hd b { display: block; font-size: 15px; }
.mo-hd small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.mo-list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 2px; }
.mo-list label { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 8px; border-radius: 10px; cursor: pointer; align-items: start; }
.mo-list label:hover { background: var(--chip); }
.mo-list input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.mo-list b { display: block; font-weight: 700; font-size: 14px; }
.mo-list small { display: block; color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.mo-ft { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; bottom: -14px; background: var(--surface); padding: 8px 0 2px; }
.mo-ft button { height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.mo-ft .mo-ok { margin-left: auto; background: var(--green); border-color: var(--green); color: var(--on-green); font-weight: 700; }

