/* Главная · блок 2 · быстрый подбор (квиз). План — ZE/design/BLOCK_PLAN_2026-11-11.md, вид — refs/home-quiz-directions_ZE051.jpg */
.ef-quiz { background: #F3F6F8; padding-block: clamp(40px, 5vw, 72px); }
.ef-quiz .container { max-width: 1440px; padding-left: clamp(16px, 3vw, 44px); padding-right: clamp(16px, 3vw, 44px); }
.ef-quiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.qz { background: #fff; border: 1px solid #DCE5EA; border-radius: 16px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 10px 30px rgba(23,43,66,.06); display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 769px) { .ef-quiz .qz { min-height: 560px; } }
.qz-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.qz-title { font: 700 13px/1.3 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #526579; margin: 0; }
.qz-count { font-size: 14px; color: #526579; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qz-bar { height: 6px; border-radius: 3px; background: #E3E8EE; margin: 14px 0 26px; overflow: hidden; }
.qz-bar span { display: block; height: 100%; width: 33%; background: #087F77; border-radius: 3px; transition: width .3s ease; }
.qz-form { display: flex; flex-direction: column; flex: 1; }
.qz-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.qz-q { font: 700 clamp(24px, 2.2vw, 30px)/1.2 var(--font-head); color: #172B42; letter-spacing: -.02em; margin: 0 0 20px; padding: 0; }
.qz-opts { display: grid; gap: 12px; }
.qz-sub { margin: -10px 0 18px; color: #526579; font-size: 15px; line-height: 1.5; }
.qz-q:focus { outline: none; }
.qz-opt { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 12px 18px 12px 52px; border: 1px solid #C9D3DD; border-radius: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.qz-opt::before { content: ""; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border: 2px solid #AABFCC; border-radius: 50%; box-sizing: border-box; }
.qz-opt:hover { border-color: #087F77; }
.qz-opt[aria-pressed=true] { border-color: #087F77; background: #EAF5F4; box-shadow: inset 0 0 0 1px #087F77; }
.qz-opt[aria-pressed=true]::before { border-color: #087F77; background: radial-gradient(circle, #087F77 0 4.5px, transparent 5px); }
.qz-opt:focus-visible { outline: 2px solid #087F77; outline-offset: 2px; }
.qz-ic svg { width: 30px; height: 30px; fill: none; stroke: #087F77; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.qz-opt-t { font: 500 17px/1.3 var(--font-body); color: #172B42; }
.qz-cur { display: inline-flex; gap: 4px; padding: 4px; background: #F3F6F8; border-radius: 10px; margin-bottom: 14px; }
.qz-cur button, .qz-via button, .qz-chip { font: 500 14px/1 var(--font-body); color: #172B42; background: #fff; border: 1px solid #C9D3DD; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.qz-cur button { border-color: transparent; background: transparent; border-radius: 8px; }
.qz-cur button[aria-pressed=true] { background: #fff; border-color: #C9D3DD; font-weight: 700; }
.qz-via button[aria-pressed=true], .qz-chip[aria-pressed=true] { border-color: #087F77; background: #EAF5F4; color: #076B65; font-weight: 600; }
.qz-cur button:focus-visible, .qz-via button:focus-visible, .qz-chip:focus-visible { outline: 2px solid #087F77; outline-offset: 2px; }
.qz-group { margin: 6px 0 8px; font: 600 13px/1.3 var(--font-body); color: #526579; text-transform: uppercase; letter-spacing: .06em; }
.qz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.qz-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 12px; }
.qz-sum { margin: 0 0 18px; border: 1px solid #DCE5EA; border-radius: 12px; overflow: hidden; }
.qz-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 28px; gap: 10px; align-items: center; width: 100%; padding: 9px 10px 9px 14px; border: 0; border-bottom: 1px solid #E3E8EE; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .15s; }
.qz-row:last-child { border-bottom: 0; }
.qz-row:hover { background: #F7FAFB; }
.qz-row:focus-visible { outline: 2px solid #087F77; outline-offset: -2px; }
.qz-row-l { color: #526579; font-size: 14px; }
.qz-row-v { color: #172B42; font-weight: 500; }
.qz-pen { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #8496A8; transition: color .15s, background .15s; }
.qz-pen svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.qz-row:hover .qz-pen, .qz-row:focus-visible .qz-pen { color: #087F77; background: #EAF5F4; }
.qz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qz-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: #526579; }
.qz-field input, .qz-dates input { height: 50px; border: 1px solid #C9D3DD; border-radius: 10px; padding: 0 14px; font: 400 16px var(--font-body); color: #172B42; background: #fff; }
.qz-field input:focus { outline: 2px solid #087F77; outline-offset: 1px; border-color: #087F77; }
.qz-field input[aria-invalid=true] { border-color: #B54A3C; }
.qz-via { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: #526579; }
.qz-via-l { margin-right: 4px; }
.qz-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 14px; line-height: 1.45; color: #526579; cursor: pointer; }
.qz-consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: #087F77; flex: none; }
.qz-consent a { color: #087F77; }
.qz-err { color: #B54A3C; font-size: 14px; margin: 10px 0 0; }
.qz-nav { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 28px; }
.qz-back { background: none; border: 0; color: #526579; font: 500 16px var(--font-body); padding: 12px 4px; cursor: pointer; }
.qz-back:hover { color: #087F77; }
.ef-home .qz-next { min-width: 180px; gap: 8px; cursor: pointer; }
.ef-home .qz-next:disabled { background: #AABFCC; border-color: #AABFCC; cursor: not-allowed; }
.qz-hint { margin: 12px 0 0; font-size: 13px; color: #8496A8; }
.qz-done { text-align: left; }
.qz-done-ic { width: 56px; height: 56px; border-radius: 50%; background: #EAF5F4; display: grid; place-items: center; margin-bottom: 16px; }
.qz-done-ic svg { width: 28px; height: 28px; fill: none; stroke: #087F77; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.qz-note { color: #526579; font-size: 14px; margin: 0; }
.qz-photo { margin: 0; border-radius: 16px; overflow: hidden; min-height: 100%; position: relative; }
.qz-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
/* окно по кнопке «Подобрать квартиру» */
.modal .qz { border: 0; box-shadow: none; padding: 20px 16px 8px; }
.qz [hidden], .qz-nav[hidden] { display: none !important; }
@media (max-width: 1024px) { .qz-fields { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .qz-row { grid-template-columns: minmax(0, 1fr) 28px; row-gap: 2px; }
  .qz-row-v { grid-column: 1; }
  .qz-pen { grid-row: 1 / span 2; grid-column: 2; }
  .qz-dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qz-dates input { min-width: 0; width: 100%; padding: 0 10px; }
  .ef-quiz-grid { grid-template-columns: 1fr; }
  .qz-photo { display: none; }
  .qz-opt { min-height: 58px; }
  .qz-opt-t { font-size: 17px; }
  .qz-nav { flex-wrap: wrap; }
  .ef-home .qz-next { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .qz-bar span, .qz-opt { transition: none; } }
