/* =============================================
   XMedia Monster — Адаптивные стили
   Mobile-first: 480px, 768px, 1024px
   ============================================= */

/* --- Tablet (≤ 1024px) --- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-row a {
    font-size: 12px;
    padding: 4px 10px;
  }
}

/* --- Tablet (≤ 768px) --- */
@media (max-width: 768px) {
  :root {
    --section-pad: 40px;
  }

  /* Header */
  .nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10,10,10,0.98);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .nav-wrapper.open {
    display: flex;
  }

  .nav-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-row a {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    width: 100%;
    font-size: 15px;
  }

  .nav-row a:last-child {
    border-bottom: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  /* Hero */
  .hero-title {
    font-size: 36px !important;
  }

  .hero-subtitle {
    font-size: 16px !important;
  }

  /* Stats */
  .stats-row {
    justify-content: center;
  }

  .stat-item {
    flex: 1 1 calc(50% - 16px);
    min-width: 120px;
  }

  /* Grids */
  .grid-3 { grid-template-columns: 1fr 1fr !important; }
  .grid-4 { grid-template-columns: 1fr 1fr !important; }
  .grid-6 { grid-template-columns: 1fr 1fr !important; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Carousel */
  .carousel-track {
    gap: 16px;
  }

  /* Steps */
  .steps-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Packages */
  .packages-grid {
    grid-template-columns: 1fr !important;
  }

  /* Team */
  .team-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Page hero */
  .page-hero {
    padding: 120px 0 40px;
  }

  /* Contacts */
  .contacts-grid {
    grid-template-columns: 1fr !important;
  }

  /* About stats */
  .about-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* --- Mobile (≤ 480px) --- */
@media (max-width: 480px) {
  :root {
    --section-pad: 32px;
  }

  .btn-lg {
    min-width: unset;
    width: 100%;
    max-width: 320px;
  }

  .hero-title {
    font-size: 28px !important;
  }

  .section-title {
    font-size: 24px;
  }

  .grid-3,
  .grid-4,
  .grid-6 {
    grid-template-columns: 1fr !important;
  }

  .steps-grid {
    grid-template-columns: 1fr !important;
  }

  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-item {
    flex: 1 1 100%;
  }

  .hero-trust {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .video-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .portfolio-grid {
    columns: 1 !important;
  }

  .calculator-options {
    flex-direction: column;
  }

  .packages-grid {
    grid-template-columns: 1fr !important;
  }

  .modal-box {
    padding: 20px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .filter-bar {
    flex-direction: column;
  }
}

/* --- Large screens (≥ 1400px) --- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}
