/* Layout changes are deliberately limited to phones. */
@media (max-width: 640px) {
  .bia-home-page .landing-shell { display:block; min-height:0; background:#051326; }
  .bia-home-page .brand-header { position:absolute; inset:12px 16px auto; height:72px; min-height:0; padding:0; justify-content:flex-start; pointer-events:none; }
  .bia-home-page .main-brand { width:min(60vw,236px); height:68px; padding:9px 6px; animation:none; }
  .bia-home-page .main-brand img { width:100%; height:100%; max-height:60px; margin:0; object-fit:contain; animation:none; filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 9px rgba(255,255,255,.95))!important; }
  .bia-home-page .logo-glow { inset:-8px -14px; width:auto; height:auto; transform:none; background:radial-gradient(ellipse,rgba(255,255,255,.88),rgba(255,255,255,.18) 58%,transparent 76%)!important; filter:blur(8px)!important; opacity:.9!important; animation:none; }
  .bia-home-page .logo-shine,.bia-home-page .brand-line { display:none; }
  .bia-home-page .home-lang-switcher { position:absolute; top:2px; right:0; pointer-events:auto; gap:5px; }
  .bia-home-page .home-lang-switcher .lang-btn { min-width:40px; min-height:44px; padding:9px; font-size:.7rem; background:rgba(3,16,32,.75); }
  .bia-home-page .portal { display:grid; grid-template-columns:1fr; grid-template-rows:minmax(228px,1.3fr) minmax(150px,1fr) minmax(150px,1fr); height:clamp(540px,calc(100svh - 76px),760px); min-height:0; overflow:hidden; }
  .bia-home-page .portal-panel,.bia-home-page .portal:hover .portal-panel,.bia-home-page .portal:hover .portal-panel:hover { min-height:0; padding:18px 20px; align-items:flex-end; }
  .bia-home-page .operations { padding-top:94px; }
  .bia-home-page .panel-copy { max-width:none; transform:none; }
  .bia-home-page .panel-kicker { margin-bottom:4px; font-size:.62rem; letter-spacing:.14em; }
  .bia-home-page .panel-title-img,.bia-home-page .panel-title-training { width:min(76vw,390px); max-height:58px; object-position:left center; }
  .bia-home-page .panel-subtitle { margin-top:5px; max-width:calc(100% - 44px); font-size:.75rem; line-height:1.35; opacity:1; transform:none; }
  .bia-home-page .panel-arrow { width:34px; height:34px; font-size:1rem; }
  .bia-home-page .partners-track { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; padding:12px; }
  .bia-home-page .partner { height:38px; opacity:1; transform:none; animation:none; }
  .bia-home-page .partner img { max-height:30px; max-width:100%; }

  .training-page .trn-topbar,.ops-page .ops-topbar { position:relative; top:0; padding:8px 12px; background:rgba(3,16,32,.92); }
  .training-page .topbar-shell,.ops-page .topbar-shell { width:100%; min-height:48px; padding:0; gap:8px; }
  .training-page .trn-hero { min-height:0; margin-top:0; }
  .training-page .trn-hero-grid { width:calc(100% - 32px); min-height:0; padding:28px 0 32px; }
  .training-page .trn-logo-wrap { max-width:330px; margin:0 auto 18px; animation:none; }
  .training-page .trn-logo { max-height:108px; object-fit:contain; animation:none; }
  .training-page .trn-logo-shine,.training-page .trn-logo-spark { display:none; }
  .training-page .hero-lead { padding:14px; border-radius:14px; box-shadow:none; }
  .training-page .trn-hero-copy p { font-size:.91rem; line-height:1.6; }
  .training-page .hero-actions { margin-top:16px; gap:9px; }
  .training-page .hero-actions .btn { min-height:46px; padding:10px 14px; font-size:.88rem; }
  .training-page .hero-tags { gap:6px; margin-top:16px; }
  .training-page .section,.ops-page .section { padding-top:38px; padding-bottom:38px; }
  .training-page .section-head { margin-bottom:22px; }
  .training-page .section-head h2 { font-size:2rem; }
  .training-page .section-head p { font-size:.91rem; line-height:1.6; }
  .training-page .program-grid { gap:16px; }
  .training-page .program-card { padding:20px 18px; gap:12px; border-radius:20px; }
  .training-page .program-kicker { margin-bottom:8px; font-size:.66rem; }
  .training-page .program-card h3 { margin:0; font-size:1.7rem; }
  .training-page .program-media { min-height:0; height:112px; margin:8px 0; }
  .training-page .program-media-shell { height:100%; min-height:0; }
  .training-page .program-media-brand { max-height:76px; object-fit:contain; }
  .training-page .bia-mobile-course-details { border-top:1px solid rgba(255,255,255,.15); margin-top:8px; }
  .training-page .bia-mobile-course-details > summary { min-height:44px; padding:12px 0; cursor:pointer; font-weight:700; color:#ffcfaa; }
  .training-page .program-details-content { display:grid; gap:16px; padding:8px 0 4px; }
  .training-page .program-details-content p,.training-page .program-details-content li { font-size:.9rem; line-height:1.6; }
  .training-page .card-actions { gap:10px; }
  .training-page .card-actions a { min-height:44px; display:inline-flex; align-items:center; }
  .ops-page .ops-hero { min-height:0; margin-top:0; }
  .ops-page .ops-hero-grid { min-height:0; padding:28px 0 36px; }
  .ops-page .ops-logo-wrap { max-width:330px; margin:0 auto 18px; }
  .ops-page .hero-actions { gap:9px; margin-top:18px; }

  .equipment-page .eq-topbar { position:relative; padding:8px 12px 0; top:0; }
  .equipment-page .topbar-shell { width:100%; min-height:54px; padding:8px 0; gap:8px; flex-wrap:wrap; }
  .equipment-page .topbar-home { font-size:.85rem; }
  .equipment-page .topbar-cta { display:none; }
  .equipment-page .topbar-cart { margin-left:auto; font-size:.85rem; white-space:nowrap; min-height:44px; display:inline-flex; align-items:center; }
  .equipment-page .lang-switcher { gap:4px; }
  .equipment-page .lang-btn { min-height:44px; padding:9px; }
  .equipment-page .eq-hero { min-height:0; margin-top:0; }
  .equipment-page .eq-hero-grid { width:calc(100% - 28px); padding:26px 0 32px; min-height:0; }
  .equipment-page .eq-logo-wrap { max-width:320px; margin:0 auto 14px; }
  .equipment-page .hero-lead { font-size:.91rem; line-height:1.6; }
  .equipment-page .hero-actions { gap:9px; margin-top:18px; }
  .equipment-page .hero-actions .btn { min-height:46px; padding:10px 14px; font-size:.88rem; }
  .equipment-page .section { padding-top:34px; padding-bottom:34px; }
  .equipment-page .section-head { margin-bottom:22px; }
  .equipment-page .section-head h2 { font-size:2rem; }
  .equipment-page .section-head p { font-size:.91rem; line-height:1.6; }
  .equipment-page .filters-bar { position:static; top:auto; z-index:auto; width:calc(100% - 24px); margin:8px auto 0; }
  .equipment-page .filters-inner { flex-wrap:nowrap; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:thin; padding:10px; gap:8px; border-radius:16px; backdrop-filter:none; box-shadow:none; }
  .equipment-page .filter-btn { flex:0 0 auto; min-height:44px; padding:10px 14px; white-space:nowrap; font-size:.82rem; }
  .equipment-page .products-section { padding-top:24px; scroll-margin-top:12px; }
  .equipment-page .product-card { padding:16px; gap:12px; border-radius:20px; }
  .equipment-page .product-actions { gap:8px; }
  .equipment-page .product-btn { min-height:44px; padding:12px; }
  .equipment-page .modal-layout { padding:18px 14px; gap:18px; }
  .equipment-page .modal-title { font-size:2rem; }
  .equipment-page .modal-visual { max-height:280px; }

  #bia-agent-widget .bia-launcher { transform:scale(.82); transform-origin:bottom right; }
  #bia-agent-widget .bia-panel { max-width:calc(100vw - 24px); max-height:70svh; }
}
