/* ═══════════════════════════════════════
   RESPONSIVE — breakpoints z HTML-shablonu
   ═══════════════════════════════════════ */

/* Planshet landscape */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-right { display: none; }
  .cta-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobilnyi */
@media (max-width: 640px) {
  .topbar-left { display: none; }
  .search-bar { display: none; }
  .header-phone { display: none; }
  .header-main { gap: 16px; padding: 12px 16px; }
  .trust-items { grid-template-columns: 1fr 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .brands-row { justify-content: center; }
  .promo-left { padding: 32px; }
  .promo-left h2 { font-size: 28px; }
  .promo-left h2 .big { font-size: 40px; }
  .cta-section { padding: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
  .hero { padding: 48px 0 56px; }
  .hero-stats { gap: 24px; }
  .hero-stat .num { font-size: 24px; }
  .hero-cta { flex-direction: column; gap: 12px; }
  .hero-cta .btn-accent,
  .hero-cta .btn-white-outline {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════
   NAV-BAR — mobilnyi burger (vid 768px i nyzhche)
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-bar { position: relative; }

  .nav-inner {
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .sc-nav-burger { display: inline-flex; }

  /* Primary menu — slide-down panel pid nav-barom */
  .nav-bar .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--primary-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
    z-index: 99;
    box-shadow: var(--shadow-lg);
  }

  .nav-bar.nav-open .nav-links {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
  }

  .nav-bar .nav-links li { width: 100%; }
  .nav-bar .nav-links li a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  /* Mega menu kataloha — adaptyvna shyryna */
  .sc-mega-menu {
    width: calc(100vw - 32px);
    max-width: 360px;
  }
}

/* Dribni ekrany — pidtysnuty hero i topbar */
@media (max-width: 480px) {
  .logo-tagline { font-size: 9px; letter-spacing: 0.04em; }
  .logo-name { font-size: 19px; }
  .topbar { font-size: 12px; padding: 8px 0; }
  .nav-catalog-btn { padding: 14px 16px; font-size: 13px; }
}
