/* ================= ПРИЛОЖЕНИЕ: устойчивые экраны, нижняя панель, меню, переходы ================= */
:root { --dock-h: 58px; --dock-b: max(12px, env(safe-area-inset-bottom)); }

/* Экраны: всегда на весь дисплей, документ не прокручивается — ничего не «скачет» */
#main { position: fixed; inset: 0; z-index: 3; overflow: hidden; }
#main::before, #main::after { content: ""; position: absolute; left: 0; right: 0; z-index: 5; pointer-events: none; }
#main::before { top: 0; height: calc(var(--head) + env(safe-area-inset-top) + 10px); background: linear-gradient(var(--bg) 35%, transparent); opacity: .92; }
#main::after { bottom: 0; height: calc(var(--dock-h) + var(--dock-b) + 34px); background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 85%, transparent) 70%); }
.scr { position: absolute; inset: 0; display: none; contain: layout paint; }
.scr.on, .scr.leave { display: block; }
.scr-in { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  display: flex; flex-direction: column;
  padding: calc(var(--head) + env(safe-area-inset-top) + 14px) 0 calc(var(--dock-h) + var(--dock-b) + 30px); }
.scr-in::-webkit-scrollbar { display: none; }
.scr-in > .wrap:first-child { margin-top: auto; }
.scr-in > .wrap:nth-last-child(1), .scr-in > .scr-next-wrap { margin-bottom: auto; }
.scr-in > #foot { margin-top: 40px; }

/* Переход между экранами: глубина + мягкое смещение по направлению */
.scr.enter { z-index: 2; animation: scrIn .9s var(--ease) both; }
.scr.leave { z-index: 1; pointer-events: none; animation: scrOut .6s var(--ease-io) forwards; }
@keyframes scrIn { from { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * 46px), 0) scale(1.035); } }
@keyframes scrOut { to { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * -34px), 0) scale(.955); } }
@media (min-width: 900px) {
  @keyframes scrIn { from { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * 46px), 0) scale(1.035); filter: blur(10px); } }
  @keyframes scrOut { to { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * -34px), 0) scale(.955); filter: blur(8px); } }
}
/* световая линия, проходящая по экрану при входе */
.scr.enter::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 6; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 70%, transparent), transparent); animation: scan 1s var(--ease) forwards; }
@keyframes scan { from { transform: translateY(12vh); opacity: 0; } 30% { opacity: .8; } to { transform: translateY(88vh); opacity: 0; } }

/* Шапка закреплена всегда */
#head { transform: none !important; background: none !important; }
#head .logo { position: relative; z-index: 1; }

/* Карточка «Далее» в конце экрана (телефон) */
.scr-next-wrap { padding-top: 34px; }
.scr-next { width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 16px; padding: 18px 2px 4px; border-top: 1px solid var(--line); text-align: start; }
.scr-next small { grid-column: 1; font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.scr-next b { grid-column: 1; font-weight: 300; font-size: var(--t-lg); letter-spacing: .14em; text-transform: uppercase; }
.scr-next .ar { grid-column: 2; grid-row: 1 / 3; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-style: normal; transition: transform .4s var(--ease), background .3s, color .3s; }
.scr-next:hover .ar, .scr-next.is-down .ar { background: var(--solid); color: var(--on-solid); transform: translateX(6px); }
html[dir="rtl"] .scr-next .ar { transform: scaleX(-1); }
@media (min-width: 900px) { .scr-next-wrap { display: none; } }

/* ---------- Нижняя панель ---------- */
#dock { position: fixed; z-index: 45; bottom: var(--dock-b); left: max(12px, env(safe-area-inset-left)); right: calc(max(12px, env(safe-area-inset-right)) + 68px);
  height: var(--dock-h); display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 32px;
  background: var(--glass2); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--shadow); }
