
.mx{max-width:1290px;margin:0 auto}
.mx-intro{padding:26px 0 24px;max-width:1050px}
.mx-over{font-size:12px;font-weight:700;letter-spacing:2px;color:var(--tm-brand);margin:0}
.mx-intro h1{font-size:clamp(36px,3.9vw,54px);letter-spacing:-.04em;line-height:1.09;margin:11px 0 12px;font-weight:800}
.mx-intro>p:last-child{color:var(--tm-muted);font-size:17px;line-height:1.5;margin:0;max-width:62ch}
.mx-rule{height:1px;background:var(--tm-line)}

/* Форма слева, панель прогресса справа. Ниже 970px панель прячется целиком:
   на телефоне она превращалась бы в шапку, которую пролистывают не читая. */
.mx-grid{display:grid;grid-template-columns:minmax(0,1fr) 285px;align-items:start;gap:38px;padding:30px 0 74px}
.mx-fhead{display:flex;justify-content:space-between;align-items:end;gap:20px}
.mx-fhead h2{font-size:clamp(28px,3vw,40px);letter-spacing:-.035em;line-height:1.12;margin:11px 0 0;font-weight:800}
.mx-count{font-size:16px;letter-spacing:3px;color:var(--tm-brand);font-weight:700;white-space:nowrap}
.mx-lead{font-size:16px;color:var(--tm-muted);line-height:1.5;margin:14px 0 26px}
.mx-err{background:#FFF5F4;border:1px solid #E89794;border-radius:var(--tm-r-sm);padding:14px 18px;
  margin:0 0 18px;color:#9E3632;line-height:1.45;font-weight:600}

.mx-q{border:1px solid var(--tm-line);border-radius:var(--tm-r-lg);padding:29px;margin:0 0 18px;
  background:var(--tm-surface);min-width:0;box-shadow:0 3px 12px rgb(48 30 100 / 2%)}
.mx-q legend{float:left;width:100%;padding:0;display:flex;align-items:center;gap:14px;
  font-size:22px;letter-spacing:-.025em;font-weight:700;line-height:1.25}
/* Сброс обтекания — на ЛЮБОМ соседе legend, а не только на подсказке.
   legend сделан float:left (иначе flex внутри него ненадёжен), и раньше
   clear:both стоял на .mx-help. У третьего вопроса подсказки нет, элемент не
   рендерился, float оставался — и сетка вариантов ужималась в остаток строки,
   превращаясь в колонку шириной в одно слово. Ошибка ждала любого вопроса без
   подсказки, а не только этого. */
.mx-q legend+*{clear:both}
.mx-q::after{content:"";display:table;clear:both}
.mx-num{color:var(--tm-brand);background:var(--tm-brand-soft);border-radius:11px;display:inline-grid;
  place-items:center;min-width:41px;height:41px;font-size:14px;letter-spacing:0;font-weight:700}
.mx-help{margin:12px 0 21px;color:var(--tm-muted);font-size:15px;line-height:1.45}
.mx-help b{color:var(--tm-brand);font-weight:700;white-space:nowrap;margin-left:4px}

.mx-opts{display:grid;gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
.mx-opts.one{grid-template-columns:1fr}
.mx-opts.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.mx-opt{position:relative;min-width:0;cursor:pointer;display:block}
/* Настоящий input, спрятанный под карточку: клавиатура, скринридер и отправка
   формы без JS продолжают работать ровно как у обычного radio. */
.mx-opt input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.mx-in{min-height:102px;border:1.5px solid var(--tm-line);border-radius:15px;display:flex;
  align-items:center;gap:14px;padding:18px;position:relative;background:var(--tm-surface);
  transition:border-color .18s,background .18s,transform .18s}
.mx-opt:hover .mx-in{border-color:#B7A5EC;background:#FCFAFF;transform:translateY(-1px)}
.mx-opt input:focus-visible+.mx-in{outline:3px solid var(--tm-brand);outline-offset:3px}
.mx-opt input:checked+.mx-in{background:#F5F1FF;border-color:var(--tm-brand);box-shadow:inset 0 0 0 .5px var(--tm-brand)}
.mx-ico{display:grid;place-items:center;width:58px;height:58px;flex:0 0 auto;border-radius:13px;
  background:var(--tm-surface);border:1px solid #EAE4F4;overflow:hidden}
.mx-ico img{width:100%;height:100%;object-fit:cover;display:block}
.mx-txt{display:block;min-width:0;flex:1}
.mx-txt strong{display:block;font-size:16px;line-height:1.22;font-weight:700}
.mx-txt small{display:block;color:var(--tm-muted);font-size:13px;line-height:1.35;margin-top:5px}
.mx-sel{width:21px;height:21px;border:1.5px solid #BEB7CE;border-radius:50%;flex:0 0 auto;align-self:flex-start}
.mx-opt input[type=checkbox]+.mx-in .mx-sel{border-radius:6px}
.mx-opt input:checked+.mx-in .mx-sel{background:var(--tm-brand);border-color:var(--tm-brand);position:relative}
.mx-opt input:checked+.mx-in .mx-sel::after{content:"";position:absolute;left:6px;top:2px;width:5px;height:9px;
  border-right:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(45deg)}
.mx-opts.compact .mx-in{min-height:74px}
.mx-opts.one .mx-in{min-height:66px}
.mx-opts.three .mx-in{min-height:84px;padding:14px}
.mx-opts.three .mx-txt strong{font-size:15px}

.mx-submit{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:29px 3px 0}
.mx-submit strong{font-size:21px;letter-spacing:-.02em}
.mx-submit p{color:var(--tm-muted);font-size:14px;margin:8px 0 0;line-height:1.45}
.mx-go{display:inline-flex;align-items:center;justify-content:center;gap:38px;min-height:60px;
  background:var(--tm-brand);border:1px solid var(--tm-brand);border-radius:var(--tm-r-sm);color:#fff;
  padding:0 25px;font-size:16px;font-weight:700;white-space:nowrap;box-shadow:0 10px 22px rgb(96 68 237 / 18%)}
.mx-go:hover{background:var(--tm-brand-hover);border-color:var(--tm-brand-hover);color:#fff}
.mx-go i{font-style:normal;font-size:26px;font-weight:400;line-height:1}

.mx-side{position:sticky;top:24px;border:1px solid var(--tm-line);border-radius:var(--tm-r-lg);
  background:var(--tm-surface);overflow:hidden;box-shadow:var(--tm-shadow-card)}
.mx-side-top{height:138px;background:radial-gradient(circle at 52% 48%,#fff,var(--tm-brand-soft) 70%);
  position:relative;display:grid;place-items:center;overflow:hidden}
.mx-side-top img{width:min(230px,calc(100% - 24px));max-height:120px;object-fit:contain;
  filter:drop-shadow(0 7px 9px rgb(82 57 173 / 10%))}
.mx-flare{position:absolute;right:20px;top:16px;font-size:19px;color:var(--tm-brand)}
.mx-side-body{padding:25px}
.mx-pnum{display:flex;align-items:baseline;gap:7px;margin-top:13px}
.mx-pnum strong{font-size:43px;letter-spacing:-.02em}
.mx-pnum span{font-size:17px;color:var(--tm-muted)}
.mx-pbar{height:7px;border-radius:7px;background:#EBE7F3;overflow:hidden;margin:15px 0}
.mx-pbar i{display:block;height:100%;width:0;background:var(--tm-lime);border-radius:7px;transition:width .25s}
.mx-scap{color:var(--tm-muted);font-size:14px;line-height:1.45;margin:0 0 18px}
.mx-plist{border-top:1px solid var(--tm-line);list-style:none;padding:17px 0 0;margin:0;display:grid;gap:15px}
.mx-plist li{font-size:14px;color:var(--tm-muted);display:flex;align-items:center;gap:12px}
.mx-plist li::before{content:"";height:21px;width:21px;border:1px solid #C9C2D6;border-radius:50%;
  display:grid;place-items:center;font-size:12px;flex:0 0 auto}
.mx-plist li.done{color:var(--tm-ink);font-weight:700}
.mx-plist li.done::before{content:"✓";background:var(--tm-lime);border-color:var(--tm-lime);color:var(--tm-ink)}
.mx-snote{background:#F3EFFF;border-radius:13px;padding:16px;display:flex;gap:11px;margin-top:24px}
.mx-snote span{color:var(--tm-brand)}
.mx-snote p{font-size:13px;line-height:1.4;margin:0;color:#4D4267}

/* ── результат ── */
.mx-res{padding:24px 0 70px}
.mx-hero{background:#F4F0FF;border:1px solid #DED5FF;border-radius:26px;padding:28px 34px}
.mx-hero h2{font-size:clamp(30px,3.2vw,43px);letter-spacing:-.028em;line-height:1.08;margin:10px 0;max-width:22ch}
.mx-hero>p:not(.mx-over){color:var(--tm-muted);font-size:16px;line-height:1.45;max-width:60ch;margin:0}
.mx-hbar{height:8px;border-radius:var(--tm-r-pill);background:#FFFFFF;margin:18px 0 0;overflow:hidden;max-width:420px}
.mx-hbar i{display:block;height:100%;background:var(--tm-brand);border-radius:var(--tm-r-pill)}
.mx-rlayout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;margin-top:43px}
.mx-rhead{display:flex;justify-content:space-between;gap:15px;align-items:end;margin-bottom:18px}
.mx-rhead h3{font-size:29px;letter-spacing:-.025em;margin:9px 0 0;font-weight:800}
.mx-rhead>span{color:var(--tm-muted);font-size:14px}
.mx-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.mx-card{border:1px solid var(--tm-line);border-radius:18px;overflow:hidden;background:var(--tm-surface);
  display:flex;flex-direction:column;transition:box-shadow 160ms ease,border-color 160ms ease}
.mx-card:hover{box-shadow:var(--tm-shadow-card);border-color:var(--tm-brand-soft)}
.mx-card>img{width:100%;height:185px;object-fit:cover;background:var(--tm-brand-soft)}
.mx-cbody{padding:19px;display:flex;flex-direction:column;align-items:start;flex:1}
.mx-role{display:inline-block;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  padding:3px 10px;border-radius:var(--tm-r-pill);background:var(--tm-lime);color:var(--tm-ink)}
.mx-card h4{font-size:19px;line-height:1.2;letter-spacing:-.02em;margin:9px 0 4px;font-weight:800}
.mx-card h4 a{color:inherit}.mx-card h4 a:hover{color:var(--tm-brand)}
.mx-card>.mx-cbody>p{font-size:13px;color:var(--tm-muted);line-height:1.4;margin:0 0 10px}
.mx-cov{display:flex;flex-wrap:wrap;gap:5px;margin:0;padding:0}
.mx-cov li{list-style:none;font-size:12px;font-weight:600;color:var(--tm-muted);background:var(--tm-bg);
  border:1px solid var(--tm-line);border-radius:var(--tm-r-pill);padding:3px 10px}
.mx-cov li.part{border-style:dashed;font-weight:500}
.mx-cfoot{margin-top:auto;padding-top:14px;display:flex;align-items:baseline;gap:10px;width:100%}
.mx-cprice{font-weight:800;font-size:14px;letter-spacing:-.02em}
.mx-csolo{margin-left:auto;font-size:12px;color:var(--tm-muted);cursor:help}

.mx-aside{border:1px solid var(--tm-line);border-radius:18px;background:var(--tm-surface);padding:24px;height:max-content}
.mx-aside h3{font-size:23px;letter-spacing:-.02em;margin:10px 0 20px;font-weight:800}
.mx-aside dl{margin:0}
.mx-aside dl div{padding:13px 0;border-top:1px solid var(--tm-line)}
.mx-aside dt{font-size:12px;color:var(--tm-muted);margin-bottom:5px}
.mx-aside dd{font-weight:700;font-size:14px;margin:0;line-height:1.35}
.mx-aside .mx-back{display:inline-block;border:0;background:none;color:var(--tm-brand);font-weight:700;padding:15px 0 0;font-size:14px}

.mx-alt{background:var(--tm-surface);border:1px solid var(--tm-line);border-radius:18px;padding:22px 24px;margin-top:20px}
.mx-alt>b{display:block;font-size:17px;font-weight:800;letter-spacing:-.02em;margin-bottom:6px}
.mx-alt>p{font-size:13.5px;color:var(--tm-muted);line-height:1.55;margin:0 0 14px;max-width:64ch}
.mx-altlist{margin:0;padding:0;list-style:none}
.mx-altlist li{display:flex;align-items:baseline;gap:10px;padding:10px 0;border-top:1px solid var(--tm-line)}
.mx-altlist li:first-child{border-top:0}
.mx-altlist a{font-weight:700;font-size:15px;color:var(--tm-ink)}
.mx-altlist a:hover{color:var(--tm-brand)}
.mx-altpct{font-weight:800;font-size:14px;color:var(--tm-brand)}
.mx-altprice{margin-left:auto;font-size:13px;color:var(--tm-muted);white-space:nowrap}

.mx-gaps{background:var(--tm-bg);border:1px solid var(--tm-line);border-radius:18px;padding:18px 22px;
  margin-top:14px;font-size:14px;line-height:1.55;color:var(--tm-muted)}
.mx-gaps b{display:block;font-size:14px;font-weight:700;color:var(--tm-ink);margin-bottom:5px}
.mx-bottom{margin-top:30px;padding:22px 26px;background:#F5F1FF;border-radius:18px;display:flex;
  align-items:center;justify-content:space-between;gap:20px}
.mx-bottom strong{font-size:21px;letter-spacing:-.02em}
.mx-bottom p{color:var(--tm-muted);line-height:1.4;font-size:14px;margin:6px 0 0}
.mx-bottom .mx-go{min-height:50px;font-size:14px;gap:18px}
.mx-note{color:var(--tm-muted);font-size:12.5px;line-height:1.55;max-width:88ch;margin:18px 2px 0}

@media(max-width:1250px){.mx-grid{grid-template-columns:minmax(0,1fr) 255px;gap:22px}.mx-side-body{padding:20px}}
@media(max-width:970px){
  .mx-grid{display:block;max-width:820px}
  .mx-side{display:none}
  .mx-rlayout{grid-template-columns:1fr}
  .mx-aside{order:-1}
}
@media(max-width:680px){
  .mx-intro{padding:22px 0 20px}.mx-intro h1{font-size:34px;letter-spacing:-.03em}
  .mx-grid{padding:26px 0 48px}
  .mx-q{padding:20px 17px;margin-bottom:15px;border-radius:19px}
  .mx-q legend{font-size:19px;gap:10px}.mx-num{min-width:34px;height:34px;font-size:12px}
  .mx-help{font-size:13px;margin:10px 0 15px}
  .mx-opts,.mx-opts.three{grid-template-columns:1fr}
  .mx-in,.mx-opts.compact .mx-in,.mx-opts.three .mx-in{min-height:65px;padding:13px}
  .mx-ico{width:50px;height:50px}
  .mx-submit{display:block;padding-top:18px}.mx-submit .mx-go{width:100%;margin-top:17px}
  .mx-hero{padding:23px}.mx-hero h2{font-size:29px}
  .mx-cards{grid-template-columns:1fr}
  .mx-bottom{display:block}.mx-bottom .mx-go{width:100%;margin-top:17px}
  .mx-altprice{margin-left:0;width:100%}
}
@media(prefers-reduced-motion:reduce){.mx-in,.mx-pbar i{transition:none}}
