@media screen and (max-width: 1400px) {
  .mk-home .hero {
    padding: 90px 0 68px;
  }

  .mk-home .hero_top {
    margin-bottom: 5px;
  }

  .mk-home .hero_center {
    gap: 15px;
  }

  .hero {
    padding: 130px 0 68px;
  }

  .substance-page .hero_bottom-l {
    gap: 15px;
  }
}

@media screen and (max-width: 1220px) {
  .container {
    width: 1024px;
  }

  .after-l {
    width: 480px;
  }

  .courses-fit__item:nth-child(2) {
    background-size: 45%;
    background-image: url(https://mykhailykart.school/wp-content/themes/mykhailyk/assets/images/curse-bg4-mob.png);
  }

  .courses-fit__item:nth-child(1) {
    background-size: 45%;
    background-position: top right;
  }

  .marvelous-page .mk-block,
  .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;
  }

  .courses-fit__item {
    background-repeat: no-repeat;
    background-position: center right;
    background-size: 60%;
  }

  .tarif__item-t ul li>div {
    max-width: none;
  }

  .courses--title {
    font-size: 28px;
  }

  .courses--subtotal {
    margin-top: 10px;
    font-size: 20px;
  }

  .hero_bg {
    top: 175px;
    width: 95%;
  }

  .offer--title,
  .offer--title span {
    font-size: 20px;
  }

  .reviews--left {
    gap: 75px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .menu {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    position: relative;
    z-index: 5;
  }

  button.menu {
    border-radius: 60px;
    background: #000;
    padding: 6px;
    width: 43px;
    height: 42px;
  }

  .line {
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
      stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }

  .line2 {
    stroke-dasharray: 60 75;
    stroke-width: 6;
    stroke-dashoffset: -134;
    border-radius: 40px;
  }

  .line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
  }

  .opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }

  .opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -90;
    stroke-width: 6;
  }

  .opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
  }

  .heade-menu ul {
    gap: 0px;
  }

  .heade-menu.burger {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    padding-bottom: 100px;
    z-index: 5;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 145px;
    background-color: rgba(160, 162, 164);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center bottom;
  }

  .heade-menu ul li::before {
    content: "";
    display: none;
  }

  .burger .wrap__logo,
  .burger .black-button {
    display: none;
  }

  .burger.active {
    left: 0;
  }

  .heade-menu.burger ul {
    flex-direction: column;
    justify-content: start;
    width: 100%;
    text-align: center;
    gap: 30px;
  }

  .heade-menu.burger ul li {
    padding: 0;
  }

  div.menu {
    padding: 20px 0;
  }

  div.menu>div {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .title_hero,
  .title_hero span {
    font-size: 35px;
    min-width: auto;
  }

  .after-r__item .num {
    font-size: 55px;
  }

  /* .tarif__item:nth-child(1) {
    background-position: bottom right -190px;
  } */
  .tarif__item:nth-child(2),
  .tarif__item:nth-child(1) {
    background-position: bottom right -90px;
  }

  .title,
  .title span {
    font-size: 35px;
  }

  .about-img {
    max-width: 780px;
  }

  .about_wrap {
    padding: 90px 65px 60px 60px;
  }

  .about-r {
    width: 420px;
    gap: 125px;
  }
}