html[dir="rtl"] #dock { right: max(12px, env(safe-area-inset-right)); left: calc(max(12px, env(safe-area-inset-left)) + 68px); }
body:not(.entered) #dock { visibility: hidden; }
.dk-btn { flex: none; width: 48px; height: 48px; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background .3s, opacity .3s; }
.dk-btn svg { width: 20px; height: 20px; flex: none; }
.dk-btn:hover, .dk-mid:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dk-btn:disabled { opacity: .25; pointer-events: none; }
html[dir="rtl"] .dk-btn svg { transform: scaleX(-1); }
.dk-nl { display: none; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.dk-next { background: var(--solid); color: var(--on-solid); }
.dk-next:hover { background: var(--solid); box-shadow: 0 0 24px color-mix(in srgb, var(--glow) 50%, transparent); }
.dk-mid { position: relative; flex: 1; min-width: 0; height: 48px; border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 12px; }
.dk-n { font-size: 9.5px; letter-spacing: .22em; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; } .dk-n b { color: var(--ink); font-weight: 500; }
.dk-t { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html[lang="ja"] .dk-t, html[lang="ar"] .dk-t, html[lang="ja"] .dk-nl, html[lang="ar"] .dk-nl { letter-spacing: .04em; }
.dk-grid { position: absolute; inset-inline-end: 14px; top: 50%; translate: 0 -50%; display: none; grid-template-columns: 5px 5px; gap: 3px; }
.dk-grid i { width: 5px; height: 5px; border-radius: 1.5px; border: 1px solid var(--ink2); }
.dk-bar { position: absolute; left: 22px; right: 22px; bottom: 5px; height: 1px; background: var(--line); overflow: hidden; }
.dk-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(0); transition: transform .9s var(--ease); }
html[dir="rtl"] .dk-bar i { transform-origin: 100% 50%; }
@media (min-width: 900px) {
  #dock, html[dir="rtl"] #dock { left: 50%; right: auto; translate: -50% 0; width: min(640px, calc(100vw - 220px)); bottom: 20px; }
  .dk-nl { display: block; } .dk-next { width: auto; padding: 0 16px 0 22px; } html[dir="rtl"] .dk-next { padding: 0 22px 0 16px; }
  .dk-grid { display: grid; }
}
#chatFab { width: var(--dock-h); height: var(--dock-h); bottom: var(--dock-b); right: max(12px, env(safe-area-inset-right)); z-index: 46; }
html[dir="rtl"] #chatFab { left: max(12px, env(safe-area-inset-left)); right: auto; }
@media (min-width: 900px) { #chatFab { bottom: 20px; right: 24px; } html[dir="rtl"] #chatFab { left: 24px; } }
#toast { bottom: calc(var(--dock-h) + var(--dock-b) + 16px); }

/* ---------- Главное меню: два пути + плитки экранов ---------- */
.menu-sheet .sheet-panel { display: block; padding-top: calc(env(safe-area-inset-top) + 64px); padding-bottom: calc(env(safe-area-inset-bottom) + 30px); }
.menu { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.path { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; text-align: start; padding: 16px; border-radius: 20px;
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .3s; transition-delay: calc(var(--i) * 70ms + 80ms); }
.menu-sheet.on .path { opacity: 1; transform: none; }
.path:hover { border-color: var(--ink); }
.path small { grid-column: 1; color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.path b { grid-column: 1; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; font-size: var(--t-sm); }
.path span { grid-column: 1; color: var(--ink2); font-size: var(--t-xs); line-height: 1.35; }
.path .ar { grid-column: 2; grid-row: 1 / 4; align-self: center; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--solid); color: var(--on-solid); }
html[dir="rtl"] .path .ar { transform: scaleX(-1); }
.path[data-path="buy"] { box-shadow: 0 0 40px color-mix(in srgb, var(--glow) 22%, transparent); border-color: var(--line2); }
.menu-groups { display: grid; gap: 22px; margin-top: 26px; }
@media (min-width: 900px) { .menu-groups { grid-template-columns: 1.6fr 1fr; gap: 26px 40px; } .mg:first-child { grid-row: span 3; } }
.mg .kicker { margin-bottom: 10px; }
.mg ol { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 900px) { .mg:first-child ol { grid-template-columns: repeat(3, 1fr); } }
.mg a { display: flex; flex-direction: column; justify-content: space-between; gap: 6px; min-height: 64px; padding: 11px 13px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--glass); font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; line-height: 1.3;
  opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease), border-color .3s, background .3s; transition-delay: calc(var(--i) * 28ms + 160ms); }
html[lang="ja"] .mg a, html[lang="ar"] .mg a { letter-spacing: .03em; }
.menu-sheet.on .mg a { opacity: 1; transform: none; }
.mg a i { font-style: normal; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.mg a:hover { border-color: var(--ink2); }
.mg a.cur { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, var(--glass)); box-shadow: 0 0 26px color-mix(in srgb, var(--glow) 25%, transparent); }
.mg a.cur i::after { content: " ●"; color: var(--ink); }
.menu-extra { margin-top: 22px; }
.menu-extra .chip .online { width: 7px; height: 7px; }

/* ---------- Кинематографичный переход (чёрная дыра / волны) ---------- */
#warp { position: fixed; inset: 0; z-index: 130; pointer-events: none; visibility: hidden; background: #000; overflow: hidden; }
#warp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
#warp[data-k="hole"] video[data-k="hole"], #warp[data-k="waves"] video[data-k="waves"] { display: block; }
[data-theme="light"] #warp { filter: invert(1) grayscale(1) contrast(1.05); }
#warp.in { visibility: visible; animation: wIn .56s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes wIn { from { clip-path: circle(0 at var(--wx) var(--wy)); } to { clip-path: circle(150vmax at var(--wx) var(--wy)); } }
#warp.in video { animation: wvIn .6s var(--ease) forwards; }
@keyframes wvIn { from { transform: scale(1.6) rotate(-10deg); } to { transform: scale(1.12) rotate(0); } }
#warp.out { visibility: visible; animation: wOut .8s var(--ease) forwards; }
@keyframes wOut { 0%, 25% { opacity: 1; } 100% { opacity: 0; } }
#warp[data-k="hole"].out video { animation: holeOut .8s cubic-bezier(.5, 0, .2, 1) forwards; }
@keyframes holeOut { from { transform: scale(1.12); } to { transform: scale(3.4) rotate(28deg); filter: blur(6px); } }
#warp[data-k="waves"].out video { animation: wavesOut .8s var(--ease) forwards; }
@keyframes wavesOut { from { transform: scale(1.12); } to { transform: scaleX(1.5) scaleY(.12); filter: blur(4px); } }
.warp-ring { position: absolute; left: var(--wx); top: var(--wy); width: 24px; height: 24px; margin: -12px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); opacity: 0; }
#warp.in .warp-ring { animation: wring .95s var(--ease) forwards; } #warp.in .warp-ring.r2 { animation-delay: .14s; }
@keyframes wring { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(55); opacity: 0; } }

