.pk-categories-list ul {
  list-style: none;
  flex-wrap: wrap;
}
.pk-categories-list ul li {
  width: 25%;
}
.pk-categories-list ul li a:after {
  content: '';
  display: block;
  padding-bottom: 100%;
}
.pk-categories-list ul li .pkcl-wrap {
  display: block;
  margin-right: 30px;
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: cover;
  position: relative;
}
.pk-category-title {
  position: absolute;
  width: 80%;
  left: 10%;
  bottom: 40px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 30px;
  color: #333;
  text-align: center;
}

#index .home-categories__link {
  display: flex;
  justify-content: center;
}

.home-categories__link a {
  padding: 50px 0;
}

.home-categories__link span {
  font-family: Century Gothic;
  font-style: normal;
  font-weight: bold;
  font-size: 32px;
  line-height: 51px;
  border-bottom: 2px solid #000;
  padding-bottom: 7px;
}

.home-categories__middle {
  width: 100%;
  position: relative;
}

#index .home-categories__list {
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  padding: 1px 0 0 1px;
}

.home-categories__list-item {
  -ms-flex-preferred-size: auto;
  flex-basis: auto;
  width: calc(100% / 4);
}

.home-categories__list-link {
  display: block;
  box-sizing: border-box;
  position: relative;
}

.home-categories__list-img {
  display: block;
  width: 100%;
  height: auto;
}

 .home-categories__list-link:before{
  content: '';
  display: block;
  width: 100%;
  top: 0;
  height: 100%;
  z-index: 9999;
  position: absolute;
  background: rgba(0, 0, 0, 0.18);
  
  opacity: 0;
  transition: opacity .3s ease-in-out;
} 

.home-categories__list-link.visible:before{
  opacity: 1;
   
} 

.home-categories__list-title {
  position: absolute;
  bottom: 40px;
  z-index: 9999;
  width: 100%;
  text-align: center;
  font-family: Century Gothic;
  font-style: normal;
  font-weight: bold;
  font-size: 28px;
  line-height: 51px;

  text-transform: uppercase;
  color: #ffffff;

  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.home-categories__middle > ul > li:nth-child(5) {
  margin-left: calc(25% - 1px);
}
.home-categories__middle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 4vw;
  justify-content: center;
  position: absolute;
  bottom: 11vw;
  width: 25%;
  max-height: 115px;
}

.home-categories__middle-text span:nth-child(1) {
  font-family: Century Gothic;
  font-style: normal;
  font-weight: normal;
  font-size: 4.5vw;
  line-height: 51px;
  margin-bottom: 3vw;
  text-align: center;
  text-transform: uppercase;
}

.home-categories__middle-text span:nth-child(2) {
  font-family: Century Gothic;
  font-style: normal;
  font-weight: bold;
  font-size: 4.5vw;

  letter-spacing: 0;

 
  line-height: 51px;

  text-align: center;
  text-transform: uppercase;
}

.home-categories__middle-text span:nth-child(2):before {
  content: '';
  height: 4px;
  background: #000;
  width: 84px;
  display: block;
  z-index: 99999;
  position: absolute;
  bottom: -5vw;
  margin-left: 7px;
}

@media (max-width: 1199px) {
  .home-categories__list-title {
    font-size: 20px;
  }
}

@media (max-width: 991px) {
 

  .home-categories__middle-text span:nth-child(1) {
    margin-bottom: 0;
  }
  .home-categories__middle-text span:nth-child(2):before {
    bottom: -3vw;
    margin-left: 2px;
  }

  .home-categories__list-title {
    bottom: 13px;
    font-size: 17px;
  }
}

@media (max-width: 767px) {
  .home-categories__list-item {
    width: calc(100% / 2);
  }

  .home-categories__middle > ul > li:nth-child(5) {
    margin-left: 0;
  }
  .home-categories__middle > ul > li:nth-child(1) {
    margin-left: calc(50% - 1px);
  }

  .home-categories__middle-text {
    bottom: 0;
    top: 0;
    width: 50%;
  }

  .home-categories__middle-text span:nth-child(1) {
    font-size: 7.5vw;
    margin-bottom: 29px;
  }

  .home-categories__middle-text span:nth-child(2) {
 
    font-size: 8.5vw;
  }

  .home-categories__middle-text span:nth-child(2):before {
    bottom: -7vw;
  }

  .home-categories__middle-text {
    top: 80px;
  }

  .home-categories__link span {
    font-size: 23px;
  }
}

@media (max-width: 596px) {
  .home-categories__middle > ul > li:nth-child(1) {
    margin-left: 0;
  }

  .home-categories__link a {
    padding: 20px 0;
  }

  .home-categories__list-item {
    width: 100%;
  }

  .home-categories__middle-text {
    display: none;
  }

  .home-categories__link span {
    font-size: 15px;
  }
}
