.window-quiz {
  position: relative;
  z-index: 1;
  background: var(--paper);
  padding-bottom: 0;
  scroll-margin-top: 8px;
}
.quiz-panel {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  overflow: hidden;
  border: 1px solid #d4d9dc;
  border-radius: 7px;
  background: #fff;
}
.quiz-cover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(24px, 3vw, 46px);
  color: #fff;
  background: linear-gradient(0deg, #101d2bdc, #10202e29 70%, #13203283), url('/assets/interior.webp') 67% center / cover;
}
.quiz-cover h2 {
  margin: 0;
  font-size: clamp(38px, 4vw, 66px);
  font-weight: 510;
  line-height: 1.01;
  letter-spacing: -.06em;
}
.quiz-cover-copy p {
  max-width: 32ch;
  margin: 15px 0 0;
  color: #e9ecf0;
  font-size: 1rem;
  line-height: 1.5;
}
.quiz-content { padding: clamp(25px, 3vw, 47px); min-width: 0; }
.quiz-progress { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.quiz-guide { display: flex; align-items: center; gap: 10px; }
.quiz-guide img { flex: none; display: block; padding: 2px; border-radius: 50%; background: #fff0c1; }
.quiz-guide span { font-size: 1rem; font-weight: 650; line-height: 1.2; }
.quiz-guide small { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.quiz-bars { display: flex; gap: 4px; }
.quiz-bars i { width: clamp(12px, 1.8vw, 30px); height: 5px; border-radius: 4px; background: #e2e7ee; }
.quiz-bars i.done { background: var(--blue); }
.quiz-bars i.current { background: #f3b93e; }
.quiz-content h3 {
  margin: 19px 0 21px;
  font-size: clamp(25px, 2.25vw, 37px);
  line-height: 1.12;
  font-weight: 550;
  letter-spacing: -.045em;
  scroll-margin-top: 20px;
}
.quiz-content h3:focus, #calc-title[tabindex]:focus { outline: none; }
.quiz-content h3:first-child { margin-top: 0; }
.quiz-choices { display: grid; gap: 8px; padding: 0; margin: 0; border: 0; min-width: 0; }
.quiz-choice { display: block; position: relative; cursor: pointer; }
.quiz-choice input {
  position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; clip-path: inset(50%);
}
.quiz-option {
  display: flex; align-items: center; gap: 13px; padding: 13px 15px;
  border: 1px solid #d6dce0; border-radius: 4px; transition: background .15s, border-color .15s;
}
.quiz-option-copy { flex: 1; min-width: 0; }
.quiz-option strong { display: block; font-size: 1rem; line-height: 1.23; font-weight: 600; }
.quiz-option small { display: block; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.35; }
.quiz-radio { flex: none; width: 17px; height: 17px; border: 1px solid #9aa6b1; border-radius: 50%; background: white; }
.quiz-choice:hover .quiz-option { border-color: #929fb2; }
.quiz-choice input:checked + .quiz-option { background: #f0f4ff; border-color: var(--blue); }
.quiz-choice input:checked + .quiz-option .quiz-radio { border: 5px solid var(--blue); }
.quiz-choice input:focus-visible + .quiz-option { outline: 2px solid var(--blue); outline-offset: 2px; }
.quiz-mark { flex: none; }
.quiz-panes { display: flex; width: 35px; height: 25px; border: 1.5px solid #667786; padding: 2px; }
.quiz-panes i { flex: 1; background: #e7edef; }
.quiz-panes i + i { border-left: 1px solid #566c77; }
.quiz-panes-wide { height: 20px; border-bottom-width: 4px; }
.quiz-choice input:checked + .quiz-option .quiz-panes { border-color: var(--blue); }
.quiz-choice input:checked + .quiz-option .quiz-panes i { background: #d5e5ff; }
.quiz-actions, .quiz-result-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.quiz-actions { justify-content: flex-end; }
.quiz-actions .primary { min-width: 115px; }
.quiz-actions .primary:disabled { color: #465169; background: #e5e9f0; opacity: 1; cursor: default; }
.quiz-back, .quiz-edit { background: transparent; padding: 10px 0; color: var(--muted); font-size: .9rem; }
.quiz-back { margin-right: auto; }
.quiz-back:hover, .quiz-edit:hover { color: var(--blue); text-decoration: underline; }
.quiz-result-config, .quiz-rates { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.quiz-result-config { margin: -9px 0 18px; }
.quiz-cost { border-block: 1px solid var(--line); padding-block: 10px; }
.quiz-cost > div { display: flex; justify-content: space-between; gap: 10px; margin-block: 6px; font-variant-numeric: tabular-nums; }
.quiz-cost .quiz-total { align-items: baseline; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 11px; }
.quiz-total strong:last-child { font-size: clamp(25px, 2.4vw, 36px); font-weight: 550; line-height: 1; letter-spacing: -.05em; }
.quiz-rates { margin: 12px 0 0; font-size: .875rem; }
.quiz-result-actions { flex-wrap: wrap; gap: 8px; }
.quiz-edit { margin-top: 5px; }
@media (min-width:681px) and (max-width:820px) {
  .mast-inner { padding-inline: 18px; }
  .desktop-nav { gap: 10px; }
}
@media (max-width:760px) {
  .quiz-panel { grid-template-columns: 1fr; }
  .quiz-cover { padding: 22px; background-position: center, 68% 50%; }
  .quiz-cover h2 { font-size: 37px; }
  .quiz-cover h2 br { display: none; }
  .quiz-cover h2 em::before { content: ' '; }
  .quiz-cover-copy p { margin-top: 8px; max-width: 38ch; }
  .quiz-content { padding: 22px; }
  .quiz-content h3 { margin: 14px 0 16px; }
  .quiz-option { gap: 9px; padding: 12px; }
  .quiz-result-actions > * { flex: 1 1 190px; }
}
@media (max-width:380px) {
  .quiz-cover, .quiz-content { padding: 17px; }
  .quiz-cover h2 { font-size: 32px; }
  .quiz-panes { width: 27px; height: 22px; }
}
@media (prefers-reduced-motion:no-preference) {
  .quiz-bars i.current { animation: quiz-current .32s ease-out; }
  @keyframes quiz-current { from { transform: scaleX(.55); } to { transform: scaleX(1); } }
}
