/* Thaisiri incense — หน้าตาเว็บ (ทิศทาง: มินิมอลตัวอักษรนำ · ครีมอบอุ่น น้ำตาล ทอง)
   ตัวหนังสือเป็นพระเอก เส้นบางแบ่งส่วน ไม่มีการ์ด/เงา มุมเหลี่ยม รูปสัดส่วนจริงไม่ครอป (ยกเว้นแบนเนอร์)
   กฎ: ทุกส่วนต้องยังสวยเมื่อข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #7a4a1f;
  --accent-ink: #ffffff;
  --gold: #a06f26;
  --gold-soft: #e9d6b0;
  --ink: #2b1c10;
  --muted: #6b5847;
  --paper: #fbf7ef;
  --paper-2: #f4ecdd;
  --dark: #4a2b14;
  --dark-2: #3b210f;
  --line: #e2d5bf;
  --radius: 0;
  --font: 'Anuphan', -apple-system, 'Segoe UI', sans-serif;
  --gap: clamp(56px, 8vw, 112px);
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

* { 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.7; -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.4; margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.sec { padding-block: var(--gap); }
.sec + .sec { padding-top: 0; }
.sec-tight { padding-block: clamp(40px, 6vw, 72px); }

/* หัวข้อของส่วน */
.sec-head { margin-bottom: clamp(24px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: end; gap: 8px 24px; }
.sec-head h2 { font-size: clamp(28px, 4.4vw, 48px); letter-spacing: -.01em; flex: 1 1 320px; }
.sec-head p { color: var(--muted); flex: 1 1 100%; max-width: 60ch; margin: 0; }
.sec-head .more { margin-left: auto; }

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 24px; min-height: 48px; border-radius: 2px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink); border: 1.5px solid var(--accent); cursor: pointer;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--dark); border-color: var(--dark); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-onDark { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-onDark:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn .arr, .more .arr, .ask .arr { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .arr, .more:hover .arr, .ask:hover .arr { transform: translateX(3px); }
.more, .ask { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.num { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; font-size: 14px; font-weight: 600; color: var(--gold); letter-spacing: .02em; }

/* ---------- แถบข้อมูลบน + หัวเว็บ ---------- */
.topbar { background: var(--dark); color: #f3e7d3; font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; min-height: 38px; align-items: center; padding-block: 6px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar svg { width: 16px; height: 16px; }
.topbar a:hover { text-decoration: underline; }

/* ห้ามใส่ backdrop-filter / transform / filter ที่หัวเว็บ ไม่งั้นเมนูมือถือ (fixed) จะโผล่แค่ในกรอบหัวเว็บ */
.nav { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.logo-img { height: 52px; width: auto; mix-blend-mode: multiply; }
.logo-text { display: flex; flex-direction: column; line-height: 1.4; padding-left: 14px; border-left: 1px solid var(--line); min-width: 0; }
.logo-text b { font-size: 19px; }
.logo-text small { font-size: 13.5px; color: var(--muted); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.menu a:not(.btn) { position: relative; text-decoration: none; padding: 10px 14px; font-size: 16px; font-weight: 500; color: var(--ink); }
.menu a:not(.btn)::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.menu a:not(.btn):hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.menu a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.menu-cta { margin-left: 12px; }
.burger { display: none; }

@media (max-width: 1080px) {
  .menu-cta { display: none; }
}
@media (max-width: 900px) {
  .nav .wrap { min-height: 64px; }
  .logo-img { height: 42px; }
  .logo-text { display: none; }
  .burger {
    display: grid; place-content: center; gap: 5px; margin-left: auto; width: 48px; height: 48px;
    border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; z-index: 42;
  }
  .burger span { display: block; width: 22px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
  body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .burger span:nth-child(2) { opacity: 0; }
  body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; z-index: 41; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: center; gap: 0;
    padding: 96px var(--pad) 40px; margin: 0;
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .menu { opacity: 1; visibility: visible; }
  .menu a:not(.btn) { font-size: clamp(26px, 7vw, 34px); font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu a:not(.btn)::after { display: none; }
  .menu-cta { display: inline-flex; margin: 28px 0 0; }
}

/* ---------- แบนเนอร์หน้าแรก (ตัวอักษรนำ) ---------- */
.tx-hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.tx-hero-grid { display: grid; grid-template-columns: 1fr; }
.tx-hero-text { padding: clamp(36px, 7vw, 96px) var(--pad) clamp(28px, 4vw, 48px); max-width: 760px; position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 500; margin: 0 0 18px; color: var(--ink); }
.eyebrow::after { content: ''; height: 1px; width: clamp(48px, 10vw, 120px); background: var(--gold); }
.tx-hero h1 { font-size: clamp(36px, 6.6vw, 80px); line-height: 1.4; letter-spacing: -.015em; margin-bottom: clamp(16px, 2vw, 24px); }
.lead { font-size: clamp(17px, 1.9vw, 21px); color: var(--muted); max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: clamp(20px, 3vw, 32px) 0 20px; }
.hero-tel { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; text-decoration: none; }
.hero-tel svg { color: var(--gold); }
.tx-hero-pic { position: relative; }
.tx-hero-pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 80% 60%; }
@media (min-width: 960px) {
  .tx-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: clamp(520px, 72vh, 720px); align-items: center; }
  .tx-hero-text { padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad))); max-width: none; }
  .tx-hero h1 { font-size: clamp(44px, 5.2vw, 80px); }
  .tx-hero-pic { position: absolute; inset: 0 0 0 42%; }
  .tx-hero-pic::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 40%, transparent) 22%, transparent 45%); }
  .tx-hero-pic img { height: 100%; aspect-ratio: auto; object-position: 85% 60%; }
}
@media (max-width: 959px) { .tx-hero-pic img { max-height: 62vh; } }

