/* LN.CON — หน้าเว็บฝั่งลูกค้า
   แคตตาล็อกวัสดุก่อสร้างแบบทางการ: ขาว + น้ำเงินกรมท่าตามโลโก้ สีส้มอิฐมาจากรูปสินค้าเท่านั้น (ลูกค้าไม่เอาสีส้ม) */

:root {
  --brand: #1d3a8f;           /* น้ำเงินโลโก้ — ปุ่ม ลิงก์ ไอคอน */
  --navy: #0f1f4d;            /* พื้นเข้ม แถบชวนติดต่อ ท้ายเว็บ */
  --navy-2: #14275f;
  --ink: #16213a;
  --muted: #56617a;
  --line: #dde3ed;
  --paper: #f4f6fa;
  --tint: #e9eefa;
  --white: #fff;
  --line-green: #06c755;      /* สีทางการของปุ่มไลน์ */
  --radius: 10px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --wrap: 1200px;
  --gut: 20px;
  --sec: clamp(56px, 8vw, 104px);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink);
  background: var(--white); overflow-x: hidden; text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; font-weight: 700; letter-spacing: -.005em; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; }
svg.line-logo { stroke: none; }
:focus-visible { outline: 3px solid #6f8fe0; outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--white); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border-radius: 8px; border: 1.5px solid var(--brand);
  background: var(--brand); color: var(--white); font: 600 16px/1.3 var(--font); text-decoration: none;
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }
.btn-ghost { background: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--tint); }
.btn-ghost-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); color: var(--white); backdrop-filter: blur(4px); }
.btn-ghost-light:hover { background: rgba(255,255,255,.18); border-color: var(--white); }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: var(--white); }
.btn-line:hover { background: #05b04c; border-color: #05b04c; }
.btn-line svg.line-logo rect { fill: var(--white); }
.btn-line svg.line-logo path:first-of-type { fill: var(--line-green); }
.btn-line svg.line-logo path:last-of-type { fill: var(--white); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- แถบบนสุด + หัวเว็บ ---------- */
.topbar { background: var(--navy); color: #c9d3ec; font-size: 14px; }
.topbar .wrap { display: flex; justify-content: flex-end; gap: 24px; min-height: 38px; align-items: center; }
.tb-item, .tb-item a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.tb-item a:hover { color: var(--white); }
.tb-item svg { width: 16px; height: 16px; }

.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15,31,77,.5); }
.nav .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 700; margin-right: auto; }
.logo img { height: 50px; width: auto; }
.logo-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; position: relative; }
.nav-links a:hover { color: var(--brand); background: var(--paper); }
.nav-links a[aria-current="page"] { color: var(--brand); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--brand); border-radius: 2px; }
.nav-cta { min-height: 44px; padding: 8px 16px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle svg + svg, .nav-open .nav-toggle svg:first-child { display: none; }
.nav-open .nav-toggle svg + svg { display: block; }

@media (max-width: 1080px) {
  .nav-cta span { display: none; }
  .nav-cta { padding: 8px 12px; }
}
@media (max-width: 960px) {
  .nav .wrap { min-height: 64px; gap: 12px; }
  .logo img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 20px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(15,31,77,.35);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    max-height: calc(100vh - 64px); overflow: auto;
  }
  .topbar + .nav .nav-links { inset-block-start: 64px; }
  .nav-open .nav-links { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .topbar .wrap { justify-content: center; gap: 16px; font-size: 13px; }
}
@media (max-width: 479px) { .topbar .tb-item:first-child { display: none; } }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.hero-track { display: flex; transition: transform .7s var(--ease); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero-slide picture, .hero-slide > picture > img, .hero-slide video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide img, .hero-slide video { object-fit: cover; object-position: 50% 45%; width: 100%; height: 100%; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,22,56,.88) 0%, rgba(11,22,56,.66) 42%, rgba(11,22,56,.12) 78%),
  linear-gradient(0deg, rgba(11,22,56,.55), transparent 40%); }
