/* Телефон (≤ 760 і телефон в альбомі): розмітка [data-layout=m] */
.M { --pad: 18px; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.M .m-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px var(--pad) 0; padding-top: max(6px, env(safe-area-inset-top)); }
.M .brand { font: 650 13.5px/1 var(--mono); }
.M main > section { max-width: 640px; margin: 0 auto; padding: 0 var(--pad); }
.M main > section + section { margin-top: 56px; }
.M .m-hero { padding-top: 22px !important; }
.M .eyebrow { margin-bottom: 12px; font-size: 12px; }
.M .m-h1 { font: 760 clamp(31px, 9vw, 40px)/1.05 var(--display); letter-spacing: -.025em; }
.M .m-lead { margin-top: 14px; font-size: 16.5px; color: var(--ink-2); }
.M .m-cta { margin-top: 22px; width: 100%; }
.M .m-h2 { font: 720 clamp(24px, 7vw, 30px)/1.12 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.M .m-text { font-size: 16px; color: var(--ink-2); margin-bottom: 14px; }
.M .m-cap { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }

/* Картка товару */
.M .m-win .win-bar { padding: 8px 10px; }
.M .m-slot { margin: 12px; aspect-ratio: 1 / 1; max-height: 70vh; }
.M .m-slot.live { aspect-ratio: auto; height: 420px; max-height: none; }
.M .m-slot.live .still, .M .m-slot.live .m-3d-wrap { display: none; }
.M .m-slot [data-showgen] { position: absolute; inset: 0; z-index: 1; }
.M .m-3d { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 18px 0 14px; border: 0; border-radius: 12px; background: var(--ink); color: var(--bg); font: 650 15.5px/1 var(--font);
  box-shadow: 0 12px 26px -12px rgba(10, 10, 30, .5); cursor: pointer; white-space: nowrap; }
.M .m-3d svg { width: 22px; height: 22px; color: var(--lime); }
.M .m-3d.out { position: static; transform: none; margin: 0 12px 12px; min-height: 44px; font-size: 14px; }
.M .m-pinfo { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 16px; }
.M .m-pinfo .p-buy { margin-top: 8px; }

/* Код */
.M .m-code-sec .chips .chip { flex: 1 1 auto; }
.M .code pre { font-size: 12.5px; padding: 14px; }
.M .code-bar { padding: 8px 8px 8px 14px; }

/* AR */
.M .m-ar { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 18px 10px 10px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font: 650 16px/1.25 var(--font); }
.M .m-ar img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: #f4f1ec; padding: 3px; flex: none; }
.M .m-ar[hidden] { display: none; }

/* Платформи */
.M .m-where details { border-top: 1px solid var(--line); }
.M .m-where details:last-of-type { border-bottom: 1px solid var(--line); }
.M .m-where summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font: 650 17px/1.2 var(--display); cursor: pointer; list-style: none; }
.M .m-where summary::-webkit-details-marker { display: none; }
.M .m-where summary::after { content: "+"; font: 500 22px/1 var(--mono); color: var(--accent); }
.M .m-where details[open] summary::after { content: "−"; }
.M .m-where details p { padding: 0 0 16px; color: var(--ink-2); }

/* Ролик */
.M .m-film-box { position: relative; border-radius: 16px; overflow: hidden; background: #14151d; aspect-ratio: 9 / 16; max-height: 78vh; margin: 0 auto; }
.M .m-film-box video { width: 100%; height: 100%; object-fit: cover; }

/* Факти */
.M .m-fact-list { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 10px; }
.M .m-fact-list li { padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.M .m-pro a { color: var(--accent); font-weight: 650; text-underline-offset: 3px; }
.M .m-final-h { font: 740 clamp(27px, 8vw, 34px)/1.08 var(--display); letter-spacing: -.02em; }
.M .m-foot { margin-top: 48px; padding: 18px var(--pad) 8px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }

/* Нижня липка кнопка */
.M .m-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: var(--bg);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.M .m-bar.on { transform: none; }
.M .m-bar .cta { width: 100%; min-height: 50px; }
/* Телефон в альбомі: низький екран */
@media (max-height: 500px) {
  .M .m-slot { aspect-ratio: auto; height: 300px; max-height: none; }
  .M .m-slot.live { height: 320px; }
  .M .m-film-box { max-height: none; width: min(100%, 300px); }
}
@media (prefers-reduced-motion: reduce) { .M .m-bar { transition: none; } }