/* แถบตัวหนังสือวิ่ง (ชื่อหมวดสินค้า) */
.ticker { position: relative; z-index: 2; background: var(--dark); color: #f3e7d3; overflow: hidden; border-top: 1px solid var(--dark); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 22px; padding: 12px 11px; white-space: nowrap; }
.ticker b { font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.ticker .dot { width: 6px; height: 6px; background: var(--gold-soft); transform: rotate(45deg); flex: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- หัวหน้ารอง ---------- */
.tx-page { border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 8px; font-size: 14.5px; color: var(--muted); padding-top: clamp(24px, 4vw, 40px); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.tx-page-head { display: grid; gap: 24px 56px; padding-block: clamp(18px, 3vw, 32px) clamp(32px, 5vw, 64px); align-items: center; }
.tx-page h1 { font-size: clamp(34px, 5vw, 64px); line-height: 1.4; letter-spacing: -.015em; }
.tx-page .lead { margin: 16px 0 20px; }
.tx-page-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; }
@media (min-width: 900px) { .tx-page-head { grid-template-columns: 1.15fr 1fr; } }

/* ---------- แถบจุดเด่นใต้แบนเนอร์ ---------- */
.sec-trust { border-bottom: 1px solid var(--line); }
.sec-trust .sec-head { padding-top: 32px; margin-bottom: 0; }
.trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.trust li { display: flex; gap: 12px; align-items: flex-start; padding: 22px 14px; border-left: 1px solid var(--line); }
.trust li:nth-child(odd) { border-left: 0; padding-left: 0; }
.trust li:nth-child(n+3) { border-top: 1px solid var(--line); }
.trust .ic { color: var(--gold); margin-top: 3px; }
.trust .ic svg { width: 22px; height: 22px; }
.trust h3 { font-size: clamp(16px, 1.7vw, 19px); font-weight: 600; }
.trust p { margin: 2px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .trust li { padding: 30px 24px; border-top: 0 !important; border-left: 1px solid var(--line); justify-content: center; }
  .trust li:first-child { border-left: 0; padding-left: 0; }
  .trust li:nth-child(odd):not(:first-child) { border-left: 1px solid var(--line); padding-left: 24px; }
}

/* ---------- สินค้า: คอลัมน์มีเส้นแบ่ง ---------- */
.prod-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 0; border-top: 1px solid var(--ink); padding-top: 24px; }
.prod { padding: 0 12px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prod:nth-child(odd) { border-left: 0; padding-left: 0; }
.prod:nth-child(even) { padding-right: 0; }
.prod-pic { margin-bottom: 12px; background: var(--paper-2); }
.prod-pic img { width: 100%; transition: transform .5s ease; }
.prod:hover .prod-pic img { transform: scale(1.02); }
.prod-pic { overflow: hidden; }
.prod h3 { font-size: clamp(18px, 2vw, 23px); }
.prod p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
@media (min-width: 900px) {
  .prod-cols { grid-template-columns: repeat(4, 1fr); }
  .prod { padding: 0 22px; border-left: 1px solid var(--line) !important; }
  .prod:first-child { border-left: 0 !important; padding-left: 0; }
  .prod:nth-child(even) { padding-right: 22px; }
  .prod:last-child { padding-right: 0; }
  .prod-cols > .prod:nth-child(4n+1) { border-left: 0 !important; padding-left: 0; }
}

/* ---------- สินค้า: ตาราง (หน้าสินค้า) ---------- */
.prod-table { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.prod-table li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.prod-table .num { font-size: 20px; padding-top: 2px; }
.pt-pic { grid-column: 2; max-width: 360px; background: var(--paper-2); }
.pt-text { grid-column: 2; }
.pt-text h3 { font-size: clamp(21px, 2.6vw, 30px); margin: 4px 0 8px; }
.pt-text p { color: var(--muted); max-width: 52ch; margin-bottom: 14px; }
@media (min-width: 760px) {
  .prod-table li { grid-template-columns: 64px minmax(0, 300px) minmax(0, 1fr); gap: 32px; padding: 32px 0; }
  .prod-table .num { font-size: 28px; }
  .pt-pic, .pt-text { grid-column: auto; }
}

/* ---------- เกี่ยวกับ / สินค้าเด่น (ภาพ + ตัวหนังสือ) ---------- */
.spot { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.spot-pic { margin: 0; }
.spot-pic { display: flex; justify-content: center; }
.spot-pic img { width: auto; max-width: 100%; max-height: min(620px, 80vh); }
.spot-text h2 { font-size: clamp(28px, 4vw, 46px); line-height: 1.4; margin-bottom: 18px; letter-spacing: -.01em; }
.spot-text p { color: var(--muted); white-space: pre-line; max-width: 58ch; }
.spot-text p:first-child { color: var(--ink); }
.spot-text .btn { margin-top: 10px; }
@media (min-width: 860px) {
  .spot { grid-template-columns: 1fr 1fr; }
  .spot.pic-right .spot-text { order: -1; }
}

/* ---------- ด้านข้าง: หัวข้อซ้าย เนื้อหาขวา (ขั้นตอน เหตุผล) ---------- */
.side { display: grid; gap: 20px; }
.side .sec-head { margin: 0; }
.side .sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.steps, .reasons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.steps li, .reasons li { padding: 20px 14px 20px 0; border-bottom: 1px solid var(--line); }
.steps li:nth-child(even), .reasons li:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.steps .num, .reasons .num { display: block; font-size: clamp(30px, 4vw, 44px); line-height: 1; margin-bottom: 10px; }
.steps h3, .reasons h3 { font-size: clamp(17px, 1.8vw, 20px); font-weight: 600; }
.steps p, .reasons p { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.reasons .num { font-size: 15px; letter-spacing: .1em; margin-bottom: 8px; }
@media (min-width: 900px) {
  .side { grid-template-columns: minmax(200px, 1fr) 3fr; gap: 40px; align-items: start; }
  .steps, .reasons { grid-template-columns: repeat(4, 1fr); border-top: 0; }
  .steps li, .reasons li { border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 24px 8px !important; }
}

/* ---------- ตารางราคาเบื้องต้น ---------- */
.prices { margin: 0 0 28px; border-top: 1px solid var(--ink); }
.prices > div { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prices dt { font-weight: 600; font-size: 18px; }
.prices .lead-dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-5px); min-width: 24px; }
.prices dd { margin: 0; color: var(--accent); font-weight: 600; text-align: right; }

/* ---------- คู่ส่วนที่วางข้างกันบนจอใหญ่ ---------- */
.pair { padding-block: var(--gap); }
.pair > section { padding: 0; }
.pair > section > .wrap { padding-inline: 0; }
.pair { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); display: grid; gap: clamp(40px, 6vw, 72px); }
.pair .spot { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
.pair .spot-text h2 { font-size: clamp(26px, 3.2vw, 36px); }
@media (min-width: 960px) {
  .pair { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .pair-about { grid-template-columns: 1fr 1fr; }
}

/* ---------- การ์ด QR หน้าติดต่อ (LINE / WhatsApp) ---------- */
.qr-in { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: clamp(18px, 3vw, 32px); align-items: center;
  border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 3vw, 28px); background: #fff; }
.qr-pic { margin: 0; }
.qr-pic img { width: 100%; height: auto; border-radius: 8px; }
.qr-text h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; margin-bottom: 8px; }
.qr-text p { color: var(--muted); }
.qr-text .btn { margin-top: 12px; }
@media (max-width: 480px) { .qr-in { grid-template-columns: 1fr; justify-items: center; text-align: center; } .qr-pic { max-width: 220px; } }

/* ---------- แกลเลอรี: แถบเข้มหน้าแรก ---------- */
.gal-band { background: var(--dark); color: #f6ecdc; padding-block: clamp(40px, 6vw, 72px); }
.gal-band-in { display: grid; gap: 24px; }
.gal-band-head h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 10px; color: #fff; }
.gal-band-head p { opacity: .82; margin-bottom: 20px; max-width: 40ch; }
.gal-strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.gal-strip a { flex: none; scroll-snap-align: start; background: var(--dark-2); }
.gal-strip img { height: clamp(180px, 22vw, 260px); width: auto; transition: opacity .2s ease; }
.gal-strip a:hover img { opacity: .88; }
@media (min-width: 960px) { .gal-band-in { grid-template-columns: 280px minmax(0, 1fr); align-items: center; gap: 40px; } }

/* ---------- แกลเลอรี: masonry หน้าแกลเลอรี ---------- */
.masonry { columns: 2; column-gap: 10px; }
.masonry figure { break-inside: avoid; margin: 0 0 18px; }
.masonry a { display: block; background: var(--paper-2); overflow: hidden; }
.masonry img { width: 100%; transition: transform .5s ease; }
.masonry a:hover img { transform: scale(1.02); }
.masonry figcaption { padding-top: 8px; font-size: 15px; line-height: 1.5; }
.masonry figcaption b { display: block; font-weight: 600; }
.masonry figcaption span { color: var(--muted); }
@media (min-width: 480px) { .masonry { columns: 3; } }
@media (min-width: 1024px) { .masonry { columns: var(--cols, 3); column-gap: 20px; } }

dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; color: #fff; text-align: center; }
dialog.light::backdrop { background: rgba(30, 18, 8, .9); }
dialog.light img { max-height: 84vh; width: auto; margin: 0 auto; }
dialog.light p { margin: 10px 0 0; font-size: 15px; }
dialog.light button { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { border-top: 1px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 40px 1fr 24px; gap: 8px; align-items: baseline; padding: 18px 0; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; line-height: 1; color: var(--gold); justify-self: end; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary .num { font-size: 15px; }
.faq .faq-a { margin: 0; padding: 0 32px 20px 48px; color: var(--muted); white-space: pre-line; }

/* ---------- ติดต่อ (กล่องเข้ม) ---------- */
.contact-box { background: var(--dark); color: #f6ecdc; display: grid; gap: 28px; padding: clamp(24px, 4vw, 48px); }
.contact-info h2 { font-size: clamp(26px, 3.2vw, 38px); color: #fff; margin-bottom: 14px; }
.contact-info > p { opacity: .85; }
.contact-list { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; overflow-wrap: anywhere; }
.contact-list svg { color: var(--gold-soft); margin-top: 4px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.hours { list-style: none; margin: 0; padding: 0; font-size: 15px; max-width: 340px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.2); }
.hours .closed { opacity: .65; }
.map { border: 0; width: 100%; aspect-ratio: 16 / 9; }
.map-wrap { margin-top: 24px; }
@media (min-width: 860px) { .contact-box { grid-template-columns: 1fr 1.1fr; gap: 48px; } }
.pair .contact-box { grid-template-columns: 1fr; }

form.lead { display: grid; gap: 14px; }
form.lead label { font-size: 15px; font-weight: 600; display: block; margin-bottom: 6px; color: #fff3e0; }
form.lead input, form.lead textarea, form.lead select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px;
  border: 1px solid transparent; border-radius: 2px; background: #fffaf2; color: var(--ink);
}
form.lead input::placeholder, form.lead textarea::placeholder { color: #8d7a66; }
form.lead textarea { min-height: 112px; resize: vertical; }
form.lead .btn { background: var(--gold); border-color: var(--gold); }
form.lead .btn:hover { background: #fff; color: var(--dark); border-color: #fff; }
form.lead .hp { position: absolute; left: -9999px; }
form.lead .msg { font-size: 15px; margin: 0; min-height: 1em; }
form.lead .msg.ok { color: #d9f2c8; }
form.lead .msg.bad { color: #ffc9b8; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { padding-block: clamp(48px, 7vw, 88px); text-align: left; }
.cta-band .wrap { display: grid; gap: 24px; align-items: center; }
.cta-dark { background: var(--dark); color: #fff; }
.cta-soft { background: var(--paper-2); }
.cta-band h2 { font-size: clamp(26px, 3.8vw, 44px); line-height: 1.4; max-width: 24ch; }
@media (min-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }

/* ---------- เสียงลูกค้า (เผื่อเปิดใช้ภายหลัง) ---------- */
.quotes { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.quote { margin: 0; padding: 24px 0; border-bottom: 1px solid var(--line); }
.quote p { font-size: 19px; margin: 0 0 12px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote b { display: block; }
.quote span span { color: var(--muted); font-size: 14.5px; }
.narrow { max-width: 760px; }

/* ---------- สไลด์เต็มจอ (รูปแบบสำรอง) ---------- */
.hero-full { position: relative; overflow: hidden; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-height: clamp(420px, 68vh, 680px); display: grid; align-content: end; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30,18,8,.1), rgba(30,18,8,.65)); }
.hero-body { position: relative; z-index: 2; color: #fff; max-width: var(--max); width: 100%; margin: 0 auto; padding: 48px var(--pad); }
.hero-body h1 { font-size: clamp(32px, 5vw, 60px); max-width: 18ch; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hero-dots button { width: 12px; height: 12px; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.hero-dots button[aria-current="true"] { background: #fff; width: 30px; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: var(--dark-2); color: #eadcc6; padding-block: clamp(44px, 6vw, 72px) 28px; font-size: 15.5px; }
.foot .wrap { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-logo { display: inline-block; background: #fbf7ef; padding: 10px 14px; margin-bottom: 14px; }
.foot-logo img { height: 60px; width: auto; mix-blend-mode: multiply; }
.foot-brand b { display: block; font-size: 19px; color: #fff; }
.foot-brand p { opacity: .8; max-width: 40ch; margin: 6px 0 0; }
.foot h2 { font-size: 16px; color: #fff; margin-bottom: 12px; letter-spacing: .02em; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-contact li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.foot-contact svg { width: 17px; height: 17px; margin-top: 4px; color: var(--gold-soft); }
.foot .social { display: flex; gap: 10px; margin-top: 14px; }
.foot .social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); }
.copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; opacity: .7; font-size: 14px; }
@media (min-width: 900px) {
  .foot .wrap { grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; }
  .foot-brand { grid-column: auto; padding-right: 24px; }
}

/* ปุ่มติดต่อลอยบนมือถือ — โทร (และไลน์ถ้ามี) */
.float-contact { display: none; }
@media (max-width: 760px) {
  .float-contact {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    border-top: 1px solid var(--line); background: var(--paper);
    padding: 8px var(--pad) calc(8px + env(safe-area-inset-bottom, 0px)); gap: 10px;
  }
  .float-contact .btn { flex: 1; min-height: 44px; padding-block: 8px; }
  body { padding-bottom: 64px; }
}

/* ---------- บทความ (ถ้าซื้อระบบบทความภายหลัง) ---------- */
.cards { display: grid; gap: 20px; }
.card { border-top: 1px solid var(--ink); padding-top: 14px; }
.card-body h2 { font-size: 20px; }
.a-wrap { max-width: 760px; }
.a-wrap h1 { font-size: clamp(28px, 4.4vw, 44px); margin-bottom: 12px; }
.a-meta { color: var(--muted); font-size: 14.5px; }
.a-lead { font-size: 19px; color: var(--muted); }
.a-toc { border-block: 1px solid var(--line); padding: 16px 0; margin-bottom: 28px; }
.a-body h2 { font-size: clamp(22px, 3vw, 28px); margin: 40px 0 12px; }
.a-body h3 { margin: 28px 0 10px; }
.a-body a:not(.btn) { color: var(--accent); }
.a-body blockquote { margin: 28px 0; padding-left: 20px; border-left: 3px solid var(--gold); }
.a-fig { margin: 28px 0; }
.a-fig figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.a-cta { background: var(--paper-2); padding: 24px; margin: 32px 0; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(var(--cols, 3), 1fr); } }

/* ---------- อนิเมชัน: ปรากฏตอนเลื่อนถึง (เล่นครั้งเดียว) ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.tx-hero-text > * { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.tx-hero-text > *:nth-child(2) { animation-delay: .06s; }
.tx-hero-text > *:nth-child(3) { animation-delay: .12s; }
.tx-hero-text > *:nth-child(4) { animation-delay: .18s; }
.tx-hero-text > *:nth-child(5) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

@media (max-width: 380px) {
  .actions .btn { width: 100%; }
}

/* ---------- พื้นที่กดบนมือถืออย่างน้อย 44px ---------- */
.skip { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { width: auto; height: auto; clip-path: none; left: 12px; top: 12px; }
.topbar a, .hero-tel, .more, .ask, .crumbs a, .foot a, .contact-list a, .logo { min-height: 44px; display: inline-flex; align-items: center; }
.logo { min-width: 44px; }
.foot ul { gap: 0; }
.foot-contact li { align-items: center; }
.foot-contact svg { margin-top: 0; }
.actions .btn-line, .actions .btn { min-height: 48px; }

form.lead .two { display: grid; gap: 14px; }
@media (min-width: 520px) { form.lead .two { grid-template-columns: 1fr 1fr; } }

.crumbs { align-items: center; }
.crumbs { padding-top: clamp(12px, 3vw, 32px); }
.crumbs a, .foot li a, .menu a { min-width: 44px; }
@media (max-width: 600px) { .topbar a[href^="mailto"] { display: none; } .topbar .wrap { gap: 0 20px; } }

/* เว็บนี้เป็นภาษาอังกฤษ (เจ้าของสั่ง แก้ด่วน-1089) — ตัวละตินไม่มีสระบน/ล่าง บีบระยะบรรทัดหัวข้อให้แน่นขึ้น */
:lang(en) h1, :lang(en) h2, :lang(en) h3 { line-height: 1.15; }
:lang(en) .tx-hero h1, :lang(en) .tx-page h1 { line-height: 1.05; letter-spacing: -.025em; }
:lang(en) body { line-height: 1.65; }
