/* Mobile layout for the five-language WinCast site. Desktop styles are untouched. */
@media (max-width: 767px) {
  .main-nav { height: 60px; }
  .main-nav-inner { padding: 0 16px; gap: 10px; }
  .logo { min-width: 0; flex: 1; }
  .logo img { max-width: 100%; max-height: 36px; object-fit: contain; object-position: left center; }
  .nav-right { flex: 0 0 auto; gap: 4px; }
  .search-btn { width: 38px; height: 38px; }
  .mobile-menu-btn { padding: 8px; }
  .mobile-menu { width: min(88vw, 360px); padding: 68px 16px 24px; }
  .lang-switcher-mobile { margin: 8px 0 12px; padding: 12px; }
  .mobile-nav-link { padding: 15px 4px; }
  .mobile-dropdown-item { padding: 10px 0; }

  /* Inner pages used a fixed 200px hero with 100px top padding. Long
     Russian, Vietnamese and Thai headings were cut off by overflow:hidden. */
  main .page-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 48px 0 42px !important;
  }
  main .page-hero-content { padding: 0 20px; min-width: 0; }
  main .page-hero-title { font-size: clamp(25px, 7vw, 30px); line-height: 1.28; margin-bottom: 12px; }
  main .page-hero-content > p[style*="white-space: nowrap"] {
    white-space: normal !important;
    max-width: 100%;
    font-size: 17px !important;
    line-height: 1.5;
    letter-spacing: 1px !important;
  }
  main .page-hero:has(> div[style*="bottom: 20px"]) { padding-bottom: 96px !important; }
  main .page-hero:has(> div[style*="bottom: 20px"][style*="left: 50%"] ) { padding-bottom: 130px !important; }
  main .page-hero > div[style*="bottom: 20px"][style*="left: 50%"] {
    left: 16px !important;
    right: 16px !important;
    bottom: 15px !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px !important;
    text-align: center;
    opacity: .85 !important;
  }
  main .page-hero > div[style*="bottom: 20px"][style*="left: 50%"] > span {
    min-width: 0;
    padding: 4px 6px;
    font-size: 11px !important;
    line-height: 1.4;
    letter-spacing: 0 !important;
    white-space: normal;
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, .88) !important;
  }
  main .page-hero > div[style*="bottom: 20px"][style*="left: 50%"] > span:nth-child(2) {
    color: #ff756d !important;
  }
  .breadcrumb { line-height: 1.45; gap: 7px; }

  .content-section { padding: 32px 0; }
  .content-wrapper { padding: 0 16px; }
  .page-with-sidebar { padding: 0; gap: 20px; min-width: 0; }
  .page-content { padding: 0; min-width: 0; }
  .sidebar-nav { width: 100%; min-width: 0; margin: 0; }
  .sidebar-nav-title {
    padding: 11px 14px;
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    border-radius: 10px 10px 0 0;
  }
  .sidebar-nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 9px;
    min-width: 0;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border: 1px solid #e5e5e5;
    border-top: 0;
    border-radius: 0 0 10px 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-nav-menu::-webkit-scrollbar { display: none; }
  .sidebar-nav-item {
    order: 0;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
  }
  .sidebar-nav-item.active {
    order: -1;
    padding-left: 12px;
    border: 1px solid var(--brand-red);
    background: var(--brand-red);
    color: white;
  }

  .product-detail-shell { gap: 18px; }
  .product-detail-hero-grid { gap: 16px; }
  .product-detail-visual,
  .product-detail-overview,
  .product-detail-section,
  .product-detail-cta { border-radius: 16px; }
  .product-detail-main-media { min-height: 230px; height: min(75vw, 330px); padding: 16px; }
  .product-detail-visual-tag { left: 14px; bottom: 14px; padding: 7px 10px; font-size: 10px; }
  .product-detail-overview,
  .product-detail-section,
  .product-detail-cta { padding: 18px; }
  .product-gallery-media { height: min(65vw, 265px); }
  .product-bullet-card { padding: 14px; }
  .product-step-item { gap: 12px; padding: 14px; }
  .product-detail-cta-actions { width: 100%; }

  .product-nav-bar-inner { padding: 0 16px; }
  .product-tabs { gap: 8px; }
  .product-tab { min-width: 0; padding: 10px 15px; }
  .product-cards-grid,
  .equipment-models-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .product-card-image { height: clamp(190px, 55vw, 250px); }

  .about-company-stats { gap: 12px; }
  .page-content [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .page-content [style*="grid-template-columns: repeat(4, 1fr)"] > * { min-width: 0; }
  .page-content [style*="grid-template-columns: repeat(4, 1fr)"][style*="gap: 15px"] > * {
    padding: 18px 12px !important;
  }

  .contact-info-grid { gap: 16px !important; margin-bottom: 0; }
  .contact-info-item { padding: 24px 18px; }
  .locations-section { padding: 48px 0; }
  .locations-grid { padding: 0; gap: 12px; }
  .contact-form-wrapper { margin: 0; padding: 20px; }
  .form-input, .form-textarea { width: 100%; min-width: 0; }

  body.home-premium .hero-carousel { height: clamp(430px, 120vw, 520px); min-height: 430px; }
  body.home-premium .solutions-section,
  body.home-premium .products-section,
  body.home-premium .news-section,
  body.home-premium .about-section,
  body.home-premium .locations-section { padding: 50px 0; }
  body.home-premium .section-header { padding: 0 16px 24px; }
  body.home-premium .products-grid,
  body.home-premium .news-grid,
  body.home-premium .locations-grid { padding: 0 16px; gap: 16px; }
  body.home-premium .about-grid { padding: 0 16px; gap: 22px; }
  body.home-premium .about-content { padding: 24px 0; }
  body.home-premium .about-stats { margin-top: 25px; }
  .footer-grid { padding: 0 20px; gap: 25px; }
  .footer-bottom { margin-top: 32px; padding: 24px 20px 0; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}

@media (max-width: 359px) {
  .main-nav-inner { padding: 0 10px; gap: 4px; }
  .search-btn { width: 34px; height: 34px; }
  .mobile-menu-btn { padding: 6px; }
  main .page-hero-content { padding: 0 16px; }
  .product-step-item { grid-template-columns: 36px minmax(0, 1fr); }
  .product-step-index { width: 36px; height: 36px; }
}
