.marvelous-page .hero_bg {
  max-width: 1500px;
  display: flex;
  justify-content: end;
  top: auto;
  bottom: 0;
}

.marvelous-course--inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.marvelous-course--inner .title {
  max-width: 50%;
}

.marvelous-page .after_bg {
  position: absolute;
  max-width: 690px;
  left: -85px;
  top: 250px;
  z-index: -1;
}

.marvelous-page .tarif__item-b {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.marvelous-page .tarif__item:nth-child(1) {
  background-image: url(../../images/4_bg-mk.webp);
}

.marvelous-page .tarif__item:nth-child(2) {
  background-image: url(../../images/5_bg-mk.webp);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom -50px right -90px;
}

.marvelous-page .plan {
  background-image: none;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 100px;
}

.marvelous-page .plan-mar_bg {
  position: absolute;
  z-index: -1;
  right: -180px;
  top: 30px;
  height: 110%;

  img {
    width: auto;
    height: 100%;
  }
}

.marvelous-page .plan-wrap {
  margin-top: 0;
  position: absolute;
  width: 100%;
  top: 0;
  z-index: 0;
  opacity: 0;
  transition: 0.4s all;
}

.marvelous-page .plan-wrap.active {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.marvelous-page .about-title,
.marvelous-page .about-title span,
.marvelous-page .about-r__title,
.marvelous-page .about-r__title span,
.marvelous-page .about-text p {
  color: #fff;
}

.marvelous-page .about-l_bottom > div {
  color: var(--btn);
  background: #fff;
}

.marvelous-page .about-r_top p {
  margin-top: 50px;
  color: #fff;
  font-weight: 400;
}

.marvelous-page .about-r {
  width: 500px;
}

.marvelous-page .about__inner {
  background-image: url(../../images/bg-about-anna.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom left;
}

.marvelous-page .about-img {
  bottom: -65px;
  max-width: 760px;
}

.marvelous-page .after-relative {
  position: relative;
  display: flex;
  align-items: center;
}

.marvelous-page .tarif__item-new-title {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.marvelous-page .tarif__item-new-title span {
  font-weight: 700;
}

.marvelous-page .tarif__item-new-title span span {
  color: var(--red);
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.marvelous-page .tarif__item-new-t {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.marvelous-page .tarif__item-new-descr {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--btn);
  width: fit-content;
}

.marvelous-page .tarif__item-new:nth-child(1) {
  background-image: url("../../imgmk/tarif-new-bg-1.webp");
  background-position: right;
  background-size: contain;
  backdrop-filter: blur(15px);
  background-repeat: no-repeat;
}

.marvelous-page .tarif__item-new:nth-child(2) {
  background-image: url("../../imgmk/tarif-new-bg-2.webp");
  background-position: right -20px;
  background-size: 97%;
  backdrop-filter: blur(15px);
  background-repeat: no-repeat;
}

.marvelous-page .tarif__item-new-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.marvelous-page .tarif__item-new-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6d6d6d;
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.marvelous-page .tarif__item-new-price {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.marvelous-page .tarif__item-new-b .tarif__item-new-price {
  font-size: 32px;
}

.marvelous-page .tarif__item-new-b-text {
  margin: 0 0 10px;
}

.marvelous-page .tarif__item-new-b {
  display: flex;
  align-items: center;
  gap: 20px;
}

.marvelous-page .tarif__item-new {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  border-radius: 20px;
  gap: 25px;
}

.marvelous-page .tarif__item-new:nth-child(3) {
  grid-area: 1 / 2 / 3 / 3;
  background-image: url("../../imgmk/tarif-new-bg-3.webp");
  background-position: bottom right;
  background-size: contain;
  background-repeat: no-repeat;
  min-height: 845px;
}

.marvelous-page .tarif__item-new-subtitle {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 32px;
  font-style: normal;
  font-weight: 500;
  margin-bottom: 20px;
  line-height: normal;
  text-transform: uppercase;
}

.marvelous-page .tarif__item-new-live {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.marvelous-page .tarif__item-new-live-red {
  color: var(--red);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
}

.marvelous-page .tarif__item-new-live > div {
  display: flex;
  align-items: center;
  gap: 18px;
}

.marvelous-page .tarif__item-new-live > div > span {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: 140%;

  letter-spacing: -0.36px;
  text-transform: uppercase;
}

.marvelous-page .tarif__item-new-live-start {
  display: flex;
  align-items: center;
  gap: 5px;
}

.marvelous-page .tarif__item-new-live-start span {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  letter-spacing: -0.36px;
}

.marvelous-page .tarif__item-new-live-divider {
  width: 2px;
  height: 14px;
  background: var(--red);
}

.marvelous-page .tarif__item-new-b-options {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(15px);
  gap: 10px;
  margin-bottom: 5px;
}

.marvelous-page .tarif__item-new-b-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.marvelous-page .tarif__item-new-b-btn {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 24px;
  border: 1px solid var(--btn);
}

.marvelous-page .tarif__item-new-b-price {
  color: var(--btn);
  font-family: Montserrat;
  font-size: 44px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin-right: 8px;
}

.marvelous-page .tarif__item-new-b-price-old {
  color: var(--red);
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-decoration-line: line-through;
  text-transform: uppercase;
}

.marvelous-page .tarif__item-new:nth-child(3) .tarif__item-new-b {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
}

.marvelous-page .tarif__item-new .black-button .text-btn {
  min-width: 100%;
}

.marvelous-page .tarif__item-new-b > .black-button {
  flex: 1;
  width: 100%;
  align-self: stretch;
}

.marvelous-page .tarif__item-new-b > .black-button .text-btn {
  flex: 1;
  min-width: 0;
}

.marvelous-page .tarif__item-new-price.underline {
  text-decoration: line-through red;
}

/* ============ Responsive ============ */

@media screen and (max-width: 1220px) {
  .marvelous-page .hero_b-start {
    margin: 0;
  }

  .marvelous-page .about-img {
    left: -50px;
  }

  .marvelous-page .hero_bg {
    right: 0;
  }

  .marvelous-course {
    overflow: hidden;
  }

  .marvelous-page .plan-mar_bg {
    position: absolute;
    z-index: -1;
    right: -140px;
    max-width: 645px;
    top: 10px;
  }

  .marvelous-page .tarif__item-new-price {
    font-size: 32px;
  }

  .marvelous-page .tarif__item-new-b .tarif__item-new-price {
    font-size: 26px;
  }

  .marvelous-page .tarif__item-new-b-price {
    font-size: 38px;
  }
}

@media screen and (max-width: 1044px) {
  .marvelous-course--inner .title {
    max-width: none;
  }

  .marvelous-page .about-r_top p {
    margin-top: 15px;
  }

  .marvelous-page .about-img {
    bottom: 0;
    max-width: 500px;
    left: 0px;
  }

  .marvelous-page .tarif__item-new-b {
    flex-direction: column;
    gap: 20px;
    align-items: start;
  }

  .marvelous-page .tarif__item-new-b-options {
    gap: 20px;
  }
  .marvelous-page .tarif__item-new-b-option {
    flex-direction: column;
    gap: 8px;
  }

  .marvelous-page .tarif__item-new-b-price,
  .marvelous-page .tarif__item-new-price {
    font-size: 32px;
  }
  .marvelous-page .tarif__item-new-b .tarif__item-new-price {
    font-size: 24px;
  }

  .marvelous-page .tarif__item-new-title,
  .marvelous-page .tarif__item-new-title span span,
  .marvelous-page .tarif__item-new-subtitle {
    font-size: 22px;
  }

  .marvelous-page .tarif__item-new .text-btn {
    padding: 15px 18px;
  }

  .marvelous-page .tarif__item-new:nth-child(3) {
    min-height: 690px;
  }
}

@media screen and (max-width: 840px) {
  .substance-page .marvelous-course .course-fit__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 40px;
  }
  .marvelous-page .about-img {
    left: 50px;
  }
  .marvelous-page .about-img img {
    display: block;
    margin-bottom: -1px;
  }

  .marvelous-page .hero_bg {
    top: 200px;
  }

  .marvelous-course--inner {
    gap: 40px;
  }

  .marvelous-page .after_bg {
    position: static;
    max-width: none;
    margin-top: 16px;
    text-align: center;
  }

  .marvelous-page .after-course .container {
    gap: 17px;
    flex-direction: column;
  }

  .marvelous-page .plan-mar_bg {
    position: absolute;
    z-index: -1;
    right: 0;
    max-width: 645px;
    top: 10px;
    opacity: 0.5;
  }

  .marvelous-page .hero_bg img {
    width: 100%;
    height: auto;
  }

  .marvelous-page .hero_bg {
    bottom: auto;
  }
  .marvelous-page .tarif__item-new-title,
  .marvelous-page .tarif__item-new-title span span,
  .marvelous-page .tarif__item-new-subtitle {
    font-size: 24px;
  }

  .marvelous-page .tarif__item-new-descr,
  .marvelous-page .tarif__item-new-item,
  .marvelous-page .tarif__item-new-live-red,
  .marvelous-page .tarif__item-new-live > div > span,
  .marvelous-page .tarif__item-new-live-start span,
  .marvelous-page .tarif__item-new-b-text {
    font-size: 14px;
  }

  .marvelous-page .tarif__item-new:nth-child(3) {
    min-height: auto;
    gap: 40px;
  }

  .marvelous-page .tarif__item-new-subtitle {
    margin-bottom: 0;
  }

  .marvelous-page .tarif__item-new-b-option {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .marvelous-page .tarif__item-new-b-btn {
    grid-column: span 2;
    font-size: 14px;
    text-align: center;
  }

  .marvelous-page .tarif__item-new:nth-child(3) {
    background-position: 50px 200px;
  }

  .marvelous-page .tarif__item-new-b .tarif__item-new-price {
    font-size: 24px;
  }

  .marvelous-page .tarif__item-new:nth-child(1) {
    background-position: -80px 170px;
    background-size: 140%;
  }

  .marvelous-page .tarif__item-new:nth-child(2) {
    background-position: -80px 60px;
    background-size: 140%;
  }

  .marvelous-page .tarif__item-new {
    gap: 40px;
    justify-content: start;
  }
}

@media screen and (max-width: 640px) {
  .marvelous-page .plan {
    background-image: none;
    min-height: 500px;
    overflow: hidden;
  }

  .marvelous-page .about-r {
    width: auto;
  }

  .marvelous-page .plan-mar_bg {
    position: absolute;
    z-index: 0;
    right: 0;
    max-width: 605px;
    top: 80px;
    bottom: 0;
    opacity: 0.5;
  }

  .about_wrap {
    background: linear-gradient(0deg, #14172d 25%, transparent 50%);
  }
  .marvelous-page .about-img {
    left: 0;
  }

  .marvelous-page .hero_bg {
    top: 260px;
    width: 140%;
  }

  .marvelous-page .tarif__item-new {
    padding: 30px;
  }
}

@media screen and (max-width: 430px) {
  .marvelous-page .about-img {
    width: 100%;
    top: 110px;
  }
  .marvelous-page .hero_bg {
    top: 300px;
    width: 140%;
  }
}
