/* AB MES — лендинг (softjet.ru/projects/mes/, 19.11.2026). Поверх _kit/v1 (тема Softjet) и ../projects.css.
   Сначала телефон (390 px), шире — надстройкой. У каждого блока своя анимация; при reduced-motion — сразу итог. */

:root { --ms-a: #5b6cff; --ms-a2: #fbbf24; --ms-ok: #3ddc97; --ms-warn: #f2b84b; --ms-deep: #1b1d24; }

/* Заглушки (data-stub) не ставим на открытую страницу; если понадобятся в копии — вернуть стиль из git (19.11). */
[data-stub] { outline: 2px dashed #fde047; outline-offset: 2px; }

.ms-brand { font: 700 18px/1 var(--font-display); letter-spacing: .06em; color: var(--text); }
.ms-brand i { font-style: normal; color: #fff; background: linear-gradient(135deg, var(--ms-a), #8b5cf6); border-radius: 6px; padding: 2px 5px; margin-right: 5px; }

.ms-head { margin-bottom: clamp(24px, 4vw, 44px); }
.ms-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.ms-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 36px; }
.ms-cta-row span { color: var(--muted); font-size: 14px; }

/* ===== первый экран ===== */
.ms-hero { position: relative; overflow: clip; background: var(--ms-deep); padding: 28px 0 56px; }
.ms-hero__bg { position: absolute; inset: 0; }
.ms-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; opacity: .45; animation: ms-ken 24s ease-in-out infinite alternate; }
.ms-hero__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,29,36,.55) 0%, rgba(27,29,36,.92) 55%, var(--ms-deep) 100%); }
@keyframes ms-ken { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.ms-hero__in { position: relative; display: grid; gap: 36px; }
.ms-title { font: 700 clamp(46px, 9vw, 96px)/.92 var(--font-display); text-transform: uppercase; margin: 0; letter-spacing: .01em; }
.ms-title .w { display: inline-block; opacity: 0; transform: translateY(.5em) rotate(4deg); filter: blur(6px);
  animation: ms-word .8s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * 110ms + 100ms); }
@keyframes ms-word { to { opacity: 1; transform: none; filter: none; } }
.ms-title-hand { font: 400 clamp(26px, 4vw, 40px)/1.1 var(--font-hand); color: var(--ms-a2); margin: 6px 0 20px;
  opacity: 0; animation: ms-fade .8s .7s forwards; }
@keyframes ms-fade { to { opacity: 1; } }
.ms-bullets { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.ms-bullets li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 16px; line-height: 1.4;
  opacity: 0; transform: translateX(-14px); animation: ms-in .6s cubic-bezier(.2,.7,.2,1) forwards; }
.ms-bullets li:nth-child(1) { animation-delay: .9s; } .ms-bullets li:nth-child(2) { animation-delay: 1s; }
.ms-bullets li:nth-child(3) { animation-delay: 1.1s; } .ms-bullets li:nth-child(4) { animation-delay: 1.2s; } .ms-bullets li:nth-child(5) { animation-delay: 1.3s; }
.ms-bullets li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 5px;
  background: linear-gradient(135deg, var(--ms-a), #8b5cf6); box-shadow: 0 0 0 4px rgba(91,108,255,.18); }
.ms-bullets b { color: #fff; font-weight: 600; }
@keyframes ms-in { to { opacity: 1; transform: none; } }
.ms-risk { margin: 16px 0 0; font-size: 14px; color: var(--text-2); }

.ms-tab { position: relative; max-width: 620px; justify-self: center; width: 100%; padding: 14px 0 30px; }
.ms-tab__frame { background: #0c0d11; border-radius: 22px; padding: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: perspective(1400px) rotateY(-8deg) rotateX(4deg); animation: ms-float 7s ease-in-out infinite; }
@keyframes ms-float { 50% { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg) translateY(-8px); } }
.ms-tab__screen { position: relative; aspect-ratio: 1180 / 820; border-radius: 12px; overflow: hidden; background: #e9edf5; }
.ms-tab__screen img, .ms-win__screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0 0;
  opacity: 0; transition: opacity .9s ease, transform 1.2s ease; transform: scale(1.03); }
.ms-tab__screen img.is-on, .ms-win__screen img.is-on { opacity: 1; transform: none; }
.ms-chip { position: absolute; display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap;
  background: rgba(20,22,30,.9); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); color: var(--text-2);
  padding: 8px 12px; border-radius: 100px; box-shadow: 0 10px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(10px) scale(.95);
  animation: ms-chip 9s infinite; }
.ms-chip b { color: #fff; }
.ms-chip--1 { left: -4px; top: 0; animation-delay: 1.6s; }
.ms-chip--2 { right: -4px; top: 42%; animation-delay: 4.6s; }
.ms-chip--3 { left: 8%; bottom: 0; animation-delay: 7.6s; }
@keyframes ms-chip { 0% { opacity: 0; transform: translateY(10px) scale(.95); } 6%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-8px) scale(.97); } }
.ms-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ms-dot--ok { background: var(--ms-ok); box-shadow: 0 0 10px var(--ms-ok); }
.ms-dot--warn { background: var(--ms-warn); box-shadow: 0 0 10px var(--ms-warn); }
.ms-dot--money { background: var(--ms-a2); box-shadow: 0 0 10px var(--ms-a2); }

