/* =============================================
   АДАПТИВНОСТЬ — Mobile First
   Breakpoints: 480 / 768 / 1024
   ============================================= */

/* ---- Tablet 768–1024 ---- */
@media (max-width: 1024px) {
  .header-inner { gap: 16px; }
  .logo-title { font-size: 1.1rem; }
  .nav-link { padding: 8px 10px; font-size: 0.82rem; }
  .header-phones { display: none; }
  .hero-title { font-size: 2.4rem; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .catalog-img-wrap { width: 140px; height: 140px; }
  .contacts-grid { gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .process-step { width: 148px; }
  .process-icon-wrap { width: 88px; height: 88px; }
  .process-icon-wrap svg { width: 40px; height: 40px; }
  .process-arrow { font-size: 1.2rem; }
}

/* ---- Mobile < 768 ---- */
@media (max-width: 768px) {
  /* Header */
  .header-nav { display: none; }
  .header-contacts { display: none; }
  .burger-btn { display: flex; }
  .mobile-header-messengers { display: flex; }
  .mobile-header-messengers .messenger-link {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
  .mobile-header-messengers .messenger-icon {
    width: 18px;
    height: 18px;
    max-width: 18px;
    max-height: 18px;
  }

  /* Hero */
  .hero {
    height: 68vh;
    min-height: 360px;
    max-height: 520px;
  }
  .hero-title { font-size: 1.6rem; line-height: 1.3; margin-bottom: 28px; }
  .hero-btn, .btn-price-cta { padding: 14px 32px; font-size: 0.88rem; }

  /* Catalog */
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .catalog-img-wrap { width: 150px; height: 150px; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle br { display: none; }

  /* Quality slider */
  .quality-slide { height: 280px; }

  /* Quality docs */
  .quality-docs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90%;
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 12px 12px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .quality-doc {
    scroll-snap-align: start;
  }
  .quality-docs::-webkit-scrollbar {
    height: 6px;
  }
  .quality-docs::-webkit-scrollbar-thumb {
    background: rgba(45,122,58,0.25);
    border-radius: 999px;
  }

  /* Production */
  .production-gallery { grid-template-columns: 1fr 1fr; }
  .production-img-wrap { height: 160px; }

  /* Process */
  .process-steps {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .process-step {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
  .process-icon-wrap { width: 84px; height: 84px; flex-shrink: 0; }
  .process-icon-wrap svg { width: 36px; height: 36px; }
  .process-num { width: 28px; height: 28px; font-size: 0.85rem; top: -6px; right: -6px; }
  .process-label { font-size: 1rem; }

  /* Contacts */
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map iframe { height: 300px; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-nav--compact {
    gap: 12px 18px;
  }
  .footer-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-ask-footer { width: auto; max-width: 100%; }

  /* Modal */
  .modal-card { padding: 28px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .thank-you-card { padding: 40px 24px; }
  .thank-you-title { font-size: 1.8rem; }
}

/* ---- Small Mobile < 480 ---- */
@media (max-width: 480px) {
  .hero {
    height: 58vh;
    min-height: 300px;
    max-height: 420px;
  }
  .hero-title { font-size: 1.3rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .catalog-img-wrap { width: 136px; height: 136px; }
  .catalog-name { font-size: 0.78rem; }
  .quality-slide { height: 220px; }
  .quality-docs {
    grid-auto-columns: 90%;
    gap: 10px;
    padding-right: 10px;
  }
  .production-gallery { grid-template-columns: 1fr; }
  .production-img-wrap.prod-wide,
  .production-img-wrap { grid-column: span 1; height: 200px; }
  .section-title { font-size: 1.3rem; }
  .process-step { gap: 12px; }
  .process-icon-wrap { width: 74px; height: 74px; }
  .process-icon-wrap svg { width: 32px; height: 32px; }
  .process-num { width: 26px; height: 26px; font-size: 0.8rem; top: -6px; right: -6px; }
  .modal-title { font-size: 1.25rem; }
}

/* ---- Large Desktop > 1440 ---- */
@media (min-width: 1440px) {
  .catalog-grid { grid-template-columns: repeat(5, 1fr); gap: 36px 24px; }
  .catalog-img-wrap { width: 180px; height: 180px; }
  .hero-title { font-size: 3.5rem; }
}
