/* TENSAN Việt Nam - mẫu giao diện trang chủ + giới thiệu
   Bố cục tham khảo phong cách trang doanh nghiệp công nghiệp (banner ảnh nhà máy toàn chiều rộng,
   menu căn giữa, mục đánh số), màu sắc lấy từ logo TENSAN. */

:root {
  --teal: #38a8a8;          /* màu logo */
  --teal-deep: #1b7778;     /* chữ, nút trên nền trắng */
  --teal-field: #14595b;
  --teal-tint: #e6f4f3;
  --slate: #708890;         /* màu logo */
  --slate-text: #45606a;    /* chữ phụ */
  --ink: #0f2c31;
  --paper: #f4f9f9;
  --line: #d3e1e3;

  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-head: "Be Vietnam Pro", "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--slate) var(--paper); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:not(.btn):hover { color: var(--ink); }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--slate); border: 3px solid var(--paper); border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -.005em; margin: 0; text-wrap: wrap; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.375rem; }
p { margin: 0; }
.lead { font-size: 1.1875rem; line-height: 1.6; max-width: 60ch; text-wrap: wrap; }
.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  font: 600 1rem/1 var(--font-body); padding: 15px 24px; border-radius: 3px;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-solid { background: var(--teal-deep); color: #fff; }
.btn-solid:hover { background: var(--ink); color: #fff; }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { background: #fff; color: var(--ink); }
.btn-line { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- đầu trang ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: #fff; border-top: 4px solid var(--teal); box-shadow: 0 1px 0 var(--line); }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: 80px; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 40px); }
.nav a.link {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .875rem; letter-spacing: .07em; text-transform: uppercase;
  padding-block: 10px; border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.nav a.link:hover { color: var(--teal-deep); border-color: var(--teal); }
.nav a.link[aria-current="page"] { color: var(--teal-deep); border-color: var(--teal-deep); }
.head-cta { justify-self: end; display: flex; align-items: center; gap: 16px; }
.head-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .02em; }
.head-phone svg { width: 20px; height: 20px; color: var(--teal-deep); }
.head-phone:hover { color: var(--teal-deep); }
.menu-btn { display: none; justify-self: end; background: none; border: 1.5px solid var(--ink); border-radius: 3px; width: 46px; height: 46px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; margin: auto; }

/* ---------- banner trang chủ ---------- */
.hero { position: relative; height: clamp(540px, 84vh, 740px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.slide { position: absolute; inset: -110px 0 0 0; opacity: 0; transition: opacity 1.4s ease; z-index: -2; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 32, 35, .5) 0%, rgba(8, 32, 35, .66) 55%, rgba(8, 32, 35, .82) 100%); }
.hero-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 24px; padding: 40px 72px 88px; }
.hero h1 { max-width: 19ch; }
.hero .lead { color: #e1f0ef; max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.slide-btn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--teal); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .25s, scale .25s var(--ease); z-index: 2; }
.slide-btn:hover { background: #fff; scale: 1.06; }
.slide-btn svg { width: 22px; height: 22px; }
.slide-btn.prev { left: clamp(10px, 2.5vw, 36px); }
.slide-btn.next { right: clamp(10px, 2.5vw, 36px); }
.dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; gap: 10px; justify-content: center; z-index: 2; }
.dots button { width: 34px; height: 5px; padding: 0; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: background-color .3s, width .4s var(--ease); }
.dots button[aria-current="true"] { background: var(--teal); width: 56px; }
.dots button:hover { background: #fff; }

.cert-band { background: var(--teal); color: var(--ink); }
.cert-band .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 0; padding-block: 18px; font-family: var(--font-head); font-weight: 600; font-size: 1.1875rem; letter-spacing: .04em; }
.cert-band span { display: inline-flex; align-items: center; white-space: nowrap; }
.cert-band span + span::before { content: ""; width: 5px; height: 5px; background: var(--ink); margin-inline: 22px; }

/* ---------- khối chung ---------- */
section { padding-block: clamp(64px, 9vw, 112px); }
.on-paper { background: var(--paper); }
.num { display: block; font-family: var(--font-head); font-weight: 700; font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--teal); letter-spacing: .01em; margin-bottom: -.12em; user-select: none; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
#phong-thi-nghiem .sec-head { max-width: none; }
#phong-thi-nghiem .sec-head h2 { white-space: nowrap; }
#phong-thi-nghiem .sec-head p { max-width: none; text-wrap: wrap; }
#tieu-chuan .sec-head { max-width: none; }
#tieu-chuan .sec-head p { max-width: none; text-wrap: wrap; }
@media (max-width: 760px) {
  #phong-thi-nghiem .sec-head h2 { white-space: normal; }
}
.sec-head p { color: var(--slate-text); font-size: 1.125rem; }
.sec-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.sec-head.center { max-width: 1040px; }
.sec-head.center p { text-wrap: wrap; }

/* ---------- giới thiệu nhanh (ảnh chồng) ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.overlap { position: relative; aspect-ratio: 1 / 1.22; }
.overlap img { position: absolute; object-fit: cover; }
.overlap .a { left: 0; top: 0; width: 74%; height: 68%; translate: 0 calc(var(--o, 0) * -34px); }
.overlap .b { right: 0; bottom: 0; width: 64%; height: 50%; border: 10px solid #fff; box-shadow: 0 14px 34px rgba(15, 44, 49, .18); translate: 0 calc(var(--o, 0) * 46px); }
.overlap::before { content: ""; position: absolute; left: 14%; top: 8%; width: 72%; height: 78%; border: 1.5px solid var(--teal); z-index: -1; translate: -22px -22px; }
.intro-copy { display: grid; gap: 20px; }
.intro-copy > p { color: var(--slate-text); }
.points { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.points li::before { content: ""; width: 14px; height: 14px; margin-top: 6px; background: var(--teal); }
.points b { display: block; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.25; }
.points span { color: var(--slate-text); font-size: .9688rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- danh mục ---------- */
.catalog { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.cat-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.cat-row {
  display: grid; grid-template-columns: 148px minmax(0, 1fr) 28px; gap: 24px; align-items: center;
  padding: 18px 8px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink);
  transition: background-color .25s var(--ease), padding .3s var(--ease);
}
.cat-row:hover { background: var(--teal-tint); padding-left: 14px; }
.cat-row:hover .go { transform: translateX(4px); color: var(--teal-deep); }
.cat-thumb { background: #fff; border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.cat-row h3 { margin-bottom: 6px; }
.cat-row p { color: var(--slate-text); font-size: .9688rem; line-height: 1.55; margin-bottom: 12px; max-width: 58ch; }
.go { width: 24px; height: 24px; color: var(--slate); transition: transform .3s var(--ease), color .2s; }
.codes { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.codes li { font-family: var(--font-head); font-weight: 600; font-size: .9375rem; letter-spacing: .03em; border: 1px solid var(--line); background: #fff; color: var(--teal-deep); padding: 2px 9px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.cat-more { margin-top: 22px; color: var(--slate-text); font-size: .9688rem; max-width: 70ch; }
.cat-more b { color: var(--ink); }
.side-panel { position: sticky; top: 112px; background: var(--teal); color: var(--ink); padding: 32px; display: grid; gap: 16px; }
.side-panel h3 { font-size: 1.75rem; }
.side-panel p { font-size: 1rem; line-height: 1.6; }
.phone-big { font-family: var(--font-head); font-weight: 700; font-size: 1.875rem; line-height: 1; letter-spacing: .01em; }

/* ---------- năng lực: ảnh + bảng thông số ---------- */
.factory { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.mosaic { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px 12px; }
.mosaic figure { margin: 0; }
.mosaic .tall { grid-row: span 2; }
.mosaic .frame { overflow: hidden; background: var(--line); height: calc(100% - 32px); min-height: 170px; }
.mosaic .tall .frame { min-height: 400px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption, .photo figcaption { font-size: .875rem; color: var(--slate-text); padding-top: 8px; }
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-family: var(--font-head); font-weight: 600; font-size: 1.0625rem; color: var(--slate-text); }
.spec dd { margin: 0; font-weight: 500; }
.spec dd small { display: block; font-weight: 400; color: var(--slate-text); font-size: .9063rem; }

/* ---------- cam kết ---------- */
.promise { padding-block: 48px; border-block: 1px solid var(--line); }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
.promise li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 4px 24px; border-left: 1px solid var(--line); }
.promise li:nth-child(odd) { border-left: 0; padding-left: 0; }
.promise svg { width: 36px; height: 36px; color: var(--teal-deep); }
.promise b { display: block; font-family: var(--font-head); font-size: 1.1875rem; line-height: 1.2; margin-bottom: 4px; }
.promise span { color: var(--slate-text); font-size: .9375rem; line-height: 1.5; display: block; }

/* ---------- dải liên hệ ---------- */
.cta { background: var(--teal); color: var(--ink); padding-block: clamp(48px, 7vw, 80px); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { max-width: 20ch; }
.cta p { margin-top: 10px; font-size: 1.125rem; max-width: 52ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- chân trang ---------- */
.site-foot { background: var(--ink); color: #b9d0d3; padding-block: 64px 28px; font-size: .9688rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(max-content, 3fr) minmax(0, 2fr) minmax(max-content, 3fr); gap: 40px; }
.foot-grid img { height: 52px; width: auto; margin-bottom: 20px; }
.foot-grid h4 { font-family: var(--font-head); font-size: 1.125rem; letter-spacing: .02em; color: #fff; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid li a { white-space: nowrap; }
.site-foot a { color: #b9d0d3; text-decoration: none; }
.site-foot a:hover { color: var(--teal); text-decoration: underline; }
.foot-company { color: #fff; font-weight: 600; margin-bottom: 8px; }
.foot-addr { display: grid; gap: 4px; }
.foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .15); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .875rem; color: #9dbcc0; }

/* ---------- trang giới thiệu ---------- */
.banner { position: relative; isolation: isolate; height: clamp(300px, 44vh, 400px); display: grid; place-items: center; text-align: center; color: #fff; background: var(--ink); overflow: hidden; }
.banner > img { position: absolute; left: 0; top: -90px; width: 100%; height: calc(100% + 90px); object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 32, 35, .55), rgba(8, 32, 35, .78)); }
.banner h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.banner .crumbs { margin-top: 14px; font-size: .9375rem; color: #d3e8e7; }
.banner .crumbs a { color: #fff; }

.id-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 5vw, 64px); align-items: start; }
.brand-pos { margin-top: 24px; margin-bottom: 28px; }
.brand-pos h3 { font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.3; text-wrap: wrap; }
.brand-pos p { text-wrap: wrap; margin-top: 12px; color: var(--slate-text); font-size: 1.0625rem; line-height: 1.65; }
.serve-h { margin-top: 56px; }
.serve { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--line); }
.serve li { padding: 18px 16px 0 0; font-weight: 600; line-height: 1.4; }
.serve li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.letter h2, .letter-card h2 { text-wrap: wrap; }
.letter-origin { margin-top: 12px; color: var(--slate-text); font-style: italic; }
#thu-ngo { scroll-margin-top: calc(var(--hh, 96px) + 58px); }
.vm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.vm > div { padding: 28px 32px 32px 0; }
.vm > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.vm h3 { margin-bottom: 12px; color: var(--teal-deep); font-size: 1.75rem; }
.vm p { font-size: 1.1875rem; line-height: 1.55; max-width: none; }
.values-title { margin-top: 64px; font-size: 1.75rem; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid var(--line); }
.values > div { padding: 24px 24px 8px 0; }
.values > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.values h3 { font-size: 1.5rem; margin-bottom: 8px; }
.values p { color: var(--slate-text); font-size: .9688rem; line-height: 1.55; }

.capacity { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 4vw, 56px); align-items: start; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photos-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.stack { display: grid; gap: 40px; }
.certs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cert { margin: 0; }
.cert a { display: block; border: 1px solid var(--line); background: #fff; padding: 8px; transition: border-color .25s, transform .35s var(--ease); }
.cert a:hover { border-color: var(--teal); transform: translateY(-4px); }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; }
.cert-tag { margin-bottom: 10px; padding: 12px 8px; border: 1px solid var(--line); background: #fff; text-align: center; font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; color: var(--teal-deep); }
.cert figcaption { padding-top: 10px; font-weight: 600; font-size: .9688rem; line-height: 1.4; }
.std-list { margin: 0 0 40px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.std-list li { padding: 20px 24px 20px 0; }
.std-list li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.std-list b { display: block; font-family: var(--font-head); font-size: 1.375rem; margin-bottom: 6px; }
.std-list span { color: var(--slate-text); font-size: .9688rem; line-height: 1.55; display: block; }
.export { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.export img { width: 100%; border: 1px solid var(--line); }
.export .spec { margin-top: 28px; }

/* ---------- chuyển động ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise .9s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: .1s; }
  .hero-inner > :nth-child(3) { animation-delay: .2s; }
  .slide.on img { animation: drift 9s ease-out both; }
  .banner h1, .banner .crumbs { animation: rise .9s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(22px); } }
  @keyframes drift { from { transform: scale(1.07); } }
}

/* ---------- hiệu ứng cuộn trang ---------- */
.overlap img { transition: filter .6s var(--ease); }
.overlap:hover .a { filter: saturate(1.08); }
.overlap:hover .b { filter: saturate(1.08) contrast(1.03); }
.site-head .wrap { transition: min-height .35s var(--ease); }
.brand img { transition: height .35s var(--ease); }
.site-head { transition: box-shadow .35s var(--ease); }
.site-head.scrolled { box-shadow: 0 8px 28px rgba(15, 44, 49, .12); }
.site-head.scrolled .wrap { min-height: 64px; }
.site-head.scrolled .brand img { height: 38px; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--teal-deep); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease), transform 1s var(--ease), clip-path 1.2s var(--ease), letter-spacing 1.4s var(--ease); transition-delay: var(--d, 0s); }
  html.js [data-reveal="up"] { transform: translateY(32px); }
  html.js [data-reveal="left"] { transform: translateX(-48px); }
  html.js [data-reveal="right"] { transform: translateX(48px); }
  html.js [data-reveal="clip"] { opacity: 1; clip-path: inset(0 99% 0 0); }
  html.js [data-reveal="clip"] img { transform: scale(1.18); transition: transform 1.6s var(--ease); transition-delay: var(--d, 0s); }
  html.js .num[data-reveal] { letter-spacing: .16em; }
  html.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
  html.js [data-reveal="clip"].is-in img { transform: none; }
  html.js .num[data-reveal].is-in { letter-spacing: .01em; }

  /* khung viền của cụm ảnh chồng nhau được vẽ ra khi cuộn tới */
  html.js .overlap::before { clip-path: inset(0 100% 100% 0); transition: clip-path 1.4s var(--ease) .3s; }
  html.js .overlap.is-in::before { clip-path: inset(0); }

  /* đường kẻ dưới tiêu đề căn giữa mọc dài ra */

  /* dải màu xanh ở đầu danh mục trượt vào */
  html.js .cat-list, html.js .spec, html.js .std-list, html.js .vm { position: relative; }
  html.js .cat-list::before, html.js .spec::before, html.js .std-list::before, html.js .vm::before {
    content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--teal);
    transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.3s var(--ease) .1s; z-index: 1;
  }
  html.js .cat-list.is-in::before, html.js .spec.is-in::before, html.js .std-list.is-in::before, html.js .vm.is-in::before { transform: scaleX(1); }
  .hero-inner, .hero .slide, .banner > img { will-change: transform; }
}

/* ---------- bên trong nhà máy: cuộn dọc, ảnh chạy ngang ---------- */
.pin { padding-block: clamp(56px, 8vw, 96px); background: var(--ink); color: #fff; position: relative; }
.pin-stick { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px); }
.pin-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.pin-head h2 { color: #fff; flex: 1 0 100%; width: 100%; max-width: none; text-wrap: wrap; }
.pin-head p { color: #b9d0d3; flex: 1 0 100%; max-width: none; }
.pin-viewport { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pin-track { flex: none; display: flex; animation: pin-scroll 70s linear infinite; }
.pin-viewport:hover .pin-track { animation-play-state: paused; }
@keyframes pin-scroll { to { transform: translateX(-100%); } }
.pin-card { margin: 0 28px 0 0; position: relative; flex: none; width: min(60vw, 780px); height: min(52vh, 460px); overflow: hidden; background: #123c42; }
.pin-card img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.pin-card figcaption { position: absolute; left: 0; bottom: 0; background: #fff; color: var(--ink); padding: 12px 20px; font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; display: flex; gap: 12px; align-items: baseline; }
.pin-card figcaption b { color: var(--teal-deep); font-size: 1.5rem; }
.pin-bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pin-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .pin-track { animation: none; }
  .pin-track[aria-hidden] { display: none; }
}
@media (max-width: 760px) {
  .pin-card { width: 82vw; height: 56vw; max-height: 420px; }
}
}

/* ---------- hiệu ứng nâng cao ---------- */
.btn { transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), translate .35s var(--ease); }
.cat-thumb img { transition: transform .7s var(--ease); }
.cat-row:hover .cat-thumb img { transform: scale(1.14) rotate(-2deg); }
.marquee { background: var(--ink); color: #fff; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; width: max-content; }
.marquee-set { display: flex; flex: none; }
.marquee span { flex: none; font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; letter-spacing: .06em; padding: 14px 0; font-variant-numeric: tabular-nums; }
.marquee span::after { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--teal); margin-inline: 28px; vertical-align: middle; }
.scroll-cue { position: absolute; right: clamp(16px, 3vw, 44px); bottom: 26px; z-index: 2; display: flex; align-items: center; gap: 12px; color: #e1f0ef; font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-cue i { width: 1px; height: 54px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 55s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
  @keyframes marquee { to { transform: translateX(-50%); } }
  .scroll-cue i::after { animation: cue 1.8s var(--ease) infinite; }
  @keyframes cue { from { transform: translateY(-110%); } to { transform: translateY(260%); } }

  /* chuyển ảnh banner kiểu lau ngang */
  .slide { opacity: 1; transition: none; z-index: -4; clip-path: inset(0 0 0 100%); }
  .slide.on { z-index: -2; clip-path: inset(0); transition: clip-path 1.3s var(--ease); }
  .slide.prev { z-index: -3; clip-path: inset(0); transition: none; }

  /* tiêu đề hiện từng chữ */
  html.js .split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
  html.js .split .w > span { display: inline-block; transform: translateY(115%); transition: transform 1.05s var(--ease); transition-delay: calc(var(--i) * 70ms + .1s); }
  html.js .split.split-in .w > span { transform: none; }
}

/* ---------- bố cục tham khảo phong cách tập đoàn công nghệ ---------- */
.topbar { background: #0b1f23; color: #c9dde0; font-size: .8125rem; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; padding-block: 6px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { color: var(--teal); }

.rule { height: 2px; width: 100%; background: linear-gradient(90deg, var(--teal-deep), rgba(56, 168, 168, 0)); margin: 18px 0 26px; }
.rule.light { background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0)); }

.intro2 { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6.2fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.intro2-photo { margin: 0; overflow: hidden; aspect-ratio: 4 / 5; background: var(--line); }
.intro2-photo img { width: 100%; height: 100%; object-fit: cover; }
.intro2-copy { display: grid; }
.intro2-copy h2 { max-width: none; text-wrap: wrap; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.big-nums { display: grid; gap: 22px; margin-bottom: 28px; }
.big-nums > div { display: grid; grid-template-columns: minmax(130px, 170px) 1fr; gap: 22px; align-items: baseline; }
.big { font-family: var(--font-head); font-weight: 600; font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1; color: var(--teal-deep); font-variant-numeric: tabular-nums; }
.big small { font-size: 1.0625rem; color: var(--slate-text); font-weight: 500; margin-left: 8px; letter-spacing: .02em; }
.big-nums p:not(.big) { color: var(--slate-text); font-size: .9rem; line-height: 1.55; }

.arcs { position: relative; overflow: hidden; }
.arcs::before, .arcs::after { content: ""; position: absolute; border: 70px solid rgba(56, 168, 168, .07); border-radius: 50%; pointer-events: none; }
.arcs::before { width: 560px; height: 560px; right: -210px; top: 140px; }
.arcs::after { width: 380px; height: 380px; right: -120px; top: 330px; border-width: 50px; }
.arcs > .wrap { position: relative; z-index: 1; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; background: #fff; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--teal-deep); box-shadow: 0 2px 18px rgba(15, 44, 49, .06); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.pcard:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(15, 44, 49, .14); }
.pimg { aspect-ratio: 4 / 3; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.pimg img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; display: block; transition: transform .8s var(--ease); }
.pcard:hover .pimg img { transform: scale(1.1); }
.pbody { padding: 20px 22px 24px; display: grid; gap: 8px; align-content: start; flex: 1; }
.pbody h3 { font-size: 1.375rem; text-wrap: wrap; }
.pbody p { color: var(--slate-text); font-size: .9375rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.center-text { text-align: center; margin-inline: auto; }

.photo-cta { position: relative; isolation: isolate; padding: 0; min-height: clamp(380px, 54vh, 520px); display: grid; align-items: center; color: #fff; background: var(--ink); overflow: hidden; }
.photo-cta > img, .photo-cta > picture > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-cta > picture { position: absolute; inset: 0; display: block; z-index: -2; }
.photo-cta > picture > img { position: static; z-index: auto; display: block; }
.photo-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 32, 35, .25) 0%, rgba(8, 32, 35, .72) 55%, rgba(8, 32, 35, .88) 100%); }
.photo-cta-in { display: flex; justify-content: flex-end; padding-block: 56px; }
.photo-cta-in > div { max-width: 520px; display: grid; gap: 16px; }
.photo-cta h2 { color: #fff; }
.photo-cta p { color: #dcecec; }
.photo-cta .cta-actions { margin-top: 6px; }

.statement { background: var(--teal-field); color: #fff; position: relative; overflow: hidden; }
.statement::after { content: ""; position: absolute; right: -140px; top: -140px; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .05); pointer-events: none; }
.statement .wrap { position: relative; display: grid; gap: 16px; justify-items: start; }
.statement h2 { max-width: none; text-wrap: wrap; }
.statement .rule { max-width: none; margin-block: 10px; }
.values-line { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; letter-spacing: .04em; color: var(--teal); }
.statement p { max-width: none; color: #d7ebea; text-wrap: wrap; }
.statement .btn { margin-top: 12px; }

.contact-strip { background: var(--paper); border-top: 1px solid var(--line); }
.contact-strip .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3.5fr) minmax(0, 3.5fr); gap: 32px; padding-block: 56px; align-items: start; }
.contact-strip h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.cs-item { display: grid; gap: 6px; color: var(--ink); text-decoration: none; align-content: start; }
.cs-item svg { width: 34px; height: 34px; color: var(--teal-deep); margin-bottom: 4px; }
.cs-item b { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.2; }
.cs-item span { color: var(--slate-text); font-size: .9688rem; line-height: 1.5; }
a.cs-item:hover b { color: var(--teal-deep); }

/* chân trang sáng */
.site-foot { background: #fff; color: var(--slate-text); padding: 56px 0 0; border-top: 1px solid var(--line); }
.site-foot a { color: var(--slate-text); }
.site-foot a:hover { color: var(--teal-deep); }
.foot-grid h4 { color: var(--ink); font-size: 1.125rem; }
.foot-grid img { height: 100px; margin-bottom: 16px; }
.foot-company { color: var(--ink); }
.foot-bar { background: #e9eff0; margin-top: 44px; font-size: .875rem; color: var(--slate-text); }
.foot-bar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }

.float-btns { position: fixed; right: 18px; bottom: 28px; z-index: 40; display: grid; gap: 10px; }
.float-btns a { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--teal-deep); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(15, 44, 49, .22); transition: background-color .25s, color .25s, transform .3s var(--ease); }
.float-btns a:hover { background: var(--teal-deep); color: #fff; transform: scale(1.08); }
.float-btns svg { width: 22px; height: 22px; }

/* ---------- thanh điều hướng có mục con + menu lớn ---------- */
section[id] { scroll-margin-top: 92px; }
.nav { align-self: stretch; align-items: stretch; gap: clamp(14px, 1.9vw, 30px); }
.nav-item { display: flex; align-items: center; }
.nav a.link { text-transform: none; letter-spacing: 0; font-size: .9688rem; font-weight: 500; }
.nav a.link[aria-current="page"] { font-weight: 600; }
.nav-item.has-sub > a.link::after { content: ""; display: inline-block; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 8px; opacity: .6; transition: transform .3s var(--ease); }
.nav-item.has-sub:hover > a.link::after, .nav-item.has-sub:focus-within > a.link::after { transform: translateY(1px) rotate(-135deg); }
.nav-item:hover > a.link { color: var(--teal-deep); border-color: var(--teal); }
.nav-item.has-sub:not(.is-mega) { position: relative; }
.panel { position: absolute; top: 100%; background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: 0 24px 40px rgba(15, 44, 49, .14); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s var(--ease), transform .4s var(--ease), visibility 0s linear .3s; z-index: 60; }
.nav-item:hover > .panel, .nav-item:focus-within > .panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.drop { list-style: none; margin: 0; padding: 8px 0; left: -18px; min-width: 290px; }
.drop a { display: block; padding: 11px 22px; color: var(--ink); text-decoration: none; font-size: .9688rem; transition: background-color .2s, padding .3s var(--ease), color .2s; }
.drop a:hover { background: var(--teal-tint); color: var(--teal-deep); padding-left: 28px; }
.mega { left: 0; right: 0; border-left: 0; border-right: 0; }
.mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; padding-block: 34px 30px; align-items: center; }
.mega-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; }
.mega-links a { display: grid; justify-items: center; gap: 12px; padding: 20px 10px; text-decoration: none; color: var(--ink); font-size: .9688rem; text-align: center; transition: background-color .25s, color .25s; }
.mega-links svg { width: 40px; height: 40px; color: var(--ink); transition: color .25s, transform .4s var(--ease); }
.mega-links a:hover { background: var(--teal-tint); color: var(--teal-deep); }
.mega-links a:hover svg { color: var(--teal-deep); transform: translateY(-3px); }
.mega-img { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.mega-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .25s; }
.mega-bar { background: var(--paper); border-top: 1px solid var(--line); }
.mega-bar .wrap { display: flex; gap: 40px; padding-block: 16px; }
.mega-bar a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .9688rem; }
.mega-bar svg { width: 26px; height: 26px; color: var(--teal-deep); }
.mega-bar a:hover { color: var(--teal-deep); }

/* mục "vì sao chọn" */
.bring-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.bring-grid > div { display: grid; gap: 10px; align-content: start; padding: 28px 26px 8px 0; }
.bring-grid > div + div { padding-left: 26px; border-left: 1px solid var(--line); }
.bring-grid svg { width: 40px; height: 40px; color: var(--teal-deep); }
.bring-grid p { color: var(--slate-text); font-size: .9688rem; line-height: 1.55; }

/* tin tức */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ncard { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--teal-deep); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ncard:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(15, 44, 49, .14); }
.ntag { position: absolute; left: 0; top: 0; z-index: 1; background: var(--slate-text); color: #fff; font-size: .8125rem; font-weight: 500; padding: 3px 12px; }
.nimg { aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.nimg img { width: 100%; height: 100%; object-fit: cover; background: var(--paper); transition: transform .8s var(--ease); }
.ncard:hover .nimg img { transform: scale(1.08); }
.nbody { padding: 18px 20px 22px; display: grid; gap: 10px; flex: 1; align-content: space-between; }
.nbody h3 { text-wrap: wrap; font-size: 1.1875rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nbody time { color: var(--slate-text); font-size: .875rem; }

/* biểu tượng mạng xã hội ở chân trang */
.foot-social { display: flex; gap: 14px; justify-content: flex-end; margin-top: -4px; padding-bottom: 8px; }
.foot-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--slate); background: #eef3f4; text-decoration: none; font-size: .75rem; font-weight: 700; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.foot-social a:hover { background: var(--teal-deep); color: #fff; transform: translateY(-3px); text-decoration: none; }
.foot-social svg { width: 22px; height: 22px; }

/* ---------- điểm nhấn: tra cứu mã hàng, mạng phân tử, nghiêng 3D ---------- */
.slide img { width: calc(100% + 56px); height: calc(100% + 56px); margin: -28px; max-width: none; transition: translate .6s var(--ease); }

.finder { position: relative; z-index: 6; margin-top: 0; padding: 28px var(--gutter) 26px; }
.finder-card { position: relative; width: min(100%, 860px); margin-inline: auto; background: #fff; box-shadow: 0 22px 54px rgba(8, 32, 35, .26); padding: 18px 22px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; align-items: center; border-top: 3px solid var(--teal); }
.finder-card label { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.finder-field { position: relative; display: flex; align-items: center; }
.finder-field svg { position: absolute; left: 14px; width: 20px; height: 20px; color: var(--slate); pointer-events: none; }
.finder-field input { width: 100%; font: 500 1rem var(--font-body); color: var(--ink); padding: 14px 16px 14px 44px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.finder-field input:focus { outline: none; border-color: var(--teal-deep); background: #fff; box-shadow: 0 0 0 4px rgba(56, 168, 168, .22); }
.finder-chips { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.finder-chips button { font: 600 .9375rem var(--font-head); letter-spacing: .03em; color: var(--teal-deep); background: #fff; border: 1px solid var(--line); border-radius: 2px; padding: 3px 11px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.finder-chips button:hover { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.finder-results { grid-column: 1 / -1; list-style: none; margin: 4px 0 0; padding: 0; max-height: 260px; overflow: auto; border-top: 1px solid var(--line); }
.finder-results li button { width: 100%; display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 12px 8px; background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; font: 500 1rem var(--font-body); color: var(--ink); transition: background-color .2s; }
.finder-results li button:hover, .finder-results li button:focus-visible { background: var(--teal-tint); outline: none; }
.finder-results b { font-family: var(--font-head); font-size: 1.25rem; color: var(--teal-deep); letter-spacing: .03em; }
.finder-results small { color: var(--slate-text); font-size: .875rem; }
.finder-results li button.is-cat { grid-template-columns: 1fr auto; grid-template-areas: "name go" "tag go"; row-gap: 2px; background: var(--teal-tint); }
.finder-results li button.is-cat b { grid-area: name; font-size: 1.1rem; letter-spacing: 0; }
.finder-results li button.is-cat span { grid-area: tag; font-size: .8125rem; color: var(--slate-text); }
.finder-results li button.is-cat small { grid-area: go; display: block; color: var(--teal-deep); font-weight: 600; white-space: nowrap; }
.finder-results li button.is-cat small::after { content: " →"; }
.finder-results .none { padding: 14px 8px; color: var(--slate-text); }
.finder-results mark { background: rgba(56, 168, 168, .3); color: inherit; }

.net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; opacity: .9; }
.statement .wrap { pointer-events: none; }
.statement .wrap > * { pointer-events: auto; }

.pcard::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%); transition: opacity .4s; }
.pcard { position: relative; transform-style: preserve-3d; }
.pcard:hover::after { opacity: 1; }
.pcard.flash { animation: flash 2.2s var(--ease); }
@keyframes flash { 0%, 100% { box-shadow: 0 2px 18px rgba(15, 44, 49, .06); } 15%, 60% { box-shadow: 0 0 0 4px var(--teal), 0 22px 44px rgba(56, 168, 168, .35); } }
#nhom-khac.flash { animation: flashtxt 2.2s var(--ease); }
@keyframes flashtxt { 15%, 60% { background: rgba(56, 168, 168, .22); } }

/* ---------- trang giới thiệu: mục con dính, dải số liệu, hộp xem ảnh ---------- */
.banner > img { left: -28px; width: calc(100% + 56px); max-width: none; transition: translate .6s var(--ease); }
.subnav { position: sticky; top: var(--hh, 84px); z-index: 45; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(15, 44, 49, .05); }
.subnav .wrap { display: flex; gap: clamp(18px, 2.6vw, 38px); overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 16px 0 14px; color: var(--slate-text); text-decoration: none; font-weight: 500; font-size: .9688rem; border-bottom: 3px solid transparent; transition: color .2s, border-color .3s var(--ease); }
.subnav a:hover { color: var(--ink); }
/* desktop: hiện đủ mọi mục, không bị cắt phải cuộn ngang */
@media (min-width: 1021px) {
  .subnav .wrap { flex-wrap: nowrap; justify-content: space-between; column-gap: 6px; }
  .subnav a { font-size: .9rem; white-space: nowrap; }
}
.subnav a.on { color: var(--teal-deep); border-color: var(--teal-deep); font-weight: 600; }

.numbers { position: relative; overflow: hidden; background: var(--teal-field); color: #fff; padding-block: clamp(56px, 8vw, 96px); }
.numbers .net { opacity: .85; }
.numbers .wrap { position: relative; display: grid; gap: 36px; pointer-events: none; }
.numbers .wrap > * { pointer-events: auto; }
.numbers h2 { color: #fff; }
.num-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .3); }
.num-row > div { padding: 26px 24px 4px 0; display: grid; gap: 6px; align-content: start; }
.num-row > div + div { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .18); }
.nbig { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: clamp(2.8rem, 5.4vw, 4.5rem); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.nbig small { font-size: 1.0625rem; color: var(--teal); font-weight: 600; margin-left: 0; letter-spacing: .03em; white-space: nowrap; }
.num-row p:not(.nbig) { color: #cfe6e5; font-size: .9688rem; }

.cert a { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(8, 32, 35, .86); padding: 28px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s linear .35s; }
.lightbox.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lightbox img { max-height: 90vh; max-width: min(92vw, 760px); width: auto; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.92); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; right: 22px; top: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--ink); font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s, transform .3s var(--ease); }
.lightbox button:hover { background: var(--teal); transform: rotate(90deg); }

/* ---------- bản lớn hơn: thanh điều hướng, banner, ảnh toàn khổ ---------- */
.site-head .wrap { min-height: 96px; }
.brand img { height: 58px; }
.site-head.scrolled .wrap { min-height: 70px; }
.site-head.scrolled .brand img { height: 42px; }
.site-head { transition: box-shadow .5s var(--ease), background-color .5s var(--ease); }
.site-head .wrap, .brand img { transition: min-height .6s var(--ease), height .6s var(--ease); }
.nav { gap: clamp(16px, 2.2vw, 36px); }
.nav a.link { font-size: 1.0625rem; font-weight: 500; border-bottom: 0; position: relative; padding-block: 14px; }
.nav a.link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease); }
.nav-item:hover > a.link::before, .nav-item:focus-within > a.link::before, .nav a.link[aria-current="page"]::before { transform: scaleX(1); }
.nav a.link[aria-current="page"]::before { background: var(--teal-deep); }
.head-phone { font-size: 1.4rem; }
.head-phone svg { width: 24px; height: 24px; }
.topbar .wrap { padding-block: 8px; }

.hero { height: clamp(620px, calc(100svh - 128px), 940px); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); max-width: 22ch; line-height: 1.04; }
.hero .lead { font-size: clamp(1.1rem, 1.5vw, 1.375rem); max-width: 58ch; }
.hero-inner { gap: 30px; padding-bottom: 120px; }
.hero .btn { padding: 18px 28px; font-size: 1.0625rem; }
.slide.on { transition: clip-path 1.6s var(--ease); }
.slide.on img { animation-duration: 12s; }
.finder { margin-top: 0; }

.photo-cta { min-height: clamp(520px, 82vh, 800px); }
.photo-cta > img, .photo-cta > picture { height: calc(100% + 140px); top: -70px; will-change: transform; }
.photo-cta h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.08; }
.photo-cta p { font-size: 1.25rem; max-width: 46ch; }
.photo-cta-in > div { max-width: 640px; gap: 20px; }
.photo-cta .btn { padding: 17px 28px; font-size: 1.0625rem; }
.photo-cta.left .photo-cta-in { justify-content: flex-start; }
.photo-cta.left .photo-cta-in > div { max-width: none; }
.photo-cta.left h2 { text-wrap: wrap; }
.photo-cta.left p { max-width: none; }
.photo-cta.left p { text-wrap: wrap; }
.photo-cta.left::after { background: linear-gradient(270deg, rgba(8, 32, 35, .2) 0%, rgba(8, 32, 35, .66) 55%, rgba(8, 32, 35, .86) 100%); }
.banner { height: clamp(380px, 56vh, 560px); }
.banner h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.photo-cta-in { padding-block: 96px; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .catalog, .factory, .id-grid, .capacity, .export, .intro { grid-template-columns: 1fr; }
  .serve { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .serve li:nth-child(4) { padding-left: 0; border-left: 0; }
  .serve li:nth-child(n+4) { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 18px; }
  .side-panel { position: static; }
  .overlap { max-width: 620px; }
  .promise ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .promise li:nth-child(3) { border-left: 0; padding-left: 0; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .values > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .values > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 24px; }
  .certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .site-head .wrap { grid-template-columns: 1fr auto; }
  .menu-btn { display: grid; }
  .head-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; display: none; }
  .nav.open { display: flex; }
  .nav a.link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .nav-phone { display: inline-flex; margin-top: 14px; justify-content: center; }
}
@media (min-width: 901px) { .nav-phone { display: none; } }
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-inner { padding: 32px 20px 80px; gap: 18px; }
  .slide-btn { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cat-row { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
  .cat-row .go { display: none; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .tall { grid-row: auto; }
  .mosaic .tall .frame { min-height: 240px; }
  .vm { grid-template-columns: 1fr; }
  .vm > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .values { grid-template-columns: 1fr; }
  .values > div, .values > div + div { padding-left: 0; border-left: 0; }
  .values > div + div { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 24px; }
  .photos-3 { grid-template-columns: 1fr; }
  .serve { grid-template-columns: 1fr; }
  .serve li, .serve li + li { padding-left: 0; border-left: 0; }
  .serve li + li { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .std-list { grid-template-columns: 1fr; }
  .std-list li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .promise ul { grid-template-columns: 1fr; }
  .promise li, .promise li:nth-child(3) { border-left: 0; padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .overlap::before { display: none; }
  .cert-band .wrap { font-size: 1.0625rem; }
  .cert-band span + span::before { margin-inline: 14px; }
}

@media (max-width: 1020px) {
  .intro2 { grid-template-columns: 1fr; }
  .intro2-photo { aspect-ratio: 16 / 10; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-strip .wrap { grid-template-columns: 1fr 1fr; }
  .contact-strip h2 { grid-column: 1 / -1; }
  .photo-cta-in { justify-content: flex-start; }
  .photo-cta::after { background: rgba(8, 32, 35, .7); }
}
@media (max-width: 640px) {
  .big-nums > div { grid-template-columns: 1fr; gap: 6px; }
  .pgrid { grid-template-columns: 1fr; }
  .contact-strip .wrap { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: space-between; }
  .float-btns { right: 12px; bottom: 18px; }
}
@media (max-width: 760px) { .scroll-cue { display: none; } }

@media (max-width: 1020px) {
  .bring-grid { grid-template-columns: 1fr; }
  .bring-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 24px; }
  .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-item { display: block; }
  .nav-item.has-sub > a.link::after { display: none; }
  .panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; transition: none; }
  .drop { min-width: 0; padding: 0 0 6px 14px; }
  .drop a { padding: 8px 0; font-size: .9063rem; color: var(--slate-text); }
  .drop a:hover { padding-left: 0; background: none; }
  .mega-in { display: block; padding: 0 0 6px 14px; }
  .mega-links { grid-template-columns: 1fr; gap: 0; }
  .mega-links a { grid-template-columns: 28px 1fr; justify-items: start; text-align: left; padding: 8px 0; gap: 10px; align-items: center; font-size: .9063rem; color: var(--slate-text); }
  .mega-links svg { width: 22px; height: 22px; }
  .mega-img, .mega-bar { display: none; }
  .nav a.link { width: 100%; }
}
@media (max-width: 640px) {
  .news-grid { grid-template-columns: 1fr; }
  .foot-social { justify-content: flex-start; }
}

/* sửa: khung trong menu lớn không dùng lưới của đầu trang */
.site-head .mega .mega-in { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; min-height: 0; padding-block: 34px 30px; }
.site-head .mega .mega-bar .wrap { display: flex; grid-template-columns: none; min-height: 0; gap: 40px; padding-block: 16px; align-items: center; }
@media (max-width: 900px) {
  .site-head .mega .mega-in { display: block; padding: 0 0 6px 14px; }
  .nav a.link { display: block; width: 100%; }
}

@media (max-width: 760px) {
  .finder-card { grid-template-columns: 1fr; padding: 16px; }
  .finder-chips { grid-column: 1; }
  .finder-results li button { grid-template-columns: 90px 1fr; }
  .finder-results small { display: none; }
  .finder-results li button.is-cat { grid-template-columns: 1fr; grid-template-areas: "name" "tag"; }
}

@media (max-width: 1020px) {
  .num-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-row > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .num-row > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 22px; }
}
@media (max-width: 640px) {
  .num-row { grid-template-columns: 1fr; }
  .num-row > div, .num-row > div + div { padding-left: 0; border-left: 0; }
  .num-row > div + div { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 18px; }
}

/* ---------- quy trình: minh họa chuyển động ---------- */
.flow { background: var(--paper); overflow: hidden; }
.flow-stage { margin-top: -8px; }
.flow-svg { width: 100%; height: auto; display: block; overflow: visible; }
.gridline { stroke: #cfe0e2; stroke-width: 1; }
.route { fill: none; stroke: #bfdcdc; stroke-width: 14; stroke-linecap: round; }
.route-flow { fill: none; stroke: var(--teal-deep); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 16; }
.particles circle { fill: var(--teal); }
.slab-t { fill: #fff; stroke: var(--teal); stroke-width: 2; transition: fill .5s var(--ease); }
.slab-l { fill: #b9dada; } .slab-r { fill: #8fc3c3; }
.obj { fill: #fff; stroke: #4a6a70; stroke-width: 2; stroke-linejoin: round; }
.objtop { fill: #eaf5f5; stroke: #4a6a70; stroke-width: 2; }
.obj-line { fill: none; stroke: #4a6a70; stroke-width: 2; }
.band { fill: var(--teal); stroke: none; }
.swirl { fill: none; stroke: var(--teal-deep); stroke-width: 2.5; stroke-dasharray: 12 14; stroke-linecap: round; }
.liquid { fill: var(--teal); opacity: .9; }
.bub { fill: #fff; opacity: .9; }
.roof { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.door { fill: var(--teal-deep); }
.arrow { fill: var(--teal-deep); }
.beltside { fill: #8fc3c3; } .beltline { stroke: var(--teal-deep); stroke-width: 3; stroke-dasharray: 6 8; }
.cube polygon { stroke: #4a6a70; stroke-width: 1.5; stroke-linejoin: round; }
.ring { fill: none; stroke: var(--teal); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.lift { transition: transform .7s var(--ease); }
.st { cursor: pointer; }
.st.on .lift { transform: translateY(-16px); }
.st.on .slab-t { fill: var(--teal-tint); }
.proc-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.proc-steps button { width: 100%; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline; text-align: left; padding: 16px 16px 18px 0; background: none; border: 0; border-left: 1px solid var(--line); padding-left: 18px; cursor: pointer; color: var(--slate-text); font: 500 1rem var(--font-body); transition: color .3s, background-color .3s; }
.proc-steps li:first-child button { border-left: 0; padding-left: 4px; }
.proc-steps b { font-family: var(--font-head); font-size: 1.75rem; line-height: 1; color: var(--line); transition: color .3s; }
.proc-steps i { position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; }
.proc-steps button.on { color: var(--ink); background: linear-gradient(180deg, rgba(56,168,168,.12), rgba(56,168,168,0)); }
.proc-steps button.on b { color: var(--teal-deep); }
.proc-steps button.on i { animation: fill var(--dur, 3.4s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.proc-cap { margin-top: 22px; max-width: none; min-height: 92px; }
.proc-cap h3 { font-size: 1.5rem; color: var(--teal-deep); margin-bottom: 4px; }
.proc-cap p { color: var(--slate-text); font-size: 1.0625rem; }
.proc-cap.swap h3, .proc-cap.swap p { animation: capin .6s var(--ease); }
@keyframes capin { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: no-preference) {
  .route-flow { animation: dash 1.1s linear infinite; }
  @keyframes dash { to { stroke-dashoffset: -18; } }
  .swirl { animation: swirl 1.8s linear infinite; }
  .swirl.s2 { animation-duration: 2.6s; animation-direction: reverse; }
  @keyframes swirl { to { stroke-dashoffset: -52; } }
  .bub { animation: bub 2.4s ease-in infinite; }
  .bub.b2 { animation-delay: .8s; } .bub.b3 { animation-delay: 1.6s; }
  @keyframes bub { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: .9; } 100% { transform: translateY(-26px); opacity: 0; } }
  .up { animation: up 1.4s ease-in-out infinite; }
  @keyframes up { 50% { transform: translateY(-8px); } }
  .belt .beltline { animation: dash 0.8s linear infinite; }
  .st.on .ring { animation: ring 2s ease-out infinite; }
  .st.on .ring.r2 { animation-delay: 1s; }
  @keyframes ring { 0% { transform: scale(.7); opacity: .85; } 100% { transform: scale(1.35); opacity: 0; } }
  .st.on .cube { animation: hop 1.2s var(--ease) infinite alternate; }
  .st.on .cube:nth-of-type(2) { animation-delay: .15s; } .st.on .cube:nth-of-type(3) { animation-delay: .3s; }
  @keyframes hop { to { transform: translateY(-5px); } }
}
@media (max-width: 760px) {
  .proc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-steps li:nth-child(3) button { border-left: 0; padding-left: 4px; }
  .proc-steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .proc-steps span { font-size: .9063rem; }
  .flow-svg { margin-inline: -6px; }
}

@media (max-width: 1020px) {
  .photo-cta.left::after { background: rgba(8, 32, 35, .7); }
}
@media (max-width: 900px) {
  .site-head .wrap, .site-head.scrolled .wrap { min-height: 76px; }
  .brand img, .site-head.scrolled .brand img { height: 46px; }
  .nav a.link::before { display: none; }
  .hero { height: clamp(560px, calc(100svh - 110px), 760px); }
  .photo-cta { min-height: 480px; }
}

/* chỉnh: số điện thoại không xuống dòng, giữ cân đối ở màn hình 1200–1440 */
.site-head .wrap { grid-template-columns: auto minmax(0, 1fr) auto; }
.nav { justify-content: center; }
.nav a.link { font-size: 1rem; }
.nav { gap: clamp(14px, 1.7vw, 28px); }
.head-phone { white-space: nowrap; font-size: 1.3rem; }
.scroll-cue { right: auto; left: clamp(16px, 3vw, 44px); }
@media (max-width: 900px) { .site-head .wrap { grid-template-columns: 1fr auto; } }


/* phần "Năng lực tại nhà máy": bốn năng lực song song, không đánh số thứ tự */
.proc-steps button { grid-template-columns: 1fr; padding-block: 18px 20px; font-weight: 600; }
.proc-steps button::before { content: ""; width: 10px; height: 10px; background: var(--line); transition: background-color .3s; }
.proc-steps button.on::before { background: var(--teal-deep); }
.proc-steps button { gap: 8px; }
.proc-steps small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: calc(1.45em * 2); font-weight: 400; color: var(--slate-text); font-size: .9375rem; line-height: 1.45; }
.lab-lead { padding: 64px 0 28px; text-align: center; }
.lab-lead h2 { max-width: 1040px; margin: 0 auto 12px; text-wrap: wrap; }
.lab-lead p { max-width: 1040px; margin: 0 auto; color: var(--slate-text); text-wrap: wrap; }


/* ---------- video nhà máy ---------- */
.vid { position: relative; isolation: isolate; padding: 0; display: block; background: linear-gradient(135deg, #14595b, #0b2a2e); color: #fff; overflow: hidden; }
.vid-wave { position: absolute; left: 0; width: 100%; height: 90px; z-index: 1; fill: #f4f9f9; }
.vid-wave.top { top: -1px; } .vid-wave.bot { bottom: -1px; fill: var(--teal-field); }
.vid-bg { position: absolute; left: 4%; top: 50%; translate: 0 -50%; width: 54%; height: auto; aspect-ratio: 960 / 540; z-index: -1; -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 50%, transparent 100%); }
.vid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20, 89, 91, .1), rgba(11, 42, 46, .55)); }
.vid-play { position: absolute; left: 2%; top: 50%; translate: -50% -50%; z-index: 3; width: 86px; height: 86px; border-radius: 50%; border: 3px solid #fff; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .3s, scale .4s var(--ease), color .3s; }
.vid-play svg { width: 34px; height: 34px; margin-left: 4px; }
.vid-play:hover { background: #fff; color: var(--teal-deep); scale: 1.1; }
.vid-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.vid-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; padding-block: 160px; position: relative; z-index: 2; }
.vid-text { grid-column: 2; display: grid; gap: 28px; justify-items: start; }
.vid-in h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.vid-in .cta-actions { display: grid; grid-template-columns: 1fr; justify-items: stretch; width: max-content; max-width: 100%; gap: 14px; } .vid-in .cta-actions .btn { text-align: center; justify-content: center; }
@media (max-width: 900px) {
  .vid-bg { left: 0; top: 0; translate: none; width: 100%; height: 340px; aspect-ratio: auto; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  .vid-play { left: 50%; top: 170px; width: 68px; height: 68px; }
  .vid-play svg { width: 28px; height: 28px; }
  .vid-in { grid-template-columns: 1fr; padding-block: 380px 110px; }
  .vid-text { grid-column: 1; }
}
.vid-modal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; background: rgba(8, 32, 35, .92); opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s; padding: 24px; }
.vid-modal.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.vid-modal video { width: min(94vw, 1100px); max-height: 86vh; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.vid-modal button { position: absolute; right: 22px; top: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; font-size: 1.6rem; cursor: pointer; }


/* ---------- banner trang chủ: ảnh nhà máy, chữ căn giữa (theo video v3) ---------- */
.hero::after { background: linear-gradient(180deg, rgba(6, 36, 40, .5), rgba(6, 36, 40, .58) 60%, rgba(6, 36, 40, .72)); }
.hero-inner { align-items: center; text-align: center; justify-content: center; padding: 40px 72px 150px; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); max-width: 17ch; }
.hero .lead { max-width: 56ch; }
.hero-actions { justify-content: center; }
.slide img { object-position: center; }
@media (max-width: 760px) { .hero-inner { padding: 32px 20px 100px; } }


/* ======================================================================
   Các trang con: sản phẩm, chi tiết sản phẩm, tin tức, bài viết, tuyển dụng, liên hệ
   ====================================================================== */
.banner.slim { height: clamp(260px, 36vh, 360px); }
.banner.slim h1 { font-size: clamp(2.4rem, 4.8vw, 3.8rem); }

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: clamp(28px, 4vw, 48px); }
.page-head .crumbs { font-size: .9375rem; color: var(--slate-text); margin-bottom: 14px; }
.page-head .crumbs a { color: var(--teal-deep); }
.page-head h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: none; text-wrap: wrap; }
.art-meta { margin-top: 14px; color: var(--slate-text); font-size: .9688rem; }

/* danh mục sản phẩm */
.cat-search { background: var(--paper); border-bottom: 1px solid var(--line); padding-block: 22px; }
.cat-search .wrap { display: grid; grid-template-columns: auto minmax(0, 520px) 1fr; gap: 10px 20px; align-items: center; }
.cat-search label { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; }
.cat-search .finder-field input { background: #fff; }
.cat-count { color: var(--slate-text); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.grp { padding-block: clamp(44px, 6vw, 72px); }
.grp-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px 40px; align-items: end; margin-bottom: 26px; }
.grp-head p { color: var(--slate-text); font-size: 1.0625rem; }
.grp-head h2 span { display: inline-block; }
.code-chip { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: .04em; color: var(--teal-deep); background: var(--teal-tint); padding: 1px 9px; margin-right: 6px; border-radius: 2px; vertical-align: .12em; font-variant-numeric: tabular-nums; }
.grp[hidden], li[hidden], .none-found[hidden], .more-wrap [hidden], a[hidden] { display: none; }
.none-found { padding-block: 48px; color: var(--slate-text); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 2px solid var(--ink); }
.tool-list li { padding: 14px 8px 14px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.cat-row h3 { font-size: 1.125rem; }

/* chi tiết sản phẩm */
.pd { padding-block: clamp(36px, 5vw, 64px); }
.pd-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.pd-gallery { min-width: 0; }
.pd-main { position: relative; background: #fff; border: 1px solid var(--line); aspect-ratio: 1 / 1; max-height: 640px; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; padding: clamp(10px, 3vw, 28px); animation: pd-in .25s ease; }
@keyframes pd-in { from { opacity: .25; } to { opacity: 1; } }
.pd-count { position: absolute; left: 12px; bottom: 12px; padding: 2px 10px; font-size: .8125rem; font-variant-numeric: tabular-nums; color: #fff; background: rgba(20, 30, 36, .62); border-radius: 99px; pointer-events: none; }
.pd-nav { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.75rem; line-height: 1; padding: 0 0 4px; color: var(--ink); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; opacity: 0; transition: opacity .2s, border-color .2s; }
.pd-prev { left: 10px; } .pd-next { right: 10px; }
.pd-main:hover .pd-nav, .pd-nav:focus-visible { opacity: 1; }
.pd-main img { transition: transform .2s ease-out; }
.pd-main.is-zoom img { transform: scale(2.2); }
.pd-nav:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
@media (hover: none) { .pd-nav { opacity: 1; } }
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumbs button { aspect-ratio: 1 / 1; padding: 4px; background: #fff; border: 1px solid var(--line); cursor: pointer; opacity: .65; transition: border-color .2s, opacity .2s; }
.pd-thumbs button[aria-current="true"] { border: 2px solid var(--teal-deep); padding: 3px; opacity: 1; }
.pd-thumbs button:hover { border-color: var(--teal-deep); opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-lb { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: rgba(12, 18, 22, .88); cursor: zoom-out; }
.pd-lb img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; cursor: default; }
.pd-lb-x { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; }
body.lb-open { overflow: hidden; }
.pd-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--teal-deep); letter-spacing: .01em; margin-bottom: 22px; font-variant-numeric: tabular-nums; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn .ico { width: 18px; height: 18px; }
.pd-body { padding-block: 0 clamp(28px, 4vw, 48px); }
.pd-cols, .art-cols { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.pd-text { min-width: 0; }
.pd-side { position: sticky; top: 112px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pd-spec h2 { font-size: 1.5rem; margin-bottom: 14px; }
.pd-spec .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.pd-photos { margin-top: clamp(28px, 4vw, 44px); }
.pd-photos h2, .pd-rel h2 { font-size: 1.75rem; margin-bottom: 20px; }
.photos-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; align-items: start; }
.photos-row figure { margin: 0; background: var(--paper); }
.photos-row img { width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; background: #fff; display: block; }
.pd-rel { padding-block: clamp(44px, 6vw, 72px); }

/* nội dung đọc */
.prose { max-width: 72ch; font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-size: 1.625rem; margin-top: 2em; margin-bottom: .1em; }
.prose h4 { font-family: var(--font-head); font-size: 1.25rem; margin-top: 1.6em; color: var(--teal-deep); }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--teal-deep); }
.prose img { width: 100%; height: auto; object-fit: contain; margin-block: 1.4em; border: 1px solid var(--line); }
.prose .tbl { overflow-x: auto; margin-block: 1.4em; }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .9688rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px; border: 1px solid var(--line); }
.prose th, .prose tr:first-child td { background: var(--teal-tint); font-family: var(--font-head); font-weight: 600; }
.prose a { font-weight: 500; }
.prose .spec { margin-top: 1em; }
.art-hero { margin: 0 0 1.6em; }
.art-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--paper); margin: 0; border: 0; }
.art { padding-top: clamp(32px, 5vw, 56px); }

/* tin tức */
.news-feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; color: var(--ink); text-decoration: none; margin-bottom: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.news-feat .nimg { aspect-ratio: 16 / 10; }
.news-feat:hover .nimg img { transform: scale(1.05); }
.news-feat h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); margin: 10px 0 14px; }
.news-feat p { color: var(--slate-text); margin-bottom: 14px; max-width: 52ch; }
.news-feat time { color: var(--slate-text); font-size: .9375rem; }
.ntag-inline { display: inline-block; background: var(--teal-deep); color: #fff; font-size: .8125rem; font-weight: 500; padding: 2px 10px; }
.more-wrap { margin-top: 40px; text-align: center; }

/* tuyển dụng */
.job-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.job-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 8px 24px; align-items: center; padding: 22px 8px 22px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .25s var(--ease), padding .3s var(--ease); }
.job-row:hover { background: var(--teal-tint); padding-left: 14px; }
.job-row:hover .go { transform: translateX(4px); color: var(--teal-deep); }
.job-row h3 { margin-bottom: 4px; }
.job-row p { color: var(--slate-text); font-size: .9688rem; line-height: 1.5; }
.job-row time { color: var(--slate-text); font-size: .875rem; white-space: nowrap; }

/* liên hệ */
.ct-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.ct-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field label { font-weight: 600; font-size: .9688rem; }
.req { color: #b4361f; }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--font-body); color: var(--ink); padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--paper); transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; min-height: 130px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-deep); background: #fff; box-shadow: 0 0 0 4px rgba(56, 168, 168, .22); }
.field [aria-invalid="true"] { border-color: #b4361f; background: #fff7f5; }
.form-note { color: var(--slate-text); font-size: .9063rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-status { min-height: 1.6em; font-weight: 500; color: var(--teal-deep); }
.form-status.err { color: #b4361f; }
.promise-lite { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.promise-lite > div { padding: 4px 28px; border-left: 1px solid var(--line); display: grid; gap: 4px; align-content: start; }
.promise-lite > div:first-child { border-left: 0; padding-left: 0; }
.promise-lite b { font-family: var(--font-head); font-size: 1.1875rem; }
.promise-lite span { color: var(--slate-text); font-size: .9688rem; }
.ct-cards { padding-block: 44px; }

@media (max-width: 1020px) {
  .pd-grid, .pd-cols, .art-cols, .ct-grid, .news-feat, .grp-head { grid-template-columns: minmax(0, 1fr); }
  .pd-side { position: static; }
  .cat-search .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .field-row, .promise-lite, .tool-list { grid-template-columns: 1fr; }
  .promise-lite > div, .promise-lite > div:first-child { border-left: 0; padding: 0; }
  .job-row { grid-template-columns: 1fr; }
  .job-row .go { display: none; }
  .pd-actions .btn { flex: 1 1 100%; justify-content: center; }
  .cat-row { align-items: start; }
}

/* chân trang trên điện thoại: biểu tượng liên hệ cách khỏi danh sách phía trên */
@media (max-width: 1020px) {
  .foot-social { margin-top: 28px; justify-content: flex-start; }
}


/* ---------- menu Sản phẩm: danh sách xổ 15 nhóm, nền teal ---------- */
.drop-prod { left: 0; min-width: 270px; padding: 6px 0; background: var(--teal-deep); border: 0; }
.drop-prod a { color: #fff; padding: 9px 24px; font-size: .9375rem; }
.drop-prod a:hover { background: rgba(255, 255, 255, .14); color: #fff; padding-left: 30px; }
@media (max-width: 1020px) { .drop-prod { background: none; } .drop-prod a { color: var(--slate-text); padding: 8px 0; } .drop-prod a:hover { background: none; padding-left: 0; color: var(--teal-deep); } }

/* ---------- mọi dropdown khác: nền teal, chữ trắng (desktop) ---------- */
@media (min-width: 1021px) {
  .drop { background: var(--teal-deep); border: 0; width: max-content; }
  .drop a { color: #fff; white-space: nowrap; }
  .drop a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
}
/* select trong form liên hệ */
.field select { cursor: pointer; }
.field select option { background: var(--teal-deep); color: #fff; }


/* Năng lực cung ứng: chữ full width, ảnh nằm dưới.
   Ảnh lớn và cột hai ảnh nhỏ cùng một lưới: mép trên và mép dưới ảnh thẳng hàng. */
.supply {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: 16px;
  row-gap: 8px;
  align-items: stretch;
}
.supply-main {
  display: grid;
  grid-template-rows: subgrid;
  grid-column: 1;
  grid-row: 1 / -1;
  margin: 0;
  min-height: 0;
}
.supply-main img {
  grid-row: 1 / 4;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  align-self: stretch;
}
.supply-main img, .supply-thumbs img, .supply-slide img { border-radius: 14px; }
.supply-main.is-fading img { opacity: 0; }
.supply-main figcaption {
  grid-row: 4;
  align-self: start;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--slate-text);
  padding-top: 0;
}
.supply-thumbs {
  display: grid;
  grid-template-rows: subgrid;
  grid-column: 2;
  grid-row: 1 / -1;
  gap: 0;
  min-height: 0;
}
.supply-thumbs button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  min-height: 0;
  font-size: .875rem;
  line-height: 1.4;
  color: var(--slate-text);
}
.supply-thumbs button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.supply-thumbs img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; opacity: .6; box-shadow: inset 0 -3px 0 transparent; transition: opacity .2s, box-shadow .2s; }
.supply-thumbs button:hover img, .supply-thumbs button[aria-current="true"] img { opacity: 1; }
.supply-thumbs button[aria-current="true"] img { box-shadow: inset 0 -3px 0 var(--teal); }

/* Phòng thí nghiệm: dải ảnh tự cuộn vô hạn */
.lab-strip { overflow: hidden; margin-top: 40px; }
.lab-track { display: flex; gap: 12px; width: max-content; animation: lab-scroll 80s linear infinite; }
.lab-strip:hover .lab-track, .lab-strip:focus-within .lab-track { animation-play-state: paused; }
.lab-item { margin: 0; flex: none; width: min(28vw, 400px); }
.lab-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.lab-item figcaption { font-size: .875rem; color: var(--slate-text); padding-top: 8px; }
@keyframes lab-scroll { to { transform: translateX(calc(-50% - 6px)); } }
@media (max-width: 767px) {
  .supply { display: none; }
  .supply-m { display: block; }
  .lab-item { width: 76vw; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-strip { overflow-x: auto; }
  .lab-track { animation: none; }
  .lab-item[aria-hidden="true"] { display: none; }
}


.supply-m { display: none; }
.supply-strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.supply-strip::-webkit-scrollbar { display: none; }
.supply-slide { margin: 0; flex: none; width: 84%; scroll-snap-align: start; }
.supply-slide img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.supply-slide figcaption { font-size: .875rem; color: var(--slate-text); padding-top: 8px; }
.supply-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.supply-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c4dcdc; }
.supply-dots i.on { background: var(--teal-deep); }

/* Xem ảnh lớn */
.lab-item a { cursor: zoom-in; display: block; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 32, 35, .94); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox img { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; padding-top: 12px; }
.lightbox-x { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }
@media (max-width: 767px) { .supply { display: none; } .supply-m { display: block; } }

/* ảnh có thuộc tính height trong HTML: để aspect-ratio 3:2 quyết định chiều cao.
   Ảnh lớn của mục cung ứng thì kéo theo chiều cao cột ảnh nhỏ, không khóa 3:2. */
.supply-thumbs img, .supply-slide img, .lab-item img { height: auto; }
.supply-main img { height: 100%; aspect-ratio: auto; min-height: 0; }

/* Giới thiệu nhanh (trang chủ): 2 ảnh dọc 4:5, ô thứ 2 lệch xuống */
.intro2-photos { position: relative; aspect-ratio: 4 / 5; max-width: 680px; width: 100%; margin-inline: auto; }
.intro2-photos .intro2-photo { position: absolute; left: 0; top: 0; width: 66%; aspect-ratio: 4 / 5; box-shadow: 0 18px 44px rgba(15, 44, 49, .22); transition: transform .5s var(--ease), filter .5s var(--ease), box-shadow .5s var(--ease); cursor: pointer; z-index: 2; }
.intro2-photos .intro2-photo img { height: 100%; }
.intro2-photos .intro2-photo + .intro2-photo { transform: translate(54%, 51%); z-index: 1; filter: brightness(.86); }
.intro2-photos.swap .intro2-photo:first-child { transform: translate(54%, 51%); z-index: 1; filter: brightness(.86); }
.intro2-photos.swap .intro2-photo + .intro2-photo { transform: none; z-index: 2; filter: none; }
.intro2-photos .intro2-photo:hover { box-shadow: 0 22px 52px rgba(15, 44, 49, .3); }
.intro2-photos .intro2-photo:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .intro2-photos .intro2-photo { transition: none; } }

/* Tầm nhìn: ảnh tập thể */
.vision-photo { margin: clamp(32px, 5vw, 56px) 0 0; }
.vision-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* Font tiêu đề Be Vietnam Pro (rộng hơn Barlow): thu cỡ chữ lớn và giãn dòng cho vừa khung */
h1, h2, h3 { line-height: 1.2; letter-spacing: -.012em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); max-width: 19ch; line-height: 1.12; }
.banner h1, .banner.slim h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
.page-head h1 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.photo-cta h2 { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.18; }
.vid-in h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); text-wrap: wrap; max-width: none; }
.news-feat h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.contact-strip h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.big { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 700; }
.nbig { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 700; }
.pd-code { font-size: clamp(2.1rem, 4vw, 3.2rem); }
.num { font-size: clamp(3.6rem, 7.5vw, 6.2rem); }
.phone-big { font-size: 1.6rem; }
.head-phone { font-size: 1.1rem; letter-spacing: 0; }
.cert-band .wrap, .marquee span, .values-line { letter-spacing: .02em; }
.codes li, .finder-chips button { letter-spacing: .01em; }

/* Banner trang chủ dùng ảnh sản phẩm thật: chữ căn trái, ảnh sản phẩm nằm bên phải */
.hero::after { background: linear-gradient(90deg, rgba(6, 36, 40, .35) 0%, rgba(6, 36, 40, .12) 50%, rgba(6, 36, 40, 0) 75%); }
.slide img { object-position: 70% center; }
@media (min-width: 900px) {
  .hero-inner { align-items: flex-start; text-align: left; padding-left: max(var(--gutter, 24px), calc((100vw - var(--wrap, 1200px)) / 2)); padding-right: 50%; }
  .hero h1 { max-width: 15ch; }
  .hero .lead { max-width: 40ch; }
  .hero-actions { justify-content: flex-start; }
}
@media (max-width: 899px) {
  .hero::after { background: linear-gradient(180deg, rgba(6, 36, 40, .72) 0%, rgba(6, 36, 40, .6) 55%, rgba(6, 36, 40, .5) 100%); }
  .slide img { object-position: 78% center; }
}
@media (min-width: 900px) {
  .hero h1 { font-size: clamp(2.2rem, 3.9vw, 3.5rem); max-width: 14ch; }
  .hero .lead { font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 38ch; }
}

/* Tổng quan: lưới 4 ảnh nhà máy dưới bảng thông tin */
.ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.ov-grid figure { margin: 0; }
.ov-grid img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }

/* ---------- trang Sản phẩm: danh mục trái + lưới nhóm; thẻ nhóm dùng lại ở trang chi tiết ---------- */
.grp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.grp-card { display: flex; flex-direction: column; width: 100%; height: 100%; background: #fff; border: 1px solid var(--line); color: inherit; text-decoration: none; text-align: left; font: inherit; padding: 0; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.grp-card:hover, .grp-card:focus-visible { transform: translateY(-4px); border-color: var(--teal-deep); box-shadow: 0 16px 36px rgba(15, 44, 49, .12); }
.grp-card:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.gc-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.gc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.grp-card:hover .gc-img img { transform: scale(1.06); }
.gc-body { display: grid; gap: 6px; padding: 16px 18px 20px; align-content: start; }
.gc-body { container-type: inline-size; }
.gc-body h3 { font-size: 1.125rem; font-weight: 800; color: var(--teal-deep); }
@media (min-width: 900px) { .gc-body h3 { font-size: min(1.3125rem, 6.4cqw); white-space: nowrap; } }
.gc-body h3 span { display: inline-block; }
.gc-body p { color: var(--slate-text); font-size: .875rem; line-height: 1.5; }
.gc-n { color: var(--teal-deep); font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; }
.cat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; padding-block: clamp(32px, 5vw, 56px); }
.cat-side:empty { display: none; }
.cat-side { position: sticky; top: calc(var(--hh, 84px) + 20px); }
.cat-side-h { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.cat-side ul { list-style: none; margin: 0; padding: 0; }
.cat-side button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 500 .9688rem var(--font-body); color: var(--slate-text); text-align: left; cursor: pointer; transition: color .2s, padding .25s var(--ease), background .2s; }
.cat-side button > span { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--slate-text); }
.cat-side button { padding-inline: 12px; }
.cat-side button i { font-style: normal; }
.cat-side button i span { display: inline-block; }
.cat-side button:hover { color: var(--ink); background: var(--teal-tint); }
.cat-side button[aria-current="true"] { color: var(--teal-deep); box-shadow: inset 3px 0 0 var(--teal-deep); }
.cat-side button:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; }
.cat-main .grp { padding: 0; background: none; }
.cat-main .grp > .wrap { width: auto; margin: 0; }
.cat-main .grp-head { grid-template-columns: 1fr; gap: 8px; }
.grp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; padding: 0; border: 0; background: none; font: 600 .9375rem var(--font-body); color: var(--teal-deep); cursor: pointer; }
.grp-back:hover { text-decoration: underline; }
.cat-main .none-found { width: auto; margin: 0; }
.grp-cards[hidden] { display: none; }
@media (max-width: 900px) {
  .cat-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cat-side { position: static; }
  .cat-side-h { display: none; }
  .cat-side ul { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .cat-side ul::-webkit-scrollbar { display: none; }
  .cat-side li { flex: none; }
  .cat-side button { width: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
  .cat-side button:hover, .cat-side button[aria-current="true"] { padding-left: 16px; }
  .cat-side button[aria-current="true"] { box-shadow: none; background: var(--teal-tint); border-color: var(--teal-deep); }
  .grp-cards { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}
/* Danh mục: mục đang chọn nền teal chữ trắng */
.cat-side button[aria-current="true"], .cat-side button[aria-current="true"]:hover, .cat-side button[aria-current="true"] span { color: #fff; }
.cat-side button[aria-current="true"], .cat-side button[aria-current="true"]:hover { background: var(--teal-deep); box-shadow: none; border-color: var(--teal-deep); }
.pd-rel .grp-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pd-inquiry { padding-block: clamp(32px, 4vw, 48px) clamp(44px, 6vw, 72px); }
.inq-head { max-width: 62ch; margin-bottom: 28px; }
.inq-head p { color: var(--slate-text); margin-top: 12px; }
.inq-form { max-width: 780px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .grp-card, .gc-img img { transition: none; } }
.eyebrow-light { font-weight: 600; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); }
.chips-light { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips-light li { border: 1px solid rgba(255, 255, 255, .5); padding: 6px 14px; font-weight: 600; font-size: .9375rem; }

/* tổng quan: ảnh + thẻ thư ngỏ gọn, đọc đủ trong popup */
.id-grid .spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 80px); }
.id-side { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.id-photo { margin: 0; }
.id-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.letter-card { position: relative; padding: clamp(20px, 3vw, 40px); border: 1px solid var(--line); }
.letter-card h2 { font-size: clamp(1.5rem, 2.3vw, 1.875rem); line-height: 1.2; }
.letter-excerpt { margin: 14px 0 22px; color: var(--slate-text); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.letter-modal { border: 0; padding: 0; width: min(760px, 92vw); max-height: 88vh; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.letter-modal::backdrop { background: rgba(8, 32, 35, .62); backdrop-filter: blur(3px); }
.letter-modal-box { position: relative; max-height: 88vh; overflow-y: auto; padding: 48px clamp(24px, 5vw, 56px) 44px; border-top: 4px solid var(--teal); }
.letter-modal h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); margin-top: 6px; }
.letter-body { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.letter-body p { font-size: 1.0625rem; line-height: 1.75; }
.letter-body p + p { margin-top: 1.05em; }
.letter-body .salute { font-weight: 600; }
.letter-body .close { margin-top: 1.75em; }
.letter-body .sign { margin-top: 4px; font-family: var(--font-head); font-weight: 600; font-size: 1.125rem; letter-spacing: .04em; color: var(--teal-deep); }
.eyebrow-dark { margin: 0; font-weight: 600; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-deep); }
.letter-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); border-radius: 50%; transition: background-color .2s; }
.letter-close:hover { background: var(--teal-tint, #e6f4f3); }
.letter-close svg { width: 20px; height: 20px; }
html:has(dialog[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .letter-modal[open] { animation: lmIn .45s var(--ease); }
  .letter-modal[open]::backdrop { animation: lmFade .35s ease-out; }
  @keyframes lmIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
  @keyframes lmFade { from { opacity: 0; } }
}
@media (max-width: 900px) { .id-side { grid-template-columns: 1fr; } .id-grid .spec { grid-template-columns: 1fr; } .letter-card { padding: 20px; } }

/* Vì sao chọn TENSAN: danh sách lý do + khung nội dung */
.why-tabs { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); border-top: 2px solid var(--ink); }
.why-tablist { display: grid; align-content: start; border-right: 1px solid var(--line); }
.why-tablist button { display: flex; align-items: center; gap: 16px; width: 100%; padding: 22px 24px 22px 8px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid transparent; cursor: pointer; color: var(--slate-text); font: 600 1.125rem/1.3 var(--font-head); transition: color .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), padding .3s var(--ease); }
.why-tablist button:last-child { border-bottom: 0; }
.why-tablist svg { width: 30px; height: 30px; flex: none; color: inherit; }
.why-tablist button:hover { color: var(--ink); background: var(--teal-tint); }
.why-tablist button[aria-selected="true"] { color: var(--ink); background: var(--teal-tint); border-left-color: var(--teal); padding-left: 20px; }
.why-tablist button[aria-selected="true"] svg { color: var(--teal-deep); }
.why-tablist button:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: -2px; }
.why-panels { display: grid; padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 56px); }
.why-panel { grid-area: 1 / 1; align-self: center; max-width: 62ch; }
.why-panel h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.why-panel p { margin-top: 14px; color: var(--slate-text); font-size: 1.0625rem; line-height: 1.7; }
html.js .why-panel { opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s; }
html.js .why-panel.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .08s, .08s, 0s; }
html:not(.js) .why-panel + .why-panel { margin-top: 28px; }
@media (max-width: 760px) {
  .why-tabs { grid-template-columns: 1fr; }
  .why-tablist { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .why-tablist button { width: auto; flex: none; padding: 16px 18px; border-bottom: 0; border-left: 0; border-bottom: 3px solid transparent; font-size: 1rem; }
  .why-tablist button[aria-selected="true"] { padding-left: 18px; border-bottom-color: var(--teal); }
  .why-tablist svg { width: 24px; height: 24px; }
  .why-panels { padding: 28px 8px; }
}


/* ---------- trang giới thiệu: trình bày gọn, đỡ ngộp chữ (chỉ CSS, scope bằng html.sau) ---------- */
.sau section:not(.tsp):not(.photo-cta):not(.numbers):not(.lab-banners):not(.pd):not(.pd-body):not(.pd-photos):not(.pd-inquiry):not(.pd-rel):not(.pd-sug):not(.art):not(.art + section) { padding-block: clamp(72px, 9vw, 120px); }
.sau .art { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(32px, 4vw, 48px); }
.sau .art + section { padding-block: clamp(44px, 6vw, 72px); }

/* 1. Dấu » chỉ trên tiêu đề mục của trang giới thiệu, không gắn mọi h2 */
body:has(nav.subnav) section:not(.tsp):not(.photo-cta) h2:not(.serve-h):not(.values-title):not(#thu-ngo-title):not(#letter-modal-title)::before,
body:has(nav.subnav) .serve-h::before, body:has(nav.subnav) .values-title::before {
  content: ""; display: block; width: 34px; height: 18px; margin-bottom: 16px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 18' fill='none' stroke='%2338a8a8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2l8 7-8 7'/%3E%3Cpath d='M15 2l8 7-8 7'/%3E%3Cpath d='M27 2l5 7-5 7' opacity='.45'/%3E%3C/svg%3E");
}
.sau section h2 { font-weight: 800; letter-spacing: -.012em; }
.sau .letter-card h2::before { display: none; }

/* 2. Khối định vị thương hiệu dùng hết bề ngang khung, đoạn dài canh đều hai bên */
.sau .brand-pos { max-width: none; }
.sau .brand-pos h3 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); text-wrap: wrap; }
.sau .brand-pos p, .sau .sec-head p, .sau .photo-cta p { text-align: justify; hyphens: none; }
.sau .sec-head { max-width: 820px; }

/* 3. Bảng thông tin: nhãn nhỏ viết hoa, nội dung nổi hơn */
.sau .spec { border-top: 0; display: grid; gap: 0; }
.sau .spec > div { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; padding: 18px 0; }
.sau .spec dt { font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); padding-top: 4px; }
.sau .spec dd { line-height: 1.6; max-width: 62ch; }

/* 4. Thẻ thay cho đường kẻ dọc: mỗi ý một khối */
.sau .bring-grid, .sau .vm, .sau .values, .sau .std-list { border-top: 0; gap: 20px; }
.sau .bring-grid > div, .sau .bring-grid > div + div,
.sau .vm > div, .sau .vm > div + div,
.sau .values > div, .sau .values > div + div,
.sau .std-list li, .sau .std-list li + li {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px 30px;
  box-shadow: 0 1px 2px rgba(15,44,49,.04); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.sau .bring-grid > div:hover, .sau .values > div:hover, .sau .vm > div:hover, .sau .std-list li:hover {
  transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 16px 34px rgba(15,44,49,.10);
}
.sau .vm > div, .sau .vm > div + div { padding: 34px 34px 38px; background: linear-gradient(var(--teal), var(--teal)) top / 100% 4px no-repeat, #fff; }
.sau .vm::before, .sau .std-list::before, .sau .bring-grid::before, .sau .values::before { display: none; }
.sau .vm p { font-size: 1.125rem; }
.sau .bring-grid svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--teal-tint); box-sizing: border-box; }
.sau .values > div > svg { padding: 8px; border-radius: 12px; background: var(--teal-tint); box-sizing: content-box; width: 28px !important; height: 28px !important; }
.sau .std-list b { text-align: center; font-size: 1.5rem; color: var(--teal-deep); }
.sau .std-list li { display: grid; place-items: center; padding-block: 26px; }
.sau .values-title { margin-top: 72px; }

/* 5. Khối thư ngỏ + dải lĩnh vực */
.sau .letter-card { border-radius: 16px; }
.sau .id-photo img { border-radius: 16px; }
.sau .serve { border-top: 0; gap: 6px; margin-top: 22px; }
.sau .serve li, .sau .serve li + li { display: flex; flex-direction: column; padding: 6px 6px 0; border: 0; border-bottom: 3px solid var(--teal-deep); border-radius: 16px 16px 0 0; background: #fff; overflow: hidden; box-shadow: 0 1px 10px rgba(0, 0, 0, .06); font-size: .9688rem; }
.sau .serve img { border-radius: 12px; display: block; flex: none; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.sau .serve li span { padding: 18px 16px 20px; text-align: center; text-wrap: wrap; font-size: 1.125rem; font-weight: 700; }
@media (min-width: 1021px) {
  .sau .serve li span { font-size: clamp(.8125rem, 1.25vw, 1rem); padding-inline: 2px; }
  .sau .serve li.serve-long span { white-space: nowrap; }
}

/* 6. Thanh menu neo: dạng viên thuốc */
.sau .subnav a { padding: 8px 16px; margin-block: 10px; border: 0; border-radius: 999px; }
.sau .subnav a:hover { background: var(--teal-tint); }
.sau .subnav a.on { background: var(--teal-deep); color: #fff; }

@media (max-width: 760px) {
  .sau .spec > div { grid-template-columns: 1fr; gap: 4px; }
  .sau .brand-pos p, .sau .sec-head p, .sau .photo-cta p { text-align: left; }
}

/* ---------- các trang còn lại: cùng ngôn ngữ trình bày với trang giới thiệu (chỉ CSS, scope bằng html.sau) ---------- */
.sau { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 18' fill='none' stroke='%2338a8a8' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2l8 7-8 7'/%3E%3Cpath d='M15 2l8 7-8 7'/%3E%3Cpath d='M27 2l5 7-5 7' opacity='.45'/%3E%3C/svg%3E"); }
.sau .prose h2 { font-weight: 800; }
.sau .prose p { text-align: justify; hyphens: none; }
.sau .prose { max-width: 70ch; }

/* thẻ bo góc, đổ bóng nhẹ */
.sau .ncard, .sau .grp-card, .sau .side-panel, .sau .pd-main, .sau .photos-row figure, .sau .cert a, .sau .contact-strip .cs-item { border-radius: 16px; }
.sau .ncard { overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,44,49,.04); }
.sau .grp-card, .sau .pd-main, .sau .photos-row figure { overflow: hidden; }
.sau .prose img, .sau .art-hero img { border-radius: 14px; }
.sau .ncard:hover, .sau .grp-card:hover { box-shadow: 0 16px 34px rgba(15,44,49,.10); }

/* danh sách dòng -> thẻ rời nhau (sản phẩm, tuyển dụng) */
.sau .cat-list, .sau .job-list { border-top: 0; display: grid; gap: 14px; }
.sau .cat-row, .sau .job-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px 18px 18px; box-shadow: 0 1px 2px rgba(15,44,49,.04); }
.sau .job-row { padding: 22px 24px; }
.sau .cat-row:hover, .sau .job-row:hover { padding-left: 18px; border-color: var(--teal); box-shadow: 0 16px 34px rgba(15,44,49,.10); background: #fff; }
.sau .job-row:hover { padding-left: 24px; }
.sau .cat-thumb { border-radius: 10px; }
.sau .codes li { border-radius: 999px; padding: 2px 12px; }

/* ô liên hệ dưới trang */
.sau .contact-strip .wrap { padding-block: 72px; }
.sau .page-head h1 { font-weight: 800; }
@media (max-width: 760px) { .sau .prose p { text-align: left; } }
/* Trang chủ: dấu » chỉ trên vài tiêu đề mục lớn */
.sau :is(#gioi-thieu, #san-pham, #xuat-khau, #tin-tuc) h2::before {
  content: ""; display: block; width: 34px; height: 18px; margin-bottom: 16px;
  background: no-repeat center / contain var(--mark);
}
.sau :is(.why, .lab-lead, .flow, .pin, .vid, .statement, .photo-cta, .lab-banners) h2::before { display: none; }
.sau :is(#san-pham, #tin-tuc, .sec-head.center) h2::before { margin-inline: auto; }
.sau .sec-head.center p { text-align: center; }
.sau #khach-hang h2::before { display: none; }

/* ---------- trang chủ: cùng ngôn ngữ trình bày (chỉ CSS, scope bằng html.sau) ---------- */
html.sau :is(.pin, .vid, .statement, .photo-cta, .lab-banners) h2::before { display: none !important; }
html.sau :is(.why, .lab-lead, .flow) h2::before { margin-inline: auto !important; }
.sau .pcard { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15,44,49,.04); }
.sau .pcard:hover { box-shadow: 0 18px 38px rgba(15,44,49,.12); }
.sau .intro2-photo, .sau .finder-card { border-radius: 16px; }
.sau .big-nums { gap: 14px; }
.sau .big-nums > div { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px 24px; align-items: center; transition: transform .35s var(--ease), border-color .25s, box-shadow .35s var(--ease); }
.sau .big-nums > div:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 14px 30px rgba(15,44,49,.08); }
.sau .promise { border-block: 0; padding-block: clamp(56px, 7vw, 88px); }
.sau .promise ul { gap: 16px; }
.sau .promise li, .sau .promise li:nth-child(odd) { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: 0 1px 2px rgba(15,44,49,.04); }
.sau .promise svg { padding: 6px; border-radius: 12px; background: var(--teal-tint); box-sizing: content-box; width: 28px; height: 28px; }
.sau .promise-lite > div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.sau .promise-lite > div:first-child { padding-left: 24px; }
.sau .promise-lite { gap: 16px; }
@media (max-width: 760px) { .sau .big-nums > div { padding: 16px 18px; } }

/* Tổng quan: tiêu đề có dòng dẫn, thông tin chia thẻ thay vì bảng kẻ */
.sau #tong-quan .ov-head { margin-bottom: clamp(24px, 3vw, 36px); max-width: 720px; }
.sau #tong-quan .ov-head p { margin: 12px 0 0; color: var(--slate-text); font-size: 1.0625rem; line-height: 1.6; }
.sau #tong-quan .id-grid .spec { gap: 16px; column-gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sau #tong-quan .id-grid .spec > div { display: block; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.sau #tong-quan .id-grid .spec > div:first-child { grid-column: 1 / -1; background: var(--teal-tint, #e6f4f3); border-color: transparent; }
.sau #tong-quan .id-grid .spec dt { padding: 0 0 6px; }
.sau #tong-quan .id-grid .spec dd { max-width: none; font-weight: 600; }
@media (max-width: 900px) { .sau #tong-quan .id-grid .spec { grid-template-columns: 1fr; } }

.why .values h3 { font-size: 1.125rem; }
.why .values h3 span { display: inline-block; }
.why .values h3 { font-size: 1.0625rem; font-weight: 800; color: var(--teal-deep); }
.why .values p { font-size: .9375rem; }
@media (min-width: 1200px) { .sau .why .values > div, .sau .why .values > div + div { padding-inline: 20px; container-type: inline-size; } .why .values h3 { font-size: min(1.125rem, 6.9cqw); white-space: nowrap; } }

/* Giới thiệu: mục Khách hàng riêng, logo canh giữa */
.xk-side { min-width: 0; }
.clients-logos { display: block; width: 100%; max-width: 1000px; height: auto; margin: 0 auto; border: 0; }

/* subnav desktop: pill gọn để đủ 9 mục trên một hàng */
@media (min-width: 1021px) {
  .sau .subnav a { padding-inline: 8px; font-size: .875rem; }
}

/* sửa: menu di động cao hơn màn hình thì cuộn được bên trong */
@media (max-width: 900px) {
  .nav { justify-content: flex-start; max-height: var(--nav-max, calc(100dvh - 140px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
}

/* sửa: các dải cuộn ngang trên màn nhỏ có thanh cuộn mảnh và kéo chuột được */
@media (max-width: 1020px) {
  .subnav .wrap, .supply-strip, .cat-side ul, .why-tablist, .lab-strip, .pin-viewport { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--teal) transparent; }
  .subnav .wrap::-webkit-scrollbar, .supply-strip::-webkit-scrollbar, .cat-side ul::-webkit-scrollbar, .why-tablist::-webkit-scrollbar, .lab-strip::-webkit-scrollbar, .pin-viewport::-webkit-scrollbar { display: block; height: 4px; }
  .subnav .wrap::-webkit-scrollbar-thumb, .supply-strip::-webkit-scrollbar-thumb, .cat-side ul::-webkit-scrollbar-thumb, .why-tablist::-webkit-scrollbar-thumb, .lab-strip::-webkit-scrollbar-thumb, .pin-viewport::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 4px; }
  .subnav .wrap { padding-bottom: 4px; }
  .dragging { cursor: grabbing; scroll-snap-type: none !important; }
  .dragging > * { pointer-events: none; }
}

/* sửa: mục Năng lực dùng hết bề rộng cột, không ngắt dòng sớm để trống bên phải */
.sau #nang-luc .spec dd { max-width: none; text-wrap: wrap; }

/* Khách hàng: dải logo tự chạy vô hạn (hai danh sách giống nhau nối đuôi, mỗi danh sách trượt đúng 100%) */
.clients-strip { display: flex; overflow: hidden; margin-top: 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-track, .clients-track-dup { flex: none; display: flex; align-items: center; margin: 0; padding: 0; list-style: none; animation: clients-scroll 60s linear infinite; }
.clients-strip:hover .clients-track, .clients-strip:hover .clients-track-dup { animation-play-state: paused; }
.client-logo { flex: none; height: 88px; display: flex; align-items: center; justify-content: center; padding: 0 12px; }
.client-logo-lg img { max-height: 80px !important; }
.client-logo img { max-width: 170px; max-height: 56px; width: auto; height: auto; object-fit: contain; display: block; }
@keyframes clients-scroll { to { transform: translateX(-100%); } }
@media (max-width: 767px) {
  .client-logo { height: 72px; padding: 0 8px; }
  .client-logo img { max-width: 130px; max-height: 44px; }
  .client-logo-lg img { max-height: 60px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-strip { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .clients-track, .clients-track-dup { animation: none; }
  .clients-track-dup { display: none; }
}

/* Hai nút ở banner trang chủ: cùng chiều rộng */
.hero-actions { display: grid; grid-template-columns: repeat(2, 1fr); width: fit-content; max-width: 100%; }
.hero-actions .btn { justify-content: center; text-align: center; }
@media (max-width: 640px) { .hero-actions { grid-template-columns: 1fr; width: 100%; } }
@media (min-width: 900px) and (max-width: 1199px) { .hero-actions { grid-template-columns: 1fr; } }

/* banner hiển thị đủ ảnh, không cắt theo chiều cao cố định */
.banner.full { width: 100%; min-width: 0; height: auto; aspect-ratio: var(--ar, 2000 / 792); min-height: 220px; }
.banner.full > img { top: 0; left: 0; width: 100%; height: 100%; max-width: 100%; transform: none !important; translate: none !important; }
/* banner ảnh vuông: hiển thị đủ ảnh trong khung thấp, hai bên là bản mờ của chính ảnh */
.banner.full.contain { aspect-ratio: auto; height: clamp(380px, 60vh, 560px); }
.banner.full.contain::before { content: ""; position: absolute; inset: -30px; z-index: -3; background: var(--bg) center / cover; filter: blur(24px); }
.banner.full.contain > img { object-fit: contain; }
@media (max-width: 700px) { .banner.full.contain { height: auto; aspect-ratio: var(--ar, 2000 / 1250); min-height: 0; } }

/* Banner trang chủ: hiển thị đủ ảnh, hai bên là bản mờ của chính ảnh (không cắt sản phẩm) */
/* .hero .slide::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--bg) center / cover; filter: blur(26px); } */
.hero .slide img { position: relative; box-sizing: border-box; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center bottom; }
.hero .slide { inset: 0; }
@media (min-width: 761px) { .hero { height: 56.25vw; min-height: 540px; } }
.hero::after { background: linear-gradient(90deg, rgba(6, 36, 40, .6) 0%, rgba(6, 36, 40, .5) 45%, rgba(6, 36, 40, .22) 75%, rgba(6, 36, 40, .15) 100%); }
.hero-inner { align-items: center; text-align: center; padding-left: 72px; padding-right: 72px; }
.hero-actions { justify-content: center; }

/* Banner "Về TENSAN" (chữ trái): hiện trọn ảnh 2000x917, không phóng to/cắt hai bên */
@media (min-width: 1021px) {
  .photo-cta.left { min-height: 0; aspect-ratio: 2000 / 917; }
  .photo-cta.left > picture { top: 0; height: 100%; transform: none !important; }
  .photo-cta.left .photo-cta-in { padding-block: 56px; }
}

/* ---------- nút gọi nổi: bấm để xổ liên hệ nhanh ---------- */
.fab-call { position: relative; justify-self: end; }
.float-btns .fab-btn { position: relative; width: 58px; height: 58px; border: 0; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(20, 89, 91, .5); transition: background-color .25s, transform .3s var(--ease); }
.float-btns .fab-btn svg { width: 26px; height: 26px; transform-origin: 50% 50%; animation: fab-ring 2.6s ease-in-out infinite; }
.float-btns .fab-btn::before, .float-btns .fab-btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); opacity: 0; animation: fab-pulse 2.6s ease-out infinite; pointer-events: none; }
.float-btns .fab-btn::after { animation-delay: 1.3s; }
.float-btns .fab-btn:hover { background: var(--teal-field); transform: scale(1.06); }
.float-btns .fab-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.fab-call.is-open .fab-btn svg, .fab-call.is-open .fab-btn::before, .fab-call.is-open .fab-btn::after { animation: none; }
.fab-panel { position: absolute; right: 0; bottom: calc(100% + 14px); width: min(300px, calc(100vw - 28px)); background: #fff; border-radius: 14px; padding: 14px; box-shadow: 0 18px 44px rgba(15, 44, 49, .28); transform-origin: 100% 100%; opacity: 0; transform: translateY(14px) scale(.85); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.fab-panel::after { content: ""; position: absolute; right: 20px; bottom: -6px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }
.fab-call.is-open .fab-panel { opacity: 1; transform: none; }
.fab-title { margin: 0 4px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-text); }
.float-btns .fab-item { width: auto; height: auto; border-radius: 10px; background: var(--teal-tint); color: var(--ink); box-shadow: none; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; opacity: 0; transform: translateY(10px); transition: opacity .35s var(--ease), transform .45s var(--ease), background-color .2s; }
.float-btns .fab-item + .fab-item { margin-top: 8px; }
.fab-call.is-open .fab-item { opacity: 1; transform: none; transition-delay: calc(.08s + var(--i) * .09s), calc(.08s + var(--i) * .09s), 0s; }
.float-btns .fab-item:hover { background: var(--teal-deep); color: #fff; transform: none; }
.fab-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--teal-deep); color: #fff; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.float-btns .fab-item:hover .fab-ico { background: #fff; color: var(--teal-deep); }
.fab-ico.fab-ava { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: var(--teal-deep); }
.fab-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.float-btns .fab-ico svg { width: 18px; height: 18px; }
.fab-txt { display: grid; line-height: 1.3; min-width: 0; }
.fab-txt b { font-size: .9375rem; }
.fab-txt small { font-size: .75rem; opacity: .75; }
.fab-txt em { font-style: normal; font-size: 1.0625rem; font-weight: 700; color: var(--teal-deep); }
.float-btns .fab-item:hover em { color: #fff; }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes fab-ring { 0%, 55%, 100% { transform: rotate(0); } 62% { transform: rotate(-14deg); } 70% { transform: rotate(12deg); } 78% { transform: rotate(-10deg); } 86% { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .float-btns .fab-btn svg, .float-btns .fab-btn::before, .float-btns .fab-btn::after { animation: none; }
  .fab-panel, .float-btns .fab-item { transition: opacity .2s; transform: none; }
}
.pd-lead { margin-top: 18px; color: var(--slate-text); line-height: 1.7; font-size: 1rem; }
.pd-lead + .pd-lead { margin-top: 10px; }
.cat-row h3 { display: flex; align-items: baseline; gap: 4px 10px; }
.cat-row h3 .code-chip { flex: none; margin-right: 0; }
.cat-row h3 .cat-name { min-width: 0; text-wrap: wrap; }
@media (min-width: 761px) { .cat-row h3 .cat-name { white-space: nowrap; } }
/* Gợi ý sản phẩm dưới form liên hệ ở trang chi tiết */
.pd-sug { padding-block: clamp(44px, 6vw, 72px); }
.pd-sug h2 { font-size: 1.75rem; margin-bottom: 24px; }
.pd-sug h2 { text-align: center; }
.sug-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1040px; margin-inline: auto; }
.sug-cards .gc-body { padding: 18px 20px 22px; text-align: center; justify-items: center; }
.sug-cards .gc-body h3 { font-size: 1.25rem; white-space: normal; }
@media (max-width: 900px) { .sug-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 520px) { .sug-cards { grid-template-columns: 1fr; } }
.sug-cards .gc-body { display: block; text-align: center; }
.sug-cards .gc-body h3, .sug-cards .gc-body p, .sug-cards .gc-n { display: block; width: 100%; text-align: center; text-wrap: wrap; margin-inline: auto; }
.sug-cards .gc-body > * + * { margin-top: 6px; }
.sug-cards .gc-body h3 span { display: inline; }
/* 6 thẻ gợi ý cùng một hàng */
.sug-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; max-width: none; }
.sug-cards .gc-body { padding: 14px 12px 18px; }
.sug-cards .gc-body h3 { font-size: 1rem; }
.sug-cards .gc-body p { font-size: .8125rem; }
@media (max-width: 1100px) { .sug-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sug-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* Gợi ý sản phẩm: bỏ mô tả, chữ canh trái, tên nhóm một dòng */
.pd-sug h2 { text-align: left; }
.sug-cards .gc-body { text-align: left; padding: 14px 14px 18px; }
.sug-cards .gc-body p { display: none; }
.sug-cards .gc-body h3, .sug-cards .gc-n { text-align: left; margin-inline: 0; text-wrap: nowrap; }
.sug-cards .gc-body h3 { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-cards .gc-body h3 { white-space: normal; text-overflow: clip; text-wrap: wrap; }
.sug-cards .gc-body h3 { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
/* Thẻ nhóm ở trang Sản phẩm: tên dài thì xuống dòng, không bị cắt */
@media (min-width: 900px) { .grp-cards:not(.sug-cards) .gc-body h3 { white-space: normal; font-size: min(1.3125rem, 6.4cqw); text-wrap: wrap; } }
/* Tên nhóm: lấp đầy dòng đầu rồi mới xuống dòng (không cân bằng hai dòng) */
.grp-cards .gc-body h3 { text-wrap: wrap; }

/* ---------- mục lục bài tin tức (tạo bằng JS trong pages.js) ---------- */
.prose h5 { font-family: var(--font-head); font-size: 1.125rem; margin-top: 1.5em; margin-bottom: .2em; color: var(--teal-deep); }
.prose h2[id], .prose h3[id], .prose h4[id], .prose h5[id] { scroll-margin-top: calc(var(--hh, 96px) + 24px); }
.toc { margin: 1.8em 0; padding: 4px 22px; background: var(--teal-tint); border: 1px solid var(--teal); border-radius: 6px; }
.toc summary { cursor: pointer; padding: 14px 0 10px; font-family: var(--font-head); font-weight: 500; font-size: 1.125rem; color: var(--ink); list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toc summary::-webkit-details-marker { display: none; }
.toc .toc-btn { flex: none; width: 38px; height: 32px; border: 1px solid var(--slate); border-radius: 6px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345606a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h9M3 12h9M3 18h9'/%3E%3Cpath d='M17 10l2.5-3 2.5 3M17 14l2.5 3 2.5-3'/%3E%3C/svg%3E") center / 22px no-repeat; }
.toc ol { margin: 0; padding: 0 0 16px; display: grid; gap: 8px; font-size: 1rem; line-height: 1.5; list-style: none; counter-reset: toc; }
.toc ol ol { padding: 8px 0 0 1.5em; gap: 6px; font-size: .9375rem; }
.toc li { counter-increment: toc; }
.toc li > a::before { content: counters(toc, ".") ". "; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--teal-deep); text-decoration: underline; }