/* ---------- Главный экран: помещается в один экран без прокрутки ---------- */
.sec-hero .scr-in > .hero { flex: 1; min-height: 0; margin: 0 auto; }
@media (max-width: 899px) {
  .sec-hero .scr-in { padding-bottom: calc(var(--dock-h) + var(--dock-b) + 18px); }
  .hero { height: 100%; justify-content: space-between; }
  .hero-stage { flex: 1 1 auto; height: auto; min-height: 250px; max-height: 520px; }
  .hero-copy .cta-row { margin-top: 10px; }
  .hero-copy .cta-row .btn { height: 50px; }
  .mini-film { order: 0; position: absolute; right: 0; bottom: calc(50px * 2 + 12px + 22px); width: 76px; display: block; padding: 0; margin: 0; border-radius: 14px; z-index: 4; }
  .mini-film video { width: 76px; aspect-ratio: 464 / 560; border-radius: 0; }
  .mini-film .mf-rec { top: 7px; left: 7px; font-size: 7px; }
  .mini-film .mf-play { position: absolute; top: 40%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; }
  .mini-film .mf-cap { padding: 5px 7px 7px; } .mini-film .mf-cap b { font-size: 8px; letter-spacing: .14em; } .mini-film .mf-cap small { display: none; }
  html[dir="rtl"] .mini-film { right: auto; left: 0; }
}
@media (max-width: 899px) and (max-height: 700px) { .hero-stage { min-height: 200px; } .sec-hero .hero-title { font-size: clamp(2rem, 8.4vw, 3rem); } }
@media (min-width: 900px) {
  .hero { min-height: 0; height: 100%; }
  .hero-stage { height: min(calc(100svh - var(--head) - var(--dock-h) - 90px), 740px); }
}
.scroll-hint { display: none !important; }

/* общие высоты сцен под экран с панелями */
@media (min-width: 900px) { .stage { height: min(calc(100svh - var(--head) - var(--dock-h) - 110px), 680px); } }

