:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --text: #1c2430;
  --muted: #5a6575;
  --line: #e1e6ed;
  --accent: #1f4e8c;
  --accent-dark: #163a69;
  --max: 960px;
}

* { box-sizing: border-box; }

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

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

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

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

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  color: var(--text);
  text-decoration: none;
}

nav.site a {
  margin-right: 20px;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
nav.site a:last-child { margin-right: 0; }
nav.site a:hover { color: var(--accent); }

.hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0;
  max-width: 680px;
  font-size: 19px;
  color: var(--muted);
}

section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h2 {
  margin: 0 0 20px;
  font-size: 26px;
  line-height: 1.3;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.4;
}

p { margin: 0 0 16px; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--bg);
}

.card p { margin: 0; color: var(--muted); font-size: 16px; }

.tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

ul.plain { margin: 0 0 16px; padding-left: 22px; }
ul.plain li { margin-bottom: 6px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.button:hover { background: var(--accent-dark); color: #fff; }

dl.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
dl.facts dt,
dl.facts dd {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
dl.facts dt { background: var(--bg-soft); font-weight: 600; font-size: 15px; }
dl.facts dt:nth-last-of-type(1),
dl.facts dd:last-of-type { border-bottom: 0; }

.page-title { padding-top: 48px; padding-bottom: 8px; }
.page-title h1 { margin: 0 0 8px; font-size: 34px; line-height: 1.25; }
.page-title p { color: var(--muted); }

article.doc { padding-bottom: 56px; }
article.doc h2 { margin-top: 36px; font-size: 22px; }

footer.site {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
footer.site p { margin: 0 0 6px; }
footer.site .links a { margin-right: 16px; white-space: nowrap; display: inline-block; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 44px 0 40px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 17px; }
  section { padding: 40px 0; }
  h2 { font-size: 23px; }
  .grid { grid-template-columns: 1fr; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 4px; }
  dl.facts dd { padding-top: 0; }
  dl.facts dd, dl.facts dt { overflow-wrap: anywhere; }
  .page-title h1 { font-size: 28px; }
}
