/* Equipment hub: /oborudovanie/ */

.gx-equip-hub {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 8px 32px;
}

.gx-equip-hub__title {
  margin: 0 0 28px;
  text-align: center;
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  font-size: clamp(1.5rem, 2vw + 1rem, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #043363;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gx-equip-hub__section {
  margin: 0 0 56px;
}

.gx-equip-hub__section:last-child {
  margin-bottom: 0;
}

.gx-equip-hub__cat {
  margin: 0 0 8px;
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  color: #e60000;
}

.gx-equip-hub__cat a {
  color: inherit;
  text-decoration: none;
}

.gx-equip-hub__cat a:hover {
  text-decoration: underline;
}

.gx-equip-hub__lead {
  margin: 0 0 20px;
  max-width: 42em;
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: #555;
}

.gx-equip-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 18px;
}

.gx-equip-hub__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gx-equip-hub__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(4, 51, 99, 0.08);
  text-decoration: none;
  color: inherit;
}

.gx-equip-hub__media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f3f3f3;
  border: 1px solid #ececec;
  box-sizing: border-box;
}

.gx-equip-hub__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gx-equip-hub__name {
  display: block;
  margin: 10px 0 0;
  padding: 0 2px;
  font-family: 'Montserrat', 'Roboto', 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #222;
  text-align: center;
  text-transform: none;
}

.gx-equip-hub__card:hover .gx-equip-hub__name {
  color: #e60000;
}

@media screen and (max-width: 1100px) {
  .gx-equip-hub__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 14px;
  }
}

@media screen and (max-width: 768px) {
  .gx-equip-hub {
    padding: 4px 16px 24px;
  }

  .gx-equip-hub__title {
    margin-bottom: 22px;
    text-align: left;
  }

  .gx-equip-hub__section {
    margin-bottom: 44px;
  }

  .gx-equip-hub__lead {
    margin-bottom: 16px;
  }

  .gx-equip-hub__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gx-equip-hub__name {
    text-align: left;
  }
}

/* Keep hub headings consistent with the site heading colour */
.gx-equip-hub__title,
.gx-equip-hub__cat,
.gx-equip-hub__cat a {
  color: #000;
}