@media (min-width: 1024px) {
  .ms-hero { padding: 64px 0 96px; }
  .ms-hero__in { grid-template-columns: 1.02fr 1fr; align-items: center; gap: 48px; }
  .ms-chip--1 { left: -28px; } .ms-chip--2 { right: -24px; }
}

/* ===== узнаёте себя: зачёркивание и ответ ===== */
.ms-pain__grid { display: grid; gap: 28px; }
.ms-pain__pic { margin: 0; border-radius: 16px; overflow: hidden; position: relative; }
.ms-pain__pic img { display: block; width: 100%; height: auto; filter: saturate(.7); transition: filter 1.2s; }
.ms-pain__pic.is-in img { filter: saturate(.7) contrast(1.05); }
.ms-pain__pic figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 12px; font-size: 13px; color: var(--text-2);
  background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.ms-pain__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ms-pain__list li { background: var(--panel); border-radius: 14px; padding: 16px 18px; border-left: 3px solid var(--line-strong); }
.ms-pain__list q { quotes: "«" "»"; font-size: 17px; font-weight: 600; color: #fff; position: relative;
  background: linear-gradient(var(--coral), var(--coral)) 0 58% / 0 2px no-repeat; transition: background-size .7s cubic-bezier(.6,0,.2,1), color .7s; }
