/* ---------- Подбор партнёра: варианты формы html(?mv=a карточки, b по шагам, c со сводкой) ---------- */
.mv-sum { display: none; }
.mv-nav, .mv-progress { display: none; }

/* общее: «Нужен перенос данных?» сегментами в одну строку, а не столбиком */
.mv-seg { display: grid; gap: 8px; align-content: start; }
.mv-seg legend { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.mv-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; border: 0; margin: 0; }
.mv-seg label { position: relative; display: grid; place-items: center; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2, #e1e4f0); background: #fff;
  font-size: 14px; font-weight: 700; color: var(--blue); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.mv-seg label:hover { border-color: var(--blue); }
.mv-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mv-seg label:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.mv-seg label:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* «Задача» и «Контакты» отдельными пронумерованными блоками */
#match-form { counter-reset: mvs; }
#match-form > fieldset {
  counter-increment: mvs; margin: 0 0 18px; padding: 28px; border: 1px solid var(--line-2, #e7e9f3); border-radius: 24px; background: #fff; box-shadow: 0 24px 50px -40px rgba(52, 51, 154, .45); }
#match-form > fieldset > legend { display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin: 0 0 20px; padding: 0; }
#match-form > fieldset > legend::before { content: counter(mvs, decimal-leading-zero); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: var(--yellow); color: #1d1d3f; font-size: 14px; font-weight: 800; }
#match-form > fieldset > .form-grid { clear: both; }

/* сводка справа */
.mv-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
.mv-sum { position: sticky; top: 100px; display: grid; gap: 12px; padding: 24px; border-radius: 24px; color: #fff;
  background: radial-gradient(70% 60% at 100% 0%, rgba(255, 210, 0, .2), transparent 60%), linear-gradient(160deg, #1b1a6e, #34339a); }
.mv-sum__k { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffd200; }
.mv-sum__dl { margin: 0 0 6px; display: grid; }
.mv-sum__dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.mv-sum__dl dt { font-size: 14px; color: rgba(255, 255, 255, .7); }
.mv-sum__dl dd { margin: 0; font-size: 14px; font-weight: 800; text-align: right; color: rgba(255, 255, 255, .4); }
.mv-sum__dl dd.is-set { color: #fff; }
.mv-sum__next { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 10px; }
.mv-sum__next li { counter-increment: n; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85); }
.mv-sum__next li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 800; color: #ffd200; }

@media (max-width: 960px) { .mv-wrap { grid-template-columns: minmax(0, 1fr); } .mv-sum { position: static; } }
@media (max-width: 640px) {
  #match-form > fieldset { padding: 18px !important; }
  .mv-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  }
/* сегменты в одну строку поверх общего правила .field (столбик) */
.field--radios.mv-seg { display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.field--radios.mv-seg legend { float: none; flex: 0 0 100%; width: 100%; padding: 0; }
.field--radios.mv-seg label { flex: 1 1 0; justify-content: center; min-width: 0; }
