/* =========================================================================
   Mobile for U (Chiangrai) — Warm Signal design system
   โทน: แดง · เหลือง · เขียว บนพื้นขาว/ครีม — สว่าง สะอาดตา ไม่มืดทึบ
   --m-* = แดง (สีหลัก) · --p-* = เหลือง/ทอง (สีรอง) · --s-*, --l-* = เขียว (สีเสริม)
   หลักการรูปภาพ: ไม่ครอป ไม่มีพื้นหลังเบลอ — กรอบพอดีสัดส่วนรูปจริงเสมอ
   ========================================================================= */

:root {
  /* แดง — สีหลักของแบรนด์ */
  --m-50:  #fff6f4;  --m-100: #ffe9e5;  --m-200: #ffd2ca;  --m-300: #ffada0;
  --m-400: #fa7c6a;  --m-500: #ef5340;  --m-600: #d93a26;  --m-700: #c02a1e;
  --m-800: #9d2318;  --m-900: #7d1d15;

  /* เหลือง/ทอง — สีรอง */
  --p-50:  #fffaee;  --p-100: #fff4d6;  --p-200: #ffe9ac;  --p-300: #ffd873;
  --p-500: #f7c03c;  --p-600: #daa016;  --p-700: #a4740a;

  --y-100: #fff8e3;  --y-200: #fff0c2;  --y-400: #ffd35c;
  /* เขียว — สีเสริม (ความน่าเชื่อถือ / ผ่านการตรวจ) */
  --s-100: #e8f6ec;  --s-600: #1f8a4d;
  --l-100: #eef7e4;  --l-600: #5c8e26;

  --cream: #fffdfa;
  --paper: #ffffff;
  --ink:   #2c2320;
  --ink-2: #564742;
  --muted: #8a7a74;
  --line:  #f4eeea;
  --line-2:#e8ded8;

  --r-xs: 10px; --r-sm: 14px; --r: 20px; --r-lg: 26px; --r-xl: 34px;

  --sh-1: 0 1px 2px rgba(60,35,30,.04), 0 4px 14px rgba(60,35,30,.05);
  --sh-2: 0 2px 6px rgba(60,35,30,.04), 0 14px 36px rgba(60,35,30,.075);
  --sh-3: 0 4px 10px rgba(60,35,30,.04), 0 26px 60px rgba(60,35,30,.10);
  --sh-m: 0 10px 24px rgba(192,42,30,.22);
  --sh-p: 0 10px 24px rgba(164,116,10,.20);

  --wrap: 1180px;
  --font: 'Anuphan', 'IBM Plex Sans Thai', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 92px; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream);
  font-size: 16.5px; line-height: 1.72; letter-spacing: -.002em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; line-height: 1.28; margin: 0; letter-spacing: -.022em; }
h1 { font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
em { font-style: normal; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ic { flex: none; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--m-700); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--p-300); outline-offset: 3px; border-radius: 10px; }

/* รูปภาพ: กรอบเท่ารูปจริง ไม่ครอป */
.pic { width: 100%; height: auto; display: block; border-radius: inherit; background: var(--m-50); }

