/* เตเต้ พาทัวร์ — ดำ-ทอง สลับพื้นงาช้าง ตามแบบอ้างอิง design/comps/แบบอ้างอิง.png
   ทุกส่วนต้องยังสวยเมื่อลูกค้าใส่ข้อความสั้นมากหรือยาวมาก และต้องไม่ล้นจอที่ 360px */

:root {
  --accent: #d4af37;
  --accent-ink: #14110a;
  --gold-deep: #8a6c12;
  --gold-grad: linear-gradient(180deg, #ecd06f 0%, #d4af37 55%, #b9931f 100%);
  --ink: #17140f;
  --muted: #5f584b;
  --paper: #f8f4ea;
  --paper-2: #f1ebdc;
  --line: #e0d7c1;
  --black: #0b0b0c;
  --on-black: #f4efe4;
  --on-black-muted: #b9b2a2;
  --line-dark: rgba(212, 175, 55, .28);
  --radius: 14px;
  --font: 'Anuphan', 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --display: var(--font);
  --gap: clamp(56px, 8vw, 104px);
  --pad: clamp(16px, 4vw, 32px);
  --max: 1200px;
}

* { 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%;
}
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.45; margin: 0; text-wrap: balance; font-weight: 700; }
svg { stroke: currentColor; fill: none; 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-head { margin-bottom: clamp(28px, 4vw, 48px); text-align: center; }
.sec-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 32px);
}
.sec-head h2::before, .sec-head h2::after {
  content: ''; flex: 1 1 0; max-width: 240px; height: 2px; min-width: 16px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.sec-head h2::after { background: linear-gradient(90deg, var(--accent), transparent); }
.sec-head p { color: var(--muted); margin: 12px auto 0; max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: 999px; font-size: 17px; font-weight: 600;
  background: var(--gold-grad); color: var(--accent-ink); text-decoration: none;
  border: 0; transition: filter .2s ease, transform .2s ease; min-height: 48px; cursor: pointer; font-family: inherit;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-dark { background: var(--black); color: var(--on-black); }
.text-link { color: var(--gold-deep); font-weight: 600; text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- แถบบน + หัวเว็บ ---------- */
.topbar { background: #000; color: var(--on-black); font-size: 15px; border-bottom: 1px solid var(--line-dark); }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 26px; justify-content: center; align-items: center; padding-block: 6px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.topbar-social { gap: 12px !important; }

/* ห้ามใส่ backdrop-filter / transform / filter ที่นี่ เมนูมือถือเป็น fixed อยู่ข้างใน */
.nav { position: sticky; top: 0; z-index: 30; background: #000; border-bottom: 1px solid var(--line-dark); color: var(--on-black); }
.nav .wrap { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 16px; text-decoration: none; min-width: 0; }
.logo-img { width: 170px; height: auto; flex: none; }
.logo-text { display: none; border-inline-start: 2px solid var(--accent); padding-inline-start: 14px; font-weight: 600; font-size: 16px; line-height: 1.4; }
.logo-text small { display: block; font-weight: 400; font-size: 14px; color: var(--on-black-muted); }
#site-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
#site-nav a:not(.btn) {
  text-decoration: none; padding: 8px 12px; font-size: 16px; color: var(--on-black); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
#site-nav a:not(.btn):hover { color: var(--accent); }
#site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav-cta { margin-inline-start: 10px; padding: 8px 20px; font-size: 16px; min-height: 44px; white-space: nowrap; }
.nav-toggle { display: none; }

/* ---------- แบนเนอร์ ---------- */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero-track { display: flex; }
.hero-slide { position: relative; flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1fr; align-content: center; }
.hero-slide picture { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 60%; }
.hero-full .hero-slide { min-height: clamp(460px, 68vh, 720px); }
.hero-compact .hero-slide { min-height: clamp(260px, 36vh, 400px); }
.hero-slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(5,6,10,.88) 0%, rgba(5,6,10,.62) 42%, rgba(5,6,10,.08) 78%);
}
.hero-body {
  position: relative; z-index: 2; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(36px, 7vw, 88px) var(--pad);
}
.eyebrow {
  color: var(--accent); font-weight: 600; font-size: clamp(16px, 2vw, 21px); margin: 0 0 10px;
  display: flex; align-items: center; gap: 16px;
}
.eyebrow::after { content: ''; width: 90px; height: 2px; background: var(--accent); flex: 0 1 auto; }
.hero-title { font-size: clamp(32px, 5.2vw, 62px); margin-bottom: 14px; max-width: 16ch; }
.hero-compact .hero-title { font-size: clamp(30px, 4.4vw, 52px); max-width: 22ch; margin-bottom: 8px; }
.hero-sub { font-size: clamp(16px, 2vw, 21px); margin: 0 0 26px; max-width: 44ch; opacity: .95; }
.hero-compact .hero-sub { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.hero-actions:empty { display: none; }
.hero-tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 19px; font-weight: 600; min-height: 44px; }
.hero-tel svg { width: 22px; height: 22px; color: var(--accent); }

.hero-nav {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero-dots { display: flex; gap: 2px; align-items: center; }
.hero-dots button { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.hero-dots button::before {
  content: ''; width: 10px; height: 10px; border-radius: 6px; background: rgba(255,255,255,.5);
  transition: width .2s ease, background .2s ease;
}
.hero-dots button[aria-current="true"]::before { background: var(--accent); width: 26px; }
.hero-arrow {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4);
  background: rgba(0,0,0,.35); cursor: pointer; position: relative;
}
.hero-arrow::before {
  content: ''; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(2px) rotate(45deg);
}
.hero-arrow.next::before { transform: translateX(-2px) rotate(225deg); }

/* ---------- แถบความน่าเชื่อถือ ---------- */
.trust { background: var(--black); color: var(--on-black); padding-block: clamp(20px, 3vw, 30px); }
.trust-grid { display: grid; gap: 14px 10px; grid-template-columns: repeat(2, 1fr); }
.trust .feature { display: flex; gap: 12px; align-items: center; }
.trust .feature-icon { color: var(--accent); flex: none; }
.trust .feature-icon svg { width: 36px; height: 36px; }
.trust h3 { font-size: 16px; font-weight: 600; line-height: 1.4; }
.trust p { margin: 0; color: var(--on-black-muted); font-size: 14.5px; line-height: 1.5; }

/* ---------- จุดเด่น ---------- */
.features-grid { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(2, 1fr); }
.feature { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.features-grid .feature { padding: clamp(14px, 2vw, 22px); background: #fffdf7; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); flex-direction: column; }
.feature-icon { flex: none; color: var(--gold-deep); display: grid; place-items: center; }
.feature-icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 18px; margin-bottom: 3px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- ขั้นตอน ---------- */
section:has(> .wrap > .steps) { background: var(--black); color: var(--on-black); }
section:has(> .wrap > .steps) .sec-head p { color: var(--on-black-muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: none; }
.step { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: center; }
.step-no {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent); font-weight: 700; font-size: 20px;
}
.step .feature-icon { color: var(--accent); }
.step .feature-icon svg { width: 26px; height: 26px; }
.step h3 { font-size: 17.5px; font-weight: 600; }
.step p { margin: 0; color: var(--on-black-muted); font-size: 15px; line-height: 1.6; }

/* ---------- เกี่ยวกับ ---------- */
.about { display: grid; gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-pic img { width: 100%; }
.about-text h2 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 16px; }
.about-text p { color: var(--muted); margin: 0 0 16px; }
.about-text .btn { margin-top: 8px; }

/* ---------- บริการ: การ์ด ---------- */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fffdf7; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--accent), 0 14px 30px -18px rgba(23,20,15,.5); }
.card-pic img { width: 100%; }
.card-body { padding: clamp(12px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; justify-content: center; }
.card-tag { color: var(--gold-deep); font-size: 14.5px; font-weight: 600; }
.card-body h3 { font-size: clamp(17px, 2vw, 23px); }
.card-body h3::after { content: ''; display: block; width: 44px; height: 2px; background: var(--accent); margin-top: 8px; }
.card-body p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

/* ---------- บริการ: หน้ารวมแยกหมวด ---------- */
.svc-group + .svc-group { margin-top: clamp(40px, 6vw, 72px); }
.svc-group-head { margin-bottom: 20px; }
.svc-group-head h3 { font-size: clamp(23px, 3vw, 31px); color: var(--ink); }
.svc-group-head p { margin: 4px 0 0; color: var(--muted); }
.rows { display: grid; gap: clamp(20px, 3vw, 32px); }
.row-item { display: grid; gap: 14px; }
.row-pic img { width: 100%; border-radius: var(--radius); }
.row-text { min-width: 0; align-self: center; }
.row-text h4 { font-size: clamp(21px, 2.6vw, 28px); margin-bottom: 6px; }
.row-text p { margin: 0 0 10px; color: var(--muted); }

/* ---------- ผลงาน / วิดีโอ — ไม่ครอป ใช้สัดส่วนจริงของไฟล์ ---------- */
.gal { columns: 2; column-gap: 10px; }
.gal figure { margin: 0 0 10px; break-inside: avoid; }
.gal img, .gal video { width: 100%; border-radius: 10px; }
.gal figcaption { font-size: 15px; padding: 6px 2px 4px; }
.gal figcaption b { display: block; }
.gal figcaption span { color: var(--muted); }

dialog.light { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.light::backdrop { background: rgba(8, 8, 10, .88); }
dialog.light img { max-height: 88vh; width: auto; border-radius: 10px; }
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;
}

/* ---------- เพจของบริษัท ---------- */
.fb-pages { display: grid; gap: clamp(12px, 2vw, 22px); }
.fb-page { background: #fffdf7; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(18px, 2.4vw, 28px); min-width: 0; }
.fb-logo-link { display: block; width: fit-content; border-radius: 50%; }
.fb-logo { display: block; width: 104px; height: 104px; border-radius: 50%; object-fit: contain; margin-bottom: 14px; box-shadow: 0 0 0 1px var(--line); }
.fb-no { display: block; color: var(--gold-deep); font-weight: 600; font-size: 15px; }
.fb-page h3 { font-size: 21px; margin: 2px 0 6px; overflow-wrap: anywhere; }
.fb-page p { margin: 0 0 8px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.fb-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.fb-links svg { width: 18px; height: 18px; flex: none; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; }

.certs { display: grid; gap: 22px; max-width: 980px; margin-inline: auto; }
.cert { margin: 0; min-width: 0; }
.cert a { display: block; }
.cert img { display: block; width: 100%; height: auto; }
.cert figcaption { padding-top: 10px; line-height: 1.6; }
.cert b { display: block; }
.cert span { color: var(--muted); font-size: 15.5px; }
@media (min-width: 640px) {
  .certs { display: flex; align-items: flex-start; }
  .cert { flex: var(--r, 1) 1 0; }
}

/* ---------- รีวิว ---------- */
section:has(> .wrap > .quotes) { background: var(--black); color: var(--on-black); }
.quotes { display: grid; gap: clamp(12px, 2vw, 22px); }
.quote { margin: 0; background: #17161a; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--line-dark); padding: clamp(18px, 2.4vw, 28px); }
.quote p { margin: 0 0 16px; font-size: 16.5px; line-height: 1.8; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.quote b { display: block; font-size: 16px; color: var(--accent); font-weight: 600; }
.quote figcaption span span { color: var(--on-black-muted); font-size: 14.5px; }

/* ---------- คำถาม ---------- */
.faq-wrap { max-width: 920px; }
.faq details { background: #fffdf7; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 10px; padding-inline: 18px; }
.faq summary {
  cursor: pointer; padding: 14px 34px 14px 0; font-weight: 600; position: relative; list-style: none; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-a { padding: 0 0 16px; color: var(--muted); margin: 0; white-space: pre-line; }

/* ---------- แถบชวนติดต่อ ---------- */
.cta-band { text-align: center; }
.cta-dark { background: var(--black); color: var(--on-black); }
.cta-soft { background: var(--gold-grad); color: var(--accent-ink); }
.cta-band h2 { font-size: clamp(26px, 3.6vw, 40px); margin-bottom: 10px; }
.cta-text { font-size: clamp(21px, 3vw, 32px); font-weight: 600; line-height: 1.4; margin: 0 auto 22px; max-width: 30ch; text-wrap: balance; }

/* ---------- ติดต่อ ---------- */
#contact {
  background: linear-gradient(rgba(6,7,12,.86), rgba(6,7,12,.9)), url('/img/kyoto-street.webp') center 55% / cover no-repeat;
  color: var(--on-black);
}
#contact .sec-head p, .contact-note { color: var(--on-black-muted); }
.contact-note { margin: 0 0 18px; }
.contact { display: grid; gap: clamp(24px, 4vw, 44px); align-items: start; }
.contact-list { display: grid; gap: 12px; margin: 0 0 18px; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.contact-list svg, .hours-one svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--accent); }
.contact-list a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.contact-list svg { margin-top: 11px; }
.contact-list a:hover { text-decoration: underline; }
#contact .text-link { color: var(--accent); text-decoration: underline; }
.hours-one { display: flex; gap: 12px; margin: 0; }
.hours { margin: 0; padding: 0; list-style: none; font-size: 15.5px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line-dark); max-width: 340px; }
.map-wrap { margin-top: clamp(24px, 4vw, 40px); }
.map { border: 0; width: 100%; aspect-ratio: 16 / 9; min-height: 280px; border-radius: var(--radius); display: block; }

form.lead { display: grid; gap: 14px; background: #fffdf7; color: var(--ink); border-radius: var(--radius); padding: clamp(18px, 3vw, 30px); position: relative; }
form.lead label { font-size: 15.5px; font-weight: 600; display: block; margin-bottom: 4px; }
form.lead input, form.lead textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 14px;
  border: 1px solid #b9ae93; border-radius: 10px; background: #fff; color: var(--ink);
}
form.lead input:focus, form.lead textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
form.lead textarea { min-height: 110px; resize: vertical; }
form.lead .hp { position: absolute; left: -9999px; width: 1px; }
form.lead .btn { width: 100%; }
form.lead .msg { font-size: 15px; margin: 0; }
form.lead .msg.ok { color: #1c6b3a; }
form.lead .msg.bad { color: #b3261e; }

.prose, .prose-wide { max-width: 760px; margin-inline: auto; }
.prose-wide { max-width: none; }
.prose h2, .prose-wide h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }

/* ---------- บทความ (เปิดเมื่อซื้อของเสริม) ---------- */
.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(28px, 4.2vw, 42px); 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%; border-radius: var(--radius); }
.a-lead { font-size: 18px; color: var(--muted); margin: 0 0 26px; line-height: 1.8; }
.a-toc { background: var(--paper-2); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 32px; }
.a-toc b { display: block; font-size: 14.5px; 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(--gold-deep); text-decoration: underline; }
.a-body > * { margin-block: 0 20px; }
.a-body h2 { font-size: clamp(22px, 3vw, 28px); margin-block: 44px 14px; scroll-margin-top: 100px; }
.a-body h3 { font-size: clamp(18px, 2.4vw, 22px); margin-block: 30px 10px; }
.a-body p { line-height: 1.9; }
.a-body a:not(.btn) { color: var(--gold-deep); 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%; border-radius: var(--radius); }
.a-fig figcaption { color: var(--muted); font-size: 14.5px; margin-top: 8px; text-align: center; }
.a-cta { background: var(--paper-2); border-radius: var(--radius); 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 .card-body h4 { margin: 0; font-size: 16px; }
.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); border-radius: 10px; text-decoration: none; font-weight: 600; }

/* ---------- ท้ายเว็บ ---------- */
.foot { background: #000; color: var(--on-black); padding-block: clamp(36px, 5vw, 56px) 18px; font-size: 15.5px; }
.foot .wrap { display: grid; gap: 28px; grid-template-columns: 1fr; }
.foot-logo { width: 210px; margin-bottom: 10px; }
.foot-brand b { display: block; font-size: 17.5px; margin-bottom: 6px; }
.foot-brand p { margin: 0 0 3px; color: var(--on-black-muted); font-size: 15px; line-height: 1.6; }
.foot-col { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.foot-col b { color: var(--accent); font-size: 17px; margin-bottom: 4px; }
.foot-col a { text-decoration: none; color: var(--on-black); min-height: 44px; min-width: 44px; max-width: 100%; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--accent); }
.foot-col > span:not(.social) { padding-block: 5px; }
.social { display: flex; gap: 8px; margin-top: 6px; }
.foot .social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  box-shadow: inset 0 0 0 1px var(--line-dark); color: var(--accent);
}
.foot .social svg { width: 21px; height: 21px; }
.foot-pages { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.foot-pages b { display: block; color: var(--accent); font-size: 17px; margin-bottom: 10px; }
.foot-pages-list { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-pages-list a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--on-black); text-decoration: none; }
.foot-pages-list a:hover { color: var(--accent); }
.foot-pages-list img { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px var(--line-dark); }
.foot-bottom { border-top: 1px solid var(--line-dark); padding-top: 14px; display: grid; gap: 4px; color: var(--on-black-muted); }
.foot-bottom p { margin: 0; font-size: 15px; }
.foot-bottom small { font-size: 14px; }

/* ปุ่มติดต่อลอยบนมือถือ */
.float-contact { display: none; }

/* เนื้อหาปรากฏตอนเลื่อนถึง — คลาสใส่จาก JS ปิด JS เนื้อหายังเห็นครบ */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- จอ 480+ ---------- */
@media (min-width: 480px) {
  .gal { columns: 3; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- มือถือ ---------- */
@media (max-width: 959px) {
  .topbar { display: none; }
  .nav .wrap { min-height: 64px; justify-content: space-between; }
  .logo-img { width: 136px; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center; width: 48px; height: 48px; flex: none;
    border: 0; background: transparent; cursor: pointer; position: relative; z-index: 2;
  }
  .nav-toggle span { display: block; width: 26px; height: 2px; background: var(--accent); transition: transform .2s ease, opacity .2s ease; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  #site-nav {
    position: fixed; inset: 0; z-index: 1; display: none; flex-direction: column; align-items: stretch; justify-content: center;
    background: #000; padding: 80px var(--pad) 40px; gap: 6px; overflow-y: auto;
  }
  body.nav-open #site-nav { display: flex; }
  #site-nav a:not(.btn) { font-size: 23px; padding: 12px 8px; text-align: center; border-bottom: 0; }
  .nav-cta { margin: 14px 0 0; font-size: 18px; min-height: 52px; }
  body.nav-open .float-contact { display: none; }
}

@media (max-width: 760px) {
  .hero-full .hero-slide { min-height: min(70vh, 560px); }
  .hero-slide img { object-position: 78% 60%; }
  .hero-slide::after { background: linear-gradient(180deg, rgba(5,6,10,.5) 0%, rgba(5,6,10,.78) 60%, rgba(5,6,10,.9) 100%); }
  .hero-body { padding-bottom: 66px; }
  .float-contact {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
    border-top: 1px solid var(--line-dark); background: #000; color: var(--on-black);
    padding: 6px var(--pad) calc(6px + env(safe-area-inset-bottom, 0px)); gap: 10px;
  }
  .float-contact .btn { flex: 1; padding-inline: 12px; font-size: 16px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .sec-head h2::before, .sec-head h2::after { display: none; }
}

/* ---------- จอใหญ่ ---------- */
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(var(--cols, 4), 1fr); }
  .features-grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .gal { column-count: 3; }
  .fb-pages { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .about { grid-template-columns: 1fr 1fr; }
  .about.pic-right .about-text { order: -1; }
  .contact { grid-template-columns: 1fr 1fr; }
  .row-item { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); }
  .row-item:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .row-item:nth-child(even) .row-pic { order: 1; }
  .foot .wrap { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
  .foot-pages { grid-column: 1 / -1; }
  .foot-bottom { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
}
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { flex-direction: row; }
  .card-pic { flex: 0 0 56%; align-self: center; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .step { grid-template-columns: auto 1fr; align-content: start; }
  .step .feature-icon { display: none; }
  .steps-5 { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .steps-5 .step { grid-template-columns: 1fr; align-items: start; }
  .gal { column-count: var(--cols, 4); }
  .logo-text { display: block; max-width: 270px; }
}
@media (max-width: 1260px) {
  .logo-text { display: none; }
}

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