/* value-path, Э4: каркас страницы шага (web/step-page.js, 01-ui § 8, макет StepPage.dc.html). Телефон — до 767 px. */
.sp{max-width:1200px;margin:0 auto;display:flex;flex-direction:column;gap:12px;color:#20312F}
.sp-wrap{display:flex;flex-wrap:wrap;gap:24px;align-items:flex-start}
.sp-col{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:16px}
.sp-side{flex:1 1 320px;min-width:0;display:flex;flex-direction:column;gap:16px;position:sticky;top:calc(var(--v4-header, 64px) + 16px)}
.sp-card{background:#fff;border:1px solid #CBD5CF;border-radius:16px;box-sizing:border-box}
.sp-head{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.sp-head h1{margin:0;font-size:30px;line-height:38px;flex:0 1 auto;min-width:0}
.sp-dot{flex:none;width:40px;height:40px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-weight:600;font-size:17px;box-sizing:border-box;background:#fff;color:#3A4C48;border:1.5px solid #9DB8B1}
.sp-dot.r-done{background:#21675E;color:#fff;border-color:#21675E}
.sp-dot.r-current,.sp-dot.r-check{background:#946A1C;color:#fff;border-color:#946A1C;box-shadow:0 0 0 4px #FFF4D9}
.sp-dot.r-goal{background:#195149;color:#F2D58A;border-color:#195149;box-shadow:0 0 0 4px #F3E7C4}
.sp-dot.r-work{border-color:#946A1C;color:#825700}
.sp-dot.r-not_needed{background:#ECEFEC;color:#7C8C85;border-color:#ECEFEC}
.sp-dot.sm{width:28px;height:28px;font-size:13px;box-shadow:none}
.sp-tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;line-height:16px;padding:2px 8px;border-radius:999px;font-weight:500;white-space:nowrap;background:#ECEFEC;color:#3A4C48}
.sp-tag.t-done{background:#EDF5EF;color:#2E674A}
.sp-tag.t-check{background:#FFF4D9;color:#825700}
.sp-plate{display:flex;flex-direction:column;gap:6px;background:#FFF4D9;color:#6B4A10;border-radius:12px;padding:14px 16px;font-size:15px;line-height:22px}
.sp-plate b{color:#20312F;font-weight:600}
.sp-was{font-weight:500;color:#20312F}
.sp-rl.changed{background:#FFF8E6;border-radius:8px;padding-left:8px;padding-right:8px;margin:0 -8px}
.sp-k{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#52645F;font-weight:600}
.sp-res{padding:20px;border:2px solid #21675E;display:flex;flex-direction:column;gap:6px}
.sp-res-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px;align-items:center}
.sp-big{margin:4px 0 0;font-size:20px;line-height:28px;font-weight:700;color:#195149}
.sp-pending{margin:4px 0 0;font-size:16px;line-height:24px;color:#52645F}
.sp-lines{display:flex;flex-direction:column;margin-top:6px}
.sp-rl{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:8px 0;border-top:1px solid #E3E9E5;font-size:14px;line-height:20px;align-items:baseline}
.sp-rl .l{color:#3A4C48}
.sp-rl .v{font-weight:600;text-align:right;display:inline-flex;gap:6px;align-items:baseline;justify-content:flex-end;flex-wrap:wrap}
.sp-rl .v.muted{color:#52645F;font-weight:400}
.sp-rl.total .v{font-size:16px;color:#195149}
.sp-impact{display:flex;flex-direction:column;margin-top:12px}
.sp-impact .sp-k{margin-bottom:2px}
.sp-rl .v.i-down{color:#2E674A}
.sp-rl .v.i-up{color:#8A5A12}
.sp-rl .v.i-same{color:#52645F}
.sp-map{padding:16px 20px;display:flex;flex-direction:column;gap:8px}
.sp-map ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.sp-map a{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 8px;border-radius:10px;color:#20312F;text-decoration:none;font-size:15px}
.sp-map a:hover{background:#EEF4F1}
.sp-map li.on a{background:#F1F5F2;font-weight:600}
.sp-acts{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding-top:4px}
.sp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 24px;border-radius:12px;background:#21675E;color:#fff;font-weight:600;font-size:16px;text-decoration:none;box-sizing:border-box}
.sp-btn:hover{background:#195149;color:#fff}
.sp-btn[aria-disabled="true"]{background:#DFE6E2;color:#52645F;cursor:default}
.sp-link{display:inline-flex;align-items:center;min-height:44px;color:#21675E;font-size:15px;font-weight:500;text-decoration:none}
.sp-link:hover{text-decoration:underline}
.sp-back{align-self:flex-start}
.sp .pf-goal{display:flex;flex-direction:column;gap:8px}
.sp .pf-goal .task-sentence{margin:0;font-weight:600;font-size:17px;line-height:24px}
.sp-extra{display:flex;flex-direction:column;gap:12px}
/* Э5: шаг «Жильё» — площадь числом, районы чипами; шаг 4 и ★ — прежнее содержимое под новой шапкой. */
.sp-num{width:120px}
.sp-areas{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sp-chip{display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:#EEF4F1;color:#20312F;font-size:14px}
.sp.wide .sp-col{flex-basis:640px}
/* Содержимое шага 4 (таблицы сравнения) не должно расширять страницу: сетка #main считает min-content. */
.sp{min-width:0;max-width:100%}
.sp-legacy{min-width:0;max-width:100%}
.sp-star{padding:20px;display:flex;flex-direction:column;gap:8px}
.sp-star h2{margin:0;font-size:20px;line-height:28px}
.sp-star p{margin:0}
@media (max-width:767px){
  .sp-wrap{flex-direction:column;gap:12px;align-items:stretch}
  /* Порядок на телефоне (макет StepPage): шапка, плашка, форма, «Результат шага», кнопки, мини-карта. */
  .sp-col,.sp-side{display:contents}
  .sp-col>*{order:3}
  .sp-head{order:1}.sp-plate{order:2}.sp-side>*{order:6}.sp-side>.sp-res{order:4}.sp-col>.sp-acts{order:5}.sp-side>.sp-map{order:7}
  .sp-head h1{font-size:24px;line-height:32px}
  .sp-dot{width:32px;height:32px;font-size:14px}
  .sp-res{padding:16px}
  .sp-acts .sp-btn{width:100%}
}

/* value-path, Э9: этап «Что искать» (макет SearchPage): плашка из шага «Жильё», облако «Что ещё важно», результат списками. */
.sp-from{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;justify-content:space-between;padding:12px 16px;background:#EEF4F1;border-color:#C9DCD5}
.sp-from p{margin:0;flex:1 1 320px;font-size:15px;line-height:22px}
.sp-muted{color:#52645F}
.sp-cloud{display:flex;flex-direction:column;gap:8px;padding:12px 16px 4px;border-top:1px solid #E3E9E5}
.sp-cloud-list{display:flex;flex-wrap:wrap;gap:8px}
.sp[data-step="search"] .sp-res .sp-rl{grid-template-columns:minmax(0,1fr)}
.sp[data-step="search"] .sp-res .sp-rl .v{text-align:left;justify-content:flex-start;font-weight:400}
.sp[data-step="search"] .sp-res .sp-rl .l{font-weight:600}