/* ---------------------------------------------------------------- ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: .95rem; line-height: 1.2;
  transition: .24s cubic-bezier(.2,.8,.3,1); border: 1.5px solid transparent; white-space: nowrap;
}
.btn.sm { padding: 9px 15px; font-size: .86rem; border-radius: 11px; }
.btn.lg { padding: 15px 26px; font-size: 1rem; border-radius: 16px; }
.btn-primary { background: var(--m-700); color: #fff; box-shadow: var(--sh-m); }
.btn-primary:hover { background: var(--m-800); transform: translateY(-2px); }
.btn-yellow { background: var(--p-200); color: var(--p-700); }
.btn-yellow:hover { background: var(--p-300); transform: translateY(-2px); }
.btn-peach { background: var(--p-700); color: #fff; box-shadow: var(--sh-p); }
.btn-peach:hover { background: #8a6108; transform: translateY(-2px); }
.btn-line { background: #06c755; color: #fff; box-shadow: 0 8px 20px rgba(6,199,85,.22); }
.btn-line:hover { background: #05b34c; transform: translateY(-2px); }
.btn-ghost { background: var(--paper); color: var(--m-800); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--m-300); background: var(--m-50); transform: translateY(-2px); }
.btn-outline-w { border-color: var(--m-300); color: var(--m-800); background: rgba(255,255,255,.7); }
.btn-outline-w:hover { background: #fff; border-color: var(--m-500); }
.btn:active { transform: translateY(0) scale(.985); }

/* ------------------------------------------------------------ แถบบนสุด */
.topbar { background: var(--m-800); color: #fff0ed; font-size: .82rem; }
.topbar-in { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.topbar-in p { margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tick { display: inline-flex; color: var(--y-400); }
.topbar-tel { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: #fff; }

/* --------------------------------------------------------------- หัวเว็บ */
.site-head { position: sticky; top: 0; z-index: 90; background: rgba(255,253,250,.88); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: .3s; }
.site-head.stuck { border-bottom-color: var(--line); box-shadow: var(--sh-1); background: rgba(255,253,250,.97); }
.head-in { display: flex; align-items: center; gap: 18px; min-height: 86px; }
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand img { width: 60px; height: 60px; border-radius: 17px; object-fit: cover; box-shadow: var(--sh-1); }
.brand-txt { display: flex; flex-direction: column; line-height: 1.24; }
.brand-txt strong { font-size: 1.42rem; font-weight: 800; color: var(--m-800); letter-spacing: -.01em; }
.brand-txt small { font-size: .86rem; color: var(--muted); }
.brand:hover img { transform: rotate(-4deg) scale(1.04); transition: .3s; }

.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav a { display: inline-flex; align-items: center; gap: 4px; padding: 9px 13px; border-radius: 11px; font-size: .91rem; font-weight: 500; color: var(--ink-2); transition: .2s; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { background: var(--m-100); color: var(--m-800); }
.nav .chev { transition: .25s; }
.has-sub { position: relative; }
.has-sub:hover .chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; width: 340px; padding: 10px;
  background: var(--paper); border-radius: var(--r); box-shadow: var(--sh-3); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .26s cubic-bezier(.2,.8,.3,1);
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; gap: 11px; align-items: flex-start; padding: 10px 12px; border-radius: 13px; }
.submenu a strong { display: block; font-size: .91rem; color: var(--ink); font-weight: 600; }
.submenu a small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.5; }
.submenu-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--m-100); color: var(--m-700); flex: none; transition: .25s; }
.submenu a:hover .submenu-ic { background: var(--m-600); color: #fff; }

.head-cta { display: flex; gap: 9px; flex: none; }
.burger { display: none; width: 44px; height: 44px; place-items: center; border-radius: 13px; background: var(--m-100); color: var(--m-800); }
.burger .b-close { display: none; }
.burger[aria-expanded='true'] .b-open { display: none; }
.burger[aria-expanded='true'] .b-close { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: var(--paper); }
.mnav { padding: 8px 20px 20px; }
.mnav a { display: flex; align-items: center; gap: 10px; padding: 13px 6px; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink-2); }
.mnav .ic { color: var(--m-600); }
.mnav li:last-child a { border: 0; }

/* -------------------------------------------------------------- แบนเนอร์
   รูปเต็มความกว้าง ไม่ครอป (แสดงตามสัดส่วนจริง 16:9) ข้อความวางทับบนรูป   */
.hero { position: relative; }
.slides { position: relative; }
.slide { display: none; }
.slide.on { display: block; }

.bn { position: relative; overflow: hidden; }
.bn-img { width: 100%; height: auto; display: block; }
.bn-veil { position: absolute; inset: 0; pointer-events: none; }
.bn.theme-light.pos-left  .bn-veil { background: linear-gradient(90deg, rgba(46,18,14,.62) 0%, rgba(46,18,14,.34) 34%, transparent 58%); }
.bn.theme-light.pos-right .bn-veil { background: linear-gradient(270deg, rgba(46,18,14,.62) 0%, rgba(46,18,14,.34) 34%, transparent 58%); }
.bn.theme-light.pos-center .bn-veil { background: rgba(46,18,14,.44); }
.bn.theme-dark.pos-left   .bn-veil { background: linear-gradient(90deg, rgba(255,253,249,.8) 0%, rgba(255,253,249,.45) 36%, transparent 60%); }
.bn.theme-dark.pos-right  .bn-veil { background: linear-gradient(270deg, rgba(255,253,249,.82) 0%, rgba(255,253,249,.48) 36%, transparent 60%); }
.bn.theme-dark.pos-center .bn-veil { background: rgba(255,253,249,.6); }

.bn-in { position: absolute; inset: 0; display: grid; align-items: center; }
.bn-copy {
  width: min(100% - 40px, var(--wrap)); margin-inline: auto;
  max-width: min(100% - 40px, var(--wrap));
}
.bn-copy > * { max-width: 34rem; }
.bn.pos-right .bn-copy { text-align: right; }
.bn.pos-right .bn-copy > * { margin-left: auto; text-align: right; }
.bn.pos-right .slide-cta, .bn.pos-right .hero-pills { justify-content: flex-end; }
.bn.pos-center .bn-copy { text-align: center; }
.bn.pos-center .bn-copy > * { margin-inline: auto; text-align: center; max-width: 40rem; }
.bn.pos-center .slide-cta, .bn.pos-center .hero-pills { justify-content: center; }

.slide.on .bn-copy > * { animation: riseIn .7s cubic-bezier(.2,.85,.3,1) both; }
.slide.on .bn-copy > *:nth-child(2) { animation-delay: .07s; }
.slide.on .bn-copy > *:nth-child(3) { animation-delay: .14s; }
.slide.on .bn-copy > *:nth-child(4) { animation-delay: .21s; }
.slide.on .bn-copy > *:nth-child(5) { animation-delay: .28s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.bn-copy h1, .bn-copy .bn-h {
  font-size: clamp(1.75rem, 3.7vw, 3.35rem); margin-bottom: .46em; font-weight: 700;
  line-height: 1.24; letter-spacing: -.024em;
}
.bn-sub { font-size: clamp(.94rem, 1.25vw, 1.16rem); margin-bottom: 1.35em; }
.slide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 1.1em; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-pills li { display: inline-flex; align-items: center; gap: 7px; font-size: clamp(.82rem, 1.02vw, .95rem); font-weight: 500; }

/* ธีมข้อความสว่าง (บนรูปพื้นเข้ม) */
.bn.theme-light .bn-copy { color: #fff; }
.bn.theme-light h1, .bn.theme-light .bn-h { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.28); }
.bn.theme-light h1 em, .bn.theme-light .bn-h em { color: var(--y-400); }
.bn.theme-light .bn-sub { color: rgba(255,255,255,.9); }
.bn.theme-light .hero-pills li { color: rgba(255,255,255,.92); }
.bn.theme-light .hero-pills .ic { color: var(--y-400); }
.bn.theme-light .kicker.light { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.26); backdrop-filter: blur(8px); box-shadow: none; }
.bn.theme-light .kicker.light .ic { color: var(--y-400); }

/* ธีมข้อความเข้ม (บนรูปพื้นสว่าง) */
.bn.theme-dark .bn-copy { color: var(--ink); }
.bn.theme-dark h1, .bn.theme-dark .bn-h { color: var(--m-900); }
.bn.theme-dark h1 em, .bn.theme-dark .bn-h em { color: var(--m-700); }
.bn.theme-dark .bn-sub { color: var(--ink-2); }
.bn.theme-dark .hero-pills li { color: var(--ink-2); }
.bn.theme-dark .hero-pills .ic { color: var(--m-600); }
.bn.theme-dark .kicker.light { background: rgba(255,255,255,.9); color: var(--m-800); border-color: var(--line); }

.kicker { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--m-100); color: var(--m-800); font-size: .81rem; font-weight: 600; margin-bottom: 14px; border: 1px solid transparent; }
.kicker.light { background: var(--paper); box-shadow: var(--sh-1); color: var(--m-700); }
.kicker .ic { color: var(--p-600); }

