/* Главная smek-ai.ru: нарисованные интерфейсы (scenes.js). Размеры — в em, кегль — от размеров окна (cqw/cqh):
   окно меньше — всё мельче; узкое окно (телефон, ноутбук) — своя раскладка через @container. Анимации — только opacity,
   transform и фон: раскладка сцены не меняется, страница не прыгает. Площадки узнаются по раскладке и цвету, логотипов
   нет. Внутри интерфейсов — Onest, цифры и таблицы — IBM Plex Mono (как в роликах). */

/* ---------- Окно-сцена ---------- */
.shot-ui { position: relative; display: block; padding: 0; overflow: hidden; }
.ui-st { position: absolute; inset: 0; container: ui / size; }
.ui { position: absolute; inset: 0; overflow: hidden; color: var(--ink); text-align: left; letter-spacing: 0;
  font: 400 clamp(8px, min(1.65cqw, 2.65cqh), 13px)/1.3 var(--f-ui);
  background: radial-gradient(60% 70% at 12% 12%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(55% 60% at 92% 96%, rgba(246, 201, 184, .75), transparent 70%), #D6E4F6; }
.ui *, .ui *::before, .ui *::after { box-sizing: border-box; }
.ui p { margin: 0; }
/* иконки сцены — цвет и размер свои, не как у заглушки .shot .i */
.ui .i { width: 1.2em; height: 1.2em; color: inherit; opacity: 1; }
.u-factory { background: radial-gradient(60% 70% at 88% 12%, rgba(255, 255, 255, .9), transparent 70%),
  radial-gradient(55% 60% at 8% 96%, rgba(179, 209, 243, .9), transparent 70%), #F3DCD3; }
.u-cons { font-size: clamp(8px, min(1.8cqw, 2.9cqh), 13px); background: radial-gradient(60% 70% at 85% 10%, rgba(255, 255, 255, .9), transparent 70%),
  radial-gradient(60% 60% at 10% 95%, rgba(246, 201, 184, .8), transparent 70%), #E3E8F5; }
.u-ask, .u-funnel, .u-team, .u-fixes { font-size: clamp(8px, min(2cqw, 3.2cqh), 14px); background: linear-gradient(135deg, #EDF3FC, #FBF3EF); }
.u-mock, .u-live { font-size: min(3.9cqw, 5.2cqh); background: linear-gradient(135deg, #EDF3FC, #FBF3EF); }
.u-crm, .u-flow { font-size: clamp(6px, min(2.4cqw, 2.25cqh), 13px); background: linear-gradient(160deg, #DCE8F7, #F6E3DA); }
.ui > .u-app { position: absolute; inset: 6% 5%; }

/* ---------- Шаги анимации (scenes.js: data-s → .on, data-hit → .hit, data-on → .is, data-x → .off) ---------- */
.ui [data-s], .ui [data-hit], .ui [data-on], .ui [data-x] {
  transition: opacity .4s ease var(--d, 0s), transform .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0s), background-color .25s,
    color .25s, border-color .25s, box-shadow .25s, background-size .7s ease, stroke-dashoffset .9s ease; }
.ui [data-s] { opacity: 0; transform: translateY(.6em); }
.ui [data-a="pop"] { transform: scale(.6); }
.ui [data-a="fade"] { transform: none; }
.ui [data-a="up"] { opacity: 1; transform: translateY(105%); }
.ui [data-a="grow"] { opacity: 1; transform: scaleY(0); transform-origin: 50% 100%; }
.ui [data-a="wide"] { opacity: 1; transform: scaleX(0); transform-origin: 0 50%; }
.ui [data-a="mark"] { opacity: 1; transform: none; background: linear-gradient(var(--mk), var(--mk)) 0 88% / 0 .45em no-repeat; }
.ui [data-a="draw"] { opacity: 1; transform: none; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ui [data-s].on { opacity: 1; transform: none; }
.ui [data-a="mark"].on { background-size: 100% .45em; }
.ui [data-a="draw"].on { stroke-dashoffset: 0; }
.ui [data-x].off.off { opacity: 0; }
.ui [data-a="up"].off.off { opacity: 1; transform: translateY(105%); }
/* нажатие: круг под «пальцем» */
.ui .hit::after { content: ""; position: absolute; left: 50%; top: 50%; width: 2.8em; height: 2.8em; margin: -1.4em 0 0 -1.4em; border-radius: 50%;
  background: rgba(47, 93, 140, .3); pointer-events: none; animation: u-tap .7s ease-out forwards; }
@keyframes u-tap { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- Общие детали: окно приложения, аватары, шапки, метки ---------- */
.u-app { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 1em; background: #fff;
  box-shadow: 0 .8em 2em rgba(16, 40, 90, .16), 0 .15em .45em rgba(16, 40, 90, .12); }
.u-av { width: 2.3em; height: 2.3em; flex: none; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; }
.u-av.kr { background: var(--kraft); }
.u-av.pn { background: var(--pen); }
.u-av.ink, .u-av.br { background: var(--ink); }
.u-av.br::after { content: ""; width: 42%; height: 42%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FF9A7E 0 18%, var(--red) 40%, #A8341A 100%); }
.u-av .i { width: 52%; height: 52%; }
.u-head { flex: none; display: flex; align-items: center; gap: .5em; padding: .55em .7em; background: #fff; border-bottom: 1px solid #EFEFEF; }
.u-back { display: grid; }
.u-back .i { width: 1.1em; height: 1.1em; stroke-width: 2.2; }
.u-who { min-width: 0; }
.u-who b, .u-who small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-who b { font-weight: 700; }
.u-who small { color: #8A8A8E; font-size: .8em; }
.u-top { flex: none; display: flex; align-items: center; gap: .5em; padding: .6em .8em; border-bottom: 1px solid #E8EBF0; background: #fff; }
.u-top > b { min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-top > .i { flex: none; color: var(--pen); }
.u-tag { flex: none; margin-left: auto; padding: .2em .55em; border-radius: 2em; background: #FFF3C4; color: #7A5B00; font: 600 .75em/1.2 var(--f-mono); white-space: nowrap; }
.u-tag.ok { background: #DDF2E3; color: #1F6B3A; }
.u-live { flex: none; margin-left: auto; display: flex; align-items: center; gap: .35em; color: #1F6B3A; font-size: .8em; font-weight: 600; white-space: nowrap; }
.u-live i { width: .55em; height: .55em; border-radius: 50%; background: #2E9E5B; }
.ui-st.run .u-live i { animation: u-blink 1.6s ease-in-out infinite; }
@keyframes u-blink { 50% { opacity: .3; } }
.u-mk { --mk: var(--hl); padding: 0 .04em; }

/* ---------- Чат: директ (раскладка и цвета — как в ролике «Напиши прайс») ---------- */
.u-feed { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.u-track { position: relative; display: flex; flex-direction: column; gap: .5em; padding: .7em .7em .5em; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.u-day { align-self: center; color: #8A8A8E; font-size: .75em; }
.u-m { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; }
.u-m.me { align-self: flex-end; align-items: flex-end; }
.u-msg { padding: .5em .75em; border-radius: 1.15em 1.15em 1.15em .35em; background: #EFEFEF; }
.u-m.me .u-msg { border-radius: 1.15em 1.15em .35em 1.15em; background: linear-gradient(135deg, #6E5BF5, #3797F0); color: #fff; }
.u-btn { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; gap: .3em; margin-top: .3em; padding: .45em .7em;
  border: 1.5px solid #DBDBDB; border-radius: .9em; background: #fff; color: #3797F0; font-weight: 700; white-space: nowrap; }
.u-btn .i { width: 1.05em; height: 1.05em; stroke-width: 2.4; }
.u-btn.hit { background: #E8F2FD; border-color: #B9D7F7; }
.u-link { display: flex; align-items: center; gap: .5em; margin-top: .45em; padding: .45em .6em; border-radius: .8em; background: #fff; }
.u-link .i { flex: none; color: var(--pen); }
.u-link b, .u-link small { display: block; }
.u-link b { font-size: .92em; }
.u-link small { color: var(--muted); font: 500 .78em/1.3 var(--f-mono); }
.u-bar { flex: none; display: flex; align-items: center; gap: .5em; margin: .35em .5em .5em; padding: .45em .8em; border-radius: 2em; background: #F0F0F0; color: #8A8A8E; font-size: .88em; }
.u-bar span { flex: 1; white-space: nowrap; overflow: hidden; }
.u-bar .i { width: 1.1em; height: 1.1em; }
/* «печатает…» — под последним сообщением (место — scenes.js, transform) */
.u-tw { position: absolute; left: .7em; top: 0; }
.u-typing { position: absolute; left: 0; top: 0; display: flex; gap: .25em; padding: .65em .8em; border-radius: 1.15em 1.15em 1.15em .35em; background: #EFEFEF; }
.u-typing i { width: .42em; height: .42em; border-radius: 50%; background: #9A9AA0; }
.ui-st.run .u-typing i { animation: u-dot 1s ease-in-out infinite; }
.ui-st.run .u-typing i:nth-child(2) { animation-delay: .15s; }
.ui-st.run .u-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes u-dot { 30% { transform: translateY(-.25em); opacity: .55; } }

/* ---------- Мессенджер: заявки и согласование ---------- */
.u-tg { background: #D5E3BE radial-gradient(rgba(255, 255, 255, .5) .12em, transparent .16em) 0 0 / 1.6em 1.6em; }
.u-tg .u-head { background: rgba(255, 255, 255, .96); border: 0; }
.u-tg .u-bar { margin: 0; padding: .55em .8em; border-radius: 0; background: #fff; }
.u-card { position: relative; align-self: flex-start; max-width: 96%; display: flex; flex-direction: column; gap: .15em; padding: .55em .75em .4em;
  border-radius: 1.05em 1.05em 1.05em .35em; background: #fff; box-shadow: 0 1px 0 rgba(30, 27, 24, .12); font-size: .94em; line-height: 1.32; }
.u-card-t { display: flex; align-items: center; gap: .35em; font-weight: 700; }
.u-card-t .i { flex: none; width: 1.1em; height: 1.1em; color: var(--pen); }
.u-card span > i { font-style: normal; color: var(--muted); }
.u-ref { color: #2481CC; }
.u-time { align-self: flex-end; margin-top: .1em; color: #8A8A8E; font-size: .75em; }

/* ---------- Окна воронки в ряд со стрелками; на узком — по одному, с точками ---------- */
.u-row { position: absolute; inset: 5% 4%; display: flex; gap: .5em; }
.u-row > .u-app { flex: 1 1 0; min-width: 0; }
.u-row > .u-wide { flex-grow: 1.55; }
.u-arr { flex: none; align-self: center; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: var(--paper);
  box-shadow: 2px 3px 0 rgba(30, 27, 24, .14); }
.u-arr .i { width: 1em; height: 1em; stroke-width: 2.2; }
.u-dots { display: none; }

/* ---------- Воронка «прайс»: комментарии ---------- */
.u-cm { background: #1B1916; }
.u-reel { position: absolute; left: 0; right: 0; top: 0; height: 24%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(ellipse at 30% 60%, #F3EDE1 0 22%, transparent 42%), radial-gradient(ellipse at 75% 40%, var(--red) 0 10%, transparent 26%),
    linear-gradient(160deg, var(--kraft), var(--muted)); }
.u-reel .i { width: 2em; height: 2em; fill: currentColor; opacity: .85; }
.u-sheet { position: absolute; left: 0; right: 0; top: 20%; bottom: 0; display: flex; flex-direction: column; padding: .5em .8em .6em; background: #fff; border-radius: 1.2em 1.2em 0 0; }
.u-grip { flex: none; width: 2.6em; height: .25em; margin: 0 auto .4em; border-radius: 1em; background: #D8D2C8; }
.u-sheet-t { text-align: center; font-weight: 700; margin-bottom: .6em; }
.u-cmts { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .75em; overflow: hidden; }
.u-cmt { display: flex; gap: .55em; align-items: flex-start; }
.u-cmt.re { margin-left: 2.6em; }
.u-cmt > div { flex: 1; min-width: 0; }
.u-cmt b { font-size: .92em; }
.u-cmt small { color: #8A8A8E; font-size: .85em; }
.u-cmt p { margin: .05em 0; }
.u-cmt > .i { flex: none; width: 1em; height: 1em; margin-top: .6em; color: #8A8A8E; }
.u-cmt.re .u-av { width: 1.9em; height: 1.9em; }
.u-ans { display: block; font-weight: 600; }
.u-input { flex: none; margin-top: .5em; padding: .5em .9em; border: 1.5px solid #DCD3C4; border-radius: 2em; color: #8A8A8E; font-size: .9em; white-space: nowrap; overflow: hidden; }

/* ---------- Воронка «прайс»: страница прайса поверх директа (окно в стиле XP, цены размыты — как в ролике) ---------- */
.u-web { position: absolute; z-index: 3; left: 0; right: 0; top: 1.6em; bottom: 0; display: flex; flex-direction: column; border-radius: .9em .9em 0 0;
  background: #F2F2F7; box-shadow: 0 -.4em 1.2em rgba(16, 40, 90, .2); }
.u-url { flex: none; display: flex; align-items: center; justify-content: center; gap: .3em; margin: .5em .6em .4em; padding: .3em; border-radius: .6em; background: #E3E3E8;
  font-size: .82em; white-space: nowrap; }
.u-url .i { width: 1em; height: 1em; }
.u-xp { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0 .45em .45em; overflow: hidden; border: 2px solid #0A4FD8; border-radius: .55em .55em .2em .2em; background: #ECE9D8; }
.u-xp-bar { flex: none; display: flex; align-items: center; padding: .25em .45em; background: linear-gradient(180deg, #3D8EF7, #0A4FD8 20%, #0B55E0 60%, #3A8BF5);
  color: #fff; font-weight: 700; font-size: .82em; }
.u-xp-bar span { flex: 1; white-space: nowrap; overflow: hidden; }
.u-xp-bar i { flex: none; width: 1.1em; height: 1.1em; border: 1px solid #fff; border-radius: .2em; background: #D9502B; }
.u-xp-in { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: .3em; padding: .35em .45em .45em; background: #fff; }
.u-xp-t { font-weight: 700; margin-bottom: .2em; }
.u-fold { position: relative; display: flex; align-items: center; gap: .4em; padding: .3em .25em; border-bottom: 1px solid #E3E0D2; font-size: .85em; font-weight: 600; overflow: hidden; }
.u-fold::before { content: ""; flex: none; width: 1.15em; height: .9em; border-radius: .12em; background: #F6C451; box-shadow: inset 0 .18em 0 #E2AE38; }
.u-fold span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-fold.open { background: #E8F0FC; }
.u-fold.sub { padding-left: 1.3em; font-weight: 500; background: #F6F9FE; }
.u-fold.sub::before { display: none; }
.u-fold.sub.hit { background: #316AC5; color: #fff; }
.u-blur { flex: none; margin-left: auto; width: 2.4em; height: .75em; border-radius: .3em; background: #9AA6B8; opacity: .5; filter: blur(2px); }
.u-cta { position: relative; margin-top: auto; padding: .45em; border-radius: 2em; background: var(--ink); color: var(--paper); font-weight: 700; font-size: .9em; text-align: center; overflow: hidden; }
.u-cta.hit { background: #3A3530; }

/* ---------- Контент-завод: слайд карусели (как instagram-bot/visual/templates), согласование, публикация ---------- */
.u-code { background: #2A2622; }
.u-head-dark { background: var(--ink); border-color: #3A3530; color: #fff; }
.u-head-dark .u-who small { color: rgba(255, 255, 255, .6); }
.u-render { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: .6em; padding: .8em .7em; }
.u-render > .u-slide { width: 78%; flex: none; }
.u-strip { width: 100%; display: grid; grid-template-columns: repeat(6, 1fr); gap: .3em; }
.u-render-k { display: flex; align-items: center; gap: .35em; color: rgba(255, 255, 255, .75); font: 500 .75em/1.2 var(--f-mono); }
.u-render-k i { width: .55em; height: .55em; border-radius: 50%; background: #2E9E5B; }
.u-slide { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: .25em; background: #F7F9FC; container-type: inline-size; }
.u-sl-bg { position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 12.5cqi 12.5cqi,
  linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px) 0 0 / 12.5cqi 12.5cqi, linear-gradient(180deg, #2C68CC, #5E97E6); }
.u-slide.v1 .u-sl-bg { background: radial-gradient(70% 50% at 80% 10%, rgba(255, 255, 255, .9), transparent 70%), linear-gradient(180deg, #B3D1F3, #F7F9FC); }
.u-slide.v2 .u-sl-bg { background: linear-gradient(rgba(47, 93, 140, .1) 1px, transparent 1px) 0 0 / 12.5cqi 12.5cqi,
  linear-gradient(90deg, rgba(47, 93, 140, .1) 1px, transparent 1px) 0 0 / 12.5cqi 12.5cqi, #FFFDF8; }
.u-sl-t { position: absolute; left: 9%; right: 9%; top: 9%; color: #fff; font: 400 10.5cqi/1.05 var(--f-display); }
.u-slide.v1 .u-sl-t, .u-slide.v2 .u-sl-t, .u-slide.v1 .u-sl-logo, .u-slide.v2 .u-sl-logo { color: var(--ink); }
.u-sl-t .u-mk { --mk: var(--red); }
.u-slide .u-mk:not([data-a]) { background: linear-gradient(var(--mk), var(--mk)) 0 88% / 100% .45em no-repeat; }
.u-sl-card { position: absolute; left: 9%; right: 9%; top: 50%; bottom: 17%; display: flex; flex-direction: column; justify-content: center; gap: 6cqi; padding: 0 8cqi;
  background: var(--paper); box-shadow: 2.5cqi 3.5cqi 0 rgba(30, 27, 24, .22); }
.u-sl-card i { height: 4cqi; border-radius: 2cqi; background: #D9D3C7; }
.u-sl-card i:nth-child(1) { width: 86%; background: rgba(47, 93, 140, .55); }
.u-sl-card i:nth-child(2) { width: 70%; }
.u-sl-card i:nth-child(3) { width: 78%; }
.u-sl-logo { position: absolute; left: 9%; bottom: 5%; display: flex; align-items: center; color: #fff; font: 400 7cqi/1 var(--f-display); }
.u-sl-logo i { width: 2.5cqi; height: 2.5cqi; margin: 0 .5cqi; border-radius: 50%; background: var(--red); }
.u-album { align-self: flex-start; width: 86%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; overflow: hidden; border-radius: .9em; background: #fff; }
.u-album .u-slide { border-radius: 0; }
.u-ok { display: flex; align-items: center; gap: .3em; margin-top: .25em; color: #1F6B3A; font-weight: 600; }
.u-ok .i { flex: none; width: 1em; height: 1em; stroke-width: 2.6; }
.u-kb { align-self: flex-start; width: 96%; display: grid; grid-template-columns: 1fr 1fr; gap: .25em; }
.u-kb span { position: relative; display: flex; align-items: center; justify-content: center; gap: .25em; padding: .45em .3em; overflow: hidden; border-radius: .6em;
  background: rgba(54, 80, 36, .38); color: #fff; font-weight: 600; font-size: .84em; white-space: nowrap; }
.u-kb span:last-child { grid-column: span 2; }
.u-kb span.hit { background: rgba(54, 80, 36, .62); }
.u-kb .i { width: 1em; height: 1em; stroke-width: 2.6; }
.u-post-in { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .4em; padding: .5em .6em; }
.u-post-in > .u-slide { width: 100%; flex: none; }
.u-post-act { display: flex; align-items: center; gap: .55em; }
.u-post-act .i { width: 1.15em; height: 1.15em; }
.u-car { flex: 1; display: flex; justify-content: center; gap: .2em; padding-right: 3.6em; }
.u-car i { width: .35em; height: .35em; border-radius: 50%; background: #C8C8CC; }
.u-car i:first-child { background: #3797F0; }
.u-post-in p { font-size: .9em; }
.u-post-in .u-tag { align-self: flex-start; margin-left: 0; }

/* ---------- Вопросы перед стартом: заметка ---------- */
.u-top-k { flex: none; margin-left: auto; color: var(--muted); font: 500 .75em/1.2 var(--f-mono); white-space: nowrap; }
.u-note-app { background: #FFFDF6; }
.u-note-app .u-top { background: #FFFDF6; }
.u-qs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: .8em 1.6em 3.6em; list-style: none; }
.u-qs li { display: flex; align-items: center; gap: .8em; min-height: 3em; border-bottom: 1px solid #EFE6D3; }
.u-qs i { flex: none; width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 50%; background: #EEF2F8; color: var(--pen); font: 600 .8em/1 var(--f-mono); }
.u-qs span { min-width: 0; font-size: 1.2em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Воронка smek.ai: цепочка шагов ---------- */
.u-chain { display: flex; align-items: flex-start; margin: auto 0; padding: .8em .9em; }
.u-nd { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .45em; text-align: center; }
.u-nd-i { width: 3.4em; height: 3.4em; display: grid; place-items: center; border: 1.5px solid #DCE3EE; border-radius: .9em; background: #EEF2F8; color: #8A97AA;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s; }
.u-nd-i .i { width: 1.5em; height: 1.5em; }
.u-nd small { color: var(--muted); font-size: .78em; line-height: 1.2; transition: color .3s; }
.u-nd.is .u-nd-i { border-color: var(--pen); background: var(--pen); color: #fff; transform: scale(1.06); }
.u-nd.is:last-child .u-nd-i { border-color: var(--red); background: var(--red); }
.u-nd.is small { color: var(--ink); font-weight: 600; }
.u-wire { position: relative; flex: .5 1 0; height: 2px; margin-top: 1.7em; overflow: hidden; background: #DCE3EE; }
.u-wire::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--pen) 0 .45em, transparent .45em .8em);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s ease; }
.u-wire.is::after { transform: none; }
.ui-st.run .u-wire.is::after { animation: u-march .8s linear infinite; }
@keyframes u-march { to { background-position: .8em 0; } }
.u-chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4em; margin: auto .9em 0; padding: .7em 0 .9em; border-top: 1px dashed #DCE3EE; }
.u-chips small { width: 100%; color: var(--muted); font-size: .78em; }
.u-chips span { padding: .3em .7em; border-radius: 2em; background: #EEF2F8; color: var(--pen); font-weight: 600; font-size: .82em; white-space: nowrap; }

/* ---------- Всё в одних руках: доска задач проекта ---------- */
.u-crew { flex: none; margin-left: auto; display: flex; align-items: center; gap: .35em; }
.u-crew .u-av { width: 1.7em; height: 1.7em; }
.u-crew small { color: var(--muted); font-size: .78em; white-space: nowrap; }
.u-prog { flex: none; display: flex; gap: .3em; padding: .6em .8em 0; }
.u-prog i { flex: 1; height: .35em; border-radius: 1em; background: #E3E8EF; }
.u-prog i.is { background: #2E9E5B; }
.u-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .8em; padding: .6em .8em .8em; }
.u-col { display: flex; flex-direction: column; gap: .4em; padding: .5em; border-radius: .7em; background: #F2F4F8; }
.u-col > small { color: var(--muted); font: 600 .72em/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; }
/* карточка лежит в «Готово», до своего шага сдвинута в «В работе»: ширина колонки + отступ между ними */
.ui .u-kc { position: relative; display: grid; grid-template-columns: 1fr auto; gap: .2em .4em; padding: .45em .55em; border-radius: .55em; background: #fff;
  box-shadow: 0 1px 2px rgba(16, 40, 90, .14); transform: translateX(calc(-100% - 1.8em)); transition: transform .8s cubic-bezier(.65, 0, .35, 1); }
.ui .u-kc.is { transform: none; }
.u-kc-t { justify-self: start; padding: .1em .45em; border-radius: .3em; background: var(--pen); color: #fff; font-size: .7em; font-weight: 700; }
.u-kc-t.t1 { background: #7FA36B; }
.u-kc-t.t2 { background: var(--kraft); color: var(--ink); }
.u-kc-t.t3 { background: var(--ink); }
.u-kc b { grid-column: 1; font-size: .88em; line-height: 1.25; }
.u-kc-f { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: center; gap: .2em; }
.u-kc-f .u-av { width: 1.6em; height: 1.6em; }
.u-kc-f .i { width: 1em; height: 1em; color: #2E9E5B; stroke-width: 2.6; opacity: 0; transition: opacity .3s .6s; }
.u-kc.is .u-kc-f .i { opacity: 1; }
.u-note { position: absolute; right: 1.2em; bottom: 1em; padding: .35em .7em; background: var(--hl); font: 600 1.15em/1.1 var(--f-hand); rotate: -3deg;
  box-shadow: 2px 3px 0 rgba(30, 27, 24, .15); }

/* ---------- Правки после запуска: закрываются галочками ---------- */
.u-fxs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: .7em; padding: 1em 1.6em 3.6em; }
.u-fx { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8em; padding: .75em .9em; border: 1px solid #E3E8EF; border-radius: .7em; background: #fff; }
.u-fx-c { width: 1.6em; height: 1.6em; display: grid; place-items: center; border: 1.5px solid #C9D2DE; border-radius: .4em; color: #fff; transition: background-color .3s, border-color .3s; }
.ui .u-fx-c .i { width: 1em; height: 1em; stroke-width: 2.8; opacity: 0; transform: scale(.4); transition: opacity .3s, transform .3s; }
.u-fx.is .u-fx-c { border-color: #2E9E5B; background: #2E9E5B; }
.ui .u-fx.is .u-fx-c .i { opacity: 1; transform: none; }
.u-fx-t { min-width: 0; font-size: 1.15em; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.u-fx.is .u-fx-t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(30, 27, 24, .35); }
.u-fx small { color: #1F6B3A; font: 600 .75em/1.2 var(--f-mono); opacity: 0; transition: opacity .3s; }
.u-fx.is small { opacity: 1; }
.u-fx-sum { position: absolute; right: 1.2em; bottom: 1em; display: flex; align-items: center; gap: .3em; font-size: .9em; }
.u-fx-sum .i { width: 1em; height: 1em; stroke-width: 2.6; }

/* ---------- Доска «после привет»: макет сайта и бот кофейни ---------- */
.u-br-top { flex: none; display: flex; align-items: center; gap: .3em; padding: .4em .55em; background: #EEF1F6; }
.u-br-top i { width: .55em; height: .55em; border-radius: 50%; background: #F0A08C; }
.u-br-top i:nth-child(2) { background: var(--hl); }
.u-br-top i:nth-child(3) { background: #9CCB8A; }
.u-br-top span { margin-left: .4em; padding: .1em .6em; border-radius: 1em; background: #fff; color: var(--muted); font: 500 .75em/1.3 var(--f-mono); white-space: nowrap; }
.u-pg { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .55em; padding: .55em .7em; }
.u-pg-nav { display: flex; align-items: center; gap: .5em; }
.u-pg-nav b { margin-right: auto; font: 400 .95em/1 var(--f-display); }
.u-pg-nav i { width: 2em; height: .35em; border-radius: 1em; background: #DCE3EE; }
.u-pg-hero { display: flex; align-items: center; gap: .6em; padding: .55em; border-radius: .5em; background: #F6EFE6; }
.u-pg-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .3em; }
.u-pg-t { font: 400 1.05em/1.05 var(--f-display); }
.u-pg-l { width: 90%; height: .35em; border-radius: 1em; background: #D9CFC0; }
.u-pg-l.s { width: 60%; }
.u-pg-btn { position: relative; margin-top: .2em; padding: .3em .8em; border-radius: 2em; background: var(--red); color: #fff; font-size: .8em; font-weight: 700; transform-origin: 0 50%; }
.ui .u-pg-btn.on.is { transform: scale(1.3); }
.u-pg-cup { flex: none; width: 3.6em; height: 3.6em; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #6B4A2B 0 34%, var(--paper) 35% 52%, transparent 53%), var(--kraft); }
.u-pg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4em; }
.u-pg-cards i { height: 2.6em; border-radius: .4em; background: #EEF1F6; }
.u-pin { position: absolute; right: .6em; top: 3.2em; padding: .3em .55em; background: var(--hl); font: 600 1.15em/1 var(--f-hand); rotate: 3deg; box-shadow: 1px 2px 0 rgba(30, 27, 24, .18); }
.u-done { position: absolute; right: .6em; top: 3.2em; display: flex; align-items: center; gap: .25em; padding: .3em .6em; border-radius: 2em; background: #DDF2E3; color: #1F6B3A; font-size: .8em; font-weight: 700; }
.u-done .i { width: 1em; height: 1em; stroke-width: 2.6; }

/* ---------- CRM: карточка сделки (обобщённая, без логотипа) ---------- */
.u-crm-app { background: #F5F7FA; }
.u-crm-top { flex: none; display: flex; align-items: center; gap: .5em; padding: .55em .8em; background: #2C3E57; color: #fff; }
.u-crm-top .u-av { width: 1.8em; height: 1.8em; background: #4F7BC0; }
.u-crm-top > b { letter-spacing: .04em; }
.u-crm-nav { display: flex; gap: .9em; margin-left: .8em; color: rgba(255, 255, 255, .65); font-size: .82em; white-space: nowrap; }
.u-crm-nav i { font-style: normal; }
.u-crm-nav i:first-child { color: #fff; font-weight: 600; }
.u-crm-in { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: .55em; padding: .8em .9em .9em; }
.u-crm-k { color: var(--muted); font-size: .8em; }
.u-crm-t { font-size: 1.25em; line-height: 1.2; }
.u-stg { flex: none; display: flex; gap: .2em; }
.u-stg i { flex: 1; min-width: 0; height: 1.9em; display: grid; place-items: center; padding: 0 .55em; background: #E1E5EB; color: #7B8494; font-size: .72em; font-weight: 600; font-style: normal;
  clip-path: polygon(0 0, calc(100% - .5em) 0, 100% 50%, calc(100% - .5em) 100%, 0 100%, .5em 50%); }
.u-stg i:first-child { clip-path: polygon(0 0, calc(100% - .5em) 0, 100% 50%, calc(100% - .5em) 100%, 0 100%); }
.u-stg span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-stg i.is { background: #49A2E0; color: #fff; }
.u-stg i.is:last-child { background: #3DAA62; }
.u-crm-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.2fr; gap: .7em; }
.u-crm-f { display: flex; flex-direction: column; gap: .55em; padding: .7em; border-radius: .6em; background: #fff; }
.u-crm-f span { display: flex; flex-direction: column; font-size: .88em; }
.u-crm-f small { color: var(--muted); font-size: .82em; }
.u-crm-h { min-height: 0; display: flex; flex-direction: column; padding: .7em .7em 0; border-radius: .6em; background: #fff; }
.u-crm-h > small { color: var(--muted); font-size: .8em; }
.u-crm-h .u-track { gap: .45em; padding: .5em 0; }
.u-ev { position: relative; padding-left: 1.1em; font-size: .86em; line-height: 1.3; }
.u-ev::before { content: ""; position: absolute; left: .1em; top: .35em; width: .55em; height: .55em; border-radius: 50%; background: #49A2E0; }
.u-ev:last-child::before { background: #3DAA62; }
.u-stamp { position: absolute; right: 8%; bottom: 7%; padding: .35em .8em; border: 2.5px solid var(--red); border-radius: .4em; background: rgba(255, 253, 248, .88);
  color: var(--red); font: 400 1.1em/1.1 var(--f-display); text-transform: uppercase; rotate: -8deg; }

/* ---------- Схема автоматизации: узлы на холсте в точку (обобщённая, без логотипа) ---------- */
.u-flow-app { background: #FAFAFB; }
.u-canvas { position: relative; flex: 1; min-height: 0; background: radial-gradient(#D5D9E0 1px, transparent 1.3px) 0 0 / 1.3em 1.3em; }
/* провода: viewBox 100×100 растянут на холст, толщина — в его единицах (non-scaling-stroke ломает рисование по pathLength) */
.u-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.u-wires path { stroke: #B7BDC7; stroke-width: .45; }
.u-wires path.go { stroke: #2E9E5B; stroke-width: .6; }
.u-fl { position: absolute; width: 8em; margin: -2em 0 0 -4em; display: flex; flex-direction: column; align-items: center; text-align: center; }
.u-fl-i { position: relative; width: 4em; height: 4em; display: grid; place-items: center; border: 2px solid #C9CED6; border-radius: .7em; background: #fff; color: var(--pen);
  transition: border-color .3s, box-shadow .3s; }
.u-fl:nth-of-type(2) .u-fl-i { color: #A07A45; }
.u-fl:nth-of-type(3) .u-fl-i { color: var(--red); }
.u-fl-i .i { width: 1.8em; height: 1.8em; }
.u-fl-i::after { content: ""; position: absolute; right: -.55em; top: -.55em; width: 1.25em; height: 1.25em; border-radius: 50%; transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.5, .5, 1);
  background: #2E9E5B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5L19 7' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat; }
.u-fl.is .u-fl-i { border-color: #2E9E5B; box-shadow: 0 0 0 .25em rgba(46, 158, 91, .15); }
.u-fl.is .u-fl-i::after { transform: none; }
.u-fl b { margin-top: .4em; font-size: .85em; line-height: 1.15; }
.u-fl small { color: var(--muted); font-size: .72em; }
.u-rep { position: absolute; left: 7%; right: 7%; bottom: 5%; max-width: none; }

/* ---------- Фото Артёма в линейке лет: шаги 2016–2025 — нарисованные интерфейсы ---------- */
.photo-in { position: relative; overflow: hidden; }
.photo-in.has-ui > :not(.ui-st) { display: none !important; }
#about .photo-in .ui .i { display: block; } /* телефон прячет иконку-заглушку фото (#about .photo-in .i), не иконки сцены */

/* ---------- Узкое окно: телефон и ноутбук — окна воронки по одному, крупнее ---------- */
@container ui (max-width: 520px) {
  .u-price, .u-factory, .u-cons { font-size: min(3.5cqw, 4.9cqh); }
  .u-ask, .u-funnel, .u-team, .u-fixes { font-size: min(3.35cqw, 5.3cqh); }
  .u-row { inset: 5% 5% 12%; display: block; }
  .u-row > .u-app { position: absolute; inset: 0; opacity: 0; transform: translateX(10%) scale(.97); transition: opacity .45s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .u-row > .u-arr { display: none; }
  .ui-st[data-p="1"] .u-app[data-pn="1"], .ui-st[data-p="2"] .u-app[data-pn="2"], .ui-st[data-p="3"] .u-app[data-pn="3"] { opacity: 1; transform: none; }
  .u-dots { position: absolute; left: 0; right: 0; bottom: 3.5%; display: flex; justify-content: center; gap: .35em; }
  .u-dots i { width: .45em; height: .45em; border-radius: 1em; background: rgba(30, 27, 24, .25); transition: width .3s, background-color .3s; }
  .ui-st[data-p="1"] .u-dots [data-pn="1"], .ui-st[data-p="2"] .u-dots [data-pn="2"], .ui-st[data-p="3"] .u-dots [data-pn="3"] { width: 1.4em; background: var(--ink); }
  .u-reel { height: 14%; }
  .u-sheet { top: 10%; }
  .u-ans { display: none; }
  .u-cmts { gap: .45em; }
  .u-sheet-t { margin-bottom: .4em; }
  .u-render { display: grid; grid-template-columns: 7em 1fr; align-content: start; align-items: start; }
  .u-render > .u-slide { width: 100%; grid-row: span 2; }
  .u-album { width: 64%; grid-template-columns: repeat(6, 1fr); }
  .u-post-in { display: grid; grid-template-columns: 7em 1fr; grid-auto-rows: min-content; align-content: start; gap: .4em .7em; }
  .u-post-in > .u-slide { grid-row: span 3; }
  .u-car { display: none; }
  .u-kc-t, .u-note, .u-chips small, .u-fx small, .u-fx-sum { display: none; }
  .u-qs { padding: .3em .9em; }
  .u-qs li { min-height: 2.15em; gap: .6em; padding: .2em 0; }
  .u-qs span, .u-fx-t { white-space: normal; line-height: 1.2; }
  .u-fxs { gap: .45em; padding: .6em .8em; }
  .u-fx { gap: .6em; padding: .55em .7em; }
  /* доска проекта: карточки в одну строку, сдвиг в «В работе» — под меньшие поля */
  .u-crew small { display: none; }
  .u-prog { padding: .45em .6em 0; }
  .u-cols { gap: .6em; padding: .45em .6em .6em; }
  .u-col { gap: .3em; padding: .4em; }
  .ui .u-kc { align-items: center; padding: .35em .5em; transform: translateX(calc(-100% - 1.4em)); }
  .u-kc b { min-width: 0; font-size: .85em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .u-kc-f { grid-row: auto; flex-direction: row; }
  .u-kc-f .u-av { width: 1.4em; height: 1.4em; }
}
/* совсем маленькое окно (фото на телефоне): только главное */
@container ui (max-width: 340px) {
  .u-crm, .u-flow { font-size: min(5.2cqw, 4.9cqh); }
  .u-crm-nav, .u-crm-f, .u-crm-k, .u-crm-h > small, .u-fl b, .u-fl small, .u-rep span, .u-flow .u-live { display: none; }
  .u-crm-grid { grid-template-columns: 1fr; }
  .u-crm-t { font-size: 1.05em; }
  .u-stg i { height: .8em; padding: 0; }
  .u-stg span { display: none; }
  .u-stamp { right: 5%; bottom: 5%; font-size: .85em; }
  .u-fl-i { width: 3.4em; height: 3.4em; }
  .u-fl { margin-top: -1.7em; }
  .u-wires path { stroke-width: .9; }
  .u-wires path.go { stroke-width: 1.2; }
}

/* ---------- Без анимаций: последний кадр (scenes.js), без круга нажатия ---------- */
@media (prefers-reduced-motion: reduce) {
  .ui .hit::after { content: none; }
}
