/* Kỹ Thuật Công Nghiệp Hải Nam (maycongnghiep) — trang chủ theo mockup (đợt 9). Đỏ #d42019 + xám than #1f2328. Tiền tố hn- */
:root { --c1: #d42019; --c1d: #b81911; --c2: #1f2328; --ink: #1f2328; --mu: #5d636b; --ft: #1f2328; --line: #e3e5e8; --hf: "Be Vietnam Pro", Inter, sans-serif; --bf: Inter, sans-serif; --r: 4px; --rb: 3px; }
.hn-tb { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: #e7e8ea; }
.hn-tb a { color: #e7e8ea !important; display: inline-flex; align-items: center; gap: 7px; } .hn-tb i { font-style: normal; opacity: .6; }
#header #logo a { display: block; width: 290px; height: 74px; background: url("icons/logo.png") left center / contain no-repeat; font-size: 0 !important; color: transparent !important; }
#header .header-nav-main > li { margin: 0 15px; }
#header .header-nav-main > li > a { font-size: 17px; font-weight: 500; color: #1f2328; padding: 0; }
#header .header-nav-main > li > a:hover { color: var(--c1); }
#header .header-button-1 { margin-left: 22px !important; }
#header .header-button-1 .button { background: var(--c1) !important; border-color: var(--c1) !important; color: #fff !important; min-height: 48px; line-height: 48px; padding: 0 28px; border-radius: 3px !important; font-size: 15.5px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.hn-sec h2, .hn-h2 { font-size: 38px; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; margin: 0; color: #1f2328; }
.hn-sec .b9-all { color: var(--c1) !important; }
/* hero */
.hn-hero { min-height: 520px; padding: 96px 0 90px !important; }
.hn-hero .section-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,17,20,.72) 0%, rgba(15,17,20,.45) 38%, rgba(15,17,20,0) 62%); }
.hn-h1 { color: #fff !important; font-size: 60px; line-height: 1.18; font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.hn-hero-s { color: rgba(255,255,255,.92); font-size: 21px; line-height: 1.55; margin-bottom: 32px; }
.hn-btns { display: flex; gap: 26px; }
.hn-btns a { min-height: 54px; min-width: 204px; font-size: 16px; }
/* thanh ngành */
.hn-ind-sec { padding: 0 !important; position: relative; z-index: 3; margin-top: -42px !important; background: transparent !important; }
.hn-ind-sec .section-bg { display: none; }
.hn-ind { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border-radius: 4px; box-shadow: 0 12px 30px rgba(20,24,30,.12); padding: 22px 0; }
.hn-ind button { margin: 0; background: none; border: 0; border-left: 1px solid #e5e7ea; display: flex; flex-direction: column; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; min-height: 0; padding: 6px 0; cursor: pointer; }
.hn-ind button:first-child { border-left: 0; }
.hn-ind img { width: 58px; height: 58px; }
.hn-ind b { line-height: 1.3; font-size: 18px; font-weight: 600; color: #1f2328; }
.hn-ind button.on b, .hn-ind button:hover b { color: var(--c1); }
/* giới thiệu */
.hn-about-sec { padding: 44px 0 48px !important; }
.hn-eb { color: var(--c1); font-size: 17px; font-weight: 500; display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hn-eb::after { content: ""; width: 68px; height: 2px; background: var(--c1); }
.hn-txt { color: var(--mu); font-size: 17px; line-height: 1.65; margin: 18px 0 30px; max-width: 610px; }
.hn-about-l .b9-btn { min-height: 52px; padding: 0 36px; }
.hn-about-img img { width: 100%; height: 380px; object-fit: cover; display: block; border-radius: 2px; }
/* SP */
.hn-prod-sec { padding: 44px 0 46px !important; }
.hn-prod { --n: 4; --gap: 22px; --pc-ar: 305 / 230; --pc-pad: 4px; }
.hn-prod .b9-pc { border: 0; border-radius: 2px; }
.hn-prod .b9-pc-cat { font-size: 14px; }
.hn-prod .b9-pc-t { font-size: 19.5px; font-weight: 700; }
.hn-prod .b9-pc-p, .hn-prod .b9-pc-ct { font-size: 15px; font-weight: 600; }
.hn-prod .b9-pc-btn a { min-height: 42px; font-size: 14.5px; border-radius: 3px; }
/* giải pháp */
.hn-sol-sec { padding: 46px 0 46px !important; }
.hn-tabs { display: flex; gap: 0; border-bottom: 1px solid #e3e5e8; margin: 18px 0 22px; }
.hn-tabs button { margin: 0 0 -1px; background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 40px; font-size: 18.5px; color: #555; text-transform: none; letter-spacing: 0; font-weight: 500; min-height: 0; }
.hn-tabs button.on { color: var(--c1); border-color: var(--c1); }
.hn-sol { display: grid; grid-template-columns: minmax(0, 703fr) minmax(0, 560fr); gap: 42px; align-items: center; }
.hn-sol img { width: 100%; aspect-ratio: 703 / 388; object-fit: cover; display: block; }
.hn-sol h3 { font-size: 35px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; }
.hn-sol p { color: var(--mu); font-size: 16.5px; margin: 0 0 18px; }
.hn-sol ul { list-style: none; margin: 0 0 26px; padding: 0; }
.hn-sol li { display: flex; gap: 12px; align-items: center; font-size: 16.5px; color: #33383f; margin-bottom: 12px; }
.hn-sol li .b9-ic { width: 24px; height: 24px; color: var(--c1); }
.hn-sol .b9-btn { min-height: 50px; padding: 0 40px; }
/* dịch vụ */
.hn-svc-sec { padding: 42px 0 46px !important; }
.hn-w { color: #fff !important; display: flex; align-items: center; gap: 16px; }
.hn-w::after { content: ""; width: 66px; height: 2px; background: var(--c1); }
.hn-svc-s { color: rgba(255,255,255,.8); font-size: 17px; margin: 8px 0 26px; }
.hn-svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hn-svc > div { padding: 0 30px; border-left: 1px solid rgba(255,255,255,.25); }
.hn-svc > div:first-child { border-left: 0; padding-left: 0; }
.hn-svc em { display: block; font-style: normal; font-family: var(--hf); font-size: 60px; font-weight: 800; color: var(--c1); line-height: 1; margin-bottom: 14px; }
.hn-svc b { display: block; color: #fff; font-size: 22px; font-weight: 700; font-family: var(--hf); }
.hn-svc span { display: block; color: rgba(255,255,255,.75); font-size: 16px; margin-top: 6px; }
/* tin */
.hn-news-sec { padding: 42px 0 46px !important; }
.hn-sol-sec .hn-h2, .hn-prod-sec .b9-hd h2, .hn-h2l { display: flex; flex-direction: column; gap: 10px; }
.hn-h2l::after { content: ""; width: 62px; height: 2px; background: var(--c1); }
.hn-news { --gap: 22px; --po-ar: 420 / 218; }
.hn-news .b9-po { border-radius: 2px; }
.hn-news .b9-po-t { font-size: 20.5px; }
#footer .b9-ft { --ft: #1f2328; --ftlogo: 66px; }
.b9-ft-soc-row .b9-ic { width: 30px; height: 30px; }
@media (min-width: 850px) and (max-width: 1199px) { .hn-tabs button { padding: 10px 18px; font-size: 15px; } .hn-svc > div { padding: 0 14px; } .hn-svc b { font-size: 18px; } }
@media (max-width: 849px) {
  #header #logo a { width: 170px; height: 46px; background-position: center; }
  .hn-sec h2, .hn-h2 { font-size: 27px; }
  .hn-hero { min-height: 0; padding: 262px 0 60px !important; background-color: #1f2328 !important; }
  .hn-hero .section-bg { bottom: auto; height: 250px; } .hn-hero .section-bg .bg { object-position: 78% 40% !important; } .hn-hero .section-bg::after { display: none; }
  .hn-h1 { font-size: 32px; } .hn-hero-s { font-size: 16px; } .hn-hero-s br { display: none; }
  .hn-btns { gap: 10px; } .hn-btns a { min-width: 0; flex: 1; }
  .hn-ind { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; padding: 16px 0; } .hn-ind button:nth-child(4) { border-left: 0; } .hn-ind img { width: 36px; height: 36px; } .hn-ind b { font-size: 13px; }
  .hn-about-img img { height: 230px; margin-top: 16px; }
  .hn-prod { --nm: 2; }
  .hn-tabs { overflow-x: auto; } .hn-tabs button { padding: 10px 14px; white-space: nowrap; font-size: 15px; }
  .hn-sol { grid-template-columns: minmax(0, 1fr); gap: 18px; } .hn-sol h3 { font-size: 24px; }
  .hn-svc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; } .hn-svc > div:nth-child(3) { border-left: 0; padding-left: 0; } .hn-svc > div { padding: 0 14px; } .hn-svc em { font-size: 42px; } .hn-svc b { font-size: 18px; }
  .hn-news { --nm: 1; }
}
/* _midwidth: header Flatsome ở 850-1399px (laptop nhỏ/tablet ngang) — menu dựng theo mockup 1440 tràn phải; dùng chung mọi site */
@media (min-width: 850px) and (max-width: 1399px) {
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 6px !important; margin-right: 6px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 14px !important; }
  #header .header-search-form { max-width: 300px !important; width: 300px !important; margin-left: 20px !important; }
}
@media (min-width: 850px) and (max-width: 1199px) {
  #logo { width: auto !important; max-width: 210px !important; } #logo a { font-size: 21px !important; }
  #header .header-main .flex-right .header-button-1, #header .header-main .flex-right li.html, #header .header-search-form, #top-bar .flex-right { display: none !important; }
  #header .header-nav-main > li, #header .header-bottom-nav > li { margin-left: 3px !important; margin-right: 3px !important; }
  #header .header-nav-main > li > a, #header .header-bottom-nav > li > a { font-size: 13px !important; }
  #header .flex-col { min-width: 0; } #header .header-inner, #header .header-bottom .container { overflow: hidden; }
}
.col-inner a[href^="mailto"], .col-inner a[href^="tel"] { overflow-wrap: anywhere; }
