/* Пошаговый расчёт на главной — в рамках одной карточки. */
.estimate-onepage-content .estimate-layout { max-width: none; }
.estimate-form--quiz { width: 100%; max-width: 780px; min-width: 0; margin-inline: 0; justify-self: start; }
.estimate-form--quiz [hidden] { display: none !important; }
.estimate-quiz__header { display: flex; justify-content: space-between; gap: 16px; color: var(--color-text-muted); font-size: 14px; font-weight: 750; }
.estimate-quiz__header [data-estimate-step-name] { text-align: right; color: var(--color-brick); }
.estimate-quiz__progress { height: 5px; margin: 12px 0 28px; overflow: hidden; border-radius: 999px; background: var(--color-line); }
.estimate-quiz__progress span { display: block; height: 100%; width: 0; background: var(--color-brick); transition: width .2s ease; }
.estimate-quiz__step h2, .estimate-quiz__result h2 { margin: 0 0 20px; font-size: clamp(23px, 3vw, 30px); line-height: 1.2; }
.estimate-quiz__step h2:focus, .estimate-quiz__result h2:focus { outline: none; }
.estimate-quiz__step > .muted { margin: -8px 0 18px; }
.estimate-quiz__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.estimate-quiz__option { display: flex; flex-direction: column; gap: 7px; min-height: 102px; padding: 18px 20px; border: 1px solid var(--color-line); border-radius: 14px; background: #fdfbf8; color: var(--color-graphite); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.estimate-quiz__option strong { font-size: 17px; line-height: 1.25; }
.estimate-quiz__option span { color: var(--color-text-muted); font-size: 14px; line-height: 1.4; }
.estimate-quiz__option:hover, .estimate-quiz__option[aria-pressed="true"] { border-color: var(--color-brick); background: #fff5ed; }
.estimate-quiz__option:focus-visible, .estimate-quiz__restart:focus-visible { outline: 3px solid var(--color-brick); outline-offset: 3px; }
.estimate-quiz__area { max-width: 320px; margin-bottom: 20px; }
.estimate-quiz__area input { font-size: 24px; font-weight: 800; }
.estimate-quiz__actions { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.estimate-quiz__actions [data-estimate-next] { margin-left: auto; }
.estimate-quiz__error { margin: 18px 0 0; color: #a43221; font-weight: 700; }
.estimate-quiz__result .estimate-summary--inline { margin: 0 0 24px; }
.estimate-quiz__result .estimate-summary h2 { margin-bottom: 12px; }
.estimate-quiz__result [data-estimate-selection] { margin: 0; line-height: 1.6; }
.estimate-quiz__contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.estimate-quiz__contacts > div { display: flex; flex-direction: column; text-align: center; }
.estimate-quiz__contacts p { margin: 0 0 10px; font-weight: 750; line-height: 1.4; }
.estimate-quiz__contacts .button { width: 100%; margin-top: auto; }
.estimate-quiz__restart { padding: 9px 0; border: 0; background: transparent; color: var(--color-text-muted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.estimate-form--quiz [data-contact-form-body] .form-consent { margin: 18px 0; }
@media (max-width: 600px) {
  .estimate-form--quiz { padding: 22px 16px; }
  .estimate-quiz__options, .estimate-quiz__contacts { grid-template-columns: 1fr; }
  .estimate-quiz__option { min-height: 82px; padding: 15px 16px; }
  .estimate-quiz__progress { margin-bottom: 22px; }
  .estimate-quiz__contacts { gap: 18px; }
}
