/* =========================================================
   MIRIDEA · лендинг продукта «Мирсей» (/mirsey/)
   Самостоятельные стили (префикс .ms-), опираются только на .container сайта.
   ========================================================= */
.ms {
  --red1: #f93c3c; --red2: #cd0973; --vio1: #a068f8; --vio2: #3f55c3;
  --ink: #39404b; --text: #4a5266; --muted: #6b7489; --line: #e4e7f0; --soft: #f5f6fb;
  --r: 10px 30px 10px 30px; --ease: cubic-bezier(.22, 1, .36, 1);
  --gap: 90px;
  color: var(--text); overflow-x: clip;
}
@media (max-width: 768px) { .ms { --gap: 60px; } }
.ms *, .ms *::before, .ms *::after { box-sizing: border-box; }
:where(.ms) :where(h1, h2, h3, p, ul, ol) { margin: 0; }
:where(.ms) :where(ul, ol) { padding: 0; list-style: none; }
.ms svg { display: block; }
.ms-sr { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Общие элементы ---------- */
.ms-sec { position: relative; padding-block: calc(var(--gap) / 2); }
.ms-sec--soft { margin-block: calc(var(--gap) / 2); padding-block: var(--gap); background: linear-gradient(180deg, #f7f5ff, #fdf4f7); }
.ms-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 60px; align-items: end; margin-bottom: 40px; }
.ms-head p { max-width: 60ch; padding-bottom: 6px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.ms-head--col { grid-template-columns: 1fr; align-items: start; }
@media (max-width: 992px) { .ms-head { grid-template-columns: 1fr; margin-bottom: 30px; } }
.ms-h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.15; font-weight: 700; text-transform: uppercase; color: var(--ink); }
.ms-h2 span { background: linear-gradient(120deg, var(--red1), var(--red2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ms-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px 22px 10px 22px; background: linear-gradient(135deg, var(--vio1), var(--vio2)); color: #fff; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.ms-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-ico--red { background: linear-gradient(135deg, var(--red1), var(--red2)); }
.ms-ico--s { width: 44px; height: 44px; border-radius: 8px 18px 8px 18px; }
.ms-ico--s svg { width: 22px; height: 22px; }
.ms-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 30px; border: 0; border-radius: 10px 24px 10px 24px; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s, background-color .3s, color .3s;
}
.ms-btn--red { background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; box-shadow: 0 18px 36px -18px rgba(249, 60, 60, .9); }
.ms-btn--red:hover { color: #fff; transform: translateY(-2px) scale(1.03); box-shadow: 0 24px 44px -18px rgba(249, 60, 60, 1); }
.ms-btn--ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }
.ms-btn--ghost:hover { color: var(--red1); border-color: var(--red1); transform: translateY(-2px); }
.ms-btn--white { background: #fff; color: var(--red2); }
.ms-btn--white:hover { color: var(--red1); transform: translateY(-2px) scale(1.03); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .4); }

/* ---------- 1. Главный экран ---------- */
.ms-hero { position: relative; padding: 150px 0 calc(var(--gap) / 2); }
@media (max-width: 992px) { .ms-hero { padding-top: 110px; } }
.ms-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ms-hero__bg i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; animation: ms-drift 18s ease-in-out infinite alternate; }
.ms-hero__bg i:nth-child(1) { width: 520px; height: 520px; left: -160px; top: 20px; background: #d9c8ff; }
.ms-hero__bg i:nth-child(2) { width: 460px; height: 460px; right: -80px; top: 60px; background: #ffc6d6; animation-delay: -6s; }
.ms-hero__bg i:nth-child(3) { width: 320px; height: 320px; left: 40%; bottom: -120px; background: #c9e2ff; animation-delay: -12s; }
@keyframes ms-drift { to { transform: translate(60px, 40px) scale(1.12); } }
.ms-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 50px 60px; align-items: center; }
@media (max-width: 1100px) { .ms-hero__grid { grid-template-columns: 1fr; } }
.ms-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 8px 16px; border-radius: 8px 18px 8px 18px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); box-shadow: 0 14px 30px -24px rgba(63, 85, 195, .8); }
.ms-kicker i { width: 9px; height: 9px; border-radius: 50%; background: #22c58b; box-shadow: 0 0 0 0 rgba(34, 197, 139, .6); animation: ms-ping 2s infinite; }
@keyframes ms-ping { 70% { box-shadow: 0 0 0 9px rgba(34, 197, 139, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 139, 0); } }
.ms-hero__title { margin-bottom: 22px; font-size: clamp(32px, 3.7vw, 56px); line-height: 1.1; font-weight: 700; color: var(--ink); }
.ms-hero__title span { display: inline-block; padding-bottom: .05em; text-transform: uppercase; background: linear-gradient(120deg, var(--red1), var(--red2) 55%, var(--vio1)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: ms-shine 6s ease-in-out infinite alternate; }
@keyframes ms-shine { to { background-position: 100% 0; } }
.ms-hero__lead { max-width: 58ch; margin-bottom: 30px; font-size: 18px; line-height: 1.6; color: var(--text); }
.ms-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.ms-hero__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ms-hero__facts li { padding-left: 14px; border-left: 3px solid var(--red1); }
.ms-hero__facts li:nth-child(even) { border-color: var(--vio1); }
.ms-hero__facts b { display: block; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.15; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ms-hero__facts span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.35; color: var(--muted); }
@media (max-width: 600px) { .ms-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ms-hero__cta .ms-btn { flex: 1 1 100%; } }

/* живое демо */
.ms-demo { position: relative; padding: 0 0 120px 0; }
@media (max-width: 1100px) { .ms-demo { max-width: 680px; width: 100%; justify-self: center; } }
.ms-app { position: relative; margin-left: 60px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 50px 90px -40px rgba(27, 31, 94, .45); overflow: hidden; }
.ms-app__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: #1b2150; color: #c9d0f5; font-size: 13px; }
.ms-app__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.ms-app__bar i:nth-child(2) { background: #febc2e; } .ms-app__bar i:nth-child(3) { background: #28c840; }
.ms-app__bar span { margin-left: 8px; font-weight: 500; color: #fff; }
.ms-app__online { margin-left: auto; font-style: normal; color: #9aa5d8; }
.ms-app__online b { color: #5ff0b5; }
.ms-app__body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 330px; }
.ms-app__list { padding: 12px 10px; border-right: 1px solid var(--line); background: var(--soft); }
.ms-v { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 2px 8px; align-items: center; padding: 10px; border-radius: 8px 14px 8px 14px; transition: background .4s, opacity .4s, transform .5s var(--ease); }
.ms-v + .ms-v { margin-top: 4px; }
.ms-v b { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ms-v span { grid-column: 2; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-v em { font-style: normal; }
.ms-v__dot { width: 9px; height: 9px; border-radius: 50%; background: #22c58b; }
.ms-v.is-active { background: #fff; box-shadow: 0 10px 22px -16px rgba(27, 31, 94, .6); }
.ms-v.is-gone { opacity: .5; } .ms-v.is-gone .ms-v__dot { background: #b9bfd3; }
.ms-v.is-new { animation: ms-vin .6s var(--ease) .25s both; }
@keyframes ms-vin { from { opacity: 0; transform: translateX(-16px); } }
.ms-v u { position: absolute; right: 8px; top: 9px; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red1); color: #fff; font-size: 11px; font-weight: 700; text-decoration: none; }
.ms-v.is-hot .ms-v__dot { background: var(--red1); box-shadow: 0 0 0 0 rgba(249, 60, 60, .6); animation: ms-ping-r 1.4s infinite; }
@keyframes ms-ping-r { 70% { box-shadow: 0 0 0 7px rgba(249, 60, 60, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 60, 60, 0); } }
.ms-app__chat { display: flex; flex-direction: column; min-width: 0; }
.ms-app__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ms-app__head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-toggle { flex: none; display: flex; padding: 3px; border: 0; border-radius: 8px 14px 8px 14px; background: var(--soft); font: inherit; pointer-events: none; }
.ms-toggle i { padding: 4px 10px; border-radius: 6px 12px 6px 12px; font-size: 11px; font-style: normal; font-weight: 700; color: var(--muted); transition: background .4s, color .4s; }
.ms-toggle i:first-child { background: linear-gradient(120deg, var(--vio1), var(--vio2)); color: #fff; }
.ms-toggle.is-op i:first-child { background: transparent; color: var(--muted); }
.ms-toggle.is-op i:last-child { background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; }
.ms-app__msgs { flex: none; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px; height: 250px; overflow: hidden; }
.ms-app__typing { min-height: 34px; padding: 8px 14px; border-top: 1px dashed var(--line); font-size: 12px; font-style: italic; color: var(--vio2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ms-m { flex: none; max-width: 86%; padding: 8px 12px; border-radius: 12px 12px 12px 4px; font-size: 13px; line-height: 1.4; animation: ms-pop .6s var(--ease) both; transition: opacity .45s ease; }
@keyframes ms-pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.ms-m.is-out { opacity: 0; }
.ms-app__msgs, .ms-widget__msgs { transition: opacity .45s ease; }
.ms-app__msgs.is-fade, .ms-widget__msgs.is-fade { opacity: 0; }
.ms-m small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; opacity: .75; }
.ms-m--in { align-self: flex-start; background: var(--soft); color: var(--ink); }
.ms-m--ai { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: linear-gradient(120deg, var(--vio1), var(--vio2)); color: #fff; }
.ms-m--op { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; }
.ms-m--sys { align-self: center; padding: 4px 10px; border-radius: 10px; background: #fff3d6; color: #8a5a00; font-size: 11.5px; font-weight: 500; }
.ms-dots { display: inline-flex; gap: 4px; padding: 4px 2px; }
.ms-dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .4; animation: ms-dot 1.1s infinite; }
.ms-dots i:nth-child(2) { animation-delay: .18s; } .ms-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes ms-dot { 50% { opacity: 1; transform: translateY(-2px); } }

.ms-widget { position: absolute; left: 0; bottom: 0; z-index: 2; width: 270px; border-radius: 16px 16px 16px 6px; background: #fff; box-shadow: 0 40px 80px -30px rgba(27, 31, 94, .55), 0 0 0 1px rgba(27, 31, 94, .06); overflow: hidden; animation: ms-float 7s ease-in-out infinite; }
@keyframes ms-float { 50% { transform: translateY(-8px); } }
.ms-widget__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; }
.ms-widget__head b { display: block; font-size: 14px; }
.ms-widget__head small { display: block; font-size: 11.5px; opacity: .85; }
.ms-widget__ava { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--red2); font-weight: 700; font-size: 16px; }
.ms-widget__ava i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c58b; border: 2px solid #fff; }
.ms-widget__msgs { display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; height: 210px; padding: 12px; overflow: hidden; background: #fbfbfe; }
.ms-widget .ms-m { font-size: 12.5px; }
.ms-widget .ms-m--in { align-self: flex-end; border-radius: 12px 12px 4px 12px; background: #eceff7; }
.ms-widget .ms-m--ai, .ms-widget .ms-m--op { align-self: flex-start; border-radius: 12px 12px 12px 4px; }
.ms-widget__input { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: #9aa2b8; }
.ms-widget__input span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-widget__input span.is-typing { color: var(--ink); }
.ms-widget__input span.is-typing::after { content: "|"; margin-left: 1px; animation: ms-blink 1s steps(1) infinite; }
@keyframes ms-blink { 50% { opacity: 0; } }
.ms-widget__input i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; }
.ms-widget__input i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ms-toast { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px 22px 10px 22px; background: #1b2150; color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: 0 24px 50px -20px rgba(27, 31, 94, .8); opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease); pointer-events: none; }
.ms-toast svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #22c58b; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ms-toast.is-on { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .ms-demo { padding-bottom: 0; }
  .ms-app { margin-left: 0; }
  .ms-app__body { grid-template-columns: 1fr; min-height: 0; }
  .ms-app__list, .ms-widget { display: none; }
  .ms-app__msgs { height: 290px; }
  .ms-toast { right: 50%; bottom: 46px; transform: translate(50%, 14px); white-space: nowrap; }
  .ms-toast.is-on { transform: translate(50%, 0); }
}


/* ---------- 2. Попробуйте ---------- */
.ms-try__box { position: relative; display: flex; align-items: center; gap: 22px; padding: 24px 90px 24px 26px; border-radius: var(--r); background: #fff; border: 2px dashed #d9cdfb; }
.ms-try__box p { font-size: 17px; line-height: 1.55; color: var(--text); }
.ms-try__box b { color: var(--ink); }
.ms-try__pulse { flex: none; position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--red1), var(--red2)); color: #fff; }
.ms-try__pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red1); animation: ms-ring 2s ease-out infinite; }
@keyframes ms-ring { to { transform: scale(1.6); opacity: 0; } }
.ms-try__pulse svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.ms-try__arrow { position: absolute; right: 22px; bottom: 10px; width: 60px; color: var(--red1); animation: ms-nudge 1.8s ease-in-out infinite; }
.ms-try__arrow svg { width: 60px; height: 40px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes ms-nudge { 50% { transform: translate(5px, 4px); } }
@media (max-width: 600px) { .ms-try__box { flex-direction: column; align-items: flex-start; padding: 22px 20px 54px; } .ms-try__box p { font-size: 16px; } }

/* ---------- 3. Боль ---------- */
.ms-pain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .ms-pain { grid-template-columns: 1fr; } }
.ms-pain article { padding: 30px 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); transition: translate .5s var(--ease), box-shadow .5s, border-color .4s; }
.ms-pain article:hover { translate: 0 -5px; border-color: transparent; box-shadow: 0 30px 60px -34px rgba(63, 85, 195, .55); }
.ms-pain article:hover .ms-ico { transform: scale(1.08) rotate(-6deg); }
.ms-pain h3 { margin: 20px 0 10px; font-size: 21px; line-height: 1.25; font-weight: 700; color: var(--ink); }
.ms-pain p { font-size: 15.5px; line-height: 1.6; color: var(--text); }

/* ---------- 4. Возможности ---------- */
.ms-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) { .ms-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ms-feats { grid-template-columns: 1fr; } }
.ms-feat { padding: 28px 24px; border-radius: var(--r); background: #fff; border: 1px solid #ece8fb; transition: translate .5s var(--ease), box-shadow .5s; }
.ms-feat:hover { translate: 0 -5px; box-shadow: 0 30px 60px -34px rgba(91, 75, 214, .6); }
.ms-feat:hover .ms-ico { transform: scale(1.08) rotate(-6deg); background: linear-gradient(135deg, var(--red1), var(--red2)); }
.ms-feat h3 { margin: 18px 0 8px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.ms-feat p { font-size: 14.5px; line-height: 1.6; color: var(--text); }

/* ---------- 5. Путь клиента ---------- */
.ms-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; counter-reset: f; }
.ms-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 38px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--vio1), var(--red1)); opacity: .25; }
.ms-flow::after { content: ""; position: absolute; left: 10%; top: 33px; width: 13px; height: 13px; border-radius: 50%; background: var(--red1); box-shadow: 0 0 16px 4px rgba(249, 60, 60, .5); animation: ms-run 5s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes ms-run { 0% { left: 10%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 89%; opacity: 0; } }
.ms-flow li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ms-flow__ico { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; margin-bottom: 18px; border-radius: 14px 30px 14px 30px; background: #fff; border: 1px solid var(--line); color: var(--vio2); box-shadow: 0 20px 40px -26px rgba(63, 85, 195, .6); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .4s, color .4s; }
.ms-flow li:hover .ms-flow__ico { transform: translateY(-4px) scale(1.06); background: linear-gradient(135deg, var(--red1), var(--red2)); color: #fff; }
.ms-flow li:last-child .ms-flow__ico { background: linear-gradient(135deg, var(--red1), var(--red2)); color: #fff; border-color: transparent; }
.ms-flow__ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ms-flow b { margin-bottom: 6px; font-size: 17px; line-height: 1.3; color: var(--ink); }
.ms-flow p { max-width: 24ch; font-size: 14px; line-height: 1.55; color: var(--muted); }
@media (max-width: 900px) {
  .ms-flow { grid-template-columns: 1fr; gap: 14px; }
  .ms-flow::before { left: 38px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; }
  .ms-flow::after { display: none; }
  .ms-flow li { display: grid; grid-template-columns: 78px 1fr; gap: 0 18px; align-items: center; text-align: left; }
  .ms-flow__ico { grid-row: span 2; margin: 0; }
  .ms-flow b { align-self: end; margin: 0; } .ms-flow p { align-self: start; max-width: none; }
}

/* ---------- 6. Тёмная лента: сравнение + калькулятор ---------- */
.ms-dark { margin-block: calc(var(--gap) / 2); padding-block: var(--gap); isolation: isolate; overflow: hidden; background: radial-gradient(60% 90% at 90% 0%, #2a3170, transparent 70%), radial-gradient(50% 80% at 0% 100%, #3a1748, transparent 70%), #141a3c; color: #d4daf8; }
.ms-dark__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ms-dark__fx i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.ms-dark__fx i:nth-child(1) { width: 560px; height: 560px; left: -150px; top: -160px; background: #5b3cf0; animation: ms-drift 16s ease-in-out infinite alternate; }
.ms-dark__fx i:nth-child(2) { width: 480px; height: 480px; right: -120px; bottom: -160px; background: #cd0973; opacity: .4; animation: ms-drift 20s ease-in-out -5s infinite alternate-reverse; }
.ms-dark__fx span { position: absolute; left: -10%; right: -10%; bottom: -10%; height: 60%; background-image: linear-gradient(rgba(201, 182, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 182, 255, .14) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%; -webkit-mask-image: linear-gradient(transparent, #000 75%); mask-image: linear-gradient(transparent, #000 75%); animation: ms-grid 6s linear infinite; }
@keyframes ms-grid { to { background-position: 0 60px, 0 0; } }
.ms-head--light .ms-h2 { color: #fff; }
.ms-head--light .ms-h2 span { background-image: linear-gradient(120deg, #ff8fb1, var(--red1) 50%, #c9b6ff); }
.ms-head--light p { color: #b9c2ef; }
.ms-vs { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .ms-vs { grid-template-columns: 1fr; } }
.ms-table { border-radius: var(--r); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.ms-table__row { display: grid; grid-template-columns: 1fr 1.25fr 1.4fr; }
.ms-table__row > span { padding: 18px 20px; font-size: 15px; line-height: 1.5; border-top: 1px solid rgba(255, 255, 255, .08); }
.ms-table__row--head > span { border-top: 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #9aa5d8; }
.ms-table__row--head > span:last-child { color: #fff; }
.ms-table__row > span:first-child { font-weight: 700; color: #fff; }
.ms-table__row > span:nth-child(2) { color: #9aa5d8; }
.ms-table__row > span:last-child { position: relative; padding-left: 46px; background: rgba(249, 60, 60, .09); color: #fff; font-weight: 500; }
.ms-table__row:not(.ms-table__row--head) > span:last-child::before { content: ""; position: absolute; left: 16px; top: 19px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--red1), var(--red2)) ; -webkit-mask: none; }
.ms-table__row:not(.ms-table__row--head) > span:last-child::after { content: ""; position: absolute; left: 22px; top: 24px; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
@media (max-width: 700px) {
  .ms-table__row { grid-template-columns: 1fr 1fr; }
  .ms-table__row > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; border-top: 1px solid rgba(255, 255, 255, .12); }
  .ms-table__row > span:nth-child(2), .ms-table__row > span:last-child { border-top: 0; font-size: 14px; }
  .ms-table__row--head > span:first-child { display: none; }
}
.ms-calc { padding: 30px 28px; border-radius: 12px 36px 12px 36px; border: 2px solid transparent; background: linear-gradient(#1a2152, #1a2152) padding-box, linear-gradient(120deg, var(--red1), var(--vio1), var(--vio2), var(--red1)) border-box; background-size: 100% 100%, 300% 100%; animation: ms-border 8s linear infinite; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
@keyframes ms-border { to { background-position: 0 0, 300% 0; } }
.ms-calc h3 { margin-bottom: 20px; font-size: 22px; font-weight: 700; color: #fff; }
.ms-calc__f { display: block; margin-bottom: 18px; }
.ms-calc__f > span { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; color: #b9c2ef; }
.ms-calc__f > span b { color: #fff; font-size: 16px; }
.ms-calc input[type="range"] { width: 100%; accent-color: var(--red1); }
.ms-calc input[type="number"] { width: 100%; height: 48px; padding: 0 14px; border-radius: 8px 16px 8px 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 17px; font-weight: 700; }
.ms-calc input[type="number"]:focus { outline: 2px solid var(--vio1); outline-offset: 1px; }
.ms-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ms-chips button { flex: 1 1 auto; min-height: 42px; padding: 0 14px; border-radius: 8px 16px 8px 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: #d4daf8; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.ms-chips button:hover { border-color: rgba(255, 255, 255, .5); color: #fff; }
.ms-chips button.is-on { background: linear-gradient(120deg, var(--red1), var(--red2)); border-color: transparent; color: #fff; }
.ms-calc__res { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.ms-calc__res div { padding: 14px 16px; border-radius: 8px 18px 8px 18px; background: rgba(255, 255, 255, .06); }
.ms-calc__res small { display: block; margin-bottom: 4px; font-size: 12.5px; color: #9aa5d8; }
.ms-calc__res b { font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-calc__res div:first-child b { color: #ff9db5; text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 157, 181, .6); }
.ms-calc__total { margin-top: 16px; font-size: 18px; color: #fff; }
.ms-calc__total b { font-size: clamp(26px, 2.6vw, 34px); background: linear-gradient(120deg, #5ff0b5, #8fd3ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; }
.ms-calc__note { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: #8d97c9; }

/* ---------- 7. Цены ---------- */
.ms-promo { display: flex; align-items: center; gap: 22px; margin-bottom: 26px; padding: 26px 30px; border-radius: var(--r); background: linear-gradient(120deg, var(--red1), var(--red2) 60%, #8b3ffd); color: #fff; box-shadow: 0 30px 60px -34px rgba(205, 9, 115, .8); }
.ms-promo__ico { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 12px 26px 12px 26px; background: rgba(255, 255, 255, .18); animation: ms-tilt 3s ease-in-out infinite; }
@keyframes ms-tilt { 50% { transform: rotate(-10deg) scale(1.06); } }
.ms-promo__ico svg { width: 32px; height: 32px; fill: #fff; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.ms-promo b { display: block; margin-bottom: 4px; font-size: 21px; line-height: 1.3; }
.ms-promo p { font-size: 15px; line-height: 1.55; opacity: .92; }
.ms-promo .ms-btn { flex: none; margin-left: auto; }
@media (max-width: 800px) { .ms-promo { flex-direction: column; align-items: flex-start; } .ms-promo .ms-btn { margin-left: 0; } }

.ms-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
@media (max-width: 992px) { .ms-plans { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
.ms-plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 12px 36px 12px 36px; background: #fff; border: 1px solid var(--line); transition: translate .5s var(--ease), box-shadow .5s; }
.ms-plan:hover { translate: 0 -6px; box-shadow: 0 34px 70px -38px rgba(63, 85, 195, .6); }
.ms-plan--hit { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--red1), var(--vio1), var(--vio2)) border-box; box-shadow: 0 34px 70px -38px rgba(205, 9, 115, .55); }
.ms-plan__badge { position: absolute; top: -14px; left: 28px; padding: 6px 14px; border-radius: 6px 14px 6px 14px; background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ms-plan__top h3 { font-size: 24px; font-weight: 700; color: var(--ink); }
.ms-plan__top p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.ms-plan__price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.ms-plan__price b { font-size: clamp(34px, 3vw, 44px); line-height: 1; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ms-plan__price span { font-size: 14px; color: var(--muted); }
.ms-plan__free, .ms-plan__save { align-self: flex-start; margin-top: 12px; padding: 6px 12px; border-radius: 6px 14px 6px 14px; font-size: 14px; font-weight: 500; }
.ms-plan__free { background: #e9f8ee; color: #138a4f; }
.ms-plan__free b { font-size: 16px; }
.ms-plan__save { background: var(--soft); color: var(--muted); }
.ms-plan ul { display: grid; gap: 11px; margin: 24px 0 28px; }
.ms-plan li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.45; color: var(--text); }
.ms-plan li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #efeafe; }
.ms-plan li::after { content: ""; position: absolute; left: 5px; top: 7px; width: 7px; height: 4px; border-left: 2px solid var(--vio2); border-bottom: 2px solid var(--vio2); transform: rotate(-45deg); }
.ms-plan li.ms-plan__all { font-weight: 700; color: var(--ink); }
.ms-plan li.ms-plan__all::before { background: linear-gradient(135deg, var(--red1), var(--red2)); }
.ms-plan li.ms-plan__all::after { border-color: #fff; }
.ms-plan__btn { margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 10px 24px 10px 24px; border: 2px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.ms-plan__btn:hover { border-color: var(--red1); color: var(--red1); transform: translateY(-2px); }
.ms-plan--hit .ms-plan__btn, .ms-plan:first-child .ms-plan__btn { border: 0; background: linear-gradient(120deg, var(--red1), var(--red2)); color: #fff; box-shadow: 0 16px 30px -16px rgba(249, 60, 60, .9); }
.ms-plan--hit .ms-plan__btn:hover, .ms-plan:first-child .ms-plan__btn:hover { color: #fff; }

.ms-mods { margin-top: 60px; }
.ms-mods__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 30px; margin-bottom: 22px; }
.ms-mods__head h3 { font-size: 24px; font-weight: 700; color: var(--ink); }
.ms-mods__head p { font-size: 15px; color: var(--muted); }
.ms-mods__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
@media (max-width: 900px) { .ms-mods__list { grid-template-columns: 1fr; } }
.ms-mod { border-bottom: 1px solid var(--line); }
.ms-mod__btn { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 10px 16px 6px; border: 0; border-radius: 10px 22px 10px 22px; background: transparent; font: inherit; text-align: left; color: inherit; cursor: pointer; transition: background .3s; }
.ms-mod__btn:hover { background: linear-gradient(90deg, rgba(160, 104, 248, .08), transparent); }
.ms-mod__btn:focus-visible { outline: 2px solid var(--vio1); outline-offset: 2px; }
.ms-mod__txt { flex: 1; min-width: 0; }
.ms-mod__txt b { display: block; font-size: 16px; line-height: 1.35; color: var(--ink); }
.ms-mod__txt > span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ms-mod__price { flex: none; text-align: right; font-size: 17px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.ms-mod__price small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.ms-mod__check { flex: none; position: relative; width: 26px; height: 26px; border-radius: 8px; border: 2px solid #cfd4e4; background: #fff; transition: background .3s, border-color .3s, transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.ms-mod__check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border-right: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ms-mod__btn:hover .ms-mod__check { border-color: var(--vio1); }
.ms-mod.is-on .ms-mod__btn { background: linear-gradient(90deg, rgba(249, 60, 60, .08), rgba(160, 104, 248, .05)); }
.ms-mod.is-on .ms-mod__check { border-color: transparent; background: linear-gradient(135deg, var(--red1), var(--red2)); transform: scale(1.08); }
.ms-mod.is-on .ms-mod__check::after { transform: rotate(45deg) scale(1); }
.ms-mod.is-on .ms-ico { background: linear-gradient(135deg, var(--red1), var(--red2)); }
@media (max-width: 480px) { .ms-mod__btn { flex-wrap: wrap; gap: 10px 14px; } .ms-mod__txt { flex-basis: calc(100% - 100px); } .ms-mod__price { margin-left: 58px; text-align: left; } .ms-mod__check { margin-left: auto; } }

/* итог конструктора: пока виден список, JS прижимает его к низу экрана (.is-fixed); слот держит место */
.ms-sum-slot { margin-top: 22px; }
.ms-sum.is-fixed { position: fixed; bottom: 14px; left: var(--sum-l); width: var(--sum-w); margin: 0; animation: ms-sumin .45s var(--ease); }
@keyframes ms-sumin { from { opacity: 0; transform: translateY(20px); } }
@media (max-width: 480px) { .ms-sum.is-fixed { bottom: 8px; } }
.ms-sum {
  position: relative; z-index: 5; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 14px 28px; align-items: center; padding: 18px 22px;
  border-radius: 12px 30px 12px 30px; background: #141a3c; color: #d4daf8; box-shadow: 0 30px 60px -24px rgba(20, 26, 60, .7);
}
.ms-sum__base b { display: block; margin-bottom: 4px; font-size: 15px; color: #fff; }
.ms-sum__free { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.ms-sum__free input { width: 18px; height: 18px; accent-color: var(--red1); cursor: pointer; }
.ms-sum__lines { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14px; }
.ms-sum__lines b { color: #fff; white-space: nowrap; }
.ms-sum__lines em { flex-basis: 100%; font-style: normal; font-size: 13.5px; font-weight: 500; color: #5ff0b5; }
.ms-sum__total { text-align: right; }
.ms-sum__total small { display: block; font-size: 12px; color: #9aa5d8; }
.ms-sum__total b { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; font-weight: 700; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ms-sum__total b.is-bump { animation: ms-bump .4s var(--ease); }
@keyframes ms-bump { 40% { transform: scale(1.08); color: #ff9db5; } }
.ms-sum__btn { min-height: 50px; padding: 0 24px; }
@media (max-width: 1000px) { .ms-sum { grid-template-columns: 1fr auto; } .ms-sum__lines { grid-column: 1 / -1; grid-row: 2; } .ms-sum__btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ms-sum { padding: 14px 16px; gap: 10px 16px; } .ms-sum__base b { font-size: 14px; } }

.ms-care { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 34px; }
@media (max-width: 900px) { .ms-care { grid-template-columns: 1fr; } }
.ms-care > div { padding: 24px 26px; border-radius: var(--r); background: var(--soft); }
.ms-care__main { display: flex; align-items: center; gap: 18px; }
.ms-care b { display: block; margin-bottom: 4px; font-size: 18px; color: var(--ink); }
.ms-care p { font-size: 14.5px; line-height: 1.55; color: var(--text); }

/* ---------- 8. Шаги ---------- */
.ms-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1000px) { .ms-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ms-steps { grid-template-columns: 1fr; } }
.ms-steps li { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: var(--r); background: #fff; border: 1px solid #ece8fb; overflow: hidden; transition: translate .5s var(--ease), box-shadow .5s; }
.ms-steps li:hover { translate: 0 -5px; box-shadow: 0 30px 60px -34px rgba(91, 75, 214, .6); }
.ms-steps em { position: absolute; right: 16px; top: 4px; font-size: 64px; line-height: 1; font-style: normal; font-weight: 700; color: transparent; -webkit-text-stroke: 1.5px #e2dbfb; }
.ms-steps b { position: relative; margin-bottom: 8px; padding-right: 64px; font-size: 19px; color: var(--ink); }
.ms-steps p { position: relative; flex: 1; font-size: 14.5px; line-height: 1.55; color: var(--text); }
.ms-steps span { align-self: flex-start; margin-top: 18px; padding: 6px 12px; border-radius: 6px 14px 6px 14px; background: linear-gradient(120deg, var(--vio1), var(--vio2)); color: #fff; font-size: 13px; font-weight: 700; }

/* ---------- 9. FAQ ---------- */
.ms-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 30px 60px; align-items: start; }
@media (max-width: 992px) { .ms-faq { grid-template-columns: 1fr; } }
.ms-faq .ms-head { margin: 0; }
.ms-faq__list { display: grid; gap: 12px; }
.ms-faq__item { border-radius: 10px 24px 10px 24px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.ms-faq__item[open] { border-color: transparent; box-shadow: 0 24px 50px -30px rgba(63, 85, 195, .55); }
.ms-faq__item summary { position: relative; padding: 20px 60px 20px 24px; font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--ink); cursor: pointer; list-style: none; }
.ms-faq__item summary::-webkit-details-marker { display: none; }
.ms-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; background: var(--soft); color: var(--red1); font-size: 22px; font-weight: 400; transition: transform .4s var(--ease), background .3s, color .3s; }
.ms-faq__item[open] summary::after { transform: rotate(45deg); background: linear-gradient(135deg, var(--red1), var(--red2)); color: #fff; }
.ms-faq__item div { padding: 0 24px 22px; }
.ms-faq__item p { font-size: 15.5px; line-height: 1.65; color: var(--text); }

/* ---------- 10. Форма ---------- */
.ms-order { padding-bottom: var(--gap); }
.ms-order__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 60px; padding: 56px; border-radius: 14px 44px 14px 44px; background: #141a3c; color: #d4daf8; overflow: hidden; isolation: isolate; }
@media (max-width: 992px) { .ms-order__box { grid-template-columns: 1fr; padding: 40px 28px; } }
@media (max-width: 480px) { .ms-order__box { padding: 32px 18px; } }
.ms-order__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ms-order__fx i { position: absolute; border-radius: 50%; filter: blur(70px); }
.ms-order__fx i:first-child { width: 420px; height: 420px; left: -120px; bottom: -160px; background: #cd0973; opacity: .55; animation: ms-drift 14s ease-in-out infinite alternate; }
.ms-order__fx i:last-child { width: 380px; height: 380px; right: 20%; top: -180px; background: #5b3cf0; opacity: .5; animation: ms-drift 18s ease-in-out -4s infinite alternate-reverse; }
.ms-order__title { margin-bottom: 18px; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; font-weight: 700; color: #fff; }
.ms-order__title span { background: linear-gradient(120deg, #ff8fb1, var(--red1) 50%, #c9b6ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ms-order__text > p { font-size: 17px; line-height: 1.6; }
.ms-order__text ul { display: grid; gap: 12px; margin: 26px 0; }
.ms-order__text li { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; color: #fff; }
.ms-order__text li svg { flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: linear-gradient(135deg, var(--red1), var(--red2)); fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ms-order__contacts { font-size: 15px; color: #9aa5d8; }
.ms-order__contacts a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ms-form { display: grid; gap: 14px; padding: 28px; border-radius: 12px 34px 12px 34px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
@media (max-width: 480px) { .ms-form { padding: 20px 16px; } }
.ms-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .ms-form__row { grid-template-columns: 1fr; } }
.ms-form__f { display: block; min-width: 0; margin: 0; padding: 0; border: 0; }
.ms-form__f > span, .ms-form__f legend { display: block; margin-bottom: 7px; padding: 0; font-size: 13px; font-weight: 500; color: #b9c2ef; }
.ms-form input[type="text"], .ms-form textarea { width: 100%; padding: 14px 16px; border-radius: 8px 16px 8px 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .95); color: var(--ink); font: inherit; font-size: 16px; transition: box-shadow .3s, border-color .3s; }
.ms-form textarea { resize: vertical; min-height: 64px; }
.ms-form input:focus, .ms-form textarea:focus { outline: 0; border-color: var(--vio1); box-shadow: 0 0 0 3px rgba(160, 104, 248, .45); }
.ms-form .is-err { box-shadow: 0 0 0 3px rgba(249, 60, 60, .7) !important; }
.ms-chips--form label { position: relative; flex: 1 1 auto; cursor: pointer; }
.ms-chips--form input { position: absolute; opacity: 0; pointer-events: none; }
.ms-chips--form span { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border-radius: 8px 16px 8px 16px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); font-size: 14px; font-weight: 500; color: #d4daf8; white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.ms-chips--form label:hover span { border-color: rgba(255, 255, 255, .5); color: #fff; }
.ms-chips--form input:checked + span { background: linear-gradient(120deg, var(--red1), var(--red2)); border-color: transparent; color: #fff; }
.ms-chips--form input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.ms-form__btn { width: 100%; margin-top: 4px; }
.ms-form__btn:disabled { opacity: .6; cursor: default; transform: none; }
.ms-form__msg { min-height: 1em; font-size: 14.5px; font-weight: 500; }
.ms-form__msg.is-ok { color: #5ff0b5; } .ms-form__msg.is-err { color: #ff9db5; }
.ms-form__agree { font-size: 12.5px; line-height: 1.5; color: #8d97c9; }
.ms-form__agree a { color: #b9c2ef; text-decoration: underline; }

/* ---------- Появление при прокрутке ---------- */
html.ms-js .ms-up { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.ms-js .ms-hero.is-ready .ms-up { opacity: 1; transform: none; }
html.ms-js .ms-hero.is-ready .ms-up:nth-child(2) { transition-delay: .08s; }
html.ms-js .ms-hero.is-ready .ms-up:nth-child(3) { transition-delay: .16s; }
html.ms-js .ms-hero.is-ready .ms-up:nth-child(4) { transition-delay: .24s; }
html.ms-js .ms-hero.is-ready .ms-up:nth-child(5) { transition-delay: .32s; }
html.ms-js .ms-hero.is-ready .ms-demo { transition-delay: .3s; }
html.ms-js .ms-reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.ms-js .ms-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ms *, .ms *::before, .ms *::after { animation: none !important; transition: none !important; }
  html.ms-js .ms-up, html.ms-js .ms-reveal { opacity: 1; transform: none; }
}

/* подвал: телефон всегда целиком; без «дымки» сайта поверх длинной страницы */
.footer-right { min-width: max-content; }
html:not(.menu-open) body::before { display: none; }
/* фоновая картинка сайта (.main::after, z-index 2) лежала поверх страницы и перехватывала клики — на этой странице у блоков свои фоны */
body .main::after { display: none; pointer-events: none; }
@media (max-width: 600px) { .ms-sum__lines > span { display: none; } .ms-sum__lines:not(:has(em:not([hidden]))) { display: none; } }
