/* «Обзоры школ» по макету задачи 223. Классы nz-*, токены темы eg-*. */
.eg-main:has(.nz) { padding-bottom: 0; }
.nz { background: var(--eg-bg) var(--eg-grid-img) 0 0 / var(--eg-cell) var(--eg-cell); padding-bottom: var(--eg-sp-80); }
.nz-wrap { max-width: 1120px; margin-inline: auto; padding-inline: var(--eg-gutter); }
.nz-hero { background: none; border-bottom: 0; padding: var(--eg-sp-24) 0 0; }
.nz-hero .eg-crumbs { margin-bottom: var(--eg-sp-20); }
.nz-hero__grid { display: grid; gap: var(--eg-sp-24); }
.nz-hero__h1 { margin: 0; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-bold); font-size: 30px; line-height: 38px; letter-spacing: var(--eg-ls-heading); }
.nz-mk { background: var(--eg-accent); color: var(--eg-on-accent); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.nz-hero__lead { margin: var(--eg-sp-16) 0 var(--eg-sp-20); font-size: var(--eg-fs-lead); line-height: var(--eg-lh-lead); max-width: 34em; }
.nz-search { display: flex; align-items: center; gap: var(--eg-sp-12); max-width: 520px; height: 48px; padding: 0 var(--eg-sp-16); background: var(--eg-surface); border: 2px solid var(--eg-line-ink); border-radius: var(--eg-r-2); }
.nz-search:focus-within { outline: 2px solid var(--eg-accent); outline-offset: 2px; }
.nz-search svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--eg-text); stroke-width: 2; stroke-linecap: round; }
.nz-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: var(--eg-fs-input); color: var(--eg-text); outline: 0; }
.nz-search input::placeholder { color: var(--eg-text-muted); }

.nz-hist { margin: 0; padding: var(--eg-sp-20); background: var(--eg-surface); border: 1px dashed var(--eg-line-strong); border-radius: var(--eg-r-2); }
.nz-hist__t { font-family: var(--eg-font-mono); font-feature-settings: var(--eg-mono-features); font-size: 11px; line-height: 16px; letter-spacing: .1em; text-transform: uppercase; color: var(--eg-text-muted); }
.nz-hist__row { display: flex; align-items: flex-end; gap: var(--eg-sp-8); margin: var(--eg-sp-12) 0 0; padding: 0; list-style: none; }
.nz-hist__c { flex: 1; display: flex; flex-direction: column; align-items: center; gap: var(--eg-sp-4); }
.nz-hist__n { font-size: 12px; line-height: 16px; color: var(--eg-text-muted); }
.nz-hist__bar { display: block; width: 100%; max-width: 40px; border: 1px solid var(--eg-line-ink); border-radius: 2px 2px 0 0; background: var(--eg-surface); }
.nz-hist__c.is-top .nz-hist__bar { background: var(--eg-accent); }
.nz-hist__m { font-family: var(--eg-font-heading); font-weight: var(--eg-fw-bold); font-size: 15px; line-height: 20px; color: var(--eg-accent-2-deep); }
.nz-hist__note { margin: var(--eg-sp-12) 0 0; font-size: 13px; line-height: 18px; color: var(--eg-text-muted); }
.nz-hero__meta { margin: var(--eg-sp-20) 0 0; font-size: 12px; line-height: 18px; color: var(--eg-text-muted); }
.nz-hero__meta a { color: inherit; }

.nz-sec { margin-top: var(--eg-sp-60); }
.nz-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--eg-sp-8) var(--eg-sp-16); padding-bottom: var(--eg-sp-12); border-bottom: 2px solid var(--eg-line-ink); margin-bottom: var(--eg-sp-20); }
.nz-head h2 { margin: 0; }
.nz-head__meta { margin: 0; font-family: var(--eg-font-mono); font-feature-settings: var(--eg-mono-features); font-size: 12px; color: var(--eg-text-muted); }
.nz-head__link { font-size: var(--eg-fs-small); color: var(--eg-text); }

