:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #111827;
  --ink-2: #475569;
  --ink-3: #64748b;
  --accent: #166534;
  --accent-hover: #14532d;
  --accent-soft: #f0fdf4;
  --accent-tint: #dcfce7;
  --accent-line: #bbf7d0;
  --focus: rgba(22, 101, 52, 0.2);
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --bad-line: #fecaca;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.375rem;

  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --wrap: 1160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-base)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 150ms var(--ease); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: var(--fs-md); letter-spacing: -0.01em; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark-bg { fill: var(--accent-tint); }
.brand-mark-tent { fill: var(--accent); }
.brand-mark-door { fill: var(--accent-tint); }
.brand-mark-pole { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 500; }
.nav a:hover { color: var(--ink); background: var(--surface); }
.nav .nav-cta { color: var(--ink); border: 1px solid var(--line-strong); margin-left: 4px; min-height: 40px; }
.nav .nav-cta:hover { border-color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md); border: 1px solid transparent;
  font: 600 var(--fs-sm)/1.2 var(--font); text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1f2937; color: #fff; }
.btn-primary:active { background: #000; }
.btn-secondary { background: var(--bg); border-color: var(--line-strong); color: var(--ink); }
.btn-secondary:hover { background: var(--surface); border-color: var(--ink-3); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-quiet:hover { color: var(--ink); background: var(--surface); }
.btn-danger { background: var(--bg); border-color: var(--line-strong); color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: var(--fs-xs); }
.btn-block { width: 100%; }

.hero { padding: 72px 0 40px; }
.hero-title { font-size: var(--fs-3xl); letter-spacing: -0.03em; max-width: 20ch; }
.hero-sub { margin-top: 16px; font-size: var(--fs-lg); color: var(--ink-2); max-width: 58ch; }
.hero-meta { margin-top: 16px; font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }

.section { padding: 48px 0; }
.section-first { padding-top: 16px; }
.section-list { padding: 24px 0 48px; }
.section-tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: var(--fs-xl); margin-bottom: 20px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head .section-title { margin-bottom: 0; }
.link-more { font-size: var(--fs-sm); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.link-more:hover { text-decoration: underline; }

.cat-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex; align-items: center; gap: 16px; height: 100%; min-height: 76px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); text-decoration: none;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}
.cat-card:hover { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.cat-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); }
.icon { width: 24px; height: 24px; }
.cat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-name { font-weight: 600; font-size: var(--fs-base); }
.cat-short { font-size: var(--fs-sm); color: var(--ink-3); }
.cat-count { margin-left: auto; flex: none; font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }

