:root {
  color-scheme: light dark;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #edf2f4;
  --text: #172126;
  --muted: #536269;
  --line: #d8e0e4;
  --accent: #176b5b;
  --accent-strong: #0f5145;
  --on-accent: #f7fffc;
  --radius: 14px;
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
}

.nav {
  width: min(calc(100% - 32px), var(--max));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  white-space: nowrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.hero {
  min-height: min(680px, calc(100dvh - 69px));
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding: 64px 0;
}

.hero h1,
.document h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero p {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 21px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  font-weight: 650;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease;
}

.button.primary {
  border-color: var(--accent);
  color: var(--on-accent);
  background: var(--accent);
}

.button:hover {
  border-color: var(--accent);
}

.button:active {
  transform: translateY(1px);
}

.hero-aside {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-aside h2 {
  margin: 0 0 16px;
  font-size: 21px;
}

.fact-list {
  margin: 0;
}

.fact-list div {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.fact-list dt {
  color: var(--muted);
  font-size: 14px;
}

.fact-list dd {
  margin: 3px 0 0;
  font-weight: 650;
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section > p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
}

.link-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.link-panel {
  min-height: 164px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.link-panel:nth-child(3),
.link-panel:nth-child(4) {
  min-height: 132px;
}

.link-panel strong {
  display: block;
  font-size: 20px;
}

.link-panel span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.link-panel:hover {
  border-color: var(--accent);
}

.document {
  max-width: 820px;
  padding: 64px 0 90px;
}

.document h1 {
  font-size: clamp(36px, 5.5vw, 58px);
}

.document .updated {
  margin: 18px 0 42px;
  color: var(--muted);
}

.document h2 {
  margin: 46px 0 14px;
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.document h3 {
  margin: 30px 0 10px;
  font-size: 19px;
}

.document p,
.document li {
  max-width: 75ch;
}

.document ul {
  padding-left: 22px;
}

.notice {
  margin: 30px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface-soft);
}

.table-wrap {
  margin: 34px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 14px;
  font-weight: 650;
}

tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 30px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.verification {
  margin-top: 12px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .nav {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
  }

  .nav-links {
    max-width: 220px;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 54px 0;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }

  .link-panel,
  .link-panel:nth-child(3),
  .link-panel:nth-child(4) {
    min-height: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111719;
    --surface: #182024;
    --surface-soft: #202b30;
    --text: #edf3f2;
    --muted: #aebcba;
    --line: #334247;
    --accent: #4cae98;
    --accent-strong: #75cbb7;
    --on-accent: #0b201b;
  }
}

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

  .button {
    transition: none;
  }
}
