:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #5f6d7a;
  --line: #d8dee6;
  --surface: #f6f8fa;
  --accent: #146c94;
  --accent-strong: #0b4f6c;
}

* {
  box-sizing: border-box;
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: #ffffff;
}

body {
  margin: 0;
}

a {
  color: var(--accent-strong);
}

.site-header,
.site-footer {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.site-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
}

.wrap {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  color: var(--ink);
}

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

.links a {
  text-decoration: none;
  font-weight: 600;
}

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f9fbfc 0%, #ffffff 100%);
}

.hero h1,
.page h1 {
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  margin: 0 0 20px;
  max-width: 820px;
}

.lead {
  font-size: 20px;
  max-width: 760px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  background: #ffffff;
  color: var(--accent-strong);
  border: 1px solid var(--line);
}

.section,
.page {
  padding: 48px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: #ffffff;
}

.panel h2,
.panel h3,
.page h2 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

code,
pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

code {
  padding: 2px 5px;
}

pre {
  padding: 16px;
  overflow-x: auto;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

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

  .hero {
    padding: 48px 0 40px;
  }
}
