/* =====================================================================
   SwipAi v3, итерация 4: кибер-цифровой стиль, жидкое стекло, HUD, глитч, субтитры
   ===================================================================== */
:root { --cy: #00e5ff; --mg: #ff2a8a; }

/* ---------- жидкое стекло ---------- */
.glass {
  --gx: 30%; --gy: 0%;
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.03) 45%, rgba(109,40,217,.12));
  border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 40px rgba(217,70,239,.06), 0 24px 70px -28px rgba(0,0,0,.75);
}
.glass::before {   /* блик, который идёт за курсором */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--gx) var(--gy), rgba(255,255,255,.12), transparent 45%),
              linear-gradient(115deg, rgba(255,255,255,.14), transparent 22%);
  mix-blend-mode: screen;
}
@media (hover: hover) and (pointer: fine) {
  .glass { -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); }
}
@media not ((hover: hover) and (pointer: fine)) { .glass { background: linear-gradient(135deg, rgba(42,20,112,.85), rgba(12,6,32,.92)); } }
.cube__f.glass, .board.glass { background-color: rgba(18,8,40,.55); }

/* ---------- глитч заголовков ---------- */
.mega.is-glitch { animation: glitch .42s steps(2) 1; }
@keyframes glitch {
  0% { text-shadow: -4px 0 var(--cy), 4px 0 var(--mg); transform: translateX(0) skewX(0); }
  25% { text-shadow: 5px 0 var(--cy), -5px 0 var(--mg); transform: translateX(-3px) skewX(-4deg); clip-path: inset(10% 0 40% 0); }
  50% { text-shadow: -3px 0 var(--cy), 3px 0 var(--mg); transform: translateX(3px) skewX(3deg); clip-path: inset(50% 0 5% 0); }
  75% { text-shadow: 2px 0 var(--cy), -2px 0 var(--mg); transform: translateX(-1px); clip-path: none; }
  100% { text-shadow: none; transform: none; }
}

/* ---------- подписи-субтитры ---------- */
.typed { position: relative; }
.typed__ghost { color: transparent; }
.typed__caret { display: inline-block; width: .5em; height: 1.05em; margin: 0 1px -0.2em; background: var(--orchid); box-shadow: 0 0 10px var(--orchid); animation: blink .9s steps(2) infinite; }

/* ---------- HUD видоискателя ---------- */
.hud { position: absolute; inset: 10px; pointer-events: none; z-index: 4; font: 700 11px/1 'Onest', sans-serif; letter-spacing: .14em; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.hud i { position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.85); }
.hud i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hud i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.hud i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.hud i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hud__rec { position: absolute; left: 26px; top: 4px; display: inline-flex; align-items: center; gap: 6px; }
.hud__rec::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff3b6b; box-shadow: 0 0 10px #ff3b6b; animation: blink 1.1s steps(2) infinite; }
.hud__tc { position: absolute; right: 26px; top: 4px; font-variant-numeric: tabular-nums; }
.hud--phone { inset: 30px 14px 46px; }
.hud--phone .hud__rec, .hud--phone .hud__tc { top: 6px; }
.find__media .hud { inset: 8%; font-size: 9px; }
.find__media .hud i { width: 12%; height: 7%; }

