@media (max-width: 1024px) {
    .hero-wrapper {
        gap: 40px;
        flex-direction: column;
    }
    
    .hero-form-container {
        flex: none;
        width: 100%;
        max-width: 500px;
    }
    
    .hero-image {
        width: 100%;
        height: 400px;
        order: -1;
    }
    
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
}


/* ---------- Планшеты и устройства до 768px ---------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    header .header-container {
        /* flex-direction: column;
        gap: 10px;
        text-align: center; */
        padding: 1rem;
    }

.hero {
        padding: 80px 0 40px;
        margin-top: 60px;
    }
    
    .hero-text {
        margin-bottom: 30px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .hero-form-container {
        padding: 30px 25px;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 15px;
    }
}

    .feature-grid,
    .cards-container,
    .stats-container,
    /*.testimonial-grid,*/
    .footer-container {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .benefit-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }

    .travel-image {
        height: 250px;
    }

    .form-control {
        max-width: 100%;
    }

  
    /* Скрываем обычное меню на мобильных */
.nav {
    display: none !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
    padding: 80px 2rem 2rem;
    transition: right 0.3s ease;
    z-index: 999;
  }


   /* Показываем меню когда активно */
.nav.active {
    display: block !important;
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 1.1rem;
    padding: 0.8rem 0;
    display: block;
  }
  
.burger {
    display: flex !important;
  }

  /* Анимация бургера в крестик */
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Затемнение фона при открытом меню */
  .nav.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

/* Для старых браузеров */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .nav-link::after,
  .burger span,
  .nav {
    transition: none;
  }
}

/* ---------- Смартфоны до 480px ---------- */
@media (max-width: 480px) {
    .logo {
    font-size: 1.5rem;
  }
  
  .nav {
    width: 100%;
    right: -100%;
  }
  
  .nav.active {
    right: 0;
  }
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    section {
        padding: 50px 0;
    }

/*    .hero {
        padding: 100px 0 60px;
        min-height: 70vh;
    }*/

     .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-form-container {
        padding: 25px 20px;
    }
    
    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .hero-image {
        height: 250px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .card,
    .feature-item,
    .testimonial-item {
        padding: 20px;
    }

    footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        gap: 20px;
    }

    .social-links {
        justify-content: center;
    }
}