.activities-container {
  display: flex;
  max-width: 1920px;
  overflow: hidden;
  margin-block: 2rem;
}
@media (max-width: 960px) {
  .activities-container {
    flex-direction: column;
    overflow-x: clip;
    overflow-y: visible;
  }
}

.activity-card {
  transition: all 0.3s ease;
  height: 680px;
  position: relative;
  z-index: 1;
  width: 33.333%;
  align-content: end;
}
@media (max-width: 960px) {
  .activity-card {
    width: 100%;
    height: 350px;
    transform: skewY(-6deg);
    overflow-y: clip;
  }
}
@media (max-width: 580px) {
  .activity-card {
    height: 250px;
  }
}
.activity-card:hover {
  z-index: 4;
  width: 66%;
}
.activity-card:hover:before {
  background-position: top;
}
@media (max-width: 960px) {
  .activity-card:hover {
    width: 100%;
  }
}
@media (min-width: 960px) {
  .activity-card:hover ~ .activity-card {
    transition: width ease-in-out 0.75s, opacity ease-in-out 0.5s;
    width: 0;
    opacity: 0;
    animation: slide-right 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
}
.activity-card:hover .subcategories {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.activity-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background-image: url("/include/mainpage/activity/images/girl-sunglasses.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.25);
}
@media (max-width: 960px) {
  .activity-card:before {
    transform: skewY(6deg) scale(1.25);
  }
}
.activity-card.city:hover {
  width: 100%;
  background-position: top;
}
@media (max-width: 960px) {
  .activity-card.city:hover {
    animation: none;
  }
}
.activity-card.tracking {
  z-index: 3;
}
.activity-card.tracking:hover {
  width: 79%;
}
@media (max-width: 960px) {
  .activity-card.tracking:hover {
    animation: none;
    width: 100%;
  }
}
@media (min-width: 960px) {
  .activity-card.tracking:hover ~ .activity-card {
    animation: slide-right-two 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  }
}
@media (min-width: 960px) and (max-width: 960px) {
  .activity-card.tracking:hover ~ .activity-card {
    animation: none;
  }
}
.activity-card.tracking:before {
  background-image: url("/include/mainpage/activity/images/young-man.png");
}
.activity-card.training {
  z-index: 1;
}
.activity-card.training:before {
  background-image: url("/include/mainpage/activity/images/athletic-girl.jpg");
}
.activity-card.skew {
  width: 42.5%;
  transform: skew(-15deg, 0);
  margin-left: -4.75%;
  margin-right: -6.75%;
  z-index: 3;
  overflow: hidden;
}
@media (max-width: 960px) {
  .activity-card.skew {
    width: 100%;
    transform: skewY(-6deg);
    height: 350px;
    margin-left: 0;
    margin-right: 0;
    border-block: 3px solid #FFFFFF;
  }
}
@media (max-width: 580px) {
  .activity-card.skew {
    height: 250px;
  }
}
.activity-card.skew:before {
  transform: skew(15deg, 0) scale(1.33) scaleX(1.05);
  background-position: top;
}
@media (max-width: 960px) {
  .activity-card.skew:before {
    transform: skewY(6deg) scale(1.25);
  }
}
.activity-card.skew .activity-card-description {
  transform: skew(15deg, 0);
}
@media (max-width: 960px) {
  .activity-card.skew .activity-card-description {
    transform: skewY(6deg);
  }
}
@keyframes slide-right {
  0% {
    -webkit-transform: translateX(0) skew(-15deg, 0);
    transform: translateX(0) skew(-15deg, 0);
  }
  100% {
    -webkit-transform: translateX(200%) skew(-15deg, 0);
    transform: translateX(200%) skew(-15deg, 0);
  }
}
@keyframes slide-right-two {
  0% {
    -webkit-transform: translateX(0) skew(-15deg, 0);
    transform: translateX(0) skew(-15deg, 0);
  }
  100% {
    -webkit-transform: translateX(100%) skew(-15deg, 0);
    transform: translateX(100%) skew(-15deg, 0);
  }
}
.activity-card .activity-card-description {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 80px;
}
@media (max-width: 960px) {
  .activity-card .activity-card-description {
    flex-direction: column;
    padding: 30px 30px;
    align-items: start;
    gap: 8px;
    transform: skewY(6deg);
  }
}
.activity-card .activity-card-description span {
  font-family: RussoOne;
  font-weight: 400;
  font-size: 44px;
  line-height: 130%;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
@media (max-width: 960px) {
  .activity-card .activity-card-description span {
    font-size: 20px;
  }
}

.subcategories {
  display: flex;
  gap: 10px;
  bottom: 20px;
  right: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 10;
}
@media (max-width: 960px) {
  .subcategories {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
.subcategories a {
  text-decoration: none;
  border-radius: 51px;
  padding: 7px 20px;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  background: #FFFFFF;
  color: #292929;
  transition: all 0.3s ease;
  align-self: flex-end;
}
.subcategories a:hover {
  background: #ef2df1;
  color: #FFFFFF;
  transition: all 0.3s ease;
}
@media (max-width: 960px) {
  .subcategories a {
    font-size: 12px;
    padding: 6px 12px;
  }
}

/*# sourceMappingURL=styles.css.map */