/* ---------- Восемь миров: постер-эфир ---------- */
.bp { overflow: hidden; background: #0c0620; }
.bp__bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(34px) saturate(1.4) brightness(.45); z-index: 0; }
.bp__grid { position: absolute; inset: 0; z-index: 0; opacity: .25;
  background-image: linear-gradient(rgba(240,171,252,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(240,171,252,.18) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask: linear-gradient(90deg, #000, transparent 70%); mask: linear-gradient(90deg, #000, transparent 70%); }
.bp__num { position: absolute; z-index: 0; left: 2%; bottom: -8%; font-size: clamp(160px, 26vw, 420px); font-weight: 900; line-height: .8; letter-spacing: -.08em; color: transparent; -webkit-text-stroke: 1.5px rgba(240,171,252,.22); }
.bp__txt, .bp__img { position: relative; z-index: 1; }
.bp__name { position: relative; text-shadow: 0 0 40px rgba(217,70,239,.45); }
.bp__name::before, .bp__name::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.bp__name::before { color: var(--cy); mix-blend-mode: screen; animation: bpGlitch 5s steps(1) infinite; }
.bp__name::after { color: var(--mg); mix-blend-mode: screen; animation: bpGlitch 5s steps(1) infinite reverse; }
@keyframes bpGlitch { 0%, 92%, 100% { transform: none; clip-path: inset(100% 0 0 0); } 93% { transform: translateX(-5px); clip-path: inset(10% 0 55% 0); } 95% { transform: translateX(5px); clip-path: inset(60% 0 10% 0); } 97% { transform: translateX(-2px); clip-path: inset(30% 0 40% 0); } }
.bp__eq { display: inline-flex; align-items: end; gap: 4px; height: 26px; margin-top: 10px; }
.bp__eq i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(var(--blush), var(--orchid)); transform-origin: bottom; animation: eq 1s ease-in-out infinite alternate; }
.bp__eq i:nth-child(2) { animation-delay: -.3s; } .bp__eq i:nth-child(3) { animation-delay: -.6s; } .bp__eq i:nth-child(4) { animation-delay: -.15s; }
.bp__eq i:nth-child(5) { animation-delay: -.45s; } .bp__eq i:nth-child(6) { animation-delay: -.75s; } .bp__eq i:nth-child(7) { animation-delay: -.9s; }
@keyframes eq { from { transform: scaleY(.15); } to { transform: scaleY(1); } }
.bp__img { box-shadow: 0 0 0 1.5px rgba(240,171,252,.35), 0 0 60px rgba(217,70,239,.35), 0 30px 80px -20px rgba(0,0,0,.8); }
.bp__img img { animation: kenburns 9s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-2%); } }
.bp__img .hud { inset: 12px; }

/* ---------- Как смотреть: живое окно ---------- */
.how__item { overflow: visible; }
.how__fx { position: absolute; pointer-events: none; z-index: 3; }
.how__fx .hud--how { inset: -14px; }
.how__orbit { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(240,171,252,.35); animation: spin 18s linear infinite; }
.how__orbit::before { content: ''; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--orchid); box-shadow: 0 0 14px var(--orchid); }
.how__scan { position: absolute; left: 4%; right: 4%; height: 2px; top: 0; background: linear-gradient(90deg, transparent, var(--cy), transparent); box-shadow: 0 0 12px var(--cy); opacity: .7; animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0% { transform: translateY(2%); opacity: 0; } 15% { opacity: .8; } 85% { opacity: .8; } 100% { transform: translateY(var(--scan-h, 560px)); opacity: 0; } }
.how__item:not(.is-center) .how__fx { opacity: .35; }
.react { position: absolute; width: 34px; height: 34px; margin: -17px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,6,32,.7); border: 1px solid rgba(255,255,255,.2); box-shadow: 0 0 18px rgba(217,70,239,.5); }
.react svg { width: 18px; height: 18px; fill: var(--orchid); }
.react--play svg { fill: var(--cy); } .react--star svg { fill: #ffd166; } .react--chat svg { fill: var(--paper); }
.how__item .giant { text-shadow: 0 0 30px rgba(217,70,239,.25); }
.how__item .ico { animation: icoFloat 3s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(217,70,239,.6)); }
@keyframes icoFloat { 50% { transform: translateY(-8px); } }

/* ---------- Найди своё: орбита жанров и боковые строки ---------- */
.find__orbit { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 3; opacity: 0; pointer-events: none; }
.find__chip { position: absolute; left: 0; top: 0; translate: -50% -50%; white-space: nowrap; padding: 10px 18px; border-radius: 99px; font-size: 15px; font-weight: 700; color: var(--paper); will-change: transform; }
.find__rail { position: absolute; top: 0; bottom: 0; width: 46px; overflow: hidden; opacity: 0; z-index: 1; pointer-events: none; display: flex; flex-direction: column; }
.find__rail--l { left: var(--g); } .find__rail--r { right: var(--g); }
.find__rail span { writing-mode: vertical-rl; white-space: nowrap; font-size: 22px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(240,171,252,.45); animation: railUp 30s linear infinite; }
.find__rail--r span { animation-direction: reverse; }
@keyframes railUp { to { transform: translateY(-100%); } }
.find__media { overflow: hidden; }

