:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #0f1d33;
  --muted: #56627a;
  --border: #e3e8f0;
  --navy: #173a6e;
  --accent: #10b981;
  --accent-ink: #ffffff;
  --soft: #eaf1fb;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1422;
    --surface: #121e31;
    --text: #e8eef7;
    --muted: #9aa8bd;
    --border: #22324a;
    --navy: #8fb4ec;
    --soft: #16263e;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--navy); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.bar { border-bottom: 1px solid var(--border); background: var(--surface); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; margin-left: 18px; }
nav a:hover { color: var(--text); }

.hero { padding: 64px 0 40px; text-align: center; }
.hero img { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 12px 32px rgba(23, 58, 110, .25); }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 24px 0 12px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink);
  padding: 13px 26px; border-radius: 12px; text-decoration: none; font-weight: 600;
}
.btn:hover { filter: brightness(1.05); }

section { padding: 32px 0; }
h2 { font-size: 24px; margin: 0 0 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.note { background: var(--soft); border-radius: 16px; padding: 20px 22px; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px clamp(18px, 4vw, 40px); margin: 32px 0; }
.doc h1 { margin-top: 0; font-size: clamp(26px, 5vw, 34px); }
.doc h2 { margin-top: 32px; font-size: 20px; color: var(--navy); }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.doc li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

footer { border-top: 1px solid var(--border); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 600px) {
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--border); padding: 10px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
  td:last-child { color: var(--muted); font-size: 14px; }
}
