/* ═══════════════════════════════════════════════
   АВТОБУС ГРУПП — Responsive Styles
   Планшеты: ≤1024px | Мобильные: ≤640px | Маленькие: ≤380px
   ═══════════════════════════════════════════════ */

/* ── Mobile Navigation ── */
.mobile-trigger { display: none; }
@media (max-width: 1023px) {
  .mobile-trigger { display: flex; }
}

/* ── Touch targets ── */
@media (max-width: 1023px) {
  .btn, .btn-primary, .btn-secondary, .btn-green, .btn-brand, .btn-outline,
  .nav-links a, .mobile-link, .footer-link, .eva-trigger, .eva-send,
  .eva-contact-btn, .eva-messenger-link, .fleet-btn, .modal-close {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Планшеты (768px – 1024px) ── */
@media (max-width: 1024px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }

  /* Hero */
  .hero { min-height: auto; padding-top: 90px; padding-bottom: 2rem; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem; }
  .hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); }
  .hero p { font-size: 0.9rem; max-width: 100%; }
  .hero-actions { justify-content: flex-start; }
  .orb-1 { width: 250px; height: 250px; }
  .orb-2 { width: 200px; height: 200px; }

  /* Stats */
  .stat-block .num { font-size: 2rem; }

  /* Services cards */
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .service-card-inner { grid-template-columns: 1fr; }
  .service-card-inner > div:last-child { aspect-ratio: 16/9; max-height: 220px; }
  .service-card-inner > div:first-child { padding: 1.25rem; }
  .service-card-inner img { order: -1; }
  #services .services-grid .service-card {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  #services .services-grid {
    gap: 0.5rem;
  }

  /* Vehicle grid */
  .vehicle-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .vehicle-card { max-width: 100%; }

  /* Fleet carousel */
  .fleet-track .vehicle-card { width: 240px; max-width: 240px; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }

  /* Page hero */
  .page-hero { padding: 7rem 0 3rem; }
  .page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
  .page-hero p { font-size: 0.95rem; }
}

