/* Eletech International — สไตล์ชีตร่วมของทุกหน้า
   แก้ไขสีหลักได้ที่บล็อกตัวแปรสี (root) ด้านล่างที่เดียว */

/* ---------- ฟอนต์ (เก็บไว้ในเว็บเอง ไม่เรียกจากเว็บภายนอก) ----------
   Bai Jamjuree และ IBM Plex Sans Thai Looped ใช้สัญญาอนุญาต SIL Open Font License */
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bai-jamjuree-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bai-jamjuree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bai-jamjuree-thai-600-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/bai-jamjuree-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bai-jamjuree-thai-700-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Bai Jamjuree"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bai-jamjuree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-thai-400-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-thai-600-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai Looped"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-looped-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* แก้ไข: สีหลักของเว็บ เปลี่ยนได้ที่นี่ที่เดียว (ธีม: แดงเลือดหมู เทา ขาว) */
  --brand: #BA0F1F;      /* แดงเลือดหมู: หัวข้อ ปุ่ม เส้นเน้น */
  --brand-deep: #930B18; /* แดงเข้มขึ้น: ตอนชี้ปุ่ม */
  --hl: #F0D5D8;         /* แดงอ่อน: แถบเน้นวันที่และราคา */
  --accent: #B4B8BC;     /* เทากลาง: เส้นตกแต่ง */
  --paper: #FFFFFF;      /* ขาว: พื้นหลัง */
  --tint: #F1F2F3;       /* เทาอ่อน: พื้นหลังสลับส่วน */
  --ink: #26282B;        /* เทาเข้ม: ตัวอักษร */
  --muted: #5E6367;      /* เทา: ตัวอักษรรอง */
  --line: #D0D3D6;       /* เทา: เส้นขอบ */
  --footer: #2B2D30;     /* เทาเข้ม: ส่วนท้าย */
  --logo-red: var(--brand);  /* สีแดงของโลโก้ (ใส่ #E8141C ถ้าต้องการแดงสดแบบโลโก้เดิม) */
  --logo-gray: #6B7075;      /* สีเทาของโลโก้ (แทนสีน้ำเงินเดิม) */
  --error: #A8321E;

  --display: "Bai Jamjuree", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  --body: "IBM Plex Sans Thai Looped", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  --wrap: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.board :focus-visible, footer :focus-visible { outline-color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- ส่วนหัว ---------- */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding-top: .9rem; padding-bottom: .9rem; }
.logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.logo svg { height: 3.4rem; width: auto; display: block; }
.lg-r { fill: var(--logo-red); }
.lg-g { fill: var(--logo-gray); }
.lg-rs { stroke: var(--logo-red); }
.lg-gs { stroke: var(--logo-gray); }
.logo span { font-family: var(--display); font-weight: 700; font-size: 1.45rem; letter-spacing: .06em; color: var(--brand); border-bottom: 4px solid var(--accent); line-height: 1.2; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.25rem; order: 3; width: 100%; }
.top-btn { order: 2; padding: .6rem 1rem; }
.nav a { text-decoration: none; font-size: 1rem; }
.nav a:hover { text-decoration: underline; text-underline-offset: .3em; }

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .8rem 1.3rem;
  border-radius: .3rem;
  border: 2px solid var(--brand);
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); text-decoration: none; }
.btn-light { background: transparent; color: var(--brand); }
.btn-light:hover { background: var(--tint); border-color: var(--brand); }

