:root {
  --bg: oklch(96% .03 150);
  --surface: oklch(100% 0 0);
  --surface-soft: oklch(98% .018 150);
  --surface-strong: oklch(92% .06 151);
  --fg: oklch(24% .05 162);
  --fg-soft: oklch(35% .045 160);
  --muted: oklch(49% .04 160);
  --border: oklch(87% .04 151);
  --border-strong: oklch(78% .065 151);
  --accent: oklch(59% .155 153);
  --accent-hover: oklch(52% .15 153);
  --accent-soft: oklch(92% .085 151);
  --accent-on: oklch(99% .005 150);
  --danger: oklch(55% .19 27);
  --danger-soft: oklch(95% .04 27);
  --warning: oklch(68% .15 72);
  --font-display: "Trebuchet MS", "Aptos Display", system-ui, sans-serif;
  --font-body: "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow: 0 12px 34px color-mix(in oklab, var(--fg), transparent 92%);
  --focus: 0 0 0 3px color-mix(in oklab, var(--accent), transparent 72%);
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.12; }
h1 { max-width: 900px; font-size: clamp(42px, 5.2vw, 72px); letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 3.2vw, 46px); letter-spacing: -.03em; }
h3 { font-size: clamp(20px, 2vw, 26px); letter-spacing: -.02em; }
p { margin: 0; }
.mono, .score, .criterion-value, .rank-place { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding-block: 72px; }
.section-tight { padding-block: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-head p { max-width: 610px; color: var(--muted); }
.eyebrow { margin-bottom: 12px; color: var(--accent-hover); font: 700 12px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.muted { color: var(--muted); }
.lede { max-width: 720px; color: var(--fg-soft); font-size: clamp(18px, 2vw, 22px); }
.link { color: var(--accent-hover); font-weight: 700; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--fg); color: var(--surface); }
.skip-link:focus { top: 16px; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid color-mix(in oklab, var(--border), transparent 12%); background: color-mix(in oklab, var(--bg), transparent 8%); backdrop-filter: blur(18px); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; flex: none; }
.brand-mark { font: 800 20px/1 var(--font-display); letter-spacing: -.04em; }
.brand-mark span { color: var(--accent); }
.brand-note { color: var(--muted); font-size: 12px; }
.site-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: var(--radius-sm); color: var(--fg-soft); font-size: 14px; font-weight: 650; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--surface); color: var(--fg); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 19px; height: 2px; border-radius: 2px; background: currentColor; content: ""; transition: transform 180ms ease; }
.menu-lines { position: relative; margin: auto; }
.menu-lines::before { position: absolute; top: -6px; }
.menu-lines::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }

.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 750; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 8px 18px color-mix(in oklab, var(--accent), transparent 76%); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--border-strong); background: var(--surface); color: var(--fg); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-quiet { min-height: 40px; padding: 7px 10px; background: transparent; color: var(--accent-hover); }
.btn[disabled] { cursor: not-allowed; opacity: .5; transform: none; }

.hero { padding: 74px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); gap: clamp(36px, 7vw, 94px); align-items: center; }
.hero-copy .lede { margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.trust-line span::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }
.finder { padding: 26px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.finder h2 { font-size: 27px; }
.finder p { margin: 8px 0 20px; color: var(--muted); }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { color: var(--fg-soft); font-size: 14px; font-weight: 700; }
.input, .select, .textarea { width: 100%; min-height: 48px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--fg); padding: 11px 13px; }
.textarea { min-height: 150px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: color-mix(in oklab, var(--muted), transparent 24%); }
.finder .btn { width: 100%; margin-top: 4px; }
.finder-result { display: none; margin-top: 16px; padding: 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--fg-soft); font-size: 14px; }
.finder-result.is-visible { display: block; }