.hero-body { position: relative; z-index: 2; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 72px var(--gut) 104px; }
.hero-title { font-size: clamp(32px, 4.6vw, 58px); font-weight: 700; line-height: 1.3; max-width: 17em; margin: 0 0 18px; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: #dfe6f7; max-width: 34em; margin: 0 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); cursor: pointer; position: relative; transition: background .2s, width .3s var(--ease); }
.hero-dots button::before { content: ''; position: absolute; inset: -20px -4px; }
.hero-dots button[aria-current="true"] { background: var(--white); width: 44px; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: rgba(11,22,56,.3); color: var(--white); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-arrow:hover { background: rgba(255,255,255,.15); }

.hero-compact .hero-slide { min-height: 0; }
.hero-compact .hero-body { padding: 56px var(--gut) 60px; }
.hero-compact .hero-title { font-size: clamp(30px, 4vw, 48px); margin-bottom: 12px; }
.hero-compact .hero-sub { margin-bottom: 0; }
.hero-compact .hero-actions { margin-top: 24px; }
.hero-compact .hero-shade { background: linear-gradient(90deg, rgba(11,22,56,.9) 0%, rgba(11,22,56,.72) 55%, rgba(11,22,56,.35) 100%); }

.hero-split { background: var(--paper); color: var(--ink); }
.hero-split .hero-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 0; }
.hero-split .hero-pic { position: relative; height: 100%; min-height: 420px; }
.hero-split .hero-pic img, .hero-split .hero-pic video { position: absolute; inset: 0; }
.hero-split .hero-sub { color: var(--muted); }
.hero-split .btn-ghost-light { color: var(--brand); border-color: var(--brand); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 15px; color: #c9d3ec; margin-bottom: 14px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--white); text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; opacity: .7; }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a:hover { color: var(--brand); }

@media (max-width: 719px) {
  .hero-slide { min-height: min(70vh, 600px); align-items: flex-end; }
  .hero-shade { background: linear-gradient(0deg, rgba(11,22,56,.92) 0%, rgba(11,22,56,.7) 48%, rgba(11,22,56,.2) 100%); }
  .hero-body { padding: 96px var(--gut) 84px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-ctrl { bottom: 18px; }
  .hero-arrow { display: none; }
  .hero-compact .hero-slide { min-height: 0; }
  .hero-compact .hero-body { padding: 72px var(--gut) 40px; }
  .hero-split .hero-slide { grid-template-columns: 1fr; }
  .hero-split .hero-pic { min-height: 260px; order: -1; }
}

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: var(--sec) 0; }
.sec + .sec:not(.sec-alt) { padding-top: 0; }
.sec-features, .sec-gallery, .sec-faq, .sec-contact { background: var(--paper); }
.sec + .sec-features, .sec + .sec-gallery, .sec + .sec-faq, .sec + .sec-contact { padding-top: var(--sec); }
.sec-features + .sec, .sec-gallery + .sec, .sec-faq + .sec, .sec-contact + .sec { padding-top: var(--sec); }
.sec-head { max-width: 760px; margin: 0 0 clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); }
.sec-head h2::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: 18px; }
.sec-head p { color: var(--muted); font-size: 18px; margin-top: 12px; }
.page-title { background: var(--navy); color: var(--white); padding: 48px 0; }
.page-title h1 { font-size: clamp(30px, 4vw, 44px); }

/* จุดเด่น */
.features-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .features-grid { grid-template-columns: repeat(min(3, var(--cols)), 1fr); } }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(var(--cols), 1fr); gap: 20px; } }
.feature { background: var(--white); border-radius: var(--radius); padding: 24px 20px; border: 1px solid var(--line);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(15,31,77,.45); }
.feature-icon { width: 52px; height: 52px; border-radius: 12px; background: var(--tint); color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 15.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 479px) {
  .feature { padding: 18px 14px; }
  .feature-icon { width: 44px; height: 44px; margin-bottom: 12px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 14px; }
}

