@media (max-width: 1100px) {
  .bmw-header-inner { gap: 16px; }
  .bmw-header-cta { display: none; }
  .bmw-footer-top { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .bmw-footer-brand { grid-row: span 2; }
}

@media (max-width: 920px) {
  :root { --bmw-header-height: 68px; }
  .admin-bar .bmw-site-header { top: 46px; }
  .bmw-header-inner { grid-template-columns: 1fr auto; }
  .bmw-header-brand { min-width: 0; }
  .bmw-primary-nav {
    position: fixed;
    z-index: 1001;
    top: var(--bmw-header-height);
    right: 0;
    width: min(88vw, 380px);
    height: calc(100dvh - var(--bmw-header-height));
    overflow-y: auto;
    padding: 22px;
    background: #fff;
    border-left: 1px solid var(--bmw-border);
    box-shadow: -18px 0 45px rgba(15,23,42,.12);
    transform: translateX(105%);
    transition: transform .2s ease;
  }
  .admin-bar .bmw-primary-nav { top: calc(var(--bmw-header-height) + 46px); height: calc(100dvh - var(--bmw-header-height) - 46px); }
  .bmw-primary-nav.is-open { transform: translateX(0); }
  .bmw-menu { display: block; }
  .bmw-menu > li { display: grid; grid-template-columns: 1fr auto; border-bottom: 1px solid var(--bmw-border); }
  .bmw-menu > li > a { min-height: 50px; padding-left: 0; background: transparent !important; }
  .bmw-submenu-toggle { display: grid; }
  .bmw-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    display: none;
    padding: 0 0 14px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .bmw-menu li.submenu-open > .sub-menu { display: block; }
  .bmw-menu .sub-menu::before { display: none; }
  .bmw-menu .sub-menu a { padding: 9px 0; }
  .bmw-menu-toggle { display: inline-grid; }
  .bmw-search-toggle { display: inline-grid; }
  .bmw-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bmw-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bmw-calculator-shell { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .bmw-container, .bmw-reading-container { width: min(calc(100% - 28px), var(--bmw-container)); }
  .bmw-content-shell { padding: 32px 0 58px; }
  .bmw-section { padding: 54px 0; }
  .custom-logo { max-height: 44px; max-width: 220px; }
  .bmw-wordmark { font-size: 1.28rem; }
  .bmw-search-panel-inner { padding-top: 14px; padding-bottom: 16px; }
  .bmw-search-form { flex-direction: column; }
  .bmw-search-form .bmw-btn { width: 100%; }
  .bmw-grid-2, .bmw-grid-3, .bmw-grid-4 { grid-template-columns: 1fr; }
  .bmw-result-grid { grid-template-columns: 1fr; }
  .bmw-calculator-card, .bmw-result-card { padding: 20px; }
  .bmw-footer-top { grid-template-columns: 1fr 1fr; gap: 30px 22px; }
  .bmw-footer-brand { grid-column: 1 / -1; grid-row: auto; max-width: 100%; }
  .bmw-footer-bottom { align-items: flex-start; flex-direction: column; padding: 20px 0; }
  .bmw-empty-state-section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .bmw-footer-top { grid-template-columns: 1fr; }
  .bmw-header-actions { gap: 7px; }
  .bmw-search-toggle, .bmw-menu-toggle { width: 41px; height: 41px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1100px) {
  .bmw-header-brand { min-width: 220px; }
  .bmw-brand-logo-header { height: 38px; max-width: 255px; }
}
@media (max-width: 767px) {
  .bmw-header-brand { min-width: 0; }
  .bmw-brand-logo-header { height: 34px; max-width: 215px; }
  .bmw-brand-logo-footer { width: min(100%, 280px); }
}
@media (max-width: 390px) {
  .bmw-brand-logo-header { height: 31px; max-width: 195px; }
}
