/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site */
/* Новые блоки главной (прототип 2026-10-21): до и после, +3 snips, правка словами, настоящие артисты, FAQ.
   Токены и размеры — как в canvas.css (заголовок секции, плашка на видео, тёмная карточка How wild). */

.nb { --nb-ease: cubic-bezier(0.2, 0, 0, 1); --nb-spring: cubic-bezier(0.34, 1.32, 0.5, 1); position: relative; }
.nb:not(.nb-card) { padding-block: clamp(72px, 9vw, 128px) clamp(24px, 3vw, 40px); overflow-x: clip; }
.nb *, .nb *::before, .nb *::after { box-sizing: border-box; }
/* та же сетка, что у тёмных карточек (демка, How wild, правка): 1160 px контента */
.nb-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.nb-card { margin: clamp(8px, 1.2vw, 16px) clamp(8px, 1.2vw, 16px) 0; border-radius: clamp(28px, 3vw, 44px); overflow: clip; background: var(--bg-canvas); color: var(--text-primary); padding-block: clamp(56px, 7vw, 104px); }
.nb-eyebrow { margin: 0 0 12px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-accent); }
.nb-h { margin: 0; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.nb-lead { margin: 16px 0 0; max-width: 32em; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.45; color: var(--text-secondary); text-wrap: pretty; }
.nb-lead a { color: var(--text-primary); text-underline-offset: 3px; }
.nb-head-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: end; gap: 20px 64px; }
.nb-head-split .nb-lead { margin: 0; }

