:root {
  color-scheme: light;
  --ink: #1c2330;
  --muted: #5c6678;
  --line: #dbe1ea;
  --surface: #ffffff;
  --background: #f5f7fa;
  --accent: #155eef;
  --accent-soft: #edf3ff;
}

* { box-sizing: border-box; }

html { background: var(--background); }

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

a { color: var(--accent); }
a:hover { color: #0b4cc7; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.header-inner,
.document,
.site-footer {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav { display: flex; gap: 18px; font-size: 0.93rem; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.document {
  margin-top: 40px;
  margin-bottom: 28px;
  padding: 42px clamp(24px, 6vw, 56px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(30, 44, 72, 0.06);
}

h1, h2 { color: #111827; line-height: 1.2; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 2.65rem); letter-spacing: -0.04em; }
h2 { margin: 38px 0 12px; font-size: 1.25rem; letter-spacing: -0.02em; }
p { margin: 0 0 18px; }
p.updated { color: var(--muted); margin-bottom: 34px; }
ul { margin: 0 0 18px; padding-left: 1.3rem; }
li + li { margin-top: 7px; }
.contact { margin-bottom: 0; }

.site-footer {
  padding: 8px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 560px) {
  .header-inner { min-height: auto; padding: 16px 0; align-items: flex-start; flex-direction: column; }
  .site-nav { gap: 14px; }
  .document { margin-top: 22px; padding: 30px 24px; border-radius: 12px; }
}
