:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #6b6a64;
  --line: #e6e4dd;
  --accent: #1f6f4a;
  --accent-soft: #e3f0e8;
  --shadow: 0 1px 2px rgba(20, 20, 15, .06), 0 4px 16px rgba(20, 20, 15, .06);
  --radius: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header-inner { max-width: 820px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 14px; height: 14px; }
.site-nav { display: flex; gap: 18px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 8px 20px 40px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--muted); }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.025em; margin: 14px 0 10px; }
h2 { font-size: 20px; letter-spacing: -.015em; margin: 36px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-top: 16px; }
.score-row { display: flex; align-items: center; gap: 18px; }
.badge { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 32px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.badge.sm { width: 36px; height: 36px; font-size: 15px; letter-spacing: -.02em; }
.score-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.score-title { font-weight: 600; font-size: 18px; }
.button { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 9px 14px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.button:hover { background: #185a3c; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.fact-value { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fact-label { color: var(--muted); font-size: 12px; }

.cat { padding: 12px 0; border-top: 1px solid var(--line); }
.cat:first-child { border-top: 0; padding-top: 0; }
.cat:last-child { padding-bottom: 0; }
.cat-head { display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.cat-name { font-weight: 500; flex: 1; }
.cat-points { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.bar { height: 4px; background: var(--line); border-radius: 2px; margin: 7px 0 0 18px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 2px; }
.cat-places { margin: 6px 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.cat-places li { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.pname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdist { color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.rank { color: var(--muted); width: 1%; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.score-pill { display: inline-block; min-width: 38px; text-align: center; padding: 2px 8px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }

.faq h3 { margin-top: 18px; }
.faq h3:first-child { margin-top: 0; }
.faq p { color: var(--text); }

.country-list { columns: 3 180px; column-gap: 24px; padding: 0; margin: 0; list-style: none; }
.country-list li { padding: 3px 0; break-inside: avoid; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer-inner { max-width: 820px; margin: 0 auto; padding: 18px 20px 28px; }
.site-footer a { color: inherit; }

@media (max-width: 640px) {
  h1 { font-size: 26px; }
  .site-nav { gap: 14px; }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hide-sm { display: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