/* ---------- карточки разделов: живые иконки, превью, таймер ---------- */
.feat { padding-right: 150px; overflow: hidden; }
.feat .ico { transform-origin: 50% 20%; }
.feat--1.is-on .ico { animation: beat 1.2s ease-in-out infinite; }
.feat--2.is-on .ico { animation: swing 1.4s ease-in-out infinite; }
.feat--3.is-on .ico rect { animation: blinkSq 1.6s steps(1) infinite; }
.feat--3.is-on .ico rect:nth-child(2) { animation-delay: .4s; } .feat--3.is-on .ico rect:nth-child(3) { animation-delay: .8s; } .feat--3.is-on .ico rect:nth-child(4) { animation-delay: 1.2s; }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@keyframes swing { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } }
@keyframes blinkSq { 0% { fill: var(--orchid); } 50% { fill: transparent; } }
.feat__thumbs { position: absolute; right: 16px; top: 50%; display: flex; gap: 6px; transform: translateY(-50%) translateX(30px); opacity: 0; transition: opacity .5s ease, transform .6s var(--ease-out); }
.feat__thumbs img { width: 38px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.2); }
.feat__thumbs img:nth-child(2) { transform: translateY(-10px); } .feat__thumbs img:nth-child(3) { transform: translateY(6px); }
.feat.is-on .feat__thumbs { opacity: 1; transform: translateY(-50%); }
.feat__timer { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--cy), var(--orchid)); transform: scaleX(0); transform-origin: left; }
.feat.is-on .feat__timer { animation: timer 4s linear infinite; }
@keyframes timer { to { transform: scaleX(1); } }
@media (max-width: 899px) { .feat { padding-right: 16px; } .feat__thumbs { display: none; } }

/* ---------- куб: грани с зазором и неоновым краем ---------- */
.cube__f { box-shadow: 0 0 0 1px rgba(240,171,252,.25), 0 0 40px rgba(217,70,239,.2), inset 0 0 60px rgba(109,40,217,.25); }

