/* thai-conference.com — public styles (mobile-first, ภาษาไทย)
   Design direction (จากทีมออกแบบ): Navy #0f2d5a + Gold #ffcc33/#c5a059, ฟอนต์ Prompt/Sarabun */
:root {
  --brand: #1a4a8d;
  --brand-dark: #0f2d5a;
  --gold: #ffcc33;          /* accent — ปุ่ม/ไฮไลต์ */
  --gold-ink: #1b1400;      /* ตัวอักษรบนพื้นทอง */
  --gold-deep: #c5a059;     /* ทองบรอนซ์ — เส้น/รายละเอียดพรีเมียม */
  --ink: #17233b;
  --muted: #5a677e;
  --line-green: #06c755;
  --bg: #f8f9fa;
  --card: #ffffff;
  --border: #e6ebf1;
  --radius: 12px;
  --maxw: 1080px;
  --font-body: "Sarabun", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-display: "Prompt", "Sarabun", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink); background: var(--bg); line-height: 1.6;
}
h1, h2, h3, .brand, .section-title, .page-h1 { font-family: var(--font-display); letter-spacing: -0.01em; }
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; height: auto; }
code { background: #eef1f5; padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Header + nav */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .8rem 1rem; background: var(--brand-dark); border-bottom: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 2px 16px rgba(15,45,90,.28);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand-logo { height: 36px; width: auto; display: block; }
.brand-text { line-height: 1; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; color: #fff; font-size: 1.2rem; padding: .2rem .55rem; cursor: pointer; }
.site-nav { display: none; flex-direction: column; gap: .1rem; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand-dark); border-bottom: 1px solid rgba(255,255,255,.08); padding: .5rem 1rem; }
body.nav-open .site-nav { display: flex; }
.site-nav a { color: rgba(255,255,255,.8); padding: .5rem 0; font-size: .95rem; }
.site-nav a:hover { color: var(--gold); }
.nav-desktop-only { display: none; }  /* AV Designer: เดสก์ท็อปเท่านั้น (ลากวางผังต้องจอใหญ่) */
/* ช่องค้นหาบน header — ทุกหน้า (ค้นหาสินค้าตัวถัดไปได้เลย) */
.hdr-search { flex: 1 1 auto; max-width: 340px; min-width: 90px; margin: 0 .3rem; }
.hdr-search input { width: 100%; padding: .45rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font: inherit; font-size: .9rem; background: rgba(255,255,255,.12); color: #fff; }
.hdr-search input::placeholder { color: rgba(255,255,255,.7); }
.hdr-search input:focus { outline: none; background: #fff; color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191,140,23,.25); }

/* Breadcrumbs */
.breadcrumbs { max-width: var(--maxw); margin: .6rem auto 0; padding: 0 1rem; }
.crumbs-inner { font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs .sep { margin: 0 .4rem; color: #b9c4d0; }

/* Layout */
main { max-width: var(--maxw); margin: 0 auto; padding: 1rem; }
section { margin: 2.2rem 0; }
h1 { font-size: 1.8rem; margin: 0 0 .5rem; line-height: 1.25; }
.page-h1 { margin-top: .6rem; }
h2 { font-size: 1.35rem; }
.section-title { border-left: 4px solid var(--brand); padding-left: .6rem; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; }
.prose p { margin: 0 0 1rem; }
/* รายละเอียดเพิ่มเติม (rich text จาก admin) — คุมให้เข้าธีมเว็บ ไม่ว่าจะจัดรูปแบบมายังไง */
.rich-body { margin-top: 1rem; }
.rich-body h3, .rich-body h4 { color: var(--ink, #16233a); margin: 1.2rem 0 .4rem; font-size: 1.08rem; }
.rich-body ul, .rich-body ol { margin: 0 0 1rem 1.4rem; }
.rich-body li { margin: .2rem 0; }
.rich-body img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: .8rem 0; }
.rich-body a { color: var(--brand, #1a4a8d); text-decoration: underline; }
.rich-body table { border-collapse: collapse; max-width: 100%; }
.rich-body td, .rich-body th { border: 1px solid #dde5ee; padding: .35rem .6rem; }
.rich-body font { font-family: inherit !important; }  /* กัน execCommand แทรก font เก่า */

/* Hero — full-bleed navy gradient, มุมล่างโค้ง (จากทีมออกแบบ) */
.hero {
  margin-inline: calc(50% - 50vw); margin-top: -1rem;
  background: linear-gradient(135deg, #0f2d5a 0%, #1a4a8d 100%);
  color: #fff; border-radius: 0 0 40px 40px; text-align: center;
  padding: 4rem 1.25rem 3.4rem;
  box-shadow: 0 14px 34px rgba(15, 45, 90, .28);
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 { color: #fff; }
.hero-sub { color: #dbe6f5; max-width: 640px; margin: 0 auto 1.4rem; }
.hero-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.sla-badge { margin-top: 1.2rem; font-size: .9rem; color: #ffe08a; font-weight: 600; }
.sla-inline { color: var(--brand-dark); font-weight: 700; font-size: .9rem; }

/* Buttons — gold CTA + micro-interaction (ยกตัว + เงา เมื่อ hover) */
.btn { display: inline-block; padding: .8rem 1.6rem; border-radius: 10px; font-weight: 600; cursor: pointer; border: none; font-family: var(--font-display); transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 16px rgba(255, 204, 51, .28); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 204, 51, .42); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.18); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.btn-ghost.dark { background: #eef4fc; color: var(--brand-dark); border-color: #cfe0f7; }
.btn-line { background: var(--line-green); color: #fff; }
.btn.block { display: block; text-align: center; margin-top: .5rem; }

/* Cards row */
.card-row { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; display: block; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,77,143,.12); }
.card h3 { margin: .3rem 0 .25rem; }
.card p { margin: 0; color: var(--muted); }
.card-feature { border-color: var(--brand); background: #eef4fc; }
.card-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--brand); color: #fff; font-weight: 800; }
.card-badge.lg { width: 52px; height: 52px; font-size: 1.4rem; }

/* Value row */
.value-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.value { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.value h3 { margin: 0 0 .4rem; color: var(--brand-dark); }
.value p { color: var(--muted); margin: 0 0 .6rem; }

/* CTA band */
.cta-band { background: #eef4fc; border: 1px solid #d3e2f6; border-radius: var(--radius); padding: 1.6rem; text-align: center; }
.cta-band h2 { margin-top: 0; }

/* Tier list */
.tier-list { display: grid; grid-template-columns: 1fr; gap: .9rem; }
.tier-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; display: block; }
.tier-card:hover { border-color: var(--brand); box-shadow: 0 6px 20px rgba(26,77,143,.1); }
.tier-head { display: flex; align-items: center; gap: .7rem; }
.tier-head h2 { margin: 0; }
.tier-sub { color: var(--muted); margin: .5rem 0; }
.tier-link { color: var(--brand); font-weight: 700; }
.tier-hero { display: flex; gap: 1rem; align-items: center; margin-top: .6rem; }
.config-teaser { display: flex; flex-direction: column; gap: 1rem; background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 1.5rem; align-items: flex-start; }
.config-teaser h3 { margin: 0 0 .3rem; color: #fff; }
.config-teaser p { margin: 0; color: #cfe0f7; }

/* Spec grid (solution detail) */
.spec-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.spec-box, .spec-aside { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.spec-aside { background: #f0f6ff; border-color: #cfe0f7; }
ul.tick { list-style: none; padding: 0; margin: .5rem 0; }
ul.tick li { padding-left: 1.6rem; position: relative; margin: .4rem 0; }
ul.tick li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-note { font-weight: 800; color: var(--brand-dark); }
.callout { background: #fff7e6; border: 1px solid #ffe0a3; border-radius: var(--radius); padding: 1rem 1.2rem; }

/* Government */
.gov-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.gov-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; display: block; }
.gov-card.highlight { border-color: var(--brand); background: #eef4fc; }
.gov-card h3 { margin: 0 0 .4rem; }
.gov-link { color: var(--brand); font-weight: 700; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: .6rem 0; }
.method-row { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.method { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.method h4 { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.3rem; }
.contact-card.highlight { background: #eef4fc; border-color: #cfe0f7; }
ul.contact-list { list-style: none; padding: 0; margin: 0; }
ul.contact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed var(--border); }
ul.contact-list li span:first-child { color: var(--muted); }
.map-wrap iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); }

/* Blog / posts */
.post-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: block; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-body { padding: 1rem 1.2rem; }
.post-body h3 { margin: 0 0 .3rem; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 1rem 0; }
.article-body { line-height: 1.8; }

/* Empty state */
.empty-state { text-align: center; background: #fff; border: 1px dashed #cdd8e3; border-radius: var(--radius); padding: 2.5rem 1.2rem; }
.empty-state.tall { padding: 3.5rem 1.2rem; }
.empty-emoji { font-size: 2.6rem; }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); margin-top: 2.5rem; }
.foot-cols { max-width: var(--maxw); margin: 0 auto; padding: 1.6rem 1rem 1rem; display: grid; grid-template-columns: 1fr; gap: 1rem; color: var(--muted); font-size: .92rem; }
.foot-nav { display: flex; flex-direction: column; gap: .3rem; }
.foot-copy { max-width: var(--maxw); margin: 0 auto; padding: .8rem 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.site-version { font-family: var(--mono, monospace); font-size: .74rem; background: #eef2f7; border-radius: 999px; padding: .05rem .5rem; }

/* Floating CTA */
.floating-cta { position: fixed; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: .5rem; z-index: 50; align-items: flex-end; }
.fab { border-radius: 999px; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.18); display: inline-flex; align-items: center; justify-content: center; }
.fab-phone { width: 52px; height: 52px; background: #fff; font-size: 1.3rem; }
.fab-line { width: 52px; height: 52px; background: var(--line-green); color: #fff; font-size: .8rem; }
.fab-rfq { padding: .85rem 1.3rem; background: var(--gold); color: var(--gold-ink); font-family: var(--font-display); }
.fab-rfq .cart-badge { background: var(--brand-dark); color: #fff; }

.alert { padding: .7rem 1rem; border-radius: 8px; }
.alert.ok { background: #e7f7ee; color: #0a7d43; }
.alert.error { background: #fdecec; color: #c0392b; }
.center { text-align: center; } .right { text-align: right; }

/* Cart badge on floating button */
.cart-badge { background: #fff; color: var(--brand-dark); border-radius: 999px; padding: 0 .45rem; font-size: .8rem; font-weight: 800; }

/* Cart toast */
.cart-toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%) translateY(10px); background: #12386a; color: #fff; padding: .7rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: 0; transition: .2s; z-index: 60; max-width: 90vw; }
.cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Product category chips */
.catalog-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin: 1rem 0; }
.cat-filter { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: .35rem .9rem; font-size: .9rem; color: var(--muted); transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
/* ชิปหมวดย่อย (แถวสอง โผล่เมื่อเลือกหมวด) */
.subcat-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--border); }
.chip.sm { padding: .22rem .7rem; font-size: .82rem; }
.chip .chip-n { font-size: .72em; opacity: .65; font-variant-numeric: tabular-nums; }
.chip.on .chip-n { opacity: .85; }
/* แถบเครื่องมือ: ค้นหา + ยี่ห้อ + เรียงลำดับ */
.cat-tools { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.cat-tools input[type="search"] { width: 220px; max-width: 60vw; padding: .5rem .8rem; border: 1px solid #cbd5e1; border-radius: 999px; font: inherit; font-size: .9rem; }
.cat-tools input[type="search"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26,74,141,.12); }
.cat-tools select { padding: .5rem .7rem; border: 1px solid #cbd5e1; border-radius: 999px; font: inherit; font-size: .88rem; background: #fff; color: var(--ink); cursor: pointer; }
.cat-tools select:focus { outline: none; border-color: var(--brand); }
.cs-btn { padding: .5rem 1rem; border: none; border-radius: 999px; background: var(--brand-dark); color: #fff; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.cs-btn:hover { background: var(--brand); }
.cs-clear { color: var(--muted); font-size: .85rem; padding: .3rem .5rem; }
.cs-clear:hover { color: var(--brand); }
.search-note { margin: 0 0 .9rem; }
/* เมนูหมวดด้านซ้าย (accordion) — B2B sidebar */
.cat-layout { display: grid; grid-template-columns: 244px 1fr; gap: 1.5rem; align-items: start; margin: 1.4rem 0; }
.cat-side { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .55rem; position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; }
.cat-side-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--brand-dark); padding: .5rem .6rem .5rem; font-size: .95rem; }
.cat-side-x { display: none; border: none; background: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.cat-side-item { width: 100%; min-width: 0; display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .5rem .7rem; border-radius: 9px; color: var(--ink); font-size: .92rem; }
button.cat-side-item { border: none; background: none; font: inherit; text-align: left; cursor: pointer; }
.cat-side-r { display: flex; align-items: center; gap: .45rem; flex: none; }
.cat-caret { font-size: .68rem; color: var(--muted); width: .8em; }
.cat-side-item.on .cat-caret { color: #fff; }
.cat-side-item.all { font-weight: 700; margin-bottom: .2rem; }
.cat-side-item span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-side-item:hover { background: #f1f5f9; }
.cat-side-item.on { background: var(--brand); color: #fff; font-weight: 700; }
.cat-side-item.on .cat-n { color: #fff; opacity: .82; }
.cat-n { font-size: .76em; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.cat-side-tg { flex: none; width: 28px; height: 30px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 6px; font-size: .72rem; }
.cat-side-tg:hover { background: #eef2f7; color: var(--brand); }
.cat-side-subs { margin: .05rem 0 .3rem .85rem; padding-left: .55rem; border-left: 2px solid #e2e9f1; }
.cat-side-subs[hidden] { display: none; }
.cat-side-sub { display: flex; justify-content: space-between; gap: .5rem; padding: .34rem .6rem; border-radius: 7px; font-size: .84rem; color: var(--muted); }
.cat-side-sub:hover { background: #f1f5f9; color: var(--ink); }
.cat-side-sub.on { background: #e3edf9; color: var(--brand-dark); font-weight: 700; }
.cat-toolbar { display: flex; align-items: center; gap: .7rem; margin-bottom: .9rem; }
.cat-toolbar .cat-tools { flex: 1; }
.cat-drawer-btn { display: none; align-items: center; gap: .4rem; padding: .55rem .9rem; border: 1px solid var(--border); background: #fff; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--brand-dark); cursor: pointer; white-space: nowrap; }
.cat-side-backdrop { display: none; }
@media (max-width: 860px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-drawer-btn { display: inline-flex; }
  .cat-side { position: fixed; top: 0; left: 0; height: 100%; width: 300px; max-width: 86vw; max-height: none; z-index: 1200; border-radius: 0; transform: translateX(-102%); transition: transform .22s ease; box-shadow: 4px 0 24px rgba(15,45,90,.18); }
  body.cat-side-open .cat-side { transform: none; }
  .cat-side-x { display: inline-flex; }
  body.cat-side-open .cat-side-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,45,90,.42); z-index: 1199; }
}
/* แบ่งหน้า */
.pager { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; align-items: center; margin: 1.8rem 0 .5rem; }
.pg { min-width: 38px; text-align: center; padding: .45rem .7rem; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--brand-dark); font-weight: 600; font-size: .9rem; }
.pg:hover { border-color: var(--brand); background: #f4f8fd; }
.pg.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.pg-dots { color: var(--muted); padding: 0 .2rem; }

/* Product grid */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.product-card { position: relative; background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 22px rgba(15,45,90,.08); }
/* ทั้งการ์ดคลิกเปิดหน้าสินค้าได้ (พื้นที่แตะใหญ่ขึ้นบนมือถือ) — ปุ่ม/ลิงก์ใน .p-actions ยังกดแยกได้ */
.product-card .p-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-card .p-actions { position: relative; z-index: 2; }
.product-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3; overflow: hidden; background: #fff; padding: .45rem; }
.product-thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.thumb-ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #a7b4c4; font-size: .85rem; background: repeating-linear-gradient(-45deg, #f4f7fb, #f4f7fb 10px, #eef2f7 10px, #eef2f7 20px); }
.thumb-ph.lg { aspect-ratio: 4/3; border-radius: var(--radius); }
.product-info { padding: .55rem .85rem .85rem; display: flex; flex-direction: column; gap: .22rem; flex: 1; }
.p-brand { font-size: .74rem; color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.p-name { font-weight: 700; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.p-name:hover { color: var(--brand); }
.p-spec { font-size: .8rem; color: #52657a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.p-len { font-size: .82rem; font-weight: 700; color: var(--brand-dark); background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.2); border-radius: 6px; padding: .1rem .45rem; align-self: flex-start; margin: .05rem 0 .1rem; }
.p-price { font-weight: 800; color: var(--brand-dark); font-size: 1.05rem; margin-top: .1rem; }
.p-price.ask { color: var(--muted); font-weight: 600; font-size: .95rem; }
.p-actions { margin-top: auto; padding-top: .6rem; display: flex; flex-direction: column; gap: .55rem; }
/* ดูสเปก = ลิงก์ข้อความ (ไม่ใช่กล่องกรอบ) — ลดความรก ให้ราคา+ปุ่มหลักเด่น */
.p-detail { font-size: .82rem; font-weight: 600; color: var(--brand); text-align: center; padding: .1rem; }
.p-detail:hover { color: var(--brand-dark); text-decoration: underline; }
.p-detail:hover { background: none; }
.btn-add { background: var(--brand); color: #fff; border: none; border-radius: 8px; padding: .55rem; font-weight: 700; cursor: pointer; font: inherit; transition: background .15s, box-shadow .15s; }
/* ปุ่มเพิ่มใบเสนอราคาในการ์ดแคตตาล็อก = สีทองให้เด่น (เหมือน CTA หน้ารายละเอียด) */
.product-card .btn-add { background: linear-gradient(180deg, #e7b53d, #cf9a24); color: #3a2c07; box-shadow: 0 2px 8px rgba(191,140,23,.28); font-size: .88rem; line-height: 1.25; padding: .6rem .5rem; text-wrap: balance; }
.product-card .btn-add:hover { background: linear-gradient(180deg, #f0c14e, #d9a52c); box-shadow: 0 4px 14px rgba(191,140,23,.4); }
.btn-add:hover { background: var(--brand-dark); box-shadow: 0 6px 16px rgba(15,45,90,.22); }
.btn-add.lg { padding: .8rem 1.2rem; font-size: 1rem; }

/* Product detail (B2B) — hero ซ้าย/ขวา */
.pdx-hero { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin: 1rem 0 1.6rem; }
.pdx-gallery { }
.pdx-main-img { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 6px 22px rgba(15,45,90,.08); aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pdx-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 1.2rem; }
.pdx-main-img .thumb-ph { width: 100%; height: 100%; border-radius: 0; }
.pdx-main-img.zoomable { cursor: zoom-in; position: relative; }
.pdx-zoom-hint { position: absolute; right: 12px; bottom: 12px; background: rgba(15,45,90,.82); color: #fff; font-size: .74rem; padding: .28rem .6rem; border-radius: 20px; opacity: 0; transition: opacity .18s; pointer-events: none; }
.pdx-main-img.zoomable:hover .pdx-zoom-hint { opacity: 1; }
/* แถบรูปย่อ (thumbnails) */
.pdx-thumbs { display: flex; gap: .55rem; margin-top: .7rem; flex-wrap: wrap; }
.pdx-thumb { width: 66px; height: 66px; padding: 4px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.pdx-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pdx-thumb:hover { border-color: #cbd5e1; }
.pdx-thumb.active { border-color: var(--navy, #14284b); box-shadow: 0 0 0 2px rgba(20,40,75,.15); }
/* Lightbox ขยาย/ซูม */
.pdx-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(8,18,38,.92); display: none; align-items: center; justify-content: center; padding: 3vw; }
.pdx-lightbox.open { display: flex; }
.pdx-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; background: #fff; border-radius: 10px; cursor: zoom-in; transition: transform .15s ease-out; will-change: transform; touch-action: none; user-select: none; -webkit-user-select: none; }
.pdx-lightbox img.zoomed { cursor: grab; }
.pdx-lightbox img.grabbing { cursor: grabbing; transition: none; }
.pdx-lb-close { position: absolute; top: 18px; right: 26px; font-size: 2.4rem; line-height: 1; color: #fff; background: none; border: none; cursor: pointer; z-index: 3; }
/* ลูกศรเลื่อนรูป — จางๆ ด้านข้าง สว่างตอน hover */
.pdx-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 88px; display: flex; align-items: center; justify-content: center; font-size: 2.8rem; line-height: 1; color: #fff; background: rgba(255,255,255,.06); border: none; border-radius: 12px; cursor: pointer; opacity: .32; transition: opacity .15s, background .15s; z-index: 2; padding: 0; }
.pdx-lb-nav:hover { opacity: 1; background: rgba(255,255,255,.2); }
.pdx-lb-nav.prev { left: 2vw; }
.pdx-lb-nav.next { right: 2vw; }
@media (max-width: 640px){ .pdx-lb-nav { width: 42px; height: 66px; font-size: 2.2rem; opacity: .5; } }
.pdx-lb-hint { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.75); font-size: .82rem; }
.pdx-title { font-family: var(--font-display); font-size: 1.8rem; line-height: 1.2; margin: .2rem 0 .3rem; }
.pdx-subcat { color: var(--muted); font-size: .92rem; margin-bottom: .8rem; }
.pdx-features { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .45rem; }
.pdx-features li { position: relative; padding-left: 1.5rem; font-size: .93rem; color: var(--ink); }
.pdx-features li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #1a9d5a; font-weight: 800; }
.pdx-price { font-size: 1.7rem; font-weight: 800; color: var(--brand-dark); font-family: var(--font-display); }
.pdx-price.ask { color: var(--muted); font-size: 1.2rem; }
.pdx-price-note { margin: .1rem 0 0; }
.pdx-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.1rem 0 .5rem; }
.btn-add.gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 6px 16px rgba(255,204,51,.32); }
.btn-add.gold:hover { background: #ffc107; box-shadow: 0 10px 24px rgba(255,204,51,.5); }
.btn-datasheet { display: inline-flex; align-items: center; gap: .3rem; background: #fff; color: var(--brand-dark); border: 1px solid #cbd5e1; border-radius: 8px; padding: .7rem 1.1rem; font-weight: 700; font-size: .95rem; }
.btn-datasheet:hover { border-color: var(--brand); background: #f4f8fd; }
.btn-datasheet.disabled { color: #9aa8b7; cursor: default; }
.pdx-verify { margin-top: .5rem; }
/* tags */
.pdx-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; }
.ptag { font-size: .78rem; color: var(--brand-dark); background: #eef4fc; border: 1px solid #dbe6f5; border-radius: 999px; padding: .25rem .7rem; }
.ptag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
/* share */
.pdx-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.share-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.sh { display: inline-flex; align-items: center; gap: .3rem; font-size: .85rem; font-weight: 700; padding: .45rem .8rem; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--ink); cursor: pointer; font-family: inherit; }
.sh-line { color: #fff; background: #06c755; border-color: #06c755; }
.sh-line:hover { background: #05b04c; }
.sh-fb { color: #fff; background: #1877f2; border-color: #1877f2; }
.sh-fb:hover { background: #1568d8; }
.sh-copy:hover { border-color: var(--brand); color: var(--brand); }
/* tabs */
.pdx-tabs { margin: 1.8rem 0; }
.tab-btns { display: flex; gap: .3rem; border-bottom: 2px solid var(--border); flex-wrap: wrap; }
.tab-btn { background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; padding: .7rem 1.1rem; font: inherit; font-weight: 700; font-size: .98rem; color: var(--muted); cursor: pointer; }
.tab-btn:hover { color: var(--ink); }
.tab-btn.on { color: var(--brand-dark); border-bottom-color: var(--gold); }
.tab-panel { display: none; padding: 1.2rem .2rem; }
.tab-panel.on { display: block; }
.dl-list { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .5rem; }
.dl-list li { padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-weight: 600; }
.dl-list li.dl-soon { color: var(--muted); font-weight: 400; background: #f8fafc; }
.dl-list a { color: var(--brand); }
.dl-group { margin-bottom: 1.1rem; }
.dl-group-title { font-size: .95rem; font-weight: 700; color: var(--muted); text-transform: none;
  margin: 0 0 .5rem; padding-bottom: .35rem; border-bottom: 1px solid var(--border); }
/* upsell */
.pdx-related { margin-top: 2.8rem; padding-top: 1.9rem; border-top: 1px solid #e6eaf1; }
.pdx-gallery { align-self: start; }
.pdx-related .rel-note { margin: -.4rem 0 1rem; }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(15,45,90,.05); }
.spec-table th, .spec-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }

/* RFQ cart */
.rfq-layout { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.rfq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: .7rem; }
.rfq-item-main { display: flex; justify-content: space-between; gap: 1rem; }
.rfq-name { font-weight: 700; }
.rfq-price { white-space: nowrap; color: var(--brand-dark); font-weight: 700; }
.rfq-item-controls { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.qty-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; flex: 1; }
.qty-form input[type=number] { width: 72px; padding: .4rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.qty-form input[type=text] { flex: 1; min-width: 120px; padding: .4rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.btn-mini { border: 1px solid var(--border); background: #f3f6fa; border-radius: 6px; padding: .4rem .7rem; cursor: pointer; font: inherit; }
.btn-mini.danger { color: #c0392b; }
.rfq-line-total { text-align: right; color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.rfq-summary { background: #eef4fc; border: 1px solid #cfe0f7; border-radius: var(--radius); padding: 1rem; }
.rfq-total-row { display: flex; justify-content: space-between; font-size: 1.1rem; }
.rfq-form-wrap { position: relative; }
.rfq-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.rfq-form h2 { margin-top: 0; }
.req-type { display: grid; gap: .5rem; margin-bottom: 1rem; }
.req-opt { display: flex; gap: .6rem; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: .7rem; cursor: pointer; }
.req-opt span { display: flex; flex-direction: column; }
.req-opt small { color: var(--muted); }
.req-opt.hot { border-color: #f0b8b8; }
.fld { display: block; margin: .6rem 0; font-size: .92rem; }
.req { color: #dc2626; font-weight: 700; }  /* ดอกจันบังคับกรอก */
.fld input, .fld select, .fld textarea { width: 100%; padding: .55rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; margin-top: .2rem; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.tor-only { display: none; }
body.tor-mode .tor-only { display: block; }
.ref-no { font-size: 1.1rem; }

/* Configurator (Quick Mode) */
.cfg-intro { text-align: center; }
.cfg { max-width: 640px; margin: 1.5rem auto; }
.cfg-progress { display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.2rem; }
.cfg-progress .dot { width: 10px; height: 10px; border-radius: 999px; background: #cdd8e3; }
.cfg-progress .dot.active { background: var(--brand); }
.step { border: 0; padding: 0; margin: 0; }
body.cfg-js .step { display: none; }
body.cfg-js .step.active { display: block; }
.step legend { font-size: 1.25rem; font-weight: 800; margin-bottom: 1rem; text-align: center; width: 100%; }
.opt-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .7rem; }
.opt-cards.two { grid-template-columns: 1fr 1fr; max-width: 420px; margin: 0 auto; }
.opt-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 1.2rem .6rem; cursor: pointer; }
.opt-card input { position: absolute; opacity: 0; }
.opt-card:has(input:checked) { border-color: var(--brand); background: #eef4fc; box-shadow: 0 4px 14px rgba(26,77,143,.14); }
.opt-emoji { font-size: 1.8rem; }
.opt-title { font-weight: 800; }
.opt-sub { color: var(--muted); font-size: .85rem; }
.cfg-budget { width: 100%; padding: .9rem; border: 2px solid var(--border); border-radius: var(--radius); font: inherit; text-align: center; }
.cfg-hint { color: var(--muted); font-size: .9rem; text-align: center; margin-top: .8rem; }
.cfg-nav { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.4rem; }
.cfg-nav .next, .cfg-nav [type=submit] { margin-left: auto; }
.cfg-foot { text-align: center; }

/* Configurator result — 3 package cards */
.cfg-result-head { text-align: center; }
.pkg-row { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.2rem 0; }
.pkg-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; display: flex; flex-direction: column; }
.pkg-card.featured { border: 2px solid var(--brand); box-shadow: 0 8px 24px rgba(26,77,143,.14); }
.pkg-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .78rem; font-weight: 800; padding: .2rem .9rem; border-radius: 999px; }
.pkg-grade { margin: 0 0 .3rem; }
.pkg-price { font-size: 1.7rem; font-weight: 800; color: var(--brand-dark); }
.pkg-price .unit { font-size: .9rem; font-weight: 600; color: var(--muted); }
.pkg-price.ask { font-size: 1.2rem; color: var(--muted); }
.pkg-budget { display: inline-block; margin: .3rem 0; font-size: .85rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; }
.pkg-budget.ok { background: #e7f7ee; color: #0a7d43; }
.pkg-budget.over { background: #fdecec; color: #c0392b; }
.pkg-summary { color: var(--muted); margin: .5rem 0; }
.pkg-items { list-style: none; padding: 0; margin: .5rem 0 1rem; flex: 1; }
.pkg-items li { padding: .35rem 0; border-bottom: 1px dashed var(--border); font-size: .93rem; }
.pkg-items li::before { content: "✓ "; color: var(--brand); font-weight: 800; }
.cfg-disclaimer { text-align: center; }

.cfg-adv-link { text-align: center; margin: 1rem 0; }

/* Configurator advanced */
.cfg-adv-head { text-align: center; }
.cfg-adv-loading { text-align: center; color: var(--muted); padding: 2rem; }
.adv-toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin: 1rem 0 .6rem; }
.adv-budget-in input { width: 130px; padding: .5rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.budget-bar { position: relative; height: 34px; border-radius: 999px; background: #e8edf3; overflow: hidden; margin: .4rem 0 1rem; }
.budget-fill { height: 100%; transition: width .25s; }
.budget-bar.green .budget-fill { background: #21a366; }
.budget-bar.yellow .budget-fill { background: #e0a400; }
.budget-bar.red .budget-fill { background: #d0402c; }
.budget-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; color: #12386a; }
.adv-sug { padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1rem; font-size: .93rem; }
.adv-sug.down { background: #fdecec; color: #a5311f; }
.adv-sug.up { background: #e7f7ee; color: #0a7d43; }
.apply-sug { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; padding: .1rem .7rem; font: inherit; cursor: pointer; margin-left: .3rem; }
.adv-rows { display: flex; flex-direction: column; gap: .5rem; }
.adv-row { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: .8rem; display: grid; grid-template-columns: 1fr; gap: .5rem; }
.adv-cat { font-weight: 700; }
.grade-group { display: flex; gap: .3rem; }
.grade-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; border: 1px solid var(--border); background: #f6f8fb; border-radius: 8px; padding: .4rem; cursor: pointer; font: inherit; font-size: .85rem; }
.grade-btn small { color: var(--muted); font-size: .72rem; }
.grade-btn.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.grade-btn.on small { color: #dbe6f5; }
.grade-btn:disabled { opacity: .4; cursor: not-allowed; }
.adv-qty input { width: 70px; padding: .35rem; border: 1px solid #cbd5e1; border-radius: 6px; }
.adv-line { font-weight: 700; color: var(--brand-dark); text-align: right; }
.room-plan-wrap { margin: 1.4rem 0; }
.room-plan { position: relative; width: 100%; aspect-ratio: 16/9; background: repeating-linear-gradient(45deg,#eef2f7,#eef2f7 10px,#e9eef4 10px,#e9eef4 20px); border: 2px dashed #c3cfdb; border-radius: 12px; touch-action: none; }
.plan-chip { position: absolute; background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .5rem; border-radius: 8px; cursor: grab; user-select: none; touch-action: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.plan-chip:active { cursor: grabbing; }
.btn.lg { padding: 1rem; font-size: 1.05rem; margin-top: 1rem; }

@media (min-width: 720px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .pdx-hero { grid-template-columns: 1fr 1fr; align-items: start; }
  .rfq-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .rfq-form-wrap { position: sticky; top: 80px; }
  .pkg-row { grid-template-columns: repeat(3, 1fr); align-items: start; }
  .adv-row { grid-template-columns: 1.2fr 2fr .8fr 1fr; align-items: center; }
  .grade-group { min-width: 260px; }
}

/* ============================================================
   DESIGN UPGRADE (จากทีมออกแบบ) — การ์ดยกระดับ · section header ·
   แถบ SLA กลางหน้า · case study รูปใหญ่ · น้ำหนักฟอนต์
   ============================================================ */

/* น้ำหนักฟอนต์: หัวข้อ 700 (Prompt) / เนื้อหา 400 (Sarabun) */
h1 { font-weight: 700; }
h2, .section-title, .page-h1 { font-weight: 700; }
h3 { font-weight: 600; }

/* การ์ด: เอาเส้นขอบทื่อออก → ใช้เงาจาง + โค้ง 16px + ยกตัวเมื่อ hover */
.card, .value, .tier-card, .gov-card, .product-card, .pkg-card, .contact-card, .post-card {
  border: 1px solid rgba(15, 45, 90, .05);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(15, 45, 90, .06);
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover, .value:hover, .tier-card:hover, .gov-card:hover,
.product-card:hover, .pkg-card:hover, .post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 36px rgba(15, 45, 90, .13);
}
/* คงสีเน้นของการ์ดพิเศษไว้ */
.card-feature { border-color: var(--gold); background: #fffaf0; }
.pkg-card.featured { border: 2px solid var(--gold); }
.gov-card.highlight, .contact-card.highlight { background: #f0f6ff; }

/* Section header: เส้นประดับสีทองนำหน้าหัวข้อ (คุมโทนแบรนด์) */
.section-title { border-left: none; padding-left: 0; display: flex; align-items: center; gap: .7rem; }
.section-title::before { content: ""; width: 30px; height: 3px; background: var(--gold); border-radius: 2px; flex: 0 0 auto; }

/* แถบ SLA กลางหน้า — สีตัดกับพื้นหลัง เห็นชัดเวลาเลื่อนจอ */
.sla-banner {
  margin-inline: calc(50% - 50vw);
  background: linear-gradient(120deg, #ffcc33 0%, #ffd85e 100%);
  color: var(--brand-dark);
  padding: 2.2rem 1.25rem;
}
.sla-banner-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; justify-content: center; text-align: center;
}
.sla-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1; white-space: nowrap; }
.sla-copy { font-size: 1rem; }
.sla-copy strong { font-family: var(--font-display); font-size: 1.15rem; display: block; }
.btn-navy { background: var(--brand-dark); color: #fff; }
.btn-navy:hover { box-shadow: 0 12px 26px rgba(15, 45, 90, .3); }

/* Case study teaser — รูปใหญ่โชว์บรรยากาศ + ป้ายข้อความสั้น */
.case-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.4rem; }
.case-tile {
  position: relative; display: block; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16/9; color: #fff; box-shadow: 0 6px 22px rgba(15, 45, 90, .12);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15, 45, 90, .2); }
.case-photo { position: absolute; inset: 0; background-image: linear-gradient(135deg, #0f2d5a, #24578f); background-size: cover; background-position: center; background-repeat: no-repeat; }
.case-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 20, 40, .78) 0%, rgba(6, 20, 40, .15) 55%, transparent 100%); }
.case-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.1rem 1.2rem; z-index: 2; }
.case-cap .tag { font-family: var(--mono, monospace); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.case-cap h3 { color: #fff; margin: .2rem 0 0; font-size: 1.1rem; }
.case-loc { color: #d7e3f2; font-size: .82rem; margin-top: .3rem; }
.case-sum { color: #cdd9e8; font-size: .85rem; line-height: 1.4; margin: .3rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case-grid-full { margin-top: 1.4rem; }

/* ---- ผลงานติดตั้ง carousel (เฉพาะหน้าแรก — เลื่อน/ปัด + ลูกศร) ---- */
.case-carousel { position: relative; }
.case-carousel .case-grid {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding-bottom: .2rem;
}
.case-carousel .case-grid::-webkit-scrollbar { display: none; }
.case-carousel .case-tile { flex: 0 0 84%; scroll-snap-align: start; }
.cc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 6px 18px rgba(15, 45, 90, .2);
  color: var(--brand-dark); font-size: 1.6rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  transition: background .15s, transform .15s, opacity .15s;
}
.cc-arrow:hover { background: #eef4fc; }
.cc-arrow[disabled] { opacity: .3; cursor: default; pointer-events: none; }
.cc-prev { left: -8px; }
.cc-next { right: -8px; }
@media (min-width: 720px) {
  .case-carousel .case-tile { flex-basis: calc((100% - 2rem) / 3); }
}
@media (max-width: 719px) { .cc-arrow { display: none; } }  /* มือถือ = ปัดเอา */

@media (min-width: 720px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .sla-banner-inner { flex-wrap: nowrap; justify-content: space-between; text-align: left; }
}

/* ===== Budget approaches (3 แนวทางในงบเดียว) + compatibility ===== */
.budget-adjust { display: inline-flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.budget-adjust label { font-size: .9rem; color: var(--muted); }
.budget-adjust input { display: block; margin-top: .2rem; padding: .5rem .6rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; width: 160px; }

.approach-row { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin: 1.4rem 0; align-items: start; }
.approach-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(15,45,90,.10); transition: transform .18s ease, box-shadow .18s ease; }
.approach-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15,45,90,.16); }
.approach-card.has-conflict { border-color: #f0b8b8; }
/* การ์ดแนะนำ (สมดุล) — ขอบทอง + ยกเด่น + ป้าย */
.approach-card.recommended { border: 2px solid var(--gold); box-shadow: 0 16px 40px rgba(197,160,89,.28); }
.ap-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--gold-ink); font-family: var(--font-display); font-weight: 700; font-size: .78rem; padding: .28rem .9rem; border-radius: 999px; box-shadow: 0 4px 12px rgba(197,160,89,.4); white-space: nowrap; }
.ap-head h3 { margin: 0; }
.ap-desc { color: var(--muted); font-size: .93rem; margin: .3rem 0 .9rem; min-height: 2.6em; }
.ap-price { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--brand-dark); }
.ap-price .unit { font-size: .9rem; font-weight: 600; color: var(--muted); }
.spend-bar { height: 6px; background: #eef1f5; border-radius: 999px; overflow: hidden; margin: .55rem 0 .35rem; }
.spend-fill { height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); }
.spend-note { font-size: .8rem; color: var(--muted); }

.compat-badge { margin: .9rem 0 .3rem; padding: .5rem .8rem; border-radius: 10px; font-weight: 700; font-size: .9rem; }
.compat-badge.ok { background: #e2f2e9; color: #21774e; }
.compat-badge.review { background: #fff3d6; color: #9a6a00; }
.compat-badge.conflict { background: #fdecec; color: #b5311f; }
.compat-detail { font-size: .85rem; margin-bottom: .6rem; }
.compat-detail summary { cursor: pointer; color: var(--muted); }
.compat-detail ul { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.compat-detail .cf { display: grid; grid-template-columns: auto 1fr; gap: .5rem; align-items: start; }
.cf-ic { font-weight: 800; }
.cf.ok .cf-ic { color: #21774e; }
.cf.review .cf-ic { color: #9a6a00; }
.cf.conflict .cf-ic { color: #b5311f; }

.ap-items { list-style: none; padding: 0; margin: .7rem 0 1rem; flex: 1; }
.ap-items li { display: flex; align-items: baseline; gap: .55rem; padding: .42rem 0; border-bottom: 1px dashed #eef1f5; font-size: .9rem; }
.ap-items li::before { content: "✓"; color: #a7d7be; font-weight: 700; font-size: .82rem; flex: none; }
.ap-item-name { color: var(--ink); font-weight: 600; line-height: 1.35; }
.ap-item-qty { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* หน้าทบทวนรายการก่อนออกใบเสนอราคา (/quote/review) */
.review-head { margin: 1rem 0 1.2rem; }
.review-grid { align-items: start; }
.rl-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .4rem; }
.rl-head h3 { margin: 0; }
.btn.rl-edit { padding: .45rem .8rem; font-size: .85rem; }
.rl-group { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--brand); background: #eef4fc; border-radius: 7px; padding: .3rem .6rem; margin: .9rem 0 .3rem; }
.rl-row { display: flex; align-items: baseline; gap: .6rem; padding: .5rem .2rem; border-bottom: 1px dashed #eef1f5; }
.rl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rl-name strong { color: var(--ink); font-weight: 600; line-height: 1.3; }
.rl-sub { color: var(--muted); font-size: .82rem; }
.rl-qty { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rl-price { width: 110px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.rl-sum { display: flex; justify-content: space-between; padding: .35rem .2rem; font-size: .95rem; }
.rl-sum:first-of-type { margin-top: .7rem; border-top: 1px solid var(--border); padding-top: .7rem; }
.rl-sum.grand { margin-top: .6rem; align-items: center; background: #fff7e0; border: 2px solid var(--gold); border-radius: 12px; padding: .85rem 1rem; box-shadow: 0 4px 14px rgba(196,141,32,.15); }
.rl-sum.grand > span:first-child { font-weight: 700; font-size: 1.02rem; }
.rl-sum.grand b { font-family: var(--font-display); font-size: 1.55rem; color: var(--brand-dark); }
.rl-redesign { margin-top: 1rem; padding: .75rem .9rem; border-radius: 10px; background: #f0f6ff; border: 1px dashed #cfe0f7; font-size: .88rem; color: var(--muted); }
.rl-redesign a { font-weight: 600; }
/* กล่องคำถาม ค่าติดตั้ง / TOR */
.q-block { border: 1px solid var(--border); border-radius: 10px; padding: .7rem .8rem; margin-bottom: .9rem; background: #fbfcfe; }
.q-label { font-weight: 700; font-size: .9rem; margin-bottom: .45rem; }
.opt-line { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; font-size: .9rem; cursor: pointer; }
.opt-line input { flex: none; }
/* กล่อง "ระบบชุดนี้ทำอะไรได้บ้าง" */
.cap-box { background: linear-gradient(180deg, #f2f8ff, #fff); border: 1px solid #cfe0f7; border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1.2rem; }
.cap-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--brand-dark); margin-bottom: .7rem; }
.cap-grid { display: grid; grid-template-columns: 1fr; gap: .7rem; }
.cap-item { display: flex; gap: .7rem; align-items: flex-start; }
.cap-ic { flex: none; font-size: 1.3rem; line-height: 1.3; }
.cap-text { display: flex; flex-direction: column; }
.cap-text strong { color: var(--ink); font-weight: 600; }
.cap-text span { color: var(--muted); font-size: .86rem; }
/* gate เมื่อระบบยังไม่เข้ากัน (conflict) */
.quote-gate { }
.qg-title { font-family: var(--font-display); font-weight: 700; color: #b5311f; margin-bottom: .5rem; }
.qg-lead { font-size: .9rem; color: var(--muted); margin: 0 0 .7rem; }
.qg-item { font-size: .86rem; color: #b5311f; padding: .3rem 0; border-bottom: 1px dashed #f0d0cc; }
.quote-gate .btn { margin-top: .8rem; }
@media (min-width: 720px) { .cap-grid { grid-template-columns: 1fr 1fr; } }

/* compat panel ในโหมดละเอียด */
.compat-panel { margin: 1rem 0; border-radius: 12px; padding: 1rem 1.2rem; border: 1px solid var(--border); background: var(--card); }
.compat-panel h4 { margin: 0 0 .5rem; font-family: var(--font-display); }
.compat-panel.ok { border-color: #bfe3cf; background: #f2faf5; }
.compat-panel.review { border-color: #f0dca8; background: #fffaf0; }
.compat-panel.conflict { border-color: #f0b8b8; background: #fdf3f3; }
.compat-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.compat-panel .cf { display: grid; grid-template-columns: auto 1fr; gap: .5rem; font-size: .9rem; }

@media (min-width: 900px) {
  .approach-row { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

/* ===== RFQ system-design canvas (node graph) ===== */
.rfq-canvas-wrap { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; box-shadow: 0 4px 20px rgba(15,45,90,.06); }
.canvas-loading { text-align: center; color: var(--muted); padding: 2rem; }
.canvas-head { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.canvas-compat { font-weight: 700; padding: .5rem .9rem; border-radius: 10px; font-size: .92rem; }
.canvas-compat.ok { background: #e2f2e9; color: #21774e; }
.canvas-compat.review { background: #fff3d6; color: #9a6a00; }
.canvas-compat.conflict { background: #fdecec; color: #b5311f; }
.canvas-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.canvas-total { font-size: .9rem; color: var(--muted); }
.canvas-total b { font-family: var(--font-display); font-size: 1.05rem; color: var(--brand-dark); }

.rfq-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
#rfq-canvas { overflow-x: auto; }
.canvas-stage { position: relative; height: 620px; min-width: 780px; border-radius: 12px; overflow: hidden; }
.zone { position: absolute; left: 0; right: 0; }   /* top/height ตั้งจาก JS (dynamic ตามจำนวนอุปกรณ์) */
.zone-audio { background: linear-gradient(#edf4ff, #f7fbff); border-bottom: 1px dashed #cad9ec; }
.zone-video { background: linear-gradient(#fff8f0, #fffdfa); border-bottom: 1px dashed #e8d9bd; }
.zone-infra { background: linear-gradient(#f2f4f7, #f8fafc); }
.zone > span { position: absolute; top: 10px; left: 14px; font-size: .74rem; font-weight: 800; color: var(--muted); letter-spacing: .03em; }
.wires { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.node { position: absolute; z-index: 3; width: 150px; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--muted); border-radius: 12px; padding: 0 0 .5rem; overflow: hidden; cursor: grab; box-shadow: 0 2px 10px rgba(15,45,90,.12); touch-action: none; user-select: none; }
.node:active, .node.dragging { cursor: grabbing; box-shadow: 0 14px 30px rgba(15,45,90,.24); z-index: 6; }
.node:focus-visible { outline: 2px solid var(--brand); }
.node-img { position: relative; height: 80px; background: #f0f4f9; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); }
.node-img img { width: 100%; height: 100%; object-fit: cover; }
.node-ph { font-size: 2rem; }
.node-qty { position: absolute; top: 6px; right: 6px; background: var(--brand-dark); color: #fff; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: .05rem .45rem; }
.node-brand { font-weight: 800; font-size: .8rem; line-height: 1.25; padding: .4rem .6rem 0; }
.node-model { font-size: .75rem; color: var(--muted); line-height: 1.3; padding: .05rem .6rem 0; }
.np-img { width: 100%; max-height: 160px; object-fit: contain; background: #f0f4f9; border-radius: 10px; }
.node.ok { border-left-color: #21a366; }
.node.review { border-left-color: #e0a400; }
.node.conflict { border-left-color: #d0402c; }
.node-cat { font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.node-name { font-weight: 700; font-size: .92rem; line-height: 1.25; margin: .1rem 0; }
.node-meta { font-size: .78rem; color: var(--muted); }
.node-meta .ndg { background: #eef2f7; border-radius: 4px; padding: 0 .35rem; }
.node-price { font-weight: 700; color: var(--brand-dark); font-size: .82rem; padding: .15rem .6rem 0; }
.canvas-disc { margin-top: 1rem; }

/* node detail panel — ลอยข้างการ์ดที่คลิก (โชว์เต็ม ไม่ scroll) */
.node-panel { position: absolute; width: 300px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 18px 44px rgba(15,45,90,.3); z-index: 8; }

/* เมนูเส้น (คลิกเส้นเพื่อตัด) */
.wires .wire-hit { pointer-events: stroke; cursor: pointer; }
.wire-menu { position: absolute; z-index: 9; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 12px 30px rgba(15,45,90,.28); padding: .6rem .7rem; max-width: 240px; }
.wire-menu .wm-title { font-size: .78rem; font-weight: 700; margin-bottom: .45rem; line-height: 1.3; }

/* โหมดต่อสาย */
.connect-banner { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 9; background: var(--brand-dark); color: #fff; font-size: .82rem; font-weight: 700; padding: .45rem .9rem; border-radius: 999px; box-shadow: 0 8px 20px rgba(15,45,90,.3); white-space: nowrap; }
.np-connect { display: block; width: 100%; text-align: center; }
.np-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--border); }
.np-head h3 { margin: .15rem 0 0; font-size: 1.05rem; }
.np-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gold-deep, #b07d24); font-weight: 700; }
.np-close { background: #f2f5f9; border: none; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: 1rem; }
.np-body { padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.np-price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--brand-dark); }
.np-verified { font-size: .8rem; font-weight: 700; padding: .2rem .5rem; border-radius: 6px; align-self: flex-start; }
.np-verified.ok { background: #e2f2e9; color: #21774e; }
.np-verified.review { background: #fff3d6; color: #9a6a00; }
.np-spec { width: 100%; border-collapse: collapse; font-size: .85rem; }
.np-spec th { text-align: left; color: var(--muted); font-weight: 600; padding: .25rem .3rem; width: 45%; }
.np-spec td { padding: .25rem .3rem; }
.np-field { display: block; font-size: .85rem; font-weight: 600; }
.np-field select { width: 100%; margin-top: .25rem; padding: .5rem; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
.np-qty { display: flex; align-items: center; gap: .6rem; }
.np-qty button { width: 32px; height: 32px; border: 1px solid #cbd5e1; background: #f6f8fb; border-radius: 8px; cursor: pointer; font-size: 1.1rem; }
.np-qty .qval { min-width: 2ch; text-align: center; }
.np-ds { font-size: .88rem; }
.add-list { display: flex; flex-direction: column; gap: .4rem; }
.add-opt { text-align: left; background: #f6f8fb; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; cursor: pointer; font: inherit; }
.add-opt:hover { background: #eef4fc; border-color: var(--brand); }

/* picker: จอใหญ่เลือกสินค้า (เปลี่ยนรุ่น/เพิ่มอุปกรณ์) */
.picker-card { max-width: 880px; }
.picker-head { padding: 1.3rem 1.4rem .6rem; }
.picker-head h2 { margin: 0; }
.picker-grid, .cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; padding: .6rem 1.4rem 1.4rem; }
.pick-card { display: flex; flex-direction: column; text-align: left; font: inherit; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; padding: 0 0 .6rem; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.pick-card:hover:not(.off) { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,45,90,.15); border-color: var(--brand); }
.pick-card.off { opacity: .55; cursor: not-allowed; }
.pick-img { height: 100px; background: #f0f4f9; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; border-bottom: 1px solid var(--border); }
.pick-img img { width: 100%; height: 100%; object-fit: cover; }
.pick-body { display: flex; flex-direction: column; gap: .15rem; padding: .5rem .7rem 0; }
.pick-brand { font-weight: 800; font-size: .85rem; line-height: 1.25; }
.pick-model { font-size: .78rem; color: var(--muted); }
.pick-grade { font-size: .72rem; color: var(--muted); background: #eef2f7; border-radius: 4px; padding: 0 .35rem; align-self: flex-start; }
.pick-price { font-weight: 700; color: var(--brand-dark); font-size: .88rem; }
.pick-badge { font-size: .72rem; font-weight: 700; border-radius: 6px; padding: .12rem .4rem; align-self: flex-start; }
.pick-badge.ok { background: #e2f2e9; color: #21774e; }
.pick-badge.review { background: #fff3d6; color: #9a6a00; }
.pick-badge.conflict { background: #fdecec; color: #b5311f; }
.pick-reason { font-size: .7rem; color: #b5311f; line-height: 1.3; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem .6rem; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,45,90,.15); border-color: var(--brand); }
.cat-tile .ct-ic { font-size: 1.8rem; }

/* modal ส่งคำขอ */
.rfq-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.rfq-modal[hidden] { display: none !important; }  /* กัน display:flex ทับ attribute hidden */
.rfq-modal-backdrop { position: fixed; inset: 0; background: rgba(12, 20, 38, .5); }
.rfq-modal-card { position: relative; z-index: 1; background: var(--card); border-radius: 16px; width: 100%; max-width: 460px; box-shadow: 0 24px 60px rgba(12,20,38,.35); }
.rfq-modal-card .rfq-form { padding: 1.4rem; border: none; box-shadow: none; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: #f2f5f9; border: none; border-radius: 8px; width: 32px; height: 32px; cursor: pointer; font-size: 1rem; }

/* Tablet+ */
@media (min-width: 720px) {
  h1 { font-size: 2.4rem; }
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-direction: row; position: static; border: 0; padding: 0; gap: 1.1rem; background: none; }
  .nav-desktop-only { display: revert; }
  .card-row { grid-template-columns: repeat(4, 1fr); }
  .value-row, .gov-grid, .contact-grid, .method-row, .post-list { grid-template-columns: repeat(3, 1fr); }
  .gov-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .tier-list { grid-template-columns: repeat(3, 1fr); }
  .spec-grid { grid-template-columns: 2fr 1fr; }
  .review-grid .spec-aside { position: sticky; top: 20px; align-self: start; }  /* ฟอร์มลอยค้างเวลาเลื่อนดูรายการยาว */
  .foot-cols { grid-template-columns: 2fr 1fr; }
  .config-teaser { flex-direction: row; align-items: center; justify-content: space-between; }
  .hero { padding: 3.5rem 2rem; }
}

/* ===== Logo sections (หน่วยงานที่ไว้วางใจ + แบรนด์ที่จำหน่าย) ===== */
.logos-sec { text-align: center; }
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  margin-top: 1.4rem;
}
.logo-cell {
  background: #fff;
  border: 1px solid #e7ebf1;
  border-radius: 12px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: box-shadow .2s, transform .2s;
}
.logo-cell img {
  max-height: 62px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .2s;
}
.logo-cell:hover { box-shadow: 0 8px 22px rgba(12,20,38,.10); transform: translateY(-2px); }
.logos-brands .logo-cell { height: 84px; }
@media (min-width: 720px) {
  .logo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}

/* ---- Trust logo marquee (โลโก้วิ่ง) ---- */
.logo-marquee { margin-top: 1.4rem; display: flex; flex-direction: column; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.lm-row { overflow: hidden; }
.lm-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.lm-track.slow { animation: lm-scroll 70s linear infinite; }
.lm-track.med  { animation: lm-scroll 52s linear infinite; }
.lm-track.fast { animation: lm-scroll 40s linear infinite; }
.logo-marquee:hover .lm-track { animation-play-state: paused; }
@keyframes lm-scroll { to { transform: translateX(-50%); } }
.lm-track .logo-cell { flex: 0 0 auto; width: 158px; height: 84px; }
@media (prefers-reduced-motion: reduce) { .lm-track { animation: none !important; } .logo-marquee { -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; } .lm-track { flex-wrap: wrap; width: 100%; justify-content: center; } }

/* ---- แถบขั้นตอน (journey) — คั่นกลาง 2 กริดการ์ด, full-bleed navy ---- */
.journey { margin-inline: calc(50% - 50vw); background: linear-gradient(135deg, #0f2d5a 0%, #1a4a8d 100%); color: #fff; padding: 2.6rem clamp(1rem, 5vw, 3rem); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.journey-inner { max-width: var(--maxw); margin: 0 auto; }
.journey-top { display: flex; flex-direction: column; gap: 1rem; }
.journey h2 { color: #fff; font-size: clamp(1.22rem, 2.4vw, 1.6rem); line-height: 1.3; margin: 0; max-width: 640px; text-wrap: balance; }
.journey-sub { color: #cdddf2; margin: .45rem 0 0; font-size: .98rem; }
.journey-cta { align-self: flex-start; white-space: nowrap; }
@media (min-width: 720px) {
  .journey-top { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.6rem; }
  .journey-cta { align-self: auto; }
}

/* ---- Scroll-reveal (ผลงานติดตั้ง) — ซ่อนเริ่มต้นเฉพาะเมื่อ JS ใส่ .reveal ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.6,.2,1), transform .6s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---- ทำไมต้องเลือกเรา (why-us) ---- */
.whyus { text-align: left; }
.eyebrow-line { font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; display: block; margin-bottom: .3rem; }
.why-grid { margin: 1.4rem 0 0; display: grid; grid-template-columns: 1fr; gap: .8rem; }
.why-card { position: relative; padding: 1.3rem 1.2rem; }
.why-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; background: var(--brand-dark); color: #fff; margin-bottom: .85rem; box-shadow: 0 4px 12px rgba(15,45,90,.18); }
.why-ic svg { width: 24px; height: 24px; }
.why-card h3 { margin: 0 0 .35rem; color: var(--brand-dark); font-size: 1.06rem; }
.why-card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; } }
@media (min-width: 940px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

/* ไอคอนค้นหาในช่อง (แทน emoji 🔍) — วาง SVG ในกล่อง input · self-contained */
.csi-search { position: relative; display: inline-flex; align-items: center; }
.hdr-search .csi-search { display: flex; width: 100%; }
.csi-search > .csi-ic { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.csi-search input[type="search"] { padding-left: 2.1rem; }
/* ไอคอนเส้นทั่วไป (การ์ด/ปุ่ม) — จัดกึ่งกลางกับข้อความ */
.csi-ic { display: inline-block; }
.empty-emoji .csi-ic { width: 1em; height: 1em; }

/* a11y: focus ring ชัดเจนสำหรับผู้ใช้คีย์บอร์ด (เดิมพึ่ง outline ของเบราว์เซอร์ ไม่สม่ำเสมอ) */
:focus-visible { outline: 2px solid var(--brand, #1a4a8d); outline-offset: 2px; border-radius: 3px; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline-offset: 3px; }
/* จอสัมผัส/เมาส์คลิก = ไม่ต้องโชว์ ring (เฉพาะ :focus-visible ตอน tab เท่านั้น) */