.nz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--eg-sp-12); margin-bottom: var(--eg-sp-24); }
.nz-tabs { display: flex; gap: var(--eg-sp-8); overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--eg-gutter)); padding: 2px var(--eg-gutter); max-width: calc(100% + 2 * var(--eg-gutter)); }
.nz-tabs::-webkit-scrollbar { display: none; }
.nz-tab { flex: none; height: 32px; padding: 0 var(--eg-sp-12); border: 1px solid var(--eg-line-ink); border-radius: 999px; background: var(--eg-surface); font: inherit; font-size: 13px; font-weight: var(--eg-fw-medium); color: var(--eg-text); cursor: pointer; white-space: nowrap; }
.nz-tab span { margin-left: 2px; font-size: 11px; color: var(--eg-text-muted); }
.nz-tab:hover { background: var(--eg-accent-tint); }
.nz-tab[aria-pressed="true"] { background: var(--eg-accent); }
.nz-tab[aria-pressed="true"] span { color: var(--eg-on-accent); }
.nz-sort { display: inline-flex; border: 1px solid var(--eg-line-ink); border-radius: var(--eg-r-2); overflow: hidden; background: var(--eg-surface); }
.nz-sort button { height: 32px; padding: 0 var(--eg-sp-12); border: 0; border-left: 1px solid var(--eg-line-ink); background: none; font: inherit; font-size: 13px; font-weight: var(--eg-fw-medium); color: var(--eg-text); cursor: pointer; }
.nz-sort button:first-child { border-left: 0; }
.nz-sort button:hover { background: var(--eg-accent-tint); }
.nz-sort button[aria-pressed="true"] { background: var(--eg-dark); color: var(--eg-on-dark); }

.nz-grid { display: grid; gap: var(--eg-sp-20) var(--eg-sp-12); margin: 0; padding: 0; list-style: none; }
.nz-card { position: relative; display: flex; flex-direction: column; padding: var(--eg-sp-16); background: var(--eg-surface); border: 1px solid var(--eg-line); border-radius: var(--eg-r-2); }
.nz-card[hidden] { display: none; }
.nz-card.is-cmp { border: 2px solid var(--eg-line-ink); box-shadow: 4px 4px 0 var(--eg-accent); padding: 15px; }
.nz-card__cmp { position: absolute; top: -10px; right: 12px; height: 20px; padding: 0 var(--eg-sp-8); border: 1px solid var(--eg-line-ink); border-radius: 999px; background: var(--eg-surface); font: inherit; font-size: 11px; line-height: 18px; font-weight: var(--eg-fw-medium); color: var(--eg-text); cursor: pointer; }
.nz-card__cmp::before { content: ""; position: absolute; inset: -12px -6px; }
.nz-card__cmp:hover { background: var(--eg-accent-tint); }
.nz-card__cmp .nz-on, .nz-card__cmp[aria-pressed="true"] .nz-off { display: none; }
.nz-card__cmp[aria-pressed="true"] .nz-on { display: inline; }
.nz-card__cmp[aria-pressed="true"] { background: var(--eg-accent); }
.nz-card__cmp:disabled { color: var(--eg-text-faint); border-color: var(--eg-line); cursor: not-allowed; background: var(--eg-surface); }
.nz-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--eg-sp-12); align-items: start; }
.nz-card__who { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 2px; }
.nz-card__name { font-family: var(--eg-font-heading); font-weight: var(--eg-fw-semibold); font-size: 17px; line-height: 22px; color: var(--eg-text); text-decoration: none; }
.nz-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.nz-card__kind { font-size: 12px; line-height: 16px; color: var(--eg-text-muted); }
.nz-card .eg-mark { align-items: flex-end; }
.nz-card .eg-mark__val { font-size: 26px; }
.nz-card .eg-mark__avg { font-family: var(--eg-font-mono); font-feature-settings: var(--eg-mono-features); font-size: 11px; }
.nz-card__short { flex: 1; margin: var(--eg-sp-12) 0 var(--eg-sp-16); font-size: 13px; line-height: 20px; }
.nz-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--eg-sp-8); }
.nz-card__price { font-family: var(--eg-font-mono); font-feature-settings: var(--eg-mono-features); font-size: 13px; word-spacing: var(--eg-ws-num); white-space: nowrap; }
.nz-card__price sup { font-size: 11px; color: var(--eg-warning); cursor: help; }
.nz-card__price--none { font-family: inherit; font-size: 12px; color: var(--eg-text-muted); }
.nz-card__acts { display: flex; gap: var(--eg-sp-8); }
.nz-card__acts .eg-btn { padding: 0 var(--eg-sp-8); font-size: 13px; }

.nz-empty { margin: var(--eg-sp-20) 0; }
.nz-more { display: flex; justify-content: center; margin-top: var(--eg-sp-24); }
.nz-more[hidden] { display: none; }
.nz-more .eg-btn { border-width: 2px; }