/* ---------- Коннектор: детали парят, справа фоновое видео сборки ---------- */
.mag-stage { gap: clamp(14px, 3vw, 40px); align-items: center; }
.asm-float { position: relative; height: 100%; width: 38%; display: flex; flex-direction: column; align-items: center; justify-content: center; --H: min(58svh, 540px); }
.af { position: relative; display: flex; justify-content: center; animation: partFloat 5.4s ease-in-out infinite; }
.af img { filter: drop-shadow(0 0 16px var(--mp-glow)); }
.af-body { height: calc(var(--H) * .56); overflow: hidden; align-items: flex-end; -webkit-mask: linear-gradient(transparent, #000 35%); mask: linear-gradient(transparent, #000 35%); }
.af-body img { width: calc(var(--H) * .56 / .45 * 148 / 1465); height: auto; }
.af-ring { margin-top: calc(var(--H) * .06); animation-delay: -1.7s; animation-duration: 4.8s; }
.af-ring img { width: calc(var(--H) * .56 / .45 * 123 / 1465); }
.af-conn { margin-top: calc(var(--H) * .09); animation-delay: -3.2s; animation-duration: 5.1s; }
.af-conn img { width: calc(var(--H) * .56 / .45 * 108 / 1465); }
.af-l { position: absolute; top: 50%; inset-inline-start: calc(50% + 34px); translate: 0 -50%; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink2); }
.af-l::before { content: ""; width: 20px; height: 1px; background: var(--line2); }
html[lang="ja"] .af-l, html[lang="ar"] .af-l { letter-spacing: .04em; }
.asm-video { position: relative; width: 56%; max-width: 380px; padding: 0; margin: 0; border-radius: 26px; overflow: hidden; cursor: pointer; align-self: center;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #e9e9e9; }
.asm-video video { width: 100%; aspect-ratio: 720 / 860; object-fit: cover; }
.asm-video::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 60%, rgba(0, 0, 0, .18)); }
.asm-video figcaption { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; align-items: center; padding: 7px 12px; border-radius: 20px; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  color: #111; background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); z-index: 1; }
.av-step { position: absolute; right: 12px; top: 12px; z-index: 1; font-size: 10px; letter-spacing: .18em; color: #333; padding: 5px 10px; border-radius: 20px; background: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }
.av-step b { color: #000; font-weight: 500; }
.steps-v li { cursor: pointer; transition: border-color .5s, opacity .5s; }
.steps-v li:not(.lit) { opacity: .62; }
.steps-v li.lit { opacity: 1; }
@media (max-width: 899px) {
  .sec-connector .stage { order: -1; height: auto; margin-bottom: 20px; }
  .asm-float { width: 34%; --H: 42svh; }
  .af-l { display: none; }
  .asm-video { width: 62%; border-radius: 20px; }
}

/* ---------- Сочетание: дым днём, логотипы чёрным по белому ---------- */
[data-theme="light"] .hk-dot { background: #fff; border-color: rgba(0, 0, 0, .12); }
[data-theme="light"] .hk-dot img { filter: invert(1) grayscale(1) contrast(1.2); opacity: .85; }
[data-theme="light"] .hk-dot.sel { border-color: #111; box-shadow: 0 6px 20px rgba(0, 0, 0, .1); } [data-theme="light"] .hk-dot.sel img { opacity: 1; }
[data-theme="dark"] .hk-dot img { mix-blend-mode: screen; }

/* ---------- Отзывы: главное видео с вращающимся мундштуком ---------- */
.rev-top { display: grid; gap: 14px; margin-top: 26px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .rev-top { grid-template-columns: 1.15fr 1fr; } .rev-top .reels { padding-top: 0; margin-top: 0; } .rev-top .reel { width: 180px; } }
.rev-feat { position: relative; display: block; width: 100%; border-radius: 24px; overflow: hidden; border: 1px solid var(--line2); background: #eee; box-shadow: var(--shadow); text-align: start; }
.rev-feat video { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 899px) { .rev-feat video { aspect-ratio: 4 / 3; } }
.rf-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .62)); }
.rf-cap b { font-weight: 450; letter-spacing: .24em; font-size: var(--t-xs); } .rf-cap small { opacity: .85; letter-spacing: .08em; }
.rf-rec { display: inline-flex; gap: 6px; align-items: center; font-size: 10px; letter-spacing: .2em; }
.rev-feat .reel-p { background: rgba(0, 0, 0, .35); }
.rev-top .reels { padding: 0; margin: 0; }

/* ---------- Предзаказ: экран «заявка готова» ---------- */
.po-done { width: min(100%, 640px); margin: 30px auto 0; padding: 30px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; animation: paneIn .8s var(--ease); }
.po-done .display.sm { margin: 0; }
.pd-sum { font-size: var(--t-sm); letter-spacing: .08em; padding: 10px 16px; border-radius: 14px; border: 1px dashed var(--line2); max-width: 100%; }
.pd-d { color: var(--ink2); font-size: var(--t-sm); max-width: 46ch; }
.pd-send, .ap-send { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; }
.send-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; }
.send-row .send-btn:first-child { grid-column: 1 / -1; }
.send-btn { height: 48px; padding: 0 14px; letter-spacing: .14em; }
.send-btn svg { width: 18px; height: 18px; flex: none; }
.pd-next { width: 100%; margin-top: 14px; }
.pd-next li.ok { border-color: #34d399; } .pd-next li.ok .n { color: #34d399; }
.ap-after { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 12px; }
.pt-more { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

/* ---------- Подвал внутри экрана «Контакты» ---------- */
.scr-in #foot { padding: 34px 0 10px; background: none; backdrop-filter: none; }

/* ---------- Плотнее на телефоне, чтобы текст не наезжал на изделие ---------- */
@media (max-width: 899px) {
  .scr-in .display { font-size: clamp(1.9rem, 8.6vw, 3rem); }
  html[lang="ja"] .scr-in .display, html[lang="ar"] .scr-in .display { font-size: clamp(1.6rem, 7.2vw, 2.6rem); }
  .lead { margin-top: 12px; }
  .cta-row { margin-top: 24px; }
}
@media (max-width: 899px) { .sec-hero .hero-stage { margin-top: 18px; } .sec-hero .hero-stage .spin { height: 96%; } }
/* логотип всегда слева, в том числе на арабском */
html[dir="rtl"] #head { direction: ltr; }
.pd-next { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pd-next li { padding: 12px 6px 4px; min-width: 0; } .pd-next b { letter-spacing: .04em; font-size: 10px; hyphens: auto; }
.send-row > :last-child:nth-child(even) { grid-column: 1 / -1; }
@media (max-width: 899px) {
  .path { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 14px 16px; }
  .path .ar { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; }
  .path b { padding-inline-end: 36px; line-height: 1.25; }
  .path small { padding-inline-end: 36px; }
}

/* ================= v3.1 ================= */
/* Полноэкранное видео: заметная кнопка «Выйти» внизу и крестик ниже «чёлки» телефона */
.video-sheet .sheet-x { top: calc(env(safe-area-inset-top) + 14px); inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 5; }
.video-sheet .sheet-x svg { width: 20px; height: 20px; }
.video-sheet .sheet-panel { padding: calc(env(safe-area-inset-top) + 70px) 16px calc(env(safe-area-inset-bottom) + 20px); gap: 12px; }
.video-sheet .vs-wrap { height: auto; width: min(92vw, 560px); max-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 210px); aspect-ratio: 464 / 688; }
.video-sheet .vs-wrap video { position: absolute; inset: 0; }
.video-sheet .vs-title { margin: 0; }
.vs-exit { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 30px; background: #fff; color: #000;
  font-size: var(--t-xs); letter-spacing: .24em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.vs-exit svg { width: 16px; height: 16px; fill: none; }
html[lang="ja"] .vs-exit, html[lang="ar"] .vs-exit { letter-spacing: .06em; }

/* Экран 02 «Цвета»: компактно, цвет листается свайпом по мундштуку */
.color-stage { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cs-arr { position: absolute; top: 46%; z-index: 4; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--glass2); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .3s var(--ease), background .3s; }
.cs-arr svg { width: 20px; height: 20px; } .cs-arr.prev { left: 2%; } .cs-arr.next { right: 2%; }
.cs-arr:active { transform: scale(.9); }
.cs-name { display: none; }
.color-stage.sw-l .color-spin { animation: swL .6s var(--ease); } .color-stage.sw-r .color-spin { animation: swR .6s var(--ease); }
@keyframes swL { from { transform: translateX(46px); opacity: .3; } } @keyframes swR { from { transform: translateX(-46px); opacity: .3; } }
@media (max-width: 899px) {
  .sec-colors .scr-in > .scr-next-wrap { display: none; }
  .sec-colors .scr-in { padding-bottom: calc(var(--dock-h) + var(--dock-b) + 16px); }
  .sec-colors .scr-in > .wrap:first-child { flex: 1; min-height: 0; margin: 0 auto; display: flex; flex-direction: column; gap: 0; text-align: center; }
  .sec-colors .copy { display: contents; }
  .sec-colors .kicker { order: 1; justify-content: center; }
  .sec-colors .display { order: 2; font-size: clamp(1.7rem, 7.4vw, 2.5rem); }
  .sec-colors .lead, .sec-colors .color-card { display: none; }
  .sec-colors .stage.color-stage { order: 3; flex: 1 1 auto; height: auto; min-height: 260px; margin: 6px 0 0; width: 100%; max-width: none; }
  .sec-colors .color-stage .spin { height: calc(100% - 46px); }
  .sec-colors .swatches { order: 4; justify-content: center; gap: 12px; margin-top: 4px; flex-wrap: nowrap; }
  .sec-colors .swatch span { display: none; }
  .sec-colors .swatch i { width: 30px; height: 30px; }
  .sec-colors .cta-row { order: 5; justify-content: center; margin-top: 14px; }
  .cs-name { display: flex; flex-direction: column; align-items: center; gap: 4px; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; }
  .cs-name b { font-weight: 400; font-size: var(--t-sm); letter-spacing: .26em; text-transform: uppercase; }
  .cs-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: opacity .6s; }
  html[lang="ja"] .cs-hint, html[lang="ar"] .cs-hint, html[lang="ja"] .cs-name b, html[lang="ar"] .cs-name b { letter-spacing: .04em; }
  .cs-hint i { width: 16px; height: 1px; background: currentColor; position: relative; animation: hintL 1.8s ease-in-out infinite; }
  .cs-hint i:last-child { animation-name: hintR; }
  .cs-hint i::before { content: ""; position: absolute; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; left: 0; transform: rotate(-45deg); }
  .cs-hint i:last-child::before { left: auto; right: 0; transform: rotate(135deg); }
  .color-stage.used .cs-hint { opacity: .45; }
  .cs-arr { top: 42%; width: 40px; height: 40px; } .cs-arr.prev { left: 0; } .cs-arr.next { right: 0; }
}
@media (max-width: 899px) and (max-height: 700px) { .sec-colors .stage.color-stage { min-height: 200px; } .sec-colors .cta-row .btn { height: 46px; } }
@keyframes hintL { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@keyframes hintR { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* Подсказка «листайте вниз» на длинных экранах */
#scrollCue { position: fixed; z-index: 44; left: 50%; bottom: calc(var(--dock-h) + var(--dock-b) + 12px); translate: -50% 0;
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 16px; border-radius: 20px;
  background: var(--glass2); border: 1px solid var(--line2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
#scrollCue.on { opacity: 1; transform: none; pointer-events: auto; animation: cuePulse 2.4s ease-in-out infinite 1s; }
body.locked #scrollCue, body:not(.entered) #scrollCue { opacity: 0; pointer-events: none; }
html[lang="ja"] #scrollCue, html[lang="ar"] #scrollCue { letter-spacing: .05em; }
.sc-ar { position: relative; width: 12px; height: 16px; }
.sc-ar i { position: absolute; left: 1px; width: 9px; height: 9px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: rotate(45deg); animation: cueAr 1.4s ease-in-out infinite; }
.sc-ar i:first-child { top: -2px; opacity: .45; } .sc-ar i:last-child { top: 4px; animation-delay: .15s; }
.sc-bar { width: 26px; height: 2px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.sc-bar i { display: block; height: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(calc(.12 + var(--p, 0) * .88)); transition: transform .2s; }
@keyframes cueAr { 0%, 100% { translate: 0 -2px; } 50% { translate: 0 3px; } }
@keyframes cuePulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ink) 0%, transparent); } 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 8%, transparent); } }
@media (min-width: 900px) { #scrollCue { bottom: calc(20px + var(--dock-h) + 12px); } }
.video-sheet .sheet-body { width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.video-sheet .vs-title { text-align: center; }