.btn-glass { background: rgba(255,255,255,.92); color: var(--m-800); box-shadow: var(--sh-2); }
.btn-glass:hover { background: #fff; transform: translateY(-2px); }
.bn.theme-dark .btn-glass { background: var(--paper); border-color: var(--line-2); }

/* จอใหญ่: แบนเนอร์เป็นแบบสองคอลัมน์ — ตัวหนังสือครึ่งหนึ่ง รูปแนวตั้งอีกครึ่งหนึ่ง
   (ไม่ครอปรูป และตัวหนังสืออยู่บนพื้นสว่าง อ่านง่าย เด่นพอ ๆ กับรูป) */
@media (min-width: 1011px) {
  .bn {
    display: grid; grid-template-columns: 1fr 1fr; align-items: center;
    gap: clamp(24px, 3vw, 56px); min-height: clamp(430px, 58vh, 580px); padding-bottom: 54px;
    background: linear-gradient(105deg, var(--m-50) 0%, var(--p-50) 52%, var(--cream) 100%);
  }
  .bn-img {
    grid-area: 1 / 2; height: auto; width: auto; max-width: 100%;
    max-height: clamp(400px, 54vh, 550px); justify-self: center; align-self: end;
  }
  .bn.pos-right .bn-img { grid-area: 1 / 1; }
  .bn-veil { display: none; }
  .bn-in { position: static; grid-area: 1 / 1; padding: clamp(28px, 3vw, 46px) 0; }
  .bn.pos-right .bn-in { grid-area: 1 / 2; }
  .bn-copy {
    width: auto; max-width: none;
    padding-inline: clamp(20px, calc((100vw - var(--wrap)) / 2 + 20px), 200px) 0;
  }
  .bn.pos-right .bn-copy { padding-inline: 0 clamp(20px, calc((100vw - var(--wrap)) / 2 + 20px), 200px); }
  .bn-copy > * { max-width: 33rem; }
  /* พื้นสว่างแล้ว ตัวหนังสือต้องเป็นสีเข้มทุกสไลด์ */
  .bn.theme-light .bn-copy, .bn.theme-dark .bn-copy { color: var(--ink-2); }
  .bn.theme-light h1, .bn.theme-light .bn-h,
  .bn.theme-dark h1, .bn.theme-dark .bn-h { color: var(--m-900); text-shadow: none; }
  .bn.theme-light h1 em, .bn.theme-light .bn-h em,
  .bn.theme-dark h1 em, .bn.theme-dark .bn-h em { color: var(--m-600); }
  .bn.theme-light .bn-sub, .bn.theme-dark .bn-sub { color: var(--ink-2); }
  .bn.theme-light .hero-pills li, .bn.theme-dark .hero-pills li { color: var(--ink-2); }
  .bn.theme-light .hero-pills .ic, .bn.theme-dark .hero-pills .ic { color: var(--s-600); }
  .bn.theme-light .kicker.light, .bn.theme-dark .kicker.light {
    background: var(--paper); color: var(--m-700); border-color: var(--line); box-shadow: var(--sh-1); backdrop-filter: none;
  }
  .bn.theme-light .kicker.light .ic, .bn.theme-dark .kicker.light .ic { color: var(--p-600); }
  .bn.theme-light .btn-glass, .bn.theme-dark .btn-glass { background: var(--paper); border-color: var(--line-2); color: var(--m-800); box-shadow: var(--sh-1); }
  /* พื้นแบนเนอร์สว่างแล้ว ปุ่มเลื่อนสไลด์ต้องเปลี่ยนเป็นโทนสว่างตาม */
  .slide-nav { bottom: 12px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
  .s-arrow { background: var(--m-100); color: var(--m-800); }
  .s-arrow:hover { background: var(--m-600); color: #fff; }
  .dot { background: var(--m-200); }
  .dot.on { background: var(--m-600); }
}

.hero { position: relative; }
.slide-nav {
  position: absolute; z-index: 4; left: 50%; translate: -50% 0; bottom: 20px;
  display: flex; align-items: center; gap: 10px; padding: 6px 9px; border-radius: 999px;
  background: rgba(18,42,32,.42); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.s-arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; transition: .25s; }
.s-arrow:hover { background: #fff; color: var(--m-800); }
.dots { display: flex; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); transition: .3s; }
.dot.on { width: 24px; background: var(--y-400); }

/* --------------------------------------------------- แถบมาตรฐานงานซ่อม */
.trust { padding: 0 0 8px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--sh-2); border: 1px solid var(--line); overflow: hidden; }
.trust-item { display: flex; gap: 13px; align-items: flex-start; padding: 24px 22px; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item h3 { font-size: .96rem; margin-bottom: 3px; }
.trust-item p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }
.t-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; flex: none; background: var(--m-100); color: var(--m-700); transition: .3s; }
.trust-item:nth-child(2) .t-ic { background: var(--p-100); color: var(--p-700); }
.trust-item:nth-child(3) .t-ic { background: var(--y-100); color: #a4740a; }
.trust-item:nth-child(4) .t-ic { background: var(--s-100); color: var(--s-600); }

/* ------------------------------------------------------------------ ส่วน */
.sec { padding: clamp(46px, 5.4vw, 82px) 0; }
.sec.alt { background: var(--m-50); }
.sec-head { margin-bottom: 38px; }
.sec-head.center { text-align: center; max-width: 700px; margin-inline: auto; }
.sec-head h2 { font-size: clamp(1.8rem, 3.3vw, 2.65rem); letter-spacing: -.026em; }
.sec-head h2 em { color: var(--m-700); }
.sec-desc { color: var(--muted); margin: 13px 0 0; font-size: clamp(.96rem, 1.15vw, 1.08rem); }
.sec-action { margin-top: 22px; }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.85,.3,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- หมวดหมู่ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 16px; }
.cat-card { position: relative; overflow: hidden; padding: 24px 22px 20px; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .34s cubic-bezier(.2,.8,.3,1); }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); border-color: var(--m-200); }
.cat-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; margin-bottom: 15px; background: var(--m-100); color: var(--m-700); transition: .34s; }
.cat-card:nth-child(2) .cat-ic { background: var(--p-100); color: var(--p-700); }
.cat-card:nth-child(3) .cat-ic { background: var(--s-100); color: var(--s-600); }
.cat-card:nth-child(4) .cat-ic { background: var(--y-100); color: #a4740a; }
.cat-card:nth-child(5) .cat-ic { background: var(--l-100); color: var(--l-600); }
.cat-card:hover .cat-ic { transform: scale(1.06); }
.cat-card h3 { font-size: 1.04rem; margin-bottom: 7px; }
.cat-card p { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.cat-go { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--m-700); }
.cat-card:hover .cat-go .ic { transform: translateX(4px); transition: .25s; }
.cat-blob { display: none; }

/* --------------------------------------- รับซื้อ / รับเทิร์นมือสอง (trade) */
.trade-sec { background: linear-gradient(165deg, #fff9ef 0%, var(--cream) 60%, var(--m-50) 100%); border-block: 1px solid var(--line); }
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
.trade-copy h2 { font-size: clamp(1.72rem, 3.1vw, 2.5rem); letter-spacing: -.026em; margin-bottom: 14px; }
.trade-copy h2 em { color: var(--m-700); }
.trade-lead { color: var(--ink-2); font-size: clamp(.96rem, 1.15vw, 1.06rem); }
.trade-cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.trade-cta .btn { flex: 1 1 240px; justify-content: center; }
.trade-thanks { margin-top: 14px; font-size: .95rem; color: var(--muted); }
.trade-card { padding: clamp(20px, 2.4vw, 28px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.trade-h { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; font-size: .98rem; color: var(--m-700); }
.trade-list { counter-reset: trade; display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.trade-list li { counter-increment: trade; display: grid; grid-template-columns: 27px 1fr; align-items: start; gap: 11px; padding: 9px 11px; border-radius: 12px; background: var(--cream); }
.trade-list li::before { content: counter(trade); display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: var(--m-600); color: #fff; font-size: .8rem; font-weight: 700; }
.trade-list strong { display: block; font-size: .93rem; font-weight: 700; line-height: 1.4; }
.trade-list small { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.trade-copied { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .87rem; font-weight: 600; color: var(--l-600); }

.trade-sec.plain { background: none; border-block: 0; padding-top: clamp(8px, 1.4vw, 18px); }
.trade-sec.plain .trade-grid { align-items: start; }
.tech-list.wide-4 { grid-template-columns: repeat(4, 1fr); }
.step-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step-item { display: grid; gap: 11px; padding: 22px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--m-600); color: #fff; font-weight: 700; }
.step-item h3 { font-size: 1rem; margin-bottom: 5px; }
.step-item p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.6; }
.nav-hot { color: var(--m-700) !important; font-weight: 700; }

/* แถบชวนขาย/เทิร์นเครื่องเก่า (แทรกได้ทุกหน้า) */
.trade-strip-sec { padding: 0 0 clamp(30px, 4vw, 56px); }
.trade-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(16px, 2.4vw, 28px);
  padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.6vw, 32px); border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--m-50) 0%, #fff9ef 100%); border: 1px solid var(--m-200); box-shadow: var(--sh-1); }
.ts-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; background: var(--m-600); color: #fff; flex: none; }
.ts-txt h2 { font-size: clamp(1.06rem, 1.7vw, 1.34rem); margin-bottom: 5px; letter-spacing: -.02em; }
.ts-txt p { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.6; }
.ts-cta { display: flex; flex-wrap: wrap; gap: 9px; }

/* การ์ดรับซื้อ–เทิร์น ในตารางหมวดหมู่ */
.cat-card.trade-card-cta { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 20px 24px; background: linear-gradient(120deg, var(--m-600) 0%, var(--m-800) 100%); border-color: transparent; color: #fff; }
.cat-card.trade-card-cta .cat-ic { margin: 0; }
.cat-card.trade-card-cta .tc-txt { display: block; }
.cat-card.trade-card-cta h3 { margin-bottom: 4px; font-size: 1.1rem; }
.cat-card.trade-card-cta p { margin: 0; }
.cat-card.trade-card-cta .cat-go { white-space: nowrap; }
.cat-card.trade-card-cta .cat-ic { background: rgba(255,255,255,.18); color: #fff; }
.cat-card.trade-card-cta p { color: rgba(255,255,255,.86); }
.cat-card.trade-card-cta .cat-go { color: #fff; }
.cat-card.trade-card-cta:hover { border-color: transparent; }

/* ------------------------------------------------- มาตรฐานทีมช่าง (tech) */
.tech { background: linear-gradient(170deg, var(--m-50) 0%, var(--p-50) 55%, var(--cream) 100%); color: var(--ink-2); border-block: 1px solid var(--line); }
.tech-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
.tech h2 { color: var(--m-800); font-size: clamp(1.72rem, 3.1vw, 2.5rem); margin-bottom: 15px; letter-spacing: -.026em; }
.tech h2 em { color: var(--p-700); }
.tech > .wrap > .tech-grid > div > p { color: var(--ink-2); }
.tech .kicker { background: var(--paper); color: var(--m-700); box-shadow: var(--sh-1); }
.tech .kicker .ic { color: var(--p-600); }
.tech-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tech-item { padding: 18px 18px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .3s; }
.tech-item:hover { border-color: var(--m-200); box-shadow: var(--sh-2); transform: translateY(-3px); }
.tech-item .ic { color: var(--m-600); margin-bottom: 9px; }
.tech-item h3 { font-size: .96rem; color: var(--m-800); margin-bottom: 4px; }
.tech-item p { font-size: .82rem; color: var(--muted); margin: 0; line-height: 1.6; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.tech-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--paper); color: var(--ink-2); font-size: .8rem; font-weight: 500; border: 1px solid var(--line-2); }
.tech-badges .ic { color: var(--s-600); }

/* ---------------------------------------------------------------- สถิติ */
.stats { padding: 0 0 clamp(38px, 5vw, 70px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 32px 26px; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--m-100), var(--p-100)); border: 1px solid var(--line); }
.stat { text-align: center; }
.stat-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,.8); color: var(--m-700); margin-bottom: 10px; }
.stat strong { display: inline-block; font-size: clamp(1.7rem, 3.1vw, 2.4rem); line-height: 1; font-weight: 700; color: var(--m-800); }
.stat-u { font-size: .87rem; color: var(--m-700); margin-left: 5px; }
.stat p { margin: 8px 0 0; font-size: .83rem; color: var(--ink-2); }

/* ------------------------------------------------------------ การ์ดสินค้า */
.p-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 20px; align-items: start; }
.p-grid.mt { margin-top: 36px; }
.p-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .34s cubic-bezier(.2,.8,.3,1); }
.p-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.p-media { position: relative; display: block; overflow: hidden; background: var(--m-50); }
.p-media .pic { border-radius: 0; transition: .6s cubic-bezier(.2,.8,.3,1); }
.p-card:hover .p-media .pic { transform: scale(1.03); }
.p-badge { position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 9px; background: var(--p-600); color: #fff; font-size: .73rem; font-weight: 600; box-shadow: var(--sh-1); }
.p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.p-cat { font-size: .73rem; font-weight: 600; color: var(--m-600); margin-bottom: 5px; }
.p-body h3 { font-size: 1.03rem; margin-bottom: 7px; }
.p-body h3 a:hover { color: var(--m-700); }
.p-body > p { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.p-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.p-price { font-weight: 600; color: var(--m-700); font-size: .83rem; }
.p-go { display: inline-flex; align-items: center; gap: 5px; font-size: .83rem; font-weight: 600; color: var(--p-600); }
.p-card:hover .p-go .ic { transform: translateX(4px); transition: .25s; }

/* ---------------------------------------------------- ผลงาน (masonry) */
.work-sec { background: linear-gradient(180deg, var(--cream), var(--p-50)); }
.masonry { columns: 4; column-gap: 18px; }
.w-card { break-inside: avoid; margin: 0 0 18px; background: var(--paper); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .34s; }
.w-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.w-card .pic { border-radius: 0; }
/* การ์ดผลงานที่เป็นคลิป */
.w-vid { width: 100%; height: auto; display: block; background: #1b1210; }
.w-card.has-vid { position: relative; }
.w-card.has-vid figcaption strong::after {
  content: 'คลิป'; display: inline-block; margin-left: 7px; padding: 1px 8px; border-radius: 999px;
  background: var(--m-100); color: var(--m-700); font-size: .68rem; font-weight: 700; vertical-align: middle;
}
.w-card figcaption { padding: 13px 15px 15px; }
.w-card strong { display: block; font-size: .89rem; margin-bottom: 2px; }
.w-card span { font-size: .78rem; color: var(--muted); }

/* --------------------------------------------------------- เกี่ยวกับเรา */
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(26px, 4vw, 54px); align-items: center; }
.about-media { position: relative; max-width: 460px; justify-self: center; width: 100%; }
.about-media .rounded { border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.about-txt h2 { font-size: clamp(1.7rem, 3vw, 2.45rem); margin-bottom: 17px; letter-spacing: -.026em; }
.about-txt p { color: var(--muted); }
.tick-list { display: grid; gap: 10px; margin: 22px 0; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .91rem; }
.tick-list .ic { color: var(--m-600); margin-top: 3px; }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.video-card { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-3); background: #0e1a14;
  width: min(100%, calc(78vh * 9 / 16)); aspect-ratio: 9 / 16; margin-inline: auto; }
.video-card video { width: 100%; height: 100%; display: block; object-fit: cover; }
.v-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.38)); transition: .3s; }
.v-play:hover { background: rgba(0,0,0,.24); }
.v-play.hide { opacity: 0; pointer-events: none; }
.tour-wrap { max-width: 540px; }

/* -------------------------------------------------------- แผนที่ / สาขา */
.maps-label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 8px 15px; border-radius: 999px; background: var(--p-100); color: var(--p-700); font-size: .83rem; font-weight: 600; }
.maps-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.map-row { padding: 16px 18px 14px; }
.map-row.sep { border-top: 1px solid var(--line); }
.map-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.map-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--m-100); color: var(--m-800); font-weight: 700; font-size: .85rem; font-family: var(--mono); }
.map-t { flex: 1; min-width: 0; line-height: 1.35; }
.map-t strong { display: block; font-size: .94rem; }
.map-t small { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; color: var(--muted); }
.map-go { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 13px; border-radius: 10px; background: var(--m-100); color: var(--m-800); font-size: .79rem; font-weight: 600; transition: .22s; }
.map-go:hover { background: var(--m-600); color: #fff; }
.map-frame { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--m-50); line-height: 0; }
.gmap { width: 100%; border: 0; display: block; }
.map-addr { display: flex; gap: 7px; align-items: flex-start; margin: 11px 0 0; font-size: .79rem; color: var(--muted); line-height: 1.55; }
.map-addr .ic { color: var(--p-600); margin-top: 3px; flex: none; }