.ms-src { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.ms-pain__list p { margin: 0; max-height: 0; opacity: 0; overflow: hidden; color: var(--text-2); font-size: 15px;
  transition: max-height .7s .5s ease, opacity .6s .6s, margin .6s .5s; }
.ms-pain__list p b { color: var(--sky); }
.ms-pain__list li.is-in { border-left-color: var(--ms-ok); }
.ms-pain__list li.is-in q { background-size: 100% 2px; color: var(--muted); }
.ms-pain__list li.is-in p { max-height: 120px; opacity: 1; margin-top: 10px; }
@media (min-width: 1024px) {
  .ms-pain__grid { grid-template-columns: .9fr 1.1fr; align-items: start; gap: 40px; }
  .ms-pain__pic { position: sticky; top: 90px; }
}

/* ===== экраны: на телефоне карточки, на широком — закреплённое окно ===== */
.ms-tour__grid { display: grid; gap: 20px; }
.ms-step { background: var(--panel); border-radius: 16px; padding: 18px; }
.ms-step__n { font: 700 34px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px var(--sky); }
.ms-step h3 { font-size: 19px; margin: 6px 0 8px; line-height: 1.25; }
.ms-step p { color: var(--text-2); margin: 0 0 14px; font-size: 15px; }
.ms-step__img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.ms-tour__stage { display: none; }
@media (min-width: 1024px) {
  .ms-tour__grid { grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
  .ms-step { background: none; padding: 0; min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
    opacity: .28; transform: translateX(-10px); transition: opacity .5s, transform .5s; }
  .ms-step.is-active { opacity: 1; transform: none; }
  .ms-step:last-child { min-height: 70vh; }
  .ms-step h3 { font-size: 26px; }
  .ms-step p { font-size: 17px; }
  .ms-step__img { display: none; }
  .ms-tour__stage { display: block; position: sticky; top: calc(50vh - 260px); }
}
.ms-win { background: #0c0d11; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.ms-win__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; font-size: 12px; color: var(--muted); }
.ms-win__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .ms-win__bar i:nth-child(2) { background: #febc2e; } .ms-win__bar i:nth-child(3) { background: #28c840; }
.ms-win__bar span { margin-left: 10px; background: rgba(255,255,255,.06); border-radius: 6px; padding: 2px 10px; }
.ms-win__n { margin-left: auto; font: 700 15px/1 var(--font-display); color: var(--sky); letter-spacing: .08em; }
.ms-win__screen { position: relative; aspect-ratio: 16 / 10; background: #e9edf5; overflow: hidden; }
.ms-win__screen img { clip-path: inset(0 0 0 100%); transition: clip-path .8s cubic-bezier(.6,0,.2,1), opacity .3s; }
.ms-win__screen img.is-on { clip-path: inset(0 0 0 0); }
.ms-win__dots { display: flex; gap: 6px; justify-content: center; padding: 10px; }
.ms-win__dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.18); transition: background .4s, width .4s; }
.ms-win__dots i.is-on { background: var(--sky); width: 40px; }

/* ===== зарплата: полоса из частей + телефон ===== */
.ms-pay__grid { display: grid; gap: 36px; align-items: center; }
.ms-stack { background: var(--panel); border-radius: 16px; padding: 18px; }
.ms-stack__bar { display: flex; height: 18px; border-radius: 10px; overflow: hidden; background: rgba(255,255,255,.06); }
.ms-stack__bar i { width: 0; background: var(--c); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.ms-stack.is-in .ms-stack__bar i { width: var(--w); }
.ms-stack.is-in .ms-stack__bar i:nth-child(2) { transition-delay: .5s; } .ms-stack.is-in .ms-stack__bar i:nth-child(3) { transition-delay: .9s; }
.ms-stack.is-in .ms-stack__bar i:nth-child(4) { transition-delay: 1.3s; } .ms-stack.is-in .ms-stack__bar i:nth-child(5) { transition-delay: 1.7s; }
.ms-stack__legend { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-size: 14px; color: var(--text-2); }
.ms-stack__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c); margin-right: 6px; }
.ms-stack__legend b { color: #fff; font-weight: 600; }
.ms-stack__sum { margin: 14px 0 0; font-size: 17px; } .ms-stack__sum b { font: 700 30px/1 var(--font-display); color: var(--ms-a2); letter-spacing: .02em; }
.ms-phone { justify-self: center; width: min(320px, 86vw); background: #0c0d11; border-radius: 40px; padding: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.1); }
.ms-phone__in { background: #f1f4fa; color: #1b1d24; border-radius: 30px; padding: 26px 18px 20px; display: grid; gap: 10px; }
.ms-phone__t { margin: 0; font-weight: 700; font-size: 19px; } .ms-phone__s { margin: -8px 0 0; color: #6b7280; font-size: 13px; }
.ms-phone__big { background: linear-gradient(135deg, var(--ms-a), #8b5cf6); color: #fff; border-radius: 18px; padding: 16px; font: 700 40px/1 var(--font-display); letter-spacing: .02em; }
.ms-phone__big small { display: block; font: 500 12px/1.4 var(--font-text); opacity: .85; margin-top: 4px; letter-spacing: 0; }
.ms-phone__row { display: flex; justify-content: space-between; background: #fff; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.ms-phone__row b { color: #16a34a; }
.ms-phone__bonus { background: #fff7e0; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 14px; font-size: 13px; display: grid; gap: 4px; }
.ms-phone__bonus span { color: #92400e; }
.ms-phone__prog { display: block; height: 6px; border-radius: 6px; background: #fde68a; overflow: hidden; }
.ms-phone__prog i { display: block; height: 100%; width: 0; background: #f59e0b; transition: width 1.6s 1s cubic-bezier(.2,.7,.2,1); }
.ms-phone.is-in .ms-phone__prog i { width: 64%; }
.ms-phone__hint { font-size: 12px; color: #6b7280; text-align: center; }
.ms-phone__btn { min-height: 48px; border: 0; border-radius: 14px; background: #1b1d24; color: #fff; font: 600 16px var(--font-text); position: relative; overflow: hidden; }
.ms-phone__btn::after { content: ""; position: absolute; inset: 0; background: var(--shine); transform: translateX(-100%); animation: ms-shine 3.2s 2s infinite; }
@keyframes ms-shine { 40%, 100% { transform: translateX(100%); } }
@media (min-width: 1024px) { .ms-pay__grid { grid-template-columns: 1.15fr .85fr; gap: 56px; } }

/* ===== голос: чат печатается ===== */
.ms-voice__grid { display: grid; gap: 32px; align-items: center; }
.ms-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text-2); }
.ms-ticks li::before { content: "✓"; color: var(--ms-ok); font-weight: 700; margin-right: 10px; }
.ms-chat { background: var(--panel); border-radius: 20px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.ms-chat__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.ms-mic { width: 28px; height: 28px; border-radius: 50%; background: var(--ms-a); position: relative; }
.ms-mic::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--ms-a); animation: ms-pulse 1.6s infinite; }
@keyframes ms-pulse { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.ms-chat__body { padding: 18px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.ms-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.ms-msg.is-on { opacity: 1; transform: none; }
.ms-msg--q { align-self: flex-end; background: var(--ms-a); color: #fff; border-bottom-right-radius: 4px; }
.ms-msg--a { align-self: flex-start; background: var(--panel-2); border-bottom-left-radius: 4px; }
.ms-msg em { display: inline-block; margin-left: 8px; font-style: normal; font-size: 12px; color: var(--ms-ok); background: rgba(61,220,151,.12); padding: 1px 7px; border-radius: 10px; }
.ms-msg.is-typing { opacity: 1; transform: none; color: transparent; position: relative; min-width: 64px; }
.ms-msg.is-typing::after { content: "• • •"; position: absolute; left: 14px; top: 9px; color: var(--muted); animation: ms-blink 1s infinite; }
@keyframes ms-blink { 50% { opacity: .3; } }
@media (min-width: 1024px) { .ms-voice__grid { grid-template-columns: 1fr 1fr; gap: 56px; } }

/* ===== запуск: дорога с прорисовкой ===== */
.ms-road { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 18px; }
.ms-road::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.ms-road::after { content: ""; position: absolute; left: 8px; top: 6px; width: 2px; height: calc(var(--p, 0) * (100% - 12px));
  background: linear-gradient(var(--ms-a), var(--sky)); transition: height .3s linear; }
.ms-road li { position: relative; background: var(--panel); border-radius: 14px; padding: 14px 16px; opacity: .35; transition: opacity .5s; }
.ms-road li::before { content: ""; position: absolute; left: -24px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: .4s; z-index: 1; }
.ms-road li.is-on { opacity: 1; } .ms-road li.is-on::before { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 12px var(--sky); }
.ms-road b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); }
.ms-road h3 { margin: 4px 0; font-size: 18px; } .ms-road p { margin: 0; color: var(--text-2); font-size: 15px; }
@media (min-width: 1024px) {
  .ms-road { grid-auto-flow: column; grid-auto-columns: 1fr; padding: 34px 0 0; gap: 16px; }
  .ms-road::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .ms-road::after { left: 0; top: 7px; height: 2px; width: calc(var(--p, 0) * 100%); transition: width .3s linear; }
  .ms-road li::before { left: 16px; top: -34px; }
}

/* ===== сравнение ===== */
.ms-cmp__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; background: var(--panel); }
.ms-cmp__t { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.ms-cmp__t th, .ms-cmp__t td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ms-cmp__t thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ms-cmp__t tbody th { font-weight: 600; color: #fff; width: 24%; }
.ms-cmp__t td { color: var(--text-2); }
.ms-cmp__t .is-us { background: rgba(91,108,255,.12); color: #fff; font-weight: 600; }
.ms-cmp__t thead .is-us { color: var(--sky); }
.ms-cmp__t tbody tr { opacity: 0; transform: translateX(-16px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--r, 0) * 120ms); }
.ms-cmp__wrap.is-in tbody tr { opacity: 1; transform: none; }

/* ===== доказательства ===== */
.ms-proof__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ms-num { background: var(--panel); border-radius: 16px; padding: 18px; }
.ms-num b { display: block; font: 700 clamp(40px, 6vw, 64px)/1 var(--font-display); background: var(--grad-title); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-num span { font-size: 14px; color: var(--text-2); }
@media (min-width: 1024px) { .ms-proof__grid { grid-template-columns: repeat(4, 1fr); } }
.ms-founder { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; margin-top: 28px; background: var(--panel); border-radius: 16px; padding: 18px; }
.ms-founder img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.ms-founder__q { margin: 0 0 6px; font-size: 17px; color: #fff; }
.ms-founder__n { margin: 0; font-size: 13px; color: var(--muted); } .ms-founder__n a { color: var(--sky); }
.ms-pilot { margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(91,108,255,.25), rgba(251,191,36,.16)); color: var(--text-2); }
.ms-pilot b { color: #fff; }

/* ===== финал и форма ===== */
.ms-final__in { position: relative; text-align: left; padding: clamp(24px, 5vw, 56px); border-radius: 24px; background: var(--panel); overflow: hidden; isolation: isolate; }
.ms-final__in::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(91,108,255,.55), transparent 65%); animation: ms-glow 6s ease-in-out infinite alternate; }
@keyframes ms-glow { to { transform: translate(-120px, 80px) scale(1.15); } }
.ms-dlg { border: 0; padding: 26px 20px 20px; border-radius: 20px; background: var(--panel); color: var(--text);
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); }
.ms-dlg::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(3px); }
.ms-dlg[open] { animation: ms-dlg .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes ms-dlg { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.ms-dlg__x { position: absolute; right: 10px; top: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 26px; cursor: pointer; }
.ms-dlg__x:hover { background: var(--panel-2); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .ms-title .w, .ms-title-hand, .ms-bullets li { animation: none !important; opacity: 1; transform: none; filter: none; }
  .ms-hero__bg img, .ms-tab__frame, .ms-mic::after, .ms-phone__btn::after, .ms-final__in::before, .ms-dlg[open] { animation: none !important; }
  .ms-chip { animation: none !important; opacity: 1; transform: none; }
  .ms-pain__list q, .ms-pain__list p, .ms-stack__bar i, .ms-phone__prog i, .ms-cmp__t tbody tr, .ms-msg, .ms-win__screen img, .ms-step { transition: none !important; }
}
