/* Vitrine V3.1: правки Паши к V3 (02.10.2026). Поверх style.css из V3: новые сцены и анимации. */

:root {
  --amber: #ffb547;
  --spring: cubic-bezier(.22, 1.2, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- первый экран: одна загрузочная последовательность ---------- */
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(.32em); filter: blur(10px); transition: opacity .9s var(--out), transform .9s var(--out), filter .9s var(--out); transition-delay: calc(var(--i) * 45ms + 80ms); }
[data-load] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--out), transform .8s var(--out); }
.is-loaded .hero-title .w { opacity: 1; transform: none; filter: none; }
.is-loaded .hero-pill[data-load] { opacity: 1; transform: none; transition-delay: .05s; }
.is-loaded .hero-sub[data-load] { opacity: 1; transform: none; transition-delay: .55s; }
.is-loaded .handle-form[data-load] { opacity: 1; transform: none; transition-delay: .7s; }
.is-loaded .hero-note[data-load] { opacity: 1; transform: none; transition-delay: .82s; }
.hero-sub { max-width: 720px; }

/* ---------- сцена: Instagram, Vitrine изучает, Vitrine понял, сайт ---------- */
.stage-mid, .stage-site { transition: opacity .6s var(--out), filter .6s var(--out); }
.stage:not(.is-study):not(.is-got):not(.is-ready) .stage-mid,
.stage:not(.is-got):not(.is-ready) .stage-site { opacity: .32; filter: saturate(.4); }
.stage .phone { transition: transform .7s var(--spring), opacity .5s var(--out); }
.stage.is-swap .phone { opacity: 0; transform: translateY(16px) scale(.97); }

.proc { position: relative; width: 100%; display: grid; min-height: 352px; }
.proc > * { grid-area: 1 / 1; transition: opacity .5s var(--out), transform .6s var(--out), filter .5s var(--out); }
.proc-study { align-self: start; }
.stage.is-got .proc-study, .stage.is-ready .proc-study { opacity: 0; transform: translateY(-14px); filter: blur(6px); pointer-events: none; }
.got { align-self: start; opacity: 0; pointer-events: none; }
.stage.is-got .got, .stage.is-ready .got { opacity: 1; pointer-events: auto; }

.proc-bar { height: 4px; border-radius: 4px; background: rgba(11, 13, 18, .08); overflow: hidden; margin-bottom: 12px; }
.proc-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--cobalt), #7d8dff); transition: width .35s linear; }

