.categories {
  max-width: 900px;
  margin: 0 auto;
}

.categories-list {
  display: flex;
  flex-wrap: wrap;
  padding: 50px 0;

  &__item {
    width: calc(100% / 3 - 15px);
    margin: 0 7.5px;
    box-sizing: border-box;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    cursor: pointer;

    img {
      flex-grow: 1;
      margin-bottom: 0;
    }
  }

  &__title {
    text-align: center;
    box-sizing: border-box;
    padding: 20px 20px 0 20px;
    width: 100%;
    display: block;
    font-size: 20px;
    font-weight: bold;
  }
}

@media screen and (max-width: 768px) {
  .categories-list {

    &__item {
      width: calc(50% - 15px);
    }
  }
}

@media screen and (max-width: 460px) {
  .categories-list {

    &__item {
      width: 90%;
      margin: 0 5% 30px;
    }
  }
}