.catalog-block {
  padding: 79px 0 80px;
}
.catalog-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.catalog-item {
  display: block;
  position: relative;
  background-size: cover;
  background-repeat: no-repeat;
}
.catalog-item:before {
  content: "";
  padding-bottom: 100%;
  display: block;
}
.catalog-item:after {
  content: "";
  display: block;
  background-color: var(--dark);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.6;
  transition: all 0.3s;
}
.catalog-item:hover:after {
  opacity: 0.6;
}
.catalog-item:hover .catalog-title {
  opacity: 1;
}
.catalog-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  --color: #F4F1E9;
  z-index: 2;
  opacity: 1;
  transition: all 0.3s;
  text-align: center;
  padding: 0 30px;
}
.catalog-link {
  background-color: var(--main);
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
}
.catalog-link__title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  --color: #F4F1E9;
  text-align: center;
  padding: 0 30px;
}
@media (min-width: 992px) {
  .catalog-link:hover {
    background-color: var(--grey98);
  }
  .catalog-link:hover svg {
    animation: svgAnimate 1s ease-in-out infinite;
  }
}
.catalog-link svg {
  --svgColor: #F4F1E9;
  --svgWidth: 40px;
  --svgHeight: 40px;
  display: block;
}

@keyframes svgAnimate {
  0%, 100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(10px, 0);
  }
}
@media (max-width: 767px) {
  .catalog-wrap {
    gap: 10px;
  }
  .catalog-title,
  .catalog-link__title {
    padding: 15px;
  }
  .catalog-block {
    padding: 35px 0 35px;
  }
  .catalog-item:after {
    opacity: 0.7;
  }
  .catalog-title {
    opacity: 1;
  }
}
@media (max-width: 592px) {
  .catalog-wrap {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 475px) {
  .catalog-wrap {
    grid-template-columns: repeat(2, 1fr);
  }
}/*# sourceMappingURL=block.css.map */