:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #172033;
  --muted: #667085;
  --border: #e4e7ec;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --radius: 16px;
  --shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a { color: inherit; }

.site-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
}

main {
  padding: 42px 0 48px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 720px;
  margin: 14px 0 0;
  font-size: 1rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.section {
  margin-top: 42px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.card {
  display: flex;
  min-height: 158px;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.09);
}

.card.featured {
  grid-column: 1 / -1;
  min-height: 138px;
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.86rem;
}

.card h2,
.card h3 {
  margin: 14px 0 4px;
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

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

.link {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}

.units {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.unit {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.unit:nth-child(odd) {
  padding-right: 24px;
}

.unit:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.unit-index {
  color: var(--accent);
  font-weight: 800;
}

.unit h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.unit p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

footer {
  margin-top: 38px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 28px, 1080px);
  }

  .site-nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  main { padding-top: 32px; }

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

  .card.featured { grid-column: auto; }

  .unit:nth-child(odd),
  .unit:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}
