/* หน้าบ้าน บริษัท เคพี ไฮเทค จำกัด — น้ำเงินกรมท่า KP + แดง HITECH บนพื้นขาวอมฟ้า (ห้ามพื้นดำ)
   มือถือก่อน · ฟอนต์ IBM Plex Sans Thai ตัวเดียวทั้งเว็บ · ไอคอนเส้น 1.75 */

:root {
  --accent: #1f2c8f;
  --navy: #1f2c8f;
  --navy-d: #141d63;
  --navy-dd: #0e1650;
  --red: #e3262e;
  --red-d: #c51d24;
  --sky: #5ba8e6;
  --paper: #f5f7fb;
  --ink: #101a3f;
  --muted: #55607f;
  --line: #dfe4f0;
  --card: #fff;
  --radius: 14px;
  --font: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(16, 26, 63, .06), 0 8px 24px -12px rgba(16, 26, 63, .18);
  --shadow-up: 0 2px 4px rgba(16, 26, 63, .06), 0 18px 36px -16px rgba(16, 26, 63, .28);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
  color: var(--ink); background: var(--paper); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.45; margin: 0; font-weight: 700; }
p { margin: 0 0 .8em; }
svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.75; flex: none; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1.45 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--navy); color: #fff;
  transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 18px -10px rgba(227, 38, 46, .8); }