/* ---------- ส่วนเปิดหน้า ---------- */
.hero { padding: 2.5rem 0 3rem; }
.hero-grid { display: grid; gap: 2.25rem; }
.hero h1 { font-size: clamp(1.9rem, 5.6vw, 3rem); font-weight: 700; color: var(--brand); letter-spacing: -.01em; }
.hero .lead { margin-top: 1.1rem; max-width: 34rem; color: var(--muted); font-size: 1.125rem; }
.hero .actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* แผนผังเส้นเดียว (single-line diagram) แสดงตำแหน่งของสินค้าในระบบไฟฟ้า */
.sld { background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: 1.3rem 1.25rem 1.2rem; }
.sld-title { font-family: var(--display); font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.sld li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: start; min-height: 4.7rem; }
.sld li::before { content: ""; position: absolute; left: 26.75px; top: 56px; bottom: 0; width: 2.5px; background: var(--ink); }
.sld li:last-child { min-height: 0; }
.sld li:last-child::before { display: none; }
.sld svg { width: 56px; height: 56px; display: block; color: var(--ink); }
.sld a { display: block; text-decoration: none; padding-top: .5rem; line-height: 1.45; }
.sld a strong { display: block; font-family: var(--display); font-weight: 700; font-size: 1.1rem; letter-spacing: .03em; color: var(--brand); }
.sld a span { color: var(--muted); font-size: .98rem; }
.sld a:hover strong { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- หัวข้อแต่ละส่วน ---------- */
.section { padding: 3rem 0; }
.section-tint { background: var(--tint); }
.section-title { font-size: clamp(1.6rem, 4.5vw, 2.1rem); font-weight: 700; color: var(--brand); }
.section-intro { margin-top: .6rem; max-width: 38rem; color: var(--muted); }
.sub-title { font-size: 1.3rem; font-weight: 700; color: var(--brand); margin-top: 3rem; }

/* ---------- เกี่ยวกับเรา ---------- */
.about-grid { display: grid; gap: 2rem; margin-top: 1.5rem; }
.about-grid .text { max-width: 38rem; }
.about-grid p + p { margin-top: 1rem; }
.photo {
  aspect-ratio: 3 / 2;
  border-radius: .5rem;
  background: #fff;
  border: 2px dashed #A9AEB2;
  display: grid; place-items: center;
  color: var(--muted); text-align: center; padding: 1rem;
  margin-bottom: 1.5rem;
}
.photo-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .5rem; display: block; margin-bottom: 1.5rem; }

.facts { display: grid; gap: .35rem; align-content: start; }
.facts div { display: grid; grid-template-columns: 6rem 1fr; gap: .75rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
.hl { background: linear-gradient(transparent 58%, var(--hl) 58%); padding: 0 .15em; }

/* ---------- สินค้า ---------- */
.makers { display: grid; gap: 2rem; margin-top: 2rem; }
.maker { border-top: 2px solid var(--brand); padding-top: 1.1rem; }
.maker-img { position: relative; aspect-ratio: 3 / 2; background: #fff; border: 1px solid var(--line); border-radius: .5rem; margin-bottom: 1rem; overflow: hidden; display: grid; place-items: center; text-align: center; color: var(--muted); font-family: var(--display); font-weight: 600; padding: 1rem; }
.maker-img.empty { border: 2px dashed #A9AEB2; font-family: var(--body); font-weight: 400; }
.maker-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .8rem; }
.maker h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: .03em; color: var(--brand); }
.maker .kind { font-weight: 600; margin-top: .15rem; }
.maker .desc { margin-top: .5rem; color: var(--muted); }
.maker .origin { margin-top: .6rem; font-size: .95rem; }
.after-makers { margin-top: 2.25rem; }

.refs { margin-top: 1rem; display: grid; gap: .9rem; }
.refs li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: center; }
.refs li.noimg { display: block; border-left: 4px solid var(--brand); padding-left: 1rem; }
.refs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .4rem; display: block; background: var(--tint); }
.refs strong { display: block; font-family: var(--display); font-weight: 600; }
.refs span { color: var(--muted); }

