/* Shared responsive behavior for every Bujuan.asia page. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.container { width: 100%; min-width: 0; }
img, video { max-width: 100%; height: auto; }
input, select, textarea { max-width: 100%; min-width: 0; }
:where(.grid, .grid-2, .grid-3, .hero-inner, .legal-shell, .footer-inner, .form-row, .business-line, .cooperation-options, .call-demo, .wa-demo) > * { min-width: 0; }
:where(h1, h2, h3, h4, p, li, dd, dt, .footer-col, .flash) { overflow-wrap: break-word; }
.brand { flex-shrink: 0; white-space: nowrap; }
.nav-links { min-width: 0; }
.nav-links a { white-space: nowrap; }
.btn { max-width: 100%; white-space: normal; text-align: center; min-height: 44px; }
.auth-wrap > .container { flex: 0 1 100%; min-width: 0; }
.auth-card { min-width: 0; }
.auth-card a { overflow-wrap: anywhere; }
.auth-card a svg { flex-shrink: 0; }
.legal-shell { grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); }
.legal-shell > * { min-width: 0; overflow-wrap: anywhere; }
.legal-contact { min-width: 0; }
.cockpit-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.cockpit-tabs .cockpit-tab-btn { min-width: 0; white-space: normal; text-align: left; line-height: 1.6; }
.cockpit-tab-btn .tab-step-no { flex-shrink: 0; }
.cockpit-status-bar, .demo-head, .demo-leads-head { flex-wrap: wrap; }
.demo-field { min-width: min(150px, 100%); }
.demo-row > *, .wa-inbox-item > *, .call-phone, .wa-phone { min-width: 0; }
.demo-email-body, .demo-log, .call-transcript, .wa-chat-body { overflow-wrap: anywhere; }
.assistant-form input { min-width: 0; }
@media (max-width: 1024px) {
  .nav-inner { gap: 16px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 24px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); max-height: calc(100vh - 66px); max-height: calc(100dvh - 66px); overflow-y: auto; overscroll-behavior: contain; transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .2s, opacity .2s, visibility .2s; }
  .nav-links.open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: 10px 0; min-height: 44px; }
  .nav-links .btn { width: 100%; }
  .has-dark-hero .nav .nav-links a:not(.btn) { color: var(--ink-2); }
  .has-dark-hero .nav .nav-links .btn-ghost { color: var(--ink); border-color: var(--line); }
  .has-dark-hero .nav .nav-links .btn-voice { color: var(--brand-dark); background: #eff6ff; border-color: #bfdbfe; }
  .has-dark-hero .sourcing-hero .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .has-dark-hero .sourcing-hero .hero-text { max-width: 700px; }
  .has-dark-hero .sourcing-hero .sourcing-network { width: 100%; max-width: 660px; margin: 0 auto; }
  .business-directions .business-line { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .business-directions .business-line-export .business-visual { grid-column: 1; grid-row: 1; }
  .business-directions .business-line-export .business-copy { grid-column: 1; grid-row: 2; }
  .business-directions .business-visual-pair { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .cap-grid, .pain-grid, .diff-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-tabs { grid-template-columns: minmax(0, 1fr); }
  .cockpit-tabs .cockpit-tab-btn { justify-content: flex-start; padding: 12px 16px; }
  .cockpit-panel { padding: 24px 16px; }
  .call-demo, .wa-demo { grid-template-columns: minmax(0, 1fr); }
  .legal-shell { grid-template-columns: minmax(0, 1fr); }
  .legal-nav { position: static; }
}
@media (max-width: 640px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .cap-grid, .pain-grid, .diff-grid, .grid-3, .form-row, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .business-directions .business-visual-pair { grid-template-columns: minmax(0, 1fr); }
  .cooperation-options { grid-template-columns: minmax(0, 1fr); }
  .form-row { gap: 0; }
  .field input, .field select, .field textarea, .demo-field input, .demo-field select { font-size: 16px; }
  .contact-form .btn, .auth-card .btn { padding-left: 12px; padding-right: 12px; }
  .legal-card { padding: 24px 20px; }
  .legal-contact { padding: 16px; }
  .legal-page { padding-top: 48px; }
  .cockpit-panel { padding: 20px 10px; }
  .cockpit-status-bar { padding: 12px; gap: 6px; }
  .cockpit-status-mode { margin-left: 0; }
  .cockpit-tabs .cockpit-tab-btn { gap: 8px; font-size: .85rem; }
  .demo-body { padding: 16px 12px; }
  .demo-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .demo-controls .btn { width: 100%; }
  .demo-head em { font-size: .7rem; }
  .demo-leads-head { gap: 8px; }
  .demo-row { grid-template-columns: minmax(0, 1fr); }
  .call-feats { grid-template-columns: minmax(0, 1fr); }
  .call-phone, .wa-phone { overflow-wrap: anywhere; }
  .wa-chat-head, .wa-inbox-head, .call-phone-foot, .wa-chat-foot { flex-wrap: wrap; }
  .wa-chat-info { flex: 1 1 120px; }
  .wa-ai-badge { max-width: 100%; white-space: normal; }
  .wa-play-btn { min-width: 0; }
  .wa-reset-btn { min-width: 44px; min-height: 44px; }
  .footer-inner { gap: 28px; }
  .trade-scene-controls button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-links { transition: none; }
}
