.main {
  padding: 80px 0;
  position: relative;
}

.text-btn.icon-btn {
  padding: 16px 25px;
  font-size: 18px;
}

.page-dark {
  --red: #d71424;

  .about-r_top p,
  .text-title,
  .text-descr {
    color: #fff;
  }

  .arow-btn,
  .text-btn {
    background: #fff;
    color: var(--btn);
  }

  .icon-btn.text-btn path {
    fill: var(--btn);
    stroke: var(--btn);
  }
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 80px);
}

.hero_center {
  display: block;
  position: relative;
  z-index: 1;
  max-width: 845px;
}

.title_hero,
.title_hero span {
  min-width: auto;
}

.hero_image {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  bottom: 0;
  transform: translateX(-20%);
  display: flex;
  align-items: flex-end;
}

.page-dark .hero_bottom-text .color-red {
  color: var(--red);
}

.course-mar_bg {
  z-index: 0;
}

.course-block--inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.course-block--inner .title {
  max-width: 50%;
}

.page-dark .course-fit__bottom-item span {
  border-color: var(--gray);
  color: var(--text);
}

.after_bg,
.page-dark .after_bg {
  position: relative;
  max-width: 400px;
  padding: 0 20px;
  top: 0;
  left: 0;
  z-index: -1;
}

.fit-criteria {
  position: relative;
  overflow: hidden;
}

.after-tabs {
  margin-top: 20px;
}

.criteria-bg {
  position: absolute;
  top: 0;
  left: 48%;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
  z-index: 1;
}

.is-wide .criteria-bg {
  left: 0;
  background-position: center;
  z-index: 0;
}

.is-wide .course-mar_wrap {
  display: grid;
  max-width: none;
  grid-template-columns: 1fr 1fr;
}

.course-bottom {
  align-items: end;
}

.page-dark .course-mar__item p {
  color: var(--light);
}

.tarif__item {
  display: flex;
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 50px;
  border-radius: 20px;
  gap: 25px;
  min-height: 850px;
  background-position: top 50% right;
  background-size: 90%;
  background-repeat: no-repeat;

  &.has-badge {
    border: 1px solid var(--red);
    background-position: top 50% right;
  }
}

/* remove after main.min can be removed */
.tarif__item:first-child {
  background-position: top 50% right;
}

.tarif__item:nth-child(3) {
  grid-area: 1 / 2 / 3 / 3;
  min-height: 400px;
}

.tarif__badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  padding: 18px 0;
  background: var(--red);
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.5px;
  transform: rotate(38deg) translate(44%, 65%);
  transform-origin: top right;
}

.tarif__banner {
  border-radius: 20px;
  overflow: hidden;
  line-height: 0;
}

