:root {
  --bg: #0b1316;
  --surface: #121d21;
  --line: #22323a;
  --text: #eef3f1;
  --muted: #9fb0ac;
  --accent: #35c7a0;
  --accent2: #f6be66;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8f7;
    --surface: #ffffff;
    --line: #dde5e2;
    --text: #0b1316;
    --muted: #4d5f5a;
    --accent: #1e9b7a;
    --accent2: #b9781a;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.top {
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav { display: flex; gap: 18px; white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

main { padding: 40px 0 64px; }

h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
ul { padding-left: 22px; }

.hero { text-align: center; padding: 32px 0 8px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; }
.hero h1 { font-size: 44px; margin-top: 18px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.card strong { display: block; margin-bottom: 4px; }
.card span { color: var(--muted); font-size: 15px; }

.note {
  background: var(--surface);
  border-left: 4px solid var(--accent2);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--muted); margin-right: 16px; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .hero h1 { font-size: 36px; }
  nav { gap: 12px; }
}