/* หมวด "หาร้านง่าย" บนหน้าแรก — วางไว้ใกล้บนสุดเพื่อให้หาที่ตั้งร้านเจอไว */
.locate-sec { background: linear-gradient(180deg, var(--m-50), var(--cream)); border-block: 1px solid var(--line); }
.locate-sec .b-card { box-shadow: var(--sh-2); }
.locate-sec .b-media { display: none; }
.locate-sec .b-body { padding-top: 20px; }
.b-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: start; }
.b-card { background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .34s; scroll-margin-top: 100px; }
.b-card:hover { box-shadow: var(--sh-3); }
.b-media { overflow: hidden; background: var(--m-50); }
.b-media .pic { border-radius: 0; }
.b-body { padding: 22px 24px 24px; }
.b-body h3 { display: flex; align-items: center; gap: 10px; font-size: 1.01rem; margin-bottom: 14px; }
.b-map { margin: 16px 0 18px; }
.b-meta { display: grid; gap: 10px; margin-bottom: 18px; }
.b-meta li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--ink-2); }
.b-meta .ic { color: var(--m-600); margin-top: 3px; flex: none; }
.b-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.map-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.map-card { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 18px; }
.map-frame.tall { min-height: 300px; }

/* ------------------------------------------------------------ โปรโมชั่น */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.promo-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-1); transition: .34s; }
.promo-card:hover { transform: translateY(-5px); box-shadow: var(--sh-3); }
.promo-media { position: relative; overflow: hidden; }
.promo-media .pic { border-radius: 0; transition: .6s; }
.promo-card:hover .promo-media .pic { transform: scale(1.03); }
.promo-badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 9px; background: var(--p-600); color: #fff; font-size: .74rem; font-weight: 600; }
.promo-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.promo-body h3 { font-size: 1.03rem; margin-bottom: 8px; }
.promo-body p { font-size: .86rem; color: var(--muted); }
.promo-date { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--p-700); margin-bottom: 12px; }
.promo-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------------------------------------------------------------- รีวิว */
.rev-sec { background: linear-gradient(180deg, var(--cream), var(--m-50)); overflow: hidden; }
.rev-rail { display: flex; gap: 18px; overflow-x: auto; padding: 6px calc((100vw - min(100% - 40px, var(--wrap))) / 2) 26px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rev-rail::-webkit-scrollbar { display: none; }
.r-card { position: relative; flex: none; width: 320px; padding: 24px 22px 20px; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-1); scroll-snap-align: center; transition: .3s; }
.r-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.r-quote { position: absolute; top: 16px; right: 18px; color: var(--p-100); }
.r-stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--y-400); }
.r-stars .fill { fill: var(--y-400); }
.r-stars .dim { color: var(--line-2); }
.r-card p { font-size: .89rem; color: var(--ink-2); min-height: 4.4em; }
.r-card footer { display: flex; align-items: center; gap: 11px; padding-top: 13px; border-top: 1px dashed var(--line-2); }
.r-card footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.r-card footer span { font-size: .84rem; font-weight: 600; }