/* ── Мобильные (до 640px) ── */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  .section { padding: 2.5rem 0; }

  /* Hero */
  .hero { min-height: auto; padding-top: 70px; padding-bottom: 0; }
  .hero h1 { font-size: clamp(1.35rem, 5.5vw, 1.8rem); line-height: 1.15; }
  .hero h1 .line { display: inline; }
  .hero h1 .line span { display: inline; transform: none; animation: none; color: #fff; }
  .hero p { font-size: 0.85rem; line-height: 1.6; margin-bottom: 1rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary { width: 100%; justify-content: center; text-align: center; padding: 10px 20px; font-size: 0.8rem; }
  .hero-stats { gap: 0.35rem; margin: 0.75rem 0 1rem; }
  .stat { padding: 0.25rem 0.4rem; }
  .stat-num { font-size: 0.75rem; }
  .stat-label { font-size: 0.55rem; }
  .badge { font-size: 11px; padding: 5px 12px 5px 6px; margin-bottom: 0.75rem; }
  .orb-1 { width: 180px; height: 180px; top: -60px; right: -60px; }
  .orb-2 { width: 150px; height: 150px; bottom: -40px; left: -40px; }

  /* Hero form */
  .hero-form { padding: 1.25rem; border-radius: 16px; }
  .hero-form .input { padding: 0.75rem 0.875rem; font-size: 0.85rem; }

  /* Stats */
  .stat-block { padding: 1rem; }
  .stat-block .num { font-size: 1.75rem; }
  .stat-block .label { font-size: 0.75rem; }

  /* Services cards */
  .services-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .service-card-inner { grid-template-columns: 1fr; }
  .service-card-inner > div:last-child { aspect-ratio: 16/9; max-height: 100px; }
  .service-card-inner > div:first-child { padding: 0.6rem; }
  .service-card-inner h3 { font-size: 0.85rem; }
  .service-card-inner p { font-size: 0.72rem; line-height: 1.3; }
  .service-card { border-radius: 12px; }
  .service-card-inner img { order: -1; }
  #services .services-grid .service-card {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  #services .services-grid {
    gap: 0.75rem;
    margin-bottom: 0;
  }

  /* Why us */
  .why-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Vehicle grid */
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .vehicle-card { max-width: 100%; border-radius: 12px; }
  .vehicle-card img { aspect-ratio: 4/3; }
  .card-body { padding: 0.75rem; }
  .card-body .title { font-size: 0.8rem; }
  .card-body .sub { font-size: 0.7rem; min-height: auto; }

  /* Fleet carousel */
  .fleet-track { gap: 10px; padding: 4px 2px 12px; }
  .fleet-track .vehicle-card { width: 200px; max-width: 200px; }
  .fleet-btn { display: none; }

  /* Category headers */
  .category-header { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 1rem; }
  .category-header h3 { font-size: 1.25rem; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr !important; gap: 1rem; }
  .pricing-grid > div { border-radius: 14px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Clients / Geo */
  .clients-grid,
  .geo-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* How to order */
  .steps-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* Contacts */
  .contacts-grid { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .footer-grid ul { gap: 4px; }
  .footer-col-title { margin-bottom: 4px; }
  .site-footer p { line-height: 1.3; font-size: 13px; }
  .footer-link:hover { transform: none; }

  /* Buttons */
  .btn-primary { padding: 12px 22px; font-size: 0.85rem; border-radius: 40px; }
  .btn-outline { padding: 10px 20px; font-size: 0.85rem; }
  .btn-lg { padding: 0.85rem 1.5rem; font-size: 0.9rem; }

  /* Modal */
  .modal-box { padding: 1.5rem; border-radius: 16px; margin: 0 0.5rem; }

  /* Marquee */
  .marquee-item { padding: 8px 14px; font-size: 12px; }

  /* Section headings */
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.15rem; }
  .tag { font-size: 0.7rem; letter-spacing: 0.18em; }

  /* Fix horizontal scroll */
  body, html { max-width: 100vw; overflow-x: hidden; }

  /* Touch-friendly tap targets */
  a, button, .btn, .nav-links a, .mobile-link {
    min-height: 44px;
    min-width: 44px;
  }

  /* Reduce motion for performance */
  .reveal, .reveal-left, .reveal-right, .reveal-scale {
    transition-duration: 0.4s;
  }
  .card-hover:hover { transform: translateY(-2px) scale(1.005); }
  .vehicle-tile:hover { transform: translateY(-2px) scale(1.01); }

  /* Page hero mobile */
  .page-hero { padding: 6rem 0 2.5rem; }
  .page-hero h1 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
  .page-hero p { font-size: 0.9rem; }
  .page-hero .hero-actions { flex-direction: column; }
  .page-hero .hero-actions .btn { width: 100%; justify-content: center; }
  .breadcrumbs { font-size: 0.8rem; margin-bottom: 1rem; }

  /* Eva widget mobile adjustments */
  .eva-widget { right: 10px; bottom: 80px; width: calc(100vw - 20px); max-width: 360px; }
  .eva-trigger { right: 10px; bottom: 12px; width: 56px; height: 56px; }
  .eva-body { min-height: 240px; max-height: 320px; }
}

/* ── Маленькие мобильные (до 380px) ── */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.2rem; }
  .hero p { font-size: 0.8rem; }
  .vehicle-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .fleet-track .vehicle-card { width: 170px; max-width: 170px; }
  .stat-block .num { font-size: 1.5rem; }
  .btn-primary { padding: 10px 18px; font-size: 0.8rem; }

  .page-hero { padding: 5.5rem 0 2rem; }
  .page-hero h1 { font-size: 1.25rem; }
  .page-hero p { font-size: 0.85rem; }
  .eva-widget { right: 8px; bottom: 72px; width: calc(100vw - 16px); }
  .eva-trigger { right: 8px; bottom: 10px; width: 52px; height: 52px; }
}