/* Mobile browser refinements; desktop visual theme lives in theme.css. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
:root { --nav-height: 80px; --safe-top: env(safe-area-inset-top, 0px); }
button, a, [role="button"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.product-card-playBtn, .product-card-closeBtn { padding: 0; border: 1px solid #ffffff70; }
@media (max-width: 1200px) {
  html.mobile-nav-open, html.mobile-nav-open body { overflow: hidden; }
  html body nav .nav-links.nav-open {
    position: fixed;
    inset: calc(var(--nav-height) + var(--safe-top)) 0 auto;
    height: calc(100vh - var(--nav-height) - var(--safe-top));
    height: calc(100dvh - var(--nav-height) - var(--safe-top));
    padding: 20px max(24px, env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: #171717;
  }
  html body nav .nav-links.nav-open li { width: 100%; text-align: start; }
  html body nav .nav-links.nav-open a { display: block; font-size: 17px; padding: 20px 4px; line-height: 1.5; border-bottom: 1px solid #ffffff18; }
  .nav-mobile-toggle { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; flex-shrink: 0; }
  .language-trigger, .language-option { min-height: 44px; }
  .language-menu { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 1024px) {
  .contact-form, .craft-layout, .product-card, .product-card-body { min-width: 0; }
  .product-card-specs { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .spec-label { overflow-wrap: anywhere; }
  .spec-value { overflow-wrap: anywhere; }
  .contact-form input, .contact-form textarea, .country-dropdown .dropdown-trigger { font-size: 16px; }
  .country-dropdown .dropdown-menu { max-height: min(280px, 40dvh); overscroll-behavior: contain; }
  .dropdown-item { min-height: 44px; padding: 12px 16px; }
  .product-card-cta { min-height: 44px; align-items: center; }
}
@media (max-width: 760px) {
  :root { --nav-height: 68px; }
  nav { height: calc(var(--nav-height) + var(--safe-top)); padding: var(--safe-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); gap: 8px; }
  .nav-logo { min-height: 44px; flex-shrink: 0; }
  .nav-logo img { height: 29px; max-width: 112px; object-fit: contain; }
  .language-switcher { margin-inline-start: auto; margin-inline-end: 0; }
  .language-trigger { padding: 9px 10px; gap: 6px; }
  .language-menu { top: calc(100% + 10px); max-height: calc(100dvh - var(--nav-height) - var(--safe-top) - 24px); }
  .language-option { font-size: 15px; }
  section[id] { scroll-margin-top: calc(var(--nav-height) + var(--safe-top) + 16px); }
  .hero { min-height: 100vh; min-height: 100svh; padding: calc(112px + var(--safe-top)) max(20px, env(safe-area-inset-right)) 100px max(20px, env(safe-area-inset-left)); }
  .hero-title { font-size: clamp(36px, 10vw, 64px); letter-spacing: -1.5px; line-height: 1.08; }
  html:not([lang="en"]) .hero-title { font-size: clamp(34px, 9vw, 60px); line-height: 1.2; }
  .hero-badge { font-size: 10px; line-height: 1.6; letter-spacing: 1.4px; padding: 0; margin-bottom: 26px; }
  .hero-sub { font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
  .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .hero-actions .btn { width: 100%; min-height: 48px; padding: 13px 10px; justify-content: center; font-size: 11px; letter-spacing: .5px; text-align: center; }
  .hero-scroll { bottom: calc(24px + env(safe-area-inset-bottom)); }
  .products, .features, .craft, .contact { padding: 56px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left)); }
  .section-heading { font-size: clamp(30px,8.3vw,38px); line-height: 1.15; }
  .products-grid { gap: 16px; }
  .product-card-img img { padding: 16px; }
  .product-card-body { padding: 18px 16px; }
  .product-card-name { font-size: 21px; line-height: 1.3; }
  .product-card-desc { font-size: 14px; line-height: 1.65; }
  .product-card-specs { gap: 0 16px; }
  .spec-label, .electric-specs .spec-label { font-size: 12px; line-height: 1.5; }
  .spec-value { font-size: 14px; line-height: 1.6; }
  .product-card-playBtn { width: 44px; height: 44px; right: 12px; bottom: 12px; }
  .product-card-closeBtn.visible { width: 44px; height: 44px; top: 10px; right: 10px; }
  .showcase { min-height: 560px; height: auto; }
  .showcase-content { padding: 56px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left)); width: 100%; }
  .showcase-content h2, .craft-body h2, .contact-inner h2 { font-size: clamp(29px,8vw,38px); line-height: 1.2; }
  .showcase-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
  .showcase-stat { min-width: 0; }
  .showcase-stat-value { font-size: 28px; }
  .showcase-stat-label { font-size: 10px; letter-spacing: .4px; line-height: 1.6; overflow-wrap: anywhere; }
  .craft-visual-main { height: auto; aspect-ratio: 4 / 3; }
  .craft-visual-accent { bottom: -12px; right: 0; }
  .contact-form { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .form-field input, .form-field textarea { min-height: 48px; padding: 14px; border-radius: 0; }
  .form-field textarea { min-height: 140px; }
  .country-dropdown .dropdown-trigger { min-height: 48px; gap: 12px; }
  .country-dropdown .dropdown-arrow { flex-shrink: 0; }
  .contact-submit { min-height: 50px; }
  .footer-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
  .footer-col li { margin-bottom: 0; }
  footer { padding: 48px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
  #byriiToast > div { padding: max(16px,env(safe-area-inset-top)) 16px max(16px,env(safe-area-inset-bottom)); overflow-y: auto; }
  #byriiToast > div > div { width: 100%; max-width: 440px !important; max-height: 90dvh; overflow-y: auto; margin: auto !important; }
}
@media (max-width: 359px) {
  .nav-logo img { height: 25px; max-width: 92px; }
  .language-trigger { font-size: 11px; padding-inline: 8px; }
  .hero-actions { grid-template-columns: 1fr; }
  .product-card-body { padding: 16px 14px; }
  .product-card-specs { gap: 0 12px; }
}
@media (max-height: 600px) and (max-width: 1024px) {
  .hero { min-height: 100svh; padding-top: calc(var(--nav-height) + var(--safe-top) + 40px); padding-bottom: 48px; }
  .hero-scroll { display: none; }
  .hero-badge { margin-bottom: 16px; }
  .hero-title, html:not([lang="en"]) .hero-title { font-size: clamp(32px,6vw,52px); margin-bottom: 20px; }
  .hero-sub { margin-bottom: 20px; }
  .hero-actions { display: flex; justify-content: center; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; min-width: 140px; }
  .language-menu { max-height: calc(100dvh - var(--nav-height) - var(--safe-top) - 16px); }
}
@media (hover: none) and (pointer: coarse) {
  .product-card:has(.product-card-video.playing) .product-card-playBtn { opacity: 0 !important; pointer-events: none; }
}