/* ----------------------------------------------------------------- FAQ */
.faq-wrap { max-width: 840px; margin-inline: auto; }
.faq { display: grid; gap: 11px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); overflow: hidden; transition: .3s; }
.faq-item[open] { border-color: var(--m-200); box-shadow: var(--sh-2); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 21px; cursor: pointer; font-weight: 600; font-size: .96rem; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--m-700); }
.faq-chev { color: var(--m-600); transition: .3s; flex: none; }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { padding: 0 21px 19px; animation: fadeDown .35s ease both; }
.faq-a p { margin: 0; font-size: .91rem; color: var(--muted); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.faq-more { text-align: center; margin-top: 26px; }

/* ------------------------------------------------- เงื่อนไขการรับประกัน */
.warranty-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); padding: 20px 22px 18px; margin: 0 0 26px; }
.warranty-card h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; margin-bottom: 14px; }
.warranty-card h3 .ic { color: var(--m-600); flex: none; }
.w-list { display: grid; gap: 8px; }
.w-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 11px 14px; border-radius: var(--r-xs); background: var(--m-50); font-size: .89rem; }
.w-k { color: var(--ink-2); }
.w-v { font-weight: 700; color: var(--m-700); white-space: nowrap; }
.w-note { display: flex; gap: 7px; align-items: flex-start; margin: 13px 0 0; font-size: .78rem; color: var(--muted); line-height: 1.55; }
.w-note .ic { color: var(--s-600); margin-top: 4px; flex: none; }
.about-txt .warranty-card { margin-top: 22px; }

/* --------------------------------------------------------------- ติดต่อ */
.contact-sec { background: linear-gradient(180deg, var(--m-50), var(--cream)); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.contact-side h2 { font-size: clamp(1.66rem, 2.8vw, 2.3rem); margin-bottom: 15px; letter-spacing: -.024em; }
.contact-side h2 em { color: var(--m-700); }
.contact-side > p { color: var(--muted); margin-bottom: 26px; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; }
.contact-list .ic { color: var(--m-600); margin-top: 4px; flex: none; }
.contact-list small { display: block; font-size: .74rem; color: var(--muted); }
.contact-list a { font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--m-700); }
.contact-list.big li { padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.contact-card { background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--sh-2); padding: clamp(22px, 3vw, 32px); }

