/* ==========================================================================
   Firefighting Robot Store — responsive rules
   Breakpoints: 1200 / 1024 / 900 / 768 / 560 / 400
   ========================================================================== */

@media (max-width: 1200px) {
  :root { --container: 1080px; }
  .nav a { padding: 10px 10px; font-size: 14px; }
  .brand-name { font-size: 17px; }
  .hero h1 { max-width: 18ch; }
}

@media (max-width: 1080px) {
  .header-actions .btn { padding: 12px 16px; }
}

/* ------------------------------------------------------------ tablet: nav */
@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav { display: block; }
  .header-inner { justify-content: space-between; }
  .header-actions { gap: 10px; }
  .topbar-left span { display: none; }

  .hero-slides, .hero-body { min-height: 560px; }
  .hero-body { padding-block: 72px 104px; }
  .hero-controls { bottom: 24px; }

  .section { padding: 68px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .products-layout { grid-template-columns: 1fr; gap: 28px; }
  .filter-panel { position: static; }
  .filter-panel h2 { display: none; }
  .filter-list { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
  .filter-list li { flex: none; }
  .filter-list a {
    border: 1px solid var(--line);
    border-left-width: 1px;
    border-radius: 100px;
    padding: 9px 16px;
    font-size: 13.5px;
    white-space: nowrap;
    background: #fff;
  }
  .filter-list a.is-active { border-color: var(--navy); background: var(--navy); color: #fff; }
  .filter-list small { color: inherit; opacity: .7; }
  .filter-help { display: none; }

  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-list { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------- small tablet */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--rev .split-media { order: 0; }
  .split-media.is-offset::after { display: none; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .product-hero-grid { grid-template-columns: 1fr; }
  .gallery-main { aspect-ratio: 4 / 3; padding: 20px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 26px; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .stat-band .container { grid-template-columns: repeat(2, 1fr); }
  .quote-block p { font-size: 19px; }
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  body { font-size: 15.5px; }

  .topbar .container { min-height: 34px; }
  .topbar-right { gap: 16px; font-size: 11.5px; }
  .topbar-left { display: none; }

  .brand img { height: 32px; }
  .brand-name { font-size: 15px; letter-spacing: .01em; }
  .brand-sub { font-size: 9px; letter-spacing: .12em; }

  .hero-slides, .hero-body { min-height: 520px; }
  .hero-body { padding-block: 60px 96px; }
  .hero h1 { font-size: clamp(29px, 7.6vw, 38px); max-width: none; }
  .hero-sub { font-size: 15px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-arrows { display: none; }
  .hero-controls .container { justify-content: space-between; }
  .hero-count { font-size: 11.5px; }

  .section { padding: 54px 0; }
  .section-head { margin-bottom: 28px; }
  .section-head h2 { font-size: clamp(23px, 5.4vw, 30px); }
  .section-head p { font-size: 15px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 18px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-item figcaption { font-size: 11.5px; padding: 20px 12px 10px; }

  .page-hero-inner { padding-block: 44px 46px; }
  .page-hero p { font-size: 15px; }
  .breadcrumb { margin-bottom: 16px; font-size: 11.5px; }

  .cta-inner { padding: 46px 0; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 46%; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  .form-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 22px 18px; }
  .detail-aside { grid-template-columns: 1fr; }
  .spec-table { font-size: 13px; }
  .spec-table th, .spec-table td { padding: 9px 11px; }
  .spec-table th { width: 44%; }

  .product-body { padding: 18px 16px 20px; }
  .product-foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .product-foot .btn { width: 100%; }
  .product-foot .link-arrow { justify-content: flex-start; }

  .fab-stack { right: 14px; bottom: 16px; }
  .fab { width: 46px; height: 46px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 560px) {
  .hero-slides, .hero-body { min-height: 480px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .stat-band .container { grid-template-columns: 1fr; }
  .stat { padding: 18px 20px; }
  .adv-card { padding: 24px 20px; }
  .pagination button { min-width: 36px; height: 36px; font-size: 13px; }
  .case-body, .product-body { padding-left: 16px; padding-right: 16px; }
  .quote-block { padding-left: 18px; }
  .doc-card { flex-direction: row; padding: 18px; }
  .footer-social a { width: 34px; height: 34px; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand img { height: 30px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .header-actions .btn { padding: 11px 12px; }
  .header-actions .btn svg { width: 15px; height: 15px; }
  .header-actions .btn span { display: none; }
}