@media screen and (max-width: 1044px) {
  .container {
    width: 800px;
  }

  .substance-about .text .item p {
    font-size: 16px;
  }

  .tarif__item-s .mk--title {
    font-size: 24px;
  }

  .tarif__item-s .price {
    font-size: 34px;
  }

  .tarif__item-s .price-wrap p,
  .stay-substance__inner .text {
    font-size: 16px;
  }

  .stay-substance__inner .item {
    padding: 20px;
  }

  .tarif__item-s .img {
    position: relative;
    height: 215px;
  }

  .courses--bottom {
    flex: 0;
  }

  .courses-fit__item {
    min-height: 450px;
    justify-content: start;
    background-position: bottom right;
  }

  .marvelous-page .tarif__item-new:nth-child(1) {
    background-position: 50px 100px;
  }

    .marvelous-page .tarif__item-new:nth-child(2) {
    background-position: 50px 70px;
  }

  .courses-fit__item:nth-child(2) {
    background-position: bottom left;
  }

  .courses-fit__item:nth-child(1) {
    background-position: bottom right;
    background-image: url(../images/home-course-env-mob.webp);
  }

  .title,
  .title span {
    font-size: 30px;
  }

  .reviews .container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-direction: column;
  }

  .reviews--left {
    gap: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }

  .reviews-right {
    max-width: none;
  }

  .gallery .black-button {
    flex-shrink: 0;
  }

  .offer--title,
  .offer--title span {
    font-size: 16px;
  }

  .offer__item .arrow {
    width: 40px;
    height: 40px;
    padding: 10px;
  }

  .mk-home .after-course {
    padding: 80px 0;
    background-image: url(../images/benef-bg.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .mentors--item .text,
  .mentors--item .text span {
    font-size: 16px;
  }

  .mentors--item .name,
  .mentors--item .name span {
    font-size: 22px;
  }

  .mentors-wrap .year {
    font-size: 14px;
  }

  .mentors--bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
  }

  .course-fit__item--text>div {
    color: #0b0b0b;
    font-size: 18px;
  }

  .hero_center .text-btn {
    padding: 15px 25px;
    font-size: 16px;
  }

  .hero_center .arow-btn {
    width: 49px;
    height: 49px;
  }

  .mk-home .title_hero span {
    font-size: 40px;
    margin-bottom: 5px;
  }

  .mk-home .title_hero {
    font-size: 20px;
  }

  .tarif__item {
    gap: 100px;
  }

  .title_hero span {
    font-size: 30px;
  }

  .title_hero {
    font-size: 25px;
  }

  .hero {
    padding: 100px 0 68px;
  }

  .hero_top {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .text_description,
  .text_description span {
    font-size: 16px;
    width: 310px;
  }

  .hero_b-descr {
    font-size: 16px;
    margin-top: 10px;
  }

  .hero_b-start {
    margin: 15px 0;
    gap: 18px;
    font-size: 16px;
  }

  .mk-block {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .mk-text {
    color: #c00909;
    font-size: 16px;
  }

  .text-btn {
    padding: 15px 30px;
    gap: 10px;
    font-size: 16px;
  }

  .arow-btn {
    width: 47px;
    height: 47px;
  }

  .hero_bottom-l {
    padding-right: 30px;
    width: 440px;
  }

  .hero_bottom-r span {
    font-size: 18px;
    padding: 6px 10px;
  }

  .course-fit__item p {
    font-size: 16px;
  }

  .course_bg {
    top: 0;
  }

  .course-fit__bottom-item span {
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 16px;
  }

  .after-l {
    width: 300px;
  }

  .title,
  .title span {
    font-size: 28px;
  }

  .after-r__item .text .text-title,
  .after-r__item .text .text-descr {
    font-size: 16px;
  }

  .after-r__item .num {
    font-size: 36px;
  }

  .after_descr {
    margin-top: 15px;
    font-size: 16px;
  }

  .tarif-title,
  .tarif-title span {
    font-size: 24px;
  }

  .tarif__item-b .price {
    margin-bottom: 20px;
    font-size: 30px;
  }

  .tarif__item-t ul li>div {
    font-size: 16px;
  }

  .tarif__item-t__block>div {
    font-size: 14px;
  }

  .tarif__item-b .price span {
    font-size: 14px;
  }

  .tarif__item:nth-child(1) {
    background-image: url(../images/5_bg-1.webp);
    background-position: bottom right 0px;
  }

  .plan-bottom__wrap-i .right ul li div {
    font-size: 16px;
  }

  .plan-bottom__wrap-i .left .l-title {
    font-size: 16px;
  }

  .about_wrap {
    gap: 25px;
    padding: 30px 20px 0px;
    flex-direction: column;
  }

  .about-img {
    position: relative;
  }

  .about-l {
    max-width: 100%;
    gap: 25px;
  }

  .about-l_bottom>div {
    padding: 10px 20px;
    font-size: 16px;
  }

  .about-r {
    width: 100%;
    gap: 30px;
  }

  .about-r__img {
    margin-top: 20px;
    display: flex;
    justify-content: flex-start;
    gap: 0px;
  }

  .about-r__img .img {
    padding: 13px;
  }

  .about-r_top p {
    margin-top: 15px;
    font-size: 16px;
  }

  .text-btn svg {
    width: 15px;
    height: 15px;
    aspect-ratio: 1/1;
  }

  .benefit-item p {
    font-size: 16px;
  }

  .faq-top_title {
    font-size: 20px;
  }

  .main-footer .container {
    flex-wrap: wrap;
  }

  .course-fit__item p br,
  .after-r__item .text .text-descr br,
  .offer--title br,
  .mentors--item .text br,
  .offer--title br {
    display: none;
  }

  .marvelous-course--inner .title,
  .course-mar_wrap,
  .course-mar_bg {
    max-width: none;
  }

  .course-mar_bg {
    opacity: 0.5;
    background: linear-gradient(180deg,
        #d9dcdf -15.64%,
        rgba(217, 220, 223, 0) 7.49%,
        rgba(217, 220, 223, 0) 76.87%,
        #d9dcdf 100%);
    transform: translateX(50%);
    right: 50%;
  }

  .after-tabs .tab,
  .plan-tabs .tab {
    font-size: 16px;
  }

  .plan-mar-top-inner p,
  .after_descr {
    font-size: 14px;
  }

  .tarif-descr2 {
    max-width: 240px;
    margin-top: 6px;
    font-size: 14px;
  }

  .marvelous-page .tarif__item-new-b-price,
  .marvelous-page .tarif__item-new-price {
    font-size: 28px;
  }

  .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;
  }

  .tarif_line p,
  .tarif__item .or p {
    font-size: 16px;
  }

  .tarif__item-b-mar .item p {
    padding: 10px 20px;
    font-size: 16px;
  }

  .marvelous-page .about-r_top p {
    margin-top: 15px;
  }

  .marvelous-page .about-img {
    bottom: 0;
    max-width: 760px;
    left: 0;
  }
}

@media screen and (max-width: 840px) {
  .container {
    width: 600px;
  }

  .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-price,
  .marvelous-page .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-b {
    flex-direction: column;
    gap: 20px;
    align-items: start;
  }

  .marvelous-page .tarif__item-new {
    gap: 50px;
    justify-content: start;
  }

  .br {
    display: none;
  }

  .substance-page .hero_bg {
    max-width: 800px;
    top: 180px;
  }

  .substance-about .inner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .substance-page .marvelous-course .course-fit__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 40px;
  }

  .substance-page .after_bg {
    max-width: 550px;
    left: 0px;
    position: static;
    margin: 16px 0 0;
  }

  .plan-s_bg {
    position: absolute;
    width: 500px;
    top: 80px;
    right: 0;
    opacity: 0.5;
  }

  .substance-page .plan .container {
    min-height: 300px;
  }

  .stay-substance__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
    position: relative;
  }

  .stay-substance .img {
    position: absolute;
    z-index: -1;
    min-width: 420px;
  }

  .stay-substance {
    overflow: hidden;
  }

  .substance-page .hero_bottom-l {
    gap: 15px;
  }

  .substance-page .text-h-innner .text,
  .substance-page .text-h-innner .text span {
    font-size: 16px;
    text-transform: uppercase;
  }

  .mk-tarif--text {
    font-size: 14px;
  }

  .marvelous-page .about-img img {
    display: block;
    margin-bottom: -1px;
  }

  .courses-fit__item {
    min-height: 405px;
  }

  .courses-fit__item:nth-child(2),
  .courses-fit__item:nth-child(1) {
    background-size: 60%;
  }

  .about-text {
    max-width: 160px;
  }

  .mk-block {
    flex-direction: column;
    align-items: start;
  }

  .mk-home .hero {
    padding: 90px 0 0px;
    height: auto;
  }

  .courses--title {
    font-size: 20px;
  }

  .courses--subtotal {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .courses--data {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .courses-fit__item {
    display: flex;
    flex-direction: column;
    padding: 20px 20px;
  }

  /* .courses-fit__item {
    background-repeat: no-repeat;
    background-position: center right -30px;
    background-size: 60%;
  } */
  .mk-home .hero_bottom {
    padding-top: 120px;
  }

  .mk-home .hero_bg {
    top: 180px;
  }

  .mk-home .course-fit__item {
    gap: 10px;
  }

  .course-fit__item--text>div {
    color: #0b0b0b;
    font-size: 16px;
  }

  .gallery_wrap,
  .mentors-wrap,
  .offer__wrap,
  .courses-fit_wrap {
    margin-top: 40px;
  }

  .offer__wrap {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .reviews--btn {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav {
    width: 40px;
    height: 40px;
    padding: 5px;
  }

  .raiting p {
    color: #0b0b0b;
    font-size: 14px;
  }

  .raiting img {
    width: 100px;
  }

  .reviews--left_top .img {
    width: 115px;
    flex-shrink: 0;
  }

  .mentors--item .name,
  .mentors--item .name span {
    font-size: 18px;
  }

  .mentors--item .text,
  .mentors--item .text span {
    font-size: 14px;
  }

  .mk-home .title_hero span {
    font-size: 34px;
    margin-bottom: 5px;
  }

  .mk-home .title_hero {
    font-size: 18px;
  }

  /* .tarif__item:nth-child(1) {
    background-position: bottom right -290px;
  } */
  .after-l {
    position: static;
    height: auto;
  }

  .hero {
    padding: 80px 0 30px;
    min-height: 95vh;
  }

  .hero_bg {
    top: 125px;
  }

  .hero_bottom-r {
    gap: 20px;
    justify-content: flex-start;
    width: 440px;
  }

  .contact_footer>div {
    margin-top: 40px;
  }

  .footer__inner {
    gap: 30px;
    flex-wrap: wrap;
  }

  .hero_center {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .text_description,
  .text_description span {
    font-size: 14px;
    width: 100%;
    text-align: start;
  }

  .wrap__logo {
    width: 158px;
    height: 33.247px;
  }

  .header .text-btn {
    padding: 10px;
    font-size: 14px;
  }

  button.menu {
    border-radius: 60px;
    background: #000;
    padding: 4px;
    width: 35px;
    height: 35px;
  }

  .hero_bottom {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .title_hero {
    font-size: 24px;
  }

  .hero_bottom-text,
  .hero_bottom-text span {
    font-size: 16px;
  }

  .hero_b-descr {
    font-size: 14px;
    margin-top: 10px;
  }

  .data {
    font-size: 16px;
  }

  .course-fit_wrap {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 10px;
  }

  .section_top {
    margin-top: 70px;
  }

  .course-fit__item p {
    font-size: 14px;
  }

  .course-fit .container {
    gap: 40px;
  }

  .title,
  .title span {
    font-size: 24px;
  }

  .course-fit__bottom .text {
    font-size: 18px;
  }

  .course-fit__bottom-item span {
    font-size: 14px;
  }

  .after-course .container {
    gap: 127px;
    flex-direction: column;
  }

  .after-l {
    width: 100%;
  }

  .after_bg {
    max-width: 690px;
    left: -85px;
    top: 70px;
  }

  .after-r__item {
    gap: 10px;
    padding: 20px 15px;
  }

  .tarif__item:nth-child(1) .black-button {
    max-width: 100%;
  }

  .tarif__wrap {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    grid-template-columns: repeat(1, 1fr);
  }

  .tarif__item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 20px;
    gap: 18px;
  }

  .text-btn {
    font-size: 14px;
  }

  .plan-wrap {
    margin-top: 40px;
    gap: 10px;
  }

  .plan-top_title,
  .plan-top_title span {
    font-size: 16px;
  }

  .plan-bottom__wrap-i .right ul {
    gap: 10px;
  }

  .time {
    font-size: 14px;
  }

  .plan .data {
    font-size: 14px;
  }

  .plan-bottom__wrap-i .right ul li div {
    font-size: 14px;
  }

  .plan {
    background-image: url(../images/bg_6-1.webp);
    background-size: 370px;
  }

  .about-title,
  .about-title span {
    font-size: 24px;
  }

  .about-text p {
    font-size: 14px;
  }

  .about-l_bottom>div {
    font-size: 14px;
  }

  .about-r__title,
  .about-r__title span {
    font-size: 16px;
  }

  .about-r_top p {
    font-size: 14px;
  }

  .last-bg {
    background-size: cover;
    background-position: center bottom;
  }

  .main-footer .container {
    padding-bottom: 20px;
    flex-direction: column;
  }

  .benefit_wrap {
    margin-top: 40px;
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .benefit_wrap .benefit-item:nth-child(1) {
    grid-column: 1;
  }

  .benefit-item p {
    font-size: 14px;
  }

  .questions .container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .form .black-button {
    margin-top: 30px;
  }

  .questions-r .text {
    margin-top: 15px;
    font-size: 14px;
  }

  .questions-l,
  .questions-r {
    padding: 30px 20px;
  }

  .questions .title,
  .questions .title span {
    font-size: 30px;
  }

  .questions .contact_footer div .img {
    width: 48px;
    height: 48px;
  }

  .faq-top_title {
    font-size: 16px;
  }

  .f-top {
    gap: 20px;
  }

  .faq_wrap {
    margin-top: 40px;
    gap: 20px;
  }

  .f-bottom>div {
    font-size: 14px;
  }

  .contact_footer div .img {
    width: 43px;
    height: 43px;
  }

  .footer_social-title,
  .footer_social-title span {
    color: #fff;
    font-size: 14px;
    max-width: 310px;
    width: 100%;
  }

  .footer_social-wrap .img {
    width: 40px;
    height: 40px;
  }

  .footer_social-wrap .img img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .after-r_wrap {
    height: auto;
    overflow: visible;
  }

  .mk-simple-text * {
    margin-top: 15px;
    line-height: 28px;
    font-size: 16px;
  }

  .marvelous-page .hero_bottom-l {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .marvelous-page .hero_bg {
    top: 200px;
  }

  .marvelous-course--inner {
    gap: 40px;
  }

  .course-mar__item p,
  .tarif-descr,
  .tarif_line p,
  .tarif__item .or p {
    font-size: 14px;
  }

  .tarif-descr {
    max-width: 300px;
  }

  .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;
  }

  .after-tabs .tab,
  .plan-tabs .tab {
    font-size: 14px;
  }

  .plan-mar-top {
    margin-top: 40px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    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;
  }

  .substance-page .tarif__wrap {
    grid-template-columns: 1fr;
  }

  .substance-page .tarif-announcement {
    grid-column: 1 / 2;
  }

  .tarif-announcement-title *,
  .tarif-announcement-title {
    font-size: 24px;
  }

  .tarif-announcement-item {
    font-size: 14px;
  }

  .tarif-announcement-price {
    font-size: 24px;
  }

  .tarif-announcement .text-btn {
    padding: 15px 30px;
  }

  .tarif-announcement .arow-btn {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .substance-page .tarif-announcement {
    background-position: left;
  }
}

@media screen and (max-width: 640px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }

  .courses-fit__item:nth-child(2),
  .courses-fit__item:nth-child(1),
  .courses-fit__item {
    background-size: 80%;
  }

  .last-bg {
    overflow: hidden;
  }

  .last-bg-img {
    position: absolute;
    bottom: 36%;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: -1;
    justify-content: center;
  }

  .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;
  }

  .mk-home .after-course {
    padding: 0;
  }

  .plan-bottom__wrap-i {
    grid-template-columns: 1fr;
  }

  .hero_bottom-r {
    gap: 10px;
    width: 100%;
  }

  .arow-btn svg {
    width: 16px;
    height: 16px;
  }

  .course_bg {
    top: 25%;
  }

  .after_bg {
    max-width: 530px;
    left: -40px;
    top: 100px;
  }

  .hero_bg {
    top: 250px;
    width: 95%;
  }

  .after-r__item .text .text-title,
  .after-r__item .text .text-descr {
    font-size: 14px;
  }

  .after-r__item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }

  .after-r__item .line {
    width: 45px;
    height: 2px;
  }

  .footer__inner {
    gap: 10px;
    flex-wrap: wrap;
  }

  .hero_bottom-l {
    width: 100%;
  }

  .hero_bottom-r .text {
    font-size: 14px;
  }

  .hero_bottom-r span {
    font-size: 16px;
    padding: 6px 10px;
  }

  .text-btn {
    padding: 15px 20px;
    gap: 10px;
  }

  .gallery_wrap .swiper-slide {
    max-height: 192px;
    border-radius: 10px;
  }

  .marvelous-course .course-fit__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 40px;
  }

  .tarif__item-b-mar .item {
    justify-content: space-between;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-direction: column;
  }

  .marvelous-page .hero_bg {
    top: 260px;
    min-width: 450px;
  }
}

@media screen and (max-width: 600px) {
  .header .text-btn {
    padding: 10px;
    font-size: 12px;
  }

  .wrap__logo {
    width: 145px;
    height: 33.247px;
  }

  div.menu>div {
    display: flex;
    gap: 4px;
    align-items: center;
  }

  .substance-page .hero_bg {
    min-width: 530px;
    top: 260px;
    right: 10px;
  }

  .substance-page .course-mar_bg {
    position: absolute;
    min-width: 500px;
    top: 60px;
  }

  .hero {
    overflow: hidden;
  }

  .substance-about .text .item .title,
  .substance-about .text .item p {
    font-size: 14px;
  }

  .tarif__item-s {
    padding: 20px;
  }

  .tarif__item-s .price {
    font-size: 24px;
  }

  .tarif__item-s .price-wrap p,
  .stay-substance__inner .text {
    font-size: 14px;
  }

  .tarif__item-s .img img {
    position: absolute;
    min-width: 420px;
    top: 0;
    left: 0;
  }

  .tarif__item-s .img {
    position: relative;
    height: 140px;
  }

  .tarif__item-s .price-wrap {
    gap: 10px;
  }
}

@media screen and (max-width: 500px) {
  .offer__wrap {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }

  .offer__item .img {
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
  }

  .mk-home .title_hero span {
    font-size: 24px;
    margin-bottom: 0px;
  }

  .mk-home .title_hero {
    font-size: 16px;
  }

  .mk-home .hero_bg {
    top: 225px;
  }

  .after-r__item .num {
    font-size: 30px;
  }

  .reviews--left {
    gap: 20px;
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
  }

  .gallery--top {
    gap: 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: column;
  }

  .mk-home .hero {
    padding: 82px 0 0px;
    height: auto;
  }
}

@media screen and (max-width: 360px) {
  .hero_bg {
    top: 295px;
    width: 95%;
  }

  .after_bg {
    max-width: 530px;
    left: -40px;
    top: 110px;
  }
}

@media screen and (max-width: 390px) {
  .mk-home .hero_bg {
    top: 250px;
  }
}

@media (max-height: 730px) and (min-height: 610px) and (min-width: 700px) and (max-width: 1300px) {
  .hero {
    padding: 120px 0 50px;
  }

  .title_hero {
    font-size: 35px;
  }

  .title_hero span {
    font-size: 40px;
  }

  .hero_bg {
    top: 130px;
    width: 85%;
  }
}
/*/
  Promotion
/*/
@media screen and (max-width: 1400px){
  .mk-home .hero {
    padding-top: 0;
  }
}
@media screen and (max-width: 1220px){
  .courses-fit__item:nth-child(5),
  .courses-fit__item:nth-child(4) {
    background-position: bottom right;
  }
  .summer_promotion{
    width: 95%;
  }
}
@media screen and (max-width: 1044px){
  .courses-fit__item:nth-child(4){
      background-size: 72%;
  }
  .courses-fit__item:nth-child(5){
    background-position: right calc(50% + 142px);
    background-size: 83%;
  }
  .summer_promotion{
    height: 40%;
    width: auto;
  }
  .summer_promotion img{
    height: 100%;
    width: auto;
  }
  .summer_promotion.summer_promotion--28{
    right: -60px;
  }
  .summer_promotion.summer_promotion--30{
    left: 50px;
    right: auto;
  }
  .sub_hero_banner{
    width: 440px;
  }
  .art-page .tarif__item-b .price span{
      font-size: unset;
  }
}
@media screen and (max-width: 840px){
  .mk-home .hero {
    padding-top: 0;
  }
  .courses-fit__item:nth-child(4),
  .courses-fit__item:nth-child(5){
    background-size: 100%;
  }
}
@media(max-width: 800px){
  .mk-home .hero_banner{
    display: none;
  }
  .mk-home .hero_banner_mobile{
    display: block;
  }
  .mk-home .hero_bg{
    /* 412px -> 147px, плавно до 800px -> 116px */
    top: clamp(116px, calc(147px - (100vw - 412px) * 31 / 388), 147px) !important;
  }
  .sub_hero_banner,
  .substance-page .hero_bottom-l{
    max-width: 90vw;
  }
}
@media(max-width: 412px){
  .mk-home .hero_bg{
    /* 412px -> 147px, плавно до 375px -> 171px */
    top: clamp(147px, calc(147px + (412px - 100vw) * 24 / 37), 171px) !important;
  }
  .tarif__item-t ul{
    max-width: 73%;
  }
}
@media(max-width: 375px){
  .mk-home .hero_bg{
    /* 375px -> 171px, дальше растёт по 4/3 px (360px -> 191px), без ограничения снизу */
    top: calc(171px + (375px - 100vw) * 4 / 3) !important;
  }
}
@media screen and (max-width: 640px){
  .mk-home .hero_banner_mobile{
    padding: 0;
    width: calc(100% - 40px);
  }
  .summer_promotion.summer_promotion--28{
     right: -147px;
  }
  .summer_promotion.summer_promotion--30{
    left: 0;
  }
  /* .courses-fit__item:nth-child(4){
    background-position: center bottom -20px;
  }
  .courses-fit__item:nth-child(5){
    background-position: center bottom -20px;
  } */
}
/*/
  Promotion end
/*/