.tarif__item-t {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tarif__item-title span {
  color: var(--btn);
  font-size: 40px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}

.tarif__item-title .color-red {
  color: var(--red);
  font-weight: 500;
}

.tarif__item-t ul {
  margin: 0;
}

.tarif__item-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tarif__item-point {
  display: flex;
  align-items: center;
  gap: 8px;

  span,
  p {
    color: var(--main);
    font-size: 18px;
  }

  p {
    line-height: 0;
    opacity: 0.8;
  }

  svg {
    fill: var(--gray);
    width: 20px;
    height: 20px;
  }

  &.color-red {
    span,
    p {
      color: var(--red);
      font-weight: 500;
    }
    p {
      font-size: 32px;
    }
    svg {
      fill: var(--red);
    }
  }
}

.tarif__item-b {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.tarif__item-b-text {
  color: var(--gray);
}

.tarif__item-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;
}

.tarif__item-b-price-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tarif__item-b-price {
  color: var(--btn);
  font-size: 44px;
  font-weight: 700;
  text-transform: uppercase;
}

.tarif__item-b-price-old {
  color: var(--main);
  font-size: 32px;
  font-weight: 500;
  text-decoration: line-through var(--red);
}

.tarif__item:nth-child(3) .tarif__item-b {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 15px;
}

.tarif__item .black-button .text-btn {
  min-width: 100%;
  padding: 20px 25px;
}

.tarif__item-b > .black-button {
  flex: 1;
  width: 100%;
  align-self: stretch;
}

.tarif__item-b > .black-button .text-btn {
  flex: 1;
  min-width: 0;
}

.page-dark {
  .tarif__item-point {
    span,
    p {
      color: var(--light);
    }
    svg {
      fill: var(--light);
    }

    &.color-red {
      span,
      p {
        color: var(--red);
      }
      svg {
        fill: var(--red);
      }
    }
  }

  .tarif__item-b-text {
    color: var(--text);
  }

  .tarif__item-b-price,
  .tarif__item-title span {
    color: #fff;
  }
  .tarif__item-b-price-old {
    color: var(--text);
  }

  .plan-mar-top-inner p {
    color: var(--light);
  }

  .plan-module_title {
    color: #fff;
  }

  .plan-lesson {
    background: rgba(217, 220, 223, 0.2);
    backdrop-filter: blur(15px);
    border-color: transparent;
  }
}

/*  
 * PLAN
 */

.plan {
  background-image: none;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 20px;
}

.plan .container {
  position: relative;
  overflow: visible;
}

/* tabs */
.plan-mar-top {
  margin-top: 50px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}

.plan-tabs {
  display: flex;
  gap: 20px;
  padding: 10px;
  width: max-content;
}

.plan-tabs .tab {
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 60px;
  color: var(--btn);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  background-color: transparent;
  transition: 0.4s all;
}

.plan-mar-top-text {
  position: relative;
  display: flex;
  align-items: center;
}

.plan-mar-top-text p {
  position: absolute;
  left: 0;
  z-index: 0;
  opacity: 0;
  transition: 0.3s all;
}

.plan-mar-top-text p.active {
  position: relative;
  z-index: 1;
  opacity: 1;
}

.plan-mar-top-inner {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.plan-mar-top-inner p {
  color: var(--gray);
  font-size: 18px;
  font-weight: 400;
  text-transform: uppercase;
}

.plan-mar-top-inner .l-block {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* plan block */

.plan--inner {
  display: grid; /* creates one implicit grid cell */
  margin-top: 50px;
}

.plan-wrap.tabContent {
  margin: 0;
  grid-area: 1 / 1; /* stack all tab-content divs in the exact same cell */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;

  /* remove the old absolute positioning approach entirely */
  position: static;
  top: auto;
}

.plan-wrap.tabContent.active {
  opacity: 1;
  pointer-events: auto;
}

.plan-mar_bg {
  z-index: -1;
  position: absolute;
  top: -100px;
  height: calc(40vh + 100px);
  width: 100%;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease-in;

  &:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 70%, #d9dcdf 85%);
    bottom: -1px;
  }
}

.page-dark {
  .plan-mar_bg {
    &:after {
      background: linear-gradient(180deg, transparent 70%, var(--main) 95%);
    }
  }
}

.plan-wrap.active .plan-mar_bg {
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

/* module item */
.plan-module {
  padding: 25px;
  cursor: pointer;
}

.plan-close {
  width: 32px;
  height: 32px;
  aspect-ratio: 1/1;
  transition: 0.3s all;
}

.plan-module.active .plan-close {
  transform: rotate(-90deg);
}

.plan-module_title {
  color: var(--btn);
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
}

.plan-content {
  padding: 0;
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: all 0.3s;
}

.plan-module.active .plan-content {
  padding-top: 30px;
  grid-template-rows: 1fr;
}

.plan-content__wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 0;
  font-size: 18px;
  font-weight: 400;
}

/* lesson */
.plan-lesson__block {
  display: grid;
  align-items: start;
  gap: 20px;
  grid-template-columns: auto 1fr;
}

/* left */
.plan-lesson {
  width: 224px;
  padding: 15px 20px;
  border-radius: 20px;
  min-height: 100px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 2px solid #fff;
  gap: 12px;

  &.red-frame {
    border-color: var(--red);
  }
}

.page-dark {
  .plan-lesson-lesson {
    gap: 12px;
    background: rgba(217, 220, 223, 0.2);
    backdrop-filter: blur(15px);
    border-color: rgba(217, 220, 223, 0.2);

    &.red-frame {
      border-color: var(--red);
    }
  }
}

.plan-lesson-title {
  color: var(--btn);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
}

.page-dark .plan-lesson-title {
  color: #fff;
}

.plan-lesson-subtitle {
  font-size: 14px;
  color: var(--text);
  margin-top: 5px;
}

.page-dark .plan-lesson-subtitle {
  color: var(--light);
}

.plan-lesson-text {
  color: var(--text);
  font-size: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
  path {
    stroke: var(--text);
  }
}

.page-dark .plan-lesson-text {
  path {
    stroke: var(--light);
  }
}

.data {
  letter-spacing: -0.36px;
  font-weight: 600;
  svg {
    margin-right: 3px;
  }
}

/* right */
.plan-lesson-description ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 10px 0 0;

  li {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  img {
    width: 24px;
    height: 24px;
    aspect-ratio: 1/1;
  }

  div {
    color: #000;
    font-size: 18px;
    font-weight: 400;
    flex: 1;
  }
}

.page-dark .plan-lesson-description ul div {
  color: var(--text);
}

/* Mentor */
.about_wrap {
  min-height: 540px;
}

.about__inner {
  background-size: auto 90%;
  background-position: left 30% bottom;
  background-repeat: no-repeat;
}
.about-r {
  width: 500px;
  gap: 45px;
}

.about-r__img {
  margin-top: 20px;
}

.about-r__img .img {
  padding: 15px;
}

.about-r .text-btn svg {
  fill: #fff;
  stroke: #fff;
}

.about-img {
  bottom: -15px;
  max-width: 30%;
  left: 20%;
}

.after-relative {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 10px;
}

/* last-bg */
.background-section {
  background-size: contain;
  background-position: center bottom;
  background-repeat: no-repeat;
  height: 100vh;
  position: absolute;
  bottom: 0;
  width: 100%;
  z-index: 0;

  &::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(217 220 223 / 50%);
    backdrop-filter: blur(3px);
    z-index: 0;
  }
}

.page-dark .background-section::before {
  background-color: rgb(var(--main) / 50%);
  backdrop-filter: blur(3px);
}

.page-dark .gallery {
  .arow-btn,
  .text-btn {
    background: var(--btn);
    color: #fff;
  }

  .icon-btn.text-btn path {
    fill: #fff;
    stroke: #fff;
  }
}

/* ============ Responsive ============ */

@media screen and (max-width: 1440px) {
  .plan-mar_bg {
    right: -80px;
  }

  .about_wrap {
    min-height: 500px;
  }
}

@media screen and (max-width: 1366px) {
  .hero_image {
    width: 70%;
  }
}
@media screen and (max-width: 1220px) {
  .hero_b-start {
    margin: 0;
  }

  .section_top {
    margin-top: 100px;
  }

  .criteria-bg {
    left: 45%;
    width: 65%;
    height: 95%;
    background-position: left bottom;
  }

  .about-img {
    left: -50px;
  }

  .course-block {
    overflow: hidden;
  }

  .page-dark .plan {
    background-image: none;
  }

  .plan-mar_bg {
    min-height: 0;
    height: 400px;
    right: 0;
  }

  .plan-module {
    max-width: 700px;
  }

  .tarif__item {
    padding: 40px;
    min-height: 800px;
  }

  .tarif__item-title span {
    font-size: 36px;
    line-height: 1.1;
  }

  .tarif__item-t ul {
    gap: 10px;
    max-width: 78%;
  }

  .tarif__item-b {
    gap: 10px;
  }

  .tarif__item-b-price {
    font-size: 38px;
  }

  .tarif__item-b-price-old {
    font-size: 30px;
  }

  .about__inner {
    background-size: auto 75%;
    background-position: left 25% bottom;
  }

  .about_wrap {
    padding: 50px;
    min-height: 450px;
  }
}

@media screen and (max-width: 1044px) {
  .icon-btn.text-btn {
    padding: 9px 30px;
  }
  .text-btn {
    padding: 14px 30px;
  }

  .text-btn svg {
    width: 30px;
    height: 30px;
  }

  .page-dark .hero,
  .hero {
    padding: 0;
    min-height: calc(100vh - 150px);
    height: calc(100vh - 150px);
  }

  .hero_image {
    align-items: center;
    left: 50%;
    top: -20%;
    z-index: 0;
  }

  @media screen and (max-height: 500px) {
    .hero_image {
      top: 0;
      width: 600px;
    }
  }

  .criteria-bg {
    left: 40%;
    width: 75%;
    height: 100%;
    z-index: -1;
  }

  .tabsBlock {
    gap: 10px;
    padding: 6px;
  }

  .tabsBlock .tab {
    padding: 8px 14px;
    font-size: 16px;
  }

  .after-r__item {
    gap: 15px;
    padding: 20px;
  }

  .after_bg,
  .page-dark .after_bg {
    max-width: 100%;
    padding: 0;
  }
  .course-block--inner .title {
    max-width: none;
  }

  .tarif__item {
    padding: 35px;
    min-height: 670px;
  }

  .tarif__item,
  .tarif__item:first-child {
    background-position: top 50% right;
    background-size: 95%;
  }

  .tarif__item:nth-child(3) {
    min-height: 690px;
  }

  .tarif__item-title span {
    font-size: 30px;
    line-height: 1.1;
  }

  .tarif__badge {
    padding: 14px 0;
    font-size: 16px;
    transform: rotate(38deg) translate(45%, 65%);
  }

  .tarif__item-b-price {
    font-size: 32px;
  }

  .tarif__item-b-price-old {
    font-size: 24px;
  }

  .tarif__item .black-button .text-btn {
    padding: 14px 25px;
  }

  .plan {
    padding: 0 0 50px;
  }

  .plan-module {
    padding: 20px;
  }

  .plan-mar_bg {
    right: -80px;
  }

  .plan-lesson {
    width: 200px;
  }

  .plan-module_title {
    font-size: 20px;
  }

  .about__inner {
    background-size: auto 77%;
    background-position: left 22% bottom;
  }

  .about_wrap {
    padding: 35px 45px;
    min-height: 380px;
  }

  .about-title,
  .about-title span {
    font-size: 26px;
  }
  .about-l_bottom > div {
    font-size: 14px;
  }

  .about-r {
    width: 400px;
    gap: 35px;
  }

  .about-r__title,
  .about-r__title span {
    font-size: 16px;
  }

  .about-r__img .img {
    padding: 8px;
  }

  .about-r_top p {
    margin-top: 15px;
    font-size: 14px;
  }

  .about-img {
    bottom: 0;
    max-width: 760px;
    left: 0;
  }

  .benefit_wrap {
    grid-template-rows: auto;
  }

  .benefit-item {
    padding: 20px;
    gap: 15px;
  }
}

@media screen and (max-width: 840px) {
  .section_top {
    margin-top: 80px;
  }

  .main {
    padding: 80px 0;
  }

  .hero {
    .container.hero_image {
      top: 0;
      z-index: 1;
      height: calc(100% - 200px);
      width: 100%;
      transform: translateX(-50%);
      padding: 0 20px;
      display: flex;
      align-items: flex-end;
    }
  }

  @media screen and (max-height: 820px) {
    .hero {
      .container.hero_image {
        z-index: 0;
      }
    }
  }

  .text-btn {
    padding: 14px 30px;

    &.icon-btn {
      padding: 13px 30px;
    }

    svg {
      width: 22px;
      height: 22px;
    }
  }

  .course-block--inner {
    gap: 40px;
  }

  .course-bottom {
    flex-direction: column;
    align-items: start;
    gap: 30px;
  }

  .course-fit__bottom-item {
    margin-top: 12px;
  }

  .course-fit__bottom .text {
    font-size: 16px;
  }

  .criteria-bg {
    left: 40%;
    width: 80%;
    background-position: left top 35%;
  }

  .after-l {
    width: 100%;
    padding: 0 0 40px;
    min-height: 400px;
  }

  .after_bg,
  .page-dark .after_bg {
    padding: 0 10px;
    margin: 0 auto;
    max-width: 280px;
  }

  .tabsBlock {
    margin: 30px 0 0;
  }

  .after-r {
    position: relative;
    flex: 1;
  }

  .after-r__item {
    background-color: hsla(0, 0%, 100%, 0.9);
  }

  .tarif__item-title {
    padding-right: 30px;
  }

  .tarif__item,
  .tarif__item:first-child {
    background-position: top 30% right;
    background-size: 80%;
  }

  .tarif__item .black-button .text-btn {
    padding: 14px 25px;
  }

  .plan {
    padding: 0;
  }

  .plan--inner {
    padding: 300px 0 0;
  }

  .plan-mar-top {
    align-items: flex-start;
    margin: 0;
  }

  .plan-mar_bg {
    right: 50%;
    top: -30px;
    height: 370px;
    transform: translateX(50%);
    background-position: bottom center;
    background-size: contain;
  }

  .l-duration,
  .time,
  .plan .data {
    font-size: 15px;
  }

  .about-l {
    flex-direction: column;
  }
  .about_wrap {
    flex-direction: row;
    padding: 30px 35px;
  }

  .about-l_top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }

  .about-r {
    width: 100%;
  }

  .about-l_bottom > div {
    padding: 8px 20px;
  }

  .about__inner {
    background-size: auto 70%;
    background-position: left 5% bottom;
  }
}