.guide-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); text-decoration: none; transition: border-color 150ms var(--ease); }
.guide-link:hover { border-color: var(--line-strong); color: var(--ink); }
.guide-link:hover .guide-title { color: var(--accent); }
.guide-title { font-weight: 600; font-size: var(--fs-md); line-height: 1.35; transition: color 150ms var(--ease); }
.guide-desc { font-size: var(--fs-sm); color: var(--ink-2); }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cta-title { font-size: var(--fs-xl); }
.cta-text p { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.cta .btn { flex: none; }

.page-head { padding: 32px 0 8px; }
.page-head-center { padding: 72px 0 24px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 16px; font-size: var(--fs-sm); color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs-sep { color: var(--line-strong); }
.page-title { font-size: var(--fs-2xl); letter-spacing: -0.025em; max-width: 28ch; }
.page-title-article { max-width: 30ch; }
.page-meta { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.page-lead { margin-top: 12px; font-size: var(--fs-lg); color: var(--ink-2); max-width: 64ch; }
.intro { margin-top: 16px; }

.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.aside-block { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.aside-cta { background: var(--surface); }
.aside-cta p:not(.aside-title) { font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 16px; }
.aside-title { font-size: var(--fs-sm); font-weight: 650; color: var(--ink); margin-bottom: 10px; }
.aside-links { list-style: none; display: grid; gap: 4px; }
.aside-links a { display: block; padding: 6px 0; font-size: var(--fs-sm); line-height: 1.4; text-decoration: none; }
.aside-links a:hover { text-decoration: underline; }

.company-list { list-style: none; border-top: 1px solid var(--line); }
.company { padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px; }
.company-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.company-icon { width: 32px; height: 32px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg); object-fit: contain; }
.company-icon-letter { display: grid; place-items: center; background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); font-weight: 700; font-size: var(--fs-sm); line-height: 1; }
.company-icon-lg { width: 48px; height: 48px; border-radius: var(--r-md); font-size: var(--fs-lg); }
.company-title { min-width: 0; }
.company-name { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.company-meta { margin-top: 2px; font-size: var(--fs-sm); color: var(--ink-3); }
.company-body { padding-left: 48px; }
.company-summary { margin-top: 8px; color: var(--ink-2); max-width: 72ch; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tags li { font-size: var(--fs-xs); line-height: 1.4; padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.company-price { margin-top: 10px; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.company-phone { margin-top: 8px; font-size: var(--fs-sm); font-weight: 600; }
.company-phone a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.company-phone a:hover { color: var(--accent); }
.company-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 4px; }
.company-more { flex: 0 1 auto; }
.company-more[open] { flex-basis: 100%; }
.company-more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; color: var(--accent); cursor: pointer; list-style: none; }
.company-more summary::-webkit-details-marker { display: none; }
.company-more summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 150ms var(--ease); }
.company-more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.company-more summary:hover { color: var(--accent-hover); }
.company-desc { padding: 4px 0 8px; max-width: 72ch; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.company-desc p + p { margin-top: 8px; }
.company-own { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-xs); color: var(--ink-3); }
.company-own:hover { color: var(--ink); }
.company-go { white-space: nowrap; }
.ad-mark { font-size: var(--fs-xs); color: var(--ink-3); }
.company-foot .ad-mark { display: inline-block; padding: 12px 0; line-height: 20px; }

.partner { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line-strong); border-radius: var(--r-lg); background: var(--surface); }
.partner-head { display: flex; align-items: center; gap: 16px; }
.partner-kicker { font-size: var(--fs-xs); font-weight: 650; color: var(--accent); margin-bottom: 2px; }
.partner-name { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.partner-text { margin-top: 14px; color: var(--ink-2); max-width: 72ch; white-space: pre-line; }
.partner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.partner-phone { font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.partner-phone:hover { color: var(--accent); }
.partner .ad-mark { margin-top: 12px; }
.partner-compact { margin: 0; padding: 20px; background: var(--bg); }
.partner-compact .partner-name { font-size: var(--fs-lg); }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }

.empty { padding: 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: var(--surface); color: var(--ink-2); }

.prose { max-width: 72ch; color: var(--ink); }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: var(--fs-xl); margin-top: 40px; scroll-margin-top: 24px; }
.prose h3 { font-size: var(--fs-lg); margin-top: 28px; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose li { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose strong { font-weight: 650; }
.prose .lead { font-size: var(--fs-lg); color: var(--ink-2); }
.intro p { color: var(--ink-2); font-size: var(--fs-md); }
.more { margin-top: 40px; padding-top: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface); font-weight: 600; }
.prose tbody tr:last-child td { border-bottom: 0; }

.layout-article { display: grid; grid-template-columns: minmax(0, 720px); gap: 48px; }
.layout-article.has-toc { grid-template-columns: 240px minmax(0, 720px); }
.toc-col { position: sticky; top: 24px; align-self: start; }
.toc { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.toc-narrow { display: none; }
.toc-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; }
.toc-title::-webkit-details-marker { display: none; }
.toc-title::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-2px) rotate(45deg); transition: transform 150ms var(--ease); }
.toc[open] .toc-title { margin-bottom: 10px; }
.toc[open] .toc-title::after { transform: translateY(1px) rotate(-135deg); }
.toc ol { list-style: none; display: grid; gap: 2px; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 6px 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); text-decoration: none; }
.toc a::before { content: counter(toc); color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc a:hover { color: var(--accent); }
.article { max-width: 720px; }

.topic-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.topic-link { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); text-decoration: none; font-weight: 600; }
.topic-link:hover { border-color: var(--line-strong); color: var(--accent); }
.topic-link .cat-icon { width: 40px; height: 40px; }