/* видео в рамке, плашка и звук — как в How wild */
.nb-clip, .nb-out { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: #1B1D22; aspect-ratio: 9 / 16; isolation: isolate; }
.nb-clip video, .nb-out video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
[data-video-group] { position: relative; }
[data-video-group] .sn-group-source { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .001; pointer-events: none; }
[data-video-group] canvas,.sn-group-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
[data-video-group] canvas { opacity: 0; }
.sn-group-ready canvas { opacity: 1; }
.sn-group-ready .sn-group-poster { visibility: hidden; }
.sn-group-retry { display: block; margin: 16px auto; }
.nb-chip { position: absolute; z-index: 2; top: 10px; left: 10px; height: 26px; margin: 0; padding: 0 10px; display: flex; align-items: center; gap: 5px; border-radius: 999px; background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #F7F6F2; font-size: 12px; line-height: 16px; white-space: nowrap; }
.nb-chip b { font-weight: 600; }
.nb-sound { position: absolute; z-index: 3; top: 6px; right: 6px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #F7F6F2; cursor: pointer; transition: background 160ms var(--nb-ease), transform 160ms var(--nb-ease); }
.nb-sound::before { content: ""; position: absolute; inset: -4px; border-radius: 999px; }
.nb-sound:hover { background: rgba(0, 0, 0, 0.62); }
.nb-sound:active { transform: scale(0.94); }
.nb-sound .nb-i-on, .nb-sound[aria-pressed="true"] .nb-i-off { display: none; }
.nb-sound[aria-pressed="true"] .nb-i-on { display: block; }
.nb-sound[aria-pressed="true"] { background: #F7F6F2; color: #0B0C0E; }
.nb-sound:focus-visible { outline-offset: 2px; }

/* ---------- A. До и после ---------- */
.nb-ba-stage { margin-top: clamp(36px, 4.5vw, 64px); display: grid; grid-template-columns: minmax(0, 330px) minmax(96px, 1fr) minmax(0, 330px); align-items: center; }
.nb-roll { margin: 0; padding: 12px; border-radius: 28px; background: var(--bg-surface); box-shadow: var(--shadow-low), 0 0 0 1px var(--divider-default); }
.nb-roll-top { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 12px; font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.nb-roll-n { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.nb-roll-grid { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.nb-raw { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--bg-surface-subtle); }
.nb-raw video { width: 100%; height: 100%; object-fit: cover; display: block; }
.nb-dur { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 6px; background: rgba(11, 12, 14, 0.55); color: #F7F6F2; font-size: 11px; line-height: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nb-tick { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--action-accent); box-shadow: 0 0 0 1.5px #fff; transform: scale(0); transition: transform 380ms var(--nb-spring); }
.nb-tick::before { content: ""; position: absolute; left: 6px; top: 6px; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.nb-out { box-shadow: 0 32px 72px rgba(11, 12, 14, 0.28), 0 12px 24px rgba(11, 12, 14, 0.12); }
/* появление: плитки выбираются по очереди, ролик поднимается; без движения — сразу в конечном виде */
@media (prefers-reduced-motion: no-preference) {
  .nb-ba-stage .nb-raw { transition: transform 700ms var(--nb-spring), opacity 500ms var(--nb-ease); transition-delay: calc(var(--i, 0) * 55ms); }
  .nb-ba-stage:not(.is-in) .nb-raw { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r, 0deg)) scale(0.92); }
  .nb-ba-stage .nb-tick { transition-delay: calc(500ms + var(--i, 0) * 90ms); }
  .nb-ba-stage .nb-out { transition: transform 900ms var(--nb-spring) 900ms, opacity 600ms var(--nb-ease) 900ms; }
  .nb-ba-stage:not(.is-in) .nb-out { opacity: 0; transform: translateY(28px) scale(0.96); }
}
.nb-ba-stage.is-in .nb-tick { transform: scale(1); }
.nb-raw:nth-child(1) { --i: 0; --dx: -26px; --dy: 18px; --r: -6deg; }
.nb-raw:nth-child(2) { --i: 1; --dx: 4px; --dy: 30px; --r: 4deg; }
.nb-raw:nth-child(3) { --i: 2; --dx: 24px; --dy: 12px; --r: 7deg; }
.nb-raw:nth-child(4) { --i: 3; --dx: -30px; --dy: -6px; --r: 5deg; }
.nb-raw:nth-child(5) { --i: 4; --dx: 8px; --dy: -18px; --r: -5deg; }
.nb-raw:nth-child(6) { --i: 5; --dx: 28px; --dy: -2px; --r: -8deg; }
.nb-raw:nth-child(7) { --i: 6; --dx: -18px; --dy: -26px; --r: 7deg; }
.nb-raw:nth-child(8) { --i: 7; --dx: 6px; --dy: -34px; --r: -3deg; }
.nb-raw:nth-child(9) { --i: 8; --dx: 22px; --dy: -20px; --r: 6deg; }

/* «Snipping» между плёнкой и готовым роликом: раскадровки экрана обработки из приложения (motion.css канваса),
   230 px и в полтора раза медленнее приложения; пунктирная нить от плёнки к нарезке и от нарезки к ролику.
   Коллаж 350×430 масштабируется (--k из blocks.js) и стоит по центру нити на любой стадии. */
.nb-mid { position: relative; align-self: center; display: flex; align-items: center; gap: 16px; padding-inline: 4px; }
.nb-mid::before, .nb-mid::after { content: ""; position: absolute; z-index: 1; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg-canvas); box-shadow: inset 0 0 0 2px var(--action-accent); }
.nb-mid::before { left: -1px; }
.nb-mid::after { right: -1px; }
.nb-wire { position: relative; flex: 1; min-width: 28px; height: 2px; clip-path: inset(-24px 0); background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--action-accent) 45%, transparent) 0 6px, transparent 6px 14px); background-size: 28px 2px; }
@media (prefers-reduced-motion: no-preference) {
  .nb-wire { animation: nb-march 1400ms linear infinite; }
  }
@keyframes nb-march { to { background-position: 28px 0; } }
@keyframes nb-march-v { to { background-position: 0 28px; } }
.nb-snip { --ease-edit: cubic-bezier(0.2, 0, 0, 1); --ease-cut: cubic-bezier(0.9, 0, 0.1, 1); --k: 0.6571; position: relative; flex: none; width: 230px; }
.nb-cgslot { position: relative; width: 100%; height: calc(430px * var(--k)); }
.nb-cg { position: absolute; top: 0; left: 0; width: 350px; height: 430px; transform: scale(var(--k)); transform-origin: 0 0; transition: top 800ms var(--ease-edit); }
/* стадии разной высоты держим по центру нити */
.nb-cg[data-st="prep"] { top: calc(40px * var(--k)); }
.nb-cg[data-st="fin"] { top: calc(65px * var(--k)); }
/* знак Snippist под нарезкой: лоадер из приложения (DS §76–77), вариация следует за стадией — Reel, Scan, Gather */
.nb-mk { --lv-ink: var(--text-primary); --lv-blue: var(--brand-blue); position: absolute; left: 50%; top: calc(100% + 18px); translate: -50% 0; display: block; overflow: hidden; }
.nb-mk span { position: absolute; display: block; }
.nb-mk .nb-ldr { will-change: left, width, top, height; }
@keyframes nb-k-reel {
  0% { left: 103.608%; width: 30.928%; top: 25%; height: 50%; background-color: var(--lv-ink); opacity: 0; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  15%, 25% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  40%, 50% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  65%, 75% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); opacity: 1; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  90%, 100% { left: -34.536%; width: 30.928%; top: 25%; height: 50%; background-color: var(--lv-ink); opacity: 0; }
}
.nb-mk .nb-reel { animation: nb-k-reel 2600ms linear infinite; }
@keyframes nb-k-ga-0 {
  0%, 12% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 0%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 0%; width: 13.402%; top: 16.667%; height: 66.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 0%; width: 13.402%; top: 30%; height: 40%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 0%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.nb-mk .nb-ga-0 { animation: nb-k-ga-0 2600ms linear infinite; }
@keyframes nb-k-ga-1 {
  0%, 12% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 17.526%; width: 13.402%; top: 15%; height: 70%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 17.526%; width: 13.402%; top: 26.667%; height: 46.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 17.526%; width: 13.402%; top: 20%; height: 60%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 17.526%; width: 13.402%; top: 15%; height: 70%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.nb-mk .nb-ga-1 { animation: nb-k-ga-1 2600ms linear infinite; }
@keyframes nb-k-ga-2 {
  0%, 12% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 35.052%; width: 7.216%; top: 8.333%; height: 83.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 35.052%; width: 7.216%; top: 18.333%; height: 63.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 35.052%; width: 7.216%; top: 3.333%; height: 93.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 35.052%; width: 7.216%; top: 8.333%; height: 83.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; }
}
.nb-mk .nb-ga-2 { animation: nb-k-ga-2 2600ms linear infinite; }
@keyframes nb-k-ga-3 {
  0%, 12% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 46.392%; width: 7.216%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 46.392%; width: 7.216%; top: 6.667%; height: 86.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 46.392%; width: 7.216%; top: 13.333%; height: 73.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 46.392%; width: 7.216%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; }
}
.nb-mk .nb-ga-3 { animation: nb-k-ga-3 2600ms linear infinite; }
@keyframes nb-k-ga-4 {
  0%, 12% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 57.732%; width: 7.216%; top: 13.333%; height: 73.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 57.732%; width: 7.216%; top: 0%; height: 100%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 57.732%; width: 7.216%; top: 8.333%; height: 83.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 57.732%; width: 7.216%; top: 13.333%; height: 73.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; }
}
.nb-mk .nb-ga-4 { animation: nb-k-ga-4 2600ms linear infinite; }
@keyframes nb-k-ga-5 {
  0%, 12% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 69.072%; width: 13.402%; top: 18.333%; height: 63.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 69.072%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 69.072%; width: 13.402%; top: 15%; height: 70%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 69.072%; width: 13.402%; top: 18.333%; height: 63.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.nb-mk .nb-ga-5 { animation: nb-k-ga-5 2600ms linear infinite; }
@keyframes nb-k-ga-6 {
  0%, 12% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  24% { left: 86.598%; width: 13.402%; top: 28.333%; height: 43.333%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  40% { left: 86.598%; width: 13.402%; top: 16.667%; height: 66.667%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  56% { left: 86.598%; width: 13.402%; top: 25%; height: 50%; animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  68% { left: 86.598%; width: 13.402%; top: 28.333%; height: 43.333%; animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  82%, 100% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; }
}
.nb-mk .nb-ga-6 { animation: nb-k-ga-6 2600ms linear infinite; }
@keyframes nb-k-sn-l {
  0%, 10% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  18%, 21.2% { left: 0%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  25.2% { left: 0%; width: 30.928%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  33.2%, 68% { left: 0%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  80%, 100% { left: 0%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); }
}
.nb-mk .nb-sn-l { animation: nb-k-sn-l 2800ms linear infinite; }
@keyframes nb-k-sn-c {
  0%, 10% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  18%, 37.5% { left: 35.052%; width: 29.897%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  41.5% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  49.5%, 68% { left: 35.052%; width: 29.897%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  80%, 100% { left: 35.052%; width: 29.897%; top: 0%; height: 100%; background-color: var(--lv-blue); }
}
.nb-mk .nb-sn-c { animation: nb-k-sn-c 2800ms linear infinite; }
@keyframes nb-k-sn-r {
  0%, 10% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1); }
  18%, 53.7% { left: 69.072%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
  57.7% { left: 69.072%; width: 30.928%; top: 0%; height: 100%; background-color: var(--lv-blue); animation-timing-function: cubic-bezier(0.05, 0.6, 0.3, 1); }
  65.7%, 68% { left: 69.072%; width: 30.928%; top: 20%; height: 60%; background-color: var(--lv-ink); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
  80%, 100% { left: 69.072%; width: 30.928%; top: 10.833%; height: 78.333%; background-color: var(--lv-ink); }
}
.nb-mk .nb-sn-r { animation: nb-k-sn-r 2800ms linear infinite; }
@keyframes nb-k-sn-head {
  0%, 12% { left: -4.124%; opacity: 0; }
  16% { left: -4.124%; opacity: 1; }
  62% { left: 93.567%; opacity: 1; }
  66%, 100% { left: 102.062%; opacity: 0; }
}
.nb-mk .nb-sn-head { animation: nb-k-sn-head 2800ms linear infinite; }
.nb-e { position: absolute; overflow: hidden; border-radius: 18px; background: var(--bg-surface-subtle); box-shadow: 0 12px 28px rgba(11, 12, 14, 0.14); transition-property: left, top, width, height, opacity, border-radius; transition-duration: 800ms; transition-timing-function: var(--ease-edit); }
.nb-e img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nb-e .pst { opacity: 0; transition: opacity 800ms var(--ease-edit); }
.nb-cg[data-st="fin"] .e3 .pst { opacity: 1; }
.nb-e.e0 { left: 0; top: 20px; width: 110px; height: 150px; }
.nb-e.e1 { left: 120px; top: 0; width: 110px; height: 170px; }
.nb-e.e2 { left: 240px; top: 30px; width: 110px; height: 140px; }
.nb-e.e3 { left: 0; top: 180px; width: 110px; height: 160px; }
.nb-e.e4 { left: 120px; top: 180px; width: 110px; height: 130px; }
.nb-e.e5 { left: 240px; top: 180px; width: 110px; height: 170px; }
.nb-cg[data-st="find"] .e0 { left: 0; top: 0; width: 92px; height: 124px; opacity: 0.5; }
.nb-cg[data-st="find"] .e1 { left: 268px; top: 14px; width: 82px; height: 112px; opacity: 0.5; }
.nb-cg[data-st="find"] .e2 { opacity: 0; }
.nb-cg[data-st="find"] .e3 { left: 56px; top: 36px; width: 238px; height: 330px; border-radius: 14px; }
.nb-cg[data-st="find"] .e4 { left: 262px; top: 322px; width: 88px; height: 108px; opacity: 0.5; }
.nb-cg[data-st="find"] .e5 { left: 0; top: 300px; width: 100px; height: 130px; opacity: 0.5; }
.nb-cg[data-st="build"] .e0 { left: 252px; top: 334px; width: 98px; height: 96px; opacity: 0.8; }
.nb-cg[data-st="build"] .e1 { left: 268px; top: 14px; width: 82px; height: 112px; opacity: 0; }
.nb-cg[data-st="build"] .e2 { left: 0; top: 322px; width: 118px; height: 108px; opacity: 0.8; }
.nb-cg[data-st="build"] .e3 { left: 56px; top: 36px; width: 238px; height: 330px; border-radius: 14px; opacity: 0; }
.nb-cg[data-st="build"] .e4 { left: 262px; top: 322px; width: 88px; height: 108px; opacity: 0; }
.nb-cg[data-st="build"] .e5 { left: 0; top: 300px; width: 100px; height: 130px; opacity: 0; }
.nb-cg[data-st="fin"] .e0 { left: 0; top: 96px; width: 44px; height: 62px; opacity: 0.3; border-radius: 6px; }
.nb-cg[data-st="fin"] .e1 { left: 268px; top: 14px; width: 82px; height: 112px; opacity: 0; }
.nb-cg[data-st="fin"] .e2 { left: 0; top: 322px; width: 118px; height: 108px; opacity: 0; }
.nb-cg[data-st="fin"] .e3 { left: 72px; top: 0; width: 206px; height: 300px; border-radius: 16px; }
.nb-cg[data-st="fin"] .e4 { left: 306px; top: 214px; width: 46px; height: 64px; opacity: 0.25; border-radius: 6px; }
.nb-cg[data-st="fin"] .e5 { left: 306px; top: 28px; width: 44px; height: 62px; opacity: 0.3; border-radius: 6px; }
.nb-crop { position: absolute; z-index: 3; left: 118px; top: 36px; width: 128px; height: 330px; border: 3px solid var(--action-accent); border-radius: 8px; opacity: 0; transition: opacity 450ms ease; }
.nb-cg[data-st="find"] .nb-crop { opacity: 1; animation: nb-m-crop 3900ms var(--ease-cut) infinite; }
.nb-sl { position: absolute; z-index: 2; width: 90px; height: 290px; overflow: hidden; border-radius: 10px; opacity: 0; transition: opacity 450ms ease; }
.nb-sl img { position: absolute; width: 270px; height: 330px; max-width: none; object-fit: cover; }
.nb-sl.s0 { left: 40px; top: 52px; } .nb-sl.s0 img { left: 0; top: -20px; }
.nb-sl.s1 { left: 130px; top: 12px; } .nb-sl.s1 img { left: -90px; top: 20px; }
.nb-sl.s2 { left: 220px; top: 38px; } .nb-sl.s2 img { left: -180px; top: -6px; }
.nb-cg[data-st="build"] .nb-sl { opacity: 1; }
.nb-cg[data-st="build"] .s0 { animation: nb-m-strip-a 4800ms var(--ease-cut) infinite; }
.nb-cg[data-st="build"] .s1 { animation: nb-m-strip-b 4800ms var(--ease-cut) infinite; }
.nb-cg[data-st="build"] .s2 { animation: nb-m-strip-c 4800ms var(--ease-cut) infinite; }
.nb-eline { position: absolute; z-index: 4; left: 219px; top: 0; width: 4px; height: 344px; border-radius: 2px; background: var(--action-accent); opacity: 0; transition: opacity 450ms ease; }
.nb-cg[data-st="build"] .nb-eline { opacity: 1; animation: nb-m-editline 4800ms var(--ease-cut) infinite; }
.nb-snip:has([data-st="build"]) .nb-snip:has([data-st="build"]) .nb-snip:has([data-st="build"]) @keyframes nb-m-crop { 0%, 26% { transform: translate3d(0, 0, 0); } 32%, 58% { transform: translate3d(-46px, 0, 0); } 64%, 90% { transform: translate3d(38px, 0, 0); } 96%, 100% { transform: translate3d(0, 0, 0); } }
@keyframes nb-m-strip-a { 0%, 20% { transform: none; } 24%, 46% { transform: translate3d(0, -22px, 0); } 50%, 72% { transform: translate3d(0, 10px, 0); } 76%, 100% { transform: none; } }
@keyframes nb-m-strip-b { 0%, 20% { transform: none; } 24%, 46% { transform: translate3d(0, 18px, 0); } 50%, 72% { transform: translate3d(0, -14px, 0); } 76%, 100% { transform: none; } }
@keyframes nb-m-strip-c { 0%, 20% { transform: none; } 24%, 46% { transform: translate3d(0, -8px, 0); } 50%, 72% { transform: translate3d(0, 20px, 0); } 76%, 100% { transform: none; } }
@keyframes nb-m-editline { 0%, 20% { transform: none; } 24%, 46% { transform: translate3d(90px, 0, 0); } 50%, 72% { transform: translate3d(-90px, 0, 0); } 76%, 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nb-e, .nb-cg { transition-duration: 0ms !important; }
  .nb-snip *, .nb-wire, }

/* ---------- B. Снимаешь раз, постишь каждый день: две недели сниппетов ---------- */
.nb-cal { margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.nb-day .nb-clip { border-radius: clamp(12px, 1.2vw, 18px); box-shadow: 0 12px 28px rgba(11, 12, 14, 0.12); }
.nb-day .nb-chip { top: 8px; left: 8px; height: 22px; padding: 0 8px; font-size: 11px; line-height: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .nb-day { transition: transform 700ms var(--nb-spring), opacity 500ms var(--nb-ease); transition-delay: calc(var(--d, 0) * 45ms); }
  .nb-cal:not(.is-in) .nb-day { opacity: 0; transform: translateY(24px) scale(0.96); }
}
.nb-day:nth-child(1) { --d: 0; }
.nb-day:nth-child(2) { --d: 1; }
.nb-day:nth-child(3) { --d: 2; }
.nb-day:nth-child(4) { --d: 3; }
.nb-day:nth-child(5) { --d: 4; }
.nb-day:nth-child(6) { --d: 5; }
.nb-day:nth-child(7) { --d: 6; }
.nb-day:nth-child(8) { --d: 2; }
.nb-day:nth-child(9) { --d: 3; }
.nb-day:nth-child(10) { --d: 4; }
.nb-day:nth-child(11) { --d: 5; }
.nb-day:nth-child(12) { --d: 6; }
.nb-day:nth-child(13) { --d: 7; }
.nb-day:nth-child(14) { --d: 8; }

/* ---------- C. Правка словами ---------- */
.nb-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(40px, 7vw, 112px); row-gap: 40px; max-width: 1160px; }
.nb-edit-copy { display: flex; flex-direction: column; gap: clamp(28px, 3vw, 40px); }
.nb-note { max-width: 520px; padding: 18px 18px 14px; border-radius: 24px; background: #F7F6F2; color: #0B0C0E; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.nb-note-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; line-height: 18px; font-weight: 600; color: #60636B; }
.nb-note-scope { padding: 3px 10px; border-radius: 999px; background: #EFEEE9; color: #0B0C0E; font-weight: 600; }
.nb-note-text { display: grid; margin: 12px 0 14px; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.4; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.nb-note-text > span { grid-area: 1 / 1; }
.nb-note.is-pending .nb-note-full { color: transparent; }
.nb-note.is-typing .nb-note-typed::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; margin-right: -4px; vertical-align: -0.15em; background: #0060FF; animation: nb-caret 900ms steps(1) infinite; }
@keyframes nb-caret { 50% { opacity: 0; } }
.nb-note-bottom { display: flex; justify-content: flex-end; }
.nb-note-send { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px; background: #0B0C0E; color: #F7F6F2; font-size: 15px; font-weight: 600; transition: transform 160ms var(--nb-ease), background 200ms; }
.nb-note.is-sent .nb-note-send { animation: nb-press 520ms var(--nb-ease); }
@keyframes nb-press { 30% { transform: scale(0.92); background: #0060FF; } }
.nb-ed-prev { position: relative; margin: 0; width: clamp(260px, 25vw, 330px); aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #1B1D22; box-shadow: 0 32px 72px rgba(0, 0, 0, 0.55); isolation: isolate; }
.nb-ed-prev video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 260ms var(--nb-ease); }
.nb-ed-prev video.is-on { opacity: 1; }
.nb-seg { position: absolute; z-index: 3; left: 50%; bottom: 14px; translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nb-seg button { position: relative; z-index: 1; min-width: 84px; height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: rgba(247, 246, 242, 0.75); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: color 200ms; }
.nb-seg button[aria-pressed="true"] { color: #0B0C0E; }
.nb-seg i { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: #F7F6F2; transition: translate 380ms var(--nb-spring); }
.nb-seg:has(button[data-v="after"][aria-pressed="true"]) i { translate: 100% 0; }

/* ---------- D. Настоящие артисты ---------- */
.nb-made-side { display: flex; flex-direction: column; gap: 20px; }
.nb-arrows { display: flex; gap: 8px; }
.nb-arrow { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-low), 0 0 0 1px var(--divider-default); cursor: pointer; transition: opacity 200ms, transform 160ms var(--nb-ease); }
.nb-arrow.is-prev svg { transform: scaleX(-1); }
.nb-arrow:disabled { opacity: 0.35; cursor: default; }
.nb-arrow:not(:disabled):active { transform: scale(0.94); }
.nb-strip { --nb-h: clamp(360px, 31vw, 460px); --nb-edge: max(20px, calc((100vw - 1200px) / 2 + 20px)); margin: clamp(32px, 4vw, 52px) 0 0; padding: 0 var(--nb-edge) 8px; list-style: none; display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--nb-edge); scrollbar-width: none; overscroll-behavior-x: contain; }
.nb-strip::-webkit-scrollbar { display: none; }
.nb-sn { flex: none; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.nb-sn .nb-clip { height: var(--nb-h); aspect-ratio: 9 / 16; cursor: pointer; }
.nb-sn.is-w .nb-clip { aspect-ratio: 16 / 9; }
.nb-cap { margin: 0; display: flex; flex-direction: column; gap: 2px; padding-inline: 4px; font-size: 15px; line-height: 20px; }
.nb-cap b { font-weight: 600; }
.nb-cap span { font-size: 14px; color: var(--text-secondary); }
@media (prefers-reduced-motion: no-preference) {
  .nb-sn .nb-clip video { transition: transform 600ms var(--nb-ease); }
  .nb-sn .nb-clip:hover video { transform: scale(1.03); }
}

.nb-fill, .nb-fs { display: none; }
.nb-fs { position: absolute; z-index: 3; left: 10px; bottom: 10px; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #F7F6F2; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.nb-fs::before { content: ""; position: absolute; inset: -5px; border-radius: 999px; }

/* ---------- E. FAQ: пять вопросов, светится строка в центре экрана, как текст песни в плеере ---------- */
/* больше воздуха перед финальным экраном */
#faq { padding-bottom: clamp(80px, 9vw, 136px); }
.nb-lyr-grid { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: 32px clamp(48px, 8vw, 128px); align-items: start; }
.nb-player { position: sticky; top: clamp(24px, 10vh, 96px); display: flex; flex-direction: column; gap: 24px; }
.nb-player-title { font-size: clamp(36px, 3.6vw, 52px); }
.nb-mini { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.nb-cover { width: 44px; aspect-ratio: 1; border-radius: 10px; background: var(--spark); display: flex; align-items: center; justify-content: center; gap: 2px; }
.nb-cover span { width: 9px; height: 11px; border-radius: 2px; background: #0B0C0E; }
.nb-cover span:nth-child(2) { height: 15px; background: #0060FF; }
@media (prefers-reduced-motion: no-preference) {
  .nb-lyr.is-playing .nb-cover span { animation: nb-eq 1100ms cubic-bezier(0.45, 0, 0.55, 1) infinite alternate; }
  .nb-lyr.is-playing .nb-cover span:nth-child(2) { animation-duration: 820ms; animation-delay: -300ms; }
  .nb-lyr.is-playing .nb-cover span:nth-child(3) { animation-duration: 1350ms; animation-delay: -650ms; }
}
@keyframes nb-eq { 0% { transform: scaleY(0.7); } 45% { transform: scaleY(1.2); } 100% { transform: scaleY(0.9); } }
.nb-mini-meta { display: flex; flex-direction: column; font-size: 14px; line-height: 18px; }
.nb-mini-meta b { font-weight: 600; }
.nb-mini-meta span { color: var(--text-secondary); }
.nb-player-note, .nb-lyr-foot { margin: 0; font-size: 15px; line-height: 21px; color: var(--text-secondary); }
.nb-player-note a, .nb-lyr-foot a { color: var(--text-primary); text-underline-offset: 3px; }
.nb-lyr-foot { display: none; }
.nb-lyrics { margin: 0; padding: 4px 0 0; list-style: none; display: flex; flex-direction: column; gap: clamp(28px, 4vh, 40px); }
.nb-line-q { margin: 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.nb-line-a { margin: 10px 0 0; max-width: 36em; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }
/* приглушение включает скрипт: без него весь текст обычный */
.nb-lyr.is-ready .nb-line { cursor: pointer; }
.nb-lyr.is-ready .nb-line-q, .nb-lyr.is-ready .nb-line-a { transition: opacity 420ms var(--nb-ease); }
.nb-lyr.is-ready .nb-line:not(.is-on) .nb-line-q { opacity: 0.36; }
.nb-lyr.is-ready .nb-line:not(.is-on) .nb-line-a { opacity: 0.5; }
.nb-lyr.is-ready .nb-line:not(.is-on):hover .nb-line-q { opacity: 0.7; }

/* ---------- узкие экраны ---------- */
@media (max-width: 860px) {
  .nb-head-split { grid-template-columns: minmax(0, 1fr); }
  .nb-head-split .nb-lead { margin-top: 0; }
  .nb-ba-stage { grid-template-columns: minmax(0, 360px); justify-content: center; row-gap: 28px; }
  .nb-out { width: min(100%, 330px); justify-self: center; }
  .nb-mk { position: relative; left: auto; top: auto; translate: none; margin: 16px auto 0; }
  .nb-mid { flex-direction: column; justify-self: center; gap: 14px; padding: 4px 0; }
  .nb-mid::before, .nb-mid::after { left: 50%; right: auto; margin: 0 0 0 -5px; }
  .nb-mid::before { top: -1px; }
  .nb-mid::after { top: auto; bottom: -1px; }
  .nb-wire { flex: none; width: 2px; height: 52px; min-width: 0; clip-path: inset(0 -24px); background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--action-accent) 45%, transparent) 0 6px, transparent 6px 14px); background-size: 2px 28px; animation-name: nb-march-v; }
    .nb-cal { margin-inline: -20px; padding: 0 20px 8px; grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: min(36vw, 180px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: none; }
  .nb-cal::-webkit-scrollbar { display: none; }
  .nb-day { scroll-snap-align: start; }
  .nb-edit { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .nb-edit-copy { justify-self: stretch; }
  .nb-lyr-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .nb-player { position: static; gap: 16px; }
  .nb-player-note { display: none; }
  .nb-lyr-foot { display: block; margin-top: 8px; }
}
@media (max-width: 520px) {
  .nb-strip { --nb-h: min(560px, 118vw); }
  /* широкий ролик на телефоне: карточка той же высоты, ролик целиком по центру, вокруг размытый кадр; тап — полный экран */
  .nb-sn.is-w .nb-clip { width: calc(100vw - 40px); aspect-ratio: auto; }
  .nb-sn.is-w .nb-clip video { object-fit: contain; z-index: 1; }
  .nb-fill { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) saturate(1.15) brightness(0.5); transform: scale(1.3); }
  .nb-fs { display: inline-flex; }
}

/* How wild: рамка ползунка только при фокусе с клавиатуры (в canvas.css она на любом фокусе, в том числе от мыши) */
#wild .sn-w-slider:focus-within { outline: none; }
#wild .sn-w-slider:has(> input:focus-visible) { outline: 3px solid var(--text-accent); outline-offset: 4px; border-radius: 12px; }
#wild .sn-w-slider.nb-pointer:has(> input:focus-visible) { outline: none; }

/* переход по ссылке шапки: по прибытии по заголовку проходит блик акцентного цвета */
.nb-arrive h2:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .nb-arrive h2 { background: linear-gradient(100deg, currentColor 0 38%, var(--action-accent) 50%, currentColor 62% 100%) 100% 0 / 300% 100% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nb-sheen 1300ms cubic-bezier(0.3, 0, 0.1, 1) both; }
}
@keyframes nb-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }


/* /free на главной: пилюля под формой первого и финального экранов */
.nb-free { margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--divider-default); background: color-mix(in srgb, var(--text-primary) 4%, transparent); color: var(--text-primary); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; transition: border-color 160ms, background 160ms; }
.nb-free:hover { border-color: var(--divider-strong, rgba(247, 246, 242, 0.22)); background: color-mix(in srgb, var(--text-primary) 8%, transparent); }
.nb-free-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--spark); }
.nb-free-m { font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.nb-free svg { flex: none; color: var(--text-secondary); transition: translate 200ms cubic-bezier(0.2, 0, 0, 1); }
.nb-free:hover svg { translate: 3px 0; color: var(--text-primary); }
@media (max-width: 420px) { .nb-free { flex-wrap: wrap; justify-content: center; row-gap: 0; padding: 6px 14px; } .nb-free-m { order: 3; flex-basis: 100%; text-align: center; } }
.nb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.nb-free-chip { height: 30px; box-sizing: border-box; padding: 0 10px 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--text-primary); color: var(--bg-canvas); font-size: 13px; line-height: 18px; font-weight: 600; text-decoration: none; transition: opacity 160ms; }
.nb-free-chip:hover { opacity: 0.88; }
.nb-free-chip svg { transition: translate 200ms cubic-bezier(0.2, 0, 0, 1); }
.nb-free-chip:hover svg { translate: 2px 0; }
.nb-free-chip::before { content: ""; position: absolute; inset: -7px 0; }
.nb-free-chip { position: relative; }

/* @spec spec://modules/experience/FEAT-004-account-and-service-screens#scenarios.site */
.sn-w-retry{position:absolute;z-index:8;left:50%;top:50%;transform:translate(-50%,-50%);padding:12px 18px;border:0;border-radius:24px;background:#dfff00;color:#141414;font-family:inherit;font-size:14px;font-weight:600;cursor:pointer}
.sn-w-retry[hidden]{display:none}
