/* Siam Sun Fire & Rescue — น้ำเงินน่าเชื่อถือ ดำพรีเมียม แดงใช้เป็นจุดเน้นเล็กๆ เท่านั้น */
:root {
  --ink: #0a1424;
  --navy: #0f2a4a;
  --navy-2: #163b66;
  --blue: #1d5bb8;
  --blue-d: #164a98;
  --red: #d2232a;
  --bg: #ffffff;
  --surface: #f3f6fa;
  --surface-2: #e8eef6;
  --line: #d9e1eb;
  --text: #13202f;
  --muted: #4c5a6c;
  --line-green: #06c755;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 20, 36, .06), 0 4px 16px rgba(10, 20, 36, .06);
  --shadow-up: 0 2px 4px rgba(10, 20, 36, .08), 0 12px 28px rgba(10, 20, 36, .12);
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', sans-serif;
  font-size: 16px; line-height: 1.7; font-weight: 400;
  overflow-x: hidden;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-d); }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }
.i { width: 20px; height: 20px; flex: none; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--radius-sm); }
.skip:focus { left: 8px; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 20px; border-radius: var(--radius-sm);
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1.4; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-d); color: #fff; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--surface-2); color: var(--navy); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .08); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-line:hover { background: #05b04b; color: #fff; }
.btn-lg { min-height: 52px; padding: 12px 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* แถบบน + หัวเว็บ */
.topbar { background: var(--ink); color: #c9d3e0; font-size: 14px; display: none; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 6px; color: #c9d3e0; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar .i { width: 15px; height: 15px; }
.tb-right { gap: 20px !important; }
@media (min-width: 1024px) { .topbar { display: block; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1024px) { .site-header .wrap { min-height: 76px; } .brand img { height: 48px; } }

.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: var(--radius-sm); }
.nav-toggle .i { width: 26px; height: 26px; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav {
  position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 8px var(--gutter) 20px; gap: 2px;
  box-shadow: 0 16px 32px rgba(10, 20, 36, .12);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; }
.nav a:not(.btn) { padding: 12px 4px; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--surface-2); }
.nav a[aria-current="page"]:not(.btn) { color: var(--blue); }
.nav .nav-cta { margin-top: 12px; }
@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .nav { position: static; flex-direction: row; align-items: center; padding: 0; gap: 4px; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; background: none; }
  .nav a:not(.btn) { padding: 8px 14px; border: 0; position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
  .nav a:not(.btn):hover::after, .nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .nav a[aria-current="page"]:not(.btn) { color: var(--ink); }
  .nav .nav-cta { margin: 0 0 0 12px; }
}

.preview-flag { position: sticky; top: 0; z-index: 60; background: #b45309; color: #fff; text-align: center; padding: 8px 16px; font-weight: 600; font-size: 15px; }

/* แบนเนอร์: แสดงเต็มภาพตามสัดส่วนไฟล์จริง ไม่ครอป เพราะในรูปมีโลโก้และข้อความ */
.hero { position: relative; background: var(--ink); }
.slides { position: relative; width: 100%; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img, .slide picture { width: 100%; height: 100%; object-fit: contain; }
.slide a { display: block; height: 100%; }
.hero-ctrl { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; background: rgba(10, 20, 36, .72); border-radius: 999px; padding: 4px; }
.hero-ctrl button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.hero-ctrl button:hover { background: rgba(255, 255, 255, .14); }
.hero-ctrl .i { width: 18px; height: 18px; }
.hc-dots { display: flex; gap: 0; }
.hc-dots button { width: 28px; }
.hc-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .45); transition: width .2s var(--ease), background .2s; }
.hc-dots button[aria-current="true"]::before { width: 18px; background: #fff; }
.hc-pause .i-play, .hero.is-paused .hc-pause .i-pause { display: none; }
.hero.is-paused .hc-pause .i-play { display: block; }

.intro { background: linear-gradient(180deg, var(--navy) 0%, var(--ink) 100%); color: #d6deea; padding: 40px 0 44px; }
.intro .eyebrow { color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .04em; display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.intro .eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--red); }
.intro h1 { color: #fff; font-size: clamp(28px, 6.4vw, 52px); max-width: 17em; }
.intro .lead { margin-top: 16px; max-width: 68ch; font-size: 17px; }
.intro .btn-row { margin-top: 24px; }
@media (min-width: 1024px) { .intro { padding: 64px 0; } .intro .lead { font-size: 18px; } }

/* จุดเด่น */
.highlights { background: var(--ink); color: #fff; padding: 0 0 32px; }
.hl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hl-grid li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.hl-grid h3 { color: #fff; font-size: 16px; font-weight: 600; }
.hl-grid p { color: #b8c4d4; font-size: 15px; margin-top: 4px; }
.hl-grid .ic { width: 28px; height: 28px; color: #8fb4ec; }
.hl-grid.on-light li { background: #fff; border-color: var(--line); }
.hl-grid.on-light h3 { color: var(--ink); }
.hl-grid.on-light p { color: var(--muted); }
.hl-grid.on-light .ic { color: var(--blue); }
@media (min-width: 480px) { .hl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .hl-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .hl-grid li { flex-direction: column; padding: 20px; } }
@media (max-width: 479px) { .hl-grid li { flex-direction: column; gap: 8px; } }

/* หัวข้อ section */
.section { padding: 48px 0; }
.section.alt { background: var(--surface); }
.section-tight { padding: 32px 0 48px; }
@media (min-width: 1024px) { .section { padding: 80px 0; } .section-tight { padding: 40px 0 72px; } }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h { font-size: clamp(24px, 4.6vw, 36px); position: relative; }
.sec-h.sm { font-size: clamp(20px, 3.4vw, 26px); display: flex; align-items: center; gap: 10px; }
.sec-h.sm .i { width: 26px; height: 26px; color: var(--blue); }
.section > .wrap > .sec-h { margin-bottom: 20px; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; font-size: 15px; min-height: 44px; }
.link-more .i { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.link-more:hover .i { transform: translateX(3px); }

/* การ์ดหมวด: 2 / 2 / 3 / 3 คอลัมน์ */
.cat-grid, .p-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .cat-grid, .p-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .p-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-card, .p-card {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cat-card:hover, .p-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: transparent; color: inherit; }
.cat-media { aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy) 0%, var(--ink) 100%); color: #fff; position: relative; }
.cat-media::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--red); }
.cat-media.has-img { background: var(--surface); aspect-ratio: 4 / 3; }
.cat-media.has-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-icon { width: 44px; height: 44px; stroke-width: 1.5; }
@media (min-width: 768px) { .cat-icon { width: 60px; height: 60px; } }
.cat-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-body h3 { font-size: 16px; }
.cat-body p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.cat-body .more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: 14px; }
.cat-body .more .i { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.cat-card:hover .more .i { transform: translateX(3px); }
@media (min-width: 768px) { .cat-body { padding: 20px; } .cat-body h3 { font-size: 18px; } .cat-body p { font-size: 15px; } }

/* การ์ดสินค้า: รูปใช้สัดส่วนจริง ไม่ครอป ไม่ใส่กรอบ */
.p-card { border: 0; background: none; border-radius: var(--radius); }
.p-card:hover { box-shadow: none; transform: translateY(-3px); }
.p-media { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.p-media img { width: 100%; height: auto; }
.p-noimg { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface-2); color: var(--navy-2); border-radius: var(--radius); }
.p-noimg .i { width: 40px; height: 40px; }
.p-noimg.big { aspect-ratio: 4 / 3; gap: 8px; align-content: center; color: var(--muted); font-size: 15px; }
.p-noimg.big .i { width: 64px; height: 64px; color: var(--navy-2); }
.p-body { padding: 10px 2px 4px; }
.p-cat { display: inline-block; font-size: 14px; color: var(--muted); font-weight: 600; text-decoration: none; }
.p-body h3 { font-size: 16px; margin-top: 2px; }
.p-body p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.6; }

/* กลุ่มลูกค้า */
.sector-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.sector-grid li { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.sector-grid .ic { width: 36px; height: 36px; color: var(--blue); }
.sector-grid h3 { font-size: 17px; }
.sector-grid p { color: var(--muted); font-size: 15px; }
@media (min-width: 600px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } .sector-grid li { flex-direction: column; align-items: flex-start; padding: 20px 16px; } }
@media (min-width: 768px) { .sector-grid { gap: 20px; } .sector-grid li { padding: 28px 24px; } }

/* คำถามที่พบบ่อย */
.faq { background: var(--surface); }
.faq-list { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; color: var(--ink); min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s var(--ease); color: var(--muted); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq-a { padding: 0 18px 18px; color: var(--muted); }

/* แถบปิดท้าย */
.cta-band { background: var(--navy); color: #d6deea; padding: 40px 0; position: relative; }
.cta-band::before { content: ""; position: absolute; left: 0; top: 0; width: 72px; height: 4px; background: var(--red); }
.cta-band .wrap { display: grid; gap: 20px; }
.cta-band h2 { color: #fff; font-size: clamp(22px, 4vw, 32px); }
.cta-band p { margin-top: 8px; max-width: 60ch; }
@media (min-width: 1024px) { .cta-band { padding: 56px 0; } .cta-band .wrap { grid-template-columns: 1fr auto; align-items: center; gap: 40px; } }

/* หัวหน้าย่อย */
.page-head { background: var(--surface); padding: 20px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(28px, 5.6vw, 48px); margin-top: 8px; }
.page-head .lead { margin-top: 12px; color: var(--muted); max-width: 70ch; font-size: 17px; }
.page-head .tagline { margin-top: 16px; font-weight: 600; color: var(--navy); padding-left: 14px; border-left: 3px solid var(--red); }
@media (min-width: 1024px) { .page-head { padding: 28px 0 48px; } }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #9aa8b8; }
.crumbs a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }
.wrap > .crumbs { padding-top: 16px; }

.chips { display: flex; gap: 8px; margin-top: 20px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.chips a { flex: none; padding: 8px 14px; min-height: 40px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s; }
.chips a:hover { border-color: var(--navy); }
.chips a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (min-width: 768px) { .chips { flex-wrap: wrap; overflow: visible; } }

.cat-section { padding: 16px 0 32px; border-bottom: 1px solid var(--line); }
.cat-section:last-child { border-bottom: 0; }
.cat-section .sec-head { margin-bottom: 6px; }
.cat-sum { color: var(--muted); margin-bottom: 20px; max-width: 70ch; }
.empty-note { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 14px; }
.empty-note p { color: var(--muted); }

/* หน้าสินค้า */
.product { display: grid; gap: 24px; padding-top: 12px; padding-bottom: 40px; }
@media (min-width: 1024px) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; padding-top: 24px; padding-bottom: 64px; align-items: start; } }
.g-main figure { margin: 0; }
.g-main img { width: 100%; height: auto; border-radius: var(--radius); background: var(--surface); }
.g-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.g-thumbs button { flex: none; width: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; overflow: hidden; display: grid; place-items: center; }
.g-thumbs button[aria-current="true"] { border-color: var(--blue); }
.g-thumbs img { width: 100%; height: auto; }
.p-info h1 { font-size: clamp(26px, 5vw, 40px); margin-top: 6px; }
.p-info .lead { margin-top: 14px; font-size: 17px; }
.p-seller { margin-top: 10px; color: var(--muted); font-size: 15px; }
.p-info .btn-row { margin-top: 24px; }
.p-detail { display: grid; gap: 40px; padding-bottom: 56px; }
.prose { margin-top: 14px; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 14px; }
.prose ul { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: 4px; }
.specs { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 16px; }
.specs th, .specs td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; color: var(--muted); font-weight: 600; background: var(--surface); }

/* หน้าเกี่ยวกับ */
.info-list { margin: 20px 0 0; display: grid; gap: 0; }
.info-list div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: 14px; font-weight: 600; }
.info-list dd { margin: 0; }
.info-list dd a { display: inline-flex; align-items: center; gap: 4px; }
.info-list .i { width: 16px; height: 16px; }
@media (min-width: 768px) { .info-list div { grid-template-columns: 200px 1fr; gap: 16px; } }

/* หน้าติดต่อ */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 380px 1fr; gap: 48px; align-items: start; } }
.contact-info { display: grid; gap: 10px; }
.ci { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
a.ci:hover { border-color: var(--navy); color: var(--text); transform: translateY(-2px); }
.ci b { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.ci .ic { width: 24px; height: 24px; color: var(--blue); margin-top: 2px; }
.ic-line { color: var(--line-green); margin-top: 2px; }
.ic-line .i { width: 24px; height: 24px; }
.contact-info .socials { margin-top: 6px; }
.contact-form { background: var(--surface); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .contact-form { padding: 32px; } }
.fields { display: grid; gap: 16px; margin: 18px 0 22px; }
@media (min-width: 768px) { .fields { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.req { color: var(--red); }
.opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px; line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29, 91, 184, .18); }
.field [aria-invalid="true"] { border-color: #c0262d; }
.err { color: #b3171e; font-size: 14px; margin-top: 6px; }
.form-msg { background: #fdecec; color: #8f1217; border-radius: var(--radius-sm); padding: 12px 14px; margin-top: 12px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { margin-top: 12px; font-size: 14px; color: var(--muted); }
.form-ok { display: flex; gap: 16px; background: #edf7f0; border-radius: var(--radius); padding: 24px; }
.form-ok > .i { width: 32px; height: 32px; color: #157f3b; }
.form-ok h2 { font-size: 22px; }
.form-ok p { margin: 6px 0 16px; color: var(--muted); }
.contact-form button[disabled] { opacity: .6; cursor: progress; }

/* ท้ายเว็บ */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 0; font-size: 15px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.f-about { grid-column: 1 / -1; }
.f-about img { height: 44px; width: auto; }
.f-name { margin-top: 12px; font-weight: 600; color: var(--ink); }
.f-tag { color: var(--muted); margin-top: 2px; }
.f-h { font-size: 16px; margin-bottom: 10px; }
.f-links, .f-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.f-links a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.f-links a:hover { color: var(--blue); }
.f-contact { grid-column: 1 / -1; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.f-contact .i { width: 18px; height: 18px; margin-top: 4px; color: var(--navy-2); }
.f-contact a { color: var(--muted); }
.footer-grid > div:last-child { grid-column: 1 / -1; }
.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--navy); color: var(--ink); }
.socials .i { width: 20px; height: 20px; }
.f-bottom { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; padding-bottom: 16px; color: var(--muted); font-size: 14px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1.5fr; gap: 32px; }
  .f-about, .f-contact, .footer-grid > div:last-child { grid-column: auto; }
}

/* ปุ่มลอยบนมือถือ: LINE + โทร สูง 56px */
.float-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: #fff; box-shadow: 0 -4px 16px rgba(10, 20, 36, .12); }
.float-bar.single { grid-template-columns: 1fr; }
.float-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; text-decoration: none; color: #fff; }
.fb-line { background: var(--line-green); }
.fb-call { background: var(--navy); }
.float-bar .i { width: 22px; height: 22px; }
body:has(.float-bar) { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .float-bar { display: none; } body:has(.float-bar) { padding-bottom: 0; } }

/* อนิเมชัน: เลื่อนถึงแล้วค่อยปรากฏ เล่นครั้งเดียว */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* พื้นที่กดอย่างน้อย 44px บนมือถือ */
.brand { display: flex; align-items: center; min-height: 48px; }
.skip { padding: 12px 16px; }
.f-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.f-links { gap: 0; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.f-contact a { display: inline-flex; align-items: center; min-height: 44px; }
.f-contact li { align-items: center; }
.f-contact .i { margin-top: 0; }
a.p-cat { display: inline-flex; align-items: center; min-height: 44px; }
.info-list dd a { min-height: 44px; }
.f-links a, .crumbs a { min-width: 44px; }
.hp input { font-size: 16px; }