.c-form { display: grid; gap: 15px; }
.hp { position: absolute; left: -9999px; opacity: 0; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: .84rem; font-weight: 600; }
.field em { color: var(--p-700); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; font: inherit; font-size: .92rem; background: var(--m-50); transition: .22s; color: var(--ink); }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--m-400); background: var(--paper); box-shadow: 0 0 0 4px var(--m-100); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 10px 15px; border-radius: 11px; border: 1.5px solid var(--line-2); font-size: .84rem; cursor: pointer; transition: .22s; background: var(--m-50); }
.chip input:checked + span { background: var(--m-600); border-color: var(--m-600); color: #fff; }
.f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.f-note { display: inline-flex; align-items: center; gap: 6px; font-size: .77rem; color: var(--muted); margin: 0; }
.f-msg { font-size: .89rem; }
.f-msg.ok { color: var(--m-700); font-weight: 600; }
.f-msg.bad { color: var(--p-700); font-weight: 600; }
.f-ok { display: flex; align-items: center; gap: 10px; padding: 14px 18px; margin-bottom: 18px; background: var(--m-100); color: var(--m-800); border-radius: 12px; font-weight: 600; font-size: .91rem; }
.f-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 15px; border-top: 1px dashed var(--line-2); font-size: .84rem; color: var(--muted); }

/* --------------------------------------------------------------- แถบ CTA */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--m-700), var(--m-800)); color: #ffeeeb; }
.cta-in { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 26px; padding: clamp(34px, 4.4vw, 54px) 0; }
.cta-txt h2 { font-size: clamp(1.5rem, 2.7vw, 2.2rem); margin-bottom: 10px; color: #fff; letter-spacing: -.024em; }
.cta-txt p { margin: 0; color: rgba(255,255,255,.78); max-width: 46ch; }
.cta-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-outline-w { border-color: rgba(255,255,255,.4); color: #fff; background: rgba(255,255,255,.08); }
.cta-band .btn-outline-w:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--m-800); box-shadow: none; }
.cta-band .btn-primary:hover { background: var(--m-100); }

/* ------------------------------------------------------------ หัวหน้าเพจ */
.page-head { padding: clamp(28px, 4vw, 54px) 0 clamp(22px, 3vw, 34px); background: linear-gradient(180deg, var(--m-50), transparent); }
.page-head h1 { font-size: clamp(2rem, 3.9vw, 3.05rem); margin-bottom: 14px; letter-spacing: -.028em; }
.page-head h1 em { color: var(--m-700); }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; font-size: clamp(.96rem, 1.15vw, 1.08rem); }
.ph-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.ph-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.ph-img { max-width: 350px; justify-self: center; width: 100%; }
.ph-img .pic { border-radius: var(--r-xl); box-shadow: var(--sh-3); }

.crumbs { padding: 14px 0 0; font-size: .81rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: var(--m-700); }
.crumbs-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.crumb-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--m-700); background: var(--m-50); border: 1px solid var(--m-200); transition: .25s; }
.crumb-chip:hover { background: var(--m-600); border-color: var(--m-600); color: #fff; }
.crumb-chip .ic { flex: none; }

/* -------------------------------------------------------- หน้ารายละเอียด */
.d-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.d-media { position: sticky; top: 96px; }
.d-main { border-radius: 28px; padding: 9px; box-shadow: var(--sh-3); background: var(--paper); }
.d-main img { width: 100%; height: auto; display: block; border-radius: 20px; background: var(--m-50); }
.d-thumbs { display: flex; gap: 10px; margin-top: 13px; overflow-x: auto; padding-bottom: 4px; }
.d-thumb { flex: none; width: 70px; border-radius: 12px; overflow: hidden; border: 2.5px solid transparent; transition: .22s; background: var(--m-50); }
.d-thumb img { width: 100%; height: auto; display: block; }
.d-thumb.on, .d-thumb:hover { border-color: var(--m-400); }
.d-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .79rem; font-weight: 600; color: var(--m-700); margin-bottom: 12px; }
.d-info h1 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); margin-bottom: 13px; letter-spacing: -.026em; }
.d-short { color: var(--muted); font-size: 1.01rem; }
.d-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 15px 19px; margin: 20px 0; background: var(--p-100); border-radius: var(--r); }
.d-p { font-size: 1.4rem; font-weight: 700; color: var(--p-700); }
.d-price small { color: var(--ink-2); font-size: .83rem; }
.spec-list { display: grid; gap: 9px; margin: 20px 0; }
.spec-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .89rem; }
.spec-list .ic { color: var(--m-600); margin-top: 3px; flex: none; }
.d-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.d-assure { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .83rem; color: var(--muted); }
.d-assure span { display: inline-flex; align-items: center; gap: 7px; }
.d-assure .ic { color: var(--m-600); }
.d-desc { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(24px, 4vw, 48px); margin-top: clamp(38px, 5vw, 58px); align-items: start; }
.d-side { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 24px; }
.d-side h3 { display: flex; align-items: center; gap: 9px; font-size: .99rem; margin-bottom: 17px; }
.d-side .f-alt, .d-side .f-note { display: none; }

.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin-bottom: 15px; }
.prose p { color: var(--muted); }
.prose ul { display: grid; gap: 8px; margin: 0 0 1em; }
.prose ul li { padding-left: 22px; position: relative; color: var(--muted); }
.prose ul li::before { content: ''; position: absolute; left: 4px; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--m-400); }

