.cards {
  position: relative;
  padding: var(--sp) 0;
}

.cards__container {
  display: flex;
  flex-flow: column;
  gap: 24px;
}

.cards__items {
  width: 100%;
  display: flex;
  flex-flow: wrap;
  gap: 20px;
}

.cards .item {
  width: 100%;
  max-width: 204px;
  padding: 12px;
  height: 324px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  flex-flow: column;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  transition: var(--transition);
  text-decoration: none;
  min-height: 600px;
  max-width: 400px;
  width: 400px;
  padding: 20px;
  gap: 24px;
}

.cards .item:before {
  content: "";
  width: 50px;
  aspect-ratio: 1/1;
  transition: inherit;
  position: absolute;
  left: 8px;
  bottom: -54px;
  border-radius: 50%;
  background: var(--primary);
  z-index: 1;
}

.cards .item:after {
  content: "";
  display: block;
  background: linear-gradient(189deg, rgba(0, 0, 0, 0) 65%, rgba(0, 0, 0, 0.45) 87.39%);
  mix-blend-mode: darken;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.cards .item__image {
  position: absolute;
  left: 50%;
  top: 0;
  width: 340px;
  aspect-ratio: 340/363;
  background: 50%/cover no-repeat;
  transform: translateX(-50%);
  transition: inherit;
  transform-origin: 50% 0;
}

.cards .item__title {
  position: relative;
  color: #fff;
  transition: inherit;
  transform: translateY(40px);
  z-index: 10;
}

.cards .item__button {
  margin-right: auto;
  opacity: 0;
  z-index: 10;
}

.cards .item--no-image {
  border: 2px solid var(--primary, #F97729);
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.cards .item--no-image:after {
  content: "";
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  background: url("../../img/btn-arrow-orange.svg") 50%/contain no-repeat;
  z-index: 2;
}

.cards .item--no-image .item__title {
  font: 700 var(--h6)/140% var(--heading-font-family);
  color: var(--primary);
  transform: none;
}

.cards .item--no-image .item__button {
  display: none;
}

.cards .item--no-image:hover .item__title {
  color: var(--white);
}

.cards .item--no-image:hover:after {
  background: url("../../img/btn-arrow-white.svg") 50%/contain no-repeat;
}

.cards .item:hover:before {
  bottom: auto;
  transform: scale(14);
}

.cards .item:hover .item__image {
  scale: 0.9;
}

.cards .item:hover .item__title {
  transform: translateY(0);
}

.cards .item:hover .item__button {
  opacity: 1;
}

.cards .item:hover:before {
  transform: scale(30);
}

.cards .item:hover .item__button,
.cards .item:hover .item__content {
  transform: translateY(0);
}

.cards .item__title {
  transform: none;
}

.cards .item__content {
  position: relative;
  display: flex;
  flex-flow: column;
  gap: 10px;
  z-index: 10;
  transition: inherit;
  transform: translateY(80px);
}

.cards .item__subtitle {
  color: #fff;
  font-size: var(--m);
  line-height: 180%;
}

.cards .item__image {
  width: 120%;
  height: 120%;
  aspect-ratio: 1/1;
}

.cards .item__button {
  opacity: 1;
  transform: translateY(200%);
}

.cards .swiper-wrapper {
  padding-bottom: 48px;
}

.cards .swiper-pagination {
  top: 99%;
  --swiper-pagination-color: var(--secondary);
}

.cards .swiper-button-prev,
.cards .swiper-button-next {
  top: -98px;
}

.cards .swiper-button-prev {
  left: auto;
  right: 64px;
}

@media (max-width: 1260px) {
  .cards__items {
    overflow: visible;
  }

  .cards .swiper-wrapper {
    padding-bottom: 24px;
  }
}

@media (max-width: 760px) {
  .cards .item {
    max-width: 300px;
    width: 300px;
  }
}