.audience { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.audience li { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.6; }
.audience strong { display: block; color: var(--ink); font-size: var(--fs-base); margin-bottom: 6px; font-weight: 600; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); }
.plan-accent { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.plan-title { font-size: var(--fs-lg); }
.plan-list { list-style: none; display: grid; gap: 10px; margin: 16px 0 24px; font-size: var(--fs-sm); color: var(--ink-2); }
.plan-list li { position: relative; padding-left: 22px; line-height: 1.5; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 5px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plans-note { margin-top: 16px; font-size: var(--fs-sm); color: var(--ink-3); }

.forms { display: grid; gap: 24px; max-width: 760px; }
.form-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); scroll-margin-top: 16px; }
.form-card:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.form-title { font-size: var(--fs-xl); }
.form-sub { margin: 8px 0 20px; color: var(--ink-2); max-width: 60ch; }
.form { display: grid; gap: 18px; }
.form .btn { justify-self: start; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-3); margin-left: 4px; }
input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--bg); color: var(--ink); font: 400 var(--fs-base)/1.4 var(--font);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
textarea { resize: vertical; min-height: 104px; }
select { appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
[aria-invalid="true"] { border-color: var(--bad) !important; }
.hint { font-size: var(--fs-xs); color: var(--ink-3); }
.field-error { font-size: var(--fs-sm); color: var(--bad); }
.field-check .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.alert { margin-bottom: 16px; padding: 12px 16px; border: 1px solid var(--bad-line); border-radius: var(--r-md); background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-inline { display: flex; gap: 8px; max-width: 26rem; margin-top: 24px; }
.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.footer { margin-top: 24px; padding: 48px 0 56px; border-top: 1px solid var(--line); background: var(--surface); font-size: var(--fs-sm); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { font-weight: 650; font-size: var(--fs-base); color: var(--ink); margin-bottom: 8px; }
.footer-about p:not(.footer-brand) { color: var(--ink-2); max-width: 42ch; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-title { font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.footer-col a { color: var(--ink-2); text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); text-decoration: underline; }

.admin .page-title { max-width: none; }
.admin-h { font-size: var(--fs-lg); margin: 40px 0 12px; scroll-margin-top: 16px; }
.admin-sub { font-size: var(--fs-sm); margin: 20px 0 8px; color: var(--ink-2); }
.admin-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.admin p { margin: 8px 0; }
.admin .table-wrap { border: 0; border-radius: 0; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.table th, .table td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.table thead th { color: var(--ink-3); font-weight: 600; }
.table-compact th, .table-compact td { padding: 5px 12px 5px 0; }
.admin-actions { white-space: nowrap; }
.admin-actions form { display: inline-flex; gap: 6px; margin: 0 4px 4px 0; }
.admin-hide input { min-height: 32px; width: 9rem; padding: 4px 8px; font-size: var(--fs-xs); }
.admin-message { max-width: 40ch; white-space: normal; }
.status { font-size: var(--fs-xs); font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.status-ok { color: var(--accent); background: var(--accent-soft); }
.status-bad { color: var(--bad); background: var(--bad-soft); }

@media (max-width: 960px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-article.has-toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc-col { position: static; }
  .toc-wide { display: none; }
  .toc-narrow { display: block; padding: 0 16px; }
  .toc-narrow .toc-title { min-height: 48px; }
  .toc-narrow[open] { padding-bottom: 12px; }
  .toc-narrow[open] .toc-title { margin-bottom: 0; }
  .plans, .audience { grid-template-columns: minmax(0, 1fr); }
  .plan .btn { align-self: stretch; }
  .admin-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .topbar-inner { min-height: 56px; gap: 8px; }
  .brand { font-size: var(--fs-base); gap: 8px; }
  .brand-mark { width: 28px; height: 28px; }
  .nav-hide-sm { display: none !important; }
  .nav a { padding: 0 10px; }
  .hero { padding: 40px 0 24px; }
  .hero-title { font-size: 1.75rem; }
  .hero-sub { font-size: var(--fs-base); }
  .page-head { padding: 20px 0 4px; }
  .page-head-center { padding: 48px 0 16px; }
  .page-title { font-size: 1.5rem; }
  .page-lead { font-size: var(--fs-base); }
  .section { padding: 36px 0; }
  .section-list { padding: 16px 0 36px; }
  .section-first { padding-top: 8px; }
  .cat-grid, .guide-list, .topic-links, .partner-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-card { padding: 12px 14px; min-height: 68px; gap: 12px; }
  .aside { grid-template-columns: minmax(0, 1fr); }
  .company-head { grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
  .company-go { grid-column: 1 / -1; justify-self: stretch; }
  .company-body { padding-left: 0; }
  .company .tags li:nth-child(n+5) { display: none; }
  .partner { padding: 20px 16px; }
  .partner-actions .btn { flex: 1 1 100%; }
  .cta { flex-direction: column; align-items: stretch; padding: 24px 20px; }
  .form-card { padding: 20px 16px; }
  .form .btn { justify-self: stretch; }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 16px; }
  .footer-about { grid-column: 1 / -1; }
  .form-inline { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
