/* ===== BrightMax-style homepage ===== */
:root{
  --bm-blue:#0a3d62;
  --bm-blue-dark:#062a45;
  --bm-accent:#1e88e5;
  --bm-text:#333;
  --bm-muted:#666;
  --bm-bg-soft:#f5f8fb;
  --bm-border:#e6ecf2;
}
*{box-sizing:border-box}
.bm-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.bm-wrap{font-family:"Segoe UI",Arial,"Microsoft YaHei",sans-serif;color:var(--bm-text);line-height:1.7;font-size:15px}
.bm-wrap img{max-width:100%;display:block}
.bm-container{max-width:1240px;margin:0 auto;padding:0 20px}
.bm-sec{padding:70px 0}
.bm-sec--soft{background:var(--bm-bg-soft)}
.bm-center{text-align:center}
.bm-eyebrow{display:inline-block;color:var(--bm-accent);font-weight:700;letter-spacing:2px;text-transform:uppercase;font-size:13px;margin-bottom:8px}
.bm-title{font-size:30px;font-weight:800;color:var(--bm-blue);margin:0 0 12px}
.bm-title--center{text-align:center}
.bm-lead{color:var(--bm-muted);max-width:760px;margin:0 auto}
.bm-lead--center{text-align:center}

/* Top bar */
.bm-topbar{background:var(--bm-blue-dark);color:#cdd9e5;font-size:13px}
.bm-topbar .bm-container{display:flex;justify-content:space-between;align-items:center;height:40px;flex-wrap:wrap;gap:8px}
.bm-topbar a{color:#cdd9e5;text-decoration:none;margin-right:16px}
.bm-topbar a:hover{color:#fff}
.bm-lang{opacity:.85}

/* Header */
.bm-top-wrap{position:sticky;top:0;z-index:100}
.bm-header{background:#fff;border-bottom:1px solid var(--bm-border)}
.bm-header .bm-container{display:flex;align-items:center;justify-content:space-between;height:78px}
.bm-logo img{height:50px;width:auto}
.bm-logo-text{display:inline-block;font-size:24px;font-weight:900;color:var(--bm-blue);letter-spacing:1px;line-height:50px}
.bm-logo-text::before{content:"";display:inline-block;width:8px;height:30px;background:var(--bm-accent);margin-right:10px;vertical-align:middle;border-radius:2px}
.bm-flogo-text{font-size:22px;font-weight:900;color:#fff;letter-spacing:1px;margin-bottom:14px}
.bm-flogo-text::before{content:"";display:inline-block;width:7px;height:26px;background:var(--bm-accent);margin-right:9px;vertical-align:middle;border-radius:2px}
.bm-topbar .bm-lang a{color:#fff;font-weight:700;margin-right:0;text-decoration:underline}
.bm-nav{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.bm-nav li a{display:block;padding:10px 16px;color:var(--bm-blue);text-decoration:none;font-weight:600;font-size:15px;border-radius:4px}
.bm-nav li a:hover{color:var(--bm-accent);background:var(--bm-bg-soft)}
.bm-burger{display:none;flex-direction:column;gap:5px;cursor:pointer;padding:10px;background:none;border:none}
.bm-burger span{width:26px;height:3px;background:var(--bm-blue);border-radius:2px;display:block}

/* Hero carousel */
.bm-hero{position:relative;background:#000}
.bm-slides{position:relative;max-height:560px;overflow:hidden}
.bm-slides .bm-slide{display:none;width:100%}
.bm-slides .bm-slide.active{display:block;animation:bmFade .8s ease}
.bm-slides img{width:100%;height:auto;min-height:340px;object-fit:cover}
@keyframes bmFade{from{opacity:.4}to{opacity:1}}
.bm-dots{position:absolute;bottom:18px;left:0;right:0;text-align:center}
.bm-dots button{width:12px;height:12px;border-radius:50%;border:none;background:rgba(255,255,255,.5);margin:0 5px;cursor:pointer;padding:0}
.bm-dots button.active{background:#fff;width:26px;border-radius:6px}

/* Category strip */
.bm-cats{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:-50px;position:relative;z-index:5}
.bm-cat{background:#fff;border-radius:10px;padding:26px 18px;text-align:center;box-shadow:0 8px 24px rgba(10,61,98,.12);text-decoration:none;color:var(--bm-blue);font-weight:700}
.bm-cat:hover{transform:translateY(-4px);color:var(--bm-accent)}
.bm-cat .bm-ic{font-size:34px;display:block;margin-bottom:8px}

/* About */
.bm-about{display:grid;grid-template-columns:1.1fr 1fr;gap:46px;align-items:center}
.bm-about ul{list-style:none;padding:0;margin:18px 0}
.bm-about li{position:relative;padding-left:26px;margin-bottom:12px;color:var(--bm-text)}
.bm-about li::before{content:"\2714";position:absolute;left:0;color:var(--bm-accent);font-weight:bold}
.bm-imgbox{border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(10,61,98,.15)}

/* Stats */
.bm-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.bm-stat{background:#fff;border-radius:10px;padding:28px 16px;text-align:center;box-shadow:0 4px 16px rgba(10,61,98,.08)}
.bm-stat .bm-num{font-size:40px;font-weight:900;color:var(--bm-accent);line-height:1}
.bm-stat .bm-lbl{color:var(--bm-muted);margin-top:8px;font-size:14px}

/* Products */
.bm-products{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.bm-product{background:#fff;border:1px solid var(--bm-border);border-radius:10px;overflow:hidden;text-decoration:none;color:var(--bm-text);transition:.25s}
.bm-product:hover{box-shadow:0 12px 28px rgba(10,61,98,.16);transform:translateY(-4px);border-color:transparent}
.bm-product .bm-thumb{aspect-ratio:1/1;overflow:hidden;background:var(--bm-bg-soft)}
.bm-product .bm-thumb img{width:100%;height:100%;object-fit:cover;transition:.4s}
.bm-product:hover .bm-thumb img{transform:scale(1.06)}
.bm-product h3{font-size:15px;color:var(--bm-blue);margin:14px 14px 6px;font-weight:700;line-height:1.4}
.bm-product .bm-more{display:inline-block;margin:0 14px 16px;color:var(--bm-accent);font-weight:600;font-size:13px}
.bm-product .bm-pcat{display:inline-block;margin:8px 0 0 14px;padding:2px 10px;background:var(--bm-bg-soft);color:var(--bm-blue);font-size:11px;border-radius:20px;font-weight:700}
.bm-product .bm-spec{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 16px}
.bm-product .bm-spec span{font-size:11px;color:var(--bm-muted);background:#f0f4f8;padding:3px 8px;border-radius:4px}

/* Split feature */
.bm-split{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:center}

/* Advantages */
.bm-advs{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:14px}
.bm-adv{background:#fff;border-radius:10px;padding:26px 20px;box-shadow:0 4px 16px rgba(10,61,98,.07);border-top:3px solid var(--bm-accent)}
.bm-adv h3{color:var(--bm-blue);font-size:17px;margin:0 0 8px}
.bm-adv p{color:var(--bm-muted);font-size:13px;margin:0}

/* Logo wall */
.bm-logos{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.bm-logos .bm-logo-item{background:#fff;border:1px solid var(--bm-border);border-radius:8px;padding:18px;display:flex;align-items:center;justify-content:center;height:90px}
.bm-logos .bm-logo-item img{max-height:54px;width:auto;filter:grayscale(1);opacity:.7;transition:.25s}
.bm-logos .bm-logo-item:hover img{filter:none;opacity:1}

/* CTA */
.bm-cta{background:linear-gradient(120deg,var(--bm-blue),var(--bm-accent));color:#fff;text-align:center}
.bm-cta h2{font-size:30px;margin:0 0 8px;font-weight:800}
.bm-cta p{opacity:.9;margin:0 0 22px}
.bm-btn{display:inline-block;background:#fff;color:var(--bm-blue);padding:14px 36px;border-radius:30px;text-decoration:none;font-weight:700;font-size:15px}
.bm-btn:hover{background:var(--bm-blue-dark);color:#fff}
.bm-btn--ghost{background:transparent;color:#fff;border:2px solid #fff}
.bm-btn--ghost:hover{background:#fff;color:var(--bm-blue)}
.bm-btn--blue{background:var(--bm-accent);color:#fff}
.bm-btn--blue:hover{background:var(--bm-blue-dark)}

/* Footer */
.bm-footer{background:var(--bm-blue-dark);color:#9fb3c8;padding:50px 0 24px;font-size:14px}
.bm-foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1.4fr;gap:40px}
.bm-footer img.bm-flogo{height:46px;margin-bottom:14px;filter:brightness(0) invert(1)}
.bm-footer h4{color:#fff;font-size:16px;margin:0 0 14px}
.bm-footer a{color:#9fb3c8;text-decoration:none;display:block;margin-bottom:8px}
.bm-footer a:hover{color:#fff}
.bm-foot-bottom{border-top:1px solid rgba(255,255,255,.12);margin-top:34px;padding-top:18px;text-align:center;font-size:13px;opacity:.8}

/* Responsive */
@media (max-width:900px){
  .bm-cats,.bm-stats,.bm-advs{grid-template-columns:repeat(2,1fr)}
  .bm-products,.bm-logos{grid-template-columns:repeat(2,1fr)}
  .bm-about,.bm-split,.bm-foot-grid{grid-template-columns:1fr}
  .bm-header .bm-container{position:relative}
  .bm-burger{display:flex}
  .bm-nav{display:none;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:#fff;box-shadow:0 8px 20px rgba(0,0,0,.12);padding:8px 16px;z-index:60;margin:0;list-style:none}
  .bm-nav.open{display:flex}
  .bm-nav li a{padding:14px 8px;border-bottom:1px solid var(--bm-border);border-radius:0}
}
@media (max-width:560px){
  .bm-cats,.bm-stats,.bm-products,.bm-logos{grid-template-columns:1fr}
}

/* ===== Inner pages ===== */
.bm-page-banner{position:relative;background-size:cover;background-position:center;padding:90px 0;color:#fff;text-align:center}
.bm-page-banner::before{content:"";position:absolute;inset:0;background:rgba(6,42,69,.62)}
.bm-page-banner .bm-container{position:relative;z-index:2}
.bm-page-banner h1{font-size:38px;margin:0 0 8px;font-weight:900}
.bm-page-banner p{margin:0;opacity:.92;font-size:16px}

/* About info grid */
.bm-info{margin-top:24px;display:grid;grid-template-columns:1fr;gap:14px}
.bm-info>div{background:var(--bm-bg-soft);border-left:3px solid var(--bm-accent);padding:14px 18px;border-radius:6px}
.bm-info strong{display:block;color:var(--bm-blue);margin-bottom:4px;font-size:13px}
.bm-info span{color:var(--bm-text);font-size:14px}

/* News */
.bm-news{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.bm-news-item{background:#fff;border:1px solid var(--bm-border);border-radius:10px;overflow:hidden;text-decoration:none;color:var(--bm-text);transition:.25s;display:flex;flex-direction:column}
.bm-news-item:hover{box-shadow:0 12px 28px rgba(10,61,98,.16);transform:translateY(-4px)}
.bm-news-thumb{aspect-ratio:16/9;overflow:hidden}
.bm-news-thumb img{width:100%;height:100%;object-fit:cover;transition:.4s}
.bm-news-item:hover .bm-news-thumb img{transform:scale(1.05)}
.bm-news-body{padding:18px}
.bm-news-date{color:var(--bm-accent);font-size:13px;font-weight:700}
.bm-news-body h3{color:var(--bm-blue);font-size:17px;margin:8px 0;font-weight:700;line-height:1.4}
.bm-news-body p{color:var(--bm-muted);font-size:13px;margin:0}

/* Contact */
.bm-contact{display:grid;grid-template-columns:1fr 1fr;gap:46px;align-items:start}
.bm-contact-list{list-style:none;padding:0;margin:22px 0}
.bm-contact-list li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--bm-border)}
.bm-contact-list strong{flex:0 0 120px;color:var(--bm-blue)}
.bm-contact-list span{color:var(--bm-text)}
.bm-contact-list a{color:var(--bm-accent);text-decoration:none}
.bm-contact-form{background:var(--bm-bg-soft);border-radius:12px;padding:28px}
.bm-contact-form h3{color:var(--bm-blue);margin:0 0 16px;font-size:20px}
.bm-contact-form input,.bm-contact-form textarea{width:100%;padding:12px 14px;border:1px solid var(--bm-border);border-radius:6px;font-family:inherit;font-size:14px;margin-bottom:12px;background:#fff}
.bm-contact-form button{border:none;cursor:pointer}

@media (max-width:900px){
  .bm-news{grid-template-columns:1fr}
  .bm-contact{grid-template-columns:1fr}
}

/* Language switcher */
.bm-topbar .bm-lang a{color:#cdd9e5;margin-right:14px;font-weight:700;text-decoration:none;opacity:.85}
.bm-topbar .bm-lang a.active{color:#fff;opacity:1;border-bottom:2px solid #fff}

/* Floating contact widget (every page) */
.bm-fab-bar{position:fixed;right:0;top:50%;transform:translateY(-50%);z-index:90;display:flex;flex-direction:column;gap:10px}
.bm-fab{position:relative;display:flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:10px 0 0 10px;text-decoration:none;box-shadow:-2px 2px 10px rgba(0,0,0,.18);transition:.25s;cursor:pointer;border:none}
.bm-fab:hover{width:58px}
.bm-fab--wa{background:#25D366}
.bm-fab--phone{background:#0a3d62}
.bm-fab--email{background:#5a6b7b}
.bm-fab--inq{background:var(--bm-accent)}
.bm-fab-tip{position:absolute;right:64px;top:50%;transform:translateY(-50%) translateX(8px);background:#fff;color:var(--bm-blue);padding:8px 14px;border-radius:6px;font-size:13px;font-weight:700;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.16);opacity:0;pointer-events:none;transition:.25s}
.bm-fab-tip::after{content:"";position:absolute;right:-5px;top:50%;transform:translateY(-50%);border:5px solid transparent;border-left-color:#fff}
.bm-fab:hover .bm-fab-tip{opacity:1;transform:translateY(-50%) translateX(0)}
@media (max-width:560px){.bm-fab{width:46px;height:46px}.bm-fab-tip{display:none}}

/* Certifications */
.bm-cert-badges{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.bm-cert-badge{width:120px;height:120px;border:2px dashed var(--bm-accent);border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:900;color:var(--bm-blue);background:#fff}
.bm-cert-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}
.bm-cert-card{background:#fff;border:1px solid var(--bm-border);border-radius:12px;padding:30px 16px;text-align:center}
.bm-cert-card .bm-cert-mark{width:110px;height:110px;margin:0 auto 14px;border-radius:50%;background:var(--bm-blue);color:#fff;display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:900}
.bm-cert-card p{color:var(--bm-muted);font-size:12px;margin:0}

/* Factory gallery */
.bm-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}

@media (max-width:900px){
  .bm-cert-grid{grid-template-columns:repeat(2,1fr)}
  .bm-gallery{grid-template-columns:1fr}
}

/* Inquiry modal */
.bm-modal-overlay{position:fixed;inset:0;background:rgba(6,42,69,.55);display:none;z-index:1000;align-items:flex-start;justify-content:center;padding:40px 16px;overflow-y:auto}
.bm-modal-overlay.open{display:flex}
.bm-modal{background:#fff;border-radius:14px;max-width:560px;width:100%;padding:30px 28px;position:relative;box-shadow:0 20px 60px rgba(0,0,0,.3);margin:auto}
.bm-modal-close{position:absolute;top:10px;right:14px;background:none;border:none;font-size:30px;line-height:1;color:var(--bm-muted);cursor:pointer}
.bm-modal-close:hover{color:var(--bm-blue)}
.bm-modal-title{color:var(--bm-blue);margin:0 0 6px;font-size:24px}
.bm-modal-lead{color:var(--bm-muted);margin:0 0 18px;font-size:14px}
#bmInquiryForm .bm-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
#bmInquiryForm input,#bmInquiryForm textarea{width:100%;padding:11px 13px;border:1px solid var(--bm-border);border-radius:7px;font-family:inherit;font-size:14px}
#bmInquiryForm textarea{margin-bottom:12px;resize:vertical}
.bm-products{border:1px solid var(--bm-border);border-radius:7px;padding:12px 14px;margin-bottom:12px}
.bm-products legend{color:var(--bm-blue);font-weight:700;font-size:14px;padding:0 6px}
.bm-products label{display:inline-flex;align-items:center;gap:6px;margin:4px 10px 4px 0;font-size:14px;cursor:pointer}
.bm-btn-block{width:100%;padding:13px;font-size:15px}
.bm-form-msg{margin-top:12px;padding:12px 14px;border-radius:7px;font-size:14px;text-align:center}
.bm-form-msg.ok{background:#e6f7ed;color:#1a7d46;border:1px solid #b7e4c7}
.bm-form-msg.err{background:#fdecea;color:#b71c1c;border:1px solid #f5c6c2}
@media (max-width:560px){
  #bmInquiryForm .bm-form-row{grid-template-columns:1fr}
}
