/* sp-cards НАЧАЛО */
.sp-cards {
  padding-top: 95px;
  padding-bottom: 150px;
}
@media (max-width: 1079px) {
  .sp-cards {
    padding-bottom: 95px;
  }
}

.sp-cards__title {
  text-align: center;
  margin-bottom: 70px;
}
@media (max-width: 1079px) {
  .sp-cards__title {
    margin-bottom: 60px;
  }
}

.sp-cards__title span {
  white-space: nowrap;
}

/* .sp-cards__wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px;
} */
@media (max-width: 768px) {
  .sp-cards__slider {
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 7 / 10.8;
    -webkit-transform: translateX(4vw);
        -ms-transform: translateX(4vw);
            transform: translateX(4vw);
  }
}

@media (max-width: 640px) {
  .sp-cards__card.slick-slide {
    min-height: 532px;
  }
}

@media (max-width: 768px) {
  .swiper-wrapper {
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}
@media (min-width: 769px) {
  .swiper-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    gap: 44px;
  }
  .swiper-slide {
    -ms-flex-negative: 0;
        flex-shrink: 0;
    width: auto;
    height: auto;
    position: relative;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    -o-transition-property: transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    display: block;
  }
}
.swiper-slide {
  width: auto;
  -webkit-backface-visibility: hidden;
  -webkit-transform: translate3d(0,0,0);
}
.swiper-cards .swiper-slide {
  overflow: visible;
}
.sp-cards__slide-text {
  display: none;
}
@media (max-width: 768px) {
  .sp-cards__slide-text {
    display: block;
    margin-bottom: 36px;
    min-height: 81px;
  }
}
@media (max-width: 768px) {
  .sp-cards__slide-text a,
  .sp-cards__slide-text p {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    /* gap: 10px; */
    padding-bottom: 28px;
  }
}

.sp-cards__card {
  /* width: 25%; */
  width: 267px;
  -webkit-perspective: 900px;
          perspective: 900px;
  padding-bottom: 21px;
}
@media (max-width: 768px) {
  .sp-cards__card {
    /* padding-top: 48px; */
  }
}

.sp-cards__card.swiper-slide-active.anim {
  -webkit-animation: card-rotate 5s ease-in-out infinite;
          animation: card-rotate 5s ease-in-out infinite;
}

@-webkit-keyframes card-rotate {
  0% {-webkit-transform: rotateY(0deg) scale(1);transform: rotateY(0deg) scale(1)}
  50% {-webkit-transform: rotateY(15deg) scale(1);transform: rotateY(15deg) scale(1)}
  100% {-webkit-transform: rotateY(0deg) scale(1);transform: rotateY(0deg) scale(1)}
}

@keyframes card-rotate {
  0% {-webkit-transform: rotateY(0deg) scale(1);transform: rotateY(0deg) scale(1)}
  50% {-webkit-transform: rotateY(15deg) scale(1);transform: rotateY(15deg) scale(1)}
  100% {-webkit-transform: rotateY(0deg) scale(1);transform: rotateY(0deg) scale(1)}
}

@media (min-width: 767.9px) {
  .sp-cards__card:not(.sp-cards__card--static):hover .sp-cards__card-wrapper {
    -webkit-transform: rotateY(180deg);
            transform: rotateY(180deg);
  }
}


.sp-cards__card .sp-cards__card-wrapper.active {
  -webkit-transform: rotateY(180deg);
          transform: rotateY(180deg);
}

.sp-cards__card--cta .sp-cards__card-wrapper {
  color: #fff;
}
.sp-cards__card--cta .sp-cards__back-text {
  text-transform: none;
}

.sp-cards__card--cta .sp-cards__card-back {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.sp-cards__card--cta .sp-cards__back-text {
  font-weight: 500;
  line-height: 1.3;
}

.sp-cards__card--cta .sp-cards__card-name {
  color: #303030;
}
.sp-cards__card-name:hover .sp-cards__card-name--text {
  color: inherit;
}
.sp-cards__rotate-arrow {
  display: none;
}

@media (max-width: 768px) {
  .sp-cards__rotate-arrow {
    display: block;
    position: absolute;
    left: 50%;
    top: 58px;
    transform: translateX(-50%);
    /* padding-left: 10px; */
    -ms-flex-negative: 0;
        flex-shrink: 0;
  }
}
.sp-cards__card-btn {
  display: inline-block;
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: auto;
  text-decoration: none;
  color: inherit;
  padding-top: 1em;
  padding-right: 0.8em;
  padding-left: 0.8em;
  padding-bottom: 1em;
  font-size: 1.25rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  background-color: var(--pink-color);
  border: 3px solid #fff;
  border-radius: 22px;
}

.sp-cards__card-btn:hover {
  color: inherit;
}

.sp-cards__card--cta .sp-cards__card-back {
  background-color: #303030;
}

.sp-cards__content-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 8%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  justify-items: start;
}

