/* «Подбор школы» по макету задачи 220. Токены — из темы otmetka. */
.nq { border-bottom: 0; }
.nq-hero { padding: var(--eg-sp-16, 16px) 0 var(--eg-sp-24, 24px); }
.nq-hero .eg-crumbs { margin-bottom: 20px; }
.nq-h1 { max-width: 760px; margin: 0 auto; text-align: center; font-family: var(--eg-font-heading); font-weight: 700; font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
.nq-h1 .eg-hl { white-space: normal; }
.nq-lead { max-width: 600px; margin: 12px auto 0; text-align: center; font-size: 16px; line-height: 24px; color: var(--eg-text-muted); }
.nq-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 20px; font-weight: 500; }
.nq-ticks li::before { content: "✓"; margin-right: 6px; font-weight: 700; }

.nq-card { position: relative; max-width: 820px; margin: 24px auto 0; padding: 20px 16px 16px; background: var(--eg-surface); border: 2px solid var(--eg-line-ink); border-radius: 4px; box-shadow: 6px 6px 0 var(--eg-accent); }
.nq-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.nq-bar__s { min-width: 0; font-size: 11px; line-height: 14px; color: var(--eg-text-muted); }
.nq-bar__s i { display: block; height: 5px; margin-bottom: 8px; border-radius: 3px; background: var(--eg-bg-3); }
.nq-bar__s span { display: block; }
.nq-bar__s small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--eg-text-muted); }
.nq-bar__s.is-done i { background: var(--eg-line-ink); }
.nq-bar__s.is-done span { color: var(--eg-text); }
.nq-bar__s.is-cur i { background: var(--eg-accent); box-shadow: inset 0 0 0 1px var(--eg-accent-press); }
.nq-bar__s.is-cur span { color: var(--eg-text); font-weight: 700; }

.nq-q__n { margin: 0; font-family: var(--eg-font-mono); font-feature-settings: var(--eg-mono-features); font-size: 11px; line-height: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--eg-text-muted); }
.nq-q__ask { margin: 6px 0 0; font-family: var(--eg-font-heading); font-weight: 700; font-size: 22px; line-height: 28px; outline: none; }
.nq-q__ask small { display: block; margin-top: 4px; font-family: var(--eg-font-body); font-weight: 400; font-size: 14px; line-height: 20px; color: var(--eg-text-muted); }
.nq-q__sub { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--eg-text-muted); }

.nq-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 16px; }
.nq-opts--4, .nq-opts--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nq-opt { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 52px; padding: 10px 14px; text-align: left; font: inherit; color: var(--eg-text); background: var(--eg-surface); border: 1px solid var(--eg-line-strong); border-radius: 4px; cursor: pointer; transition: border-color .12s, background-color .12s, box-shadow .12s; }
.nq-opt:hover { border-color: var(--eg-line-ink); background: var(--eg-bg-2); }
.nq-opt:focus-visible { outline: 2px solid var(--eg-accent-2-deep); outline-offset: 2px; }
.nq-opt[aria-pressed="true"] { border-color: var(--eg-line-ink); background: var(--eg-accent-tint); box-shadow: inset 0 0 0 1px var(--eg-line-ink); }
.nq-opt__t { display: flex; flex-direction: column; min-width: 0; }
.nq-opt__t b { font-weight: 600; font-size: 15px; line-height: 20px; }
.nq-opt__t small { margin-top: 1px; font-size: 12px; line-height: 16px; color: var(--eg-text-muted); }
.nq-opt__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--eg-font-heading); font-weight: 700; font-size: 11px; line-height: 1; color: var(--eg-text); }
.nq-opt__ico--ege { background: var(--eg-accent); }
.nq-opt__ico--oge { background: var(--eg-accent-2-tint); }
.nq-opt__ico--sch { background: var(--eg-success-tint); }
.nq-opt__ico--att { background: var(--eg-bg-3); }
.nq-opt__ico--tut { background: var(--eg-warning-tint); }

.nq-res .nq-hits { margin: 16px 0 0; padding: 0; list-style: none; }
.nq-hint { margin: 12px 0 0; padding: 10px 12px; font-size: 14px; line-height: 20px; background: var(--eg-warning-tint); border-radius: 4px; }
.nq-small { margin: 12px 0 0; font-size: 13px; line-height: 18px; color: var(--eg-text-muted); }
.nq-nav { display: flex; gap: 20px; margin: 14px 0 0; }
.nq-nav:not(:has(button:not([hidden]))) { display: none; }
.nq-link { padding: 0; font: inherit; font-size: 14px; font-weight: 500; color: var(--eg-text); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nq-link:hover { text-decoration-thickness: 2px; }
.nq-disc { max-width: 760px; margin: 20px auto 0; text-align: center; font-size: 12px; line-height: 18px; color: var(--eg-text-muted); }
.nq-disc a { color: inherit; }

.nq-steps { display: grid; gap: 20px; margin: 20px 0 0; padding: 0; list-style: none; }
.nq-steps li { display: flex; gap: 14px; }
.nq-steps__n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--eg-line-ink); border-radius: 50%; background: var(--eg-accent); font-family: var(--eg-font-heading); font-weight: 600; font-size: 16px; }
.nq-steps h3 { margin: 0 0 6px; padding: 0; font-family: var(--eg-font-heading); font-weight: 600; font-size: 17px; line-height: 24px; }
.nq-steps p { margin: 0; font-size: 14px; line-height: 22px; color: var(--eg-text-muted); }
.nq-how__note { margin: 24px 0 0; font-size: 14px; line-height: 22px; color: var(--eg-text-muted); }
.nq-how__note a { color: var(--eg-text); }
.nq-how__all { font-weight: 500; white-space: nowrap; }

.nq-rel__list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.nq-rel__list .eg-linklist__item { min-height: 44px; }

@media (min-width: 768px) {
  .nq-hero { padding: 20px 0 32px; }
  .nq-h1 { font-size: 44px; line-height: 52px; }
  .nq-lead { margin-top: 16px; font-size: 18px; line-height: 28px; }
  .nq-card { margin-top: 28px; padding: 24px 28px 28px; box-shadow: 8px 8px 0 var(--eg-accent); }
  .nq-bar__s, .nq-bar__s small { font-size: 12px; }
  .nq-q__ask { font-size: 28px; line-height: 34px; }
  .nq-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nq-opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nq-opts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .nq-opt--ico { min-height: 76px; }
  .nq-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .nq-rel__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nq-rel__list .eg-linklist__item { min-height: 44px; }
}
