@media  (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    .hero__h1 {
        font-size: 50px;
        margin-bottom: 20px;
    }
    .section__h3 {
        
        font-size: 17px;
      
    }
    .hero__padding__col__img {
        padding-top: 130px;
        padding-bottom: 135px;
      }
      .advantages__icon {
       
        height: 190px;
      }
      .advantages__wrapper_logo {
        flex-direction: column;
        gap: 15px;
        align-items: start;
      }
      .advantages__logo__text {
        width: 100%;
        min-height: 73px;
    }
    .advantages {
        padding: 80px 0 70px 0;
    }
    .advantages__text {
        width: 88%;
    }
    .mb {
        margin-bottom: 15px;
    }
    .courses {
        padding: 80px 0 56px 0;
    }


    .courses__wrapper_img {
        max-width: 100%;
       
       
    }

    .courses__wrapper {
        height: 580px;
    }

    .courses__wrapper__info {
      
        min-height: 390px;
    }
    .courses__btn {
        align-self: flex-end;
        margin-right: auto;
    }

}

@media ( max-width: 768px) {
    .container {
        max-width: 510px;
    }
    .header {
        height: 135px;
      }
      .hero__padding__col {
        padding-top: 74px;
      
    }
    .hero {
    
        min-height: 566px;
    }
    .hero__padding__col__img {
        display: none;
    }
    .sm__view {
        display: block;
      }
    .header__nav__wrapper {
        display: none;
    }
    .header__link {
        font-size: 18px;
        line-height: 21px;
    }

    .header__wrapper {
        justify-content: center;
        margin-bottom: 30px;
    }
    .advantages {
        padding: 70px 0 70px 0;
    }
    .advantages__wrapper_logo {
        gap: 0px;
    }
    
    .advantages__text {
        width: 100%;
    }
    .courses__wrapper_img_1 {
        background-image: url(../img/courses/courses_1_sm.png);
       
      }
    
      .courses__wrapper_img_2 {
        background-image: url(../img/courses/courses_2_sm.png);
      }
      .courses__wrapper_img_3 {
        background-image: url(../img/courses/courses_3_sm.png);
      }
      .courses__wrapper_img_4 {
        background-image: url(../img/courses/courses_4_sm.png);
      }

      .courses__wrapper {
        height: 653px;
       
    }
    .courses {
        padding: 59px 0 56px 0;
    }

    .courses__wrapper__info {
        min-height: 473px;
        padding: 35px 16px 20px 20px;
    }
    .courses__btn {
        width: 180px;
        height: 60px;
        align-self: center;
        margin-right: 0;
    }
    .footer {
        padding-top: 50px;
    }
}
@media ( max-width: 575px) {
    .container {
        max-width: 310px;
    }
    .sm__view {
        display: none;
    }
    .header {
        height: 80px;
        position: relative;
    }
    .header__logo img {
        width: 80%;
    }
    .header__logo {
        margin-right: 55%;
    }
    .burger  {
        display: block;
    }

    .burger {
    position: relative;
    display: block;
    
    width: 20px;
    height: 25px;
    border: none;
    background-color: #3F2AFF;;
    z-index: 6;
    align-self: flex-end;

  }


  .burger__line {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    transform: translateX(-50%);
    background-color: #fff;

  }

  .burger__line:nth-child(1) {
    top: 0;

  }
  .burger__line:nth-child(2) {
  top: 30%;
  transform: translateX(-50%) translateY(-50%);

  }
  .burger__line:nth-child(3) {
  bottom: 10px;
}

.nav__close {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: -6px;
    top: -30px;
    width: 100%;
    height: 100vh;
    z-index: 7;
    padding: 15px;
    background-color:  #2F2C45;;
  
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(-150%);
    transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
  }
  
  .new__close {
    margin-left: auto;
    margin-bottom: 22px;
    width: 30px;
    height: 30px;
  }
  .header.open .nav__list__header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    width: 100vh;

    
  
  }
  .nav__list {
  
    gap: 0;
  
  }
  .header.open .new__close {
    display: block;
  }
  .header.open .nav__close {
    transform: translateX(0%);
    visibility: visible;
  }
  .header__nav {
    max-width: 100%;
  }
  

    .hero {
        min-height: 355px;
    }
    .hero__h1 {
        font-size: 30px;
        margin-bottom: 5px;
    }
    .section__h2 {
        font-size: 20px;
        line-height: 100%;
    }
    .hero__h2 {
        font-size: 16px;
        line-height: 130%;
        margin-bottom: 25px;
    }
    .hero__padding__col {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .hero__btn {
        width: 213px;
        height: 60px;
    }
    .advantages {
        padding: 45px 0 45px 0;
    }

    .advantages__icon {
       display: none;
      }
      .advantages__h2 {
        font-size: 20px;
        line-height: 130%;
      }
      .advantages__wrapper_logo {
        flex-direction: row;
        gap: 20px;
      }
      .advantages__wrapper_logo:not(:last-child) {
        margin-bottom: 30px;
      }
      .advantages__logo__text {
        max-width: 180px;
    }
    .teachers {
        padding: 50px 0 30px 0;
        
    }
    .teachers__img {
        height: 189px;
        
    }
    .courses {
        padding: 59px 0 38px 0;
    }
    .courses__wrapper__info {
       
        padding: 35px 31px 20px 20px;
    }
    .courses__wrapper {
        height: 677px;
    }
    .courses__btn {
        align-self: flex-start;
      
    }
    .footer {
        padding-top: 0;
    }
    
}