.related-projects {
  padding: 70px 6vw 78px;
  color: #171b1a;
  background: #e7eae9;
}

.related-projects__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}

.related-projects__head small {
  display: block;
  margin-bottom: 10px;
  color: #6f7572;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.related-projects__head h2 {
  margin: 0;
  font: 500 clamp(2rem, 3.2vw, 3.5rem) / 1 Manrope, sans-serif;
  letter-spacing: -0.045em;
}

.related-projects__head > a {
  display: none;
}

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

.related-projects__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-card {
  display: block;
  padding: 10px 10px 16px;
  background: #f7f8f7;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(23, 27, 26, 0.09);
}

.related-card__image {
  height: 210px;
  overflow: hidden;
  background: #252a29;
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.5s ease;
}

.related-card:hover img {
  transform: scale(1.035);
}

.related-card__title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 4px 0;
  font: 500 16px Manrope, sans-serif;
}

.related-card__title span:last-child {
  color: #d71920;
}

@media (max-width: 800px) {
  .related-projects__grid {
    grid-template-columns: 1fr;
  }

  .related-card__image {
    height: 280px;
  }
}

@media (max-width: 560px) {
  .related-projects {
    padding: 55px 6vw 62px;
  }

  .related-projects__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .related-card__image {
    height: 220px;
  }
}
