/* Окно «Как мы проверяем» (обзор). Открывается из блока 3, позже — из блока 5 и карточки квартиры */
.hc { position: fixed; inset: 0; margin: auto; height: fit-content; border: 0; padding: 0; border-radius: 18px; width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; color: #172B42; box-shadow: 0 24px 64px rgba(23,43,66,.25); }
.hc::backdrop { background: rgba(23,43,66,.55); }
.hc-box { position: relative; padding: clamp(22px, 3vw, 36px); }
.hc-close { position: absolute; right: 14px; top: 12px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; font-size: 28px; line-height: 1; color: #526579; cursor: pointer; }
.hc-close:hover { background: #F3F6F8; color: #172B42; }
.hc h2 { margin: 0 40px 6px 0; font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--font-head); letter-spacing: -.02em; }
.hc-lead { margin: 0 0 18px; color: #526579; }
.hc h3 { margin: 20px 0 10px; font: 700 16px/1.3 var(--font-head); }
.hc-groups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
.hc-groups li { display: flex; flex-direction: column; padding: 10px 12px; background: #F3F6F8; border-radius: 10px; font-size: 14px; }
.hc-groups b { font-weight: 600; }
.hc-groups span { color: #526579; }
.hc-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.hc-steps li { counter-increment: s; position: relative; padding: 34px 10px 10px; border: 1px solid #DCE5EA; border-radius: 10px; font-size: 13.5px; display: flex; flex-direction: column; gap: 2px; }
.hc-steps li::before { content: counter(s); position: absolute; left: 10px; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: #087F77; color: #fff; font: 700 12px/20px var(--font-body); text-align: center; }
.hc-steps b { font-weight: 600; }
.hc-steps span { color: #526579; }
.hc-marks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: #526579; }
.hc-marks li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hc-marks .pc-badge { flex: none; min-width: 140px; text-align: center; border: 1px solid #DCE5EA; }
.pc-badge.no { background: #FBE9E7; color: #9A2E1F; }
.hc-note { margin: 18px 0 0; padding: 12px 14px; background: #FFF8EC; border-radius: 10px; font-size: 14px; color: #6B4A12; }
.hc-morep { margin: 18px 0 0; }
.hc-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 10px; margin-top: 14px; }
.ef-home .hc-foot .btn { width: 100%; cursor: pointer; }
.hc-more { color: #087F77; font-weight: 600; text-decoration: none; }
.hc-more:hover { text-decoration: underline; }
.hc :focus-visible { outline: 2px solid #087F77; outline-offset: 2px; }
@media (max-width: 640px) {
  .hc { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; overflow-y: auto; }
  .hc-groups { grid-template-columns: 1fr; }
  .hc-steps { grid-template-columns: 1fr; }
  .hc-steps li { padding: 10px 10px 10px 40px; }
  .hc-steps li::before { top: 10px; }
  .hc-foot { grid-template-columns: 1fr; }
}