@media screen and (max-width: 640px) {
  .section_top {
    margin-top: 70px;
  }

  .title,
  .title span {
    font-size: 22px;
    line-height: 1.5;
  }

  .text-btn {
    font-size: 16px;
  }

  .hero {
    .container.hero_image {
      height: calc(100% - 200px);
      padding: 0 10px;
    }
  }

  .hero_top {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .title_hero {
    font-size: 22px;
    line-height: 1.5;
  }

  .title_hero span {
    font-size: 26px;
    display: inline-block;
  }

  .hero_bottom-l {
    gap: 15px;
  }

  .hero_bottom-l .black-button {
    margin-top: 20px;
  }

  .hero_bottom-text,
  .hero_bottom-text span {
    font-size: 15px;
  }

  .after-l {
    position: relative;
    top: 0;
  }

  .criteria-bg {
    left: 0;
    width: 100%;
    background-position: center;
  }

  .course-mar__item p {
    font-size: 15px;
  }

  .course-block--inner {
    gap: 30px;
  }

  .course-fit__bottom-item span {
    padding: 8px 18px;
  }

  .tabsBlock {
    margin: 20px 0 0;
  }

  .after_descr {
    padding-left: 10px;
  }

  .after_bg,
  .page-dark .after_bg {
    max-width: 100%;
    height: 480px;
    text-align: center;

    img {
      height: 100%;
      width: auto;
    }
  }

  .tarif__wrap {
    margin-top: 30px;
  }
  .tarif__item-title span {
    font-size: 24px;
  }

  .tarif__item,
  .page-dark .tarif__item,
  .tarif__item:first-child,
  .page-dark .tarif__item:nth-child(2) {
    background-position: top 40% right;
    background-size: 77%;
    min-height: 580px;
    padding: 30px;
  }
  .tarif__badge {
    padding: 12px 0;
    font-size: 14px;
  }

  .tarif__item-point {
    span,
    p {
      font-size: 16px;
    }
  }

  .tarif__item-point {
    &.color-red {
      p {
        font-size: 30px;
      }
    }
  }

  .tarif__item-b-price {
    font-size: 30px;
  }

  .tarif__item-b-price-old {
    font-size: 20px;
  }

  .plan {
    padding: 0;
  }

  .plan-lesson__block {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .plan-module.active .plan-content {
    padding-top: 20px;
  }

  .plan-lesson {
    width: 100%;
    padding: 15px 18px;
    border-radius: 15px;
    min-height: 60px;
    gap: 8px;
  }

  .plan-lesson-description ul {
    padding: 0;
    gap: 12px;
    padding: 0 0 0 18px;
    div {
      font-size: 16px;
    }
    img {
      width: 22px;
      height: 22px;
    }
  }

  .plan-content-title {
    font-size: 16px;
  }

  .plan-content-text {
    font-size: 14px;
  }

  .about_wrap {
    flex-direction: column;
    padding: 25px 30px;
    min-height: 0;
    gap: 250px;
    background: linear-gradient(0deg, var(--light) 20%, transparent 60%);
  }

  .about__inner {
    background-position: center bottom 55%;
    background-size: contain;
  }

  .about-title,
  .about-title span {
    font-size: 24px;
  }

  .about-l_top {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .about-text {
    max-width: 150px;
    flex-direction: row-reverse;
    text-align: right;
  }

  .about-l_bottom {
    flex-direction: column;
    justify-content: flex-start;
    gap: 5px;
    flex-wrap: wrap;
  }

  .about-l_bottom > div {
    padding: 8px 18px;
  }

  .about-r {
    gap: 20px;
  }

  .about-r__title,
  .about-r__title span {
    font-size: 14px;
  }

  .about-r__img {
    margin-top: 10px;
    gap: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    .img {
      padding: 0;
      width: 70px;
    }
  }

  .about-r_top p {
    margin-top: 0;
  }
}

@media screen and (max-width: 430px) {
  .section_top {
    margin-top: 60px;
  }
  .title,
  .title span {
    font-size: 20px;
  }

  .text-btn {
    font-size: 15px;
    padding: 13px 30px;
    &.icon-btn {
      font-size: 16px;
    }
  }

  .title_hero {
    font-size: 22px;
  }
  .title_hero span {
    font-size: 26px;
  }
  .hero_bottom {
    width: 100%;
  }
  .hero_bottom-l {
    gap: 15px;
    padding: 20px;
  }
  .hero_bottom-text,
  .hero_bottom-text span {
    font-size: 14px;
    text-align: right;
  }

  .course-mar__item {
    padding: 15px 20px;
    gap: 15px;
  }

  .course-mar__item p {
    font-size: 14px;
  }

  .course-fit__bottom .text {
    font-size: 15px;
  }

  .course-fit__bottom-item {
    margin-top: 10px;
  }

  .course-bottom {
    gap: 20px;
  }

  .page-dark .after-course .container {
    gap: 130px;
    overflow: visible;
  }

  .after_bg,
  .page-dark .after_bg {
    height: 400px;
  }

  .after_descr {
    margin-top: 10px;
    font-size: 15px;
  }

  .course-mar_wrap {
    padding: 228px 0 0;
  }

  .is-wide .course-mar_wrap {
    grid-template-columns: 1fr;
  }

  .criteria-bg {
    background-position: top 30px center;
    background-size: 300px;
    height: 100%;
    z-index: 1;
  }

  .is-wide .criteria-bg {
    background-position: top 100px center;
    z-index: 0;
    background-size: contain;
  }

  .tarif__item,
  .page-dark .tarif__item,
  .page-dark .tarif__item:nth-child(2),
  .tarif__item:first-child {
    background-position: top 46% right;
    background-size: 90%;
    min-height: 530px;
    padding: 25px;
  }

  .tarif__badge {
    padding: 10px 0;
    font-size: 13px;
    transform: rotate(38deg) translate(46%, 65%);
  }
  .tarif__item-t {
    gap: 15px;
  }
  .tarif__item-title span {
    font-size: 22px;
  }
  .tarif__item-t ul {
    gap: 8px;
    max-width: 75%;
  }
  .tarif__item-point {
    span,
    p {
      font-size: 15px;
    }
  }

  .tarif__item-b {
    gap: 8px;
  }

  .tarif__item-b-text {
    font-size: 14px;
  }

  .tarif__item-b-price {
    font-size: 28px;
  }

  .tarif__item .black-button .text-btn {
    padding: 14px 25px;
  }

  .plan-mar-top-inner p {
    font-size: 15px;
  }

  .plan-module {
    padding: 15px 20px;
  }
  .plan-module_title {
    font-size: 18px;
  }

  .plan-module.active .plan-content {
    padding: 20px 0;
  }

  .plan-lesson {
    padding: 15px;
    min-height: 0;
  }

  .plan-lesson-title {
    font-size: 16px;
  }

  .plan-lesson-description ul {
    gap: 10px;
    padding: 0 0 0 10px;
    li {
      align-items: self-start;
    }
    img {
      width: 20px;
      height: 20px;
    }
    div {
      font-size: 15px;
    }
  }

  .plan-lesson-text {
    .img {
      width: 22px;
      line-height: 0;
    }
  }

  .l-duration,
  .time,
  .plan .data {
    font-size: 14px;
    gap: 4;
  }

  .about__inner {
    background-position: center top 65%;
  }

  .about_wrap {
    padding: 25px 25px 10px;
    gap: 200px;
    background: linear-gradient(0deg, var(--light) 30%, transparent 62%);
  }
  .about-title,
  .about-title span {
    font-size: 20px;
  }

  .about-l_bottom > div {
    font-size: 12px;
    padding: 7px 16px;
  }

  .about-r__title,
  .about-r__title span {
    font-size: 13px;
  }

  .about-r__img {
    .img {
      padding: 0;
      width: 65px;
    }
  }

  .about-r_top p {
    margin-top: 15px;
    font-size: 13px;
  }

  .gallery {
    padding: 3rem 0;
  }
  .gallery--top {
    gap: 12px;
  }
}

@media screen and (max-height: 430px) {
  .page-dark .hero,
  .hero {
    min-height: auto;
    height: auto;
  }
}
