:root {
  --bg: #f5f7fa;
  --panel: #ffffff;
  --text: #17202a;
  --muted: #647282;
  --line: #dbe3eb;
  --blue: #2563eb;
  --green: #16803c;
  --gold: #a06b12;
  --slate: #475569;
  --orange: #e8590c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 360px),
    var(--bg);
}

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

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: #17202a;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.service-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(15, 23, 42, .05);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: currentColor;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}

.icon-wrap {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, currentColor 12%, white);
}

.icon-wrap svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.card-body strong {
  font-size: 19px;
  line-height: 1.2;
}

.card-body span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.accent-blue { color: var(--blue); }
.accent-green { color: var(--green); }
.accent-gold { color: var(--gold); }
.accent-slate { color: var(--slate); }
.accent-orange { color: var(--orange); }

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 28px;
  }

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

  h1 {
    font-size: 28px;
  }

  .header-action {
    width: 100%;
  }

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

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