@media (prefers-reduced-motion: reduce) {
  .bp__name::before, .bp__name::after, .bp__eq i, .bp__img img, .how__orbit, .how__scan, .how__item .ico, .find__rail span, .feat .ico, .feat__timer, .typed__caret, .hud__rec::before { animation: none !important; }
}
/* рамка видоискателя вокруг выросшего видео в «Найди своё» */
.hud.hud--find { position: absolute; inset: auto; left: 50%; top: 50%; width: calc(82vh * 9 / 16 + 36px); height: calc(82vh + 36px); transform: translate(-50%, -50%); opacity: 0; z-index: 3; }
/* грани куба: стекло без размытия фона (backdrop-filter ломает 3D), с бликом и неоновым краем */
.cube__f { background: linear-gradient(140deg, rgba(255,255,255,.12), rgba(42,20,112,.55) 40%, rgba(12,6,32,.92)); border: 1px solid rgba(255,255,255,.18); }
.cube__f::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 30%); }
.find__chip.glass { position: absolute; }
/* световой край жидкого стекла: тонкая переливающаяся кромка, статичная (без перерисовки) */
.glass::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: -1;
  background: linear-gradient(135deg, rgba(255,255,255,.55), rgba(0,229,255,.25) 25%, transparent 45%, transparent 60%, rgba(255,42,138,.3) 85%, rgba(255,255,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.cube__f.glass::after { display: none; }

/* ===== итерация 5 ===== */
/* куб на телефоне: меньше и с запасом по высоте, чтобы повёрнутые грани не наезжали на карточки */
@media (max-width: 899px) {
  .cube { --s: min(56vw, 250px); }
  .cube-box { height: calc(min(56vw, 250px) * 1.42); }
  .cube-stage { gap: 14px; }
}

/* «Как смотреть»: заголовок считается от ширины карточки и не вылезает; телефон на ПК крупнее */
.how__item { container-type: inline-size; width: min(86vw, 1120px); height: min(70vh, 680px); }
.how__item > .giant { font-size: clamp(36px, 8.4cqi, 116px); line-height: .95; }
.how__item > img { max-height: min(60vh, 590px); }
@media (max-width: 759px) {
  .how__stage { padding: 64px 0 28px; }
  .how__tag { margin-bottom: 8px; }
  .how__track { padding: 30px 0; }
  .how__item { width: 86vw; height: auto; min-height: 0; gap: 10px; padding: 20px 20px 22px; }
  .how__item > .giant { font-size: 13.5cqi; }
  .how__item .ico { width: 44px; height: 44px; }
  .how__item p { font-size: 16px; }
  .how__item > img { height: min(34svh, 300px); max-height: none; justify-self: center; }
}

/* финал: стена кадров уходит под подвал до самого низа */
.final { padding-bottom: calc(var(--foot-h, 180px) + 60px); }
.foot { margin-top: calc(var(--foot-h, 180px) * -1); z-index: 2; background: none; }
.final .reel__scrim { background: radial-gradient(60% 50% at 50% 42%, rgba(6,3,14,.92), rgba(6,3,14,.55) 70%, rgba(6,3,14,.82)), linear-gradient(transparent 70%, rgba(6,3,14,.7)); }

/* рендер заголовков: светящаяся линия проходит по тексту, буквы в цифровом шуме */
.mega { position: relative; }
.mega.is-render::after { content: ''; position: absolute; top: -6%; bottom: -6%; left: 0; width: 3px; pointer-events: none;
  background: linear-gradient(var(--cy), #fff, var(--mg)); box-shadow: 0 0 18px var(--cy), 0 0 40px rgba(217,70,239,.6); animation: renderLine 1.3s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes renderLine { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(var(--rw, 600px)); opacity: 0; } }
.c.is-noise { display: inline-block; text-align: center; color: var(--cy) !important; -webkit-text-fill-color: var(--cy); text-shadow: 0 0 12px rgba(0,229,255,.7); }
/* в постерах жанров глитч убран */
.bp__name::before, .bp__name::after { display: none; }

/* линия прогресса: монтажный таймлайн с перфорацией */
.reelbar { position: fixed; left: 0; right: 0; top: 0; height: 6px; z-index: 60; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(241,234,255,.16) 0 6px, transparent 6px 12px) 0 2px / 100% 2px no-repeat, rgba(6,3,14,.55); }
.reelbar__fill { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #6d28d9, #d946ef 70%, var(--cy)); box-shadow: 0 0 12px rgba(217,70,239,.7); }
.reelbar__head { position: absolute; top: -3px; left: -1px; width: 2px; height: 14px; background: #fff; border-radius: 2px; box-shadow: 0 0 10px #fff, 0 0 22px var(--cy); }
.reelbar__head::after { content: ''; position: absolute; top: 100%; left: 50%; width: 8px; height: 6px; margin-left: -4px; background: #fff; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.reelbar__mark { position: absolute; top: 0; left: -1px; width: 2px; height: 10px; background: rgba(241,234,255,.45); transition: background-color .3s; }
.reelbar__mark.is-first { display: none; }
.reelbar__mark.is-past { background: #fff; box-shadow: 0 0 8px var(--cy); }
.fx-hud__tc { font-variant-numeric: tabular-nums; color: var(--cy) !important; }

/* ===== студия: интерактив ===== */
.panel { position: relative; transform-style: preserve-3d; }
@media (hover: hover) and (pointer: fine) {
  .panel::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: radial-gradient(260px circle at var(--px, 50%) var(--py, 50%), rgba(217,70,239,.16), transparent 60%); }
  .panel:hover::before { opacity: 1; }
}
.scrub { display: grid; gap: 8px; margin-top: 12px; }
.scrub__k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blush); }
.scrub__in { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: grab; touch-action: pan-y; }
.scrub__in:active { cursor: grabbing; }
.scrub__in::-webkit-slider-runnable-track { height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, #d946ef calc(var(--k, .5) * 100%), rgba(241,234,255,.14) 0), repeating-linear-gradient(90deg, transparent 0 9px, rgba(6,3,14,.6) 9px 10px); background-blend-mode: normal; }
.scrub__in::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(241,234,255,.14); }
.scrub__in::-moz-range-progress { height: 6px; border-radius: 6px; background: #d946ef; }
.scrub__in::-webkit-slider-thumb { -webkit-appearance: none; width: 4px; height: 22px; margin-top: -8px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--cy); }
.scrub__in::-moz-range-thumb { width: 4px; height: 22px; border: 0; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff, 0 0 20px var(--cy); }
.scrub__in:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; border-radius: 4px; }
.scrub__badge { justify-self: start; padding: 5px 12px; border-radius: 30px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #06030e; background: var(--cy); box-shadow: 0 0 18px rgba(0,229,255,.6); opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .35s, transform .45s cubic-bezier(.2,1.4,.4,1); }
.panel--views.is-open .scrub__badge { opacity: 1; transform: none; }
.panel--views:not(.is-open) .panel__v { color: var(--dim); }
.panel--who.is-open .btn { box-shadow: 0 0 0 2px rgba(0,229,255,.5), 0 0 30px rgba(217,70,239,.6); }
.excl { cursor: pointer; user-select: none; }
.excl.is-poke span { animation: poke .6s ease; }
@keyframes poke { 0%, 100% { transform: none; } 30% { transform: translateX(4px); } 60% { transform: translateX(-3px); } }
.excl:focus-visible { outline: 2px solid var(--cy); outline-offset: 4px; border-radius: 30px; }
.panel--steps li { cursor: pointer; transition: color .3s, transform .4s cubic-bezier(.2,1,.3,1); }
.panel--steps li.is-cur { color: var(--paper); transform: translateX(6px); }
.panel--steps li:not(.is-cur) { color: var(--dim); }
.panel--steps li:focus-visible { outline: 2px solid var(--cy); outline-offset: 3px; border-radius: 4px; }

/* название бренда пишется как есть: SwipAi, без капса */
.final__title em, .mega .brand { text-transform: none; }

/* ===== итерация 6: без закреплений, окна «включаются» ===== */
/* светящиеся линии раскрытия кадра */
.pw { position: absolute; inset: 0; pointer-events: none; z-index: 20; }
.pw i { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; transform-origin: center;
  background: linear-gradient(90deg, transparent, var(--cy) 14%, #fff 50%, var(--mg) 86%, transparent); box-shadow: 0 0 14px var(--cy), 0 0 34px rgba(217,70,239,.7); }

/* «Как смотреть»: карточки столбиком, телефон попеременно справа и слева */
.how.is-list .how__stage { min-height: 0; overflow: visible; padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.how.is-list .how__track { flex-direction: column; align-items: center; width: auto; gap: clamp(28px, 4vw, 56px); padding: 0; transform: none !important; }
.how.is-list .how__track::before, .how.is-list .how__track::after { display: none; }
.how.is-list .how__item { transform: none !important; }
@media (min-width: 760px) {
  .how.is-list .how__item:nth-child(even) { grid-template-columns: auto 1fr; }
  .how.is-list .how__item:nth-child(even) > :not(img) { grid-column: 2; }
  .how.is-list .how__item:nth-child(even) > img { grid-column: 1; }
}

/* «Найди своё»: заголовок с кадром между слов, под ним большой вертикальный экран с видео */
.find__stage { height: auto; min-height: 0; overflow: visible; padding: clamp(90px, 10vw, 140px) var(--g) 30px; display: grid; gap: clamp(30px, 5vw, 60px); place-items: center; }
.find__scene { position: relative; width: 100%; display: grid; place-items: center; min-height: min(86vh, 800px); }
.find__screen { position: relative; z-index: 2; height: min(78vh, 720px); aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000;
  border: 6px solid #120a2b; box-shadow: 0 0 0 1.5px rgba(240,171,252,.3), 0 50px 120px -30px rgba(217,70,239,.55); }
.find__screen video { display: block; width: 100%; height: 100%; object-fit: cover; }
.find__orbit { transition: opacity .8s ease; }
.find__scene.is-live .find__orbit { opacity: 1; }
.find__rail { transition: opacity .8s ease; }
.find__scene.is-live .find__rail { opacity: .7; }
@media (max-width: 759px) {
  .find__scene { min-height: 0; padding: 30px 0; }
  .find__screen { height: 64svh; border-radius: 26px; border-width: 5px; }
  .find__rail { display: none; }
  .find__chip { padding: 7px 13px; font-size: 13px; }
}

/* куб: на телефоне грани сменяются плоским окном во всю ширину */
@media (max-width: 899px) {
  .cube-box.is-flat { display: block; height: auto; perspective: none; }
  .cube-box.is-flat .cube { --s: auto; width: min(100%, 440px); height: auto; aspect-ratio: 1 / 1.08; margin: 0 auto; transform: none !important; aspect-ratio: 1 / 1.24; }
  .cube-box.is-flat .cube__f { transform: none !important; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .cube-box.is-flat .cube__f.is-cur { opacity: 1; visibility: visible; transition: opacity .3s; }
  .cube-box.is-flat .cube-shadow { display: none; }
}

/* таймер активной карточки: один проход за время показа грани */
.feat.is-on .feat__timer { animation: none; }
.feat.is-on .feat__timer.is-run { animation-name: timer; animation-timing-function: linear; animation-iteration-count: 1; animation-fill-mode: forwards; }
/* телефон: вместо орбиты (не помещается вокруг экрана) — бегущая строка жанров под видео */
@media (max-width: 759px) {
  .find__orbit { display: none; }
  .find__scene { padding-bottom: 64px; }
  .find__rail--l { display: flex; flex-direction: row; top: auto; bottom: 8px; left: calc(var(--g) * -1); right: calc(var(--g) * -1); width: auto; height: 36px; }
  .find__rail--l span { writing-mode: horizontal-tb; font-size: 20px; padding-right: .5em; animation: railX 26s linear infinite; }
}
@keyframes railX { to { transform: translateX(-100%); } }

/* ===== телефоны как iPhone: корпус, кнопки, Dynamic Island ===== */
.phone { position: relative; z-index: 2; border-radius: 44px; }
.phone--find { border-radius: 34px; }
.feed__phone, .find__screen { border-color: #17102e; box-shadow: 0 0 0 1.5px rgba(241,234,255,.22), inset 0 0 0 1px rgba(255,255,255,.08), 0 60px 140px -40px rgba(109,40,217,.8); }
.ph-btns { position: absolute; inset: 0; pointer-events: none; }
.ph-btns::before, .ph-btns::after { content: ''; position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #2a1d4d, #4b3a78); }
.ph-btns::before { left: -3px; top: 17%; height: 7%; box-shadow: 0 calc(var(--ph-h, 600px) * .1) 0 #3a2a63, 0 calc(var(--ph-h, 600px) * .19) 0 #3a2a63; }   /* громкость и беззвучный режим */
.ph-btns::after { right: -3px; top: 24%; height: 11%; }                                                                              /* кнопка питания */
.phone--feed { --ph-h: min(72vh, 680px); }
.phone--find { --ph-h: min(78vh, 720px); }
.how__fx .ph-btns { inset: -7px; }
.ph-island { position: absolute; z-index: 6; top: 2.4%; left: 50%; width: 56%; height: max(16px, 4.2%); translate: -50% 0; border-radius: 99px; background: #000;
  display: flex; align-items: center; justify-content: space-between; padding: 0 9%; pointer-events: none;
  clip-path: inset(0 23% 0 23% round 99px); transition: clip-path .55s cubic-bezier(.3,1.4,.4,1); }
.ph-island.is-open { clip-path: inset(0 0 0 0 round 99px); }
.ph-island__cam { position: absolute; right: 27%; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3b4a7a, #0b0d1a 60%); transition: opacity .3s; }
.ph-island.is-open .ph-island__cam { opacity: 0; }
.ph-island__play { width: 0; height: 0; border-left: 7px solid #fff; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; opacity: 0; transition: opacity .3s .15s; }
.ph-island__eq { display: flex; align-items: center; gap: 2px; height: 10px; opacity: 0; transition: opacity .3s .15s; }
.ph-island__eq b { width: 2px; height: 100%; border-radius: 1px; background: var(--cy); transform-origin: center; animation: islEq .7s ease-in-out infinite alternate; }
.ph-island__eq b:nth-child(2) { animation-delay: -.2s; background: var(--orchid); } .ph-island__eq b:nth-child(3) { animation-delay: -.45s; } .ph-island__eq b:nth-child(4) { animation-delay: -.1s; background: var(--orchid); }
.ph-island.is-open .ph-island__play, .ph-island.is-open .ph-island__eq { opacity: 1; }
@keyframes islEq { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 759px) { .feed > .phone { order: -1; } .phone--feed { --ph-h: 52svh; border-radius: 30px; } }
@media (max-width: 759px) { .phone--find { --ph-h: 64svh; border-radius: 26px; } .ph-island__cam { width: 5px; height: 5px; margin-top: -2.5px; } }
@media (prefers-reduced-motion: reduce) { .ph-island__eq b { animation: none; } }
.phone--feed .feed__bars { top: calc(2.4% + max(16px, 4.2%) + 10px); }
