:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #1b1f27;
  --muted: #5b6472;
  --line: #e3e7ed;
  --brand: #1f3a5f;
  --accent: #f5c84c;
  --radius: 10px;
  --max: 1100px;
  font-size: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; color: var(--brand); margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.4rem; margin-top: 2rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; color: var(--brand); font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; }
.nav a { margin-left: 18px; text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover, .nav a[aria-current] { color: var(--brand); }
main { padding: 32px 0 56px; }
.hero { background: linear-gradient(135deg, var(--brand), #2d5a8e); color: #fff; padding: 56px 0; margin: -32px 0 32px; }
.hero h1, .hero p { color: #fff; }
.hero p { max-width: 640px; font-size: 1.1rem; opacity: .92; }
.btn { display: inline-block; background: var(--accent); color: var(--text); font-weight: 600; padding: 10px 20px; border-radius: 999px; text-decoration: none; }
.breadcrumbs { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s; }
.card:hover { box-shadow: 0 6px 20px rgba(31,58,95,.12); }
.card img { width: 120px; height: 120px; object-fit: contain; align-self: center; }
.card h3 { margin: 0; }
.card .num { color: var(--muted); font-size: .85rem; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: #eef2f7; color: var(--brand); }
.entry-head { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
@media (min-width: 720px) { .entry-head { grid-template-columns: 280px 1fr; } }
.entry-head img { width: 100%; max-width: 280px; margin: 0 auto; display: block; }
.entry-head .lead { font-size: 1.05rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--bg); border-radius: 8px; padding: 10px 12px; font-size: .9rem; }
.facts strong { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.article h2:first-child { margin-top: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.bar { height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--brand); }
.evo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.evo .arrow { color: var(--muted); font-size: .85rem; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.pager a { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; text-decoration: none; }
.pager a.next { text-align: right; }
.pager small { display: block; color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.search { display: flex; gap: 8px; margin: 0 0 20px; }
.search input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.search button { padding: 10px 18px; border: 0; border-radius: 8px; background: var(--brand); color: #fff; font: inherit; cursor: pointer; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: var(--muted); margin-right: 14px; }
.prose { max-width: 760px; }
