:root {
  color-scheme: light;
  --bg: #eef1f4;
  --ink: #17212b;
  --muted: #5a6673;
  --panel: #ffffff;
  --panel-soft: #f7f9fb;
  --line: #d6dde4;
  --accent: #176d7a;
  --accent-strong: #0f4f5b;
  --signal: #c9462c;
  --shadow: 0 18px 40px rgba(32, 43, 54, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(23, 109, 122, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(201, 70, 44, 0.08), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.masthead {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 7vw, 64px);
  line-height: 0.96;
  letter-spacing: 0;
}

.summary {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.section {
  padding: 28px 0 6px;
}

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

.section-header h2 {
  font-size: 22px;
}

.section-header span {
  color: var(--muted);
  font-size: 14px;
}

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

.service-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card {
  display: grid;
  min-height: 172px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 22px 46px rgba(32, 43, 54, 0.16);
  outline: none;
}

.service-card.primary {
  background: linear-gradient(145deg, var(--accent-strong), var(--accent));
  color: #ffffff;
  border-color: transparent;
}

.service-kicker {
  align-self: start;
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.primary .service-kicker {
  color: #f5c1b7;
}

.service-card strong {
  align-self: end;
  display: block;
  margin-top: 46px;
  font-size: 20px;
  line-height: 1.15;
}

.service-card span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.primary span:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.link-list a {
  min-height: 56px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover,
.link-list a:focus-visible {
  border-color: var(--accent);
  background: #ffffff;
  outline: none;
}

@media (max-width: 860px) {
  .service-grid,
  .link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 24px, 1120px);
    padding-top: 22px;
  }

  .service-grid,
  .service-grid.compact,
  .link-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 136px;
  }

  .service-card strong {
    margin-top: 28px;
  }
}
