:root {
  color-scheme: light dark;
  --background: #f3f6fb;
  --surface: #ffffff;
  --ink: #12233f;
  --muted: #4a5c73;
  --line: #d7e0eb;
  --brand: #0d2a66;
  --brand-2: #0b756e;
  --soft: #edf4fb;
  --warning: #fff5df;
  --warning-line: #b26a00;
  --link: #075fc8;
}

* { box-sizing: border-box; }

html { max-width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 24px 16px 72px;
  background: var(--background);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

a { color: var(--link); }
a:focus-visible { outline: 3px solid #38a99d; outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface);
}
.skip-link:focus { top: 12px; }

.site-nav,
main,
footer {
  width: 100%;
  max-width: 840px;
  min-width: 0;
  margin-inline: auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

main {
  overflow: hidden;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgb(13 42 102 / 8%);
}

.brand {
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.brand img { display: block; width: min(100%, 250px); height: auto; margin-inline: auto; border-radius: 18px; }
.brand p { margin: 6px 0 12px; color: var(--muted); }

.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.social {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #08665f, #0d2a66);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.social:visited { color: #fff; }

h1, h2, h3 { color: var(--brand); line-height: 1.2; }
h1 { margin: 0 0 8px; font-size: clamp(28px, 6vw, 38px); }
h2 { margin: 36px 0 10px; font-size: 22px; scroll-margin-top: 18px; }
h3 { margin: 24px 0 8px; font-size: 18px; }
p { margin: 10px 0; }
li { margin: 7px 0; }
p, li, td { overflow-wrap: anywhere; }
.meta { margin-bottom: 26px; color: var(--muted); font-size: 14px; }

.notice,
.warning {
  margin: 18px 0;
  padding: 15px 17px;
  border-radius: 12px;
  background: var(--soft);
  border-inline-start: 4px solid var(--brand-2);
}

.warning {
  background: var(--warning);
  border-inline-start-color: var(--warning-line);
}

.table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; margin: 14px 0; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
th { background: var(--soft); color: var(--brand); }

.contact-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

footer { padding: 20px 8px 0; color: var(--muted); text-align: center; font-size: 13px; }

@media (max-width: 520px) {
  body { padding-inline: 10px; }
  main { border-radius: 16px; }
  .site-nav a { min-width: 0; flex: 1 1 120px; justify-content: center; text-align: center; }
  .socials { align-items: stretch; }
  .social { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #07111f;
    --surface: #101c2d;
    --ink: #eef5ff;
    --muted: #b3c2d6;
    --line: #304056;
    --brand: #98bfff;
    --brand-2: #65d7ca;
    --soft: #18283d;
    --warning: #352912;
    --warning-line: #ffbd52;
    --link: #8fc5ff;
  }
  .site-nav a[aria-current="page"] { background: #dce9ff; border-color: #dce9ff; color: #0d2a66; }
  main { box-shadow: none; }
}

