/* =====================================================================
   K-Tech Automation – giao diện website (bản công nghệ cao)
   Màu: xanh đêm #0A1428 (nền kỹ thuật), đỏ K-Tech #E10600 (thương hiệu, nút chính),
        xanh tín hiệu #22D3EE (đèn, dữ liệu – chỉ dùng trên nền tối), nền sáng #F3F6FA
   Font: Chakra Petch (tiêu đề, số liệu) + Be Vietnam Pro (nội dung) – đều hỗ trợ tiếng Việt
   Nền công nghệ và ảnh theo lịch ngày lễ
   ===================================================================== */

@font-face { font-family: "K-Tech Serif"; src: url("../tai-lieu-xem/fonts/ktech-serif-regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "K-Tech Serif"; src: url("../tai-lieu-xem/fonts/ktech-serif-bold.woff") format("woff"); font-weight: 500 900; font-style: normal; font-display: swap; }
@font-face { font-family: "K-Tech Serif"; src: url("../tai-lieu-xem/fonts/ktech-serif-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "K-Tech Serif"; src: url("../tai-lieu-xem/fonts/ktech-serif-bold-italic.woff") format("woff"); font-weight: 500 900; font-style: italic; font-display: swap; }

:root {
    --navy: #0A1428;
    --navy-2: #12233F;
    --deep: #060B16;
    --ink: #0A1428;
    --ink-2: #4B5870;
    --ink-3: #74829A;
    --red: #E10600;
    --red-d: #B80500;
    --red-l: #FDECEC;
    --cyan: #22D3EE;
    --sky: #7DD3FC;
    --green: #16A34A;
    --surface: #F3F6FA;
    --line: #DCE3EE;
    --line-2: #C7D2E0;
    --on-dark: #E6ECF5;
    --on-dark-2: #A9B6CB;
    --radius: 8px;
    --font-latin: "Times New Roman", "K-Tech Serif", "Liberation Serif", "Nimbus Roman";
    --font: var(--font-latin), serif;
    --font-cond: var(--font);
    --wrap: 1240px;
    --nen-cong-nghe: url("../img/nen-cong-nghe/cong-nghe-03.webp");
    --nen-khung-sang: linear-gradient(#edf3fbe0, #dbe8f5e0), var(--nen-cong-nghe);
    --nen-khung-toi: linear-gradient(#122338dc, #151f2edc), var(--nen-cong-nghe);
    --nen-hoa-tiet-le: none;
    --nen-hoa-tiet-le-sang: none;
    --nen-minh-hoa-le: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: #fff; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { margin: 0; line-height: 1.18; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip:focus { top: 12px; color: #fff; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------- Kiểu chữ ---------- */
.h2 { font-family: var(--font-cond); font-weight: 700; font-size: 2.05rem; letter-spacing: -.005em; }
.h3 { font-family: var(--font-cond); font-weight: 700; font-size: 1.4rem; }
.lead { font-size: 1.125rem; color: var(--ink-2); }
.mt { margin-top: 32px; }

.h2 + .block__intro { margin-top: .5em; }

/* ---------- Nút ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border: 2px solid transparent; border-radius: 6px;
    font-family: var(--font); font-weight: 600; font-size: 1rem; line-height: 1.2;
    text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--sm { padding: 6px 12px; font-size: .9rem; }
.btn--lg { padding: 13px 24px; font-size: 1.05rem; }
.btn--pri { background: var(--red); color: #fff; }
.btn--pri:hover { background: var(--red-d); color: #fff; }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--line { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: #fff; }
.btn--ghost { border-color: var(--line-2); color: var(--navy-2); background: #fff; }
.btn--ghost:hover { border-color: var(--red); color: var(--red); }

/* ---------- Thanh trên cùng ---------- */
.topbar { background: var(--deep); color: var(--on-dark-2); font-size: .85rem; }
.topbar__in { display: flex; gap: 28px; align-items: center; min-height: 36px; }
.topbar__in > * { display: inline-flex; align-items: center; gap: 7px; }
.topbar .ic { color: var(--cyan); }
.topbar a { color: var(--on-dark-2); text-decoration: none; margin-left: auto; }
.topbar a:hover { color: #fff; }
.topbar__addr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Đầu trang (nền trắng để logo giữ đúng màu) ---------- */
.header { background: #fff; position: relative; z-index: 30; }
.header__in { display: flex; align-items: center; gap: 28px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex: none; display: block; line-height: 0; }
.logo img { height: 68px; width: auto; max-width: 260px; object-fit: contain; }

.search { flex: 1; display: flex; max-width: 540px; }
.search input {
    flex: 1; min-width: 0; height: 46px; padding: 0 16px;
    border: 1.5px solid var(--line-2); border-right: 0; border-radius: 6px 0 0 6px;
    font: inherit; color: var(--ink); background: var(--surface);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--navy); background: #fff; }
.search button { width: 52px; border: 0; border-radius: 0 6px 6px 0; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.search button:hover { background: var(--red); }

.hotline { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-left: auto; }
.hotline__ic { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--red-l); color: var(--red); }
.hotline small { display: block; font-size: .78rem; color: var(--ink-2); line-height: 1.2; }
.hotline strong { font-family: var(--font-cond); font-size: 1.45rem; line-height: 1.1; letter-spacing: .01em; }
.hotline:hover strong { color: var(--red); }

.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); font-size: 1.4rem; place-items: center; }

/* ---------- Menu chính ---------- */
.nav { background: linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat var(--navy); border-top: 1px solid rgba(56, 189, 248, .14); border-bottom: 1px solid rgba(56, 189, 248, .14); position: relative; }
.nav__in { display: flex; align-items: stretch; }
.nav__list { display: flex; list-style: none; flex-wrap: wrap; }
.nav__item { position: relative; display: flex; align-items: stretch; }
.nav__list > li > a { display: flex; align-items: center; padding: 14px 18px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 1rem; position: relative; }
.nav__item--sub > a { padding-right: 4px; }
.nav__list > li > a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__list > li > a[aria-current="page"] { color: #fff; }
.nav__list > li > a[aria-current="page"]::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; background: var(--red); box-shadow: 0 0 10px rgba(225, 6, 0, .7); }
.nav__toggle { display: grid; place-items: center; width: 30px; padding: 0 10px 0 2px; border: 0; background: none; color: var(--on-dark-2); }
.nav__toggle .ic { transform: rotate(90deg); transition: transform .15s; width: 14px; height: 14px; }
.nav__item.is-open .nav__toggle .ic { transform: rotate(-90deg); }
.nav__toggle:hover { color: #fff; }
.nav__sub { display: none; position: absolute; top: 100%; left: 0; z-index: 40; background: #fff; color: var(--ink); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 36px rgba(6, 11, 22, .22); padding: 16px; }
.nav__item.is-open > .nav__sub { display: block; }
@media (hover: hover) and (min-width: 992px) {
    .nav__item--sub:hover > .nav__sub, .nav__item--sub:focus-within > .nav__sub { display: block; }
}
.nav__sub ul { list-style: none; }
.nav__sub a { color: var(--ink); text-decoration: none; }
.nav__sub a:hover { color: var(--red); }
.nav__sub--links { width: 340px; }
@media (min-width: 992px) {
    .nav__sub--links { left: var(--nav-lech-ngang, 0px); }
}
.nav__subh { margin: 0 0 6px; font-family: var(--font-cond); font-weight: 700; font-size: 1.05rem; }
.nav__sub--links li a { display: flex; align-items: center; gap: 10px; padding: 6px 4px; font-size: .95rem; }
.nav__sub--links li .ic { color: var(--red); flex: none; }
.nav__sub--tb { width: 600px; }
.nav__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.nav__cats a { display: flex; align-items: center; gap: 12px; padding: 5px 4px; font-weight: 500; font-size: .95rem; }
.nav__thumb { flex: none; width: 48px; border-radius: 4px; overflow: hidden; }
.nav__all { display: inline-block; margin-top: 12px; font-weight: 600; color: var(--red) !important; }
.nav__phu { display: none; }
.topbar__nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.topbar__nav a { margin-left: 0; display: inline-flex; align-items: center; gap: 6px; }
.topbar__nav a[aria-current="page"] { color: #fff; }

/* Danh sách danh mục (menu và trang chủ) */
.catlist { list-style: none; }
.catlist__item { position: relative; border-bottom: 1px solid #EDF1F6; }
.catlist__item:last-child { border-bottom: 0; }
.catlist__link { display: flex; align-items: center; gap: 12px; padding: 7px 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; }
.catlist__thumb { flex: none; width: 40px; height: 30px; display: grid; place-items: center; }
.catlist__thumb img { width: 40px; height: 30px; }
.catlist__chev { margin-left: auto; color: var(--ink-3); }
.catlist__link:hover, .catlist__item:focus-within > .catlist__link { background: var(--surface); color: var(--red); }
.catlist__fly { display: none; position: absolute; left: 100%; top: -1px; z-index: 5; width: 280px; min-height: calc(100% + 2px); background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--red); box-shadow: 10px 10px 28px rgba(6, 11, 22, .16); padding: 12px 0; }
.catlist__flyhead { margin: 0 16px 6px; font-weight: 600; color: var(--ink-2); font-size: .86rem; }
.catlist__fly ul { list-style: none; }
.catlist__fly a { display: block; padding: 6px 16px; color: var(--ink); text-decoration: none; }
.catlist__fly a:hover { background: var(--surface); color: var(--red); }
@media (hover: hover) and (min-width: 992px) {
    .catlist__item:hover > .catlist__fly, .catlist__item:focus-within > .catlist__fly { display: block; }
}

/* ---------- Banner trang chủ ---------- */
.hero {
    position: relative; overflow: hidden; padding: 56px 0 60px; color: var(--on-dark);
    background:
        radial-gradient(600px 340px at 78% 30%, rgba(34, 211, 238, .14), transparent 70%),
        radial-gradient(520px 300px at 12% 110%, rgba(225, 6, 0, .16), transparent 70%),
        linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat,
        var(--navy);
}
.hero::before {
    content: ""; position: absolute; inset: 0 0 0 auto; width: 62%;
    background: var(--nen-minh-hoa-le) right center / contain no-repeat; opacity: .55; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
            mask-image: linear-gradient(90deg, transparent, #000 40%);
}
.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 48px; align-items: center; }
.hero__title { font-family: var(--font-cond); font-weight: 700; font-size: 3.1rem; line-height: 1.06; margin: 0 0 18px; color: #fff; letter-spacing: -.012em; max-width: 13em; }
.hero__lead { font-size: 1.12rem; color: var(--on-dark-2); max-width: 36em; margin-bottom: 26px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero .btn--line, .about-band .btn--line, .cta-band .btn--line { border-color: rgba(255, 255, 255, .55); color: #fff; }
.hero .btn--line:hover, .about-band .btn--line:hover, .cta-band .btn--line:hover { background: #fff; border-color: #fff; color: var(--navy); }
.hero__art { display: grid; place-items: center; }
.hero__svg { display: block; width: 100%; max-width: 560px; height: auto; filter: drop-shadow(0 26px 50px rgba(0, 0, 0, .45)); }
.hero__art .diagram { max-width: 560px; }
.hero__photo { width: 100%; max-width: 600px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(56, 189, 248, .25), 0 26px 50px rgba(0, 0, 0, .4); }
.hero--nen { padding: 80px 0 84px; }
.hero--nen::before { display: none; }
.hero__nen { position: absolute; inset: 0; }
.hero__nen .khung { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; border-radius: 0; }
.hero__nen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 11, 22, .94) 0%, rgba(6, 11, 22, .8) 45%, rgba(6, 11, 22, .25) 100%); }
.hero__nen--xanh::after { background: linear-gradient(90deg, rgba(7, 27, 50, .97), rgba(11, 49, 82, .92) 46%, rgba(39, 139, 205, .64) 70%, rgba(99, 194, 251, .82)); }
.hero--nen .hero__in { grid-template-columns: minmax(0, 640px); }

/* Banner luân phiên dùng chung một ô tra mã, giữ kích thước khi đổi ảnh và nội dung. */
.hero__layout { position: static; grid-template-areas: "copy art" "lookup art"; row-gap: 0; align-items: stretch; }
.hero--carousel { padding: 56px 0 60px; touch-action: pan-y pinch-zoom; }
@media (hover: hover) and (pointer: fine) {
    .hero--carousel { cursor: grab; }
    .hero--carousel.hero--dragging { cursor: grabbing; }
    .hero--carousel .hero__lookup { cursor: auto; }
    .hero--carousel .hero__cta a { cursor: pointer; }
}
.hero--carousel:not(.hero--no-art) .hero__layout { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); }
.hero--no-art .hero__layout { grid-template-areas: "copy" "lookup"; }
.hero__panel { display: contents; }
.hero__panel[inert] > * { visibility: hidden; pointer-events: none; }
.hero__text, .hero__lookup, .hero__art { position: relative; z-index: 1; min-width: 0; }
.hero__text { grid-area: copy; align-self: end; }
.hero--carousel .hero__text { align-self: start; }
.hero__cta:empty { display: none; }
.hero__lookup { grid-area: lookup; align-self: start; width: 100%; }
.hero__art { grid-area: art; align-self: center; }
.hero--carousel .hero__art { aspect-ratio: 4/3; }
.hero__nen { pointer-events: none; }

@media (prefers-reduced-motion: no-preference) {
    .hero--carousel { --hero-slide: 34px; }
    .hero--carousel.hero--reverse { --hero-slide: -34px; }
    .hero__panel > :is(.hero__text, .hero__art) {
        --hero-enter-x: var(--hero-slide);
        --hero-leave-x: calc(var(--hero-slide) * -.6);
    }
    .hero__panel > .hero__nen { --hero-enter-scale: 1.025; }
    .hero__panel--leaving[inert] > * { visibility: visible; }
    .hero__panel--entering > * { animation: hero-banner-enter .5s cubic-bezier(.22, .61, .36, 1) both; }
    .hero__panel--leaving > * { animation: hero-banner-leave .5s ease-in-out both; }
    .hero__panel--entering > .hero__text { animation-duration: .36s; animation-delay: .11s; }
    .hero__panel--leaving > .hero__text { animation-duration: .16s; }
}
@keyframes hero-banner-enter {
    from { opacity: 0; transform: translateX(var(--hero-enter-x, 0px)) scale(var(--hero-enter-scale, 1)); }
    to { opacity: 1; transform: none; }
}
@keyframes hero-banner-leave {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateX(var(--hero-leave-x, 0px)); }
}

/* Ô tra mã thiết bị */
.lookup { max-width: 560px; padding: 16px 18px; border: 1px solid rgba(56, 189, 248, .28); border-radius: var(--radius); background: rgba(6, 11, 22, .55); backdrop-filter: blur(2px); }
.lookup__h { display: flex; align-items: center; gap: 8px; font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; color: #fff; margin-bottom: 10px; }
.lookup__h .ic { color: var(--cyan); }
.lookup__row { display: flex; gap: 8px; }
.lookup__row input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-size: 1.02rem; }
.lookup__row input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .35); }
.lookup__row .btn { height: 48px; }
.lookup__mau { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: .88rem; color: var(--on-dark-2); }
.lookup__mau a { padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: var(--on-dark); text-decoration: none; font-family: var(--font-cond); font-weight: 600; }
.lookup__mau a:hover { border-color: var(--cyan); color: #fff; }

/* Sơ đồ đấu nối dạng đèn neon ở slide 1 */
.diagram { width: 100%; max-width: 560px; overflow: visible; font-family: var(--font); }
.diagram .wire { fill: none; stroke: var(--sky); stroke-width: 2.2; stroke-linejoin: round; }
.diagram .wire--bus { stroke: #4C6390; stroke-width: 2; }
.diagram .wire--com { stroke: var(--cyan); stroke-width: 2.2; stroke-dasharray: 6 5; filter: drop-shadow(0 0 3px rgba(34, 211, 238, .8)); }
.diagram .node { fill: var(--sky); }
.diagram .dev { fill: #0F1F3A; stroke: #5B7AA6; stroke-width: 2; }
.diagram .dev--light { fill: #16294A; stroke: #5B7AA6; stroke-width: 1.8; }
.diagram .dev--rail { fill: #24395E; stroke: #5B7AA6; stroke-width: 1.4; }
.diagram .screen { fill: #040A16; }
.diagram .screen-ui rect { fill: #0EA5E9; opacity: .85; }
.diagram .screen-ui rect:first-child { fill: #334C72; opacity: 1; }
.diagram .leds circle { fill: #16294A; stroke: #5B7AA6; stroke-width: 1.1; }
.diagram .leds .on { fill: #22C55E; stroke: #22C55E; filter: drop-shadow(0 0 3px #22C55E); }
.diagram .port { fill: #2B4268; }
.diagram .terminals rect { fill: #24395E; stroke: #5B7AA6; stroke-width: 1.1; }
.diagram .keys circle { fill: #16294A; stroke: #5B7AA6; stroke-width: 1.6; }
.diagram .keys circle:last-child { fill: var(--red); stroke: var(--red); }
.diagram .fins path { stroke: #5B7AA6; stroke-width: 1.4; opacity: .7; }
.diagram .lamp { fill: #22C55E; stroke: #22C55E; stroke-width: 1.5; transition: fill .2s; filter: drop-shadow(0 0 4px #22C55E); }
.diagram .freq { fill: var(--cyan); font-family: var(--font-cond); font-weight: 700; font-size: 21px; filter: drop-shadow(0 0 4px rgba(34, 211, 238, .7)); }
.diagram .hz { fill: var(--on-dark-2); }
.diagram .dg-txt { fill: #C3D0E4; font-size: 12px; font-weight: 600; }
.diagram .dg-mid { text-anchor: middle; }
.diagram .dg-small { font-size: 10.5px; }
.diagram .dg-label { fill: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 17px; }
.diagram .motor-badge { fill: #0F1F3A; stroke: var(--sky); stroke-width: 2; }
.diagram .motor-txt { fill: #fff; }
.diagram.is-booting .lamp { fill: #16294A; stroke: #5B7AA6; filter: none; }

@media (prefers-reduced-motion: no-preference) {
    .diagram .wire[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s ease-out forwards; }
    .diagram .wire--com { opacity: 0; animation: appear .4s ease-out forwards; }
    .diagram .d0 { animation-delay: .15s; }
    .diagram .d1 { animation-delay: .65s; }
    .diagram .d2 { animation-delay: 1.05s; }
    .diagram .d3 { animation-delay: 1.35s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

/* ---------- Danh mục nhanh ---------- */
.tiles { padding: 28px 0 8px; }
.tiles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); text-align: center; font-weight: 600; font-size: .88rem; line-height: 1.3; }
.tile img { width: 80px; height: 60px; }
.tile:hover { border-color: var(--red); color: var(--red); }

/* ---------- Khối nội dung ---------- */
.block { padding: 56px 0; }
.block--tight { padding: 28px 0 56px; }
.block--grey { background: var(--surface); }
.block__head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.block__more { margin-left: auto; font-weight: 600; white-space: nowrap; color: var(--red); text-decoration: none; }
.block__more:hover { color: var(--red-d); text-decoration: underline; }
.block__intro { max-width: 46em; color: var(--ink-2); font-size: 1.05rem; margin: -8px 0 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 5px 14px; border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); font-size: .88rem; font-weight: 500; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.grid { display: grid; gap: 16px; }
.grid--products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

/* Thẻ sản phẩm */
.product { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.product:hover { border-color: var(--red); }
.product__img { display: block; background: var(--surface); padding: 12px 16px; border-bottom: 1px solid var(--line); }
.product__img img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; }
.product__body { padding: 12px 14px 4px; flex: 1; }
.product__brand { margin: 0 0 2px; font-size: .8rem; font-weight: 600; color: var(--red); }
.product__name { font-family: var(--font); font-size: 1rem; font-weight: 600; line-height: 1.35; margin: 0 0 6px; }
.product__name a { color: var(--ink); text-decoration: none; }
.product__name a:hover { color: var(--red); text-decoration: underline; }
.product__desc { font-size: .86rem; color: var(--ink-2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 14px; }
.product__price { font-size: .88rem; font-weight: 600; color: var(--navy-2); }

/* Danh sách tích */
.checks { list-style: none; margin: 0 0 24px; }
.checks li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.checks--sm li { font-size: .92rem; margin-bottom: 6px; }

/* ---------- Giới thiệu ngắn ---------- */
.about-band { background: radial-gradient(500px 300px at 85% 50%, rgba(34, 211, 238, .12), transparent 70%), linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat, var(--navy); color: var(--on-dark); padding: 60px 0; }
.about-band__in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-band .h2 { color: #fff; margin-bottom: 14px; }
.about-band .lead { color: var(--on-dark-2); max-width: 36em; }
.about-band__art { border: 1px solid rgba(56, 189, 248, .25); border-radius: 12px; padding: 22px; background: rgba(6, 11, 22, .45); }
.about-band__art img { display: block; width: 100%; background: var(--nen-khung-sang) center / cover no-repeat var(--surface); border-radius: 8px; padding: 10px; }

/* ---------- Chuỗi giải pháp ---------- */
.chain { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.chain__node { position: relative; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); padding: 20px 18px 16px; }
.chain__node:not(:last-child)::after { content: ""; position: absolute; top: 38px; right: -33px; width: 32px; height: 12px; background: var(--navy); clip-path: polygon(0 4.5px, 22px 4.5px, 22px 0, 32px 6px, 22px 12px, 22px 7.5px, 0 7.5px); }
.chain__node:last-child { border-top-color: var(--red); }
.chain__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--navy); color: var(--cyan); font-size: 1.4rem; margin-bottom: 12px; }
.chain__name { font-family: var(--font-cond); font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.chain__node p { font-size: .94rem; color: var(--ink-2); margin-bottom: 10px; }
.extra-sol { margin-top: 28px; }

.sol { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
a.sol:hover { border-color: var(--red); color: var(--ink); }
.sol__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--red-l); color: var(--red); font-size: 1.3rem; }
.sol__name { display: block; font-family: var(--font-cond); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.sol__desc { display: block; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Form báo giá ---------- */
.quote-block__in { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.quote-block__text .h2 { margin-bottom: 12px; }
.quote-block__text p { color: var(--ink-2); }
.contact-mini { list-style: none; margin-top: 20px; }
.contact-mini li { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 600; }
.contact-mini .ic { color: var(--red); width: 1.3em; height: 1.3em; }

.quote { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 24px; box-shadow: 0 18px 40px rgba(10, 20, 40, .07); }
.quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 5px; }
.field--full { grid-column: 1 / -1; }
.req { color: var(--red); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(34, 211, 238, .25); }
.field input[type="file"] { font-size: .92rem; max-width: 100%; }
.quote__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 18px; }
.quote__note { font-size: .82rem; color: var(--ink-2); margin: 0; flex: 1; min-width: 220px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; border-left: 4px solid; }
.alert--ok { background: #E8F7EE; border-color: var(--green); }
.alert--err { background: var(--red-l); border-color: var(--red); }

/* ---------- Bài viết ---------- */
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.post:hover { border-color: var(--line-2); }
.post__meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-2); margin-bottom: 8px; }
.post__cat { color: var(--red); font-weight: 600; }
.post__title { font-family: var(--font-cond); font-size: 1.32rem; font-weight: 700; margin-bottom: 8px; }
.post__title a { color: var(--ink); text-decoration: none; }
.post__title a:hover { color: var(--red); text-decoration: underline; }
.post__sum { color: var(--ink-2); font-size: .94rem; flex: 1; }
.post__more { font-weight: 600; align-self: flex-start; }

/* ---------- Thương hiệu ---------- */
.brands { background: var(--nen-khung-sang) center / cover no-repeat var(--surface); padding: 46px 0; border-top: 1px solid var(--line); }
.brands__in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.brands .h3 { margin-bottom: 14px; }
.plates { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.plates li {
    font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; letter-spacing: .02em;
    padding: 6px 22px; border: 1.5px solid var(--line-2); border-radius: 4px; color: var(--navy);
    background:
        radial-gradient(circle at 8px 50%, #94A3B8 2.2px, transparent 2.8px),
        radial-gradient(circle at calc(100% - 8px) 50%, #94A3B8 2.2px, transparent 2.8px),
        linear-gradient(#FFFFFF, #EEF2F8);
}
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; }

/* ---------- Chân trang ---------- */
.footer { background: radial-gradient(600px 260px at 10% 0%, rgba(225, 6, 0, .10), transparent 70%), linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat, var(--deep); color: var(--on-dark-2); font-size: .93rem; padding-top: 52px; border-top: 3px solid var(--red); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.1fr 1.5fr; gap: 32px; padding-bottom: 36px; }
.footer__logo { display: inline-block; background: #fff; border-radius: 10px; padding: 10px 16px; line-height: 0; margin-bottom: 16px; box-shadow: 0 0 0 1px rgba(56, 189, 248, .25); }
.footer__logo img { height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.footer__legal { font-size: .85rem; color: var(--on-dark-2); }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social a { padding: 4px 12px; border: 1px solid #23344F; border-radius: 999px; color: #fff; text-decoration: none; font-size: .87rem; }
.footer__social a:hover { border-color: var(--red); text-decoration: none; }
.footer__h { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 7px; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__info { list-style: none; }
.footer__info li { display: flex; gap: 10px; margin-bottom: 9px; align-items: flex-start; }
.footer__info .ic { margin-top: .2em; color: var(--cyan); }
.footer__bottom { border-top: 1px solid #18263D; padding: 14px 0; font-size: .84rem; color: var(--ink-3); }

/* ---------- Nút liên hệ nổi ---------- */
.floatbar { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40; }
.floatbar__btn { display: flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 8px 20px rgba(6, 11, 22, .3); }
.floatbar__btn .ic { width: 1.4em; height: 1.4em; }
.floatbar__btn--zalo { background: #0068FF; }
.floatbar__btn:hover { color: #fff; filter: brightness(1.08); }
.floatbar__btn--call {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(18px + env(safe-area-inset-bottom));
    gap: 10px;
    padding: 0;
    box-shadow: none;
}
.floatbar__call-icon {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    flex: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 4px 14px rgba(6, 11, 22, .24);
}
.floatbar__call-icon .ic { width: 23px; height: 23px; fill: currentColor; stroke-width: 1; }
.floatbar__call-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    column-gap: 4px;
    max-width: 180px;
    padding: 9px;
    border-radius: 6px;
    background: var(--red);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 4px 14px rgba(6, 11, 22, .24);
}
.floatbar__call-label strong { font-size: 1rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* Dùng lề trái khi đủ chỗ cho nhãn, để không che nội dung trong .wrap. */
@media (min-width: 1580px) {
    .floatbar__btn--call { left: 10px; top: calc(50% - 30px); bottom: auto; flex-direction: column; gap: 19px; }
    .floatbar__call-icon { width: 60px; height: 60px; }
    .floatbar__call-icon .ic { width: 27px; height: 27px; }
}
@media (prefers-reduced-motion: no-preference) {
    .floatbar__call-icon::before, .floatbar__call-icon::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: inherit;
        pointer-events: none;
    }
    .floatbar__call-icon::before { border: 1.5px solid var(--red); animation: hotline-wave 1.8s ease-out infinite; }
    .floatbar__call-icon::after { background: var(--red); animation: hotline-halo 1.8s ease-in-out infinite; }
    .floatbar__call-icon .ic { animation: hotline-ring 1.8s ease-in-out infinite; transform-origin: center; }
}
@keyframes hotline-wave {
    0% { transform: scale(1); opacity: .65; }
    88%, 100% { transform: scale(1.6); opacity: 0; }
}
@keyframes hotline-halo {
    0%, 100% { transform: scale(1); opacity: 0; }
    40% { transform: scale(1.28); opacity: .24; }
}
@keyframes hotline-ring {
    0%, 48%, 100% { transform: rotate(0); }
    8%, 24% { transform: rotate(-22deg); }
    16%, 32% { transform: rotate(12deg); }
}
.totop { position: fixed; right: 16px; bottom: 78px; z-index: 40; width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .2s; }
.totop.is-show { opacity: 1; pointer-events: auto; }

/* ---------- Đầu trang con ---------- */
.pagehead { background: radial-gradient(520px 260px at 88% 20%, rgba(34, 211, 238, .14), transparent 70%), linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat, var(--navy); color: var(--on-dark); padding: 18px 0 34px; position: relative; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--red) 0, var(--red) 120px, rgba(56, 189, 248, .25) 120px); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; margin-bottom: 14px; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #4C6390; }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: #fff; }
.pagehead__title { font-family: var(--font-cond); font-weight: 700; font-size: 2.6rem; line-height: 1.1; max-width: 22em; color: #fff; }
.pagehead__lead { margin: 10px 0 0; max-width: 46em; color: var(--on-dark-2); font-size: 1.06rem; }

/* Trang sản phẩm */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
@media (min-width: 992px) {
    .shop__side {
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        overflow-y: auto;
        scrollbar-width: thin;
    }
}
.shop__h { font-family: var(--font-cond); font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; }
.shop__list { list-style: none; margin-bottom: 24px; border-left: 2px solid var(--line); }
.shop__list a { display: block; padding: 6px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.shop__list a:hover { color: var(--red); }
.shop__list a[aria-current="page"] { border-left-color: var(--red); color: var(--red); font-weight: 600; }
.shop__help { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.shop__help p { margin-bottom: 8px; }
.shop__count { color: var(--ink-2); margin-bottom: 12px; }
.grid--shop { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.empty { padding: 32px; border: 1.5px dashed var(--line-2); border-radius: var(--radius); }
.empty .h3 { margin-bottom: 8px; }
.empty--page { text-align: center; padding: 64px 24px; }
.empty--page .btn { margin: 4px; }
.seo-text { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--ink-2); }
.seo-text h2 { color: var(--ink); }

/* Chi tiết sản phẩm */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pdp__img { position: relative; isolation: isolate; overflow: hidden; background: #e7eef7; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.pdp__img::before {
    content: "";
    position: absolute;
    inset: -16px;
    z-index: -1;
    background: var(--pdp-bg, none) center / cover no-repeat;
    filter: blur(12px);
    opacity: .26;
    pointer-events: none;
}
.pdp__img img { display: block; width: 100%; }
.pdp__imgnote { margin: 8px 0 0; font-size: .82rem; color: var(--ink-2); text-align: center; }
@media (prefers-color-scheme: dark) {
    .pdp__img { color-scheme: dark; background-color: #182434; border-color: #37455a; }
    .pdp__imgnote { color: #d0dae7; }
}
.pdp__brand { margin-bottom: 8px; }
.pdp__sep { color: var(--line-2); margin: 0 6px; }
.pdp__info .h3 { margin-bottom: 12px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pdp__price strong { font-family: var(--font-cond); font-size: 1.6rem; color: var(--red); }
.pdp__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.pdp__note { font-size: .9rem; color: var(--ink-2); }
.pdp__desc.prose { max-width: none; margin-top: 44px; overflow-wrap: anywhere; }

/* Nội dung dạng văn bản */
.prose { max-width: 72ch; font-size: 1.04rem; line-height: 1.75; }
.prose h2 { font-family: var(--font-cond); font-size: 1.65rem; font-weight: 700; margin: 1.6em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-cond); font-size: 1.3rem; font-weight: 700; margin: 1.4em 0 .4em; }
.prose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.factbox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--red); }
.factbox .h3 { margin-bottom: 12px; }
.factbox dl { margin: 0; }
.factbox dt { font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.factbox dd { margin: 0; font-weight: 600; }

.field-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.field-card .ic { width: 34px; height: 34px; color: var(--red); }
.field-card strong { font-family: var(--font-cond); font-size: 1.25rem; }
.field-card span { color: var(--ink-2); font-size: .93rem; }
.field-card:hover { border-color: var(--red); color: var(--ink); }

.figure { margin: 36px auto 0; max-width: 520px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.figure img { display: block; width: 100%; }

/* Dịch vụ */
.svc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.svc__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius); background: var(--navy); color: var(--cyan); font-size: 1.4rem; margin-bottom: 14px; }
.svc__name { font-family: var(--font-cond); font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.svc p { color: var(--ink-2); flex: 1; }
.svc__link { font-weight: 600; color: var(--red); }

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.steps__item { position: relative; background: #fff; border-radius: var(--radius); padding: 20px 20px 16px 74px; border: 1px solid var(--line); }
.steps__no { position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; box-shadow: inset 0 -3px 0 var(--red); }
.steps__name { font-family: var(--font-cond); font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; }
.steps__item p { margin: 0; color: var(--ink-2); font-size: .94rem; }

.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; background: radial-gradient(400px 200px at 90% 50%, rgba(34, 211, 238, .14), transparent 70%), linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat, var(--navy); color: var(--on-dark); border-radius: var(--radius); padding: 34px 38px; border-left: 4px solid var(--red); }
.cta-band .h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; max-width: 40em; color: var(--on-dark-2); }
.cta-band__btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bài viết chi tiết */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article__img { display: block; width: 100%; border-radius: var(--radius); margin-bottom: 24px; border: 1px solid var(--line); }
.article__meta { color: var(--ink-2); font-size: .92rem; }
.article__cta { margin-top: 32px; padding: 18px 20px; background: var(--surface); border-left: 4px solid var(--red); border-radius: 6px; }
.article__cta p { margin: 0; }
.article__side { position: sticky; top: 16px; }
.article__side .h3 { margin-bottom: 10px; }
.article__list { list-style: none; }
.article__list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.article__list a { color: var(--ink); text-decoration: none; font-weight: 500; }
.article__list a:hover { color: var(--red); text-decoration: underline; }

/* Tài liệu */
.docs { display: grid; gap: 30px; max-width: 920px; }
.docs__group .h3 { margin-bottom: 10px; }
.docs__list { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.docs__item { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-bottom: 1px solid var(--line); }
.docs__item:last-child { border-bottom: 0; }
.docs__item--co-file:hover { background: var(--surface); }
.docs__link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; padding: 4px 0; }
a.docs__link:hover .docs__name { color: var(--red); text-decoration: underline; }
.docs__ic { width: 1.6em; height: 1.6em; color: var(--red); }
.docs__name { flex: 1; min-width: 0; }
.docs__type { flex: none; font-family: var(--font-cond); font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 4px; background: var(--navy); color: #fff; }

.viewer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.viewer__spacer { flex: 1; }
.viewer { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #525659; box-shadow: 0 18px 40px rgba(10, 20, 40, .10); }
.viewer__frame { display: block; width: 100%; height: 82vh; min-height: 520px; border: 0; background: #525659; }
.viewer__note { margin: 10px 0 0; font-size: .88rem; color: var(--ink-2); }
.pdf-reader { scroll-margin-top: 12px; }
.pdf-reader__toolbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 12px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.pdf-reader__toolbar .btn { min-height: 40px; }
.pdf-reader__toolbar a[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.pdf-reader__jump { display: flex; align-items: center; gap: 6px; }
.pdf-reader__jump input { width: 3.75rem; height: 40px; min-width: 0; padding-inline: 6px; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; color: var(--ink); }
.pdf-reader__jump span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pdf-reader__sheet { display: flex; justify-content: center; padding: 12px; border: 1px solid var(--line); background: var(--surface); min-width: 0; }
.pdf-reader__sheet:empty { display: none; }
.pdf-reader__sheet > a { display: block; width: min(100%, 930px); }
.pdf-reader__sheet img, .pdf-reader__sheet canvas { display: block; width: min(100%, 930px); height: auto; background: #fff; color-scheme: only light; }
.pdf-reader__notice { margin: 10px 0; color: var(--ink-2); }
.pdf-reader__retry { margin-bottom: 10px; }
@media (max-width: 440px) {
    .pdf-reader__toolbar { justify-content: space-between; }
    .pdf-reader__jump { order: 1; justify-content: center; width: 100%; }
    .pdf-reader__sheet { padding: 4px; }
}

/* Liên hệ */
.contact { display: grid; grid-template-columns: .9fr 1.2fr; gap: 48px; align-items: start; }
.contact__info .h3 { margin-bottom: 16px; }
.contact__list .ic { color: var(--red); }
.contact__form .h2 { margin-bottom: 14px; }
.map { margin-top: 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map iframe { display: block; width: 100%; height: 320px; border: 0; }


/* ---------- Trang chi tiết dịch vụ ---------- */
.svc__name a { color: inherit; text-decoration: none; }
.svc__name a:hover { color: var(--red); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-inline-start: 1.45em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); font-weight: 700; }
.prose a { color: var(--navy-2); text-decoration: underline; text-decoration-color: rgba(225, 6, 0, .45); }
.prose a:hover { color: var(--red); }
.svc-side { position: sticky; top: 16px; display: grid; gap: 24px; }
.svc-side .factbox p { margin-bottom: 10px; }
.svc-side__btn { width: 100%; }
.svc-side__note { font-size: .86rem; color: var(--ink-2); margin: 4px 0 0 !important; }
.svc-side__nav .h3 { margin-bottom: 6px; }
.svc-links { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.svc-links li { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 6px; background: #fff; }
.svc-links li::marker { content: none; }
.svc-links a { font-weight: 700; display: block; text-decoration: none; color: var(--ink); }
.svc-links a:hover { color: var(--red); }
.svc-links span { display: block; font-size: .92rem; color: var(--ink-2); }
.faq { display: grid; gap: 10px; margin-bottom: 1em; }
.faq__item { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.faq__item summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; gap: 12px; align-items: baseline; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before { content: "+"; flex: none; width: 18px; font-family: var(--font-cond); font-weight: 700; color: var(--red); }
.faq__item[open] summary::before { content: "–"; }
.faq__item p { margin: 0; padding: 0 16px 14px 46px; color: var(--ink-2); }
.area-links { margin-top: 32px; display: grid; gap: 12px; }
.area-link { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(#0a1428d9, #0a1428eb), var(--nen-cong-nghe) center / cover no-repeat var(--navy); color: var(--on-dark-2); text-decoration: none; }
.area-link .ic { width: 28px; height: 28px; color: var(--cyan); margin-top: 2px; }
.area-link strong { display: block; color: #fff; font-family: var(--font-cond); font-size: 1.2rem; }
.area-link:hover { border-color: var(--red); color: var(--on-dark); }
.svc-related { margin-top: 36px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.svc-related .h3 { margin-bottom: 12px; }
.svc-related__list { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-related__list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.svc-related__list a .ic { color: var(--red); }
.svc-related__list a:hover { border-color: var(--red); color: var(--red); }
.footer__bottom-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer__policy { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__policy a { color: var(--ink-3); }
.footer__policy a:hover { color: #fff; }
@media (max-width: 991px) { .svc-side { position: static; } }


/* ---------- Banner: ảnh tự tải lên ---------- */
.slide { min-height: 380px; }
.slide__art--photo { align-self: stretch; }
.slide__photo { display: block; width: auto; height: auto; max-width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.slide--nen {
    grid-template-columns: minmax(0, 1fr);
    background: linear-gradient(90deg, rgba(6, 11, 22, .94) 0%, rgba(6, 11, 22, .78) 42%, rgba(6, 11, 22, .2) 100%), var(--nen) center / cover no-repeat;
}
.slide--nen .slide__text { max-width: 560px; }


/* =====================================================================
   BẢN V5: khung ảnh tự co giãn, khối trang chủ, dự án, phần mềm, form, demo SCADA
   ===================================================================== */

/* Khung ảnh: tỉ lệ cố định, ảnh phủ kín không méo; phần giữ lại khi cắt chọn trong quản trị */
.khung { display: block; position: relative; overflow: hidden; aspect-ratio: var(--tl, 16/10); background: var(--surface); }
.khung > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.khung--top > img { object-position: 50% 0; }
.khung--bottom > img { object-position: 50% 100%; }
.khung--left > img { object-position: 0 50%; }
.khung--right > img { object-position: 100% 50%; }
.khung--contain > img { object-fit: contain; }
.khung--contain { background: var(--nen-khung-sang) center / cover no-repeat var(--surface); }
.khung--hinh { background: var(--nen-khung-sang) center / cover no-repeat var(--surface); }
@media (prefers-color-scheme: dark) {
    .khung--contain, .khung--hinh, .about-band__art img, .brands {
        background: var(--nen-khung-toi) center / cover no-repeat #172537;
    }
    .brands { color: var(--on-dark); }
}
.khung--hinh > img { object-fit: contain; padding: 8%; }
.khung--hinh > img[src$="ktech-icon-192.png"] { padding: 0; width: 34%; height: 34%; inset: 33%; opacity: .9; }

/* Dải tiêu đề có ảnh nền */
.pagehead--anh { padding: 48px 0 52px; overflow: hidden; }
.pagehead__anh { position: absolute !important; inset: 0; aspect-ratio: auto !important; height: 100%; }
.pagehead--anh::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 11, 22, .92), rgba(6, 11, 22, .7) 55%, rgba(6, 11, 22, .45)); }
.pagehead--anh .wrap { position: relative; z-index: 2; }

/* Khối trang chủ */
.block__sub { margin: 34px 0 14px; }
.brand-line { margin: 22px 0 0; color: var(--ink-2); font-size: .94rem; }
.brand-line span { font-weight: 600; color: var(--ink); }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.cat:hover { border-color: var(--red); color: var(--red); }
.cat__name { padding: 10px 12px; font-weight: 600; font-size: .93rem; line-height: 1.3; }

/* Chuỗi giải pháp: số ô tùy theo quản trị */
.chain { grid-template-columns: repeat(min(var(--so, 4), 4), minmax(0, 1fr)); }
.chain__anh { margin: -20px -18px 14px; border-radius: var(--radius) var(--radius) 0 0; }
.chain--anh .chain__node { padding-top: 20px; }

/* Ô giải pháp / ô lĩnh vực có ảnh */
.sol__in { display: flex; gap: 14px; align-items: flex-start; }
.sol--anh { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.sol--anh .sol__in { padding: 16px 18px 18px; }
.sol__anh { width: 100%; }
.field-card { padding: 0; overflow: hidden; gap: 0; }
.field-card__in { display: flex; flex-direction: column; gap: 8px; padding: 20px; flex: 1; }
.field-card__icon .ic { width: 34px; height: 34px; color: var(--red); }
.field-card__name { font-family: var(--font-cond); font-size: 1.25rem; color: var(--ink); }
.field-card__desc { color: var(--ink-2); font-size: .93rem; display: block; margin-top: 4px; }
.field-card__anh { width: 100%; }
.field-card > span.field-card__in > span { color: inherit; }

/* Thẻ dự án */
.pj { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; transition: border-color .15s; }
.pj:hover { border-color: var(--red); }
.pj__img { display: block; }
.pj__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pj__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pj__tags li { padding: 2px 10px; border-radius: 4px; background: var(--red-l); color: var(--red-d); font-size: .78rem; font-weight: 600; }
.pj__name { font-family: var(--font-cond); font-size: 1.3rem; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.pj__name a { color: var(--ink); text-decoration: none; }
.pj__name a:hover { color: var(--red); text-decoration: underline; }
.pj__sum { color: var(--ink-2); font-size: .94rem; flex: 1; margin-bottom: 10px; }
.pj__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: .84rem; color: var(--ink-3); }
.pj-o { min-width: 0; }
.chips--loc { margin-bottom: 24px; }

/* Thẻ phần mềm */
.sw { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.sw__img { display: block; background: var(--navy); }
.sw__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.sw__name { font-family: var(--font-cond); font-size: 1.35rem; font-weight: 700; }
.sw__name a { color: var(--ink); text-decoration: none; }
.sw__name a:hover { color: var(--red); }
.sw__tag { color: var(--red); font-weight: 600; font-size: .92rem; margin: 2px 0 8px; }
.sw__sum { color: var(--ink-2); font-size: .94rem; flex: 1; }
.sw__more { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-weight: 600; }
.sw__more a { color: var(--red); }
.sw-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; padding: 28px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: var(--radius); }
.sw-hero__name { font-family: var(--font-cond); font-size: 2rem; font-weight: 700; }
.sw-hero__name a { color: var(--ink); text-decoration: none; }
.sw-hero__tag { color: var(--red); font-weight: 600; margin: 4px 0 16px; }
.sw-hero__list { list-style: none; display: grid; gap: 12px; margin-bottom: 22px; }
.sw-hero__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.sw-hero__list li strong { color: var(--ink); }
.sw-hero__list .ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 6px; background: var(--navy); color: var(--cyan); }
.sw-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sw-hero__img { display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: 0 18px 40px rgba(10, 20, 40, .16); }
.btn--line-dark { border: 2px solid var(--line-2); color: var(--ink); background: #fff; }
.btn--line-dark:hover { border-color: var(--navy); color: var(--navy); }

/* Tài liệu ở trang chủ */
.doc-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.doc-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.doc-card:hover { border-color: var(--red); }
.doc-card__ic { position: relative; flex: none; width: 44px; height: 52px; display: grid; place-items: center; border-radius: 6px; background: var(--surface); color: var(--red); }
.doc-card__ic .ic { width: 26px; height: 26px; }
.doc-card__ic em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-family: var(--font-cond); font-size: .7rem; font-weight: 700; padding: 0 5px; border-radius: 3px; background: var(--navy); color: #fff; }
.doc-card__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.doc-card__t small { color: var(--ink-3); font-size: .8rem; }
.doc-card__t strong { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.doc-card__go { flex: none; font-weight: 600; color: var(--red); font-size: .9rem; }

/* Khối liên hệ: hai lựa chọn */
.contact-band { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-band .h2 { margin-bottom: 12px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice__card { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); transition: border-color .15s; }
.choice__card strong { font-family: var(--font-cond); font-size: 1.35rem; color: var(--ink); }
.choice__card:hover { border-color: var(--red); color: var(--ink-2); }
.choice__card--pri { border-top: 3px solid var(--red); }
.choice__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius); background: var(--navy); color: var(--cyan); }
.choice__ic .ic { width: 26px; height: 26px; }
.choice__go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--red); }
.choice--2 { max-width: 920px; }

/* Trang form khảo sát / báo giá */
.form-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.form-page__side { position: sticky; top: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form-page__side .h3 { margin-bottom: -6px; }
.buoc { list-style: none; counter-reset: b; display: grid; gap: 12px; }
.buoc li { counter-increment: b; position: relative; padding-left: 40px; color: var(--ink-2); font-size: .94rem; }
.buoc li::before { content: counter(b); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: #fff; font-family: var(--font-cond); font-weight: 700; box-shadow: inset 0 -3px 0 var(--red); }
.form-page__lh { display: grid; gap: 8px; }
.form-page__lh p { margin: 0; }
.form-page__lh .btn { width: 100%; }
.form-page__khac { margin: 0; font-size: .92rem; color: var(--ink-2); }
.form-page__tra label { display: block; font-size: .93rem; margin-bottom: 6px; }
.form-page__tra div { display: flex; gap: 6px; }
.form-page__tra input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 6px; font: inherit; }
.quote__nhom { border: 0; padding: 0; margin: 0 0 20px; }
.quote__nhom legend { font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; margin-bottom: 10px; padding: 0; }
.quote__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; margin-bottom: 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { margin-top: .3em; width: 17px; height: 17px; accent-color: var(--red); }
.field select { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 6px; font: inherit; background: #fff; color: var(--ink); }
.field small { display: block; font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.field--tep { margin-top: 4px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 6px; background: var(--surface); }
.field__loi { margin: 6px 0 0; color: var(--red-d); font-weight: 600; font-size: .9rem; }
.quote__chon { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border-radius: 6px; background: #E8F7EE; font-size: .94rem; }
.quote__chon .ic { color: var(--green); }
.quote__grid--sp { grid-template-columns: minmax(0, 1fr) 140px; }
.alert--lon { display: grid; gap: 6px; padding: 16px 18px; }
.alert--lon > strong { font-size: 1.1rem; }
.alert__ma b { font-family: var(--font-cond); font-size: 1.35rem; letter-spacing: .03em; padding: 2px 10px; border-radius: 4px; background: #fff; border: 1px solid var(--green); }

/* Thiết bị: tra mã, mã, biến thể */
.shop__tra { display: flex; gap: 8px; margin-bottom: 14px; }
.shop__tra input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 6px; font: inherit; background: var(--surface); }
.shop__tra input:focus { outline: none; border-color: var(--navy); background: #fff; }
.shop__tra .btn { height: 46px; }
.product__match { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: #E8F7EE; color: #166534; font-size: .72rem; }
.pdp__codes { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 12px; }
.pdp__codes dt { font-size: .8rem; color: var(--ink-2); }
.pdp__codes dd { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; }
.pdp__variants { margin-top: 40px; }
.pdp__variants .h3 { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.spec { width: 100%; border-collapse: collapse; font-size: .94rem; background: #fff; }
.spec th, .spec td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.spec thead th { background: var(--surface); font-size: .84rem; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.spec tbody th { font-family: var(--font-cond); font-weight: 700; white-space: nowrap; }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec td:last-child { text-align: right; width: 1%; }

/* Chi tiết dự án */
.preview-bar { background: #FFF7E0; border-bottom: 1px solid #F3D27A; padding: 10px 0; font-size: .94rem; }
.pj-detail { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.pj-detail__cover { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.pj-detail__side { position: sticky; top: 16px; }
.pj-detail .prose { max-width: none; }
.stats { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stats li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 6px; }
.stats strong { display: block; font-family: var(--font-cond); font-size: 1.7rem; line-height: 1.1; color: var(--ink); }
.stats span { font-size: .88rem; color: var(--ink-2); }
.tags--line { padding: 0 !important; }
.tags--line li { margin: 0; background: var(--surface); }
.tags--line li::marker { content: none; }
.gallery-sec, .video-sec { margin-top: 36px; }
.gallery-sec .h3, .video-sec .h3 { margin-bottom: 14px; }
.gallery { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.prose .gallery { margin: 0; padding: 0; }
.prose .gallery > li { margin: 0; }
.pdp__media { min-width: 0; }
.pdp__media .gallery-sec { margin-top: 20px; }
.pdp__media .gallery { grid-template-columns: repeat(auto-fill, minmax(min(100%, 122px), 1fr)); }
.sol-gallery { margin-bottom: 32px; }
.gallery__o { display: block; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.gallery__o:hover { border-color: var(--red); }
.gallery__chu { margin: 6px 0 0; font-size: .86rem; color: var(--ink-2); }
.ket-qua { margin-top: 36px; padding: 22px 24px; background: #F2FAF5; border: 1px solid #CDEBD8; border-left: 4px solid var(--green); border-radius: var(--radius); }
.lightbox { padding: 12px; margin: auto; border: 1px solid #405575; border-radius: 10px; background: #0b1426; color: #fff; max-width: min(1240px, 96vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(6, 11, 22, .88); }
.lightbox img { display: block; max-width: min(1200px, 100%); max-height: min(74vh, calc(94vh - 155px)); width: auto; height: auto; margin: 0 auto; border-radius: 6px; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.lightbox__count { font-variant-numeric: tabular-nums; font-size: .9rem; }
.lightbox__chu { margin: 8px 0 0; color: #fff; text-align: center; }
.lightbox__chu:empty { display: none; }
.lightbox__nav { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.lightbox__nav[hidden] { display: none; }
.lightbox button { border: 1px solid #68819f; border-radius: 6px; background: #182f4b; color: #fff; min-height: 40px; padding: 0 10px; }
.lightbox button:hover { background: #2a4d76; }
.lightbox__dong { min-width: 40px; display: grid; place-items: center; }

/* Video phát ngay trong trang */
.video-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.video { margin: 0; }
.video__khung { position: relative; aspect-ratio: var(--tl, 16/9); border-radius: var(--radius); overflow: hidden; background: var(--nen-khung-toi) center / cover no-repeat var(--navy); max-height: 70vh; }
.video__khung iframe, .video__khung video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video__anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__nut { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: linear-gradient(rgba(6, 11, 22, .15), rgba(6, 11, 22, .35)); }
.video__nut svg { width: 68px; height: 68px; }
.video__nut circle { fill: var(--red); }
.video__nut path { fill: #fff; }
.video__nut:hover circle { fill: var(--red-d); }
.video__link { position: absolute; inset: auto 12px 12px; color: #fff; }
.video figcaption { margin-top: 8px; font-size: .92rem; color: var(--ink-2); }
.video[style*="9/16"] .video__khung { max-width: 360px; }

/* Ảnh luân phiên và video trên thẻ Tin tức */
.post__media { position: relative; flex: none; margin: -20px -20px 16px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; border-bottom: 1px solid var(--line); background: var(--surface); }
.post__photos { position: relative; display: block; aspect-ratio: 16/9; }
.post__slide { position: absolute; inset: 0; opacity: 0; }
.post__slide.is-active { z-index: 1; opacity: 1; }
.post__slide .khung { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
    .post__slide { transition: opacity .32s ease; }
}
.post__controls:not([hidden]) { display: flex; }
.post__controls { position: absolute; right: 8px; bottom: 8px; z-index: 2; gap: 2px; padding: 3px; background: rgba(6, 11, 22, .86); border-radius: 7px; }
.post__controls button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #fff; cursor: pointer; }
.post__controls button:hover { background: rgba(255, 255, 255, .18); }
.post__controls button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.post__controls .ic { width: 18px; height: 18px; }
.post__controls .post__pause, .post__controls [aria-pressed="true"] .post__play { display: none; }
.post__controls [aria-pressed="true"] .post__pause { display: block; }
@media (pointer: coarse) {
    .post__controls button { width: 42px; height: 42px; }
}
.post__media .video { margin: 0; }
.post__media .video .video__khung { aspect-ratio: 16/9; max-width: none; max-height: none; border-radius: 0; }
.post__media .video__nut svg { width: 54px; height: 54px; }
.article__video { margin-bottom: 24px; }

/* Trang phần mềm */
.sw-intro { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.sw-intro__kn { margin: 0 0 8px; font-weight: 600; }
.sw-intro__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.sw-intro__img { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: 0 18px 40px rgba(10, 20, 40, .16); }
.plates--sm li { font-size: .95rem; padding: 4px 16px; }
.feat__o { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feat__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: var(--navy); color: var(--cyan); margin-bottom: 12px; }
.feat__ic .ic { width: 22px; height: 22px; }
.feat__ten { font-family: var(--font-cond); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.feat__o p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.prose--hep { margin-bottom: 8px; }
.sw-note { margin-top: 24px; color: var(--ink-2); }
.demo-nhan { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: #FFF4D6; color: #7A4B00; font-weight: 600; font-size: .9rem; border: 1px solid #F3D27A; }
.demo-nhan .ic { color: #B45309; }

/* Demo KTECH SCADA (bề mặt tối kiểu phòng điều hành) */
.scada { position: relative; background: #0A1428; color: #E6ECF5; border-radius: 12px; border: 1px solid #22385C; overflow: hidden; box-shadow: 0 24px 50px rgba(6, 11, 22, .25); font-size: .95rem; }
.scada__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 18px; background: #0E1C34; border-bottom: 1px solid #22385C; }
.scada__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-cond); font-weight: 700; font-size: 1.1rem; }
.scada__logo { width: 12px; height: 12px; border-radius: 2px; background: var(--red); }
.scada__nm { color: #A9B6CB; }
.scada__mp { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; background: #3A2E0B; color: #FDE68A; font-size: .82rem; font-weight: 600; }
.scada__gio { margin-left: auto; font-family: var(--font-cond); font-weight: 600; color: #C3D0E4; font-variant-numeric: tabular-nums; }
.scada__kn { padding: 2px 10px; border-radius: 999px; background: #123A2A; color: #A7F3D0; font-size: .82rem; }
.scada__kn.is-loi { background: #2A2F3A; color: #CBD5E1; }
.scada__body { display: grid; grid-template-columns: 240px minmax(0, 1fr); }
.scada__may { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-right: 1px solid #22385C; background: #0B172D; }
.scada__o { display: grid; gap: 4px; text-align: left; padding: 10px 12px; border: 1px solid #22385C; border-left-width: 4px; border-radius: 6px; background: #0F1F3A; color: #E6ECF5; font: inherit; cursor: pointer; }
.scada__o[aria-selected="true"] { background: #16294A; border-color: #3B82F6; box-shadow: 0 0 0 1px #3B82F6; }
.scada__o:hover { background: #142545; }
.scada__o-dau { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.scada__den { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.scada__o-duoi { display: flex; align-items: baseline; gap: 6px; color: #A9B6CB; font-size: .8rem; }
.scada__o-duoi strong { color: #fff; font-family: var(--font-cond); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.scada__o-tt { font-size: .78rem; font-weight: 600; }
.scada__o--chay { border-left-color: #0ca30c; } .scada__o--chay .scada__den { background: #22C55E; box-shadow: 0 0 6px #22C55E; } .scada__o--chay .scada__o-tt { color: #86EFAC; }
.scada__o--dung { border-left-color: #fab219; } .scada__o--dung .scada__den { background: #fab219; } .scada__o--dung .scada__o-tt { color: #FDE68A; }
.scada__o--loi { border-left-color: #d03b3b; } .scada__o--loi .scada__den { background: #ef4444; box-shadow: 0 0 6px #ef4444; } .scada__o--loi .scada__o-tt { color: #FCA5A5; }
.scada__o--mat { border-left-color: #74829A; background: repeating-linear-gradient(135deg, #0F1F3A 0 8px, #13233F 8px 16px); } .scada__o--mat .scada__den { background: #74829A; } .scada__o--mat .scada__o-tt { color: #CBD5E1; }
.scada__main { padding: 18px 20px 20px; min-width: 0; }
.scada__dau { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.scada__ten { font-family: var(--font-cond); font-size: 1.45rem; font-weight: 700; color: #fff; }
.scada__tt { margin: 2px 0 0; font-size: .9rem; }
.scada__tt::before { content: "●"; margin-right: 6px; }
.scada__tt--chay { color: #86EFAC; } .scada__tt--dung { color: #FDE68A; } .scada__tt--dung::before { content: "■"; }
.scada__tt--loi { color: #FCA5A5; } .scada__tt--loi::before { content: "▲"; } .scada__tt--mat { color: #CBD5E1; } .scada__tt--mat::before { content: "⚠"; }
.scada__btn { padding: 8px 14px; border: 1.5px solid #5B7AA6; border-radius: 6px; background: transparent; color: #E6ECF5; font: inherit; font-weight: 600; font-size: .9rem; }
.scada__btn:hover { border-color: #fff; }
.scada__btn.is-khoi-phuc { background: #E10600; border-color: #E10600; color: #fff; }
.scada__kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.scada__k { padding: 12px 14px; border: 1px solid #22385C; border-radius: 6px; background: #0F1F3A; display: grid; gap: 2px; }
.scada__k-nhan { font-size: .8rem; color: #A9B6CB; }
.scada__k-so { font-family: var(--font-cond); font-size: 1.6rem; line-height: 1.15; color: #fff; font-variant-numeric: tabular-nums; }
.scada__k-phu { font-size: .78rem; color: #8B9BB4; }
.scada__kpi.is-cu .scada__k { background: repeating-linear-gradient(135deg, #0F1F3A 0 8px, #13233F 8px 16px); }
.scada__kpi.is-cu .scada__k-so { color: #A9B6CB; }
.scada__tabs { display: flex; gap: 4px; border-bottom: 1px solid #22385C; margin-bottom: 12px; }
.scada__tabs button { padding: 8px 14px; border: 0; border-bottom: 3px solid transparent; background: none; color: #A9B6CB; font: inherit; font-weight: 600; }
.scada__tabs button[aria-selected="true"] { color: #fff; border-bottom-color: var(--red); }
.scada__dem { margin-left: 4px; padding: 0 7px; border-radius: 999px; background: #3A1214; color: #FCA5A5; font-size: .76rem; }
.scada__dem:empty { display: none; }
.scada__chart svg { display: block; width: 100%; height: auto; }
.scada__chart .luoi { stroke: #1E3354; stroke-width: 1; }
.scada__chart .truc { stroke: #4C6390; stroke-width: 1; }
.scada__chart .nhan-y { fill: #8B9BB4; font-size: 11px; text-anchor: end; font-family: var(--font); }
.scada__chart .nhan-x { fill: #A9B6CB; font-size: 11px; text-anchor: middle; font-family: var(--font); }
.scada__chart .nhan-ngay { fill: #E6ECF5; font-size: 11.5px; font-weight: 600; text-anchor: middle; font-family: var(--font); }
.scada__chart .nhan-gt { fill: #fff; font-size: 12px; font-weight: 700; text-anchor: middle; font-family: var(--font-cond); }
.scada__chart .nhan-kh { fill: #E6ECF5; font-size: 11px; font-family: var(--font); }
.scada__chart .nhan-kh--so { fill: #A9B6CB; }
.scada__chart .ke-hoach { stroke: #E6ECF5; stroke-width: 1.5; stroke-opacity: .75; }
.scada__chart .cot path { fill: #2f9fd8; }
.scada__chart .cot--nay path { fill: #2f9fd8; fill-opacity: .55; stroke: #2f9fd8; stroke-width: 1.5; stroke-dasharray: 4 3; }
.scada__chart .cot:hover path, .scada__chart .cot:focus path { fill: #5FB8E8; }
.scada__chart .cot:focus { outline: none; }
.scada__chart .cot:focus-visible .cham { stroke: var(--cyan); stroke-width: 2; }
.scada__chart .cham { fill: transparent; }
.scada__tip { position: absolute; z-index: 5; min-width: 160px; padding: 8px 12px; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); display: grid; gap: 2px; font-size: .84rem; pointer-events: none; }
.scada__tip strong { font-family: var(--font-cond); font-size: 1.15rem; }
.scada__bang { margin-top: 8px; font-size: .88rem; }
.scada__bang summary { cursor: pointer; color: #A9B6CB; }
.scada__table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .86rem; }
.scada__table th, .scada__table td { padding: 7px 10px; border-bottom: 1px solid #1E3354; text-align: left; vertical-align: top; }
.scada__table th { color: #A9B6CB; font-weight: 600; font-size: .8rem; }
.scada__table tr.is-dang td { background: rgba(225, 6, 0, .08); }
.scada__cb { overflow-x: auto; max-height: 340px; overflow-y: auto; }
.scada__ma { font-family: var(--font-cond); font-weight: 700; }
.scada__nowrap { white-space: nowrap; }
.scada__nhan { display: inline-block; padding: 1px 8px; border-radius: 4px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.scada__nhan--xong { background: #123A2A; color: #A7F3D0; }
.scada__nhan--loi { background: #3A1214; color: #FCA5A5; }
.scada__nhan--dung { background: #3A2E0B; color: #FDE68A; }
.scada__nhan--mat { background: #2A2F3A; color: #E2E8F0; }
.scada__loc { display: flex; gap: 6px; margin-bottom: 8px; }
.scada__loc button { padding: 4px 12px; border: 1px solid #22385C; border-radius: 999px; background: none; color: #A9B6CB; font: inherit; font-size: .84rem; }
.scada__loc button[aria-pressed="true"] { background: #16294A; color: #fff; border-color: #3B82F6; }
.scada__trong { color: #A9B6CB; }
.scada__ghi { margin: 0; padding: 10px 18px 14px; font-size: .82rem; color: #8B9BB4; border-top: 1px solid #22385C; }

/* Tài liệu: đầu nhóm có ảnh / biểu tượng */
.docs__head { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.docs__head .h3 { margin: 0; }
.docs__anh { flex: none; width: 56px; border-radius: 6px; }
.docs__nhom-ic { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; background: var(--navy); color: var(--cyan); }
.docs__nhom-ic .ic { width: 24px; height: 24px; }
.docs__mo-ta { margin: 2px 0 0; color: var(--ink-2); font-size: .93rem; }

/* Khác */
.prose__anh { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.figure { max-width: 900px; }
.figure figcaption { margin-top: 10px; text-align: center; font-size: .9rem; color: var(--ink-2); }
.figure__anh { border-radius: 6px; }
.svc--anh { padding: 0; overflow: hidden; }
.svc--anh > a { display: block; margin-bottom: 14px; }
.svc--anh .svc__name, .svc--anh p, .svc--anh .svc__link { margin-left: 22px; margin-right: 22px; }
.svc--anh .svc__link { margin-bottom: 20px; }
.footer__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.footer .btn--line { background: transparent; border-color: rgba(255, 255, 255, .4); color: #fff; }
.footer .btn--line:hover { background: #fff; color: var(--navy); text-decoration: none; }
.footer .btn--pri:hover { color: #fff; text-decoration: none; }
.about-band__art .khung { border-radius: 8px; }

/* Ảnh nền theo dịp: ảnh tự tải lên phủ các dải màu tối */
.nen-anh .nav, .nen-anh .hero:not(.hero--nen), .nen-anh .pagehead:not(.pagehead--anh), .nen-anh .footer, .nen-anh .cta-band, .nen-anh .about-band {
    background: linear-gradient(rgba(10, 20, 40, .86), rgba(10, 20, 40, .9)), var(--nen-anh) var(--nen-vi-tri) / var(--nen-kich-thuoc) no-repeat #0a1428;
}
.nen-tet .hero:not(.hero--nen) { background: radial-gradient(600px 340px at 78% 30%, rgba(250, 204, 21, .14), transparent 70%), radial-gradient(520px 300px at 12% 110%, rgba(225, 6, 0, .28), transparent 70%), var(--nen-hoa-tiet-le) 0 0 / 320px, var(--navy); }
.nen-quoc-khanh .hero:not(.hero--nen) { background: radial-gradient(620px 360px at 78% 35%, rgba(218, 37, 29, .30), transparent 70%), var(--nen-hoa-tiet-le) 0 0 / 320px, var(--navy); }
.nen-giang-sinh .hero:not(.hero--nen) { background: radial-gradient(600px 340px at 78% 30%, rgba(224, 242, 254, .14), transparent 70%), radial-gradient(520px 300px at 12% 110%, rgba(22, 163, 74, .18), transparent 70%), var(--nen-hoa-tiet-le) 0 0 / 320px, var(--navy); }
.nen-tet .hero::before, .nen-quoc-khanh .hero::before, .nen-giang-sinh .hero::before { opacity: .9; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.nen-tron :is(.hero, .nav, .pagehead, .footer, .cta-band, .about-band, .area-link, .brands, .video__khung),
.nen-tron :is(.khung--contain, .khung--hinh, .about-band__art img) { background-image: none; }
.nen-tron .hero::before { display: none; }

/* Tông sáng áp dụng cả họa tiết lẫn màu chữ, đường viền và nút. */
.nen-sang { --nen-chu: #122a48; --nen-phu: #3b536e; --nen-nhat: #edf5fc; --nen-vien: #b8cde2; }
.nen-sang .nav, .nen-sang .hero:not(.hero--nen), .nen-sang .pagehead:not(.pagehead--anh), .nen-sang .footer, .nen-sang .cta-band, .nen-sang .about-band {
    background: radial-gradient(680px 360px at 86% 0%, #dcefff, transparent 75%), var(--nen-hoa-tiet-le-sang) 0 0 / 320px,
        var(--nen-khung-sang) center / cover no-repeat var(--nen-nhat);
    color: var(--nen-chu);
}
.nen-anh.nen-sang .nav, .nen-anh.nen-sang .hero:not(.hero--nen), .nen-anh.nen-sang .pagehead:not(.pagehead--anh), .nen-anh.nen-sang .footer, .nen-anh.nen-sang .cta-band, .nen-anh.nen-sang .about-band {
    background: linear-gradient(rgba(245, 250, 255, .86), rgba(235, 245, 255, .9)), var(--nen-anh) var(--nen-vi-tri) / var(--nen-kich-thuoc) no-repeat var(--nen-nhat);
}
.nen-sang .nav__list > li > a, .nen-sang .nav__toggle, .nen-sang .footer__h, .nen-sang .footer a,
.nen-sang .about-band .h2, .nen-sang .cta-band .h2, .nen-sang .pagehead:not(.pagehead--anh) .pagehead__title,
.nen-sang .pagehead:not(.pagehead--anh) .crumbs [aria-current], .nen-sang .hero:not(.hero--nen) .hero__title,
.nen-sang .hero:not(.hero--nen) .lookup__h, .nen-sang .hero:not(.hero--nen) .lookup__mau a { color: var(--nen-chu); }
.nen-sang .nav__list > li > a:hover, .nen-sang .nav__list > li > a[aria-current="page"], .nen-sang .nav__toggle:hover,
.nen-sang .footer a:hover, .nen-sang .pagehead:not(.pagehead--anh) .crumbs a:hover { color: var(--red-d); }
.nen-sang .nav__list > li > a:hover { background: rgba(33, 91, 150, .08); }
.nen-sang .footer__legal, .nen-sang .footer__bottom, .nen-sang .about-band .lead, .nen-sang .cta-band p,
.nen-sang .pagehead:not(.pagehead--anh) .pagehead__lead, .nen-sang .pagehead:not(.pagehead--anh) .crumbs a,
.nen-sang .hero:not(.hero--nen) .hero__lead, .nen-sang .hero:not(.hero--nen) .lookup__mau { color: var(--nen-phu); }
.nen-sang .footer__bottom, .nen-sang .footer__social a, .nen-sang .hero:not(.hero--nen) .lookup__mau a { border-color: var(--nen-vien); }
.nen-sang .hero:not(.hero--nen) .lookup, .nen-sang .about-band__art { border-color: var(--nen-vien); background: rgba(255, 255, 255, .92); }
.nen-sang .hero:not(.hero--nen) .lookup__row input { border-color: var(--nen-vien); }
.nen-sang .hero:not(.hero--nen) .lookup__h .ic, .nen-sang .footer__info .ic { color: #145b91; }
.nen-sang .hero:not(.hero--nen) .hero__svg { filter: drop-shadow(0 16px 30px rgba(20, 53, 91, .21)); }
.nen-sang .hero:not(.hero--nen) .btn--line, .nen-sang .about-band .btn--line, .nen-sang .cta-band .btn--line,
.nen-sang .footer .btn--line { color: var(--nen-chu); border-color: var(--nen-vien); background: #fff; }
.nen-sang .hero:not(.hero--nen) .btn--line:hover, .nen-sang .about-band .btn--line:hover,
.nen-sang .cta-band .btn--line:hover, .nen-sang .footer .btn--line:hover { background: #dceafa; color: var(--nen-chu); }
.nen-sang .footer .btn--pri, .nen-sang .footer .btn--pri:hover { color: #fff; }

/* Trang trí bám cửa sổ khi cuộn, ưu tiên các mép để giữ nội dung dễ đọc. */
.le-overlay { position: fixed; inset: 0; z-index: 12; pointer-events: none; overflow: hidden; }
.le-overlay img { position: absolute; height: auto; }
.le-overlay--hoa-mai img { width: clamp(18px, 3vw, 38px); opacity: .78; animation: le-roi 15s linear infinite; }
.le-overlay--hoa-mai img:nth-child(1) { left: 2%; top: 16%; animation-delay: -1s; }
.le-overlay--hoa-mai img:nth-child(2) { left: 5%; top: 46%; animation-delay: -5s; }
.le-overlay--hoa-mai img:nth-child(3) { left: 1%; top: 79%; animation-delay: -10s; }
.le-overlay--hoa-mai img:nth-child(4) { right: 3%; top: 19%; animation-delay: -2s; }
.le-overlay--hoa-mai img:nth-child(5) { right: 1%; top: 50%; animation-delay: -7s; }
.le-overlay--hoa-mai img:nth-child(6) { right: 6%; top: 73%; animation-delay: -12s; }
@keyframes le-roi {
    0% { transform: translate3d(-8px, -25vh, 0) rotate(-15deg); opacity: 0; }
    25%, 74% { opacity: .78; }
    100% { transform: translate3d(12px, 40vh, 0) rotate(175deg); opacity: 0; }
}
.le-overlay--phao-hoa img { width: clamp(64px, 12vw, 160px); opacity: .55; animation: le-no 11s ease-out infinite; }
.le-overlay--phao-hoa img:nth-child(1) { left: 1%; top: 20%; animation-delay: -1s; }
.le-overlay--phao-hoa img:nth-child(2) { right: 0; top: 28%; animation-delay: -5s; }
.le-overlay--phao-hoa img:nth-child(3) { left: 0; bottom: 12%; animation-delay: -9s; }
@keyframes le-no {
    0%, 65%, 100% { transform: scale(.45); opacity: 0; }
    17% { opacity: .67; }
    64% { transform: scale(1.16); opacity: 0; }
}
.le-overlay--co-viet-nam img { right: 12px; top: max(205px, 24vh); width: clamp(38px, 6vw, 94px); border-radius: 2px; box-shadow: 0 4px 14px rgba(20, 20, 40, .24); }
.le-overlay--anh-dong img { right: 0; top: 17vh; width: clamp(88px, 15vw, 260px); max-height: 44vh; object-fit: contain; object-position: right top; opacity: .82; }
.le-toggle { position: fixed; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; z-index: 15; color: #122a48; background: #fff; border: 1px solid #a9bdd2; border-radius: 999px; padding: 7px 11px; font-size: .75rem; box-shadow: 0 2px 8px rgba(19, 45, 72, .16); }
@media (max-width: 1579px) {
    .le-toggle { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
    .le-overlay img { animation: none; }
    .le-overlay--anh-dong, .le-overlay--anh-dong + .le-toggle { display: none; }
}
@media print { .le-overlay, .le-toggle { display: none !important; } }

/* =====================================================================
   Màn hình vừa và nhỏ
   ===================================================================== */
@media (max-width: 1180px) {
    .hotline small { display: none; }
    .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer__brand, .footer__contact { grid-column: span 3; }
    .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chain__node:nth-child(2)::after { display: none; }
}

@media (max-width: 991px) {
    .topbar__addr { display: none; }
    .header__in { flex-wrap: wrap; gap: 10px 16px; padding-top: 10px; padding-bottom: 10px; }
    .logo img { height: 58px; max-width: min(180px, 38vw); }
    .menu-btn { display: grid; order: 3; }
    .hotline { display: none; }
    .header__quote { order: 2; margin-left: auto; }
    .search { order: 4; flex-basis: 100%; max-width: none; }
    .nav { display: none; background: #fff; border-top: 1px solid var(--line); }
    .nen-anh .nav, .nen-anh.nen-sang .nav { background: #fff; }
    .nav.is-open { display: block; }
    .nav__in { flex-direction: column; padding: 0; }
    .catdrop { width: 100%; margin: 0; }
    .trang-trang-chu .catdrop--home { display: block; }
    .catdrop__panel { position: static; box-shadow: none; border: 0; }
    .catlist__fly { display: none !important; }
    .catlist__chev { display: none; }
    .nav__list { flex-direction: column; }
    .nav__list > li > a { color: var(--ink); padding: 13px 20px; flex: 1; }
    .nav__item { flex-wrap: wrap; border-bottom: 1px solid #EDF1F6; }
    .nav__list > li > a:hover { background: var(--surface); color: var(--red); }
    .nav__list > li > a[aria-current="page"] { color: var(--red); }
    .nav__list > li > a[aria-current="page"]::after { left: 0; right: auto; top: 0; bottom: 0; width: 4px; height: auto; box-shadow: none; }
    .nav__toggle { width: 54px; padding: 0; color: var(--ink-2); border-left: 1px solid #EDF1F6; }
    .nav__sub, .nav__sub--links, .nav__sub--tb { position: static; width: 100%; box-shadow: none; border: 0; border-top: 1px solid #EDF1F6; border-radius: 0; background: var(--surface); padding: 10px 20px 14px; }
    .nav__cats { grid-template-columns: 1fr; }
    .nav__phu { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; padding: 12px 20px 16px; background: var(--surface); }
    .nav__phu a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
    .topbar__nav a:not(:last-child) { display: none; }
    .footer__logo { display: block; width: fit-content; margin-inline: auto; color-scheme: only light; }

    .hero { padding: 36px 0 40px; }
    .hero::before { width: 100%; opacity: .3; }
    .hero__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
    .hero__in > * { min-width: 0; }
    .hero__title { font-size: 2.4rem; }
    .hero__art { max-width: 520px; margin: 0 auto; width: 100%; }
    .hero--nen { padding: 48px 0 52px; }
    .hero--carousel { padding: 36px 0 40px; }
    .hero--carousel:not(.hero--no-art) .hero__layout { grid-template-columns: minmax(0, 1fr); }
    .hero__layout { grid-template-areas: "copy" "lookup" "art"; row-gap: 0; }
    .hero__layout .hero__art { margin-top: 22px; }
    .hero--no-art .hero__layout { grid-template-columns: minmax(0, 1fr); }
    .hero__nen::after { background: linear-gradient(180deg, rgba(6, 11, 22, .8), rgba(6, 11, 22, .93)); }
    .hero--carousel .hero__nen::after { background: linear-gradient(180deg, rgba(6, 11, 22, .91) 0%, rgba(6, 11, 22, .72) 63%, rgba(6, 11, 22, .45)); }
    .hero--carousel .hero__nen--xanh::after { background: linear-gradient(180deg, rgba(7, 27, 50, .97), rgba(11, 49, 82, .92) 56%, rgba(39, 139, 205, .64) 78%, rgba(99, 194, 251, .82)); }
    .sw-hero, .sw-intro, .contact-band, .form-page, .pj-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .sw-hero > *, .sw-intro > *, .contact-band > *, .form-page > *, .pj-detail > * { min-width: 0; }
    .scada__tabs { overflow-x: auto; }
    .scada__tabs button { white-space: nowrap; font-size: .9rem; padding: 8px 10px; }
    .sw-hero { padding: 20px; }
    .form-page__side, .pj-detail__side { position: static; }
    .doc-cards { grid-template-columns: 1fr 1fr; }
    .scada__body { grid-template-columns: 1fr; }
    .scada__may { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #22385C; scroll-snap-type: x mandatory; }
    .scada__o { flex: 0 0 180px; scroll-snap-align: start; }
    .scada__kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chain__anh { margin: -20px -18px 14px; }
    .hero__cats { display: none; }
    .slide { grid-template-columns: 1fr; padding: 28px 24px 12px; }
    .slide__art { order: -1; }
    .slide__art img, .diagram { max-width: 420px; }
    .slide { min-height: 0; }
    .slide__photo { max-height: 260px; }
    .slide--nen { background: linear-gradient(180deg, rgba(6, 11, 22, .55) 0%, rgba(6, 11, 22, .92) 55%), var(--nen) center / cover no-repeat; padding-top: 140px; }
    .slide__title { font-size: 2.2rem; }
    .slider__nav { padding: 0 24px 20px; }

    .grid--products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-band__in, .quote-block__in, .brands__in, .pdp, .prose-grid, .article, .contact { grid-template-columns: 1fr; gap: 28px; }
    .about-band__art { max-width: 480px; }
    .shop { grid-template-columns: 1fr; }
    .shop__side { order: 2; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article__side { position: static; }
    .viewer__frame { height: 75vh; }
}

@media (max-width: 640px) {
    body { font-size: 15.5px; }
    .topbar { display: none; }
    .logo img { height: 50px; }
    .pdp__img { padding: 20px; }
    .header__quote { display: none; }
    .h2 { font-size: 1.6rem; }
    .pagehead__title { font-size: 1.95rem; }
    .slide__title { font-size: 1.8rem; }
    .slide { padding: 22px 18px 10px; }
    .slider__nav { padding: 0 18px 16px; }
    .slide__cta .btn { flex: 1; }
    .block { padding: 40px 0; }
    .block__more { margin-left: 0; }
    .block__head .chips { order: 3; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; }
    .chip { white-space: nowrap; }
    .tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .tile { padding: 8px 4px; font-size: .74rem; }
    .tile img { width: 54px; height: 40px; }
    .grid--products, .grid--shop { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .grid--products.is-all .product:nth-child(n+5) { display: none; }
    .product__img { padding: 8px 10px 4px; }
    .product__body { padding: 10px 10px 2px; }
    .product__name { font-size: .94rem; }
    .product__desc { display: none; }
    .product__foot { flex-direction: column; align-items: stretch; padding: 8px 10px 10px; }
    .product__foot .btn { width: 100%; }
    .grid--3, .grid--4, .chain, .steps { grid-template-columns: 1fr; }
    .hero { padding: 26px 0 32px; }
    .hero__title { font-size: 1.95rem; }
    .hero__lead { font-size: 1rem; margin-bottom: 20px; }
    .hero__cta { margin-bottom: 20px; }
    .hero__cta .btn { flex: 1 1 100%; }
    .hero--carousel .hero__cta .btn { flex: 1 1 auto; padding-inline: 14px; }
    .lookup { padding: 12px; }
    .lookup__row .btn { padding: 0 14px; }
    .hero__art { max-width: 100%; }
    .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
    .cat__name { padding: 6px 8px; font-size: .8rem; }
    .doc-cards li:nth-child(n+5) { display: none; }
    .doc-cards, .choice { grid-template-columns: 1fr; }
    .sw-hero__name { font-size: 1.6rem; }
    .quote__grid--sp { grid-template-columns: 1fr; }
    .quote__checks { grid-template-columns: 1fr; }
    .shop__tra .btn { padding: 0 12px; }
    .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .le-overlay--hoa-mai img:nth-child(even), .le-overlay--phao-hoa img:nth-child(3) { display: none; }
    .le-overlay--co-viet-nam img { right: 5px; top: 22vh; }
    .video-ds { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .pagehead--anh { padding: 30px 0 34px; }
    .scada__bar { padding: 10px 12px; gap: 6px 10px; }
    .scada__nm { display: none; }
    .scada__main { padding: 14px 12px 16px; }
    .scada__k-so { font-size: 1.3rem; }
    .scada__btn { width: 100%; }
    .spec { font-size: .88rem; }
    .spec th, .spec td { padding: 8px 10px; }
    .chain { gap: 22px; }
    .chain__node::after { display: none; }
    .chain__node:not(:last-child)::before { content: ""; position: absolute; left: 50%; bottom: -22px; width: 3px; height: 21px; background: var(--navy); }
    .quote { padding: 18px; }
    .quote__grid { grid-template-columns: 1fr; }
    .quote__actions .btn { width: 100%; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand, .footer__contact { grid-column: span 2; }
    .footer { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
    .floatbar { right: max(10px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); }
    .floatbar__btn--zalo { min-height: 44px; padding: 8px 12px; gap: 6px; }
    .floatbar__btn--call { bottom: calc(12px + env(safe-area-inset-bottom)); gap: 8px; }
    .floatbar__call-icon { width: 44px; height: 44px; }
    .floatbar__call-label { max-width: min(180px, calc(100vw - 164px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
    .floatbar__call-label strong { font-size: .9375rem; }
    .totop { bottom: calc(68px + env(safe-area-inset-bottom)); }
    .cta-band { padding: 24px 20px; }
    .cta-band .btn { width: 100%; }
    .docs__item { flex-wrap: wrap; }
    .docs__link { flex-basis: 100%; }
    .docs__item .btn { flex: 1; }
    .viewer__bar .btn { flex: 1; }
    .viewer__spacer { display: none; }
    .viewer__frame { height: 72vh; min-height: 420px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
    .topbar, .nav, .floatbar, .totop, .search, .menu-btn, .mobile-langs, .header__quote, .slider__nav, .pdp__img::before { display: none !important; }
    .hero, .pagehead, .about-band, .footer { background: #fff !important; color: #000 !important; }
}
/* Hình minh họa phần mềm trên nền tối */
.sw-hero__img .khung--hinh, .sw__img .khung--hinh, .sw-intro__img .khung--hinh { background: var(--nen-khung-toi) center / cover no-repeat var(--navy); }
.sw-hero__img .khung--hinh > img, .sw__img .khung--hinh > img, .sw-intro__img .khung--hinh > img { padding: 4%; }

/* =====================================================================
   ĐA NGÔN NGỮ: nút chọn ngôn ngữ, chữ Trung / Hàn
   ===================================================================== */
.langs { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.topbar .langs { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .16); }
.topbar .langs a, .langs a { margin-left: 0; padding: 1px 7px; border-radius: 4px; font-size: .8rem; font-weight: 600; line-height: 1.6; text-decoration: none; white-space: nowrap; }
.topbar .langs a[aria-current="true"] { background: rgba(255, 255, 255, .13); color: #fff; }
.langs__ic { width: 15px; height: 15px; margin-right: 3px; flex: none; }
.mobile-langs { display: none; }
@media (max-width: 991px) {
    .topbar .langs { display: none; }
    .mobile-langs + .menu-btn { margin-left: 0; }
    .mobile-langs { display: block; position: relative; order: 3; margin-inline-start: auto; flex: none; }
    .mobile-langs summary {
        display: flex; align-items: center; justify-content: center; gap: 6px;
        min-height: 46px; padding: 0 10px; border: 1.5px solid var(--line-2); border-radius: 6px;
        background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; cursor: pointer;
    }
    .mobile-langs summary::-webkit-details-marker { display: none; }
    .mobile-langs[open] summary { border-color: var(--navy); }
    .langs--mobile {
        position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + 8px);
        display: flex; flex-direction: column; align-items: stretch; gap: 2px;
        min-width: 136px; padding: 5px; border: 1px solid var(--line); border-radius: 8px;
        background: #fff; box-shadow: 0 10px 26px rgba(10, 20, 40, .2);
    }
    .mobile-langs:not([open]) .langs--mobile { display: none; }
    .langs--mobile a[data-nn] { min-height: 44px; padding: 6px 10px; gap: 9px; color: var(--ink); font-size: .9rem; }
    .langs--mobile a:hover { background: var(--surface); }
    .langs--mobile a[aria-current="true"] { background: var(--navy); color: #fff; }
}

/* Gợi ý ngôn ngữ theo trình duyệt (chỉ hiện ở trang tiếng Việt khi máy khách dùng ngôn ngữ khác) */
.goi-y-nn { background: var(--navy); color: #fff; font-size: .92rem; }
.goi-y-nn__in { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 9px 0; }
.goi-y-nn a.btn { padding: 6px 14px; }
.goi-y-nn__dong { margin-left: auto; background: none; border: 0; color: var(--on-dark-2); font: inherit; cursor: pointer; padding: 4px 8px; }
.goi-y-nn__dong:hover { color: #fff; }

/* Chữ Trung, chữ Hàn: dùng phông hệ thống có đủ chữ, bỏ giãn chữ âm của tiêu đề */
:root:lang(zh) {
    --font: var(--font-latin), "Songti SC", SimSun, "Noto Serif CJK SC", "Noto Serif SC", serif;
}
:root:lang(ko) {
    --font: var(--font-latin), "AppleMyungjo", "Batang", "Noto Serif CJK KR", "Noto Serif KR", serif;
}
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(zh) .hero__title, :lang(ko) .hero__title, :lang(zh) .h2, :lang(ko) .h2 { letter-spacing: 0; }
:lang(zh) body, :lang(ko) body { line-height: 1.75; }
:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) body { line-break: strict; }
:lang(zh) .hero__title, :lang(ko) .hero__title { font-size: 2.7rem; line-height: 1.2; }
@media (max-width: 640px) {
    :lang(zh) .hero__title, :lang(ko) .hero__title { font-size: 2rem; }
}

/* Dòng trên cùng: giờ làm việc, menu phụ, ngôn ngữ không xuống dòng; địa chỉ tự rút gọn */
.topbar__in > span:first-child, .topbar__nav a { white-space: nowrap; }
.topbar__in > span:first-child, .topbar__nav, .topbar .langs { flex-shrink: 0; }
.topbar__addr { flex: 1 1 auto; }
@media (max-width: 1199px) { .topbar__addr { display: none; } }

/* Cờ trên nút chọn ngôn ngữ (vẽ bằng SVG, không cần file ảnh) */
.langs a[data-nn] { display: inline-flex; align-items: center; gap: 5px; }
.langs a[data-nn]::before { content: ""; flex: none; width: 18px; height: 12px; border-radius: 2px; background: center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0, 0, 0, .22); }
.langs a[data-nn="vi"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23DA251D%22/%3E%3Cpolygon fill=%22%23FFFF00%22 points=%2215.000,3.400 16.482,7.960 21.277,7.960 17.398,10.779 18.879,15.340 15.000,12.521 11.121,15.340 12.602,10.779 8.723,7.960 13.518,7.960%22/%3E%3C/svg%3E"); }
.langs a[data-nn="en"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 30%22%3E%3CclipPath id=%22t%22%3E%3Cpath d=%22M30,15h30v15zv15h-30zh-30v-15zv-15h30z%22/%3E%3C/clipPath%3E%3Crect width=%2260%22 height=%2230%22 fill=%22%23012169%22/%3E%3Cpath d=%22M0,0L60,30M60,0L0,30%22 stroke=%22%23fff%22 stroke-width=%226%22/%3E%3Cpath d=%22M0,0L60,30M60,0L0,30%22 clip-path=%22url(%23t)%22 stroke=%22%23C8102E%22 stroke-width=%224%22/%3E%3Cpath d=%22M30,0v30M0,15h60%22 stroke=%22%23fff%22 stroke-width=%2210%22/%3E%3Cpath d=%22M30,0v30M0,15h60%22 stroke=%22%23C8102E%22 stroke-width=%226%22/%3E%3C/svg%3E"); }
.langs a[data-nn="zh"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23EE1C25%22/%3E%3Cpolygon fill=%22%23FFFF00%22 points=%225.000,2.000 5.674,4.073 7.853,4.073 6.090,5.354 6.763,7.427 5.000,6.146 3.237,7.427 3.910,5.354 2.147,4.073 4.326,4.073%22/%3E%3Cpolygon fill=%22%23FFFF00%22 points=%229.143,2.514 9.619,1.966 9.246,1.343 9.914,1.628 10.391,1.080 10.328,1.803 10.996,2.088 10.288,2.251 10.224,2.975 9.851,2.352%22/%3E%3Cpolygon fill=%22%23FFFF00%22 points=%2211.010,4.141 11.662,3.821 11.560,3.102 12.065,3.624 12.718,3.304 12.378,3.946 12.884,4.467 12.168,4.343 11.829,4.985 11.726,4.266%22/%3E%3Cpolygon fill=%22%23FFFF00%22 points=%2211.038,6.725 11.765,6.699 11.964,6.001 12.213,6.683 12.939,6.657 12.367,7.105 12.616,7.787 12.014,7.382 11.442,7.830 11.641,7.131%22/%3E%3Cpolygon fill=%22%23FFFF00%22 points=%229.219,8.375 9.899,8.632 10.353,8.064 10.319,8.790 10.999,9.046 10.298,9.239 10.265,9.964 9.865,9.357 9.165,9.550 9.618,8.982%22/%3E%3C/svg%3E"); }
.langs a[data-nn="ko"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-36 -24 72 48%22%3E%3Crect x=%22-36%22 y=%22-24%22 width=%2272%22 height=%2248%22 fill=%22%23fff%22/%3E%3Cg transform=%22rotate(-56.31)%22%3E%3Cpath d=%22M-6,-25H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,-22H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,-19H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,19H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,22H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,25H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M0,17.4V20.6%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Cpath d=%22M0,20.4V23.6%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Cpath d=%22M0,23.4V26.6%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3C/g%3E%3Cg transform=%22rotate(-123.69)%22%3E%3Cpath d=%22M-6,-25H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,-22H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,-19H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,19H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,22H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M-6,25H6%22 stroke=%22%23000%22 stroke-width=%222%22/%3E%3Cpath d=%22M0,-23.6V-20.4%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Cpath d=%22M0,17.4V20.6%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3Cpath d=%22M0,23.4V26.6%22 stroke=%22%23fff%22 stroke-width=%221%22/%3E%3C/g%3E%3Cg transform=%22rotate(-56.31)%22%3E%3Ccircle r=%2212%22 fill=%22%23CD2E3A%22/%3E%3Cpath fill=%22%230047A0%22 d=%22M0-12A6,6 0 0 0 0,0A6,6 0 0 1 0,12A12,12 0 0 1 0-12Z%22/%3E%3C/g%3E%3C/svg%3E"); }
.langs__ic { display: none; }
.topbar .langs { gap: 4px; }
.langs--mobile a[data-nn]::before { width: 21px; height: 14px; }
@media (max-width: 991px) {
    .topbar__in { gap: 16px; }
}
@media (max-width: 719px) {
    .topbar .langs a[data-nn] { font-size: 0; gap: 0; padding: 4px 5px; }
    .topbar .langs a[data-nn]::before { width: 20px; height: 13px; }
}

/* Menu chính 9 mục: thu khoảng cách trên màn hình 992–1180px để không xuống 2 dòng */
@media (max-width: 1180px) {
    .nav__list > li > a { padding-left: 11px; padding-right: 11px; }
    .nav__item--sub > a { padding-right: 2px; }
    .nav__list > li > a[aria-current="page"]::after { left: 11px; right: 11px; }
    .nav__toggle { width: 24px; padding: 0 8px 0 0; }
}

/* Japanese language typography and flag */
:root:lang(ja) {
    --font: var(--font-latin), "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", serif;
}
:lang(ja) body { line-height: 1.8; line-break: strict; overflow-wrap: anywhere; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .hero__title, :lang(ja) .h2 { letter-spacing: 0; }
:lang(ja) .hero__title { font-size: 2.7rem; line-height: 1.35; }
.langs a[data-nn="ja"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 30 20%22%3E%3Crect width=%2230%22 height=%2220%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2215%22 cy=%2210%22 r=%226%22 fill=%22%23bc002d%22/%3E%3C/svg%3E"); }
@media (max-width: 640px) { :lang(ja) .hero__title { font-size: 2rem; } }