/* เกี่ยวกับ */
.about { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) {
  .about { grid-template-columns: 1.1fr 1fr; }
  .about.pic-right > .about-pic { order: 2; }
  .about.is-tall { grid-template-columns: minmax(260px, 380px) 1fr; }
  .about.is-tall.pic-right { grid-template-columns: 1fr minmax(260px, 380px); }
  .about.no-pic { grid-template-columns: 1fr; max-width: 780px; }
}
.about-pic { border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.about-pic img, .about-pic video { width: 100%; height: 100%; object-fit: contain; }
.about-video { max-width: 380px; width: 100%; margin: 0 auto; background: #000; }
.about-text h2 { font-size: clamp(28px, 3.4vw, 40px); color: var(--navy); margin-bottom: 20px; }
.about-text h2::before { content: ''; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--brand); margin-bottom: 18px; }
.about-text p { color: #2f3a55; }
.about-text .btn { margin-top: 12px; }

/* สินค้า */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); align-items: start; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(var(--cols), 1fr); gap: 24px; } }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; height: 100%; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -24px rgba(15,31,77,.5); }
.card-pic { background: var(--paper); aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.card-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.card-nopic { display: flex; align-items: center; justify-content: center; color: #9aaad0;
  background: repeating-linear-gradient(0deg, var(--tint) 0 22px, #dfe6f6 22px 24px); }
.card-nopic svg { width: 48px; height: 48px; stroke-width: 1.25; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 19px; color: var(--navy); }
.card-body p { font-size: 15.5px; color: var(--muted); line-height: 1.65; }
.card-body .btn { margin-top: auto; }
/* หมวดที่มีสินค้าชิ้นเดียว: การ์ดแนวนอน ไม่ให้รูปเดียวยืดเต็มจอ */
.cards-one { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .cards-one .card { flex-direction: row; }
  .cards-one .card-pic { flex: 0 0 50%; }
  .cards-one .card-body { padding: 28px; justify-content: center; }
  .cards-one .card-body h3 { font-size: 22px; }
  .cards-one .card-ask { margin-top: 8px; }
}
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--brand); background: var(--tint); padding: 2px 10px; border-radius: 99px; }
.card-ask { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15.5px; color: var(--brand); text-decoration: none; min-height: 44px; }
.card-ask:hover span { text-decoration: underline; }
.card-ask svg { width: 22px; height: 22px; }
.card-price { font-weight: 700; color: var(--navy); }
.card-price s { color: var(--muted); font-weight: 400; margin-left: 8px; }
.card-sold { color: #b42318; font-weight: 600; }
@media (max-width: 479px) {
  .card-body { padding: 12px 12px 14px; gap: 6px; }
  .card-body h3 { font-size: 16px; }
  .card-body p { font-size: 14px; }
  .card-ask { font-size: 14px; }
}
.rows { display: grid; gap: 12px; }
.row-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.row-item .card-pic { border-radius: 6px; overflow: hidden; }
.row-item .card-nopic svg { width: 32px; height: 32px; }
.row-text h3 { font-size: 18px; color: var(--navy); }
.row-text p { color: var(--muted); font-size: 15.5px; }
.row-text .tag { display: inline-block; margin-bottom: 4px; }
@media (max-width: 640px) {
  .row-item { grid-template-columns: 96px 1fr; gap: 14px; }
  .row-cta { grid-column: 1 / -1; }
}

/* ผลงาน — คงสัดส่วนไฟล์จริง ไม่มีกรอบ ไม่มีเงา (design-1d1d) */
.gal { columns: 2; column-gap: 10px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols); column-gap: 16px; } }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
@media (min-width: 1024px) { .gal-item { margin-bottom: 16px; } }
.gal-pic { display: block; overflow: hidden; border-radius: 6px; background: var(--line); cursor: zoom-in; }
.gal-pic img, .gal-pic video { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
a.gal-pic:hover img { transform: scale(1.03); }
.gal-item figcaption { padding: 8px 2px 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.gal-item figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* เสียงจากลูกค้า */
.quotes { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; } }
.quote { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-size: 17px; color: #2f3a55; position: relative; padding-top: 28px; }
.quote blockquote::before { content: '“'; position: absolute; top: -14px; left: -2px; font-size: 64px; line-height: 1; color: var(--brand); font-family: Georgia, serif; }
.quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote figcaption img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote figcaption b { display: block; color: var(--navy); }
.quote figcaption span span { font-size: 14.5px; color: var(--muted); }

/* คำถามที่พบบ่อย */
.faq-wrap { max-width: 880px; }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 17px; color: var(--navy); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--brand); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq-a { padding: 0 20px 20px; color: #3a4560; }

/* แถบชวนติดต่อ */
.cta-band { padding: clamp(48px, 7vw, 80px) 0; text-align: center; position: relative; overflow: hidden; }
.cta-dark { background: var(--navy); color: var(--white); }
.cta-dark::before { content: ''; position: absolute; inset: 0; opacity: .07;
  background: repeating-linear-gradient(0deg, transparent 0 30px, #fff 30px 32px),
              repeating-linear-gradient(90deg, transparent 0 62px, #fff 62px 64px);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.cta-soft { background: var(--tint); color: var(--navy); }
.cta-band .wrap { position: relative; }
.cta-kicker { font-weight: 600; color: #a9b8e6; margin-bottom: 8px; }
.cta-band h2 { font-size: clamp(24px, 3vw, 36px); max-width: 26em; margin: 0 auto 28px; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* ติดต่อ */
.contact { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.15fr; gap: 40px; } }
.contact-note { font-size: 18px; color: #2f3a55; margin-bottom: 24px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-list small { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }
.contact-list a, .contact-list li > span > span { font-weight: 600; font-size: 18px; color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }
.ci { width: 46px; height: 46px; border-radius: 10px; background: var(--white); border: 1px solid var(--line); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ci svg { width: 22px; height: 22px; }
.ci-line svg { width: 28px; height: 28px; }
.hours-box { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.hours-box h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--navy); margin-bottom: 8px; }
.hours-box h3 svg { color: var(--brand); }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.closed { color: #b42318; }
.lead { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; box-shadow: 0 24px 48px -36px rgba(15,31,77,.5); }
.lead h3 { font-size: 21px; color: var(--navy); }
.f2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .f2 { grid-template-columns: 1fr 1fr; } }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: #2f3a55; }
.lead input, .lead textarea, .lead select { width: 100%; font: 400 16px/1.5 var(--font); color: var(--ink); padding: 12px 14px; min-height: 48px;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.lead textarea { resize: vertical; min-height: 120px; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,58,143,.15); }
.lead .btn { width: 100%; }
.msg { margin: 0; font-size: 15px; min-height: 1.5em; }
.msg.ok { color: #067647; }
.msg.bad { color: #b42318; }
.contact-map { margin-top: 24px; }
.map { width: 100%; height: 360px; border: 0; border-radius: var(--radius); display: block; }
.map-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; }

/* ข้อความอิสระ */
.sec-text { padding-top: clamp(40px, 6vw, 72px); }
.prose { max-width: 760px; font-size: 18px; color: #2f3a55; }
.prose-wide { max-width: none; }
.prose h2 { font-size: clamp(24px, 2.8vw, 32px); color: var(--navy); margin-bottom: 16px; }
.prose h3 { font-size: 21px; color: var(--navy); margin: 1.4em 0 .5em; }

/* บทความ */
.a-wrap { max-width: 820px; }
.a-wrap h1 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); margin-bottom: 10px; }
.a-meta { color: var(--muted); font-size: 15px; }
.a-cover { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.a-lead { font-size: 20px; color: #2f3a55; }
.a-toc { background: var(--paper); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; }
.a-body h2 { margin: 1.6em 0 .6em; font-size: 28px; color: var(--navy); }
.a-fig { margin: 1.5em 0; }
.a-fig figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; }
.a-body blockquote { border-left: 4px solid var(--brand); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--navy); }
.a-cta, .a-embed { margin: 32px 0; padding: 24px; background: var(--tint); border-radius: var(--radius); }
.a-embed h3 { margin-bottom: 14px; color: var(--navy); }

/* ท้ายเว็บ */
.foot { background: var(--navy); color: #c3cde6; padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 15.5px; }
.foot .wrap { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 48px; } }
.foot-logo { display: inline-block; background: var(--white); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.foot-logo img { height: 52px; width: auto; }
.foot-brand > b { display: block; color: var(--white); font-size: 19px; margin-bottom: 6px; }
.foot-about { font-size: 14.5px; opacity: .85; }
.foot h2 { font-size: 16px; color: var(--white); margin-bottom: 14px; letter-spacing: .02em; }
.foot-col nav { display: grid; gap: 2px; }
.foot a { color: #dfe6f7; text-decoration: none; }
.foot a:hover { color: var(--white); text-decoration: underline; }
.foot-col nav a { padding: 6px 0; }
.foot-col p { margin: 0 0 10px; }
.foot-col p a, .foot-col p { display: flex; align-items: center; gap: 10px; }
.foot-col svg { width: 18px; height: 18px; color: #8fa5df; }
.foot-col svg.line-logo { width: 20px; height: 20px; }
.foot-hours { margin-top: 6px; }
.foot-hours .hours li { padding: 2px 0; justify-content: flex-start; gap: 10px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.social a:hover { background: rgba(255,255,255,.1); text-decoration: none; }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: 14px; opacity: .75; }

/* ปุ่มลอยมือถือ: ไลน์กับโทรเท่านั้น สูงไม่เกิน 60px */
.float-contact { display: none; }
@media (max-width: 767px) {
  .float-contact { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    gap: 8px; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -16px rgba(15,31,77,.4); }
  .float-contact a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; }
  .fc-line { background: var(--line-green); color: var(--white); }
  .fc-line svg.line-logo rect { fill: var(--white); }
  .fc-line svg.line-logo path:first-of-type { fill: var(--line-green); }
  .fc-line svg.line-logo path:last-of-type { fill: var(--white); }
  .fc-call { background: var(--brand); color: var(--white); }
  .float-contact svg { width: 22px; height: 22px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}

/* กล่องดูรูปขยาย */
dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; overflow: visible; }
dialog.light::backdrop { background: rgba(8,15,38,.9); }
dialog.light img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; border-radius: 6px; }
dialog.light p { color: #dfe6f7; text-align: center; margin: 10px 0 0; }
dialog.light button { position: absolute; top: -52px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ปรากฏตอนเลื่อนถึง — ขยับขึ้น 20px จางเข้า 500ms เล่นครั้งเดียว */
.rv-on .rv { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .2s var(--ease); }
.rv-on .rv.in { opacity: 1; transform: none; }
.rv-on .card.rv.in:hover, .rv-on .feature.rv.in:hover { transform: translateY(-3px); }

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

/* พื้นที่กดอย่างน้อย 44x44 ทุกลิงก์ (qa-1d1d) */
.topbar .wrap { min-height: 44px; }
.tb-item a, .crumbs a, .contact-list a, .foot-col nav a, .foot-col p a, .map-link, .logo { min-height: 44px; display: inline-flex; align-items: center; }
.logo img { min-height: 44px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 960px) { .nav-links a { min-height: 52px; display: flex; } }
.foot-col p { margin: 0; }

/* แบนเนอร์รูปกราฟิกของลูกค้า — เต็มความกว้าง สัดส่วนจริง ไม่ครอป */
.hero-graphic { background: var(--paper); }
.hero-graphic picture, .hero-graphic img, .hero-graphic video { display: block; width: 100%; height: auto; }

/* การ์ดข้อมูลการติดต่อ (หน้าแรก) */
.sec-ccard { padding: var(--sec) 0; }
.ccard { background: var(--navy); color: #dfe6f7; border-radius: 18px; padding: clamp(24px, 4vw, 48px);
  display: grid; gap: 32px; grid-template-columns: 1fr; position: relative; overflow: hidden; }
.ccard::before { content: ''; position: absolute; inset: 0; opacity: .06; pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 30px, #fff 30px 32px), repeating-linear-gradient(90deg, transparent 0 62px, #fff 62px 64px); }
.ccard > * { position: relative; }
@media (min-width: 860px) { .ccard { grid-template-columns: 1fr auto; align-items: center; gap: 56px; } }
.ccard h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.ccard-note { color: #b9c6e8; margin-bottom: 18px; }
.ccard-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ccard-list li { display: flex; align-items: center; gap: 14px; padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ccard-list small { display: block; font-size: 14px; color: #9fb0dc; line-height: 1.4; }
.ccard-list a, .ccard-list li > span > span { color: var(--white); font-weight: 600; font-size: 17px; text-decoration: none; word-break: break-word; min-height: 0; }
.ccard-list a { display: inline-flex; min-height: 44px; align-items: center; }
.ccard-list a:hover { text-decoration: underline; }
.ccard .ci { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #c9d6ff; }
.ccard-hours { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; color: #c3cde6; }
.ccard-hours svg { color: #8fa5df; }
.ccard-hours .hours { width: 100%; }
.ccard-hours .hours li { justify-content: flex-start; gap: 12px; color: var(--white); font-weight: 600; }
.ccard-side { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.ccard-qr p, .ccard-follow b { margin: 10px 0 0; color: var(--white); font-weight: 600; }
.ccard-follow b { display: block; margin: 0 0 10px; letter-spacing: .02em; }
.ccard-follow .social { margin: 0; justify-content: center; }
.ccard-follow .social a { color: var(--white); }

/* QR แอดไลน์ */
.qr { display: block; width: 180px; max-width: 100%; background: var(--white); border-radius: 12px; padding: 8px; }
.qr svg { display: block; width: 100%; height: auto; stroke: none; }
.contact-qr { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.contact-qr .qr { width: 132px; border: 1px solid var(--line); }
.contact-qr p { margin: 0; font-weight: 600; color: var(--navy); }
.foot-qr { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.foot-qr .qr { width: 104px; padding: 6px; border-radius: 8px; }
.foot-qr span { font-size: 14.5px; }

/* แท็บหมวดผลงาน */
.gal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.gal-tabs button { min-height: 44px; padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--white);
  color: var(--ink); font: 600 15.5px/1.3 var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.gal-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.gal-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--white); }
@media (max-width: 479px) { .gal-tabs button { padding: 8px 14px; font-size: 14.5px; } }
.gal-item[hidden] { display: none; }

/* โลโก้แบรนด์ในปุ่มโซเชียล — ขนาดเต็มช่อง ไม่ใช่ไอคอนเส้น */
.social a svg.line-logo { width: 26px; height: 26px; }