/* ------------------------------------------------------------- ขั้นตอน */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { position: relative; padding: 28px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); transition: .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.step-n { position: absolute; top: -15px; left: 22px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--m-700); color: #fff; font-weight: 700; font-size: .9rem; font-family: var(--mono); box-shadow: var(--sh-1); }
.step-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--m-100); color: var(--m-700); margin-bottom: 13px; }
.step h3 { font-size: .98rem; margin-bottom: 6px; }
.step p { font-size: .84rem; color: var(--muted); margin: 0; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ----------------------------------------------------------------- 404 */
.nf-in { text-align: center; max-width: 560px; margin-inline: auto; padding: 40px 0 20px; }
.nf-ic { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 26px; background: var(--m-100); color: var(--m-700); margin-bottom: 20px; }
.nf-in h1 { font-size: clamp(1.45rem, 3vw, 2rem); margin-bottom: 12px; }
.nf-in p { color: var(--muted); }
.nf-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* -------------------------------------------------------------- ท้ายเว็บ */
.site-foot { position: relative; background: var(--m-900); color: rgba(255,255,255,.8); padding-top: 52px; }
.foot-wave { display: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 36px; }
.foot-brand img { width: 50px; height: 50px; border-radius: 15px; object-fit: cover; margin-bottom: 14px; }
.foot-name { font-size: 1.08rem; font-weight: 700; color: #fff; margin: 0 0 6px; }
.foot-name span { color: var(--p-300); }
.foot-desc { font-size: .85rem; margin-bottom: 18px; }
.socials { display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.09); color: #fff; transition: .25s; }
.socials a:hover { background: var(--m-500); transform: translateY(-3px); }
.foot-col h3 { font-size: .94rem; color: #fff; margin-bottom: 14px; }
.foot-col ul { display: grid; gap: 9px; font-size: .86rem; }
.foot-col a:hover { color: var(--p-300); }
.foot-contact li { display: flex; gap: 9px; align-items: flex-start; }
.foot-contact .ic { color: var(--p-300); margin-top: 3px; flex: none; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 0 24px; border-top: 1px solid rgba(255,255,255,.1); font-size: .79rem; }
.foot-bottom p { margin: 0; }
.foot-links a:hover { color: var(--p-300); }

/* -------------------------------------------------- ปุ่มลอย / กลับขึ้นบน */
.dock { position: fixed; z-index: 80; right: 18px; bottom: 20px; display: grid; gap: 10px; }
.dock-b { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: #fff; box-shadow: var(--sh-2); transition: .28s cubic-bezier(.2,.8,.3,1); position: relative; }
.dock-b span { position: absolute; right: calc(100% + 10px); padding: 6px 12px; border-radius: 9px; background: var(--ink); color: #fff; font-size: .77rem; white-space: nowrap; opacity: 0; transform: translateX(8px); pointer-events: none; transition: .25s; }
.dock-b:hover span { opacity: 1; transform: none; }
.dock-b:hover { transform: translateY(-3px) scale(1.05); }
.dock-call { background: var(--m-600); animation: ring 4.5s ease-in-out infinite; }
.dock-line { background: #06c755; }
.dock-fb   { background: #3f77d8; }
.dock-map  { background: var(--p-600); }

/* ปุ่ม dock ที่มีหลายปลายทาง (เพจ 2 เพจ / แผนที่ 2 สาขา) */
.dock-multi { position: relative; }
.dock-multi > .dock-b { border: 0; cursor: pointer; font: inherit; }
.dock-pop {
  position: absolute; z-index: 82; right: calc(100% + 12px); bottom: 0;
  width: 260px; padding: 8px; display: grid; gap: 4px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 15px;
  box-shadow: var(--sh-2);
  animation: dockPop .18s cubic-bezier(.2,.8,.3,1);
}
.dock-pop[hidden] { display: none; }
@keyframes dockPop { from { opacity: 0; transform: translateX(8px); } }
.dock-pop-h { margin: 2px 6px 4px; font-size: .72rem; font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.dock-pop a { display: grid; gap: 2px; padding: 9px 11px; border-radius: 11px; color: var(--ink); line-height: 1.35; }
.dock-pop a strong { font-size: .87rem; font-weight: 700; }
.dock-pop a small { font-size: .74rem; opacity: .72; }
.dock-pop a:hover, .dock-pop a:focus-visible { background: var(--m-50, rgba(192,42,30,.07)); color: var(--m-700); }
@keyframes ring { 0%, 86%, 100% { transform: rotate(0); } 90% { transform: rotate(-9deg); } 94% { transform: rotate(9deg); } }
.to-top { position: fixed; z-index: 79; left: 18px; bottom: 20px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--paper); color: var(--m-700); box-shadow: var(--sh-2); rotate: 180deg; opacity: 0; pointer-events: none; transition: .3s; border: 1px solid var(--line); }
.to-top.on { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--m-600); color: #fff; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .map-duo { grid-template-columns: 1fr; }
  .masonry { columns: 3; }
  .tech-grid { grid-template-columns: 1fr; }
  /* จอกลาง: ย่อแบรนด์ลงเล็กน้อยเพื่อให้เมนูยังพอดีบรรทัดเดียว */
  .brand img { width: 52px; height: 52px; border-radius: 15px; }
  .brand-txt strong { font-size: 1.24rem; }
  .brand-txt small { font-size: .8rem; }
  .head-in { gap: 12px; }
  .head-cta .btn { padding: 11px 16px; }
}

/* เมนูบนแคบลงเมื่อจอไม่กว้างพอ — กันหัวข้อตกบรรทัด */
@media (max-width: 1320px) {
  .nav > ul { gap: 0; }
  .nav a { padding: 9px 9px; font-size: .86rem; }
  .head-cta .btn { padding: 11px 14px; font-size: .88rem; }
}

@media (max-width: 1010px) {
  .nav, .head-cta { display: none; }
  .burger { display: grid; margin-left: auto; }
  .about-grid, .contact-grid, .d-grid, .d-desc, .ph-grid { grid-template-columns: 1fr; }
  .d-media { position: static; max-width: 400px; margin-inline: auto; width: 100%; }
  .about-media { max-width: 540px; margin-inline: auto; width: 100%; }
  /* แบนเนอร์บนจอเล็ก: ข้อความวางทับบนรูป
     รูปเป็นแนวตั้ง ถ้าปล่อยเต็มใบจะสูงเกินหน้าจอจนดันตัวหนังสือตกขอบล่าง จึงจำกัดความสูงไว้ */
  .bn { display: block; position: relative; overflow: hidden; }
  .bn-img { height: clamp(380px, 68vh, 560px); object-fit: cover; object-position: 50% 28%; }
  .bn-veil { display: block; }
  .bn.theme-light .bn-veil,
  .bn.theme-light.pos-left .bn-veil,
  .bn.theme-light.pos-right .bn-veil,
  .bn.theme-light.pos-center .bn-veil { background: linear-gradient(180deg, rgba(46,18,14,.2) 0%, rgba(46,18,14,.54) 45%, rgba(46,18,14,.84) 100%); }
  .bn.theme-dark .bn-veil,
  .bn.theme-dark.pos-left .bn-veil,
  .bn.theme-dark.pos-right .bn-veil,
  .bn.theme-dark.pos-center .bn-veil { background: linear-gradient(180deg, rgba(255,253,249,.25) 0%, rgba(255,253,249,.66) 45%, rgba(255,253,249,.92) 100%); }
  .bn-in { position: absolute; inset: 0; display: grid; align-items: end; padding: 0; background: none; }
  .bn-copy { width: min(100% - 28px, var(--wrap)); max-width: none; text-align: center; padding-bottom: 14px; }
  .bn-copy > *, .bn.pos-right .bn-copy > *, .bn.pos-center .bn-copy > * { max-width: 40ch; margin-inline: auto; text-align: center; }
  .bn.pos-right .bn-copy, .bn.pos-center .bn-copy { text-align: center; }
  .bn.pos-left .slide-cta, .bn.pos-right .slide-cta, .bn.pos-center .slide-cta,
  .bn.pos-left .hero-pills, .bn.pos-right .hero-pills, .bn.pos-center .hero-pills { justify-content: center; }
  .bn-sub, .bn .hero-pills { display: none; }
  .bn-copy .kicker { margin-bottom: 8px; }
  .bn-copy h1, .bn-copy .bn-h { margin-bottom: .45em; }
  .bn .slide-cta { margin-bottom: 0; }
  /* มือถือเลื่อนสไลด์ด้วยการปัดนิ้ว จึงเหลือแค่จุดบอกตำแหน่ง */
  .slide-nav {
    position: absolute; left: 50%; right: auto; bottom: 7px; top: auto; translate: -50% 0;
    padding: 4px 8px; gap: 5px; background: rgba(60,22,16,.34);
  }
  .slide-nav .s-arrow { display: none; }
  .slide-nav .dot { width: 6px; height: 6px; }
  .slide-nav .dot.on { width: 16px; }
  .masonry { columns: 2; }
}

@media (max-width: 680px) {
  body { font-size: 16px; line-height: 1.68; padding-bottom: 76px; }
  .wrap { width: calc(100% - 28px); }
  .sec { padding: 38px 0; }
  .sec-head { margin-bottom: 24px; }
  .sec-head h2 { font-size: 1.72rem; }
  .sec-desc { font-size: .95rem; }
  .kicker { font-size: .77rem; padding: 6px 12px; margin-bottom: 12px; }

  .topbar { font-size: .75rem; }
  .topbar-in { min-height: 34px; gap: 8px; }
  .head-in { min-height: 70px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { width: 50px; height: 50px; border-radius: 14px; }
  .brand-txt strong { font-size: 1.16rem; }
  .brand-txt small { font-size: .78rem; }

  /* เนื้อหาบนแบนเนอร์มือถือ: ป้าย + พาดหัว + ปุ่มหลัก 1 ปุ่ม (เบอร์โทรอยู่แถบล่างจออยู่แล้ว) */
  .bn-copy { padding-bottom: 16px; }
  .bn-copy h1, .bn-copy .bn-h { font-size: clamp(1.4rem, 6.8vw, 1.9rem); margin-bottom: .5em; line-height: 1.28; }
  .bn-copy .kicker { font-size: .7rem; padding: 4px 10px; margin-bottom: 8px; }
  .slide-cta { gap: 8px; width: auto; justify-content: center; }
  .slide-cta .btn { flex: 0 0 auto; padding: 10px 20px; font-size: .85rem; }
  .slide-cta .btn-glass { display: none; }
  .bn-copy { padding-bottom: 30px; }
  .hero-pills li { font-size: .79rem; }
  .slide-nav { padding-bottom: 18px; gap: 12px; }
  .s-arrow { width: 34px; height: 34px; }

  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { padding: 16px 18px; border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .trust-item h3 { font-size: .93rem; }
  .trust-item p { font-size: .81rem; }

  .cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat-card { padding: 17px 14px 15px; border-radius: var(--r); }
  .cat-ic { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 10px; }
  .cat-card h3 { font-size: .92rem; line-height: 1.35; }
  .cat-card p { font-size: .77rem; margin-bottom: 10px; }
  .cat-go { font-size: .79rem; }

  .tech-list { grid-template-columns: 1fr; gap: 11px; }
  .tech-item { padding: 15px 16px 14px; }

  .stat-grid { grid-template-columns: 1fr 1fr; padding: 22px 14px; gap: 18px; border-radius: var(--r-lg); }
  .stat strong { font-size: 1.75rem; }
  .stat p { font-size: .77rem; }

  .p-grid, .promo-grid, .b-grid { grid-template-columns: 1fr; gap: 15px; }
  .p-body { padding: 16px 18px 18px; }
  .masonry { columns: 2; column-gap: 12px; }
  .w-card { margin-bottom: 12px; }
  .w-card figcaption { padding: 10px 12px 12px; }
  .w-card strong { font-size: .83rem; }
  .w-card span { font-size: .73rem; }
  .r-card { width: min(84vw, 300px); padding: 20px 18px 16px; }

  .maps-label { font-size: .79rem; padding: 7px 13px; }
  .map-row { padding: 14px 14px 12px; }
  .map-go { padding: 8px 11px; font-size: .77rem; }
  .gmap { height: 190px !important; }
  .map-frame.tall .gmap { height: 250px !important; }
  .map-addr { font-size: .76rem; }

  .page-head { padding: 22px 0 16px; }
  .page-head h1 { font-size: clamp(1.45rem, 6.2vw, 1.9rem); }
  .page-head p { font-size: .91rem; }
  .crumbs { font-size: .75rem; }
  .contact-card { padding: 19px 17px; }
  .f-row { grid-template-columns: 1fr; gap: 13px; }
  .field input, .field select, .field textarea { padding: 12px 13px; font-size: 16px; }
  .f-submit .btn { width: 100%; }

  .d-price { padding: 13px 15px; margin: 15px 0; }
  .d-p { font-size: 1.2rem; }
  .d-cta { gap: 10px; margin: 17px 0 13px; }
  .d-cta .btn { flex: 1 1 100%; }
  .d-side { padding: 19px 17px; }
  .d-thumb { width: 58px; }

  .faq-item summary { padding: 14px 15px; font-size: .91rem; gap: 12px; }
  .faq-a { padding: 0 15px 15px; }
  .faq-a p { font-size: .87rem; }

  .steps { grid-template-columns: 1fr; gap: 20px; }
  .cta-in { padding: 28px 0; gap: 16px; }
  .cta-txt h2 { font-size: 1.3rem; }
  .cta-btns { width: 100%; gap: 10px; }
  .cta-btns .btn { flex: 1 1 100%; }

  .btn { padding: 12px 17px; font-size: .89rem; }
  .btn.lg { padding: 13px 19px; font-size: .94rem; }

  .foot-grid { grid-template-columns: 1fr; gap: 22px; padding-bottom: 24px; }
  .foot-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .site-foot { padding-top: 38px; }

  .dock {
    left: 0; right: 0; bottom: 0; grid-template-columns: repeat(4, 1fr); gap: 0;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,253,250,.97); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(34,48,42,.06);
  }
  .dock-b { width: 100%; height: 48px; border-radius: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; box-shadow: none; }
  .dock-b span { position: static; opacity: 1; transform: none; padding: 0; background: none; color: inherit; font-size: .63rem; line-height: 1; display: block; }
  .dock-b .ic { width: 19px; height: 19px; }
  .dock-b:hover { transform: none; }
  .cat-card.trade-card-cta { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px; }
  .trade-strip { grid-template-columns: 1fr; text-align: left; }
  .ts-cta .btn { flex: 1 1 200px; justify-content: center; }
  .crumbs-in { justify-content: flex-start; }
  .tech-list.wide-4 { grid-template-columns: 1fr 1fr; }
  .step-row { grid-template-columns: 1fr; }
  .trade-grid { grid-template-columns: 1fr; }
  .trade-cta .btn { flex: 1 1 100%; }
  .dock-multi > .dock-b { width: 100%; }
  .dock-pop {
    position: fixed; left: 8px; right: 8px; width: auto;
    bottom: calc(66px + env(safe-area-inset-bottom));
    animation: dockPopUp .18s cubic-bezier(.2,.8,.3,1);
  }
  @keyframes dockPopUp { from { opacity: 0; transform: translateY(8px); } }
  .to-top { display: none; }
}

@media (max-width: 400px) {
  .cat-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .stat-grid { grid-template-columns: 1fr; }
  .brand-txt small { display: none; }
  .brand img { width: 46px; height: 46px; border-radius: 13px; }
  .brand-txt strong { font-size: 1.08rem; }
}

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

@media print {
  .site-head, .topbar, .dock, .to-top, .cta-band, .site-foot { display: none !important; }
}
