/* Shared responsive layer. Loaded after page styles so every page behaves consistently on phones. */
html,body{max-width:100%;overflow-x:hidden}
img,video,svg,iframe{max-width:100%}
main,section,article,aside,figure,nav,div{min-width:0}

@media(max-width:1100px){
  .products>*,.solutions>*,.applications>*,footer>*{opacity:1!important;transform:none!important}
}

@media(max-width:900px){
  :root{--header-height:64px;--page-gutter:18px}
  .site-header{position:sticky!important;top:0;z-index:1000;width:100%;height:var(--header-height)!important;padding:0 var(--page-gutter)!important;gap:12px!important;background:rgba(255,255,255,.97)!important;box-shadow:0 2px 14px rgba(8,37,66,.08);backdrop-filter:blur(10px)}
  .site-header .brand{display:flex;order:1;align-items:center;flex:0 1 168px;width:168px!important;max-width:52vw;margin-right:auto!important;transform:none}
  .site-header .brand img{display:block;width:100%!important;height:54px!important;object-fit:contain!important;object-position:left center!important}
  .site-header .menu-toggle{display:flex!important;order:3;flex:0 0 46px;width:46px!important;height:46px!important;margin-left:0;padding:0;border:0;border-radius:6px;background:transparent;align-items:center;justify-content:center;flex-direction:column;gap:6px;cursor:pointer}
  .site-header .menu-toggle span{display:block;width:25px;height:2px;background:#075cb8;transition:transform .2s ease,opacity .2s ease}
  .site-header.open .menu-toggle span:nth-child(1){transform:translateY(8px) rotate(45deg)}
  .site-header.open .menu-toggle span:nth-child(2){opacity:0}
  .site-header.open .menu-toggle span:nth-child(3){transform:translateY(-8px) rotate(-45deg)}
  .site-header .main-nav{display:none!important;order:4}
  .site-header.open .main-nav{position:absolute!important;top:var(--header-height)!important;left:0!important;right:0!important;display:flex!important;height:auto!important;max-height:calc(100dvh - var(--header-height));overflow-y:auto;padding:10px var(--page-gutter) 16px!important;background:#fff!important;box-shadow:0 14px 28px rgba(4,30,58,.14);flex-direction:column!important;align-items:stretch!important;gap:0!important}
  .site-header.open .main-nav a{display:flex!important;align-items:center!important;width:100%!important;min-height:50px!important;height:auto!important;padding:0 8px!important;border-bottom:1px solid #e9eff5;font-size:16px!important}
  .site-header.open .main-nav a:last-child{border-bottom:0}
  .site-header.open .main-nav .active:after{left:8px!important;right:auto!important;bottom:7px!important;width:25px!important}
  .site-header .contact-top{display:inline-flex!important;order:2;align-items:center;justify-content:center;min-height:40px;padding:0 12px!important;border-radius:4px;font-size:14px!important;white-space:nowrap}

  .hero-copy,.product-grid,.solution-grid,.scene-grid,.footer-inner,
  .products-shell,.solution-shell,.app-shell,.support-shell,.about-page .wrap,
  .inverter-shell,.section-shell,.breadcrumb,.shared-footer__inner{
    width:calc(100% - (var(--page-gutter) * 2))!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important
  }

  .shared-footer__main{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 22px!important}
  .shared-footer__brand img{width:190px!important;height:auto!important}
  .shared-footer__links{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px 18px!important}
  .shared-footer__contact p{align-items:flex-start!important;overflow-wrap:anywhere}
  .shared-footer__bottom{gap:10px!important;flex-wrap:wrap}

  .products-page .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .products-page .catalog-layout{grid-template-columns:1fr}
  .products-page .category-menu{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin;border-radius:7px}
  .products-page .category-button{flex:0 0 auto;width:auto;min-width:max-content;height:50px;padding:0 16px;border-right:1px solid #e5edf5;border-bottom:0;white-space:nowrap}
  .products-page .category-button i{margin-left:12px}
  .products-page .consult-card{display:none}

  .about-page .intro{grid-template-columns:1fr}
  .about-page .contact-layout{grid-template-columns:1fr}
  .application-page .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .solutions-page .solution-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .support-page .network-grid{grid-template-columns:1fr}
  .support-page .capability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}

  .inverter-direct__sheet{max-width:100%}
  .inverter-direct__sheet img{max-width:100%;height:auto}
  .inverter-direct__actions a,.inverter-direct__actions button{min-height:52px}
}

@media(max-width:640px){
  :root{--header-height:62px;--page-gutter:16px}
  body{font-size:16px}
  .site-header .contact-top{display:none!important}
  .site-header .language{display:flex!important;order:2!important;align-items:center;flex:0 0 auto;margin-left:auto!important;gap:4px!important}
  .site-header .language button{min-width:23px;min-height:40px;padding:4px 1px;font-size:12px!important}
  .site-header .menu-toggle{order:3!important}
  .site-header .brand{flex-basis:150px;width:150px!important;max-width:58vw}
  .site-header .brand img{height:50px!important}
  .site-header .menu-toggle{width:44px!important;height:44px!important}

  .home .hero{height:auto!important;min-height:660px;padding-bottom:72px;background-position:66% center!important}
  .home .hero-copy{padding:38px 0 96px!important}
  .home .hero h1{max-width:340px;font-size:31px!important;line-height:1.25}
  .home .hero-copy>p{max-width:350px;font-size:16px!important;line-height:1.75!important}
  .home .hero-features{display:grid;grid-template-columns:repeat(2,minmax(0,116px));gap:18px 16px;margin-bottom:22px!important}
  .home .hero-features div{font-size:13px!important}
  .home .primary-btn{position:relative;z-index:3;min-height:48px;margin:0 0 56px;padding:0 24px!important;font-size:15px!important}
  .home .hero-dots{left:50%!important;bottom:22px;transform:translateX(-50%)}
  .home .section{padding-top:34px;padding-bottom:38px}
  .home .section-title h2{font-size:28px!important}
  .home .section-title p{font-size:15px!important;line-height:1.65}
  .home .product-grid{grid-template-columns:1fr!important;gap:16px!important}
  .home .category-card{min-height:0!important;padding:18px!important}
  .home .category-card h3{font-size:20px!important}
  .home .category-card img{height:220px!important;max-height:none!important}
  .home .category-card ul,.home .category-card a{font-size:15px!important}
  .home .solution-grid{grid-template-columns:1fr!important}
  .home .solution-grid article{min-height:0!important;padding:24px 14px!important;border-right:0!important;border-bottom:1px solid var(--line)!important}
  .home .solution-grid article:last-child{border-bottom:0!important}
  .home .solution-grid h3{font-size:18px!important}
  .home .solution-grid p,.home .solution-grid a{font-size:14px!important}
  .home .scene-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .home .scene-grid figcaption{font-size:14px!important}

  .products-page .products-hero{min-height:285px;background-position:65% center}
  .products-page .products-hero__content{left:0!important;padding:58px 0 46px!important}
  .products-page .products-hero h1{font-size:34px!important}
  .products-page .products-hero__en{font-size:21px!important}
  .products-page .products-hero__sub{font-size:15px!important;line-height:1.6}
  .products-page .product-breadcrumb{padding:13px 0}
  .products-page .catalog-section{padding:24px 0 34px}
  .products-page .category-menu{display:grid!important;grid-template-columns:1fr!important;overflow:visible!important}
  .products-page .category-button{width:100%!important;min-width:0!important;height:auto!important;min-height:56px;padding:11px 15px!important;border-right:0!important;border-bottom:1px solid #e5edf5!important;white-space:normal!important;line-height:1.45;text-align:left}
  .products-page .category-button:last-child{border-bottom:0!important}
  .products-page .category-button i{flex:0 0 auto;margin-left:auto}
  .products-page .catalog-toolbar{align-items:flex-start;flex-wrap:wrap;gap:10px}
  .products-page .catalog-toolbar select{min-height:44px;font-size:14px}
  .products-page .catalog-grid{grid-template-columns:1fr!important;gap:15px}
  .products-page .product-media{height:225px}
  .products-page .product-body{padding:18px}
  .products-page .product-body h3{font-size:19px!important;line-height:1.4;overflow-wrap:anywhere}
  .products-page .product-type,.products-page .product-copy{font-size:15px!important}
  .products-page .product-copy{min-height:0}
  .products-page .product-specs{gap:5px}
  .products-page .product-spec{padding:10px 3px}
  .products-page .product-spec b{font-size:13px!important;overflow-wrap:anywhere}
  .products-page .product-spec small{font-size:11px!important}
  .products-page .product-detail{min-height:44px;align-items:center;font-size:15px!important}
  .products-page .strength-grid{grid-template-columns:1fr!important}
  .products-page .strength-item{border-right:0!important;border-bottom:1px solid #dce7f1;padding:15px 4px!important}
  .products-page .products-cta__box{padding:24px!important}
  .products-page .products-cta a{width:100%;min-height:48px;justify-content:center}

  .about-page .about-hero{min-height:430px;background-position:64% center}
  .about-page .hero-content{padding:40px 0}
  .about-page .about-hero h1{font-size:36px!important}
  .about-page .subtitle{max-width:320px;font-size:18px!important;line-height:1.65}
  .about-page .values{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;width:100%}
  .about-page .values b{font-size:15px!important}
  .about-page .company-photo{height:230px}
  .about-page .pillars{grid-template-columns:1fr;gap:9px}
  .about-page .advantage-grid{grid-template-columns:1fr!important}
  .about-page .contact-cards{grid-template-columns:1fr}
  .about-page .location-map{min-height:230px}
  .about-page .footer-columns{grid-template-columns:1fr}
  .about-page .footer-brand{grid-column:auto}

  .application-page .app-hero{min-height:430px;background-position:67% center}
  .application-page .app-hero__content{padding:42px 0}
  .application-page .app-hero h1{font-size:36px!important}
  .application-page .app-hero__lead{font-size:18px!important}
  .application-page .app-hero__sub{font-size:15px!important;line-height:1.7}
  .application-page .field-grid{grid-template-columns:1fr!important}
  .application-page .field-card img{height:210px}
  .application-page .advantage-grid{grid-template-columns:1fr!important}
  .application-page .advantage-item{border-right:0!important;border-bottom:1px solid #dfebf5;padding:16px 4px}
  .application-page .app-cta__box{padding:24px!important}
  .application-page .app-cta__button{width:100%;min-height:48px;justify-content:center}

  .solutions-page .solution-hero{min-height:460px;background-position:68% center}
  .solutions-page .solution-hero h1{font-size:36px!important}
  .solutions-page .solution-hero__lead{font-size:18px!important}
  .solutions-page .solution-cards{grid-template-columns:1fr!important}
  .solutions-page .solution-row{grid-template-columns:1fr!important}
  .solutions-page .solution-row img{width:100%;height:190px;min-height:0}
  .solutions-page .solution-row__copy{padding:18px}
  .solutions-page .solution-points,.solutions-page .solution-more{display:block}
  .solutions-page .solution-cta__box{padding:24px!important}
  .solutions-page .solution-cta__button{width:100%;min-height:48px;justify-content:center}

  .support-page .support-hero{min-height:450px;background-position:66% center}
  .support-page .support-hero__content{padding:42px 0}
  .support-page .support-hero h1{font-size:36px!important}
  .support-page .support-hero__lead{font-size:17px!important}
  .support-page .service-promises{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .support-page .service-promise b{font-size:14px!important}
  .support-page .support-heading h2{font-size:25px!important}
  .support-page .network-card{min-height:0;padding:21px}
  .support-page .network-copy{max-width:none}
  .support-page .network-map{position:relative;right:auto;bottom:auto;width:100%;height:170px;margin-top:8px}
  .support-page .capability-grid{grid-template-columns:1fr!important}
  .support-page .capability-card p{margin-left:0}
  .support-page .support-cta__box{padding:24px!important}
  .support-page .support-cta__button{width:100%;min-height:48px;justify-content:center}

  .inverter-detail-page .inverter-direct{padding:16px 0 28px}
  .inverter-detail-page .inverter-breadcrumb{margin-bottom:16px;font-size:13px;flex-wrap:wrap}
  .inverter-detail-page .inverter-direct__title{margin-bottom:14px}
  .inverter-detail-page .inverter-direct__title h1{font-size:27px!important;line-height:1.2;letter-spacing:-.3px;overflow-wrap:anywhere}
  .inverter-detail-page .inverter-direct__title p{font-size:15px;line-height:1.6}
  .inverter-detail-page .inverter-direct__sheet{width:100%;border-radius:6px}
  .inverter-detail-page .inverter-direct__actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:16px}
  .inverter-detail-page .inverter-direct__actions a,
  .inverter-detail-page .inverter-direct__actions button{width:100%;min-width:0;min-height:50px;padding:10px 14px;font-size:16px}
  .inverter-viewer__toolbar{min-height:60px;padding:7px 8px;gap:7px}
  .inverter-viewer__zoom{gap:5px}
  .inverter-viewer__zoom button{min-width:42px;min-height:44px;padding:0 9px}
  .inverter-viewer__zoom [data-viewer-fit]{font-size:13px}
  .inverter-viewer__close{min-width:78px!important;min-height:44px;padding:0 10px!important;font-size:14px!important}
  .inverter-viewer__close span{font-size:25px}
  .inverter-viewer__canvas{padding:6px}

  .inner-page .page-hero,.inner-page .page-hero__inner{min-height:280px}
  .inner-page .page-hero h1{font-size:31px}
  .inner-page .content-section{padding:38px 0}
  .inner-page .detail-grid,.inner-page .product-catalog,.inner-page .process,.inner-page .metric-row{grid-template-columns:1fr}
  .inner-page .split-feature,.inner-page .contact-layout,.inner-page .form-grid{grid-template-columns:1fr}
  .inner-page input,.inner-page select,.inner-page textarea{font-size:16px}

  .shared-footer__main{grid-template-columns:1fr!important;gap:26px!important}
  .shared-footer__links{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .shared-footer__bottom{flex-direction:column!important;margin-top:24px!important}
  .shared-footer__follow img{width:82px!important;height:82px!important}
}

@media(max-width:380px){
  :root{--page-gutter:13px}
  .site-header .brand{flex-basis:138px;width:138px!important}
  .home .hero h1,.about-page .about-hero h1,.application-page .app-hero h1,
  .solutions-page .solution-hero h1,.support-page .support-hero h1,
  .products-page .products-hero h1{font-size:31px!important}
  .products-page .product-specs{grid-template-columns:1fr}
  .support-page .service-promises{grid-template-columns:1fr}
  .support-page .service-promise{display:flex}
  .inverter-viewer__zoom [data-viewer-fit]{display:none}
}

@media(max-width:340px){
  .site-header .contact-top{display:none!important}
}

@media(hover:none){
  .product-card:hover,.product-item:hover,.solution-card:hover,.field-card:hover,
  .advantage-card:hover,.capability-card:hover,.solution-row:hover{transform:none!important}
}
