.tour {
  display: block;
  margin-bottom: 64px;
}

.tour__title {
  font-size: 48px;
  font-weight: 500;
  line-height: 100%;
  max-width: 313px;
  margin: 0 auto 24px auto;
  text-align: center;
}

.tour__description {
  font-size: 20px;
  font-weight: 300;
  line-height: 110%;
  max-width: 280px;
  margin: 0 auto 48px auto;
  text-align: center;
}

.tour__slider {
  position: relative;
}

.tour__btn-next {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  bottom: 0;
  /* width: calc((100vw - 290px) / 2); */
  width: 100%;
  max-width: 300px;
}

.tour__btn-prev {
  position: absolute;
  z-index: 10;
  top: 0;
  bottom: 0;
  left: 0;
  /* width: calc((100vw - 275px) / 2); */
  width: 100%;
  max-width: 300px;
}

.swiper-slide.tour-card {
  width: auto !important; /* отключает width, задаваемый Swiper */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.tour .swiper-wrapper {
  transition-timing-function: cubic-bezier(0.17, 0.67, 0.21, 0.99);
  will-change: transform;
  align-items: center;
}

.tour .swiper-wrapper .swiper-slide {
  backface-visibility: hidden;
  transform: translateZ(0);
  transition-property: transform, opacity;
}

/* .tour-card {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  width: auto !important;
  flex: 0 0 auto;
  max-width: 300px;
  height: 100%;
  max-height: 450px;
  padding: 24px 58px;
  transition: all 0.3s;
  color: #FFFFFF;
  border-radius: 15px;
  transition: max-width 0.3s ease;
} */

.tour-card {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  width: 80vw;
  flex: 0 0 auto;
  flex-shrink: 0;   
  flex-grow: 0;
  flex-basis: auto;
  max-width: 300px;
  height: 100%;
  max-height: 450px;
  padding: 24px 58px;
  transition: all 0.3s;
  color: #FFFFFF;
  border-radius: 15px;
  transition: max-width 0.9s ease,  max-height 0.9s ease, transform 0.9s ease, opacity 0.9s ease;
}

.swiper-wrapper {
  transition-timing-function: cubic-bezier(0.17, 0.67, 0.21, 0.99);
}

.tour-card.swiper-slide-active {
  max-width: 338px;
  max-height: 507px;
}

.tour-card .tour-card__description {
  display: none;
}

.swiper-slide.tour-card.swiper-slide-active .tour-card__description {
  display: block;
}

.tour-card:before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: block;
  content: "";
  background: linear-gradient(180deg, #121217 0%, rgba(18, 18, 23, 0) 100%);
}

.tour-card__tag {
  font-size: 12px;
  line-height: 110%;
  z-index: 1;
  margin-bottom: 8px;
  padding: 8px 12px;
  color: #121217;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 15px;
  background: #FFFFFF;
}

.tour-card__title {
  font-family: "GT Walsheim Pro", sans-serif;
  font-size: 20px;
  line-height: 110%;
  z-index: 1;
  margin-bottom: 8px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
  word-spacing: normal;
  letter-spacing: normal;
}

.tour-card__description {
  font-size: 14px;
  line-height: 110%;
  z-index: 1;
  text-align: center;
}

.tour-card .main-btn {
  z-index: 1;
  margin-top: auto;
  font-size: 18px;
}

@media (min-width: 768px) {
  .tour .swiper-wrapper {
    align-items: center;
    height: 508px;
  }

  .tour-card.swiper-slide-active {
    width: 338px;
    height: 508px;
  }

  .tour__title {
    max-width: none;
  }

  .tour__description {
    max-width: 450px;
  }
}


@media (max-width: 767px) {
  .tour-card.swiper-slide-active {
    max-width: 260px;
    height: 391px;
  }

  .tour-card {
    max-width: 250px;
    height: 376px;
  }
}

@media (max-width: 450px) {
  .tour__title {
    font-size: 32px;
    margin: 0 auto 16px auto;
  }

  .tour-card__title {
    font-size: 18px;
  }

  .tour-card__description {
    font-size: 13px
  }

  .tour__description {
    font-size: 14px;
    margin: 0 auto 32px auto;
  }
}