/* self-hosted fonts 2026-10-06 */
@font-face{font-family:"Kanit";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/kanit-thai-500-normal.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Kanit";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/kanit-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Kanit";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/kanit-thai-600-normal.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Kanit";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/kanit-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Sarabun";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/sarabun-thai-400-normal.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Sarabun";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/sarabun-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Sarabun";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/sarabun-thai-600-normal.woff2) format("woff2");unicode-range:U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC}
@font-face{font-family:"Sarabun";font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/sarabun-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* GY Asia demo — static catalog site
   Look taken from the user's "GY กันซึมดาดฟ้า" reference page:
   orange brand, Kanit headings + Sarabun body, clean panels, light/dark aware.
   LINE green is used only on LINE buttons (functional colour). */

:root {
  --brand: #FF4713; --brand-ink: #C8360B; --brand-soft: #FFF1EB;
  --ink: #231F1C; --muted: #6B625C; --line: #EAE3DE;
  --bg: #FFFFFF; --panel: #FAF7F5; --foot: #353535; --foot-ink: #FFFFFF;
  --line-green: #06C755; --line-green-deep: #05A548;
  /* colours used by the layer diagram */
  --concrete: #B9B2AC; --concrete-d: #8E8680; --primer: #E9D9B8; --mesh: #FFFFFF;
  --coat1: #FF8A5C; --coat2: #FF4713; --water: #4A90C9;
  --f-head: "Kanit", system-ui, "Leelawadee UI", Tahoma, sans-serif;
  --f-body: "Sarabun", system-ui, "Leelawadee UI", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --brand: #FF6A3D; --brand-ink: #FF8A63; --brand-soft: #3A2119;
    --ink: #F3EEEA; --muted: #B3AAA3; --line: #3A3431;
    --bg: #1C1917; --panel: #252120; --foot: #121110; --foot-ink: #F3EEEA;
    --concrete: #6E6762; --concrete-d: #524C48; --primer: #8C7B5C; --mesh: #EDE7E2;
    --coat1: #E0703F; --coat2: #FF6A3D; --water: #5AA2DB;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.75 var(--f-body);
  padding-bottom: 76px; /* room for the mobile contact bar */
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 600; line-height: 1.3; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(32px, 5.2vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.eyebrow { font: 500 13px/1 var(--f-head); letter-spacing: .08em; color: var(--brand-ink); text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 17px/1 var(--f-head); text-decoration: none; padding: 15px 24px;
  border-radius: 6px; border: 2px solid var(--brand); transition: transform .15s; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-p { background: var(--brand); color: #fff; }
.btn-g, .btn-ghost { color: var(--brand-ink); background: transparent; }
.btn-line { background: var(--line-green); border-color: var(--line-green); color: #04220f; }
.btn-line:hover { background: var(--line-green-deep); border-color: var(--line-green-deep); color: #fff; }
.btn-tel { background: var(--brand); color: #fff; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 10px; min-height: 64px; }
.brand { text-decoration: none; line-height: 1.2; }
.brand strong { display: block; font: 600 22px/1.1 var(--f-head); letter-spacing: .02em; }
.brand strong::after { content: "."; color: var(--brand); }
.brand span { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 2px 20px; flex-wrap: wrap; }
.nav a { font: 500 15px/1 var(--f-head); text-decoration: none; padding: 8px 0; border-bottom: 3px solid transparent; color: var(--ink); }
.nav a:hover { border-bottom-color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand-ink); border-bottom-color: var(--brand); }
.head-actions { display: none; gap: 10px; }
.head-actions .btn { padding: 11px 18px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding-block: 44px 24px; }
.hero h1 { max-width: 18em; }
.hero .lede { color: var(--muted); font-size: 19px; max-width: 34em; margin-top: 18px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.facts span::before { content: "✓"; color: var(--brand); font-weight: 600; margin-right: 6px; }

.problems { margin: 36px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
.problems li + li { border-top: 1px solid var(--line); }
.problem { display: grid; gap: 4px 24px; align-items: baseline; padding: 18px 20px; text-decoration: none; transition: background .15s; }
.problem:hover, .problem:focus-visible { background: var(--brand-soft); }
.problem .what { font: 500 clamp(18px, 3.4vw, 22px)/1.4 var(--f-head); }
.problem .use { color: var(--muted); font-size: 15.5px; }
.problem .go { font: 500 15px/1.4 var(--f-head); color: var(--brand-ink); }
.problems-note { margin-top: 14px; color: var(--muted); font-size: 15px; }
.problems-note a { color: var(--brand-ink); }

/* ---------- sections ---------- */
.section, section.s { padding-block: 64px; }
section.alt, .section.alt { background: var(--panel); }
.head { max-width: 40em; display: grid; gap: 10px; margin-bottom: 36px; }
.head p { color: var(--muted); }
.section h2 { margin-bottom: 12px; }
.section .intro { max-width: 40em; color: var(--muted); margin-bottom: 30px; }

.brands { display: grid; gap: 20px; grid-template-columns: 1fr; }
.brand-block { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--bg); }
.brand-block h3 { font-size: 28px; font-weight: 600; margin-bottom: 6px; }
.brand-block p { color: var(--muted); margin-bottom: 12px; }
.brand-block ul { margin: 0 0 18px; padding-left: 1.2em; }
.brand-block li { margin-bottom: 4px; }

.sym { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sym article { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: grid; gap: 10px; align-content: start; background: var(--bg); }
.sym svg { width: 56px; height: 56px; }
.sym p { color: var(--muted); font-size: 16px; }

.tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 16px/1.4 var(--f-head); background: var(--brand-soft); }
tbody th { font: 500 16px/1.4 var(--f-head); white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font: 500 12px/1 var(--f-head); padding: 5px 8px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-ink); margin-top: 6px; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(st); width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 18px/44px var(--f-head); text-align: center; }
.steps h3 { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why div { border-top: 3px solid var(--brand); padding-top: 16px; display: grid; gap: 6px; align-content: start; }
.why p { color: var(--muted); font-size: 15.5px; }

.band, .cta-band { background: var(--brand); color: #fff; padding-block: 48px; }
.band .wrap, .cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.band p, .cta-band p { opacity: .92; margin-top: 6px; }
.band .btn, .cta-band .btn { background: #fff; color: #C8360B; border-color: #fff; }
.band .btn-line, .cta-band .btn-line { background: var(--line-green); border-color: var(--line-green); color: #04220f; }
.band .actions, .cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* layer diagram (rooftop page) */
.layers { width: 100%; height: auto; display: block; }
.layers text { font-family: var(--f-body); font-size: 13px; fill: var(--ink); }
.layers .lbl { font-family: var(--f-head); font-weight: 500; font-size: 14px; }
.layers .sub { fill: var(--muted); font-size: 12px; }
.hero-2 .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }

/* ---------- catalog pages ---------- */
.page-head { padding: 40px 0 8px; }
.page-head h1 { margin-bottom: 10px; }
.page-head p { max-width: 40em; color: var(--muted); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 10px !important; }
.crumbs a { color: var(--muted); }
.cat-list { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.cat { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); display: grid; gap: 12px 32px; grid-template-columns: 1fr; }
.cat h2 { font-size: 24px; margin: 0; }
.cat .for { color: var(--muted); margin-top: 4px; }
.cat ul { margin: 0; padding-left: 1.2em; }
.cat li { margin-bottom: 3px; }
.cat .ask { align-self: start; justify-self: start; }
.notice { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); max-width: 44em; font-size: 15.5px; border-radius: 0 6px 6px 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 28px; }
.contact-row { border: 1px solid var(--line); border-radius: 8px; padding: 22px; background: var(--bg); }
.contact-row h2 { font-size: 20px; margin-bottom: 8px; }
.contact-row p { margin-bottom: 10px; }
.big-link { font: 600 26px/1.3 var(--f-head); text-decoration: none; color: var(--brand-ink); }
.checklist { padding-left: 1.2em; margin: 0; }
.checklist li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-foot { background: var(--foot); color: var(--foot-ink); padding-block: 36px; font-size: 15px; }
.site-foot .wrap { display: grid; gap: 4px; }
.site-foot p { opacity: .85; }
.site-foot a { color: var(--foot-ink); }

/* ---------- mobile contact bar ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
.bar .btn { width: 100%; padding-block: 16px; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  body { padding-bottom: 0; }
  .bar { display: none; }
  .head-actions { display: flex; }
  .problem { grid-template-columns: 1.6fr 1fr auto; padding: 20px 24px; }
  .problem .go { justify-self: end; }
  .brands { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cat { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  .hero-2 .wrap { grid-template-columns: 1fr; gap: 32px; }
  .sym, .steps { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .sym, .steps, .why { grid-template-columns: 1fr; }
  .section, section.s { padding-block: 48px; }
  .brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } .problem { transition: none; } }

/* ---------- product catalog (generated pages) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pgrid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.pcard { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.pcard[hidden] { display: none; }
.pimg { display: block; background: #fff; aspect-ratio: 1 / 1; }
.pimg img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pbody { padding: 14px 14px 16px; display: grid; gap: 6px; align-content: start; }
.pbody h3 { font-size: 16px; line-height: 1.4; font-weight: 500; }
.pbody h3 a { text-decoration: none; }
.pbody h3 a:hover { color: var(--brand-ink); text-decoration: underline; }
.pbody .tag { justify-self: start; margin-top: 0; }
.pcat { color: var(--muted); font-size: 14px; }
.pbody .ask { justify-self: start; margin-top: 6px; padding: 10px 16px; font-size: 15px; }
.shop-tools { display: grid; gap: 14px; margin-top: 24px; }
.shop-tools input[type=search] { width: 100%; max-width: 560px; font: 400 17px/1.4 var(--f-body); padding: 13px 16px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.shop-tools input[type=search]:focus { border-color: var(--brand); outline: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: 500 14px/1 var(--f-head); padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; }
.pill span { color: var(--muted); margin-left: 4px; }
.pill:hover { border-color: var(--brand); }
.pill[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pill[aria-pressed=true] span { color: #fff; opacity: .85; }
.pdetail { padding-block: 8px 24px; }
.pd-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.pd-img { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px; align-self: start; }
.pd-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.pd-info { display: grid; gap: 14px; align-content: start; }
.pd-info h1 { font-size: clamp(26px, 4vw, 38px); }
.pd-short p { margin-bottom: 8px; }
.pd-short ul, .prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 14px; }
.pd-short li, .prose li { margin-bottom: 4px; }
.pd-cats .tag { text-decoration: none; margin-right: 4px; }
.pd-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.prose { max-width: 46em; }
.prose h2 { font-size: 26px; margin: 30px 0 10px; }
.prose h3 { font-size: 21px; margin: 24px 0 8px; }
.prose h4 { font: 500 18px/1.4 var(--f-head); margin: 20px 0 6px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin-bottom: 12px; }
.prose table { min-width: 0; display: block; overflow-x: auto; margin-bottom: 16px; }
.prose details { border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin-bottom: 10px; }
.prose summary { font: 500 17px/1.5 var(--f-head); cursor: pointer; }
.prose a { color: var(--brand-ink); }
@media (min-width: 720px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .pd-grid { grid-template-columns: minmax(280px, 5fr) 6fr; gap: 40px; }
}
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 719px) {
  .pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .pill { flex: none; white-space: nowrap; }
}

/* ---------- DAVCO discontinued / replacement ---------- */
.notice-warn { border-left-color: #B45309; background: #FFF6E5; max-width: none; margin-top: 8px; margin-bottom: 8px; }
.notice-info { margin-top: 0; }
.notice a { color: var(--brand-ink); font-weight: 600; }
.tag-old { background: #FFF6E5; color: #8A4200; }
.pcard.is-old .pimg img { opacity: .72; }
.repl-card { display: grid; gap: 20px; grid-template-columns: 1fr; border: 2px solid var(--brand); border-radius: 8px; background: var(--bg); padding: 20px; margin-top: 18px; }
.repl-card .pimg { max-width: 260px; border-radius: 6px; overflow: hidden; }
.repl-card h3 { font-size: 22px; margin-bottom: 8px; }
.repl-card h3 a { text-decoration: none; }
.repl-card p { color: var(--muted); margin-bottom: 14px; }
@media (min-width: 720px) { .repl-card { grid-template-columns: 240px 1fr; align-items: center; } }
@media (prefers-color-scheme: dark) { .notice-warn { background: #3A2A12; } .tag-old { background: #3A2A12; color: #F5C27A; } }

/* ---------- rooftop page (v2) ---------- */
.sym.four { grid-template-columns: repeat(4, 1fr); }
.sym .more { font-size: 15px; margin-top: auto; }
.sym .more a, .quick a, .note a, .guides a, .faq a, .tbl td a, .tbl th a, .steps a { color: var(--brand-ink); }
.tbl tbody th { white-space: normal; min-width: 180px; }
.quick { border: 2px solid var(--brand); border-radius: 8px; background: var(--brand-soft); padding: 24px; }
.quick h2 { margin: 6px 0 12px; }
.quick-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.calc { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: end; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 20px; }
.calc label { display: grid; gap: 6px; font: 500 15px/1.3 var(--f-head); }
.calc input, .calc select { font: 400 17px/1.4 var(--f-body); padding: 12px 14px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); width: 100%; max-width: 100%; }
.calc input:focus, .calc select:focus { border-color: var(--brand); outline: none; }
.calc output { grid-column: 1 / -1; display: block; padding: 14px 16px; border-radius: 6px; background: var(--brand-soft); line-height: 1.7; }
.calc output strong { color: var(--brand-ink); font-family: var(--f-head); font-weight: 500; font-size: 18px; }
.calc .btn { justify-self: start; grid-column: 1 / -1; }
.sys-group + .sys-group { margin-top: 36px; }
.sys-group h3 { font-size: 22px; }
.sys-note { color: var(--muted); margin-top: 4px; }
.sys-group .pgrid { margin-top: 14px; }
.guides { display: grid; gap: 20px; grid-template-columns: 1fr; }
.guide { border-top: 3px solid var(--brand); padding-top: 14px; }
.guide h3 { font-size: 19px; margin-bottom: 8px; }
.guide ul { margin: 0; padding-left: 1.1em; display: grid; gap: 8px; font-size: 16px; }
.faq details { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font: 500 18px/1.5 var(--f-head); }
.faq details p { padding-bottom: 16px; }
@media (min-width: 720px) { .calc { grid-template-columns: 200px 1fr; } .guides { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .guides { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 880px) { .sym.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sym.four { grid-template-columns: 1fr; } .calc select { font-size: 15px; } }

/* ---------- brand pages (Sika / Lanko) ---------- */
.brand-tools { display: grid; gap: 14px; margin-top: 20px; }
.brand-tools input[type=search] { width: 100%; max-width: 560px; font: 400 17px/1.4 var(--f-body); padding: 13px 16px; border: 2px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.brand-tools input[type=search]:focus { border-color: var(--brand); outline: none; }
.brand-tools a.pill { text-decoration: none; }
.bgroup { padding-top: 36px; scroll-margin-top: 90px; }
.bgroup[hidden] { display: none; }
.bgroup-head { border-bottom: 2px solid var(--line); padding-bottom: 10px; }
.bgroup-head h2 { font-size: clamp(22px, 3vw, 28px); margin: 0; }
.bgroup-head .count { font: 500 15px/1 var(--f-head); color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; vertical-align: middle; margin-left: 6px; }
.bgroup-head p { color: var(--muted); margin-top: 4px; }
.bgroup .pgrid { margin-top: 18px; }
@media (max-width: 719px) { .bgroup { scroll-margin-top: 130px; } }

/* ---------- contact page ---------- */
.contact-row a:not(.btn) { color: var(--brand-ink); }
.map-block { margin-top: 36px; }
.map-block h2 { font-size: 24px; margin-bottom: 12px; }
.map-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--panel); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.about-block { margin-top: 48px; display: grid; gap: 24px; grid-template-columns: 1fr; align-items: center; }
.about-text h2 { margin: 6px 0 12px; }
.about-text p { color: var(--muted); margin-bottom: 12px; }
figure { margin: 0; }
.about-main img, .team-photos img { width: 100%; height: auto; display: block; border-radius: 8px; object-fit: cover; }
.about-main img { max-height: 520px; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; text-align: center; }
.team-photos { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.team-photos img { aspect-ratio: 3 / 4; }
.contact-row.tips { margin-top: 36px; }
@media (min-width: 720px) { .about-block { grid-template-columns: 1.2fr 1fr; } .about-main img { max-height: 560px; } }
@media (max-width: 560px) { .team-photos { grid-template-columns: 1fr 1fr; } .map-wrap { aspect-ratio: 4 / 3; } }

/* ---------- ปุ่มลอยมุมขวาล่าง: LINE + Facebook ---------- */
.fab { position: fixed; right: 14px; bottom: 88px; z-index: 45; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.fab-btn { display: inline-flex; align-items: center; gap: 8px; height: 52px; min-width: 52px; padding: 0 16px 0 14px; border-radius: 26px; color: #fff; text-decoration: none; font-family: var(--f-head); font-size: 15px; font-weight: 500; box-shadow: 0 4px 14px rgba(0,0,0,.25); transition: transform .15s; }
.fab-btn:hover { transform: translateY(-2px); }
.fab-btn svg { width: 26px; height: 26px; flex: none; }
.fab-line { background: var(--line-green); }
.fab-fb { background: #0866FF; }
@media (max-width: 719px) { .fab-btn { padding: 0; width: 52px; justify-content: center; } .fab-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 720px) { .fab { bottom: 24px; right: 24px; } }
@media print { .fab { display: none; } }

/* ---------- footer แบบเว็บเดิม: Facebook / Line / โทร ---------- */
.site-foot .foot-grid { grid-template-columns: 1fr; gap: 24px; }
.site-foot .foot-h { font-family: var(--f-head); font-weight: 500; opacity: 1; margin-bottom: 8px; }
.site-foot .foot-name { font-size: 17px; opacity: 1; margin-bottom: 6px; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.foot-links a { text-decoration: none; opacity: .9; } .foot-links a:hover { text-decoration: underline; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fs { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 22px; color: #fff !important; text-decoration: none; font-weight: 500; }
.fs svg { width: 20px; height: 20px; flex: none; }
.fs-fb { background: #0866FF; } .fs-line { background: var(--line-green); } .fs-tel { background: var(--brand); }
.site-foot .foot-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
@media (min-width: 720px) { .site-foot .foot-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; } }
@media (max-width: 719px) { .site-foot .foot-copy { padding-right: 68px; } }

/* ---------- หน้าแรก: hero แบบเว็บเดิม (Sika ตัวจริง + รูปทีมงาน + คำพูดให้คำปรึกษา) ---------- */
.hero-brand { padding-block: 36px 12px; }
.hero-brand-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hb-eyebrow { font-family: var(--f-head); font-weight: 500; font-size: 22px; color: var(--ink); margin: 0 0 4px; }
.hero-brand h1 { font-size: clamp(44px, 7vw, 76px); line-height: 1.1; max-width: none; margin: 0; }
.hb-sika { color: var(--brand); }
.hb-sub { display: block; font-size: clamp(24px, 3.6vw, 36px); line-height: 1.3; margin-top: 18px; color: var(--ink); }
.hb-tag { font-size: 24px; margin: 14px 0 0; color: var(--muted); } .hb-tag strong { color: var(--brand); }
.hero-photo { margin: 0; position: relative; border-radius: 10px; overflow: hidden; background: var(--panel); }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 945; object-fit: cover; }
.hero-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 18px; color: #fff; font-family: var(--f-head); font-weight: 500; font-size: 17px; line-height: 1.5; background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,0)); }
.hero-find { padding-block: 32px 24px; }
.hero-find h2 { font-size: clamp(26px, 4vw, 38px); max-width: 22em; }
.hero-find .lede { color: var(--muted); font-size: 19px; max-width: 34em; margin-top: 12px; }
@media (max-width: 860px) {
  .hero-brand-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-photo { order: 2; max-width: 520px; }
}

/* ---------- โลโก้ที่หัวเว็บ ---------- */
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; height: 68px; width: auto; border-radius: 6px; }
@media (max-width: 719px) { .brand img { height: 56px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img { background: #fff; padding: 3px 6px; } }
@media (max-width: 719px) { .site-head { position: static; } }

/* ---------- หน้าแรก: การ์ดเลือกตามปัญหาหน้างาน ---------- */
.cases { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
.case { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.case:hover, .case:focus-visible { border-color: var(--brand); box-shadow: 0 8px 24px rgba(35,31,28,.10); transform: translateY(-2px); }
.case-img { display: block; background: #fff; border-bottom: 1px solid var(--line); aspect-ratio: 4 / 3; }
.case-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.case-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.case-no { font: 600 13px/1 var(--f-head); color: var(--brand); letter-spacing: .06em; }
.case-t { font: 500 17px/1.35 var(--f-head); }
.case-rec { font-size: 14px; color: var(--muted); line-height: 1.5; }
.case-rec b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.case-go { margin-top: auto; padding-top: 8px; font: 500 14px/1.3 var(--f-head); color: var(--brand-ink); }
.consult { margin-top: 24px; display: grid; gap: 16px; align-items: center; padding: 22px 24px; border-radius: 10px; background: var(--foot); color: var(--foot-ink); }
.consult-h { font: 600 21px/1.3 var(--f-head); margin: 0 0 4px; }
.consult p { margin: 0; opacity: .92; }
.consult-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.consult .btn-g { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
@media (min-width: 720px) { .cases { grid-template-columns: repeat(3, 1fr); gap: 18px; } .case-t { font-size: 18px; } .consult { grid-template-columns: 1fr auto; padding: 26px 30px; } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 380px) { .case-body { padding: 12px; } .case-t { font-size: 15.5px; } }

/* ---------- หน้าแรก: แบรนด์ที่จัดจำหน่าย ---------- */
.brands-sec { background: var(--panel); }
.bpanels { display: grid; gap: 20px; }
.bpanel { display: flex; flex-direction: column; gap: 18px; background: var(--bg); border: 1px solid var(--line); border-top: 6px solid var(--bp, var(--brand)); border-radius: 10px; padding: 26px; }
.bp-sika { --bp: #F5B800; } .bp-lanko { --bp: #D6001C; }
.bp-kicker { font: 500 13px/1 var(--f-head); letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.bp-head h3 { font: 600 36px/1.1 var(--f-head); margin: 0 0 8px; }
.bp-head p:last-child { color: var(--muted); margin: 0; max-width: 36em; }
.bp-stats { display: flex; gap: 28px; margin: 0; padding: 14px 0; border-block: 1px solid var(--line); }
.bp-stats div { display: flex; flex-direction: column-reverse; }
.bp-stats dt { font-size: 14px; color: var(--muted); }
.bp-stats dd { margin: 0; font: 600 30px/1.1 var(--f-head); color: var(--ink); }
.bp-thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bp-thumbs a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 1; overflow: hidden; }
.bp-thumbs a:hover { border-color: var(--bp); }
.bp-thumbs img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.bp-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bp-cats a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); }
.bp-cats a:hover { border-color: var(--bp); background: var(--panel); }
.bp-cta { margin-top: auto; align-self: flex-start; }
@media (min-width: 860px) { .bpanels { grid-template-columns: 1fr 1fr; gap: 24px; } .bpanel { padding: 30px; } }
@media (prefers-reduced-motion: reduce) { .case { transition: none; } .case:hover { transform: none; } }
.case-img { position: relative; overflow: hidden; }
.case-img img { position: absolute; inset: 0; }

/* ---------- SikaRoof MTC (หน้ารับประกัน) ---------- */
.mtc-hero-yrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mtc-hero-yrs div { border: 2px solid var(--line); border-radius: 10px; background: var(--bg); padding: 22px 10px; text-align: center; display: grid; gap: 2px; }
.mtc-hero-yrs div.is-mid { border-color: var(--brand); background: var(--brand-soft); }
.mtc-hero-yrs b { font: 600 56px/1 var(--f-head); color: var(--brand-ink); }
.mtc-hero-yrs span { font: 500 18px/1.2 var(--f-head); }
.mtc-hero-yrs small { color: var(--muted); font-size: 14px; margin-top: 6px; }
.mtc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mtc-card { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.mtc-card.is-mid { border: 2px solid var(--brand); }
.mtc-sys { font: 600 17px/1.3 var(--f-head); margin: 0; }
.mtc-yr { margin: 6px 0 0; font: 500 20px/1 var(--f-head); }
.mtc-yr b { font-size: 48px; color: var(--brand-ink); }
.mtc-yr-l { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.mtc-card ul { margin: 0 0 12px; padding-left: 18px; line-height: 1.8; }
.mtc-doc { margin-top: auto; color: var(--brand-ink); font-weight: 600; }
@media (max-width: 860px) { .mtc-cards { grid-template-columns: 1fr; } .mtc-hero-yrs b { font-size: 44px; } }

/* ---------- หน้าสินค้าแบบละเอียด (.pr) เช่น LANKO 451 ---------- */
.pr .wrap { display: flex; flex-direction: column; gap: 18px; }
.pr h2 { margin: 0; }
.pr .eyebrow { margin: 0; }
.pr-lead { color: var(--muted); max-width: 66ch; margin: 0; }
.pr-intro { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.pr-intro > * { min-width: 0; }
.pr-intro h2 { margin: 6px 0 12px; }
.pr-uses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pr-uses span { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; }
.pr-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.pr-gauge { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.pr-gauge .tag { align-self: flex-start; }
.pr-big { margin: 0; font: 700 56px/1 var(--f-head); color: var(--brand); }
.pr-big::before { content: "> "; font-size: 32px; }
.pr-big small { font-size: 20px; color: var(--muted); font-weight: 500; }
.pr-track { position: relative; height: 40px; }
.pr-bar { position: absolute; inset: 0 auto 0 0; border-radius: 8px; }
.pr-base { width: 20.8%; background: var(--concrete); z-index: 1; }
.pr-stretch { width: 100%; background: repeating-linear-gradient(90deg, var(--brand-soft) 0 12px, transparent 12px 14px); border: 1.5px solid var(--brand); transform-origin: left; animation: prpull 2.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes prpull { from { transform: scaleX(.208); } to { transform: scaleX(1); } }
.pr-scale { display: flex; justify-content: space-between; margin: 0; font-size: 14px; color: var(--muted); }
.pr-muted { margin: 0; color: var(--muted); font-size: 15px; }
.pr-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 12px; }
.pr-card { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-ic { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-soft); display: grid; place-items: center; }
.pr-ic svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-card b { font: 600 18px/1.3 var(--f-head); }
.pr-card span { color: var(--muted); font-size: 15px; line-height: 1.6; }
.pr-toggle { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); align-self: flex-start; }
.pr-toggle button { font: 500 15px/1.3 var(--f-head); border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 8px; cursor: pointer; }
.pr-toggle button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.pr-xsec { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 18px; overflow-x: auto; }
.pr-xsec svg { display: block; width: 100%; min-width: 640px; height: auto; }
.pr-xsec { --x-edge: var(--concrete-d); }
.x-t { font: 500 15px var(--f-body); fill: var(--ink); }
.x-s { font: 400 13px var(--f-body); fill: var(--muted); }
.x-lead { stroke: var(--muted); stroke-dasharray: 3 3; }
.x-dot { fill: var(--brand); }
.x-rain { fill: var(--water); opacity: .7; }
.x-mem { fill: var(--mesh); }
.x-mem2 { fill: var(--panel); }
.x-pri { fill: var(--primer); }
.x-con { fill: var(--concrete); }
.x-agg { fill: var(--concrete-d); opacity: .7; }
.x-mesh { stroke: #E8B04A; stroke-width: 1.6; }
.pr-tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.pr-tbl table { width: 100%; border-collapse: collapse; background: var(--bg); }
.pr-tbl th, .pr-tbl td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pr-tbl tr:nth-child(even) th, .pr-tbl tr:nth-child(even) td { background: var(--panel); }
.pr-tbl tr:last-child th, .pr-tbl tr:last-child td { border-bottom: 0; }
.pr-tbl th { width: 36%; font-weight: 500; color: var(--muted); }
.pr-tbl td { font-weight: 500; }
.pr-sw { display: flex; flex-wrap: wrap; gap: 14px; }
.pr-sw span { display: inline-flex; align-items: center; gap: 8px; }
.pr-sw i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line); display: block; }
.pr-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pr-calc > * { min-width: 0; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.pr-form { border: 1px solid var(--line); background: var(--bg); }
.pr-form label { display: grid; gap: 6px; font: 500 15px/1.3 var(--f-head); }
.pr-form input[type=number], .pr-form select { font: 400 17px/1.4 var(--f-body); padding: 12px 14px; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
.pr-form input:focus, .pr-form select:focus { border-color: var(--brand); outline: none; }
.pr-form .pr-check { display: flex; gap: 10px; align-items: center; font: 400 16px/1.4 var(--f-body); }
.pr-check input { width: 18px; height: 18px; accent-color: var(--brand); }
.pr-result { background: #2F2F2F; color: #F2EFEC; }
.pr-result .eyebrow { color: #F7A98F; }
.pr-rbig { margin: 0; font: 700 56px/1 var(--f-head); font-variant-numeric: tabular-nums; }
.pr-rbig small { font-size: 18px; font-weight: 500; opacity: .7; }
.pr-buckets { display: flex; flex-wrap: wrap; gap: 8px; min-height: 44px; align-items: flex-end; }
.pr-buckets .bk { width: 34px; height: 40px; border-radius: 4px 4px 8px 8px; background: linear-gradient(#FF4713 0 26%, #fff 26% 100%); color: #C8360B; font: 700 11px var(--f-head); font-style: normal; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px; }
.pr-buckets .bk.s { width: 24px; height: 28px; font-size: 10px; }
.pr-buckets .bk.more { background: transparent; color: #F2EFEC; width: auto; }
.pr-rows { display: flex; flex-direction: column; gap: 8px; }
.pr-rows div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #4A4A4A; padding-bottom: 7px; }
.pr-rows b { font: 500 16px var(--f-head); font-variant-numeric: tabular-nums; }
.pr-result .btn { align-self: flex-start; }
.pr-note { margin: 0; font-size: 14px; opacity: .7; }
.pr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pr-step { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pr-step h3, .pr-step p { margin: 0; }
.pr-step p { color: var(--muted); font-size: 15px; }
.pr-n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font: 600 16px var(--f-head); display: grid; place-items: center; }
.pr-warn { margin: 0; padding: 16px 20px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--brand); }
.pr-warn b { font-family: var(--f-head); color: var(--brand-ink); margin-right: 6px; }
.pr-more { border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; background: var(--bg); }
.pr-more > summary { cursor: pointer; padding: 16px 0; font: 500 17px var(--f-head); }
@media (max-width: 900px) { .pr-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .pr-intro, .pr-calc { grid-template-columns: 1fr; } .pr-steps { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .pr-cards { grid-template-columns: 1fr; } .pr-big, .pr-rbig { font-size: 46px; } }
@media (prefers-reduced-motion: reduce) { .pr-stretch { animation: none; } }
.pr-tbl thead th { color: var(--ink); background: var(--panel); font-family: var(--f-head); }
.pr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pr-box { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: 22px; min-width: 0; }
.pr-box h3 { margin: 0 0 10px; }
.pr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pr-list li { position: relative; padding-left: 30px; line-height: 1.6; }
.pr-list li::before { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--f-head); }
.pr-ok li::before { content: "✓"; background: #E5F6E8; color: #1E7B33; }
.pr-no li::before { content: "✕"; background: var(--brand-soft); color: var(--brand-ink); }
.pr-box a { color: var(--brand-ink); }
@media (max-width: 820px) { .pr-two { grid-template-columns: 1fr; } }

/* ---------- contact page (redesign) ---------- */
.ct-hero { background: linear-gradient(180deg, var(--brand-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.ct-hero-in { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 44px; }
.ct-hero h1 { font-size: clamp(30px, 6vw, 50px); line-height: 1.15; margin: 6px 0 14px; }
.ct-hero h1 em { font-style: normal; color: var(--brand); }
.ct-lede { font-size: 17px; color: var(--muted); max-width: 34em; margin-bottom: 18px; }
.ct-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-chips { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ct-chips li { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.ct-chips svg { width: 16px; height: 16px; color: var(--brand-ink); }
.ct-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: 0 10px 30px rgba(35, 31, 28, .08); align-self: start; }
.ct-ch { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.ct-ch + .ct-ch { border-top: 1px solid var(--line); border-radius: 0; }
.ct-ch:hover { background: var(--panel); }
.ct-ch small { display: block; font-size: 13px; color: var(--muted); }
.ct-ch strong { font-family: var(--f-head); font-weight: 500; font-size: 18px; line-height: 1.3; word-break: break-word; }
.ct-ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.ct-ic-line { background: var(--line-green); color: #04220f; }
.ct-ic-tel { background: var(--brand); }
.ct-ic-mail { background: var(--brand-soft); color: var(--brand-ink); }
.ct-ic-fb { background: #1877F2; }
.ct-ic-pin { background: var(--brand-soft); color: var(--brand-ink); }
.ct-sec { padding: 44px 0; }
.ct-alt { background: var(--panel); border-block: 1px solid var(--line); }
.ct-sec h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 18px; }
.ct-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ct-steps li { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.ct-steps h3 { font-size: 19px; margin: 10px 0 6px; }
.ct-steps p { margin: 0; color: var(--muted); }
.ct-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--f-head); font-weight: 500; }
.ct-where { display: grid; gap: 24px; }
.ct-place { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.ct-hours { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.ct-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 12px 16px; }
.ct-hours div + div { border-top: 1px solid var(--line); }
.ct-hours dt { font-weight: 600; }
.ct-hours dd { margin: 0; color: var(--muted); }
.ct-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--panel); }
.ct-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.ct-about { display: grid; gap: 24px; align-items: center; }
.ct-about-img, .ct-photos figure { margin: 0; }
.ct-about-img img, .ct-photos img { width: 100%; height: auto; border-radius: 16px; display: block; }
.ct-about-img figcaption, .ct-photos figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.ct-points { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ct-points li { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 16px; }
.ct-points strong { display: block; font-family: var(--f-head); font-weight: 500; }
.ct-points span { color: var(--muted); font-size: 15px; }
.ct-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.ct-photos img { aspect-ratio: 3 / 4; object-fit: cover; }
.ct-end { padding-top: 8px; }
.ct-band { display: grid; gap: 18px; background: var(--brand); color: #fff; border-radius: 20px; padding: 28px; }
.ct-band h2 { color: #fff; margin-bottom: 6px; }
.ct-band p { margin: 0; color: #fff; opacity: .92; }
.ct-band .btn-tel { background: #fff; color: var(--brand-ink); border-color: #fff; }
@media (min-width: 900px) {
  .ct-hero-in { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 40px; padding-bottom: 64px; }
  .ct-steps { grid-template-columns: repeat(3, 1fr); }
  .ct-where { grid-template-columns: 1fr 1.2fr; align-items: stretch; gap: 40px; }
  .ct-about { grid-template-columns: 1.1fr .9fr; gap: 48px; }
  .ct-band { grid-template-columns: 1fr auto; align-items: center; padding: 36px 44px; }
}
@media (max-width: 520px) { .ct-cta .btn { flex: 1 1 100%; justify-content: center; text-align: center; } }

/* ---------- article listing (compact list / cards, topics, filters) ---------- */
.pl-h { font-size: clamp(20px, 3vw, 26px); margin: 30px 0 14px; }
.pl-feat-grid { margin-top: 0; }
.pl-topic-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pl-topic { text-align: left; font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; }
.pl-topic strong { font-family: var(--f-head); font-weight: 500; font-size: 16px; line-height: 1.3; }
.pl-topic span { font-size: 13px; color: var(--muted); }
.pl-topic:hover { border-color: var(--brand); }
.pl-topic[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pl-topic[aria-pressed=true] span { color: #fff; opacity: .9; }
.pl-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 22px 0 6px; }
.pl-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pl-view { display: flex; gap: 6px; }
.pl-sel { font: 500 14px/1.2 var(--f-head); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; max-width: 100%; }
.pl-info { margin: 10px 0 0; }
.pl-reset { font: 500 14px var(--f-head); color: var(--brand-ink); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; }
.pl-more { display: block; margin: 18px auto 0; }
.pl-cats { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 14px; }
.pl-cats summary { cursor: pointer; font-family: var(--f-head); font-weight: 500; margin-bottom: 12px; }

/* compact list view (default) */
.pl-wrap[data-view=list] #pgrid-main, .pl-wrap[data-view=list] #pres { display: grid; grid-template-columns: 1fr; gap: 0 32px; margin-top: 14px; }
.pl-wrap[data-view=list] #pgrid-main[hidden], .pl-wrap[data-view=list] #pres[hidden] { display: none; }
.pl-wrap[data-view=list] .postcard { display: flex; align-items: center; gap: 14px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.pl-wrap[data-view=list] .postcard .pimg { flex: none; width: 76px; height: 76px; aspect-ratio: auto; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.pl-wrap[data-view=list] .postcard .pbody { padding: 0; gap: 4px; min-width: 0; }
.pl-wrap[data-view=list] .postcard h3 { font-size: 16px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-wrap[data-view=list] .postcard .pcat { margin: 0; font-size: 13px; color: var(--muted); }
.pl-wrap[data-view=list] .pl-feat .postcard, .pl-wrap[data-view=list] .pl-feat-grid .postcard { display: grid; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.pl-wrap[data-view=list] .pl-feat-grid .postcard .pimg { width: auto; height: auto; aspect-ratio: 1 / 1; border: 0; border-radius: 0; }
.pl-wrap[data-view=list] .pl-feat-grid .postcard .pbody { padding: 14px 14px 16px; }
@media (min-width: 1000px) {
  .pl-wrap[data-view=list] #pgrid-main, .pl-wrap[data-view=list] #pres { grid-template-columns: 1fr 1fr; }
  .pl-topic-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) and (max-width: 999px) { .pl-topic-grid { grid-template-columns: repeat(3, 1fr); } }

.pl-more[hidden], .pl-reset[hidden], .pl-info[hidden] { display: none; }
@media (max-width: 639px) {
  .pl-feat-grid { display: flex; overflow-x: auto; gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
  .pl-feat-grid > li { flex: 0 0 72%; scroll-snap-align: start; }
}

.head-actions.ghost{visibility:hidden;pointer-events:none}

/* หน้าสินค้าอัตโนมัติ (pd_auto) */
.pr-card.pr-f { flex-direction: row; align-items: flex-start; gap: 12px; }
.pr-card.pr-f .pr-ic { flex: none; width: 32px; height: 32px; }
.pr-card.pr-f .pr-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.pr-card.pr-f b { font: 500 15.5px/1.6 var(--f-body); }
.pr-ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; line-height: 1.65; }
ul.pr-ol { list-style: disc; }
.pr .prose h3 { margin: 18px 0 8px; font-size: 18px; }
.pr .pr-tbl + .pr-tbl { margin-top: 16px; }
.pr-tbl table { table-layout: fixed; }
.pr-tbl th, .pr-tbl td { overflow-wrap: anywhere; }
@media (max-width: 600px) { .pr-tbl th { width: 40%; } .pr-tbl th, .pr-tbl td { padding: 11px 12px; } }
.pr-tbl table { min-width: 0; }
.pr-tbl:has(thead) table { min-width: 560px; }
.pr-tbl th, .pr-tbl td { white-space: normal; word-break: break-word; }

/* ---------- เมนู dropdown "งานก่อสร้าง" ---------- */
.nav-dd { position: relative; }
.nav-dd summary { list-style: none; cursor: pointer; font: 500 15px/1 var(--f-head); padding: 8px 0; border-bottom: 3px solid transparent; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.nav-dd summary::-webkit-details-marker { display: none; }
.nav-dd summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-dd[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.nav-dd summary:hover, .nav-dd[open] summary { border-bottom-color: var(--brand); }
.nav-dd summary[aria-current="page"] { color: var(--brand-ink); border-bottom-color: var(--brand); }
.dd-panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; display: grid; grid-template-columns: repeat(4, minmax(170px, 1fr)); gap: 8px 24px; min-width: 780px; padding: 18px 22px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(35,31,28,.14); }
.dd-col p { margin: 0 0 6px; font: 600 12px/1.2 var(--f-head); letter-spacing: .06em; color: var(--muted); }
.dd-col a { display: block; padding: 8px 0; border-bottom: 0; font: 500 15px/1.25 var(--f-head); }
.dd-col a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 4px; border-bottom: 0; }
.dd-col a[aria-current="page"] { color: var(--brand-ink); }
@media (max-width: 960px) { .dd-panel { grid-template-columns: repeat(2, minmax(160px, 1fr)); min-width: 0; width: min(92vw, 460px); } }
@media (max-width: 719px) {
  .nav-dd { flex-basis: 100%; }
  .dd-panel { position: static; display: block; width: auto; min-width: 0; margin-top: 6px; box-shadow: none; padding: 10px 14px; }
  .dd-col { margin-bottom: 8px; }
}

/* กันเมนูขยับเมื่อเปลี่ยนหน้า (หน้าสั้นไม่มีแถบเลื่อน หน้ายาวมี) */
html { scrollbar-gutter: stable; }

/* ---------- หัวข้ออธิบายมาตรฐาน (หน้าปูนขัดมัน) ---------- */
#standard .std-h { font: 600 20px/1.3 var(--f-head); margin: 34px 0 10px; }
#standard .std-list { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
#standard .sym article h3 { color: var(--brand-ink); }
#standard .tbl { margin-top: 14px; }

/* ---------- หน้าแรก: ทางลัดเลือกสินค้าใต้ปุ่ม LINE ---------- */
.hb-pick { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.hb-pick-h { margin: 0 0 10px; font: 600 14px/1.2 var(--f-head); letter-spacing: .04em; color: var(--muted); }
.hb-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.hb-pick-col p { margin: 0 0 4px; font: 600 12px/1.2 var(--f-head); letter-spacing: .06em; color: var(--brand-ink); }
.hb-pick-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hb-pick-col a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 500 14px/1.2 var(--f-head); text-decoration: none; color: var(--ink); }
.hb-pick-col a:hover, .hb-pick-col a:focus-visible { border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 520px) { .hb-pick-grid { grid-template-columns: 1fr; } }

/* ---------- กล่องอธิบายมาตรฐานในหน้าสินค้า ---------- */
.std-box { margin: 14px 0 6px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 8px; background: var(--panel); }
.std-box h4 { margin: 0 0 8px; font: 600 17px/1.3 var(--f-head); }
.std-box p { margin: 6px 0; }
.std-box ul { margin: 4px 0 6px; padding-left: 1.2em; }
.std-box .std-h { margin-top: 12px; font: 600 14px/1.3 var(--f-head); color: var(--brand-ink); }
.std-box .std-note { font-size: 14px; color: var(--muted); }

/* hero: สินค้าตามประเภทงาน — เด่นขึ้น */
.hb-pick { margin-top: 26px; padding: 20px 22px 22px; border: 2px solid var(--brand); border-radius: 14px; background: var(--brand-soft); box-shadow: 0 8px 24px rgba(255,71,19,.14); }
.hb-pick-h { margin: 0 0 14px; font: 700 clamp(20px,2.4vw,26px)/1.2 var(--f-head); letter-spacing: 0; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.hb-pick-h::before { content: ""; width: 6px; height: 1.1em; border-radius: 3px; background: var(--brand); }
.hb-pick-grid { gap: 16px 24px; }
.hb-pick-col p { margin: 0 0 8px; font: 700 14px/1.2 var(--f-head); letter-spacing: .02em; color: var(--brand-ink); }
.hb-pick-col ul { gap: 8px; }
.hb-pick-col a { padding: 9px 16px; border: 1.5px solid var(--brand); font: 600 15px/1.2 var(--f-head); background: var(--bg); transition: background .15s, color .15s, transform .15s; }
.hb-pick-col a:hover, .hb-pick-col a:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); }

#taber { scroll-margin-top: 100px; }
@media (max-width: 719px) { #taber { scroll-margin-top: 140px; } }

/* ---------- หน้าแรก: รูปอยู่ซ้ายใต้หัวข้อ กล่องสินค้าตามประเภทงานอยู่ขวา ---------- */
.hero-brand-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 44px; align-items: stretch; }
.hero-brand .hero-copy { display: flex; flex-direction: column; min-width: 0; }
.hero-brand .hero-photo { margin-top: 26px; flex: 1; min-height: 240px; }
.hero-brand .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 24%; }
.hero-brand .hb-pick { margin-top: 0; display: flex; flex-direction: column; padding: 26px 28px 30px; }
.hero-brand .hb-pick-h { margin-bottom: 22px; }
.hero-brand .hb-pick-grid { grid-template-columns: 1fr; flex: 1; align-content: space-between; gap: 22px; }
.hero-brand .facts { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 860px) {
  .hero-brand-grid { grid-template-columns: 1fr; }
  .hero-brand .hero-photo { flex: none; min-height: 0; max-width: none; aspect-ratio: 4 / 3; }
  .hero-brand .hb-pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) { .hero-brand .hb-pick-grid { grid-template-columns: 1fr; } }
.hero-brand .hero-photo figcaption { font-size: 15px; padding: 28px 18px 14px; }
@media (max-width: 860px) { .hero-brand .hero-photo img { object-position: 50% 40%; } .hero-brand .hero-photo figcaption { font-size: 16px; } }

/* หน้าแรก: H1 เป็นบรรทัดคำหลัก สโลแกนใหญ่เป็นข้อความ */
.hero-brand h1.hb-eyebrow { text-wrap: wrap; font-size: 21px; line-height: 1.4; font-weight: 500; margin: 0 0 4px; max-width: none; }
.hb-big { font-family: var(--f-head); font-weight: 600; color: var(--ink); font-size: clamp(44px, 7vw, 76px); line-height: 1.1; margin: 0; }
.nw { white-space: nowrap; }

/* ux-fix-2026-10-06 */
/* เมนูประเภทงาน: ยึดกับกรอบหัวเว็บ ไม่ล้นจอช่วง 720–1200px */
@media (min-width: 720px) {
  .site-head .wrap { position: relative; }
  .nav-dd { position: static; }
  .dd-panel { left: 16px; right: 16px; top: 100%; min-width: 0; width: auto; max-width: 900px; margin-inline: auto; }
}
@media (min-width: 720px) and (max-width: 960px) { .dd-panel { width: auto; max-width: 520px; margin-inline: 16px auto; } }
/* ปุ่มโทร/ปุ่มหลัก: ตัวอักษรขาวบนพื้นส้มเข้ม (contrast ≥ 4.5:1) */
:root { --brand-btn: #C8360B; }
.btn-tel, .btn-p, .fs-tel { background: var(--brand-btn); border-color: var(--brand-btn); color: #fff; }
.ct-band .btn-tel { background: #fff; color: #C8360B; border-color: #fff; }
/* ปุ่มลอย LINE: ตัวอักษรเข้มบนพื้นเขียว */
.fab-line, .fs-line { color: #04220f !important; }
/* มือถือมีแถบโทร/LINE ด้านล่างแล้ว ซ่อนปุ่มลอย LINE ที่ซ้ำ ลดการบังเนื้อหา */
@media (max-width: 719px) { .fab-line { display: none; } }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
