:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #162033;
  --muted: #647086;
  --line: #dbe1ea;
  --link: #2563eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}

.icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, #527fb9, #1d4f91);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.brand-meta {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 14px;
}

.page {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
  box-shadow: 0 18px 40px rgba(22, 32, 51, .06);
}

h1 {
  margin: 0 0 20px;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 30px 0 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 19px;
  line-height: 1.35;
}

h2:first-of-type {
  margin-top: 20px;
}

p {
  margin: 12px 0;
}

ul {
  padding-left: 22px;
}

li {
  margin: 8px 0;
}

.footer {
  margin-top: 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 640px) {
  .shell {
    padding: 22px 14px 38px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .page {
    border-radius: 12px;
    padding: 24px 18px;
  }

  h1 {
    font-size: 28px;
  }
}
