:root {
  --blue: #106cc7;
  --yellow: #ffc536;
  --ink: #111827;
  --muted: #667085;
  --line: #dfe5ee;
  --paper: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: var(--blue);
  font-weight: 800;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(16, 108, 199, 0.13), transparent 38%),
    linear-gradient(320deg, rgba(255, 197, 54, 0.18), transparent 32%),
    var(--paper);
}

.doc-header {
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.doc-header-inner,
.doc-main,
.doc-footer-inner {
  width: min(900px, calc(100% - 32px));
  margin: 0 auto;
}

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-mark img {
  width: auto;
  height: 38px;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 10px 24px rgba(16, 108, 199, 0.2);
}

.home-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(17, 24, 39, 0.12);
}

.doc-main {
  padding: 52px 0 64px;
}

.hero-label {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 12px;
  max-width: 760px;
  font-size: clamp(44px, 8vw, 78px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 650;
}

.doc-list {
  display: grid;
  gap: 14px;
  margin-top: 38px;
}

.doc-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.07);
}

.doc-card:nth-child(3n + 1) .number {
  background: #fff4cc;
}

.doc-card:nth-child(3n + 2) .number {
  background: #eaf3ff;
}

.doc-card:nth-child(3n) .number {
  background: #e9fbf0;
}

.number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(17, 24, 39, 0.12);
}

.doc-card h2 {
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.08;
  font-weight: 900;
}

.doc-card p,
.doc-card li {
  margin-top: 10px;
  color: #475467;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 560;
}

.doc-card ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
}

.credit-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 16px 18px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.credit-link span:last-child {
  color: var(--blue);
}

.closing-note,
.updated {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.doc-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 26px 0;
}

.doc-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .doc-header-inner {
    min-height: 68px;
  }

  .home-link {
    display: none;
  }

  .doc-main {
    padding-top: 38px;
  }

  .doc-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

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