.nz-cmp { position: sticky; bottom: 12px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--eg-sp-12); margin-top: var(--eg-sp-24); padding: var(--eg-sp-12) var(--eg-sp-16); background: var(--eg-dark); color: var(--eg-on-dark); border-radius: 2px; box-shadow: 6px 6px 0 var(--eg-accent); }
.nz-cmp__pick { display: flex; flex-wrap: wrap; align-items: center; gap: var(--eg-sp-8); margin: 0; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-semibold); font-size: 15px; line-height: 20px; }
.nz-cmp__hint { font-family: var(--eg-font-body); font-weight: var(--eg-fw-regular); font-size: 14px; color: var(--eg-on-dark-muted); }
.nz-cmp__acts { display: flex; gap: var(--eg-sp-8); }
.nz-cmp__acts [hidden] { display: none; }
.nz-cmp .eg-btn--primary[aria-disabled="true"] { background: var(--eg-dark-line); color: var(--eg-on-dark-muted); border-color: var(--eg-dark-line); }
.nz-or { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--eg-accent); color: var(--eg-on-accent); font-family: var(--eg-font-body); font-size: 10px; font-weight: var(--eg-fw-semibold); }

.nz-vsgrid { display: grid; gap: var(--eg-sp-12); margin: 0; padding: 0; list-style: none; }
.nz-vs { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--eg-sp-8); padding: var(--eg-sp-16); background: var(--eg-surface); border: 1px solid var(--eg-line-ink); border-radius: 2px; color: var(--eg-text); text-decoration: none; }
.nz-vs:hover { background: var(--eg-accent-tint); }
.nz-vs__s { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nz-vs__s--b { align-items: flex-end; text-align: right; }
.nz-vs__s b { font-family: var(--eg-font-heading); font-weight: var(--eg-fw-semibold); font-size: 14px; line-height: 18px; overflow-wrap: anywhere; }
.nz-vs__s i { font-style: normal; font-family: var(--eg-font-heading); font-weight: var(--eg-fw-bold); font-size: 15px; color: var(--eg-accent-2-deep); }

.nz-inside { display: grid; gap: var(--eg-sp-24); align-items: start; }
.nz-chips { display: flex; flex-wrap: wrap; gap: var(--eg-sp-8); margin: 0 0 var(--eg-sp-16); padding: 0; list-style: none; }
.nz-chips li { display: inline-flex; align-items: center; gap: var(--eg-sp-8); height: 36px; padding: 0 var(--eg-sp-12); background: var(--eg-surface); border: 1px solid var(--eg-line-ink); border-radius: 2px; font-size: 13px; font-weight: var(--eg-fw-medium); }
.nz-chips .eg-num { font-family: var(--eg-font-mono); font-size: 11px; color: var(--eg-text-muted); }
.nz-inside__text p { margin: 0 0 var(--eg-sp-12); font-size: 14px; line-height: 22px; }
.nz-stats { margin: 0; padding: 0 var(--eg-sp-16); list-style: none; background: var(--eg-surface); border: 1px dashed var(--eg-line-strong); border-radius: var(--eg-r-2); }
.nz-stats li { display: flex; align-items: center; gap: var(--eg-sp-16); padding: var(--eg-sp-12) 0; border-top: 1px solid var(--eg-line); font-size: 13px; line-height: 18px; }
.nz-stats li:first-child { border-top: 0; }
.nz-stats b { flex: none; min-width: 44px; padding: 2px 6px; background: var(--eg-accent); font-family: var(--eg-font-heading); font-weight: var(--eg-fw-bold); font-size: 26px; line-height: 32px; text-align: center; }
.nz .eg-section.eg-container { max-width: 1120px; }

@media (min-width: 640px) {
  .nz-grid, .nz-vsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .nz-tabs { margin: 0; padding: 0; max-width: none; flex-wrap: wrap; overflow: visible; }
}
@media (min-width: 1024px) {
  .nz-hero { padding-top: var(--eg-sp-32); }
  .nz-hero__grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: var(--eg-sp-60); }
  .nz-hero__h1 { font-size: 44px; line-height: 52px; }
  .nz-grid, .nz-vsgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nz-inside { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--eg-sp-40); }
}
@media (max-width: 639px) {
  .nz-sort { width: 100%; }
  .nz-sort button { flex: 1; }
  .nz-cmp { bottom: 8px; }
  .nz-cmp__acts { width: 100%; }
  .nz-cmp__acts .eg-btn { flex: 1; }
}
.nz-cmp:not(.is-live) { position: static; box-shadow: 4px 4px 0 var(--eg-accent); }