.btn-red:hover { background: var(--red-d); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white svg { color: #06c755; }
.btn-line { background: #06c755; color: #fff; }
.btn-line:hover { background: #05b04c; }
.btn-fb { background: #1877f2; color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-sm { min-height: 40px; padding: 6px 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* ---------- แถบบน ---------- */
.topbar { background: var(--navy-dd); color: #dfe5ff; font-size: 14px; }
.topbar .wrap { display: flex; gap: 6px 22px; align-items: center; justify-content: center; flex-wrap: wrap; min-height: 38px; padding-top: 4px; padding-bottom: 4px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; }
.topbar span, .tb-mail, .tb-fb { display: none !important; }
@media (min-width: 900px) {
  .topbar .wrap { justify-content: flex-start; }
  .topbar span, .tb-mail, .tb-fb { display: inline-flex !important; }
  .tb-fb { margin-left: auto; }
}

/* ---------- หัวเว็บ (ห้ามใส่ backdrop-filter/transform/filter เพราะครอบเมนูมือถือเต็มจอ) ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; align-items: center; margin-right: auto; text-decoration: none; font-weight: 700; color: var(--navy); }
.logo-img { width: auto; height: 34px; }
.nav-cta { display: none; min-height: 44px; padding: 8px 18px; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; position: relative; z-index: 60;
}
.nav-toggle svg { width: 24px; height: 24px; grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.nav-toggle svg:last-child { opacity: 0; transform: rotate(-45deg); }
body.nav-open .nav-toggle svg:first-child { opacity: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle svg:last-child { opacity: 1; transform: none; }
.menu {
  position: fixed; inset: 0; z-index: 55; background: #fff;
  display: flex; flex-direction: column; gap: 4px; padding: 96px 24px 32px;
  visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  overflow-y: auto;
}
body.nav-open { overflow: hidden; }
body.nav-open .menu { visibility: visible; opacity: 1; }
.menu a:not(.btn) {
  font-size: 20px; font-weight: 600; text-decoration: none; padding: 12px 4px;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.menu a[aria-current="page"] { color: var(--red); }
.menu .menu-cta { margin-top: 20px; }
.menu .menu-call { display: flex; align-items: center; gap: 8px; justify-content: center; border: 0 !important; color: var(--navy) !important; }

@media (min-width: 1024px) {
  .nav .wrap { min-height: 78px; }
  .logo-img { height: 42px; }
  .nav-toggle { display: none; }
  .nav-cta { display: inline-flex; }
  .menu {
    position: static; visibility: visible; opacity: 1; flex-direction: row; padding: 0; gap: 4px;
    background: none; overflow: visible; margin-right: 8px;
  }
  .menu a:not(.btn) { font-size: 16px; border: 0; padding: 8px 14px; position: relative; }
  .menu a:not(.btn)::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px;
    background: var(--red); transform: scaleX(0); transition: transform .25s var(--ease);
  }
  .menu a:not(.btn):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
  .menu .menu-cta, .menu .menu-call { display: none; }
}

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-d); color: #fff; }
.hero-track { display: flex; transition: transform .7s var(--ease); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: min(68vh, 620px); display: flex; align-items: center; }
.hero-slide picture, .hero-slide picture img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 22, 80, .92) 0%, rgba(20, 29, 99, .78) 42%, rgba(20, 29, 99, .25) 75%, rgba(20, 29, 99, .05) 100%),
              linear-gradient(0deg, rgba(14, 22, 80, .55), transparent 40%);
}
.hero-body { position: relative; padding-top: 48px; padding-bottom: 88px; }
.hero-tag {
  display: inline-block; background: var(--red); color: #fff; font-weight: 600; font-size: 14px;
  padding: 4px 14px; border-radius: 6px; margin-bottom: 14px; transform: skewX(-8deg);
}
.hero-title { font-size: clamp(26px, 6.9vw, 56px); line-height: 1.45; max-width: 15em; margin-bottom: 14px; letter-spacing: -.01em; }
.hero-title .hl {
  display: inline-block; background: var(--red); padding: .02em .32em .08em; border-radius: 8px; margin-top: .12em;
  transform: skewX(-6deg);
}
.hero-sub { font-size: clamp(16px, 2.2vw, 20px); max-width: 34em; color: #e6eaff; margin-bottom: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #fff; font-weight: 600; text-decoration: none; font-size: 18px; }
.hero-phone svg { color: var(--red); }
.hero-nav { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; align-items: center; gap: 12px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .45); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; width: 44px; }
.hero-arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(14, 22, 80, .35); color: #fff; cursor: pointer;
}
.hero-arrow[data-step="-1"] svg { transform: rotate(180deg); }
.hero-compact .hero-slide { min-height: 300px; }
.hero-compact .hero-body { padding-top: 40px; padding-bottom: 40px; }
.hero-compact .hero-title { font-size: clamp(28px, 5vw, 44px); }
@media (min-width: 1024px) {
  .hero-slide { min-height: 600px; }
  .hero-body { padding-bottom: 110px; }
  .hero-nav { bottom: 84px; }
  .hero-compact .hero-slide { min-height: 340px; }
}

/* ---------- แถบจุดเด่นใต้แบนเนอร์ ---------- */
.trust { position: relative; z-index: 2; margin-top: -44px; }
.trust-bar {
  list-style: none; margin: 0; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-up);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
}
.trust-bar li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 10px; }
.trust-bar h3 { font-size: 15px; }
.trust-bar p { font-size: 14px; color: var(--muted); margin: 2px 0 0; line-height: 1.5; }
.trust-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #eef1fb; color: var(--navy); flex: none; }
.trust-ic svg { width: 22px; height: 22px; }
@media (min-width: 768px) {
  .trust-bar { grid-template-columns: repeat(4, 1fr); padding: 10px; }
  .trust-bar li + li { border-left: 1px solid var(--line); }
  .trust-bar h3 { font-size: 16px; }
}

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding: 56px 0; }
@media (min-width: 1024px) { .sec { padding: 88px 0; } }
.sec-head { margin-bottom: 28px; max-width: 760px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(26px, 4.4vw, 40px); position: relative; padding-left: 20px; color: var(--navy); }
.sec-head h2::before {
  content: ''; position: absolute; left: 0; top: .22em; height: 1em; width: 7px; border-radius: 2px;
  background: var(--red); transform: skewX(-12deg);
}
.sec-head.center h2 { padding-left: 0; }
.sec-head.center h2::before { position: static; display: block; width: 44px; height: 6px; margin: 0 auto 14px; }
.sec-intro { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.sec-more { margin-top: 32px; text-align: center; }
.sec-soft { background: #eaeef8; }
.sec-navy { background: var(--navy-d); color: #fff; }
.sec-navy .sec-head h2 { color: #fff; }
.sec-navy .sec-intro { color: #c9d1f5; }

/* ---------- บริการ (การ์ดรูปจริง ไม่ครอป) ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -8px 0 24px; }
.chip {
  min-height: 42px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: 600 15px/1.5 var(--font); color: var(--ink); cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.svc-grid { columns: 2; column-gap: 10px; }
.svc {
  break-inside: avoid; margin: 0 0 10px; background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s; display: inline-block; width: 100%;
}
.svc[hidden] { display: none; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.svc-pic { background: #e8ecf6; }
.svc-pic img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 14px 14px 16px; }
.svc-cat { display: inline-block; font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 4px; }
.svc h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.svc p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 10px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; min-height: 32px; }
.svc-link svg { transition: transform .2s; }
.svc-link:hover svg { transform: translateX(3px); }
@media (max-width: 479px) {
  .svc-body { padding: 10px 10px 12px; }
  .svc h3 { font-size: 15px; }
  .svc p { font-size: 14px; }
}
@media (min-width: 768px) { .svc-grid { columns: 3; column-gap: 20px; } .svc { margin-bottom: 20px; } }
.rows { display: grid; gap: 14px; }
.row-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.row-item[hidden] { display: none; }
.row-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

/* ---------- เกี่ยวกับ / บริการเด่น ---------- */
.about { display: grid; gap: 28px; align-items: center; }
.about-pic img { width: 100%; border-radius: 18px; }
.about-text h2 { font-size: clamp(26px, 4.2vw, 38px); color: var(--navy); margin-bottom: 16px; }
.about-body { color: #33405f; font-size: 17px; }
.about-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.about-feature { background: linear-gradient(180deg, #fff 0%, #eef2fb 100%); }
.about-feature .about-text h2::before {
  content: 'บริการเด่น'; display: table; font-size: 14px; background: var(--red); color: #fff;
  padding: 3px 12px; border-radius: 6px; margin-bottom: 12px; transform: skewX(-8deg);
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.1fr; gap: 56px; }
  .about.pic-right .about-pic { order: 2; }
  .about.pic-right { grid-template-columns: 1.1fr 1fr; }
}

/* ---------- จุดเด่นแบบการ์ด ---------- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.why { background: #fff; border-radius: var(--radius); padding: 18px 14px; box-shadow: var(--shadow); }
.why h3 { font-size: 16px; color: var(--navy); margin: 10px 0 4px; }
.why p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
.why-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--navy); color: #fff; }
.why-ic svg { width: 24px; height: 24px; }
@media (min-width: 768px) { .why-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } .why { padding: 26px 22px; } .why h3 { font-size: 18px; } .why p { font-size: 15px; } }

/* ---------- ขั้นตอน ---------- */
.steps-sec { background: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; counter-reset: s; }
.steps li { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 16px; }
.step-no { position: absolute; top: -12px; left: 14px; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; padding: 1px 10px; border-radius: 6px; }
.step-ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--navy); border: 1px solid var(--line); margin: 6px 0 10px; }
.step-ic svg { width: 24px; height: 24px; }
.steps h3 { font-size: 16px; color: var(--navy); margin-bottom: 4px; }
.steps p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.6; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .steps li:not(:last-child)::after {
    content: ''; position: absolute; top: 50%; right: -22px; width: 16px; height: 16px;
    border-top: 2px solid var(--navy); border-right: 2px solid var(--navy); transform: translateY(-50%) rotate(45deg); opacity: .5;
  }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 15px; }
}

/* ---------- ผลงาน (masonry สัดส่วนจริง) ---------- */
.gal-sec { position: relative; overflow: hidden; }
.gal-sec::before {
  content: ''; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  border: 60px solid rgba(91, 168, 230, .08);
}
.gal-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; position: relative; }
.gal-head .sec-head { margin-bottom: 0; }
.gal { columns: 2; column-gap: 10px; position: relative; }
.gal-item { break-inside: avoid; margin: 0 0 10px; }
.gal-item a { display: block; overflow: hidden; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gal-item a:hover img { transform: scale(1.04); }
.gal-item figcaption { padding: 8px 2px 4px; font-size: 14px; line-height: 1.5; }
.gal-item figcaption b { display: block; font-weight: 600; }
.gal-item figcaption span { color: #c9d1f5; font-size: 14px; }
@media (min-width: 480px) { .gal { columns: 3; } }
@media (min-width: 1024px) { .gal { columns: var(--cols, 4); column-gap: 18px; } .gal-item { margin-bottom: 18px; } }
.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.light::backdrop { background: rgba(10, 16, 56, .9); }
.light figure { margin: 0; }
.light img { max-width: 94vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px; }
.light figcaption { color: #fff; text-align: center; padding-top: 10px; }
.light button { position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 28px; cursor: pointer; }

/* ---------- ลูกค้าที่ไว้วางใจ ---------- */
.clients { display: grid; gap: 16px; }
.client { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: grid; }
.client-pic img { width: 100%; height: 100%; object-fit: cover; }
.client-body { padding: 18px 18px 20px; }
.client-name { display: block; font-size: 20px; color: var(--navy); }
.client-detail { display: inline-block; font-size: 14px; font-weight: 600; color: var(--red); margin: 2px 0 8px; }
.client p { color: #33405f; margin: 0; }
@media (min-width: 768px) {
  .clients { grid-template-columns: repeat(auto-fit, minmax(320px, 720px)); justify-content: center; gap: 24px; }
  .client { grid-template-columns: 220px 1fr; align-items: center; }
  .client-pic { align-self: stretch; }
  .client-body { padding: 24px; }
}

/* ---------- คำถามที่พบบ่อย ---------- */
.faq-wrap { display: grid; gap: 24px; }
.faq-call { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.faq-call p { color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-a { padding: 0 18px 16px; margin: 0; color: #33405f; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; } .faq-side { position: sticky; top: 110px; } }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding: 40px 0; }
.cta-box {
  display: grid; gap: 16px; align-items: center; justify-items: start;
  background: var(--navy); color: #fff; border-radius: 20px; padding: 26px 22px; position: relative; overflow: hidden;
}
.cta-box::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(227, 38, 46, .18); }
.cta-soft .cta-box { background: #fff; color: var(--ink); box-shadow: var(--shadow-up); }
.cta-soft .cta-box::after { display: none; }
.cta-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--red); color: #fff; }
.cta-ic svg { width: 28px; height: 28px; }
.cta-box h2 { font-size: clamp(20px, 3vw, 28px); max-width: 26em; position: relative; z-index: 1; }
.cta-soft .cta-box h2 { color: var(--navy); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; position: relative; z-index: 1; }
.cta-phone { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; font-size: 19px; text-decoration: none; }
.cta-phone svg { color: var(--red); }
@media (min-width: 900px) { .cta-box { grid-template-columns: auto 1fr auto; padding: 32px 40px; gap: 28px; } }

/* ---------- ติดต่อ ---------- */
.contact-sec { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dd) 100%); color: #fff; }
.contact-sec .sec-head h2 { color: #fff; }
.contact { display: grid; gap: 28px; }
.contact-note { color: #d6dcf8; font-size: 17px; }
.contact-list { list-style: none; padding: 0; margin: 18px 0 20px; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list li > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: #fff; }
.contact-list small { display: block; color: #aab4e6; font-size: 14px; line-height: 1.5; }
.contact-list a, .contact-list span { color: #fff; text-decoration: none; font-weight: 600; word-break: break-word; }
.hours-box { margin-top: 22px; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 14px 16px; }
.hours-box > b { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.hours { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.hours li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px dashed rgba(255, 255, 255, .14); }
.hours .closed { color: #ffb3b6; }
.contact-form { background: #fff; color: var(--ink); border-radius: 20px; padding: 22px 18px; box-shadow: var(--shadow-up); }
.lead { display: grid; gap: 14px; }
.lead .f2 { display: grid; gap: 14px; }
.lead label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.lead label i { color: var(--red); font-style: normal; }
.lead input, .lead textarea, .lead select {
  width: 100%; font: 16px/1.5 var(--font); color: var(--ink); padding: 12px 14px; min-height: 50px;
  border: 1px solid #cdd4e6; border-radius: 12px; background: #f9fafd;
}
.lead textarea { min-height: 120px; resize: vertical; }
.lead input:focus, .lead textarea:focus, .lead select:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31, 44, 143, .15); background: #fff; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { margin: 0; font-weight: 600; min-height: 1.5em; }
.msg.ok { color: #0d8a4a; }
.msg.bad { color: var(--red-d); }
.map-wrap { margin-top: 28px; }
.map { width: 100%; height: 340px; border: 0; border-radius: 18px; display: block; }
@media (min-width: 600px) { .lead .f2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; } .contact-form { padding: 32px; } }

/* ---------- ข้อความอิสระ ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2, .prose-wide h2 { color: var(--navy); margin-bottom: 14px; font-size: clamp(24px, 3.6vw, 34px); }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy-dd); color: #c9d1f5; padding-top: 48px; font-size: 15px; }
.foot > .wrap { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding-bottom: 32px; }
.foot-brand { grid-column: 1 / -1; }
.foot-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.foot-logo img { height: 32px; width: auto; }
.foot-brand b { display: block; color: #fff; font-size: 18px; }
.foot-en { display: block; font-size: 14px; letter-spacing: .04em; margin-bottom: 8px; }
.foot h2 { font-size: 16px; color: #fff; margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-contact li { display: flex; gap: 8px; align-items: flex-start; }
.foot-contact svg { margin-top: 4px; color: #fff; }
.foot-contact { grid-column: 1 / -1; }
.social { display: flex; gap: 10px; margin-top: 10px; }
.social a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.foot-copy { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 96px; text-align: center; }
@media (min-width: 900px) {
  .foot > .wrap { grid-template-columns: 1.5fr 1fr 1.3fr 1.5fr; }
  .foot-brand, .foot-contact { grid-column: auto; }
  .foot > .wrap > div:last-child { grid-column: auto; }
  .foot-copy { padding-bottom: 20px; }
}

/* ---------- ปุ่มลอยมือถือ (ไลน์ + โทร) ---------- */
.float-contact {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px -10px rgba(16, 26, 63, .3);
}
.float-contact a {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: #fff;
}
.fl-line { background: #06c755; }
.fl-call { background: var(--red); }
@media (min-width: 900px) { .float-contact { display: none; } }

/* ---------- พื้นที่กดขั้นต่ำ 44px ทุกลิงก์/ปุ่ม (นิ้วกดง่ายบนมือถือ) ---------- */
.skip { min-height: 44px; display: inline-flex; align-items: center; }
.topbar a, .logo, .hero-phone, .cta-phone, .svc-link, .contact-list a, .foot a, .foot-contact a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; }
.foot ul { gap: 0; }
.chip { min-height: 44px; }
.hero-arrow { width: 44px; height: 44px; }
.hero-dots { gap: 0; }
.hero-dots button { width: 44px; height: 44px; background: none; position: relative; }
.hero-dots button::before {
  content: ''; position: absolute; left: 8px; right: 8px; top: 19px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .45);
}
.hero-dots button[aria-current="true"] { width: 56px; background: none; }
.hero-dots button[aria-current="true"]::before { background: #fff; }

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

/* ---------- บทความ (ระบบเดิม ใช้เมื่อซื้อเพิ่ม) ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.a-wrap { max-width: 780px; }
.a-wrap h1 { font-size: clamp(28px, 5vw, 42px); color: var(--navy); }
.a-meta { color: var(--muted); font-size: 14px; }
.a-cover img, .a-fig img { border-radius: 14px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.card-body { padding: 14px; }