/* .sp-cards__card-back > .sp-cards__content-wrapper {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
} */

.sp-cards__card-front,
.sp-cards__card-back {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
}

.sp-cards__card-back {
  background-color: var(--pink-color);
  -webkit-transform: rotateY(180deg) translateZ(1px);
          transform: rotateY(180deg) translateZ(1px);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sp-cards__back-image {
  position: absolute;
  width: 100%;
  height: auto;
}

/* .sp-cards__card-back > .sp-cards__image-wrapper {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
} */

.sp-cards__card-1 .sp-cards__image-wrapper {
  background: url(/images/special-projects/stars-pink.gif) no-repeat center / cover;
  -webkit-clip-path: url(#clipPath);
          clip-path: url(#clipPath);
}

.sp-cards__card-2 .sp-cards__image-wrapper {
  width: 79%;
  height: 64%;
  background: url(/images/special-projects/sp-search-2.gif) no-repeat center / 130%;
  -webkit-clip-path: url(#clipPath2);
          clip-path: url(#clipPath2);
}

.sp-cards__card-2 .sp-cards__content-wrapper::after {
  position: absolute;
  content: "";
  left: 44%;
  top: 64px;
  width: 81%;
  -webkit-transform: translateX(-30%);
      -ms-transform: translateX(-30%);
          transform: translateX(-30%);
  height: 63%;
  background: url(/images/special-projects/sp-magnifier.png) no-repeat center / contain;
  -webkit-animation: left-right 4s ease-in-out infinite alternate;
          animation: left-right 4s ease-in-out infinite alternate;
}

.sp-cards__card-3 .sp-cards__image-wrapper {
  margin-top: 12%;
  width: 78%;
  -webkit-clip-path: url(#clipPath3);
          clip-path: url(#clipPath3);
}
.sp-cards__card-3 .sp-cards__image-wrapper::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  left: 50%;
  top: 50%;
  background: url(/images/special-projects/sp-spiral.svg) #fff no-repeat center / 220%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-animation: rotate360card3 5s linear infinite;
          animation: rotate360card3 5s linear infinite;
}

.sp-cards__card-4 .sp-cards__image-wrapper {
  margin-top: 12%;
  width: 80%;
  height: 185px;
  -webkit-clip-path: url(#clipPath4);
          clip-path: url(#clipPath4);
}
.sp-cards__card-4 .sp-cards__image-wrapper::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 240%;
  left: 50%;
  top: 50%;
  background: url(/images/special-projects/sp-hearts-bg.svg) #fff no-repeat top center / 150%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-animation: translateYcard 5s linear infinite;
          animation: translateYcard 5s linear infinite;
}
.sp-cards__card-4 .sp-cards__image-wrapper::before {
  z-index: 1;
    content: "";
    position: absolute;
    width: 34%;
    height: 34%;
    left: 60%;
    top: 16%;
    background: url(/images/special-projects/smile-please.png) no-repeat center / contain;
}

.sp-cards__card-4 .sp-cards__content-wrapper {
  height: auto;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

@-webkit-keyframes translateYcard {
  from {-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);}
  to {-webkit-transform: translate(-50%, -75.6%);transform: translate(-50%, -75.6%);}
}

@keyframes translateYcard {
  from {-webkit-transform: translate(-50%, -50%);transform: translate(-50%, -50%);}
  to {-webkit-transform: translate(-50%, -75.6%);transform: translate(-50%, -75.6%);}
}

@-webkit-keyframes rotate360card3 {
  from {-webkit-transform: translate(-50%, -50%) rotate(0);transform: translate(-50%, -50%) rotate(0);}
  to {-webkit-transform: translate(-50%, -50%) rotate(360deg);transform: translate(-50%, -50%) rotate(360deg);}
}

@keyframes rotate360card3 {
  from {-webkit-transform: translate(-50%, -50%) rotate(0);transform: translate(-50%, -50%) rotate(0);}
  to {-webkit-transform: translate(-50%, -50%) rotate(360deg);transform: translate(-50%, -50%) rotate(360deg);}
}

@-webkit-keyframes left-right {
  from {    -webkit-transform: translateX(-30%) translateY(-10%) rotate(0);    transform: translateX(-30%) translateY(-10%) rotate(0);}
  to {   -webkit-transform: translateX(-20%) translateY(4%) rotate(-15deg);   transform: translateX(-20%) translateY(4%) rotate(-15deg);}
}

@keyframes left-right {
  from {    -webkit-transform: translateX(-30%) translateY(-10%) rotate(0);    transform: translateX(-30%) translateY(-10%) rotate(0);}
  to {   -webkit-transform: translateX(-20%) translateY(4%) rotate(-15deg);   transform: translateX(-20%) translateY(4%) rotate(-15deg);}
}

.sp-cards__image-wrapper {
  position: relative;
  margin: 0 auto;
  margin-top: 7%;
  margin-bottom: 6px;
  width: 72%;
  height: 57%;
}

.sp-cards__card-front {
  background-color: #303030;
  padding: 6%;
}

.sp-cards__card-wrapper {
  /* box-sizing: content-box; */
  aspect-ratio: 7 / 10.3;
  /* padding: 6%; */
  position: relative;
  -webkit-transition: -webkit-transform 1500ms;
  transition: -webkit-transform 1500ms;
  -o-transition: transform 1500ms;
  transition: transform 1500ms;
  transition: transform 1500ms, -webkit-transform 1500ms;
  -webkit-transform-style: preserve-3d; 
  transform-style: preserve-3d;
}

.sp-cards__front-wrapper {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  border: 3px solid #fff;
  border-radius: 16px;
  background: url(/images/special-projects/sp-card-front-bg.svg) no-repeat center / cover;
}

.sp-cards__type-image {
  width: 50%;
  height: auto;
  margin: auto;
}

.sp-cards__card-name {
  display: block;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  margin-top: 20px !important;
}
@media (max-width: 768px) {
  .sp-cards__card-name.hidden {
    display: none;
  }
}

a.sp-cards__card-name:hover {
  color: var(--pink-color);
}

@media (max-width: 768px) {
  a.sp-cards__card-name:hover {
    color: inherit;
  }
}

.crm-strategy__price .sp-cards__wrapper {
  max-width: 1000px;
  margin: 0 auto;
}
/* @media (max-width: 768px) {
  .crm-strategy__price .sp-cards__wrapper {
    max-width: 300px;
  }
}
.crm-strategy__price .sp-cards__wrapper .swiper-wrapper {
  gap: clamp(44px, 4vw, 99px);
} */

.sp-cards__back-text {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  margin-top: auto !important;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.sp-cards__back-text > span {
  /* font-size: 2.25rem; */
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  margin-top: auto !important;
}



/* sp-cards КОНЕЦ */

.sp-cards__card-5-front-img {
  width: 100%;
  max-width: 174px;
  margin-top: 40px;
}

.sp-cards__card-5-j {
  position: absolute;
  top: 15px;
  left: 14px;
}
.sp-cards__card-5-j-2 {
  top: initial;
  left: initial;
  bottom: 15px;
  right: 14px;
  transform: rotate(180deg);
}

.sp-cards__card-wrapper-static {
    aspect-ratio: 7 / 10.3;
    position: relative;
}
.sp-cards__card-wrapper-static .sp-cards__card-front {
  /* background-color: rgb(48 48 48 / 10%); */
  background: url(/local/templates/emx2023/css/../img/noise-bg.png) repeat top center #ededed;
}
.sp-cards__front-wrapper--static {
  padding-top: 70px;
  max-width: 190px;
  margin: 0 auto;
  text-align: center;
}
.sp-cards__card-text-block {
  margin-bottom: 25px !important;
}
.sp-cards__card-text-block:last-child {
  margin-bottom: 0;
}

/* .crm-strategy__price .sp-cards__card {
  overflow: initial;
} */
/* .sp-cards__card--static {
  pointer-events: none;
} */

.sp-cards__card-4--1 .sp-cards__content-wrapper {
  height: inherit;
}

.sp-cards__card-4--1 .sp-cards__image-wrapper::before {
  content: none;
}