.gs-material-grid {
  background: rgba(var(--bg-c), 1);
  padding: 88px 0 96px;
}

.gs-material-grid__header {
  max-width: 920px;
  margin: 0 auto 50px;
  text-align: center;
}

.gs-material-grid__eyebrow {
  margin: 0 0 18px;
  color: rgba(var(--cl-f), 1);
  font: 700 14px/18px var(--font-family);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gs-material-grid__heading {
  margin: 0;
  color: rgba(var(--cl-d), 1);
  font: 800 clamp(36px, 3.6vw, 52px)/1.08 var(--font-family2);
  letter-spacing: -.025em;
}

.gs-material-grid__description {
  max-width: 820px;
  margin: 22px auto 0;
  color: rgba(var(--cl-d), 0.9);
  font: 400 20px/1.45 var(--font-family);
}

.gs-material-grid__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.gs-material-grid__card {
  color: inherit;
  text-decoration: none;
  display: flex;
  gap: 20px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid var(--br-a);
  border-radius: 24px;
  background: rgba(var(--bg-a), 1);
  box-shadow: 0 1px 0 rgba(var(--cl-d), 0.02);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

a.gs-material-grid__card:hover,
a.gs-material-grid__card:focus-visible {
  color: inherit;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--br-a), 0 8px 20px rgba(var(--cl-d), 0.12);
}

.gs-material-grid__visual {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(var(--bg-c), 1);
}

.gs-material-grid__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-material-grid__card-content {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
}

.gs-material-grid__card-main {
  flex: 1 1 auto;
}

.gs-material-grid__card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.gs-material-grid__card-title {
  margin: 0;
  color: rgba(var(--cl-d), 1);
  font: 700 20px/1.25 var(--font-family);
}

.gs-material-grid__badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(var(--bg-f), 1);
  color: rgba(var(--cl-a), 1);
  font: 700 12px/16px var(--font-family);
  white-space: nowrap;
}

.gs-material-grid__card-description {
  margin: 7px 0 0;
  color: rgba(var(--cl-d), 0.82);
  font: 400 16px/1.45 var(--font-family);
}

.gs-material-grid__card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
  margin-top: 14px;
}

.gs-material-grid__price,
.gs-material-grid__action-label {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: rgba(var(--cl-d), 0.82);
}

.gs-material-grid__action-label {
  color: rgba(var(--cl-f), 1);
  font: 600 14px/18px var(--font-family);
}

.gs-material-grid__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font: 400 13px/18px var(--font-family);
}

.gs-material-grid__price-value {
  color: rgba(var(--cl-d), 1);
  font: 800 17px/20px var(--font-family2);
}

.gs-material-grid__price-note {
  white-space: nowrap;
}

.gs-material-grid__card-arrow {
  flex: 0 0 auto;
  color: rgba(var(--cl-f), 1);
  display: inline-flex;
  width: 14px;
  height: 9px;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
}

@media (max-width: 1199px) {
  .gs-material-grid__heading {
    font-size: 42px;
  }

  .gs-material-grid__card {
    gap: 16px;
    padding: 16px;
  }

}

@media (max-width: 991px) {
  .gs-material-grid {
    padding: 72px 0 80px;
  }

  .gs-material-grid__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width < 768px) {
  .gs-material-grid {
    padding: 56px 0 64px;
  }

  .gs-material-grid__header {
    margin-bottom: 32px;
  }

  .gs-material-grid__heading {
    font-size: 34px;
  }

  .gs-material-grid__description {
    margin-top: 16px;
    font-size: 17px;
  }

  .gs-material-grid__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .gs-material-grid__card-content {
    overflow-wrap: anywhere;
  }

  .gs-material-grid__price {
    flex-wrap: wrap;
  }

  .gs-material-grid__badge,
  .gs-material-grid__price-note {
    white-space: normal;
  }
}

@media (max-width: 479px) {
  .gs-material-grid__card {
    gap: 14px;
  }

  .gs-material-grid__card-title {
    font-size: 18px;
  }

  .gs-material-grid__card-description,
  .gs-material-grid__price {
    font-size: 15px;
  }
}

/* T7 · image_style "illustration": a glass-type icon, whole, with no frame and no background (our icons are uploaded on
   white, so "multiply" lets the card's own colour show through the white) */
.gs-material-grid__card--illustration .gs-material-grid__visual {
  overflow: visible;
  border-radius: 0;
  background: none;
}

.gs-material-grid__card--illustration .gs-material-grid__visual img {
  object-fit: contain;
  mix-blend-mode: multiply;
}
