@media (max-width: 992px) {
  .header {
    padding: 30px 0 26px 0;
  }

  .hero__iner {
    background-image: url(../img/3d-model768.png);
    background-position-y: 43%;
    background-position-x: 96%;
  }

  .hero__content {
    padding-bottom: 135px;
  }

  .hero__title {
    margin-bottom: 16px;
    font-size: 50px;
  }

  .hero__descr {
    width: 90%;
  }

  .advantage__top {
    padding-left: 254px;
  }

  .advantage__title {
    width: 100%;
  }

  .advantage__top {
    background-size: 213px;
    background-position: 3% 41%;
  }

  .advantage__text {
    padding-left: 0;
    padding-top: 78px;
  }

  .advantage__item {
    background-position: 15px top;
  }

  .advantage__item:nth-child(3) .advantage__text {
    padding-left: 0;
  }

  .advantage .container {
    padding-bottom: 64px;
  }

  .teachers__list {
    flex-wrap: wrap;
  }

  .teachers__item {
    margin-bottom: 22px;
  }

  .teachers .container {
    padding-bottom: 26px;
  }

  .courses .container {
    padding-bottom: 50px;
  }

  .courses__title {
    margin-bottom: 24px;
  }

  .courses__subtittle {
    margin-bottom: 7px;
  }

  .courses__item {
    margin-bottom: 29px;
  }

  .courses__iner {
    min-height: 377px;
  }

  .courses__btn {
    margin-top: auto;
    padding: 20.5px 56px;
  }

  .courses__item span {
    padding: 14px 25px 0 29px;
  }
}

@media (max-width: 768px) {
  .hero {
    background-image: url(../img/hero-bg768.jpg);
  }
}

@media (max-width: 767px) {
  .header {
    padding: 30px 0;
  }

  .header__iner {
    flex-direction: column;
    align-items: center;
  }

  .header__link {
    display: flex;
    justify-content: center;
    margin-bottom: 31px;
  }

  .nav__list {
    justify-content: center;
  }

  .hero__content {
    padding-top: 77px;
  }

  .hero__iner {
    background-image: none;
  }

  .hero__descr {
    width: 70%;
  }

  .advantage__top {
    padding-left: 195px;
  }

  .advantage__top {
    background-size: 151px;
    background-position: 4% 0%;
  }

  .advantage .container {
    padding-bottom: 44px;
  }

  .teachers .container {
    padding-bottom: 50px;
  }

  .courses__iner {
    padding-right: 20px;
    min-height: 474px;
  }

  .courses__subtittle {
    line-height: 130%;
  }

  .courses__btn {
    padding: 20.5px 48px;
  }
}

@media (max-width: 575px) {
  .header {
    padding: 20px 0;
  }

  .header__iner {
    flex-direction: row;
  }

  .header__link {
    justify-content: flex-start;
    margin-bottom: 0;
  }

  .header__link img {
    max-width: 94%;
  }


  .header__nav {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
    padding: 50px;
    width: 50%;
    min-width: 250px;
    height: 100vh;
    box-shadow: 0 0 5px #888;
    background-color: var(--blue-color);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(-120%);
    transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
  }

  .header__nav .nav__list {
    flex-direction: column;
  }

  .header__nav .nav__item:not(:last-child) {
    margin-right: 0;
    margin-bottom: 30px;
  }

  .header__nav .nav__link {
    font-size: 18px;
  }

  .stop-scroll {
    overflow: hidden;
  }

  .header__nav--active {
    visibility: visible;
    transform: none;
  }

  .burger {
    position: relative;
    right: 4px;
    display: block;
    width: 40px;
    height: 40px;
    color: #3172b9;
  }

  .burger--active .burger__line:nth-child(2) {
    opacity: 0;
  }

  .burger--active .burger__line:first-child {
    left: 25%;
    top: 50%;
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, left 0.3s ease-in-out;
  }

  .burger--active .burger__line:last-child {
    bottom: auto;
    left: 25%;
    top: 50%;
    transform: rotate(-45deg);
    transform-origin: center;
    transition: transform 0.3s ease-in-out, top 0.3s ease-in-out, left 0.3s ease-in-out;
  }

  .burger__line {
    position: absolute;
    left: 50%;
    border-radius: inherit;
    width: 20px;
    height: 2px;
    background-color: #fff;
    transform: translateX(-50%);
  }

  .burger__line:nth-child(1) {
    top: 10px;
  }

  .burger__line:nth-child(3) {
    bottom: 12px;
  }

  .burger__line:nth-child(2) {
    top: 47%;
    transform: translateX(-50%) translateY(-50%);
  }

  .hero__content {
    padding-top: 49px;
    padding-bottom: 48px;
  }

  .hero__title {
    margin-bottom: 5px;
    font-size: 30px;
  }

  .hero__descr {
    margin-bottom: 46px;
    width: 100%;
    font-size: 16px;
    line-height: 130%;
  }

  .hero__btn {
    padding: 20px 53.5px;
    font-weight: 700;
    font-size: 16px;
  }

  .advantage .container {
    padding-top: 51px;
    padding-bottom: 48px;
  }

  .advantage__top {
    margin-bottom: 23px;
    padding-left: 15px;
    background-image: none;
  }

  .advantage__title {
    margin-bottom: 2px;
    font-size: 20px;
    line-height: 130%;
  }

  .advantage__list {
    flex-direction: column;
  }

  .advantage__item:not(:last-child) {
    margin-bottom: 31px;
  }

  .advantage__item {
    padding-top: 1px;
    padding-bottom: 1px;
    min-height: 80px;
  }

  .advantage__text {
    padding-top: 0;
    padding-left: 109px;
  }

  .advantage__item:nth-child(3) .advantage__text {
    padding-left: 109px;
  }

  .teachers .container {
    padding-top: 47px;
    padding-bottom: 24px;
  }

  .teachers__item img {
    border-radius: 10% 10% 0 0;
    width: 100%;
  }

  .teachers__title {
    margin-bottom: 26px;
    font-size: 20px;
  }

  .courses .container {
    padding-top: 47px;
    padding-bottom: 20px;
  }

  .courses__title {
    margin-bottom: 26px;
    font-size: 20px;
  }

  .courses__iner {
    padding-right: 30px;
  }

  .courses__btn {
    padding: 20.5px 56px;
  }

  .courses__item:nth-child(3) .courses__subtittle {
    width: 70%;
  }

  .courses__item:nth-child(4) .courses__iner {
    padding-top: 33px;
  }

  .courses__item img {
    width: 100%;
  }
}
