.gd-home-section {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
  padding-block: clamp(35px, 5vw, 68px);
}
.gd-home-section > h2 {
  margin: 0 0 clamp(24px, 3vw, 38px);
  font-size: clamp(27px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.18;
  text-align: center;
  text-transform: uppercase;
  color: #303030;
}
.gd-home-service-grid, .gd-home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: clamp(12px, 1.55vw, 22px);
}
.gd-home-service-card, .gd-home-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  color: #152b44;
  border: 1px solid #dce1e5;
  text-decoration: none;
}
.gd-home-service-card:hover, .gd-home-product-card:hover {
  color: #9f3606;
  border-color: #aebbc9;
}
.gd-home-service-media, .gd-home-product-media {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  width: 100%;
  overflow: hidden;
  background: #f4f5f6;
}
.gd-home-service-media { aspect-ratio: 3 / 2; }
.gd-home-product-media { aspect-ratio: 1; }
.main .gd-home-service-media img, .main .gd-home-product-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}
.main .gd-home-product-media img, .main .gd-home-service-card:nth-child(3) img { object-fit: contain; }
.gd-home-service-card h3, .gd-home-product-title {
  display: grid;
  flex: 1 0 auto;
  align-items: center;
  min-height: 3.7em;
  margin: 0;
  padding: 8px 10px;
  text-align: center;
  font-size: clamp(14px, 1.35vw, 17px);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gd-home-service-copy {
  flex: 1;
  padding: 16px 12px 20px;
  text-align: center;
}
.gd-home-service-copy h3 {
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0 0 8px;
  font-weight: 600;
}
.gd-home-service-copy p {
  margin: 0;
  color: #536171;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.gd-home-product-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-block-end: 26px;
}
.gd-home-product-categories a {
  border: 1px solid #c9d2dc;
  border-radius: 24px;
  padding: 7px 14px;
  color: #17375f;
  text-align: center;
  text-decoration: none;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.gd-home-product-categories a:hover { border-color: #17375f; background: #edf3fa; }
.gd-home-product-categories .gd-home-all-products { border-color: #17375f; background: #17375f; color: #fff; }
.gd-home-product-categories .gd-home-all-products:hover { background: #264d79; }
.gd-home-capabilities {
  padding: clamp(38px, 5vw, 74px) 16px;
  background: #204269;
  color: #fff;
  text-align: center;
}
.gd-home-capability-panels {
  display: grid;
  align-items: center;
  width: min(100%, 950px);
  min-height: clamp(130px, 14vw, 198px);
  margin-inline: auto;
}
.gd-home-capability-panel { grid-area: 1 / 1; width: 100%; margin: 0; }
.gd-home-capability-panel[hidden] { display: block !important; visibility: hidden; }
.gd-home-capability-panel h2, .gd-home-capability-panel p {
  color: #fff;
  text-align: center;
  line-height: 1.5;
}
.gd-home-capability-panel h2 { margin: 0 0 12px; font-size: clamp(20px, 2.2vw, 30px); font-weight: 600; }
.gd-home-capability-panel p { margin: 0; font-size: clamp(15px, 1.7vw, 21px); }
.gd-home-capability-panel .gd-home-capability-kicker { margin: 0 0 7px; font-size: 15px; }
.gd-home-capability-controls { display: flex; justify-content: center; margin-top: 14px; }
.gd-home-capability-controls[hidden] { display: none; }
.gd-home-capability-controls button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gd-home-capability-controls button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff65;
}
.gd-home-capability-controls button[aria-pressed="true"]::before { background: #fff; }
.gd-home-capability-controls button:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
@media (max-width: 820px) {
  .gd-home-service-grid, .gd-home-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
