/* หน้าเว็บ PCSS — สีตรงไฟล์โลโก้: น้ำเงิน #292662 เป็นหลัก · เหลือง #fef100 ปุ่มและจุดเน้นบนพื้นน้ำเงิน · แดง #ee1b24 เส้นตรงแบบในโลโก้
   ภาษาภาพมาจากโลโก้: เส้นตรงยาว มุมเกือบฉาก ปลายเฉียงแบบตัว C/S · ตัวหนังสือเหลืองใช้บนพื้นน้ำเงินเท่านั้น (บนพื้นขาวอ่านไม่ออก)
   ทุกส่วนต้องยังสวยเมื่อลูกค้าใส่ข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #292662;
  --accent-ink: #ffffff;
  --navy: var(--accent);
  --yellow: #fef100;
  --red: #ee1b24;
  --cyan: #12abe3;
  --ink: #1f1c4d;
  --muted: #4d4f73;
  --paper: #ffffff;
  --paper-2: #e9ecf5;
  --line: #c9cce0;
  --on-navy: rgba(255, 255, 255, .86);
  --radius: 2px;
  --font: 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(56px, 7vw, 96px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1160px;
  /* ปุ่มหลักและสีตามพื้นของแต่ละส่วน */
  --btn-bg: var(--navy);
  --btn-ink: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.75; -webkit-text-size-adjust: 100%;
}
body.nav-open { overflow: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; }
svg[viewBox="0 0 24 24"] {
  width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6;
}

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec-alt { background: var(--paper-2); }
.sec-navy { background: var(--navy); color: #fff; --btn-bg: var(--yellow); --btn-ink: var(--navy); }
.sec-head { margin-bottom: clamp(24px, 3.4vw, 36px); }
/* หัวข้อตามด้วยเส้นแดงยาวสุดแถว เหมือนเส้นในโลโก้ */
.sec-head h2 {
  font-size: clamp(27px, 3.4vw, 40px); display: flex; align-items: center; gap: clamp(16px, 2.4vw, 28px);
}
.sec-head h2::after { content: ''; flex: 1 0 32px; height: 4px; background: var(--red); }
.sec-head p { color: var(--muted); margin: 12px 0 0; max-width: 68ch; }
.sec-navy .sec-head p { color: var(--on-navy); }
/* พื้นน้ำเงินสองส่วนติดกันต้องมีเส้นคั่น ไม่งั้นดูเป็นก้อนเดียว */
.hero + .sec-navy { border-top: 4px solid var(--red); }
.sec-navy + .cta-dark { border-top: 1px solid rgba(255, 255, 255, .25); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 28px; border-radius: var(--radius); font: inherit; font-size: 16.5px; font-weight: 700; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-ink); text-decoration: none;
  border: 1.5px solid var(--btn-bg); transition: background-color .2s ease, color .2s ease, border-color .2s ease;
  min-height: 50px;
}
.btn:hover { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-light { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }
.btn-light:hover { background: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-outline:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-icon { display: inline-flex; }

/* ---------- แถบข้อมูลบนสุด ---------- */
.topbar { background: var(--navy); color: #fff; font-size: 14.5px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.topbar .wrap {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-block: 7px;
}
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- หัวเว็บ พื้นขาว ใช้โลโก้สีจริง (น้ำเงิน-เหลือง-แดง) ให้ตัดกับพื้น ไม่กลืนกับน้ำเงินของเว็บ ---------- */
.nav { position: relative; z-index: 30; background: #fff; color: var(--ink); border-bottom: 4px solid var(--red); }
.nav .wrap {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 28px; padding-block: 12px;
  grid-template-areas: 'mark name' 'mark menu';
}
.logo { grid-area: mark; display: flex; align-items: center; padding-inline-end: 28px; border-inline-end: 1px solid var(--line); }
.logo img { width: 190px; height: auto; }
.logo-text { grid-area: name; display: grid; text-decoration: none; padding-bottom: 4px; }
.logo-text b { font-size: 22px; line-height: 1.4; color: var(--navy); }
.logo-text small { font-size: 15px; color: var(--muted); }

.nav-toggle { display: none; }
.site-menu { grid-area: menu; display: flex; align-items: center; gap: 4px; }
.site-menu a:not(.btn) {
  text-decoration: none; padding: 8px 14px; font-size: 16px; color: var(--ink); position: relative;
}
.site-menu a:not(.btn):first-child { padding-inline-start: 0; }
.site-menu a:not(.btn):hover { color: var(--navy); text-decoration: underline; text-underline-offset: 5px; }
.site-menu a[aria-current="page"] {
  color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--red);
  text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.btn-nav {
  margin-inline-start: auto; min-height: 44px; padding-block: 6px;
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.btn-nav:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

/* ---------- แบนเนอร์: ข้อความซ้ายบนพื้นน้ำเงิน รูปขวาตัดขอบเฉียงตามปลายตัวอักษรในโลโก้ ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: center; }
.hero-full .hero-slide { min-height: 480px; }
.hero-compact .hero-slide { min-height: clamp(230px, 30vh, 300px); }
.hero-slide picture img {
  position: absolute; top: 0; right: 0; width: 46%; height: 100%; object-fit: cover; object-position: 100% 60%;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-body {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) var(--pad);
}
.hero-copy { max-width: min(600px, 48vw); }
.hero-eyebrow { margin: 0 0 12px; font-size: 16.5px; font-weight: 600; color: var(--yellow); }
.hero-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.42; font-weight: 700; margin: 0 0 14px; text-wrap: balance; }
.hero-compact .hero-title { font-size: clamp(30px, 3.6vw, 44px); }
.hero-sub { margin: 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-dots { position: absolute; left: 0; right: 0; bottom: 4px; z-index: 3; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.hero-dots button { width: 44px; height: 44px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; pointer-events: auto; }
.hero-dots button::before {
  content: ''; width: 26px; height: 4px; background: rgba(255, 255, 255, .45); transition: background .2s ease;
}
.hero-dots button[aria-current="true"]::before { background: var(--yellow); }
.hero-arrow {
  position: absolute; bottom: 10px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius); background: var(--navy); color: #fff; cursor: pointer;
}
.hero-prev { right: calc(var(--pad) + 52px); }
.hero-next { right: var(--pad); }

/* ---------- แถบข้อเท็จจริงใต้แบนเนอร์ ---------- */
.trust { background: var(--navy); color: #fff; }
.trust .wrap { padding-block: 0 24px; }
.trust-intro { margin: 0 0 14px; }
.trust-list {
  list-style: none; margin: 0; padding: 18px 0 0; border-top: 4px solid var(--red);
  display: grid; grid-template-columns: .7fr 1.5fr 1.2fr .9fr; gap: 14px;
}
.trust-list li { display: flex; align-items: flex-start; gap: 12px; padding-inline-start: 18px; border-inline-start: 1px solid rgba(255, 255, 255, .28); min-width: 0; }
.trust-list li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.trust-list p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--on-navy); }
.trust-list p + p { font-size: 17px; font-weight: 600; color: #fff; margin-top: 2px; overflow-wrap: anywhere; }
.trust .feature-icon { color: var(--yellow); }

/* ---------- รายการเหตุผล พื้นน้ำเงิน ---------- */
.reasons .sec-head h2 { display: block; }
.reasons .sec-head h2::after { content: ''; display: block; width: 100%; height: 4px; margin-top: 16px; }
.features-grid { display: grid; }
.feature { display: flex; gap: 18px; align-items: flex-start; padding-block: 18px; border-bottom: 1px solid rgba(255, 255, 255, .24); }
.feature:first-child { padding-top: 0; }
.feature-icon { flex: none; display: grid; place-items: center; color: var(--yellow); }
.feature-icon svg { width: 26px; height: 26px; margin-top: 2px; }
.feature h3 { font-size: 19.5px; margin-bottom: 3px; }
.feature p { margin: 0; color: var(--on-navy); font-size: 16px; line-height: 1.65; }

/* ---------- ขั้นตอน ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.steps li { position: relative; }
.steps li:not(:last-child)::after {
  content: ''; position: absolute; top: 30px; left: 84px; right: 8px; height: 1px; background: var(--navy); opacity: .55;
}
.step-no { display: block; margin-bottom: 8px; color: var(--navy); font-weight: 700; font-size: 42px; line-height: 1.45; }
.steps h3 { font-size: 18px; line-height: 1.5; }
.steps p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- เกี่ยวกับ / บริการเด่น: น้ำเงินสลับสว่าง สีทั้งหมดคุมด้วยตัวแปร ---------- */
.about-sec {
  --tone-bg: var(--navy); --tone-ink: #fff; --tone-h: var(--yellow); --tone-p: var(--on-navy);
  --btn-bg: var(--yellow); --btn-ink: var(--navy);
  background: var(--tone-bg); color: var(--tone-ink);
}
.hero + .about-sec, .about-sec + .about-sec {
  --tone-bg: var(--paper-2); --tone-ink: var(--ink); --tone-h: var(--navy); --tone-p: var(--muted);
  --btn-bg: var(--navy); --btn-ink: #fff;
}
.about-sec + .about-sec + .about-sec {
  --tone-bg: var(--navy); --tone-ink: #fff; --tone-h: var(--yellow); --tone-p: var(--on-navy);
  --btn-bg: var(--yellow); --btn-ink: var(--navy);
}
.about-sec + .about-sec + .about-sec + .about-sec {
  --tone-bg: var(--paper-2); --tone-ink: var(--ink); --tone-h: var(--navy); --tone-p: var(--muted);
  --btn-bg: var(--navy); --btn-ink: #fff;
}
.about { display: grid; gap: clamp(24px, 4vw, 52px); align-items: center; }
/* รูปใช้สัดส่วนไฟล์จริง ไม่ครอป */
.about-pic img { width: 100%; height: auto; }
.about-text h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--tone-h); margin-bottom: 14px; }
.about-text p { color: var(--tone-p); margin: 0 0 16px; white-space: pre-line; }
.about-text .btn { margin-top: 6px; }
.about.no-pic { max-width: 780px; }

/* ---------- บริการ: สารบัญมีเลขกำกับ ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger-row {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: baseline;
  padding-block: 18px; border-bottom: 1px solid var(--line);
}
.ledger-no { font-size: 30px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.ledger-row h3 { font-size: 21px; color: var(--navy); }
.ledger-body { grid-column: 2; min-width: 0; }
.ledger-body p { margin: 0; color: var(--muted); font-size: 16.5px; line-height: 1.65; }
.ledger-row .card-pic { grid-column: 2; margin-bottom: 6px; max-width: 220px; }
.ledger-row .btn { margin-top: 10px; }

/* การ์ดของบทความและแถวสินค้า (ใช้เมื่อเปิดของเสริม) */
.cards { display: grid; gap: clamp(14px, 2vw, 22px); }
.card {
  display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(41, 38, 98, .1); }
.card-pic { overflow: hidden; background: var(--paper-2); }
.card-pic img { width: 100%; height: auto; }
.card-body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; padding: clamp(16px, 2vw, 22px); }
.card-body h2, .card-body h3 { font-size: 20px; color: var(--navy); }
.card-body p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.card-price { font-weight: 700; font-size: 17px; margin-top: auto; padding-top: 8px; }
.card-price s { color: var(--muted); font-weight: 400; font-size: 14.5px; margin-inline-start: 8px; }
.card .btn { margin-top: 10px; width: 100%; }
.card-sold { color: var(--muted); font-weight: 600; font-size: 14.5px; margin-top: auto; padding-top: 8px; }

.rows { display: grid; gap: 12px; }
.row-item {
  display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.row-item h3 { font-size: 17px; }
.row-item p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- ผลงาน: ไม่ครอป ใช้สัดส่วนไฟล์จริง ---------- */
.gal { columns: 2; column-gap: 10px; }
.gal a { display: block; margin-bottom: 10px; break-inside: avoid; }
.gal img { width: 100%; height: auto; }

dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(10, 9, 36, .88); }
dialog.light img { max-height: 88vh; width: auto; }
dialog.light button {
  position: fixed; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; cursor: pointer;
}

/* ---------- เสียงลูกค้า ---------- */
.quotes { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.quote { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.quote p { margin: 0 0 16px; font-size: 16px; line-height: 1.8; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.quote b { display: block; font-size: 15px; }
.quote span { color: var(--muted); font-size: 14px; }

/* ---------- คำถามที่พบบ่อย: หัวข้อซ้าย รายการขวา ---------- */
.faq { border-top: 1px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 48px 15px 0; font-weight: 600; position: relative; list-style: none; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ''; position: absolute; right: 8px; top: 50%; width: 15px; height: 2px; background: var(--navy);
}
.faq summary::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(0); }
.faq .faq-a { padding: 12px 16px; margin: 0 0 16px; color: var(--muted); background: var(--paper-2); white-space: pre-line; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { text-align: center; }
.cta-dark { background: var(--navy); color: #fff; }
.cta-soft { background: var(--paper-2); }
.cta-band h2 { font-size: clamp(23px, 3vw, 32px); margin-bottom: 20px; }

/* ---------- ติดต่อ: ตารางข้อมูลจริงซ้าย แบบฟอร์มขวา บนพื้นน้ำเงินทั้งคู่ ---------- */
.contact-sec .sec-head { margin-bottom: 20px; }
.contact { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
.contact-note { margin: 0 0 10px; color: var(--on-navy); }
.contact-list { display: grid; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-list li {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline;
  padding-block: 9px; border-bottom: 1px solid rgba(255, 255, 255, .22); overflow-wrap: anywhere;
}
.contact-list .k { color: var(--on-navy); font-size: 15.5px; }
.contact-list a { text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; margin-block: -9px; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hours { margin: 0 0 24px; padding: 0; list-style: none; font-size: 15.5px; max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, .3); }
.hours .closed { opacity: .75; }
.map { border: 0; width: 100%; aspect-ratio: 4 / 3; display: block; }
.map-wrap { margin-top: 28px; }
.map-wrap .map { aspect-ratio: 21 / 9; min-height: 280px; }

form.lead { display: grid; gap: 14px; position: relative; }
form.lead h3 { font-size: 22px; padding-bottom: 12px; border-bottom: 4px solid var(--red); margin-bottom: 4px; }
form.lead label { font-size: 15.5px; font-weight: 600; display: block; margin-bottom: 5px; }
form.lead input, form.lead textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px; min-height: 48px;
  border: 1px solid #fff; border-radius: var(--radius); background: #fff; color: var(--ink);
}
form.lead textarea { min-height: 120px; resize: vertical; }
form.lead .hp { position: absolute; left: -9999px; width: 1px; }
form.lead .msg { font-size: 15px; margin: 0; }
form.lead .msg:empty { display: none; }
form.lead .msg.ok { color: #a9f0c4; }
form.lead .msg.bad { color: #ffc2c5; }
.lead-row { display: grid; gap: 14px; }

/* ---------- บทความ (ใช้เมื่อเปิดของเสริมบทความ) ---------- */
.a-wrap { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.a-wrap h1 { font-size: clamp(26px, 4.2vw, 40px); margin-bottom: 12px; }
.a-meta { color: var(--muted); font-size: 14.5px; margin: 0 0 22px; }
.a-cover { margin: 0 0 26px; }
.a-cover img { width: 100%; }
.a-lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; line-height: 1.8; }
.a-toc { background: var(--paper-2); border: 1px solid var(--line); padding: 18px 22px; margin-bottom: 32px; }
.a-toc b { display: block; font-size: 14px; margin-bottom: 8px; }
.a-toc ol { margin: 0; padding-inline-start: 20px; }
.a-toc li { margin-bottom: 5px; }
.a-toc a { color: var(--muted); text-decoration: none; }
.a-toc a:hover { color: var(--accent); text-decoration: underline; }
.a-body > * { margin-block: 0 20px; }
.a-body h2 { font-size: clamp(21px, 3vw, 27px); margin-block: 44px 14px; scroll-margin-top: 84px; }
.a-body h3 { font-size: clamp(18px, 2.4vw, 21px); margin-block: 30px 10px; }
.a-body p { line-height: 1.9; }
.a-body a:not(.btn) { color: var(--accent); text-underline-offset: 3px; }
.a-body ul, .a-body ol { padding-inline-start: 24px; line-height: 1.9; }
.a-body li { margin-bottom: 8px; }
.a-body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-inline-start: 3px solid var(--accent); }
.a-body blockquote p { font-size: 18px; margin-bottom: 8px; }
.a-body blockquote cite { color: var(--muted); font-size: 14.5px; font-style: normal; }
.a-fig { margin: 28px 0; }
.a-fig img { width: 100%; }
.a-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.a-cta { background: var(--paper-2); padding: 24px; text-align: center; margin: 32px 0; }
.a-cta p { margin: 0 0 14px; }
.a-embed { margin: 32px 0; }
.a-embed h3 { margin-block: 0 14px; font-size: 18px; }
.a-embed .cards { gap: 14px; }
.a-embed .card-body h4 { margin: 0; font-size: 15.5px; }
.a-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.a-related li a { display: block; padding: 13px 16px; background: var(--paper-2); text-decoration: none; font-weight: 600; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--navy); color: #fff; padding-block: 0 24px; }
.foot-grid { display: grid; gap: 30px; }
.foot-grid::before { content: ''; grid-column: 1 / -1; height: 4px; background: var(--red); }
.foot-brand img { width: 170px; height: auto; margin-bottom: 10px; }
.foot-brand b { display: block; font-size: 18px; line-height: 1.5; }
.foot-brand p { margin: 8px 0 0; font-size: 15px; line-height: 1.7; color: var(--on-navy); }
.foot-h { margin: 0 0 8px; font-weight: 700; }
.foot-links { display: grid; }
.foot-links a, .foot-list a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 15px; color: var(--on-navy); }
.foot-links a:hover, .foot-list a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-list { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.65; color: var(--on-navy); overflow-wrap: anywhere; }
.foot-list li { padding-block: 5px; }
.foot-list li:has(a) { padding-block: 0; }
.foot-copy { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .24); font-size: 14.5px; }
.foot .social { display: flex; gap: 10px; margin-top: 14px; }
.foot .social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); }

/* ---------- เนื้อหาปรากฏตอนเลื่อนถึง ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

.float-contact { display: none; }

/* ---------- จอใหญ่ ---------- */
@media (min-width: 480px) {
  .lead-row { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(var(--cols, 2), 1fr); }
  .gal { columns: 3; }
  .quotes { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .about { grid-template-columns: 1.05fr 1fr; }
  .about.pic-right { grid-template-columns: 1fr 1.05fr; }
  .about.pic-right .about-text { order: -1; }
  .about.no-pic { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr 1.1fr; }
  .foot-grid { grid-template-columns: 1.6fr .7fr 1.2fr 1.3fr; }
  .ledger-row { grid-template-columns: 72px minmax(0, 5fr) minmax(0, 7fr); gap: 20px; }
  .ledger-row .card-pic { grid-column: 2; grid-row: 2; margin: 0; }
  .ledger-body { grid-column: 3; padding-inline-start: 20px; border-inline-start: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .reasons { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
  .reasons .sec-head { margin-bottom: 0; }
  .faq-split { display: grid; grid-template-columns: 1fr 2.4fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
  .faq-split .sec-head { margin-bottom: 0; }
  .faq-split .sec-head h2 { display: block; }
  .faq-split .sec-head h2::after { display: block; width: 72px; height: 4px; margin-top: 16px; content: ''; }
}

/* ---------- มือถือและแท็บเล็ต: หัวเว็บติดบนจอ เมนูเต็มจอ ---------- */
@media (max-width: 980px) {
  .topbar { display: none; }
  .nav { position: sticky; top: 0; }
  .nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding-block: 4px; }
  .logo { padding: 0; border: 0; }
  .logo img { width: 124px; }
  .logo-text { display: none; }
  .nav-toggle {
    display: grid; place-items: center; width: 48px; height: 48px; position: relative; z-index: 2;
    border: 0; background: none; color: var(--navy); font-size: 22px; cursor: pointer;
  }
  .nav-open .nav-toggle { color: #fff; }
  .nav-toggle .i-close { display: none; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .site-menu {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: stretch;
    justify-content: center; gap: 4px; padding: 76px var(--pad) 32px; background: var(--navy);
    visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility .2s ease; overflow-y: auto;
  }
  .nav-open .site-menu { visibility: visible; opacity: 1; }
  .site-menu a:not(.btn), .site-menu a:not(.btn):first-child { font-size: 22px; padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
  .site-menu a:not(.btn):not([aria-current="page"]), .site-menu a:not(.btn):hover { color: #fff; }
  .site-menu a[aria-current="page"] { color: var(--yellow); text-decoration: none; }
  .btn-nav { margin: 18px 0 0; background: var(--yellow); color: var(--navy); border-color: var(--yellow); }

  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-list li:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .steps li:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .float-contact {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; gap: 10px;
    background: var(--navy); border-top: 3px solid var(--red);
    padding: 6px var(--pad) calc(6px + env(safe-area-inset-bottom, 0px));
    --btn-bg: var(--yellow); --btn-ink: var(--navy);
  }
  /* 3 ปุ่ม (LINE / WhatsApp / โทร) ต้องพอดีจอ 360px */
  .float-contact { gap: 8px; }
  .float-contact .btn { flex: 1; padding-inline: 8px; min-height: 46px; font-size: 15px; gap: 6px; white-space: nowrap; }
  .float-contact .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
  body { padding-bottom: 62px; }
  .nav-open .float-contact { display: none; }
}
/* มือถือ: ข้อความขึ้นก่อน รูปเป็นแถบเต็มกว้างใต้ข้อความ */
@media (max-width: 719px) {
  body { font-size: 16px; }
  .hero-full .hero-slide, .hero-compact .hero-slide { min-height: 0; }
  .hero-slide picture { order: 2; display: block; }
  .hero-slide picture img {
    position: static; width: 100%; height: 170px; clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
  }
  .hero-compact .hero-slide picture img { height: 96px; }
  .hero-body { padding-block: 26px 22px; }
  .hero-copy { max-width: none; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-prev { right: auto; left: var(--pad); }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; align-items: baseline; }
  .steps .step-no { margin: 0; font-size: 32px; grid-row: span 2; }
  .ledger-row { grid-template-columns: 52px minmax(0, 1fr); }
  .ledger-no { font-size: 26px; }
  .row-item { grid-template-columns: 72px 1fr; }
  .row-item .row-cta { grid-column: 1 / -1; }
  .contact-list li { grid-template-columns: 84px minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
