.mk-home {
  .hero {
    padding: 0;
    min-height: calc(50vw);
    height: fit-content;
    position: relative;
  }

  .hero_banner {
    display: block;
    height: auto;
    margin: 0 auto 36px;
    border-radius: 20px;
  }

  .hero_banner_mobile {
    display: none;
  }

  .title_hero,
  .title_hero span {
    font-size: 24px;
    font-weight: 400;
  }

  .title_hero span {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .hero_center {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }

  .courses-fit .courses-fit_wrap {
    overflow: hidden;
  }

  .after-course {
    padding: 150px 0;
    background-image: url(../../images/benef-bg.webp);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }
}

.mk-block {
  margin: 10px 0 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.mk-text {
  color: var(--red);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
}

.page-dark .mk-block {
  margin: 20px 0;
  justify-content: space-between;
}

.courses-fit_wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 50px;
}

.courses--title {
  color: var(--btn);
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
}

.courses--subtotal {
  margin-bottom: 20px;
  color: var(--btn);
  font-size: 24px;
  font-weight: 500;
  text-transform: uppercase;
  max-width: 60%;
  line-height: 1.3;
}

.courses--subtotal:has(span) {
  display: flex;
  gap: 20px;
  align-items: center;
}

.courses-fit__item {
  display: flex;
  flex-direction: column;
  padding: 35px 30px;
  min-height: 270px;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: contain;
}

.courses--bottom {
  flex: 1;
  display: flex;
  align-items: end;
}

.courses--data {
  margin-bottom: 20px;
  color: var(--red);
  font-size: 18px;
  font-weight: 400;
}

.mentors {
  overflow: hidden;
}

.mentors .mentorsSwiper {
  overflow: visible;
}

.mentors-wrap {
  margin-top: 50px;
  gap: 20px;
}

.mentors .top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.mentors--item {
  height: 100%;
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mentors-wrap .year {
  padding: 10px 20px;
  width: max-content;
  border-radius: 50px;
  background: #fff;
  color: var(--red);
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  position: absolute;
  top: 20px;
  left: 20px;
}

.mentors--item .img {
  max-height: 360px;
  overflow: hidden;
  margin-bottom: 10px;
}

.mentors--item .name,
.mentors--item .name span {
  color: var(--btn);
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
}

.mentors--item .name span {
  font-weight: 600;
}

.mentors--item .text,
.mentors--item .text span {
  color: var(--btn);
  font-size: 18px;
  font-weight: 400;
}

.mentors--item .text span {
  font-weight: 600;
}

.mentors--bottom-btn {
  flex: 1;
  display: flex;
  align-items: end;
}

.mentors--bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

@media screen and (min-width: 1660px) {
  .mk-home {
    .hero {
      min-height: 0;
      padding: 0 0 150px;
    }
  }
}

@media screen and (max-width: 1400px) {
  .mk-home .hero {
    padding: 0 0 68px;
  }

  .mk-home .hero_top {
    margin-bottom: 5px;
  }

  .mk-home .hero_center {
    gap: 15px;
  }
}

@media screen and (max-width: 1220px) {
  .courses--title {
    font-size: 28px;
  }

  .courses--subtotal {
    margin-top: 10px;
    font-size: 20px;
  }

  .mentors--item .img {
    max-height: 300px;
  }
}

@media screen and (max-width: 1044px) {
  .mk-home .title_hero span {
    font-size: 40px;
    margin-bottom: 5px;
  }

  .mk-home .title_hero {
    font-size: 20px;
  }
  .mk-home .after-course {
    padding: 80px 0;
    background-size: cover;
  }
  .mk-block {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .mk-text {
    color: var(--red);
    font-size: 16px;
  }

  .courses-fit__item {
    min-height: 380px;
    justify-content: start;
    background-position: bottom right;
    position: relative;
  }

  .courses-fit__item:after {
    content: "";
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, white, transparent);
    z-index: -2;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
  }
  .courses--bottom {
    flex: 0;
  }

  .mentors-wrap .year {
    top: 41%;
    font-size: 14px;
  }
  .mentors--item .img {
    max-height: 230px;
  }

  .mentors--item .text,
  .mentors--item .text span {
    font-size: 16px;
  }

  .mentors--item .name,
  .mentors--item .name span {
    font-size: 22px;
  }
  .mentors--item .img {
    max-height: 230px;
  }

  .mentors--bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
  }
}

@media screen and (max-width: 840px) {
  .mk-home .hero {
    padding: 0;
    height: auto;
  }

  .mk-home .hero_bottom {
    padding-top: 120px;
  }

  .mk-home .title_hero span {
    font-size: 34px;
    margin-bottom: 5px;
  }

  .mk-home .title_hero {
    font-size: 18px;
  }

  .mk-block {
    flex-direction: column;
    align-items: start;
  }

  .courses--title {
    font-size: 20px;
  }

  .courses--subtotal {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .courses--data {
    margin-bottom: 15px;
    font-size: 16px;
  }

  .courses-fit__item {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 25px;
  }

  .mentors-wrap,
  .courses-fit_wrap {
    margin-top: 40px;
  }

  .mentors--item {
    padding: 25px;
    gap: 15px;
  }
  .mentors--item .img {
    max-height: 220px;
  }

  .mentors--item .name,
  .mentors--item .name span {
    font-size: 18px;
  }

  .mentors--item .text,
  .mentors--item .text span {
    font-size: 14px;
  }
}
@media (max-width: 800px) {
  .mk-home .hero_banner {
    display: none;
  }

  .mk-home .hero_banner_mobile {
    display: block;
  }

  .mk-home .hero_bg {
    top: 120px;
  }
}
@media screen and (max-width: 640px) {
  .mk-home .hero_banner_mobile {
    padding: 0;
    width: calc(100% - 40px);
    margin: 0 auto 36px;
  }
  .mk-home .hero_top {
    margin-bottom: 10px;
    font-size: 15px;
  }
  .mk-home .title_hero span {
    font-size: 28px;
    margin-bottom: 5px;
  }

  .mk-home .title_hero {
    font-size: 18px;
  }
  .mk-home .after-course {
    padding: 0;
  }

  .courses-fit__item {
    background-size: cover;
    background-position: top right -70px;
    min-height: 280px;

    &:after {
      background: linear-gradient(135deg, white 30%, transparent);
    }
    .mk-block {
      margin: 0;
    }
  }

  .courses--subtotal {
    max-width: 90%;
    font-size: 16px;
  }

  .mentors-wrap .year {
    top: 41%;
  }

  .mentors--item .img {
    text-align: center;

    img {
      width: auto;
      height: 100%;
    }
  }

  .last-bg-img {
    position: absolute;
    top: 16%;
    bottom: unset;
    display: flex;
    left: 50%;
    transform: translateX(-50%);
    width: 125%;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .mk-home .hero_bg {
    top: 160px;
  }
  .courses-fit__item:after {
    background: linear-gradient(135deg, white 40%, transparent);
  }

  .courses--subtotal {
    font-size: 16px;
  }
}

@media screen and (max-width: 380px) {
  .mk-home .hero_bg {
    top: 190px;
  }
}
