/* ===== GENERAL MOBILE STYLES ===== */


/* Для экранов до 1024px */

/* HOME PAGE */
@media (max-width: 1024px) {
  .nav {
    width: 500px;

  }
  .nav.active .nav-menu {
  padding: 90px 0px 0px 20px;
  }

  .nav.active {
    width: 500px;
  }
}


/* Для экранов до 992px */

@media (max-width: 992px) {

}
 


/* Для экранов до 768px */

@media (max-width: 768px) {

/* HOME PAGE */

.gif-container {
  left:200px;
  top: 70px;
  }

.responsive-gif {
  height: auto; /* Сохранение пропорций */
}
  
.nav {
    width: 500px;
    left: 120px;
    z-index: 10; /* Навигация остается поверх фона */
  }

.nav.active .nav-menu {
    padding: 90px 0px 0px 40px;
    }

.expand-button {
    z-index: 20; /* Кнопка остается поверх навигации */
  }

.nav.active {
    position: absolute;
    width: 500px;
    left: 120px;
    gap: 10px;
    padding: 140px 0px 0px 10px;
  }

.nav-menu a {
    font-size: 50px;
    line-height: 64px;
  }

.home-footer {
    z-index: 5; /* Footer остается поверх фона */
  }
    
}
  
/* Для экранов до 425px */

@media (max-width: 425px) {
 /* HOME PAGE */
 body {
  height: 100vh;
  overflow-y: hidden;
}

main {
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.home-info {
  top: 20px;
  margin-right: 100px;
  }

.gif-container {
  left:60px;
  top: 70px;
  }

.responsive-gif {
  width: 300px; /* Уменьшаем ширину изображения */
  height: auto; /* Сохранение пропорций */
}
  
.nav {
    width: 350px;
    left: 36px;
}

.nav.active .nav-menu {
    padding: 90px 0px 0px 20px;
    }

.nav.active {
    position: absolute;
    width: 350px;
    height: 590px;
    left: 36px;
    gap: 30px;
    padding: 80px 0px 0px 10px;
  }

.nav-menu a {
    font-size: 32px;
    line-height: 48px;
  }

.home-footer {
  position: absolute;
  display: flex;
  bottom: 40px;
  }
}

/* Для экранов до 375px */

@media (max-width: 375px) {

  /* HOME PAGE */
  body {
    height: 100vh;
    overflow-y: hidden;
  }

  main {
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .gif-container {
    left:36px;
    top: 70px;
    }
  
  .responsive-gif {
    width: 300px; /* Уменьшаем ширину изображения */
    height: auto; /* Сохранение пропорций */
  }
    
  .nav {
      width: 350px;
      left: 12px;

    }
  
  .nav.active .nav-menu {
      padding: 90px 0px 0px 20px;
      }
  
  .nav.active {
      position: absolute;
      width: 350px;
      left: 12px;
      gap: 30px;
      padding: 80px 0px 0px 10px;
    }
  
  .nav-menu a {
      font-size: 32px;
      line-height: 48px;
    }
  
}
