/* TutoringPlatforms.com — base styles (desktop + mobile) */

:root {
  --bg: #f7f7fb;
  --text: #1a1730;
  --muted: #645f7e;
  --line: #e3e0ef;
  --accent: #5b3df5;
  --accent-dark: #4226d6;
  --accent-soft: rgba(91, 61, 245, 0.10);
  --panel: #ffffff;
  --ok: #15803d;
  --ok-bg: #dcfce7;
  --warn: #b91c1c;
  --warn-bg: #fee2e2;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(26, 23, 48, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(91, 61, 245, 0.05), transparent 220px),
    var(--bg);
  line-height: 1.55;
}

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }

.wrap { width: min(1100px, 100%); margin: 0 auto; padding: 0 20px; }

.sr-only,
.skip-link {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto; clip: auto;
  background: #fff; color: var(--accent-dark);
  padding: 8px 12px; border-radius: 8px; z-index: 100;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 17px; font-weight: 800;
}
.brand__text span { color: var(--accent); }

.site-nav__list { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a {
  display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-weight: 600; font-size: 15px;
}
.site-nav__list a:hover { background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; }
.nav-toggle, .nav-toggle__btn { display: none; }
.brand { flex-shrink: 0; }
.site-nav { flex-shrink: 0; }

/* ---------- Header search + autocomplete ---------- */
.header-search { position: relative; flex: 1 1 240px; min-width: 0; max-width: 560px; margin: 0 auto; }
.header-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.header-search__input {
  width: 100%; height: 44px; padding: 0 14px 0 42px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font: inherit; font-size: 15px; color: var(--text); outline: none;
}
.header-search__input::placeholder { color: var(--muted); }
.header-search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.ac {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px rgba(26, 23, 48, 0.16); overflow: hidden;
  max-height: 70vh; overflow-y: auto;
}
.ac-group { padding: 6px 0; border-top: 1px solid var(--line); }
.ac-group:first-child { border-top: 0; }
.ac-group__label { padding: 8px 16px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ac-item { display: flex; align-items: center; gap: 11px; padding: 9px 16px; color: var(--text); }
.ac-item:hover, .ac-item.is-active { background: var(--accent-soft); text-decoration: none; }
.ac-item__icon { width: 24px; height: 24px; border-radius: 6px; background: #fff; flex-shrink: 0; }
.ac-item__glyph {
  width: 24px; height: 24px; border-radius: 6px; flex-shrink: 0;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--accent-soft); color: var(--accent-dark);
}
.ac-item__glyph--list { background: #fff7ed; color: #b45309; }
.ac-item__glyph--guide { background: #ecfeff; color: #0e7490; }
.ac-item__glyph--category { background: #eef2ff; color: #4338ca; }
.ac-item__text { min-width: 0; display: flex; flex-direction: column; }
.ac-item__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-item__sub { font-size: 12px; color: var(--muted); }
.ac-all { display: block; padding: 11px 16px; font-size: 14px; font-weight: 700; color: var(--accent-dark); background: #faf9fe; border-top: 1px solid var(--line); }
.ac-all:hover { background: var(--accent-soft); text-decoration: none; }

/* ---------- Buttons / chips / badges ---------- */
.btn {
  display: inline-block; padding: 11px 18px; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn--ghost { background: #fff; color: var(--accent-dark); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--accent-soft); }

.chip {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 600;
}
.chip--soft { background: #f1f0f7; color: var(--muted); }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; vertical-align: middle;
}
.badge.is-active { background: var(--ok-bg); color: var(--ok); }
.badge.is-closed { background: var(--warn-bg); color: var(--warn); }
.badge.is-merged, .badge.is-pivoted { background: #fef3c7; color: #92400e; }

/* ---------- Hero ---------- */
main.wrap { padding-top: 28px; padding-bottom: 64px; }
.eyebrow {
  color: var(--accent); font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 12px;
}
.hero { padding: 18px 0 8px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 32px; align-items: center; }
.hero__copy { min-width: 0; }
.hero__art { min-width: 0; }
.hero__art img { display: block; width: 100%; height: auto; max-width: 520px; margin-left: auto; }
.hero h1 { margin: 0; font-size: clamp(30px, 5.2vw, 52px); max-width: 760px; }
.hero__intro { margin: 18px 0 0; max-width: 640px; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); }
.hero__search { display: flex; gap: 10px; margin: 26px 0 0; max-width: 560px; }
.hero__search input {
  flex: 1; min-width: 0; height: 50px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff;
}
.hero__search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__search button { height: 50px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.hero__search button:hover { background: var(--accent-dark); }
.hero__stats { display: flex; gap: 22px; margin: 22px 0 0; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.hero__stats strong { color: var(--text); }

/* ---------- Type strip ---------- */
.type-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 8px; }
.type-strip a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--text);
  font-size: 14px; font-weight: 600;
}
.type-strip a:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.type-strip a span {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px;
}
.type-strip--inline { margin-top: 12px; }

/* ---------- Sections / grid / cards ---------- */
.section { margin: 40px 0 0; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__head h2 { margin: 0; font-size: 22px; }
.section__head h2 a { color: var(--text); }
.section__tagline { margin: 4px 0 0; color: var(--muted); font-size: 15px; max-width: 640px; }
.section__all { white-space: nowrap; font-weight: 700; font-size: 15px; }

.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: #c9c0f3; box-shadow: var(--shadow); transform: translateY(-2px); }
.card__main { display: flex; flex-direction: column; gap: 10px; padding: 16px; height: 100%; color: var(--text); }
.card__main:hover { text-decoration: none; }
.card__head { display: flex; align-items: center; gap: 10px; }
.card__icon { border-radius: 7px; flex-shrink: 0; background: #fff; }
.card__title { display: flex; flex-direction: column; min-width: 0; }
.card__name { font-weight: 700; font-size: 16px; }
.card__domain { color: var(--muted); font-size: 13px; }
.card__head .badge { margin-left: auto; }
.card__summary { color: var(--muted); font-size: 14px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; }

.grid--wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ---------- List / guide cards ---------- */
.card__kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.card__name--lg { font-size: 18px; line-height: 1.25; }
.card--list, .card--guide { background: var(--panel); }
.card--guide .card__main { gap: 8px; }
.card__date { color: var(--muted); font-size: 13px; margin-top: auto; }
.card__icons { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.card__icons img { border-radius: 5px; background: #fff; }
.card__icons-more {
  display: inline-grid; place-items: center; height: 26px; padding: 0 8px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 700;
}

/* ---------- Ranked list ---------- */
.ranked { list-style: none; counter-reset: rank; margin: 0; padding: 0; }
.ranked__item {
  display: grid; grid-template-columns: auto 40px 1fr auto; align-items: center; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.ranked__item:last-child { border-bottom: 0; }
.ranked__num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800;
}
.ranked__icon { border-radius: 9px; background: #fff; border: 1px solid var(--line); }
.ranked__body { min-width: 0; }
.ranked__name { margin: 0; font-size: 18px; }
.ranked__name a { color: var(--text); }
.ranked__summary { margin: 3px 0 6px; color: var(--muted); font-size: 14px; }
.ranked__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ranked__link { white-space: nowrap; font-weight: 700; font-size: 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }

/* ---------- Guide article ---------- */
.guide__head h1 { margin: 0; font-size: clamp(26px, 4.4vw, 38px); }
.guide__byline { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.guide__lead { font-size: 19px; color: #2b2745; margin: 18px 0 4px; }
.prose--article h2 { font-size: 21px; margin: 28px 0 10px; }
.prose--article p { margin: 0 0 14px; }
.prose--article ul { margin: 0 0 14px; padding-left: 20px; }
.prose--article li { margin: 6px 0; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.side-links li:last-child { border-bottom: 0; }

/* ---------- Breadcrumb / page head ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { color: var(--line); }
.breadcrumb span:last-child { color: var(--muted); }

.page-head { margin: 0 0 22px; }
.page-head h1 { margin: 0; font-size: clamp(26px, 4.4vw, 40px); }
.page-head__lead { margin: 10px 0 0; color: var(--muted); font-size: 18px; max-width: 680px; }
.page-head__count { margin: 8px 0 0; color: var(--muted); }

/* ---------- Filter bar / results ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.filterbar input[type=search] { flex: 1; min-width: 200px; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.filterbar select { height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.filterbar input:focus, .filterbar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filterbar button { height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }
.result-count { color: var(--muted); margin: 0 0 16px; }
.empty { color: var(--muted); }

/* ---------- Platform page ---------- */
.platform { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); }
.platform__head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.platform__icon { border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.platform__heading { flex: 1; min-width: 180px; }
.platform__heading h1 { margin: 0; font-size: clamp(24px, 4vw, 34px); }
.platform__domain { margin: 4px 0 0; color: var(--muted); }
.platform__head .btn { margin-left: auto; }
.platform__summary { margin: 20px 0 0; font-size: 19px; }
.prose { margin: 14px 0 0; color: #2b2745; }
.prose p { margin: 0 0 12px; }
.prose ul { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.platform h2 { font-size: 18px; margin: 28px 0 12px; }

.facts { margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts__row { display: grid; grid-template-columns: 180px 1fr; gap: 0; border-bottom: 1px solid var(--line); }
.facts__row:last-child { border-bottom: 0; }
.facts__row dt { padding: 12px 16px; background: #faf9fe; font-weight: 600; color: var(--muted); margin: 0; }
.facts__row dd { padding: 12px 16px; margin: 0; }

/* ---------- Platform two-column layout + sidebar ---------- */
.platform-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.platform-main { min-width: 0; }
.platform-aside { display: grid; gap: 16px; position: sticky; top: 84px; }

.btn--block { display: block; width: 100%; text-align: center; margin-top: 14px; }

.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.side-card--accent { background: var(--accent-soft); border-color: #d7cdfb; }
.side-card__title { font-size: 15px; margin: 0 0 12px; }
.side-card--accent p { margin: 0; color: #2b2745; }
.side-card__more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14px; }

.side-facts { margin: 0; display: grid; gap: 0; }
.side-facts > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.side-facts > div:last-child { border-bottom: 0; }
.side-facts dt { margin: 0; color: var(--muted); font-size: 13px; }
.side-facts dd { margin: 0; font-size: 14px; }

.side-compare { list-style: none; margin: 0; padding: 0; }
.side-compare li { border-bottom: 1px solid var(--line); }
.side-compare li:last-child { border-bottom: 0; }
.side-compare a { display: flex; align-items: center; gap: 9px; padding: 10px 0; color: var(--text); font-size: 14px; font-weight: 600; }
.side-compare a:hover { color: var(--accent-dark); text-decoration: none; }
.side-compare img { border-radius: 5px; flex-shrink: 0; }

/* Illustrated sidebar CTA */
.side-cta { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.side-cta:hover { border-color: #c9c0f3; box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.side-cta img { display: block; width: 100%; height: auto; }
.side-cta__body { display: block; padding: 13px 16px 15px; }
.side-cta__body strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }
.side-cta__body span { color: var(--accent-dark); font-weight: 700; font-size: 14px; }

/* ---------- Pros & cons / features ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.proscons__col { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.proscons__pros { background: #f0fdf4; border-color: #bbf7d0; }
.proscons__cons { background: #fef5f5; border-color: #fecdd3; }
.proscons__col h3 { margin: 0 0 8px; font-size: 15px; }
.proscons__col ul { margin: 0; padding-left: 18px; }
.proscons__col li { margin: 6px 0; font-size: 14px; }

ul.features { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
ul.features li { position: relative; padding-left: 24px; font-size: 15px; }
ul.features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

/* ---------- Related ---------- */
.related { margin: 40px 0 0; }
.related h2 { font-size: 20px; margin: 0 0 14px; }
.link-list { columns: 2; gap: 24px; list-style: none; margin: 0; padding: 0; }
.link-list li { margin: 0 0 8px; break-inside: avoid; }

/* ---------- Compare ---------- */
.compare-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 24px; }
.compare-picker select { height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; min-width: 220px; }
.compare-picker__vs { color: var(--muted); font-weight: 700; }
.compare-picker button { height: 46px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 700; cursor: pointer; }

.compare-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare-table thead th { background: #faf9fe; font-size: 16px; }
.compare-table thead th a { color: var(--text); }
.compare-table__domain { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.compare-table tbody th { background: #faf9fe; font-weight: 600; color: var(--muted); width: 160px; }
.compare-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }

/* ---------- Compare hub ---------- */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.vs-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  padding: 18px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.vs-card:hover { border-color: #c9c0f3; box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.vs-card__pair { display: inline-flex; align-items: center; gap: 10px; }
.vs-card__pair img { border-radius: 7px; background: #fff; border: 1px solid var(--line); }
.vs-card__vs { font-size: 12px; font-weight: 800; color: var(--muted); }
.vs-card__names { font-weight: 700; font-size: 15px; }
.vs-card__names em { font-style: normal; color: var(--muted); font-weight: 600; }
.vs-card__cat { font-size: 12px; color: var(--muted); }

.cmp-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cmp-cat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.cmp-cat h3 { margin: 0 0 8px; font-size: 15px; }
.cmp-cat h3 a { color: var(--text); }
.cmp-cat ul { list-style: none; margin: 0; padding: 0; }
.cmp-cat li { margin: 5px 0; font-size: 14px; }

.cmp-dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cmp-dim { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cmp-dim strong { display: block; margin-bottom: 4px; }
.cmp-dim p { margin: 0; color: var(--muted); font-size: 14px; }

.faq__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 0; }
.faq__q { margin: 0 0 6px; font-size: 17px; }
.faq__a { margin: 0; color: #2b2745; max-width: 760px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; margin-top: 56px; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; padding: 40px 20px 28px; }
.site-footer__brand p { color: var(--muted); font-size: 14px; max-width: 320px; margin: 12px 0 0; }
.site-footer__col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 12px; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin: 0 0 8px; }
.site-footer__col a { color: var(--text); font-size: 14px; }
.site-footer__legal { color: var(--muted); font-size: 13px; padding: 0 20px 32px; border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .platform-layout { grid-template-columns: 1fr; }
  .platform-aside { position: static; order: 2; }
}

@media (max-width: 760px) {
  .proscons { grid-template-columns: 1fr; }
  ul.features { grid-template-columns: 1fr; }
  .ranked__item { grid-template-columns: auto 1fr; }
  .ranked__icon { display: none; }
  .ranked__link { grid-column: 1 / -1; justify-self: start; }
  .site-nav { margin-left: auto; }
  .site-nav .nav-toggle__btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 40px; cursor: pointer; padding: 0 10px;
  }
  .nav-toggle__btn span { display: block; height: 2px; background: var(--text); border-radius: 2px; }
  .site-nav__list {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px; display: none;
  }
  .nav-toggle:checked ~ .site-nav__list { display: flex; }
  .site-nav__list a { display: block; padding: 12px; }
  /* search drops to its own full-width row below brand + nav */
  .header-search { order: 3; flex: 1 1 100%; max-width: none; margin: 2px 0 10px; }

  .hero { grid-template-columns: 1fr; gap: 14px; }
  .hero__art { display: none; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .facts__row { grid-template-columns: 1fr; }
  .facts__row dt { padding-bottom: 2px; }
  .facts__row dd { padding-top: 4px; }
  .link-list { columns: 1; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 22px; }
  .platform__head .btn { margin-left: 0; width: 100%; text-align: center; }
}
