/* INTER TECH. CONSTRUCTION — หน้าเว็บฝั่งลูกค้า
   โทน: น้ำเงินกรมท่า (น่าเชื่อถือ) + ดำพรีเมียม + ทองจากโลโก้ · ฟอนต์ IBM Plex Sans Thai ฟอนต์เดียว แยกน้ำหนัก
   กฎ: ไม่ล้นจอที่ 360px · รูปผลงานไม่ครอป (aspect-ratio ตามไฟล์) · หัวเว็บห้ามมี transform/filter/backdrop-filter */

:root {
  --accent: #c79a3e;
  --gold: var(--accent);
  --gold-2: #e2bd68;
  --gold-ink: #1b1405;
  --navy: #0b2240;
  --navy-2: #12305a;
  --navy-3: #061629;
  --ink: #13233a;
  --muted: #56667c;
  --paper: #ffffff;
  --paper-2: #f2f5f9;
  --line: #e1e7ef;
  --line-green: #06c755;
  --radius: 14px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(64px, 9vw, 112px);
  --pad: clamp(16px, 4.5vw, 40px);
  --max: 1200px;
  --shadow: 0 1px 2px rgba(10, 25, 45, .06), 0 8px 24px -8px rgba(10, 25, 45, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 16.5px; line-height: 1.7; -webkit-text-size-adjust: 100%; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.narrow { max-width: 880px; }
.sec { padding-block: var(--gap); }
.sec-alt { background: var(--paper-2); }

/* หัวข้อของแต่ละส่วน: ขีดทองหลังหัวข้อตามแบบอ้างอิง */
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(26px, 3.6vw, 40px); display: flex; align-items: center; gap: 18px; flex: 1 1 auto; max-width: 30ch; }
.sec-head h2::after { content: ''; width: 64px; height: 3px; border-radius: 2px; background: var(--gold); flex: none; }
.sec-head > p { color: var(--muted); margin: 0; font-size: 17px; flex-basis: 100%; max-width: 60ch; order: 2; }
.sec-head-cta { flex: none; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; border-radius: 10px; font: 600 16px/1.45 var(--font);
  background: var(--navy); color: #fff; text-decoration: none; border: 1.5px solid transparent;
  min-height: 48px; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgba(6, 22, 41, .5); }
.btn:active { transform: translateY(0); }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-line-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line svg, .fl-line svg { fill: #fff; stroke: none; }
.btn-light { background: #fff; color: var(--ink); }

/* ---------- แถบข้อมูลบนสุด ---------- */
.topbar { background: var(--navy-3); color: #dfe6f0; font-size: 14px; }
.topbar .wrap { display: flex; align-items: center; justify-content: flex-end; gap: 6px 22px; min-height: 40px; flex-wrap: wrap; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar a:hover { color: var(--gold-2); }
.topbar svg { color: var(--gold-2); width: 16px; height: 16px; }
.tb-social { gap: 4px !important; }
.tb-social a { width: 30px; height: 30px; justify-content: center; }
.tb-social svg { color: #fff; }

/* ---------- หัวเว็บ (ห้าม transform/filter/backdrop-filter — เมนูมือถือ position:fixed จะโดนกรอบ) ---------- */
.site-head { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-head.scrolled { box-shadow: 0 6px 20px -12px rgba(6, 22, 41, .35); }
.head-in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; flex: 1 1 auto; }
.logo img { width: auto; height: 60px; object-fit: contain; flex: none; }
.logo-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.45; padding-left: 12px; border-left: 1px solid var(--line); }
.logo-txt b { font-size: 15px; color: var(--navy); }
.logo-txt small { font-size: 14px; color: var(--muted); }
.dnav { display: flex; gap: 4px; }
.dnav a { text-decoration: none; font-weight: 500; padding: 10px 12px; border-radius: 8px; color: var(--ink); position: relative; white-space: nowrap; }
.dnav a:hover { color: var(--navy-2); background: var(--paper-2); }
.dnav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.dnav a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--gold); border-radius: 2px; }
.head-cta { flex: none; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; position: relative; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 13px; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; content: ''; transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* เมนูมือถือ — อยู่นอกหัวเว็บ เต็มจอจริง */
.mnav { display: none; }
@media (max-width: 1200px) {
  .dnav, .head-cta { display: none; }
  .nav-toggle { display: block; }
  .mnav {
    display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 55; background: #fff;
    padding: 96px var(--pad) 32px; overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .mnav { visibility: visible; opacity: 1; }
  .mnav nav { display: flex; flex-direction: column; }
  .mnav nav a { padding: 16px 4px; font-size: 20px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mnav nav a[aria-current="page"] { color: var(--gold); }
  .mnav-cta { display: grid; gap: 12px; margin-top: 28px; }
}
@media (max-width: 640px) {
  .topbar .wrap { justify-content: center; font-size: 14px; gap: 0 14px; }
  .topbar .tb-social { display: none !important; }
  .head-in { min-height: 66px; gap: 12px; }
  .logo img { width: auto; height: 50px; }
  .logo-txt { padding-left: 10px; }
  .logo-txt b { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .logo-txt small { display: none; }
  html { scroll-padding-top: 76px; }
}

/* ---------- แบนเนอร์หน้าแรก: ข้อความซ้ายบนกรมท่า รูปผลงานจริงขวา ---------- */
.hero { position: relative; overflow: hidden; }
.hero-home { background: var(--navy); color: #fff; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-height: clamp(520px, 70vh, 680px); display: flex; align-items: center; }
.hero-pic { position: absolute; inset: 0 0 0 44%; }
.hero-pic picture, .hero-pic img { width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 60% 55%; }
.hero-pic::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11, 34, 64, .86) 22%, rgba(11, 34, 64, .25) 55%, rgba(11, 34, 64, 0) 75%);
}
.hero-grid { position: relative; z-index: 2; width: 100%; }
.hero-body { max-width: 600px; padding-block: 56px; }
.eyebrow {
  display: inline-block; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  font-weight: 600; font-size: 15px; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
}
.hero-title { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.4; margin-bottom: 18px; color: var(--gold-2); }
.hero-sub { font-size: clamp(17px, 1.7vw, 20px); color: #e6ecf4; max-width: 44ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 600; text-decoration: none; color: #fff; }
.hero-phone svg { color: var(--gold-2); width: 22px; height: 22px; }
/* จุดเลื่อนสไลด์: เห็นเป็นขีดบาง แต่พื้นที่กด 36x44 */
.hero-dots { position: absolute; z-index: 3; bottom: 6px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; }
.hero-dots button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; position: relative; }
.hero-dots button::before { content: ''; position: absolute; left: 8px; right: 8px; top: 19px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.hero-dots button[aria-current="true"]::before { background: var(--gold-2); }

@media (max-width: 860px) {
  .hero-slide { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-pic { position: relative; inset: auto; height: min(56vw, 42vh); min-height: 220px; }
  .hero-pic::before { background: linear-gradient(180deg, rgba(11, 34, 64, 0) 45%, var(--navy) 100%); }
  .hero-body { padding-block: 8px 44px; }
  .hero-cta .btn { flex: 1 1 200px; }
}

/* แบนเนอร์หน้ารอง */
.hero-compact { background: var(--navy); color: #fff; min-height: clamp(240px, 32vh, 340px); display: flex; align-items: center; }
/* รูปอยู่ครึ่งขวา (รูปลูกค้าละเอียดไม่พอจะเต็มจอ) ไล่สีจากกรมท่าเข้าหารูป */
.hero-compact picture { position: absolute; inset: 0 0 0 48%; }
.hero-compact img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.hero-compact::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 48%, rgba(11, 34, 64, .6) 62%, rgba(11, 34, 64, .1) 100%); }
@media (max-width: 860px) {
  .hero-compact picture { inset: 0; }
  .hero-compact::after { background: linear-gradient(90deg, rgba(6, 22, 41, .94) 0%, rgba(11, 34, 64, .78) 60%, rgba(11, 34, 64, .55) 100%); }
}
.hero-c-body { position: relative; z-index: 2; width: 100%; padding-block: 48px; }
.hero-c-body h1, .hero-c-body h2 { font-size: clamp(30px, 4.6vw, 52px); color: #fff; margin-bottom: 10px; }
.hero-c-body h1::after, .hero-c-body h2::after { content: ''; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 14px; border-radius: 2px; }
.hero-c-body p { color: #dbe3ee; font-size: 18px; max-width: 56ch; margin: 0 0 20px; }

/* ---------- แถบความน่าเชื่อถือ ---------- */
.trust { background: var(--navy-3); color: #fff; padding-block: 26px; border-top: 1px solid rgba(255, 255, 255, .08); }
.trust-intro { text-align: center; color: #c9d4e3; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.trust-list li { display: flex; align-items: center; gap: 14px; padding: 10px 22px; }
.trust-list li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.trust .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(226, 189, 104, .14); color: var(--gold-2); flex: none; }
.trust .ic svg { width: 26px; height: 26px; }
.trust b { display: block; font-size: 17px; line-height: 1.5; }
.trust small { display: block; color: #c4cfde; font-size: 14.5px; line-height: 1.5; }
@media (max-width: 1000px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; }
  .trust-list li:nth-child(odd) { border-left: 0; }
}
@media (max-width: 520px) {
  .trust-list { grid-template-columns: 1fr; }
  .trust-list li { border-left: 0 !important; padding: 10px 4px; }
  .trust-list li + li { border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* ---------- บริการ ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.svc-grid[data-count="7"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* 7 รายการ: ใบแรกกว้าง 2 ช่องแบบรูปซ้ายข้อความขวา = 2 แถวเต็มพอดี */
.svc-grid[data-count="7"]:not(.filtered) > .svc:first-child { grid-column: span 2; display: grid; grid-template-columns: 1.15fr 1fr; }
.svc-grid[data-count="7"]:not(.filtered) > .svc:first-child { align-items: center; }
.svc-grid[data-count="7"]:not(.filtered) > .svc:first-child .svc-body { justify-content: center; padding: 24px; }
.svc-grid[data-count="7"]:not(.filtered) > .svc:first-child h3 { font-size: 24px; }
.svc {
  background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.svc:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(10, 25, 45, .06), 0 18px 34px -14px rgba(10, 25, 45, .3); }
.svc-pic { background: var(--paper-2); }
.svc-pic img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.svc-cat { font-size: 14px; font-weight: 600; color: #8a6a22; letter-spacing: .01em; }
.svc h3 { font-size: 19px; color: var(--navy); }
.svc p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.svc .btn { margin-top: auto; align-self: flex-start; }
.svc-list { display: grid; gap: 14px; }
.svc-list .svc { flex-direction: row; }
.svc-list .svc-pic { width: 34%; flex: none; }
@media (max-width: 1000px) {
  .svc-grid, .svc-grid[data-count="7"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .svc-grid[data-count="7"]:not(.filtered) > .svc:first-child { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .svc-grid, .svc-grid[data-count="7"] { gap: 10px; }
  .svc-body { padding: 12px 12px 14px; }
  .svc h3 { font-size: 16px; }
  .svc p { font-size: 14px; }
  .svc-grid[data-count="7"]:not(.filtered) > .svc:first-child h3 { font-size: 19px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 26px; }
.chip { font: 500 15px var(--font); padding: 9px 18px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- ภาพคู่ข้อความ ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.pic-right .split-pic { order: 2; }
.split-pic { margin: 0; border-radius: 18px; overflow: hidden; position: relative; }
.split-pic img { width: 100%; height: 100%; object-fit: cover; }
/* รูปแนวตั้ง (เช่น โปสเตอร์สินค้า) ไม่ครอป แต่จำกัดความกว้างไม่ให้ส่วนสูงเกินจอ */
.split-pic.tall { width: 100%; max-width: 460px; justify-self: center; }
.split-pic::after { content: ''; position: absolute; left: 0; bottom: 0; width: 38%; height: 6px; background: var(--gold); }
.split-text h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); margin-bottom: 20px; }
.split-text h2::after { content: ''; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 16px; border-radius: 2px; }
.prose p { color: #34465d; font-size: 17px; }
.prose.small p { font-size: 15px; color: var(--muted); }
.split-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.pic-right .split-pic { order: 0; }
}

/* ---------- ขั้นตอน / จุดเด่น (การ์ดมีเลขลำดับ) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
.sec-alt .step { background: #fff; }
.step-no { position: absolute; top: 18px; right: 20px; font-size: 30px; font-weight: 700; color: rgba(11, 34, 64, .1); line-height: 1; }
.step-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-2); margin-bottom: 16px; }
.step-ic svg { width: 26px; height: 26px; }
.step h3 { font-size: 18.5px; color: var(--navy); margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .steps { gap: 10px; } .step { padding: 18px 14px; } .step h3 { font-size: 16px; } .step p { font-size: 14px; } .step-ic { width: 44px; height: 44px; } }

/* ---------- ผลงาน: พื้นกรมท่า masonry ไม่ครอปรูป ---------- */
.sec-dark { background: var(--navy); color: #fff; }
.sec-dark .sec-head h2 { color: #fff; }
.sec-dark .sec-head > p { color: #c4cfde; }
.gal { columns: var(--cols, 3); column-gap: 14px; }
.gal-item { break-inside: avoid; margin: 0 0 14px; position: relative; }
.gal-item a { display: block; border-radius: 12px; overflow: hidden; position: relative; background: var(--navy-2); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.04); }
.gal-item figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.5; }
.gal-item figcaption b { display: block; color: #fff; font-weight: 600; }
.gal-item figcaption span { color: #b8c5d6; font-size: 14px; }
.play { position: absolute; inset: 0; display: grid; place-items: center; }
.play svg { width: 64px; height: 64px; padding: 18px; border-radius: 50%; background: rgba(6, 22, 41, .7); fill: #fff; stroke: none; }
@media (max-width: 1023px) { .gal { columns: 3; } }
@media (max-width: 767px) { .gal { columns: 2; column-gap: 10px; } .gal-item { margin-bottom: 10px; } .gal-item figcaption { font-size: 14px; } .gal-item figcaption span { display: none; } }

/* ---------- เอกสารสำคัญของบริษัท: การ์ดกระดาษ กดดูเต็มจอ ไม่ครอปเอกสาร ---------- */
.sec-docs { background: var(--paper-2); }
.sec-docs .sec-head { max-width: 980px; margin-inline: auto; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 980px; margin-inline: auto; }
.doc { margin: 0; }
.doc a { display: block; text-decoration: none; color: var(--navy); border-radius: 12px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(6, 22, 41, .06), 0 8px 24px -14px rgba(6, 22, 41, .3); overflow: hidden; transition: box-shadow .25s var(--ease), border-color .25s; }
.doc a:hover { border-color: var(--gold); box-shadow: 0 1px 2px rgba(6, 22, 41, .06), 0 16px 32px -16px rgba(6, 22, 41, .45); }
.doc-pic { display: grid; place-items: center; aspect-ratio: 3 / 4; padding: 14px; background: #fff; }
.doc-pic img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 2px 10px rgba(6, 22, 41, .12); }
.doc-zoom { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 15px; font-weight: 600;
  border-top: 1px solid var(--line); background: var(--paper-2); }
.doc-zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--gold); }
.doc a:hover .doc-zoom { background: var(--navy); color: #fff; }
.doc figcaption { padding: 10px 2px 0; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink); text-align: center; }
@media (max-width: 767px) { .docs { grid-template-columns: repeat(2, 1fr); gap: 12px; } .doc-pic { padding: 8px; } .doc-zoom { font-size: 14px; padding: 10px 6px; } .doc figcaption { font-size: 14px; } }

dialog.light { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); max-height: 92vh; overflow: visible; }
dialog.light::backdrop { background: rgba(4, 12, 24, .9); }
dialog.light img, dialog.light video { max-width: min(96vw, 1200px); max-height: 88vh; width: auto; height: auto; border-radius: 10px; margin: auto; }
dialog.light button { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; line-height: 1; cursor: pointer; color: var(--navy); }

/* ---------- รีวิว ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); align-items: start; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.quote-pic img { width: 100%; height: 100%; object-fit: cover; }
.quote-body { padding: 20px 22px 24px; }
.stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 10px; }
.stars svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.quote blockquote { margin: 0 0 14px; font-size: 16.5px; line-height: 1.7; color: #2a3b52; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 17px; color: var(--navy); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; border-radius: 50%; background: var(--paper-2); position: relative; flex: none; }
.faq summary i::before, .faq summary i::after { content: ''; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; background: var(--navy); transition: transform .25s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq details[open] summary i { background: var(--gold); }
.faq-a { padding: 0 20px 20px; margin: 0; color: #3a4b62; }

/* ---------- ตารางราคา / ข้อความอิสระ ---------- */
.rich h2 { font-size: clamp(26px, 3.4vw, 40px); color: var(--navy); margin-bottom: 22px; display: flex; align-items: center; gap: 18px; }
.rich h2::after { content: ''; width: 64px; height: 3px; background: var(--gold); border-radius: 2px; flex: none; }
.rich > .btn { margin-top: 22px; }
table.price { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 14px; }
table.price th, table.price td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.price thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; }
table.price tbody th { font-weight: 600; color: var(--navy); }
table.price td { color: #8a6a22; font-weight: 600; white-space: nowrap; }
table.price tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 520px) {
  table.price th, table.price td { padding: 12px 12px; font-size: 15px; }
  table.price td { white-space: normal; }
}

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(48px, 7vw, 80px); }
.cta-dark { background: radial-gradient(120% 140% at 100% 0%, var(--navy-2) 0%, var(--navy-3) 70%); color: #fff; }
.cta-soft { background: var(--paper-2); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(24px, 3.2vw, 36px); max-width: 26ch; }
.cta-dark h2 { color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- ติดต่อ ---------- */
.sec-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; }
.sec-navy .sec-head h2 { color: #fff; }
.sec-navy .sec-head > p { color: #c4cfde; }
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.contact-note { color: #d6dfeb; font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { width: 24px; height: 24px; color: var(--gold-2); margin-top: 4px; }
.contact-list small { display: block; font-size: 14px; color: #9fb0c6; }
.contact-list a { color: #fff; font-weight: 600; text-decoration: none; font-size: 17px; }
.contact-list a:hover { color: var(--gold-2); }
.hours-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; }
.hours-box b { display: flex; align-items: center; gap: 8px; }
.hours-box b svg { color: var(--gold-2); }
.hours-box p { margin: 4px 0 0; color: #d6dfeb; }
.hours { list-style: none; margin: 8px 0 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; color: #d6dfeb; }
.closed { color: #ffb4a8; }
.lead { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.lead h3 { font-size: 21px; color: var(--navy); }
.lead .f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.lead input, .lead textarea, .lead select {
  width: 100%; font: 16px var(--font); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-height: 50px;
}
.lead textarea { min-height: 120px; resize: vertical; }
.lead input:focus, .lead textarea:focus, .lead select:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(18, 48, 90, .15); }
.lead .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { margin: 0; font-size: 15px; min-height: 1em; }
.msg.ok { color: #137a3f; }
.msg.bad { color: #b42318; }
.contact-map { margin-top: 32px; }
.map-wrap { display: grid; gap: 12px; }
.map { width: 100%; height: 340px; border: 0; border-radius: 14px; background: var(--navy-2); }
.map-wrap .btn { justify-self: start; color: #fff; border-color: rgba(255, 255, 255, .4); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .lead .f2 { grid-template-columns: 1fr; } .contact-info .btn { width: 100%; } }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-3); color: #c4cfde; padding-top: clamp(48px, 6vw, 72px); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 32px; padding-bottom: 40px; }
.foot h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.foot-brand img { width: auto; height: 96px; padding: 12px 16px; background: #fff; border-radius: 14px; margin-bottom: 14px; box-sizing: content-box; object-fit: contain; }
.foot-brand b { display: block; color: #fff; font-size: 16px; line-height: 1.5; margin-bottom: 8px; }
.foot-brand p { font-size: 14.5px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.foot-nav { display: grid; gap: 6px; }
.foot-nav a { padding: 4px 0; }
.foot-list, .foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; }
.foot-contact svg { color: var(--gold-2); margin-top: 4px; }
.social { display: flex; gap: 8px; margin-top: 10px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.social a:hover { border-color: var(--gold-2); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; text-align: center; }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- ปุ่มลอยมือถือ: ไลน์ + โทร ---------- */
.float-contact { display: none; }
@media (max-width: 760px) {
  .float-contact {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
  }
  .float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 12px; font-weight: 700; text-decoration: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
  .fl-line { background: var(--line-green); color: #fff; }
  .fl-call { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
  body { padding-bottom: 76px; }
  body.nav-open .float-contact { display: none; }
}

/* ---------- บทความ ---------- */
.a-wrap { max-width: 780px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--navy-2); }
.a-wrap h1 { font-size: clamp(28px, 4vw, 42px); color: var(--navy); margin-bottom: 8px; }
.a-meta { color: var(--muted); font-size: 14px; }
.a-cover, .a-fig { margin: 22px 0; }
.a-cover img, .a-fig img { border-radius: 12px; }
.a-fig figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.a-lead { font-size: 19px; color: #34465d; }
.a-toc { background: var(--paper-2); border-radius: 12px; padding: 16px 20px; margin: 20px 0; }
.a-body h2 { font-size: 26px; color: var(--navy); margin: 32px 0 12px; }
.a-body h3 { font-size: 20px; margin: 24px 0 10px; }
.a-body blockquote { border-left: 4px solid var(--gold); margin: 20px 0; padding: 4px 18px; color: #34465d; }
.a-embed { margin-top: 36px; }
.a-embed h3 { margin-bottom: 14px; }
.a-cta { background: var(--paper-2); border-radius: 12px; padding: 20px; margin-top: 28px; }

/* ---------- พื้นที่กดบนมือถือไม่ต่ำกว่า 44px ---------- */
.topbar a, .hero-phone, .contact-list a, .foot a, .foot-contact span { min-height: 44px; display: inline-flex; align-items: center; }
.topbar .wrap { min-height: 44px; }
.foot-nav a { padding: 0; }

/* ---------- ปุ่มโซเชียลแบบมีชื่อ (ท้ายเว็บ + เมนูมือถือ) ---------- */
.social { flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.social a { width: auto; height: auto; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; text-decoration: none; }
.social svg { width: 20px; height: 20px; color: var(--gold-2); }
.mnav-social { margin-top: 20px; }
.mnav-social a { color: var(--ink); border-color: var(--line); background: var(--paper-2); }
.mnav-social svg { color: var(--gold); }
.tb-social svg { width: 18px; height: 18px; }
.foot-list, .foot-contact { gap: 0; }

/* ---------- อนิเมชันปรากฏตอนเลื่อนถึง (เปิดเมื่อ JS พร้อม และผู้ใช้ไม่ได้ขอลดการเคลื่อนไหว) ---------- */
.js-rv .rv { opacity: 0; transform: translateY(20px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: calc(min(var(--d, 0), 5) * 70ms); }
.js-rv .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