/* ---------- คอร์สอบรม ---------- */
.board {
  margin-top: 2rem;
  background: var(--brand);
  color: #fff;
  border-radius: .5rem;
  border-top: 6px solid var(--accent);
  padding: 1.3rem 1.25rem .6rem;
}
.board h3 { font-size: 1.15rem; font-weight: 600; padding-bottom: .8rem; border-bottom: 1px solid rgba(255,255,255,.3); }
.board li { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: center; padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.board li:last-child { border-bottom: 0; }
.board .when { grid-column: 1 / -1; font-family: var(--display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.board .what { font-size: 1rem; line-height: 1.5; }
.board .seat { display: block; font-size: .9rem; color: rgba(255,255,255,.75); }
.board a.go { font-family: var(--display); font-weight: 600; color: #fff; text-underline-offset: .3em; white-space: nowrap; padding: .4rem 0; }
.board a.go:hover { text-decoration-thickness: 2.5px; }

.course { border-top: 2px solid var(--brand); padding: 1.75rem 0 2rem; display: grid; gap: 1.25rem; }
.course:first-of-type { margin-top: 2.5rem; }
.course h3 { font-size: 1.4rem; font-weight: 700; }
.course .sum { margin-top: .5rem; max-width: 36rem; }
details { margin-top: 1rem; }
summary { cursor: pointer; font-family: var(--display); font-weight: 600; color: var(--brand); padding: .35rem 0; width: fit-content; }
summary:hover { text-decoration: underline; text-underline-offset: .3em; }
.more { padding: .75rem 0 0; max-width: 36rem; }
.more h4 { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.more h4:first-child { margin-top: 0; }
.more ul { list-style: disc; padding-left: 1.3rem; }
.course .btn { margin-top: 1rem; }

/* ---------- ขั้นตอนการจอง ---------- */
.steps { margin-top: 2rem; display: grid; gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 3.4rem; position: relative; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.1rem;
  display: grid; place-items: center;
}
.steps h3 { font-size: 1.15rem; font-weight: 600; }
.steps p { color: var(--muted); }

/* ---------- ฟอร์มจอง ---------- */
.book-grid { display: grid; gap: 2rem; margin-top: 2rem; }
form { display: grid; gap: 1.1rem; }
.row { display: grid; gap: 1.1rem; }
label { display: block; font-weight: 500; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #A9AEB2;
  border-radius: .3rem;
  padding: .7rem .8rem;
  min-height: 3rem;
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--hl); outline-offset: 1px; border-color: var(--brand); }
.consent { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; align-items: start; font-weight: 400; }
.consent input { width: 1.3rem; height: 1.3rem; margin-top: .35rem; accent-color: var(--brand); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { padding: .9rem 1rem; border-radius: .3rem; border-left: 5px solid var(--brand); background: #fff; }
.status[hidden] { display: none; }
.status.bad { border-left-color: var(--error); background: #FBEDEA; }
form .btn { justify-self: start; font-size: 1.05rem; padding: .9rem 1.6rem; }
form .btn[disabled] { opacity: .6; cursor: progress; }

.aside { align-self: start; border-left: 4px solid var(--brand); padding-left: 1.1rem; }
.aside h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .4rem; }
.aside p + h3 { margin-top: 1.4rem; }
.aside a { text-underline-offset: .3em; }

/* ---------- ส่วนท้าย ---------- */
footer { background: var(--footer); color: rgba(255,255,255,.85); padding: 2.5rem 0; font-size: 1rem; }
footer .wrap { display: grid; gap: 1.5rem; }
footer h2 { font-size: 1.15rem; color: #fff; margin-bottom: .4rem; }
footer a { text-underline-offset: .3em; }
.fine { font-size: .9rem; color: rgba(255,255,255,.6); }

/* ---------- จอกว้าง ---------- */
@media (min-width: 48rem) {
  .nav { gap: 1.5rem; order: 2; width: auto; margin-left: auto; }
  .top-btn { order: 3; padding: .8rem 1.3rem; }
  .hero { padding: 4rem 0 4.5rem; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
  .sld { padding: 1.6rem 1.6rem 1.4rem; }
  .section { padding: 4.5rem 0; }
  .about-grid { grid-template-columns: 1.4fr 1fr; gap: 4rem; }
  .makers { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .refs { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2.5rem; }
  .board { padding: 1.5rem 1.6rem .8rem; }
  .board ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
  .board li { border-bottom: 0; }
  .course { grid-template-columns: 1.5fr 1fr; gap: 3rem; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .steps li { padding-left: 0; padding-top: 3.2rem; }
  .row { grid-template-columns: 1fr 1fr; }
  .book-grid { grid-template-columns: 1.6fr 1fr; gap: 4rem; }
  footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
  footer .fine { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =====================================================================
   ส่วนเพิ่มสำหรับเว็บหลายหน้าและสองภาษา (ต.ค. 2026)
   ===================================================================== */

/* ---------- สองภาษา: .th แสดงตอนภาษาไทย, .en แสดงตอนภาษาอังกฤษ ---------- */
html:not([data-lang="en"]) .en { display: none !important; }
html[data-lang="en"] .th { display: none !important; }

img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .6rem 1rem; z-index: 10; }

/* ---------- ส่วนหัว (หลายหน้า) ---------- */
.logo img { height: 3.4rem; width: auto; display: block; }
.nav a { padding: .25rem 0; border-bottom: 3px solid transparent; }
.nav a[aria-current="page"] { color: var(--brand); font-weight: 600; border-bottom-color: var(--brand); }
.nav a[aria-current="page"]:hover { text-decoration: none; }
.top-tools { order: 2; display: flex; align-items: center; gap: .6rem; }
.top-tools .top-btn { order: 0; }
.lang-btn {
  font-family: var(--display); font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .6rem .7rem; min-width: 3.1rem;
  background: #fff; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: .3rem; cursor: pointer;
}
.lang-btn:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- หัวหน้าเพจย่อย ---------- */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding: 2.25rem 0 2.5rem; }
.page-head .eyebrow { font-family: var(--display); font-weight: 600; color: var(--muted); letter-spacing: .04em; font-size: .95rem; }
.page-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; color: var(--brand); margin-top: .3rem; }
.page-head .lead { margin-top: .8rem; max-width: 42rem; color: var(--muted); font-size: 1.1rem; }

.more-link { display: inline-block; margin-top: 1.25rem; font-family: var(--display); font-weight: 600; color: var(--brand); text-underline-offset: .3em; }
.more-link:hover { text-decoration-thickness: 2.5px; }

/* ---------- 4 กลุ่มธุรกิจ ---------- */
.sectors { display: grid; gap: 1.25rem; margin-top: 2rem; }
.sector { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: .4rem; padding: 1.25rem 1.25rem 1.4rem; }
.sector .no { font-family: var(--display); font-weight: 700; color: var(--accent); font-size: 1.6rem; line-height: 1; }
.sector h3 { font-size: 1.25rem; font-weight: 700; color: var(--brand); margin-top: .5rem; }
.sector p { margin-top: .4rem; color: var(--muted); }

/* ---------- บล็อกรูปคู่ข้อความ ---------- */
.split { display: grid; gap: 1.75rem; align-items: center; margin-top: 1.75rem; }
.split img { width: 100%; border-radius: .5rem; display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.split .text p + p { margin-top: 1rem; }
.split .text .btn { margin-top: 1.4rem; }
.ticks { margin-top: 1rem; display: grid; gap: .45rem; }
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .72em; width: .6rem; height: .6rem; background: var(--brand); }

/* ---------- การ์ดผลงาน / แกลเลอรี ---------- */
.cards { display: grid; gap: 1.5rem; margin-top: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: .5rem; overflow: hidden; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--tint); }
.card .body { padding: 1rem 1.1rem 1.2rem; }
.card h3 { font-size: 1.1rem; font-weight: 600; }
.card p { color: var(--muted); margin-top: .25rem; font-size: 1rem; line-height: 1.6; }
.card .tag { display: inline-block; font-family: var(--display); font-weight: 600; font-size: .85rem; letter-spacing: .04em; color: var(--brand); margin-bottom: .2rem; }

/* ---------- ลูกค้า / พาร์ตเนอร์ ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: .3rem; padding: .45rem .8rem; line-height: 1.4; }
.chips strong { font-family: var(--display); font-weight: 700; color: var(--brand); margin-right: .35rem; }
.regions { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.region { border-left: 4px solid var(--brand); padding-left: 1rem; }
.region h3 { font-size: 1.15rem; font-weight: 600; }
.region .where { color: var(--muted); }
.region .who { margin-top: .4rem; font-family: var(--display); font-weight: 600; line-height: 1.6; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta { background: var(--brand); color: #fff; padding: 2.5rem 0; }
.cta .wrap { display: grid; gap: 1.25rem; align-items: center; }
.cta h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 700; }
.cta p { color: rgba(255,255,255,.85); margin-top: .3rem; }
.cta .btn { background: #fff; color: var(--brand); border-color: #fff; justify-self: start; }
.cta .btn:hover { background: var(--tint); border-color: var(--tint); }
.cta :focus-visible { outline-color: #fff; }

/* ---------- หน้าสินค้า ---------- */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.jump a { font-family: var(--display); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .4rem .75rem; border: 1.5px solid var(--line); border-radius: .3rem; background: #fff; }
.jump a:hover { border-color: var(--brand); color: var(--brand); }
.group-title { font-size: clamp(1.45rem, 4vw, 1.8rem); font-weight: 700; color: var(--ink); display: flex; align-items: baseline; gap: .7rem; }
.group-title .no { color: var(--accent); font-size: 1.1em; }
.group-intro { color: var(--muted); margin-top: .3rem; }
.prods { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.prod { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: .5rem; overflow: hidden; display: grid; scroll-margin-top: 1rem; }
.prod-img { background: #fff; aspect-ratio: 16 / 10; position: relative; border-bottom: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-family: var(--display); font-weight: 600; }
.prod-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .9rem; }
.prod-img.cover img { object-fit: cover; padding: 0; }
.prod .body { padding: 1.1rem 1.2rem 1.3rem; }
.prod h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: .03em; color: var(--brand); }
.prod .kind { font-weight: 600; margin-top: .1rem; }
.prod .ticks { margin-top: .7rem; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.prod .ticks li::before { top: .6em; width: .5rem; height: .5rem; }
.prod .meta { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; font-size: .95rem; }
.prod .origin { color: var(--ink); font-weight: 500; }
.prod .meta a { font-family: var(--display); font-weight: 600; color: var(--brand); text-underline-offset: .3em; }

/* ---------- หน้าผลงาน ---------- */
.ref-block { padding-top: 2.5rem; scroll-margin-top: 1rem; }
.ref-block:first-of-type { padding-top: 0; }
.ref-block > h3 { font-size: 1.35rem; font-weight: 700; color: var(--brand); border-top: 2px solid var(--brand); padding-top: 1rem; }
.ref-block > .by { color: var(--muted); margin-top: .15rem; }
.gallery { display: grid; gap: 1rem; margin-top: 1.25rem; grid-template-columns: repeat(2, 1fr); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .4rem; display: block; background: var(--tint); }
.gallery figcaption { margin-top: .4rem; font-size: .95rem; line-height: 1.5; }
.gallery figcaption strong { font-family: var(--display); font-weight: 600; display: block; }
.gallery figcaption span { color: var(--muted); }
.plain-list { margin-top: 1rem; display: grid; gap: .5rem; }
.plain-list li { border-left: 4px solid var(--brand); padding-left: .9rem; }
.plain-list strong { font-family: var(--display); font-weight: 600; }
.plain-list span { color: var(--muted); }
.table-wrap { overflow-x: auto; margin-top: 1.25rem; }
.table-wrap:focus-visible { outline-offset: 0; }
table.supply { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 1rem; line-height: 1.5; }
table.supply th, table.supply td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.supply thead th { font-family: var(--display); font-weight: 600; background: var(--tint); border-bottom: 2px solid var(--brand); white-space: nowrap; }
table.supply td.num, table.supply th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- หน้าศูนย์ฝึกอบรม ---------- */
.banner img { width: 100%; display: block; aspect-ratio: 3 / 1; object-fit: cover; }
.modules { margin-top: 1.5rem; display: grid; gap: .6rem; }
.modules li { display: grid; grid-template-columns: 5.6rem 1fr; gap: .9rem; align-items: baseline; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: .3rem; padding: .7rem .9rem; line-height: 1.5; }
.modules .mno { font-family: var(--display); font-weight: 700; color: var(--brand); white-space: nowrap; }
.modules strong { font-family: var(--display); font-weight: 600; }
.modules .volt { color: var(--muted); }
.board .empty { padding: 1rem 0 1.2rem; line-height: 1.6; }
.board .empty a { color: #fff; font-weight: 600; text-underline-offset: .3em; }
.board .price { display: block; font-size: .9rem; color: rgba(255,255,255,.75); }
.note { margin-top: 1rem; color: var(--muted); font-size: .98rem; }

/* ---------- หน้าติดต่อ ---------- */
.contact-grid { display: grid; gap: 2rem; margin-top: .5rem; }
.contact-list { display: grid; gap: 1.1rem; }
.contact-list div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .9rem; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 500; }
.contact-list dd small { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.contact-list a { text-underline-offset: .3em; }
.line-box { background: #fff; border: 1px solid var(--line); border-radius: .5rem; padding: 1.25rem; display: grid; grid-template-columns: 8.5rem 1fr; gap: 1.1rem; align-items: center; }
.line-box img { width: 100%; display: block; }
.line-box h3 { font-size: 1.15rem; font-weight: 600; }
.line-box p { color: var(--muted); font-size: 1rem; line-height: 1.55; margin-top: .25rem; }
.line-box .btn { margin-top: .8rem; padding: .6rem 1rem; }
.policy { max-width: 42rem; }
.policy h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.4rem; }
.policy p { margin-top: .5rem; color: var(--muted); }

footer .fnav { display: grid; gap: .25rem; }
footer .fnav a { text-decoration: none; }
footer .fnav a:hover { text-decoration: underline; }

@media (min-width: 40rem) {
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 48rem) {
  .top-tools { order: 3; }
  .page-head { padding: 3rem 0 3.25rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; margin-top: 2rem; }
  .split.flip > :first-child { order: 2; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .regions { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .cta { padding: 3rem 0; }
  .cta .wrap { grid-template-columns: 1fr auto; gap: 2.5rem; }
  .prods { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .gallery { gap: 1.25rem; }
  .modules { grid-template-columns: repeat(2, 1fr); gap: .7rem 1.5rem; }
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
  footer .wrap.f4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
@media (min-width: 64rem) {
  .sectors { grid-template-columns: repeat(4, 1fr); }
  .nav { gap: 1.6rem; }
}

/* ---------- เพิ่มเติม ---------- */
.page-head .actions { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .75rem; }
a.sector { display: block; text-decoration: none; }
a.sector:hover { border-color: var(--brand); }
a.sector:hover h3 { text-decoration: underline; text-underline-offset: .25em; }
.board { margin-top: 2.5rem; }
.prod { grid-template-rows: auto 1fr; }
.board li.empty { display: block; grid-column: 1 / -1; }
.line-box img { height: auto; }
.wrap.policy { max-width: var(--wrap); }
.policy h3, .policy p { max-width: 42rem; }
.banner img { max-height: 30rem; }
@media (max-width: 47.99rem) {
  .logo img { height: 2.9rem; }
  .logo span { font-size: 1.25rem; }
  .top-tools { gap: .45rem; }
  .top-tools .top-btn { padding: .6rem .8rem; }
  .lang-btn { min-width: 2.8rem; padding: .6rem .5rem; }
  .nav { gap: .2rem 1.1rem; }
}
.ref-block > .more-by { margin-top: 2rem; }
.ref-block > .by + .gallery { margin-top: .9rem; }
.ref-block:first-of-type { padding-top: 1.25rem; }

/* ---------- ความคมชัดของรูปบนจอคอมพิวเตอร์ ---------- */
.banner { background: var(--ink); }
.banner img { max-width: 120rem; margin: 0 auto; height: auto; }
.gallery img.pos-top { object-position: 50% 22%; }
