:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #14202e;
  --muted: #566476;
  --border: #dde3ea;
  --accent: #0d6bd9;
  --accent-strong: #0a4fa3;
  --route: #e8670f;
  --hero-from: #0d47a1;
  --hero-to: #40aae6;
  --radius: 14px;
  --max: 980px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141b;
    --surface: #161e28;
    --text: #e8eef5;
    --muted: #9aa8b8;
    --border: #263241;
    --accent: #5aa9ff;
    --accent-strong: #8cc4ff;
    --route: #ff8a3d;
    --hero-from: #0a2f6b;
    --hero-to: #1d6fa8;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-strong); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}
.brand img { width: 32px; height: 32px; }
.site-nav { display: flex; gap: 20px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--hero-from), var(--hero-to));
  color: #fff;
  padding: 64px 0 72px;
}
.hero .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero img { width: 160px; height: 160px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .25)); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 12px; }
.hero p { font-size: 1.2rem; margin: 0 0 20px; max-width: 34em; opacity: .95; }
.hero .copy { flex: 1 1 320px; }
.badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  font-weight: 600;
}

/* Page content */
main { padding: 48px 0 64px; }
.page-title { font-size: 2.2rem; margin: 0 0 8px; line-height: 1.2; }
.lede { color: var(--muted); font-size: 1.15rem; margin: 0 0 32px; }
h2 { font-size: 1.45rem; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.card .tag {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--route);
  margin-right: 8px;
}

.contact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.contact p { margin: 4px 0; }
.contact .email { font-size: 1.25rem; font-weight: 600; }

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 10px 0;
}
summary { cursor: pointer; font-weight: 600; }
details p, details ul, details ol { margin: 10px 0 0; color: var(--muted); }
details li { margin: 4px 0; }

.policy p, .policy li { color: var(--text); }
.policy ul { padding-left: 1.3em; }
.meta { color: var(--muted); font-size: .95rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .9rem;
  padding: 24px 0 40px;
}
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-footer a { color: var(--muted); }

.not-found { text-align: center; padding: 80px 0; }
.not-found img { width: 96px; height: 96px; }

@media (max-width: 560px) {
  .hero { padding: 40px 0 48px; text-align: center; }
  .hero .wrap { justify-content: center; }
  .hero img { width: 120px; height: 120px; }
  .site-nav { gap: 14px; }
}
