/* nauka-school, задача 184 — шапка /sravnenie/ «А или Б». Откат — удалить mu-plugin nauka-compare-hero. */
.nc-hero { padding-block: var(--eg-sp-24) var(--eg-sp-40); }
.nc-hero__top { display: grid; justify-items: center; gap: var(--eg-sp-8); margin: var(--eg-sp-16) auto var(--eg-sp-24); text-align: center; }
.nc-hero .nc-hero__h1 { grid-column: auto; margin: 0; } /* у темы на ≥1200px h1 занимает 7 из 12 колонок */
.nc-nw { white-space: nowrap; }
.nc-hl { color: var(--eg-text); padding: 0 0.12em; border-radius: var(--eg-r-marker); }
.nc-hl--a { background: #FFD400; }
.nc-hl--b { background: #FFECEF; }
.nc-hero__sub { max-width: none; margin: 0 auto; font-size: var(--eg-fs-lead); line-height: var(--eg-lh-lead); color: var(--eg-text-muted); }

/* две карточки и круг «или» */
.nc-duel { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: stretch; gap: var(--eg-sp-12); max-width: 880px; margin-inline: auto; }
.nc-card { display: grid; gap: var(--eg-sp-16); min-width: 0; padding: var(--eg-sp-20); background: var(--eg-surface); border: var(--eg-border-ink); border-radius: var(--eg-r-2); }
.nc-card--a { box-shadow: 5px 5px 0 #FFD400; }
.nc-card--b { box-shadow: 5px 5px 0 #FFECEF; }
.nc-card__body { display: grid; gap: var(--eg-sp-16); transition: opacity .3s ease, transform .3s ease; }
.nc-card__body.is-out { opacity: 0; transform: translateY(6px); }
.nc-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--eg-sp-12); }
.nc-card__id { min-width: 0; }
.nc-card__name { margin: 0; font-family: var(--eg-font-heading); font-weight: 600; font-size: 20px; line-height: 26px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nc-card__type { margin: 2px 0 0; font-size: var(--eg-fs-small); line-height: var(--eg-lh-small); color: var(--eg-text-muted); }
.nc-card__mark { font-family: var(--eg-font-heading); font-weight: 700; font-size: var(--eg-fs-mark-m); line-height: 1; color: var(--eg-accent-2-deep); white-space: nowrap; }
.nc-card__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--eg-sp-4) var(--eg-sp-12); margin: 0; padding-top: var(--eg-sp-16); border-top: 1px dashed var(--eg-line-strong); }
.nc-card__lbl { font-size: var(--eg-fs-small); line-height: var(--eg-lh-small); color: var(--eg-text-muted); }
.nc-card__num { font-family: var(--eg-font-mono); font-feature-settings: var(--eg-mono-features); font-size: var(--eg-fs-num-l); line-height: var(--eg-lh-num-l); font-weight: 500; white-space: nowrap; }
.nc-card__val.eg-hl { white-space: nowrap; }
.nc-card__star { margin-left: 1px; font-weight: 600; color: var(--eg-warning); cursor: help; }
.nc-card__none { font-family: var(--eg-font-body); font-size: var(--eg-fs-small); color: var(--eg-text-muted); }
.nc-card__pick { display: block; }
.nc-card__pick select {
  width: 100%; height: var(--eg-tap); padding: 0 var(--eg-sp-32) 0 var(--eg-sp-12); border: var(--eg-border-strong); border-radius: var(--eg-r-2);
  font: inherit; font-size: var(--eg-fs-input); line-height: 1.2; color: var(--eg-text); text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: var(--eg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2316181D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 12px 8px no-repeat;
}
.nc-card__pick select:hover { border-color: var(--eg-line-ink); }

.nc-or { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; justify-self: center; width: 60px; height: 60px; margin-block: -26px; border: 1.5px solid #16181D; border-radius: 50%; background: #FFD400; font-family: var(--eg-font-heading); font-weight: 700; font-size: 17px; line-height: 1; color: #16181D; }
.nc-or::after { content: ""; position: absolute; inset: -1.5px; border: 2px solid #FFD400; border-radius: 50%; opacity: 0; animation: nc-pulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes nc-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }

/* вывод, кнопки, мелкая строка */
.nc-verdict { max-width: 880px; min-height: 48px; margin: var(--eg-sp-20) auto 0; font-size: var(--eg-fs-body); line-height: var(--eg-lh-body); text-align: center; }
.nc-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--eg-sp-12); margin-top: var(--eg-sp-12); }
.nc-acts .eg-btn { text-decoration: none; }
.nc-meta { max-width: 880px; margin: var(--eg-sp-20) auto 0; font-size: var(--eg-fs-micro); line-height: var(--eg-lh-micro); color: var(--eg-text-muted); text-align: center; }
.nc-meta a { color: var(--eg-text); }

@media (max-width: 767px) {
  .nc-hero__top { margin-top: var(--eg-sp-8); }
  .nc-card { padding: var(--eg-sp-16); }
  .nc-card__name { font-size: 18px; line-height: 24px; }
  .nc-acts .eg-btn { width: 100%; }
}
@media (min-width: 768px) {
  .nc-duel { grid-template-columns: minmax(0, 1fr) 60px minmax(0, 1fr); align-items: center; gap: var(--eg-sp-16); }
  .nc-or { margin-block: 0; }
  .nc-card { align-self: stretch; }
  .nc-verdict { min-height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .nc-or::after { animation: none; }
  .nc-card__body { transition: none; }
}

/* задача 185: текст «Как читать сравнение» и вопросы — во всю ширину страницы */
section[aria-labelledby="sec-text"] .eg-prose, section[aria-labelledby="sec-faq"] .eg-faq { max-width: none; }

/* задача 185: «Сравнить свои» — панель выбора прилипает к низу экрана, пока виден список школ */
.nc-pick .eg-pick__bar {
  position: sticky; bottom: var(--eg-sp-12); z-index: var(--eg-z-sticky);
  margin: var(--eg-sp-20) 0 var(--eg-sp-16); padding: var(--eg-sp-12) var(--eg-sp-16);
  background: var(--eg-surface); border: var(--eg-border-ink); border-radius: var(--eg-r-2); box-shadow: 5px 5px 0 #FFD400;
}
body.eg-has-cmpbar .nc-pick .eg-pick__bar { bottom: calc(var(--eg-cmpbar-h) + var(--eg-sp-12)); }
.nc-pick .eg-pick__bar [hidden] { display: none !important; }
.nc-pick .eg-pick__bar .eg-found { margin: 0; font-weight: 600; white-space: nowrap; }
.nc-pick .eg-pick__bar [data-pick-hint] { margin: 0; }
.nc-pick__chips { display: flex; flex-wrap: wrap; gap: var(--eg-sp-8); margin: 0; padding: 0; list-style: none; min-width: 0; }
.nc-pick__chip { display: inline-flex; align-items: center; gap: 2px; height: 32px; padding: 0 2px 0 var(--eg-sp-12); background: var(--eg-accent-tint); border: var(--eg-border-strong); border-radius: var(--eg-r-2); font-size: var(--eg-fs-small); line-height: var(--eg-lh-small); font-weight: 500; white-space: nowrap; }
.nc-pick__x { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--eg-r-1); background: none; font: inherit; font-size: 18px; line-height: 1; color: var(--eg-text-muted); cursor: pointer; }
.nc-pick__x:hover { background: var(--eg-accent); color: var(--eg-text); }
.nc-pick__acts { display: flex; align-items: center; gap: var(--eg-sp-12); margin-left: auto; }
.nc-pick__go { white-space: nowrap; }
.nc-pick .eg-pick__bar.is-ready { animation: nc-ready 1.2s ease-out 1; }
@keyframes nc-ready { 0%, 40% { box-shadow: 5px 5px 0 #FFD400, 0 0 0 6px rgba(255, 212, 0, .55); } 100% { box-shadow: 5px 5px 0 #FFD400, 0 0 0 0 rgba(255, 212, 0, 0); } }
.nc-pick [data-pick-out] { scroll-margin-top: var(--eg-sp-16); }
.nc-pick [data-pick-out]:focus { outline: none; }
@media (max-width: 767px) {
  .nc-pick .eg-pick__bar { bottom: var(--eg-sp-8); gap: var(--eg-sp-8) var(--eg-sp-12); padding: var(--eg-sp-12); box-shadow: 3px 3px 0 #FFD400; }
  .nc-pick__chips { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nc-pick__acts { margin-left: auto; justify-content: flex-end; }
  .nc-pick .eg-pick__bar.is-on .nc-pick__acts { order: 4; flex: 1 0 100%; }
  .nc-pick__go { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .nc-pick .eg-pick__bar.is-ready { animation: none; } }

/* задача 216: в шапке своей таблицы (3–4 школы) кнопка «На сайт» не наезжает на название — уходит строкой ниже */
@media (min-width: 1200px) {
  .nc-pick .eg-pick__out .eg-pair__th { grid-template-columns: auto minmax(0, 1fr); gap: var(--eg-sp-12); }
  .nc-pick .eg-pick__out .eg-pair__th .eg-btn { grid-column: 1 / -1; justify-self: start; }
}
.nc-pick .eg-pick__out .eg-pair__th-name { overflow-wrap: anywhere; }