.overview-strip { border-block: 1px solid var(--border); background: color-mix(in oklab, var(--surface), transparent 25%); }
.overview-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.overview-item { padding: 26px 24px; }
.overview-item + .overview-item { border-left: 1px solid var(--border); }
.overview-item strong { display: block; margin-bottom: 3px; font-family: var(--font-display); font-size: 18px; }
.overview-item span { color: var(--muted); font-size: 14px; }

.school-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.school-card { position: relative; display: grid; min-height: 274px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.school-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.school-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo-frame { width: 116px; height: 56px; display: grid; place-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.logo-frame img { max-width: 100%; max-height: 100%; object-fit: contain; }
.score { display: inline-flex; align-items: baseline; color: var(--accent-hover); font-size: 26px; font-weight: 800; }
.score small { margin-left: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.school-card h3 { margin: 22px 0 9px; font-size: 23px; }
.school-card p { color: var(--muted); font-size: 14px; }
.tag-row { display: flex; flex-wrap: wrap; align-self: end; gap: 7px; margin-top: 18px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border-radius: 999px; background: var(--surface-strong); color: var(--fg-soft); font-size: 12px; font-weight: 650; }
.card-link { position: absolute; inset: 0; border-radius: inherit; }
.school-card .btn, .school-card button { position: relative; z-index: 2; }

.compare-band { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; padding: 34px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--fg); color: var(--surface); }
.compare-band h2 { max-width: 760px; font-size: clamp(30px, 4vw, 50px); }
.compare-band p { max-width: 650px; margin-top: 12px; color: color-mix(in oklab, var(--surface), transparent 30%); }
.compare-band .btn-secondary { border-color: color-mix(in oklab, var(--surface), transparent 55%); background: transparent; color: var(--surface); }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.category-link { min-height: 126px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.category-link::after { color: var(--accent-hover); content: "Перейти"; font: 700 12px var(--font-body); }
.category-link:hover { border-color: var(--accent); }

.method-grid { display: grid; grid-template-columns: 1.05fr 1.95fr; gap: 44px; align-items: start; }
.method-note { position: sticky; top: 104px; }
.method-note .lede { margin: 18px 0; }
.criteria-list { border-top: 1px solid var(--border-strong); }
.criterion { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.criterion h3 { font-size: 19px; }
.criterion p { margin-top: 5px; color: var(--muted); font-size: 14px; }
.criterion-value { color: var(--accent-hover); font-size: 20px; font-weight: 800; }

.content-grid { display: grid; grid-template-columns: 1.4fr .6fr; gap: 18px; }
.article-list { display: grid; border-top: 1px solid var(--border-strong); }
.article-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 24px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--border); }
.article-meta { color: var(--muted); font: 12px/1.5 var(--font-mono); }
.article-row h3 { font-size: 21px; }
.review-highlight { padding: 26px; border-radius: var(--radius-lg); background: var(--surface-strong); }
.review-highlight blockquote { margin: 18px 0; font-family: var(--font-display); font-size: 21px; line-height: 1.42; }
.review-highlight footer { color: var(--muted); font-size: 14px; }

.page-hero { padding: 56px 0 36px; }
.page-hero h1 { font-size: clamp(38px, 4.8vw, 62px); }
.page-hero .lede { margin-top: 18px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--muted); font-size: 13px; }
.breadcrumbs a:hover { color: var(--accent-hover); }
.breadcrumbs span + span::before, .breadcrumbs a + span::before { margin-right: 8px; content: "/"; }

.rating-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.filters h2 { margin-bottom: 20px; font-size: 23px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; color: var(--fg-soft); font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.filter-actions { display: grid; gap: 8px; margin-top: 18px; }
.results-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-toolbar .select { width: auto; min-width: 220px; }
.rating-list { display: grid; gap: 12px; }
.rating-row { display: grid; grid-template-columns: 72px 165px minmax(150px, .8fr) minmax(330px, 1.4fr) 150px; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.rank-place { color: var(--muted); font-size: 12px; text-align: center; }
.rank-place strong { display: block; color: var(--fg); font-size: 21px; }
.rating-row .logo-frame { width: 136px; }
.rating-name h3 { font-size: 18px; }
.rating-name .score { margin-top: 8px; font-size: 19px; }
.mini-meters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.mini-meter { text-align: center; }
.mini-meter span { display: block; color: var(--muted); font-size: 10px; }
.mini-meter strong { display: block; margin-top: 4px; font: 800 15px var(--font-mono); }
.mini-meter i { display: block; height: 4px; margin-top: 6px; border-radius: 9px; background: var(--border); overflow: hidden; }
.mini-meter i::after { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--accent); content: ""; }
.row-actions { display: grid; gap: 8px; }
.compare-check { display: flex; align-items: center; gap: 8px; color: var(--fg-soft); font-size: 12px; }
.compare-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.empty-results { padding: 44px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); text-align: center; color: var(--muted); }

.compare-tray { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: min(420px, calc(100% - 48px)); display: none; padding: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.compare-tray.is-visible { display: block; }
.tray-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tray-schools { display: flex; gap: 8px; margin-bottom: 12px; }
.tray-chip { flex: 1; min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-strong); font-size: 12px; font-weight: 700; }
.tray-chip button { border: 0; background: transparent; color: var(--muted); }
.tray-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.school-hero-card { display: grid; grid-template-columns: 180px 1fr auto; gap: 30px; align-items: center; padding: 30px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.school-hero-card .logo-frame { width: 180px; height: 100px; }
.school-hero-card h1 { font-size: clamp(36px, 5vw, 58px); }
.school-summary { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.score-panel { min-width: 160px; text-align: right; }
.score-panel .score { font-size: 48px; }
.score-panel p { color: var(--muted); font-size: 12px; }
.school-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.criteria-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.criteria-card { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.criteria-card span { color: var(--muted); font-size: 12px; }
.criteria-card strong { display: block; margin: 8px 0 10px; font: 800 26px var(--font-mono); }
.meter-line { height: 6px; border-radius: 9px; background: var(--border); overflow: hidden; }
.meter-line i { display: block; width: var(--value); height: 100%; border-radius: inherit; background: var(--accent); }
.tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--border); scrollbar-width: none; }
.tab { flex: none; min-height: 48px; padding: 10px 15px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 750; }
.tab[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--fg); }
.tab-panel { display: none; padding-top: 30px; }
.tab-panel.is-active { display: block; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 42px; }
.prose { max-width: 760px; }
.prose p { margin: 0 0 18px; color: var(--fg-soft); font-size: 18px; line-height: 1.72; }
.source-note { padding: 16px; border-left: 4px solid var(--accent); background: var(--surface-strong); color: var(--fg-soft); font-size: 14px; }
.facts { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.facts dl { margin: 0; }
.facts div { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.facts div:last-child { border: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 700; }
.review-list { display: grid; gap: 12px; }
.review-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.review-author { font-weight: 800; }
.review-card p { color: var(--fg-soft); line-height: 1.65; }
.review-age { margin-top: 14px; color: var(--muted); font-size: 12px; }

.compare-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare-table-wrap { margin-top: 24px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 18px 22px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare-table th { color: var(--muted); font-size: 13px; font-weight: 700; }
.compare-table th:first-child, .compare-table td:first-child { width: 28%; background: var(--surface-soft); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-school-head { display: flex; align-items: center; gap: 14px; }
.compare-school-head .logo-frame { width: 104px; height: 52px; }
.compare-cell-score { font: 800 23px var(--font-mono); }
.available { color: var(--accent-hover); font-weight: 750; }
.not-available { color: var(--muted); }
.mobile-compare { display: none; }

.article-shell { display: grid; grid-template-columns: minmax(0, 760px) 280px; gap: 72px; align-items: start; }
.article-content { padding-bottom: 70px; }
.article-content .lede { margin: 20px 0 18px; }
.article-byline { padding-bottom: 24px; border-bottom: 1px solid var(--border); color: var(--muted); font: 12px var(--font-mono); }
.article-body { padding-top: 34px; }
.article-body h2 { margin: 42px 0 16px; font-size: clamp(27px, 3vw, 36px); }
.article-body p { margin: 0 0 20px; color: var(--fg-soft); font: 18px/1.78 var(--font-body); }
.article-table { width: 100%; margin: 28px 0; border-collapse: collapse; font-size: 15px; }
.article-table th, .article-table td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; }
.article-table th { background: var(--surface-strong); }
.article-aside { position: sticky; top: 100px; }
.toc { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.toc h2 { margin-bottom: 14px; font-size: 18px; }
.toc a { display: block; padding: 8px 0; color: var(--muted); font-size: 14px; }
.toc a:hover { color: var(--accent-hover); }

.complaint-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.empty-state { padding: 44px; border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface-soft); }
.empty-state h2 { margin-bottom: 12px; font-size: 28px; }
.empty-state p { max-width: 620px; color: var(--muted); }
.form-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.form-card h2 { margin-bottom: 8px; font-size: 25px; }
.form-card > p { margin-bottom: 20px; color: var(--muted); font-size: 14px; }
.form-status { display: none; margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-strong); color: var(--fg-soft); font-size: 13px; }
.form-status.is-visible { display: block; }

.accordion { border-top: 1px solid var(--border-strong); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-button { width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border: 0; background: transparent; color: var(--fg); text-align: left; font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.accordion-button::after { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-strong); content: "+"; }
.accordion-button[aria-expanded="true"]::after { content: "−"; }
.accordion-panel { display: none; padding: 0 0 20px; color: var(--muted); }
.accordion-panel.is-open { display: block; }

.site-footer { margin-top: 48px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; padding: 38px 0; }
.footer-copy { max-width: 560px; color: var(--muted); font-size: 13px; }
.footer-nav { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 24px; font-size: 14px; }
.footer-nav a:hover { color: var(--accent-hover); }

@media (max-width: 1100px) {
  .school-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .rating-layout { grid-template-columns: 240px 1fr; }
  .rating-row { grid-template-columns: 62px 140px 1fr; }
  .rating-name { grid-column: 3; }
  .mini-meters { grid-column: 2 / -1; }
  .row-actions { grid-column: 2 / -1; grid-template-columns: 1fr auto; align-items: center; }
  .school-hero-card { grid-template-columns: 150px 1fr; }
  .score-panel { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
  .criteria-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .section { padding-block: 52px; }
  .site-nav { position: absolute; top: 72px; left: 16px; right: 16px; display: none; align-items: stretch; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding-inline: 14px; }
  .menu-toggle { display: block; }
  .hero-grid, .method-grid, .content-grid, .article-shell, .complaint-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .finder { max-width: 650px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-item + .overview-item { border-left: 0; border-top: 1px solid var(--border); }
  .method-note, .article-aside { position: static; }
  .method-grid { gap: 24px; }
  .content-grid { gap: 40px; }
  .rating-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; }
  .filters h2, .filters .filter-actions { grid-column: 1 / -1; }
  .school-hero-card { grid-template-columns: 130px 1fr; gap: 20px; }
  .school-hero-card .logo-frame { width: 130px; height: 84px; }
  .detail-grid { grid-template-columns: 1fr; }
  .facts { order: -1; }
  .article-aside { display: none; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .brand-note { display: none; }
  .hero-grid { gap: 34px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .section-head { align-items: start; flex-direction: column; }
  .school-grid, .category-grid { grid-template-columns: 1fr; }
  .school-card { min-height: 242px; }
  .compare-band { grid-template-columns: 1fr; padding: 26px; }
  .compare-band .btn { width: 100%; }
  .article-row { grid-template-columns: 1fr; gap: 8px; }
  .article-row .btn { justify-self: start; }
  .results-toolbar { align-items: stretch; flex-direction: column; }
  .results-toolbar .select { width: 100%; }
  .filters { grid-template-columns: 1fr; }
  .filters h2, .filters .filter-actions { grid-column: auto; }
  .rating-row { grid-template-columns: 56px 1fr; padding: 14px; }
  .rating-row .logo-frame { width: 112px; height: 52px; }
  .rating-name { grid-column: 2; }
  .mini-meters { grid-column: 1 / -1; overflow-x: auto; grid-template-columns: repeat(5, minmax(82px, 1fr)); padding-top: 12px; border-top: 1px solid var(--border); }
  .row-actions { grid-column: 1 / -1; }
  .rank-place { text-align: left; }
  .compare-tray { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .school-hero-card { grid-template-columns: 1fr; padding: 22px; }
  .school-hero-card .logo-frame { width: 148px; }
  .score-panel { align-items: flex-start; flex-direction: column; }
  .school-actions { width: 100%; justify-content: stretch; }
  .school-actions .btn { flex: 1; }
  .criteria-cards { grid-template-columns: repeat(2, 1fr); }
  .criteria-card:last-child { grid-column: 1 / -1; }
  .compare-picker { grid-template-columns: 1fr; }
  .compare-table-wrap { display: none; }
  .mobile-compare { display: grid; gap: 14px; margin-top: 20px; }
  .mobile-criterion { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
  .mobile-criterion h3 { grid-column: 1 / -1; font-size: 16px; }
  .mobile-criterion div { padding: 10px; border-radius: var(--radius-sm); background: var(--surface-soft); }
  .mobile-criterion strong { display: block; margin-top: 4px; font: 800 18px var(--font-mono); }
  .article-content h1 { font-size: 38px; }
  .article-body p { font-size: 17px; }
  .empty-state { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Laravel content and native form adapters for the approved OpenDesign tokens. */
:root { --card:var(--surface); --link:var(--accent-hover); --brand:var(--accent); }
[hidden] { display:none!important; }
main { min-height:60vh; }
.breadcrumb-wrap { padding-top:24px; }
.category-nav { display:grid; gap:10px; padding:24px 0; }
.category-nav a { padding:10px; border-bottom:1px solid var(--border); }
.category-nav a[aria-current] { color:var(--accent-hover); font-weight:750; }
fieldset { min-width:0; border:0; padding:0; margin:0; }
.rating-layout > *, .detail-grid > *, .complaint-grid > * { min-width:0; }
.rating-row { grid-template-columns:40px 110px minmax(110px,.8fr) minmax(180px,1.5fr) 116px; gap:12px; }
.rating-row .logo-frame { width:110px; }
.rating-row > div:nth-child(4) { min-width:0; }
.rating-row .btn { padding-inline:10px; }
.school-card { gap:14px; }
.school-card .row-actions { display:flex; flex-wrap:wrap; align-items:center; }
.school-card .rating-name { grid-column:auto; }
.school-card .rating-name h3 { margin:0 0 10px; }
.school-card .score { font-size:26px; }
.review-filters { display:flex; flex-wrap:wrap; gap:16px; align-items:end; margin:24px 0; }
.review-filters label { min-width:0; max-width:100%; }
.review-filters select { max-width:100%; }
.field { display:block; }
.field .input,.field .select { display:block; margin-top:6px; }
.honeypot { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.source-note { margin-block:20px; }
.review-card p { overflow-wrap:anywhere; white-space:pre-line; }
.review-highlight p { margin-block:20px; }
.prose a,.editorial-page a { color:var(--accent-hover); text-decoration:underline; text-underline-offset:3px; }
.prose h2,.prose h3 { margin-block:28px 16px; }
.prose img,.editorial-page img { max-width:100%; height:auto; }
.prose table,.editorial-page table { display:block; overflow-x:auto; max-width:100%; }
.prose,.editorial-page { overflow-wrap:anywhere; }
.editorial-page .list-grid { display:grid; grid-template-columns:260px minmax(0,1fr); gap:30px; }
.editorial-page .card { padding:24px; border:1px solid var(--border); background:var(--surface); border-radius:var(--radius-md); }
.editorial-page h1 { margin-bottom:24px; }
.editorial-page p { margin-block:16px; }
.editorial-page h2 { font-size:28px; }
.editorial-page .container { width:100%; }
.breadcrumbs ol { display:flex; flex-wrap:wrap; gap:12px; padding:0; margin:0; list-style:none; }
.breadcrumbs li+li::before { content:'/'; margin-right:12px; }
.pagination { list-style:none; display:flex; flex-wrap:wrap; gap:6px; padding:0; margin:28px 0; }
.page-link { display:block; padding:8px 13px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); }
.active .page-link { background:var(--accent); color:var(--accent-on); }
.disabled .page-link { color:var(--muted); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.compare-table { min-width:0; table-layout:fixed; }
.compare-table th,.compare-table td { overflow-wrap:anywhere; }
.compare-table-wrap:focus-visible { box-shadow:var(--focus); }
@media(max-width:1100px) {
 .rating-row { grid-template-columns:40px 110px minmax(0,1fr); }
 .rating-row > div:nth-child(4) { grid-column:1/-1; }
 .rating-row .row-actions { grid-column:1/-1; display:flex; flex-wrap:wrap; }
 .school-card .row-actions { grid-column:auto; }
}
@media(max-width:880px) { .editorial-page .list-grid { grid-template-columns:1fr; } }
@media(max-width:640px) {
 .rating-row { grid-template-columns:36px minmax(0,1fr); }
 .rating-row .mini-meters { grid-template-columns:repeat(5,minmax(0,1fr)); overflow:visible; gap:4px; }
 .mini-meter span { font-size:9px; overflow-wrap:anywhere; }
 .compare-table-wrap { display:block; }
 .compare-table { display:table; min-width:0; }
 .compare-table th,.compare-table td { padding:10px 6px; font-size:12px; }
 .compare-cell-score { font-size:17px; }
 .compare-school-head { flex-direction:column; gap:8px; align-items:start; }
 .compare-school-head .logo-frame { width:70px; height:42px; }
 .compare-picker { grid-template-columns:1fr; }
 .school-actions { flex-wrap:wrap; }
 .footer-grid { grid-template-columns:1fr; }
 .review-filters { display:grid; grid-template-columns:1fr; }
 .review-filters .select,.review-filters .input { width:100%; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { transition:none!important; } }

@media(max-width:880px) { html:not(.js) .header-inner { flex-wrap:wrap; } html:not(.js) .site-nav { display:flex; position:static; flex-wrap:wrap; margin:0 0 12px; box-shadow:none; } html:not(.js) .menu-toggle { display:none; } }
.mobile-school-name { display:none; }
.accordion-item summary { cursor:pointer; padding:20px 0; font-weight:700; font-size:18px; }
.accordion-item > p { padding-bottom:20px; color:var(--muted); }
.school-card .card-link:focus-visible { box-shadow:var(--focus); }
@media(max-width:640px) {
 .compare-table-wrap { border:0; border-radius:0; background:transparent; overflow:visible; }
 .compare-table { display:block; }
 .compare-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
 .compare-table tbody { display:grid; gap:14px; }
 .compare-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:8px; padding:16px; border:1px solid var(--border); border-radius:var(--radius-md); background:var(--surface); }
 .compare-table tbody th { grid-column:1/-1; width:auto; border:0; background:transparent; padding:0 0 4px; font-size:16px; color:var(--fg); }
 .compare-table tbody td { padding:10px; border:0; border-radius:var(--radius-sm); background:var(--surface-soft); font-size:14px; }
 .mobile-school-name { display:block; color:var(--muted); font:12px var(--font-body); margin-bottom:5px; }
}
@media(max-width:640px) {
 .compare-table tbody th:first-child { width:auto; background:transparent; }
}

.tab[aria-current="page"] { border-bottom-color:var(--accent); color:var(--fg); }
.complaint-grid { margin-top:28px; }
