.list-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  row-gap: 25px;
  column-gap: 24px;
}

.list-categories .category-item {
  height: 128px;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.list-categories .category-item .category-name {
  position: relative;
  top: 18px;
  left: 18px;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  line-height: 31px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}

.list-categories .category-item .category-image-first-layer {
  position: absolute;
  transform: rotate(20deg);
  border-radius: 2px;
  width: 79px;
  height: 79px;
  bottom: -3px;
  right: -14px;
}

.list-categories .category-item .category-image-second-layer {
  position: absolute;
  transform: rotate(-15deg);
  border-radius: 2px;
  width: 91px;
  height: 75px;
  bottom: 15px;
  right: 15px;
}

@media screen and (max-width: 1500px) {
  .list-categories {
    grid-template-columns: repeat(4, 1fr);
  }
  .list-categories .category-item .category-name {
    font-size: 20px;
  }
}

@media screen and (max-width: 1100px) {
  .list-categories {
    grid-template-columns: repeat(3, 1fr);
  }
  .list-categories .category-item .category-name {
    font-size: 18px;
  }
}