.study { display: grid; gap: 4px; }
.study li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: -.01em; opacity: .38; transition: opacity .3s, border-color .3s, box-shadow .3s; }
.study li.run { opacity: 1; border-color: rgba(43, 71, 246, .45); box-shadow: 0 0 0 3px rgba(43, 71, 246, .1); }
.study li.ok { opacity: 1; }
.st-ic { position: relative; width: 18px; height: 18px; }
.st-ic::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(11, 13, 18, .14); }
.study li.run .st-ic::before { border-color: rgba(43, 71, 246, .2); border-top-color: var(--cobalt); animation: spin .7s linear infinite; }
.study li.ok .st-ic::before { border: 0; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6 5.4-6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; animation: pop .35s var(--spring); }
.st-n { font-family: var(--mono); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.study li.run .st-n, .study li.ok .st-n { color: var(--ink); }

.got { display: grid; gap: 6px; }
.got div { padding: 10px 14px 11px; border-radius: 13px; background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateY(10px); filter: blur(6px); transition: opacity .5s var(--out), transform .6s var(--spring), filter .5s var(--out); }
.got div.on { opacity: 1; transform: none; filter: none; }
.got dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.got dd { margin-top: 2px; font-size: 14.5px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.got div:last-child { background: #fff7ea; border-color: #f5dfb8; }

.stage-site { grid-template-rows: auto auto auto; align-content: start; }
.stage-site .stage-label { text-align: center; }
.browser-body img { clip-path: inset(0 0 100% 0); transition: opacity .7s var(--out), transform 1s var(--out), filter .7s var(--out), clip-path 1.1s var(--out); }
.stage.is-ready .browser-body img { clip-path: inset(0 0 0 0); }
.stage-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.stage-actions .btn-ink { animation: none; }
.stage.is-ready .stage-actions .btn-ink { animation: nudge .9s .4s var(--spring) both; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.4); } }
@keyframes nudge { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- что Vitrine понимает: закреплённая сцена, шаги по прокрутке ---------- */
.understand { padding-bottom: 0; }
.understand .sec-head { margin-bottom: 0; }
.dz { position: relative; height: 560svh; }
.dz-pin { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: 70px; overflow: hidden; }
.dz-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }

.dz-src { padding: 22px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid var(--night-line); }
.dz-src-head { display: flex; align-items: center; gap: 12px; }
.dz-src-head .ig-ring img { width: 48px; height: 48px; border-color: var(--night-2); }
.dz-src-head b { display: block; font-family: var(--mono); font-weight: 500; font-size: 15px; color: #fff; }
.dz-src-head span { font-size: 13px; color: var(--on-night-muted); }
.dz-src-bio { margin-top: 12px; font-size: 14px; color: var(--on-night); padding: 6px 10px; margin-left: -10px; border-radius: 8px; transition: background-color .4s, box-shadow .4s; }
.dz[data-step="1"] .dz-src-bio, .dz[data-step="4"] .dz-src-bio { background: rgba(43, 71, 246, .22); box-shadow: inset 0 0 0 1px rgba(140, 154, 255, .5); }
.dz-src-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 12px; border-radius: 12px; overflow: hidden; }
.dz-src-tiles img { width: 100%; aspect-ratio: 1; object-fit: cover; opacity: .55; filter: saturate(.7); transition: opacity .45s, filter .45s, transform .6s var(--spring); }
.dz-src-tiles img.hl { opacity: 1; filter: none; transform: scale(.94); outline: 2px solid #8c9aff; outline-offset: -2px; border-radius: 4px; }
.dz[data-step="5"] .dz-src-tiles img { opacity: 1; filter: none; }
.dz-src-note { margin-top: 12px; font-size: 13px; color: var(--on-night-muted); }

.dz-rail { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.dz-rail li { position: relative; padding-top: 12px; font-size: 13px; font-weight: 500; color: rgba(233, 235, 241, .38); transition: color .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-rail li::before, .dz-rail li::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; border-radius: 3px; }
.dz-rail li::before { right: 0; background: rgba(255, 255, 255, .1); }
.dz-rail li::after { width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--cobalt), #8c9aff); }
.dz-rail li.cur, .dz-rail li.past { color: #fff; }

.dz-stage { position: relative; height: clamp(330px, 46svh, 430px); }
.dz-stage > * { position: absolute; inset: 0; }
.dz-card { display: flex; flex-direction: column; justify-content: center; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-xl); background: radial-gradient(600px 260px at 0% 0%, rgba(43, 71, 246, .28), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(140, 154, 255, .22); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  opacity: 0; transform: translateY(48px) scale(.96); filter: blur(10px); transition: opacity .55s var(--out), transform .8s var(--spring), filter .55s var(--out); pointer-events: none; }
.dz-card.past { transform: translateY(-36px) scale(.93); }
.dz-card.cur { opacity: 1; transform: none; filter: none; pointer-events: auto; }
.dz-k { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #aab4ff; }
.dz-k::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(140, 154, 255, .2); }
.dz-v { margin-top: 14px; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.04em; font-weight: 600; color: #fff; text-wrap: balance; }
.dz-n { margin-top: 16px; max-width: 560px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.45; color: var(--on-night-muted); }
.dz-card-warn { background: radial-gradient(600px 260px at 0% 0%, rgba(255, 181, 71, .2), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border-color: rgba(255, 181, 71, .3); }
.dz-card-warn .dz-k { color: var(--amber); }
.dz-card-warn .dz-k::before { box-shadow: 0 0 0 4px rgba(255, 181, 71, .2); }

.dz-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; pointer-events: none; }
.dz-tile { display: flex; flex-direction: column; justify-content: flex-end; padding: 18px 20px; border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid rgba(140, 154, 255, .22); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.25; font-weight: 600; letter-spacing: -.02em; color: #fff;
  opacity: 0; transform: translateY(24px) scale(.94); filter: blur(8px); transition: opacity .5s var(--out), transform .8s var(--spring), filter .5s var(--out); transition-delay: calc(var(--i) * 70ms); }
.dz-tile span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: 0; color: #aab4ff; }
.dz-map.cur .dz-tile { opacity: 1; transform: none; filter: none; }
.dz-map.past .dz-tile { opacity: 0; filter: blur(4px); transition-delay: calc(var(--i) * 40ms); transform: translate(var(--tx), var(--ty)) scale(.35); }
.dz-tile:nth-child(1) { --i: 0; --tx: 100%; --ty: 55%; }
.dz-tile:nth-child(2) { --i: 1; --tx: 0%; --ty: 55%; }
.dz-tile:nth-child(3) { --i: 2; --tx: -100%; --ty: 55%; }
.dz-tile:nth-child(4) { --i: 3; --tx: 100%; --ty: -55%; }
.dz-tile:nth-child(5) { --i: 4; --tx: 0%; --ty: -55%; }
.dz-tile:nth-child(6) { --i: 5; --tx: -100%; --ty: -55%; }

.dz-site { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; }
.dz-site-t { font-size: clamp(22px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.03em; color: #fff; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity .5s .25s var(--out), transform .6s .25s var(--out); }
.dz-browser { position: relative; display: block; width: min(100%, 620px, calc((clamp(330px, 46svh, 430px) - 106px) * 1.6)); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 50px 90px -40px rgba(43, 71, 246, .7), 0 0 0 1px rgba(255, 255, 255, .12); opacity: 0; transform: scale(.55); filter: blur(12px); transition: opacity .6s var(--out), transform .9s var(--spring), filter .6s var(--out); }
.dz-browser img { width: 100%; aspect-ratio: 1280 / 800; object-fit: cover; object-position: top; }
.dz-browser .btn { position: absolute; right: 14px; bottom: 14px; }
.dz-site.cur { pointer-events: auto; }
.dz-site.cur .dz-site-t { opacity: 1; transform: none; }
.dz-site.cur .dz-browser { opacity: 1; transform: none; filter: none; }

.dz-chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; margin-top: 18px; }
.dz-chips span { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 9px; border-radius: 999px; background: rgba(43, 71, 246, .18); border: 1px solid rgba(140, 154, 255, .35); font-size: 13.5px; font-weight: 500; color: #dfe3ff; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .35s var(--out), transform .5s var(--spring); }
.dz-chips span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #8c9aff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6 5.4-6' fill='none' stroke='%2307080c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.dz-chips span.on { opacity: 1; transform: none; }
.dz[data-step="5"] .dz-chips span, .dz[data-step="6"] .dz-chips span { opacity: 0; transform: scale(.9); }

/* ---------- команда: орбита ---------- */
.team-sec { background: radial-gradient(900px 520px at 75% 50%, rgba(43, 71, 246, .3), transparent 65%), var(--night); overflow: hidden; }
.team-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.team-copy .h2 { color: #fff; }
.team-count { display: flex; align-items: baseline; gap: 14px; margin-top: clamp(22px, 3vw, 36px); }
.team-count b { font-size: clamp(84px, 10vw, 150px); line-height: .9; font-weight: 600; letter-spacing: -.06em; color: #fff; font-variant-numeric: tabular-nums; min-width: 2ch; }
.team-count span { font-size: clamp(20px, 2vw, 28px); font-weight: 500; color: #aab4ff; letter-spacing: -.02em; }
.team-out { margin-top: 18px; font-size: clamp(20px, 2vw, 28px); font-weight: 600; letter-spacing: -.025em; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity .6s var(--out), transform .7s var(--out); }
.team-sec.done .team-out { opacity: 1; transform: none; }

.orbit-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 680px; justify-self: center; }
.orbit { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px; transform: scale(var(--k, 1)); }
.o-ring { position: absolute; inset: 0; animation: o-spin var(--dur) linear infinite; }
.o-ring::before { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; border: 1px dashed rgba(140, 154, 255, .2); opacity: 0; transition: opacity 1s; }
.orbit.on .o-ring::before { opacity: 1; }
.o-r1 { --r: 142px; --dur: 70s; }
.o-r2 { --r: 262px; --dur: 110s; animation-direction: reverse; }
.o-r3 { --r: 204px; --dur: 150s; }
.o-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.o-lines line { stroke: rgba(140, 154, 255, .35); stroke-width: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset .7s var(--out); transition-delay: calc(var(--d) * 1ms); }
.orbit.on .o-lines line { stroke-dashoffset: 0; }
.o-slot { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)); }
.o-up { position: absolute; left: 0; top: 0; animation: o-counter var(--dur) linear infinite; }
.o-r2 .o-up { animation-direction: reverse; }
.o-chip { position: absolute; left: 0; top: 0; display: block; padding: 9px 15px; border-radius: 999px; white-space: nowrap; background: rgba(15, 17, 28, .92); border: 1px solid rgba(140, 154, 255, .4); box-shadow: 0 12px 30px -12px rgba(43, 71, 246, .7); font-size: 14.5px; font-weight: 500; color: #fff;
  opacity: 0; transform: translate(-50%, -50%) scale(.4); transition: opacity .4s var(--out), transform .6s var(--spring); transition-delay: calc(var(--d) * 1ms); }
.o-r2 .o-chip { font-size: 13.5px; color: #dfe3ff; background: rgba(12, 14, 22, .9); border-color: rgba(140, 154, 255, .25); }
.orbit.on .o-chip { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.o-dot i { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: #8c9aff; box-shadow: 0 0 12px 2px rgba(140, 154, 255, .7); transform: scale(0); transition: transform .45s var(--spring); transition-delay: calc(var(--d) * 1ms); }
.orbit.on .o-dot i { transform: scale(1); }
.o-core { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #4a63ff, #1b2fd8 70%); color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -.02em; box-shadow: 0 0 0 10px rgba(43, 71, 246, .15), 0 0 80px 10px rgba(43, 71, 246, .55); }
.o-core .brand-mark { width: 30px; height: 30px; }
.o-core::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(140, 154, 255, .6); animation: o-pulse 3s var(--out) infinite; }
@keyframes o-spin { to { transform: rotate(360deg); } }
@keyframes o-counter { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }
@keyframes o-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- вопросы, которые вам больше не зададут ---------- */
.get .sec-head { margin-bottom: clamp(28px, 3.4vw, 44px); }
.asks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; max-width: 1060px; margin: 0 auto clamp(40px, 5vw, 64px); }
.asks li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.asks span { position: relative; font-size: clamp(28px, 4vw, 54px); line-height: 1.1; font-weight: 600; letter-spacing: -.04em; color: var(--ink); clip-path: inset(0 100% 0 0); transition: clip-path .9s steps(18, end), color .5s; }
.asks span::after { content: ""; position: absolute; left: -2%; top: 54%; width: 104%; height: .09em; border-radius: .05em; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .55s var(--out); }
.asks li.typed span { clip-path: inset(0 0 0 0); }
.asks li.struck span { color: #a9b0bd; }
.asks li.struck span::after { transform: scaleX(1); }
.asks li em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 14px; font-weight: 600; color: var(--cobalt); opacity: 0; transform: translateY(-6px); transition: opacity .4s .25s, transform .5s .25s var(--spring); }
.asks li em::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--cobalt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6 5.4-6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.asks li.struck em { opacity: 1; transform: none; }
/* меньше «SaaS»: ячейки без серых подложек, тише рамки */
.get { background: #fff; }
.get .cell { background: #fbfcfe; border-color: #edf0f5; box-shadow: none; }
.get .cell-vis { background: #fff; border: 1px solid #edf0f5; }

/* ---------- примеры: фильтры на главной ---------- */
.filters-main { margin: 0 0 clamp(24px, 3vw, 36px); }
.filters-main .stage-tab { background: #fff; }
.filters-main .stage-tab[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.is-in { animation: card-in .55s var(--out) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* ---------- почему результат хороший: сайт собирается из блоков ---------- */
.asm-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.asm-steps { display: grid; gap: 4px; }
.asm-steps button { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px; background: transparent; text-align: left; cursor: pointer; overflow: hidden; transition: background-color .3s; }
.asm-steps button::before { content: attr(data-k); grid-row: 1 / 3; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted); background: var(--mist); transition: background-color .3s, color .3s; }
.asm-steps b { font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--muted); transition: color .3s; }
.asm-steps span { font-size: 14.5px; line-height: 1.4; color: var(--muted); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .45s var(--out), opacity .35s, margin .3s; }
.asm-steps button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--cobalt); }
.asm-steps li.cur button { background: var(--mist); }
.asm-steps li.cur button::after { width: 100%; transition: width var(--step, 1.8s) linear; }
.asm-steps li.cur button::before { background: var(--cobalt); color: #fff; }
.asm-steps li.cur b, .asm-steps li.past b { color: var(--ink); }
.asm-steps li.cur span { max-height: 60px; opacity: 1; margin-top: 4px; }
.asm-steps li.past button::before { content: ""; background: var(--cobalt-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.4l2.9 2.9 5.9-6.6' fill='none' stroke='%232b47f6' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.asm-steps li:last-child.cur button::before { background: var(--ok); }

.asm-box { position: relative; width: 100%; aspect-ratio: 600 / 538; }
.asm { position: absolute; left: 0; top: 0; width: 600px; transform-origin: 0 0; transform: scale(var(--k, 1)); border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 50px 90px -50px rgba(24, 40, 96, .55); }
.asm-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: #f6f7fa; border-bottom: 1px solid var(--line); }
.asm-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5dae4; }
.asm-url { position: relative; margin-left: 10px; flex: 1; height: 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.asm-url em { position: absolute; left: 12px; top: 0; font-style: normal; font-family: var(--mono); font-size: 11.5px; line-height: 20px; color: var(--muted); white-space: nowrap; transition: opacity .4s, transform .5s var(--out); }
.asm-url .u-site { opacity: 0; transform: translateY(8px); }
.asm.s4 .u-ig { opacity: 0; transform: translateY(-8px); }
.asm.s4 .u-site { opacity: 1; transform: none; }
.asm-body { position: relative; height: 500px; background: #faf7f2; overflow: hidden; }
.asm-body > * { position: absolute; transition: opacity .6s var(--out), transform .8s var(--spring), filter .5s var(--out); }

.asm-ig { left: 170px; top: 40px; width: 260px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 20px 40px -24px rgba(24, 40, 96, .5); opacity: 0; transform: scale(.9); transform-origin: 0 0; }
.asm-ig-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.asm-ig-head .ig-ring img { width: 26px; height: 26px; border-width: 1.5px; }
.asm-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 10px; border-radius: 8px; overflow: hidden; }
.asm-ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.asm.s1 .asm-ig { opacity: 1; transform: none; }
.asm.s2 .asm-ig { transform: translate(-150px, -24px) scale(.58); }
.asm.s3 .asm-ig { opacity: 0; transform: translate(-150px, -24px) scale(.4); filter: blur(6px); }

.asm-tags { inset: 0; pointer-events: none; }
.asm-tags span { position: absolute; left: var(--x); top: var(--y); padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid rgba(43, 71, 246, .3); box-shadow: 0 12px 24px -16px rgba(43, 71, 246, .6); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; opacity: 0; transform: translateY(14px) scale(.9); transition: opacity .45s var(--out), transform .6s var(--spring); }
.asm-tags span:nth-child(1) { left: 230px; top: 70px; }
.asm-tags span:nth-child(2) { left: 330px; top: 140px; }
.asm-tags span:nth-child(3) { left: 60px; top: 300px; }
.asm-tags span:nth-child(4) { left: 290px; top: 230px; }
.asm-tags span:nth-child(5) { left: 140px; top: 390px; }
.asm.s2 .asm-tags span { opacity: 1; transform: none; }
.asm.s2 .asm-tags span:nth-child(2) { transition-delay: .15s; }
.asm.s2 .asm-tags span:nth-child(3) { transition-delay: .3s; }
.asm.s2 .asm-tags span:nth-child(4) { transition-delay: .45s; }
.asm.s2 .asm-tags span:nth-child(5) { transition-delay: .6s; }
.asm.s3 .asm-tags span { opacity: 0; transform: translateY(-14px) scale(.85); filter: blur(4px); transition-delay: 0s; }

.asm-brand { left: 120px; top: 130px; width: 360px; padding: 26px 28px; border-radius: 20px; background: #2f1a0e; color: #f7f1ea; box-shadow: 0 30px 60px -30px rgba(47, 26, 14, .8); opacity: 0; transform: scale(.85); }
.asm-brand b { font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 400; letter-spacing: -.01em; }
.asm-sw { display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.asm-sw i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); }
.asm-sw em { margin-left: 8px; font-family: Georgia, serif; font-style: italic; font-size: 24px; }
.asm-brand p { margin-top: 14px; font-size: 14px; line-height: 1.45; color: #d9cbbd; }
.asm.s3 .asm-brand { opacity: 1; transform: none; }
.asm.s4 .asm-brand { opacity: 0; transform: translateY(-30px) scale(.8); filter: blur(6px); }

.asm-page { inset: 12px; display: flex; flex-direction: column; gap: 6px; }
.pg-blk { position: relative; border-radius: 10px; border: 1.5px dashed transparent; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--out), transform .6s var(--spring), border-color .4s, background-color .4s, box-shadow .4s; }
.asm.s4 .pg-blk { opacity: 1; transform: none; border-color: rgba(43, 71, 246, .4); background: rgba(255, 255, 255, .7); }
.asm.s4 .pg-blk:nth-child(2) { transition-delay: .1s; }
.asm.s4 .pg-blk:nth-child(3) { transition-delay: .2s; }
.asm.s4 .pg-blk:nth-child(4) { transition-delay: .3s; }
.asm.s4 .pg-blk:nth-child(5) { transition-delay: .4s; }
.asm.s7 .pg-blk { border-color: transparent; background: transparent; }

.pg-nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; font-size: 12px; }
.pg-nav b { font-family: Georgia, serif; font-weight: 400; font-size: 14px; color: #2f1a0e; margin-right: auto; }
.pg-nav i { width: 30px; height: 5px; border-radius: 3px; background: #d9cbbd; }
.pg-nav em { font-style: normal; font-weight: 600; font-size: 11px; padding: 5px 10px; border-radius: 999px; border: 1px solid #d9cbbd; color: #8a6a54; transition: background-color .5s, color .5s, border-color .5s; }
.asm.s5 .pg-nav em { background: #2f1a0e; border-color: #2f1a0e; color: #fff; }

.pg-hero { height: 176px; overflow: hidden; }
.pg-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 8px; opacity: 0; transform: scale(1.08); transition: opacity .8s var(--out), transform 1.2s var(--out); }
.asm.s5 .pg-hero img { opacity: 1; transform: none; }
.pg-hero::after { content: ""; position: absolute; inset: 0; border-radius: 8px; background: linear-gradient(90deg, rgba(20, 12, 6, .78), rgba(20, 12, 6, .15) 70%); opacity: 0; transition: opacity .8s var(--out); }
.asm.s5 .pg-hero::after { opacity: 1; }
.pg-hero-t { z-index: 1; }
.pg-hero-t { position: absolute; left: 16px; bottom: 14px; right: 40%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.pg-type { font-family: Georgia, serif; font-size: 21px; line-height: 1.12; color: #2f1a0e; transition: color .6s; }
.asm.s5 .pg-type { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .4); }
.pg-type.typing::after { content: ""; display: inline-block; width: 2px; height: .9em; margin-left: 2px; vertical-align: -.1em; background: var(--cobalt); animation: blink .8s steps(1) infinite; }
.pg-hero-t em { font-style: normal; font-size: 11px; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid #d9cbbd; color: #8a6a54; transition: background-color .5s, color .5s, border-color .5s; }
.asm.s5 .pg-hero-t em { background: #b4562f; border-color: #b4562f; color: #fff; }
@keyframes blink { 50% { opacity: 0; } }

.pg-h { display: block; font-family: Georgia, serif; font-size: 14px; color: #2f1a0e; margin: 6px 10px 6px; }
.pg-cards > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 8px 8px; }
.pg-cards figure { margin: 0; }
.pg-cards img { width: 100%; height: 66px; object-fit: cover; border-radius: 6px; background: #ece4d8; opacity: 0; transition: opacity .6s var(--out); }
.pg-cards figure { background: #ece4d8; border-radius: 6px; }
.asm.s5 .pg-cards img { opacity: 1; }
.asm.s5 .pg-cards figure:nth-child(2) img { transition-delay: .12s; }
.asm.s5 .pg-cards figure:nth-child(3) img { transition-delay: .24s; }
.pg-cards figcaption { padding: 4px 2px 0; font-size: 10.5px; color: #8a6a54; background: #faf7f2; }
.pg-price p { display: flex; justify-content: space-between; margin: 0 10px; padding: 5px 0; border-top: 1px solid #ece4d8; font-size: 11.5px; color: #2f1a0e; }
.pg-price b { font-weight: 700; }
.pg-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 10px; font-size: 11px; color: #8a6a54; }
.pg-cta em { font-style: normal; font-weight: 600; padding: 6px 12px; border-radius: 6px; border: 1px solid #d9cbbd; transition: background-color .5s, color .5s; }
.asm.s5 .pg-cta { background: #2f1a0e; color: #d9cbbd; }
.asm.s5 .pg-cta em { background: #b4562f; border-color: #b4562f; color: #fff; }

.pg-ok { position: absolute; right: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; transform: scale(0); transition: transform .45s var(--spring); z-index: 2; box-shadow: 0 4px 10px -2px rgba(17, 156, 102, .6); }
.pg-ok svg { width: 14px; height: 14px; }
.asm.s6 .pg-ok { transform: scale(1); }
.asm.s6 .pg-blk:nth-child(2) .pg-ok { transition-delay: .2s; }
.asm.s6 .pg-blk:nth-child(3) .pg-ok { transition-delay: .4s; }
.asm.s6 .pg-blk:nth-child(4) .pg-ok { transition-delay: .6s; }
.asm.s6 .pg-blk:nth-child(5) .pg-ok { transition-delay: .8s; }
.asm.s7 .pg-ok { transform: scale(0); transition-delay: 0s; }
.pg-scan { position: absolute; left: -12px; right: -12px; top: 0; height: 60px; background: linear-gradient(180deg, transparent, rgba(17, 156, 102, .16) 70%, rgba(17, 156, 102, .55) 100%); border-bottom: 1px solid rgba(17, 156, 102, .8); opacity: 0; pointer-events: none; }
.asm.s6:not(.s7) .pg-scan { animation: scanline 1.4s var(--out) both; }
@keyframes scanline { 0% { opacity: 0; transform: translateY(-60px); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(476px); } }

.asm-phone { right: 18px; bottom: 16px; width: 112px; padding: 5px; border-radius: 20px; background: var(--ink); box-shadow: 0 24px 40px -18px rgba(11, 13, 18, .6); opacity: 0; transform: translateY(40px) rotate(4deg); z-index: 3; }
.asm-phone div { position: relative; height: 200px; border-radius: 16px; overflow: hidden; background: #2f1a0e; }
.asm-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.asm-phone span { position: absolute; left: 8px; right: 8px; bottom: 34px; font-family: Georgia, serif; font-size: 11px; line-height: 1.15; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.asm-phone em { position: absolute; left: 8px; bottom: 10px; font-style: normal; font-size: 8.5px; font-weight: 600; padding: 4px 8px; border-radius: 4px; background: #b4562f; color: #fff; }
.asm.s5 .asm-phone { opacity: 1; transform: rotate(4deg); }
.asm-done { left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; box-shadow: 0 20px 40px -14px rgba(11, 13, 18, .7); opacity: 0; transform: translate(-50%, -30%) scale(.8); z-index: 4; }
.asm-done svg { width: 20px; height: 20px; color: #6ee7b0; }
.asm.s7 .asm-done { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .3s; }

/* ---------- сайт и Instagram ---------- */
.vs-title span { display: block; }
.vs-title span:first-child { color: #9aa2b1; }
.vs-row { transition: background-color .3s; }
.vs-row:nth-child(2) .vs-vitrine { font-size: 18.5px; }

/* ---------- подарок ---------- */
.gift-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; margin-bottom: 18px; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--cobalt); box-shadow: 0 8px 20px -14px rgba(43, 71, 246, .6); }

/* ---------- финал ---------- */
.final { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 168px) 0; }
.fin-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 8, 12, .55) 0%, rgba(7, 8, 12, .2) 40%, rgba(7, 8, 12, 0) 70%), radial-gradient(42% 40% at 38% 40%, rgba(7, 8, 12, .7), transparent 75%); pointer-events: none; }
.handle-form-dark .handle-field { background: rgba(7, 8, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.final .wrap { position: relative; z-index: 1; }
.fin { max-width: 860px; margin: 0 auto; text-align: left; }
.fin > *, .fin-steps li { opacity: 0; transform: translateY(18px); filter: blur(8px); transition: opacity .8s var(--out), transform .9s var(--out), filter .8s var(--out); }
.fin-a { font-size: clamp(32px, 4.6vw, 64px); line-height: 1.05; letter-spacing: -.045em; font-weight: 600; color: #fff; }
.fin-a + .fin-a { color: rgba(233, 235, 241, .55); }
.fin-steps { position: relative; margin: clamp(30px, 4vw, 48px) 0; padding-left: 30px; display: grid; gap: 12px; opacity: 1 !important; transform: none !important; filter: none !important; }
.fin-steps::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: rgba(255, 255, 255, .1); }
.fin-steps::after { content: ""; position: absolute; left: 6px; top: 10px; width: 2px; height: calc(var(--fp, 0) * (100% - 20px)); background: linear-gradient(180deg, #8c9aff, var(--cobalt)); transition: height .6s var(--out); }
.fin-steps li { position: relative; font-size: clamp(20px, 2.3vw, 30px); line-height: 1.25; font-weight: 500; letter-spacing: -.025em; color: #dfe3ff; }
.fin-steps li::before { content: ""; position: absolute; left: -30px; top: .42em; width: 14px; height: 14px; border-radius: 50%; background: var(--night); border: 2px solid #8c9aff; box-shadow: 0 0 0 4px rgba(140, 154, 255, .15); }
.fin-b { font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.02em; color: var(--on-night-muted); }
.fin-c { margin-top: 8px; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.04em; font-weight: 600; color: #fff; text-wrap: balance; }
.fin .on { opacity: 1; transform: none; filter: none; }
.final .handle-form { margin-top: clamp(36px, 4.4vw, 56px); opacity: 0; transform: translateY(14px); transition: opacity .8s var(--out), transform .8s var(--out); }
.final.done .handle-form { opacity: 1; transform: none; }
.final .hero-note { position: relative; }

/* ---------- панель мокапа ---------- */
.mock .mock-link + .mock-link { margin-left: -4px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .dz-grid { grid-template-columns: 1fr; gap: 16px; }
  .dz-src { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; padding: 12px 14px; }
  .dz-src-bio, .dz-src-note { display: none; }
  .dz-src-tiles { grid-column: 1 / -1; grid-template-columns: repeat(9, 1fr); margin-top: 8px; border-radius: 8px; }
  .team-grid, .asm-grid { grid-template-columns: 1fr; }
  .team-copy { text-align: center; }
  .team-count { justify-content: center; }
  .asm-box { max-width: 600px; margin: 0 auto; }
  .asm-grid { gap: 28px; }
}

@media (max-width: 860px) {
  .proc { min-height: 0; }
  .stage-mid .stage-label, .stage-site .stage-label { margin-top: 4px; }
  .study { grid-template-columns: 1fr 1fr; }
  .study li { height: 36px; padding: 0 10px; font-size: 13px; gap: 8px; grid-template-columns: 18px 1fr auto; }
  .st-ic { width: 16px; height: 16px; }
  .got div { padding: 9px 12px; }
  .dz { height: 600svh; }
  .dz-pin { padding-top: 84px; align-items: flex-start; }
  .dz-rail { grid-template-columns: repeat(6, 1fr); gap: 4px; }
  .dz-rail li { font-size: 0; padding-top: 0; height: 3px; }
  .dz-stage { height: min(58svh, 440px); }
  .dz-browser { width: 100%; }
  .dz-map { grid-template-columns: 1fr 1fr; }
  .dz-tile { padding: 12px 14px; font-size: 15px; }
  .dz-tile span { margin-bottom: 4px; font-size: 12px; }
  .dz-chips { display: none; }
  .asks { flex-direction: column; align-items: center; gap: 16px; }
  .asm-steps { order: 2; }
  .asm-steps button { padding: 10px 12px; }
  .asm-steps li:not(.cur) span { display: none; }
}

@media (max-width: 560px) {
  .study { grid-template-columns: 1fr; }
  .stage-actions .btn { flex: 1; }
  .fin-steps { padding-left: 26px; }
  .fin-steps li::before { left: -26px; }
}


/* телефон: ближний круг подписан, дальний круг точками, орбита крупнее */
.orbit { --design: 660; }
@media (max-width: 560px) {
  .orbit { --design: 500; }
  .o-r1 { --r: 118px; }
  .o-r2 { --r: 210px; }
  .o-r3 { --r: 168px; }
  .o-r1 .o-chip { font-size: 15px; padding: 7px 11px; }
  .o-r2 .o-chip { width: 12px; height: 12px; padding: 0; font-size: 0; border-radius: 50%; background: #8c9aff; border: 0; box-shadow: 0 0 14px 3px rgba(140, 154, 255, .7); }
  .mock { left: auto; right: 10px; bottom: 10px; height: 38px; padding: 0 5px 0 12px; gap: 8px; }
  .mock-label { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .w, [data-load] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .dz { height: auto; }
  .dz-pin { position: relative; height: auto; padding: 40px 0 80px; }
  .o-ring, .o-up { animation: none; }
}
