.dpsg-species {
  padding: 64px 3.33vw 0;
  color: #fff;
}

.dpsg-species__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.dpsg-species__title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

.dpsg-species__all {
  flex: none;
  color: #f1ab11;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dpsg-species__all:hover,
.dpsg-species__all:focus {
  color: #ffc043;
  text-decoration: none;
}

.dpsg-species__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.dpsg-species__card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #14144a;
  color: #fff;
  text-decoration: none;
}

.dpsg-species__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dpsg-species__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 36, 0) 55%, rgba(0, 0, 36, 0.92) 100%);
}

.dpsg-species__label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dpsg-species h3.dpsg-species__name {
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

.dpsg-species__arrow {
  color: #f1ab11;
}

.dpsg-species__card:hover,
.dpsg-species__card:focus {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 991.98px) {
  .dpsg-species {
    padding: 40px 0 0;
  }

  .dpsg-species__head {
    align-items: baseline;
    gap: 12px;
    margin: 0 16px 16px;
  }

  .dpsg-species__title {
    font-size: 22px;
  }

  .dpsg-species__all {
    font-size: 13px;
    white-space: nowrap;
  }

  .dpsg-species__grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 0 16px 4px;
    scrollbar-width: none;
  }

  .dpsg-species__card {
    flex: none;
    width: 150px;
    border-radius: 14px;
  }

  .dpsg-species__label {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 15px;
  }
}
